News for hackers. Stuff that matters.
Re:What makes a good REPL? by tikhonj on Sunday August 27, 2017 @08:33PM (#15113639)
I don't think there's anything fundamental about a compiled language that prevents it from having a REPL. (If anything, you could always have a dedicated interpreter for interactive work—"compiled" and "interpreted" are functions of the implementation, no the language.)

In practice the compiled languages I've used extensively (OCaml and Haskell) do have REPLs, but ones that aren't nearly as powerful as some other languages. I'm not sure exactly why it's the case, but I certainly don't think it's impossible for them to have good REPLs. My guess is that there are some properties of the languages that make a good REPL a bit more difficult to implement, and there simply hasn't been enough community investment to overcome that.

I wish there was because I basically live in GHCi (Haskell's REPL) and sorely wish for a few core improvements like hot loading updated code when possible.

Re:What makes a good REPL? by Zak on Sunday August 27, 2017 @11:30PM (#15114240)
> If anything, you could always have a dedicated interpreter for interactive work

CMUCL does that. There's an interpreter that's used for the REPL and optionally for loading files on the fly, and an optimizing AOT compiler.

SBCL drops the interpreter and just runs the compiler with settings that make it reasonably fast for interactive use as I recall. Clojure, too just uses the compiler interactively and not a separate interpreter.

Re:What makes a good REPL? by mamcx on Monday August 28, 2017 @11:52AM (#15117420)
I wonder how do that. I'm building a language that truly will benefit for a REPL (is for database development) but also do it compiled simplified other things.

Is done on .NET/F#. I wonder how architect the thing so I can have a good repl yet compiled... but how?

Re:What makes a good REPL? by Zak on Monday August 28, 2017 @12:35PM (#15117880)
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.
Re:What makes a good REPL? by mamcx on Tuesday August 29, 2017 @12:46PM (#15125595)
Yeah, but I have not find a resource that explain how is done.
Re:What makes a good REPL? by Zak on Tuesday August 29, 2017 @08:40PM (#15128820)
I think is probably an RTFS sort of topic, as there may not be a manual.
Re:What makes a good REPL? by mamcx on Wednesday August 30, 2017 @01:00PM (#15133813)
RTFS? What this mean?

Is like "some inside knowledge" but undocumented?

Re:What makes a good REPL? by dllthomas on Wednesday August 30, 2017 @03:52PM (#15135383)
"Read The [Friendly] Source [code]"

For the same concept, I prefer "UTSL"

Re:What makes a good REPL? by bernadus_edwin on Monday August 28, 2017 @12:24PM (#15117752)
I hope jetbrain will do something magic on repl