Giter Site home page Giter Site logo

cljs-js-repl's People

Contributors

cgrand avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

mfikes xyhp915

cljs-js-repl's Issues

self-hosted CLJS situation

(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

async `eval`

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.