Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Extending Racket with new languages

Name: Anonymous 2011-06-19 3:27

http://hashcollision.org/brainfudge/

Nicely done tutorial on how Racket can be used to write new languages, with a syntax that significantly differs from S-expressions. Apparently, it's super easy.

Name: Anonymous 2011-06-19 6:00

because Lisp's fixnums are 30-bits and don't overflow.
That depends on implementation and even in the same implementation, 32-bit and 64-bit versions will have different fixnum sizes. The standard way of handling it is to just  logand the results with (1- (ash 1 32)), and maybe sprinkle some the declarations and maybe some implementation-specific ones too. Some implementations have efficient MD5/SHA1 implementations which can be examined to see what declarations should be used for efficient compilation (if you don't care about that, then just don't use any and leave it to the compiler).

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List