RE: https://typo.social/@pixelambacht/117670969034449760
I'm pretty sure I could write an entire compiler from scratch using only ed(1) while being locked in a secure vault. So, I say yes.
RE: https://typo.social/@pixelambacht/117670969034449760
I'm pretty sure I could write an entire compiler from scratch using only ed(1) while being locked in a secure vault. So, I say yes.
@dabeaz Can't reach my... what?! 😂😂😂 It isn't rare I spend an entire day working on code and don't notice that I forgot to turn on my (blocking) vpn so was offline all day. (Ah the bliss of no interruptions... oops.) But the most productive days are often with a PDF 'printout' on an eink tablet scribbling notes by hand in the sun. Then the bugs come to light!
@dabeaz Did you ever write up an ed(1) tutorial? 🤔
@carlton @dabeaz FWIW, Kernighan wrote "the recommended way to learn ed is to read" the tech bulletin 'A Tutorial Introduction to the UNIX Text Editor', according to https://archive.org/details/techbulletin76/page/n5/mode/2up?q=recommended
His 1979 bulletin is the basis for chapter 4 of 'SunOS 2.0 Editing and Text Processing on the Sun Workstation' at https://archive.org/details/Sun_800-1174-01_SunOS_2.0_Editing_and_Text_Processing_on_the_Sun_Workstation/page/n111/mode/2up in 1985, in case you want something newer.
@carlton ed(1) is its own tutorial.
@dabeaz ?
@carlton There is also a book by Michael W Lucas "Ed Mastery"
@dabeaz I don't actually need the internet to code. LLM's are not a part of coding.
Vibe coding is not coding.
@dabeaz can you construct ed(1) from NAND gates though
@vriesk What?! Like right now in this job interview?
@dabeaz @robpike @pixelambacht I can program with pen and paper...
@pascal_costanza @robpike @pixelambacht What are you going to do when you run out of ink/paper and can't order more without the Internet?
@dabeaz @robpike @pixelambacht I walk (!) to the shop and buy it there. 🙂
@pascal_costanza @robpike @pixelambacht Walk to us-east-1?!? In this weather?
@dabeaz @pascal_costanza @robpike @pixelambacht I could make ink from acorns or charcoal and use a feather or reed. I could make paper or use birch bark. But sadly I can't code so I would send it to someone who can.
@dabeaz I thought you meant you can write an entire compiler from scratch in ed, as in, write an ed script which works as a compiler. I don't doubt that is possible though.
@tusharhero Can one implement lambda calculus using ed(1) substitution? 🤔
RE: https://typo.social/@pixelambacht/117670969034449760
As an oceanographer, my best code was written while at sea. No internet, just books and manuals. The libraries I wrote that way are still the most useful and have larger communities around them than anything I wrote after I stopped going to on cruises.
@ocefpaf I have a similar experience, but being on a train without them having wifi yet, and having a netbook with only a browser, the command line, and man pages...
@dabeaz I've written programs in ed, and I've written compilers from scratch, but I've never done both at once.
@dabeaz Forget the LLMs but I *am* going to need some reference books at least! And can I throw those in a local YaCy instance or something? :)
@dabeaz
What, no compiler? I definitely don't know my instruction sets well enough for that but maybe I could work it out... can I use ed to show the binary of ed in hex?
@spacehobo