:seven: on Nostr: weird things that I can’t seem to escape: the very beginning of a file, as in the ...
weird things that I can’t seem to escape:
the very beginning of a file, as in the null value that represents what is before the syntax tree being lexed, is considered space before the token. it’s either this or the tree is like 4x slower just to tell the difference between that and actual space before a token at the beginning of a line.
if spawn takes a thunk directly (`spawn { do_something (); IO.Out.line “do something else” }`) that thunk can’t self-reference. this makes spawn one of the only keywords in the language that technically violates the left-to-right evaluation rule that the entire rest of the language uses, because otherwise `spawn a_named_function ()` shits the bed given the juxtaposition syntax. Doable but kinda irritating to no one but me.
Published at
2026-09-03 23:33:23 UTCEvent JSON
{
"id": "dcd6aade6f8c0c20091e65ace12bf2d9eb3ae4950a32a39c2cf025cf953305a9",
"pubkey": "fb594e1a7dcf278c18c7d623c5a51ec41ab62ac5cea86554d70a9c691565161b",
"created_at": 1788478403,
"kind": 1,
"tags": [
[
"proxy",
"https://dsmc.space/objects/e80b88e5-be61-410e-a169-a4b2ad211730",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://dsmc.space/objects/e80b88e5-be61-410e-a169-a4b2ad211730",
"pink.momostr"
],
[
"-"
]
],
"content": "weird things that I can’t seem to escape:\r\n\r\nthe very beginning of a file, as in the null value that represents what is before the syntax tree being lexed, is considered space before the token. it’s either this or the tree is like 4x slower just to tell the difference between that and actual space before a token at the beginning of a line.\r\n\r\nif spawn takes a thunk directly (`spawn { do_something (); IO.Out.line “do something else” }`) that thunk can’t self-reference. this makes spawn one of the only keywords in the language that technically violates the left-to-right evaluation rule that the entire rest of the language uses, because otherwise `spawn a_named_function ()` shits the bed given the juxtaposition syntax. Doable but kinda irritating to no one but me.",
"sig": "4f56fbf84c2ab63b62236acbb3780b7fb96b5cd6605be9fa6ead7b5ab599305136b93f5749bab46123f82592763dbd0030c386c02e115650ab9c08c261e1a81e"
}