lumo

:lumo: Standalone ClojureScript environment. Currently at version 1.9.0
richiardiandrea 2018-09-28T02:43:41.000100Z

@anmonteiro nobody, me included, said abandoned πŸ™

richiardiandrea 2018-09-28T02:44:08.000100Z

Please @viebel let's not spread fud pretty please πŸ˜ƒ

richiardiandrea 2018-09-28T02:44:35.000100Z

Apologize if it seemed so on my side

richiardiandrea 2018-09-28T02:45:26.000200Z

Super busy for any OSS at the moment except here and there actually

richiardiandrea 2018-09-28T02:50:41.000100Z

I should have refrained from writing that post on Reddit, things are always misinterpreted

Yehonathan Sharvit 2018-09-28T05:16:07.000100Z

@anmonteiro my goal was exactly to make @anmonteiro clarify that post on Reddit

futuro 2018-09-28T14:07:30.000100Z

@vigilancetech marrying in what way?

futuro 2018-09-28T14:08:32.000100Z

Wrt to node, lumo runs on node, so that’s pretty well married.

2018-09-28T15:21:55.000100Z

@vigilancetech I think you can just (js/require "electron-stuff") as needed from a lumo project

vigilancetech 2018-09-28T18:57:16.000100Z

okay, well, obviously I'll have to play with it. I guess I was misperceiving how electron worked. I think I was thinking that lumo ran atop its OWN node interpreter and electron had another one with a DOM/browser. Do "nodes" have their own bytecode somewhat akin to the JVM? Because lumo compiles directly from cljs to a node executable w/o going thru the js stage, right? And that's why its so fast?

mfikes 2018-09-28T19:20:38.000100Z

Yeah, Electron is its own thing which runs JavaScript. It would be an interesting idea if instead a modified version were created that directly ran self-hosted ClojureScript source.

πŸ‘ 1
mfikes 2018-09-28T19:22:23.000100Z

When in REPL mode, Lumo compiles directly from ClojureScript to JavaScript, evaluating that JavaScript in the V8 engine it is running.

πŸ‘ 1
mfikes 2018-09-28T19:23:16.000100Z

Lumo is fast in that is has low latency in starting up. But otherwise, self-hosted ClojureScript, considering raw compilation speed, is slower than JVM ClojureScript. (This is true for both Lumo and Planck.)

πŸ‘ 1
2018-09-28T21:12:20.000100Z

Is there a good story for using the Lumo REPL from Emacs? I tried installing inf-clojure, starting a Lumo socket REPL with -d and -n 5555 and connecting to it with M-x inf-clojure-connect and then (setq inf-clojure-repl-type "lumo") (or "Lumo"), but it's still a pretty rough experience. Are there step-by-step instructions somewhere aside from the inf-clojure README (those only got me this far)?

2018-09-28T21:22:02.000100Z

I'll clarify what I mean by "rough": hitting Enter with an empty line doesn't read/eval/print/loop; typing a valid clojure.core symbol such as "map" outputs an error "WARNING: Use of undeclared Var cljs.user/Throwable at line 1 ... <+30 lines of stack>" unless I disable company-mode.

2018-09-28T21:22:24.000100Z

Usable, just wondering if someone has already smoothened these things out somehow.

mfikes 2018-09-28T21:51:01.000100Z

@pandeiro Planck is similar to Lumo in its support for -d and -n so perhaps the instructions at http://planck-repl.org/ides.html are relevant. (I don't use Emacs, so can't vouch for the experience.)

2018-09-28T21:51:59.000100Z

Thanks @mfikes I hadn't thought to check the Planck docs

mfikes 2018-09-28T21:53:24.000100Z

Yeah, Planck and Lumo are similar in many respects. :)

richiardiandrea 2018-09-28T21:55:40.000100Z

@pandeiro I have used that combo for at least one full year

richiardiandrea 2018-09-28T21:55:56.000100Z

So please open an issue if you find any I will have a look

2018-09-28T21:56:37.000100Z

Thanks @richiardiandrea I will follow up if I make progress or get blocked