4 ms·
Fun REPL story: Reddit was originally written in LISP, so you could also manipulate the live running code with the REPL. Sometimes Steve would do that to add a
by jedberg 7y ago
Fun REPL story: Reddit was originally written in LISP, so you could also manipulate the live running code with the REPL.
Sometimes Steve would do that to add a new feature or change some broken code.
The danger was that if you didn’t copy/paste the fix back to the saved source, the problem would return when the app restarted!
- lispm 7y agoYou would drive the REPL from the editor. Change the code in the editor and evaluate into the REPL. Still you need to try out if the error in a fresh build is still fixed after that.
- eadmund 7y agoIt'd be pretty simple — albeit so very much a bad idea — to run the REPL from a stream which saved everything typed in the REPL to a log read in at startup. A fancier version might allow log editing. A really fancy version might save everything to a log and offer commands to view expressions in the log & copy the desired ones to the startup file, or another file. Or one could just remember to move corrected source back to the right place. This is probably somewhere where a Smalltalk image-based browser would be preferable — it would/could unify the REPL and editing source.
- agumonkey 7y agowhat lisp did they use ? SBCL ? also I believe lisps have image patch storing facilities..