hacker.org Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Visual IDE for SuperHack
Goto page 1, 2  Next
 
Reply to topic    hacker.org Forum Index » Challenges View previous topic
View next topic
Visual IDE for SuperHack
Author Message
eike42



Joined: 26 Oct 2008
Posts: 15

Post Visual IDE for SuperHack Reply with quote
Hi everyone,

when processing the Super Brainfuck challenge, I really wished for a IDE for the SuperHack language. I also needed a project to start learning C#, so a wrote an IDE. It's become so cool that I want to share it with you. Of course the are still bugs, but I consider it as "usable" now.
I have taken the VM from PHP and translated it into C#. PLEASE CHECK IF THE RESULTS ARE ALWAYS EXCACTLY THE SAME!

You can see some screenshots below and also on the webpage.

I understand if you don't really like to run unknown exes, and also understand that you do not want to compile the included code yourselves. Maybe someone trusted like adum could walk through the code fast (to see if there is no hidden steal-sh-code inside Very Happy ) and compile a trusted version for you.

I have setup a webpage (hopefully they do not remove it due to the word "hacker"!) here:

http://shvm.hostbeat.eu/





Please report bugs and stuff to this thread!

Have fun,
eike
Sun Jun 28, 2009 7:25 am View user's profile Send private message
tails



Joined: 10 Jun 2008
Posts: 191
Location: Tokyo

Post Reply with quote
Cool! I will definitely use this on later challenges. Good job!

eike42 wrote:
PLEASE CHECK IF THE RESULTS ARE ALWAYS EXCACTLY THE SAME!
It seems it behaves differently when we write 0 at a code cell (using "w" instruction) and step into that cell.
Please try this:
Code:
009w........!
The process goes through on PHP version, while it dies halfway on this IDE.
Sun Jun 28, 2009 3:40 pm View user's profile Send private message
eike42



Joined: 26 Oct 2008
Posts: 15

Post Reply with quote
Damn... you got me Very Happy

I was using "0" as "not defined", since I thought noone would use chr(0) as code. Forgot about the "w". Ok, I will think of a workaround. Thanks for your testing!
Sun Jun 28, 2009 6:55 pm View user's profile Send private message
therethinker



Joined: 28 Mar 2008
Posts: 144
Location: #hacker.org on Freenode

Post Reply with quote
Heh, expect us to abuse the heck out of superhack in order to cut down on cycles/codesize Razz
Mon Jun 29, 2009 3:07 am View user's profile Send private message AIM Address
eike42



Joined: 26 Oct 2008
Posts: 15

Post Reply with quote
You're right Wink

It's fixed. Should work now...
Mon Jun 29, 2009 4:15 am View user's profile Send private message
megabreit



Joined: 03 Jan 2009
Posts: 141

Post Reply with quote
This thing runs mostly fine under Ubuntu 9.04 and Mono 2.0! Great!
But there is one exception: The highlighting of the thread positions doesn't work. Crying or Very sad

Anyone successfully tested the IDE under Linux?
Mon Jun 29, 2009 5:59 pm View user's profile Send private message
eike42



Joined: 26 Oct 2008
Posts: 15

Post Reply with quote
I went as far as he told me that I do not have windows.forms installed. Gotta have to try that.
Mon Jun 29, 2009 7:29 pm View user's profile Send private message
megabreit



Joined: 03 Jan 2009
Posts: 141

Post Reply with quote
libmono-winforms2.0-cil seems not to be installed by default.
I had to install it manually (and some automatic dependencies):
$ sudo apt-get install libmono-winforms2.0-cil

BTW: I checked with Mono 2.4 from the VMWare image from http://www.go-mono.com/mono-downloads/ and it's also not able to highlight the running threads.
Mon Jun 29, 2009 11:24 pm View user's profile Send private message
superhacker



Joined: 06 Mar 2009
Posts: 7

Post Reply with quote
Is this really working as expected?
I can't get my sample code running which is working fine on the web version...

memory= 1,2
program= 0<1<+p
expected result=3

It works fine online but not in yout program... What am i doing wrong?
Sun Jul 05, 2009 3:20 pm View user's profile Send private message
tails



Joined: 10 Jun 2008
Posts: 191
Location: Tokyo

Post Reply with quote
@superhacker:
You're working on Hack VM (HVM), while this IDE is for SuperHack. They're similar but different languages.

For HVM, another nice IDE is available:
http://www.hacker.org/forum/viewtopic.php?p=7523
Sun Jul 05, 2009 3:38 pm View user's profile Send private message
superhacker



Joined: 06 Mar 2009
Posts: 7

Post Reply with quote
Thanks! no wonder Razz
Sun Jul 05, 2009 5:53 pm View user's profile Send private message
Musiphonix



Joined: 07 Oct 2010
Posts: 1

Post Link's dead Reply with quote
The link's dead. Can you please re-upload it?


Also, can you post the source code?
My first post, YAY!
Fri Nov 19, 2010 8:55 pm View user's profile Send private message
AMindForeverVoyaging
Forum Admin


Joined: 28 May 2011
Posts: 473
Location: Germany

Post Re: Link's dead Reply with quote
Musiphonix wrote:
The link's dead. Can you please re-upload it?


I shall second that. Since the OP does not seem to be around anymore, could somebody who has this program please upload it somewhere?
Tue Sep 06, 2011 8:33 pm View user's profile Send private message
kne1p



Joined: 31 Dec 2010
Posts: 6

Post Re: Link's dead Reply with quote
AMindForeverVoyaging wrote:
Musiphonix wrote:
The link's dead. Can you please re-upload it?


I shall second that. Since the OP does not seem to be around anymore, could somebody who has this program please upload it somewhere?


That _would_ be great. When debugging the php vm it's quite arduous to get a good look at what happened to some memory location off-stack.
Wed Sep 07, 2011 5:56 pm View user's profile Send private message
asdf_2



Joined: 08 Aug 2009
Posts: 4

Post reloaded Reply with quote
not sure if last version, source is missing, but...

http://zoz.comxa.com/shvm.zip

_________________
we live to tread on kings
Thu Sep 08, 2011 11:52 am View user's profile Send private message
Display posts from previous:    
Reply to topic    hacker.org Forum Index » Challenges All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.