logoalt Hacker News

Memo: A language that remembers only the last 12 lines of code

51 pointsby notemyesterday at 10:21 PM27 commentsview on HN

Comments

dcretoday at 2:05 AM

How exciting, I get to be the pedant: it’s “stream-of-consciousness,” not “stream-of-conscious.” Conscious is an adjective; there can’t be a stream of it.

show 5 replies
omoikanetoday at 4:14 AM

I think it's actually the last 10 lines of code, not 12. I just wrote these 10 lines:

   Remember A as forty-two
   Tell me about A
   Remember B as A
   Tell me about B
   Remember C as B
   Tell me about C
   Remember D as C
   Tell me about D
   Remember E as D
   Tell me about E
And you can see how it plots the dependencies as a graph on the right, which is kind of neat. But when I add the 11th line:

   Remember F as E
You see the graph being turned into a forest with no dependencies, because it has forgotten the root dependency A. Indeed, if you enter "Tell me about A", it will say it does not remember A.

Another neat thing to try is:

   Remember x as zero
   Remember y as x
   Remember x as y
dlcarriertoday at 1:00 AM

In my country, we call that an interactive shell.

Fun fact, if you run Python from a command line, with no options, it defaults to such a shell.

show 1 reply
lexcamisa54today at 9:45 AM

reminds me a

addaontoday at 4:39 AM

Needs a compiler for the Mill architecture.

NooneAtAll3today at 3:45 AM

why does the knob in the top right corner do nothing?

stitched2gethrtoday at 1:22 AM

This is intriguing.

On another note, I do not understand how posts make it to the top of the front page with essentially no comments.

show 1 reply
lexcamisa54today at 6:12 AM

[dead]