cgrand / cljs-js-repl Goto Github PK
View Code? Open in Web Editor NEWUpgradable self hosted clojurescript repl
Upgradable self hosted clojurescript repl
(quoting @cgrand off Slack):
Let’s summarize the self-hosted cljs situation:
• stock repls (lumo or planck) can’t be upgraded BUT using https://github.com/cgrand/cljs-js-repl one can have a server socket upgradable repl (maybe one day it could be the default socket repl for both — wishful thinking)
• we have a print.cljc (https://github.com/plexus/unrepl/blob/lumo_support/src/unrepl/print.cljc)
• what is missing is a repl.cljs (given the IO differences I’m not sure a repl.cljc is worth it)
• and the blob gen (which is not high priority since stock socket repls are not upgradeable yet)
That’s all
eval
in self-hosted cljs has an async api (a callback is called with the result or error from the evaluation). Right now it's a provision (in case some IO for example has to be made during eval).
The problem is that cljs-js-repl
makes intensive use of dynamic variables. They are set when eval
is called, they can ve set again when the callback is called but not in between (again it's not a problem currently because eval
impl is sync in Lumo and Planck, so there's no in-between.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.