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

Board with an embedded scheme interpreter

Name: Anonymous 2009-07-14 17:28

I've spent long nights meditating on this and I think I have a design that could work.

Commands are normal scheme expressions embedded in text, for example a post body of "Hello, number (+ 2 3)" would output "Hello, number 5". Literal parenthesis would need to be escaped with a backslash. All expressions are evaluated and their output displayed except for define expressions, which are both evaluated and displayed.

Each thread is roughly equivalent to a scheme session. Names defined in parent posts are available to subsequent posts in the thread. Names are immutable within a thread; symbols cannot be redefined.

Obviously a set of primitives should be provided: the basic arithmetic operations; a display operation; a set of formatting operations roughly equivalent in capability to today's BBCode; and, of course, our old friends cons, car and cudder.

What say you, /prog/? Can we do this thing?

Name: Anonymous 2009-07-14 19:08

>>1
That the entire thread is a session is an interesting twist, though I'm not sure I agree with immutable names. If >>1 references post 1, what would (>>1) mean to you? I'm thinking something along the lines of PLT Scheme's modules, looking at (>>1) like (require "1.post"). In theory this could also reference other threads.

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