Earlier quoted context omitted.
Since more than a few language implementations already do things like that, I'm inclined to say that's more or less a solved problem.
Yeah, but I have not find a resource that explain how is done.
What makes a good REPL?
171–177 of 177 posts
Re: What makes a good REPL?
#172Earlier quoted context omitted.
You could just store your modified state to new variables though
In a live-coding session, how does the existing, running code knows that it should look at the new variables instead of the old ones?
Re: What makes a good REPL?
#173Earlier quoted context omitted.
In a live-coding session, how does the existing, running code knows that it should look at the new variables instead of the old ones?
Have a look at the video. Having immutable values doesn't mean you have immutable variables / names.
Re: What makes a good REPL?
#174Re: What makes a good REPL?
#175Re: What makes a good REPL?
#176Saving state between runs. R has surpassed Python for me just for that feature, for interactive exploration.
I've never found a case where I've wanted to retain state between R sessions (I think doing so can be an anti-pattern). But... that image saving feature is very much like that of Common Lisp. Given Ross Ihaka's then-and-now fondness for CL, I'd be shocked if this feature weren't very much intentionally patterned off that. The original implementation of R was on top of a Scheme runtime, but I don't know if images were…
Common Lisp and Scheme do not have any specifications for persistent state, and the implementations that do have images are all over the place in what those images do and how they are made.
Re: What makes a good REPL?
#177Earlier quoted context omitted.
> Common Lisp's REPL The SBCL and CCL REPLs do not support readline-style editing. This actually makes them infuriating to use outside of Emacs or some other IDE-like environment. There is definitely a market for a high-quality, implementation-independent Lisp REPL.
rlwrap FTW