Visual IDE for SuperHack

eike42
Posts: 15
Joined: Sun Oct 26, 2008 1:17 pm

Visual IDE for SuperHack

Post by eike42 »

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 :D ) 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/

Image
Image
Image

Please report bugs and stuff to this thread!

Have fun,
eike
tails
Posts: 191
Joined: Tue Jun 10, 2008 7:51 pm
Location: Tokyo

Post by tails »

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: Select all

009w........!
The process goes through on PHP version, while it dies halfway on this IDE.
eike42
Posts: 15
Joined: Sun Oct 26, 2008 1:17 pm

Post by eike42 »

Damn... you got me :D

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!
therethinker
Posts: 144
Joined: Fri Mar 28, 2008 11:29 pm
Location: #hacker.org on Freenode

Post by therethinker »

Heh, expect us to abuse the heck out of superhack in order to cut down on cycles/codesize :P
eike42
Posts: 15
Joined: Sun Oct 26, 2008 1:17 pm

Post by eike42 »

You're right :wink:

It's fixed. Should work now...
megabreit
Posts: 141
Joined: Sat Jan 03, 2009 3:33 pm

Post by megabreit »

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. :cry:

Anyone successfully tested the IDE under Linux?
eike42
Posts: 15
Joined: Sun Oct 26, 2008 1:17 pm

Post by eike42 »

I went as far as he told me that I do not have windows.forms installed. Gotta have to try that.
megabreit
Posts: 141
Joined: Sat Jan 03, 2009 3:33 pm

Post by megabreit »

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.
superhacker
Posts: 7
Joined: Fri Mar 06, 2009 11:10 am

Post by superhacker »

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?
tails
Posts: 191
Joined: Tue Jun 10, 2008 7:51 pm
Location: Tokyo

Post by tails »

@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
superhacker
Posts: 7
Joined: Fri Mar 06, 2009 11:10 am

Post by superhacker »

Thanks! no wonder :P
Musiphonix
Posts: 1
Joined: Thu Oct 07, 2010 8:58 am

Link's dead

Post by Musiphonix »

The link's dead. Can you please re-upload it?


Also, can you post the source code?
My first post, YAY!
AMindForeverVoyaging
Forum Admin
Posts: 496
Joined: Sat May 28, 2011 9:14 am
Location: Germany

Re: Link's dead

Post by AMindForeverVoyaging »

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?
kne1p
Posts: 6
Joined: Fri Dec 31, 2010 2:22 am

Re: Link's dead

Post by kne1p »

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.
asdf_2
Posts: 4
Joined: Sat Aug 08, 2009 2:44 pm

reloaded

Post by asdf_2 »

not sure if last version, source is missing, but...

http://zoz.comxa.com/shvm.zip
we live to tread on kings
Post Reply