4 ms·
Just because something happens when you enter a command, this does not make a REPL. The original idea of a REPL was that one reads Lisp code as data, evaluates
by lispm 8y ago
Just because something happens when you enter a command, this does not make a REPL. The original idea of a REPL was that one reads Lisp code as data, evaluates it and returns the result as Lisp data, which gets printed as such and stored as a side effect.
- na85 8y agoAgreed. A true hardware REPL would be incredibly wasteful, and you'd be throwing even more plastic waste away that would eventually end up in the oceans killing wildlife.
- lispm 8y agoIt would mean that the hardware material could be read and executed.
- deleted 8y ago[deleted]
- jononor 8y agoOne can engrave QR codes with a lasercutter. I've used them to provide a link to where to download the source files, for making more or to integrated the design with other objects based on the CAD sources. This was primarily to be read by humans, but one can imagine the same structure readable by machines.
- tzs 8y agoThe hardware REPL needs another feature that most software REPLs have: garbage collection.
- delbel 8y agoWait, hold on. Any G-code interface, like Mach3 or a serial terminal to GRBL is a "REPL". The only thing it doesn't have is loops -- which the industrial standard is to open notepad or vi, and cut and paste your "loop" into the terminal. I use this to face off material in my milling machine or manually move the spindle to "home" to remove the part. So far, I have not killed any birds, fish or whales yet.
- cup-of-tea 8y agoAs someone who has learnt and loves Lisp it's really confusing to me that REPL has come to mean simply command interface. This is the REPL: (loop (print (eval (read))))
- nixpulvis 8y agoThe key for me is that a REPL reads, then evaluates (generally involving printing), then starts over (looping). Bash for example fits this criteria. I'm as much of a fan of lisp as anyone, but it doesn't need to be literally printing the result of `eval` to be a REPL in my eyes.
- lispm 8y agobash doesn't print the result of an evaluation, the commands print if the want it's more a PEL: Parse Execute Loop
- earenndil 8y agoIn that case, most lisp 'repls' don't satisfy your definition either.
- lispm 8y agoMost Lisp REPLS print a result somewhere.
- cup-of-tea 8y agoThe P stands for print. A REPL prints by definition.
- earenndil 8y agoThen what is this? (defun add (a b) (+ a b))
- 8y ago