Readit News logoReadit News
jburgy commented on An attempt to articulate Forth's practical strengths and eternal usefulness   im-just-lee.ing/forth-why... · Posted by u/todsacerdoti
jburgy · 13 days ago
Lovely article, which I took the liberty to share on the Forthish discord [1]

[1] https://discord.gg/9DveEJ42

jburgy commented on The Impossible Optimization, and the Metaprogramming to Achieve It   verdagon.dev/blog/impossi... · Posted by u/melodyogonna
Archit3ch · 2 months ago
> Mojo, D, Nim, and Zig can do it, and C++ as of C++20. There are likely some other languages that can do it, but these are the only ones that can truly run normal run-time code at compile time

Pretty sure Julia can do it.

jburgy commented on Ask HN: What's the most creative 'useless' program you've ever written?    · Posted by u/reverseCh
jburgy · a year ago
Many years ago, I wondered how Ken Thompson's 1968 ACM article on implementing regexes in IBM 7040 would look in x86. Ken uses two lists for current and next backtracking and I replaced one of them by the call stack (interleaving call and ret in weird order). I remember struggling with some assembly syntax (AXC **,7 as it were) so I emailed Mr. Thompson! And Ken, ever the gentleman, took ample time to reply to a no-name n00b! Several years later, Russ Cox of Go fame somehow heard about my silly hack, reached out, and included it on his page about "Implementing Regular Expressions" (https://swtch.com/~rsc/regexp/).

u/jburgy

KarmaCake day8October 23, 2024View Original