Question: I've seen it mentioned in the compiler README today which reminds me, is anyone here using elm-compiler as a library? I was thinking about building a Jupyter backend for Elm, just for fun

Asked By
Asked At
2018-04-14 19:00:09

Found 15 possible answers.

User Answered At Possible Answer
mfeineis 2018-04-14 19:04:53 I'd wait with that until after the 0.19 bigbang release :slightly_smiling_face:
ktosiek 2018-04-14 19:05:11 oooor I can use the master branch :wink: I mean, to the compiler API are the changes that big?
mfeineis 2018-04-14 19:05:33 although, if it's just for fun, just do it (tm) :slightly_smiling_face: if you do it use the master branch and also: the changes are immense well I think the compiler doesn't have a published API, all the stuff might be public but I wouldn't count on long running support ^.^
ktosiek 2018-04-14 19:07:17 I know, the last documented version is ~0.15 :slightly_smiling_face:
mfeineis 2018-04-14 19:09:11 My guess is that the work on the compiler is mostly done but who knows
ktosiek 2018-04-14 19:09:48 Evan, hopefully :smile:
mfeineis 2018-04-14 19:10:22 of that I'm pretty certain ^.^
eeue56 2018-04-14 19:18:52 jupyter already has an elm kernel no need to use the compiler as a library
mfeineis 2018-04-14 19:19:34 on a different note: I'm skimming the RealWorld backends right now, the F# one is quite nice although I've promised myself not to return to .NET anytime soon :grin:
ktosiek 2018-04-14 19:27:31 @eeue56 good point, I've just looked at the existing one Hmm, I'm not sure why I've expected an interpreter elm-repl does a full recompile each time?
jantonielli01 2018-04-15 00:05:06 Because that would be extremely better : p
luke 2018-04-15 05:52:29 We’re working on an interpreter for the repl
jackhp 2018-04-15 07:31:36 Ah that makes sense
robin 2018-04-15 16:50:02 Why would an interpreter be better? Several languages which value repl-driven development, like Clojure and Common Lisp, are compiled, not interpreted.
luke 2018-04-15 17:33:36 it's an interpreter of an ast. the compiler still compiles the code, but instead of executing it just semds the ast for the user's entry over the wire to be evaluated. it'll let us (a) avoid full recompiles and (b) inspect values and types at runtime so they can be presented with fancier visualizations

Related Questions