Email or username:

Password:

Forgot your password?
Devil Lu Linvega

To date, the shortest program to spin a repl in modal is 14 bytes long:

<>.?~(?~ ..)..

This one rewrite rule is enough to expect an input(?~), and rewrite it into a listener after appending the register to the input string.

Is this the shortest repl code?

3 comments
Andres Moreno

@neauoire

This question either makes sense to you or it doesn't.

Well played!

Csepp 🌢

@neauoire This is a bit tricky, since we're not counting the VM's complexity. It seems like the actual printing is also done by the underlying interpreter??
For a fair comparison to something like Stone Knife Forth, it should run on "bare" metal. (I wouldn't mind the boot ROM also being counted, but maybe that's overkill.)

Devil Lu Linvega

@csepp It's a string rewriting, there's actually no printing, it's just visualizing the state of the program.

Go Up