Log in

No account? Create an account
'Twas brillig, and the slithy toves did gyre and gimble in the wabe [entries|archive|friends|userinfo]

[ website | Beware the Jabberwock... ]
[ deviantArt | the-boggyb ]
[ FanFiction | Torkell ]
[ Tumblr | torkellr ]

[Random links| BBC news | Vulture Central | Slashdot | Dangerous Prototypes | LWN | Raspberry Pi]
[Fellow blogs| a Half Empty Glass | the Broken Cube | The Music Jungle | Please remove your feet | A letter from home]
[Other haunts| Un4seen Developments | Jazz 2 Online | EmuTalk.net | Feng's shui]

Interpreting brainfuck in Visual Basic 6 [Tuesday 7th March 2006 at 5:09 pm]

[Feeling |productiveproductive]
[Playing |KR-Infiltrate.ogg]

Today's achievement: writing an interpreter for brainfuck in Visual Basic 6, something that's taken me all of an hour, and that included a fair amount of time spent trying to make the laptop talk to the desktop to transfer a file that I didn't use in the end.

Source will be uploaded somewhere somewhen, so don't hold your breath.

The next step will be to add genetic algorithm support to it, so I can make it randomly generate programs. But what programs to generate?
Link | Previous Entry | Share | Next Entry[ 4 pennies | Penny for your thoughts? ]

[User Picture]From: pteppic
Tuesday 7th March 2006 at 5:36 pm (UTC)
Why not implement in something useful, like Whitespace :-D

Humm, a Whitespace interpreter in Brainfuck anybody?
(Reply) (Thread)
[User Picture]From: boggyb
Tuesday 7th March 2006 at 6:02 pm (UTC)
*searches Wikipedia*

*goes to homepage*

I think I may have my genetic algorithm to implement. This is going to be downright evil code.
(Reply) (Parent) (Thread)
[User Picture]From: pteppic
Tuesday 7th March 2006 at 6:53 pm (UTC)
That's the one.

Old friends were involved :-) One of them submitted his dissertation latex file with a whitespace program intersperced :-)
(Reply) (Parent) (Thread)
From: pewterfish
Wednesday 8th March 2006 at 11:09 am (UTC)
Pteppic: Not to be giving me ideas, please...
(Reply) (Parent) (Thread)