driphter / clojure-monkey Goto Github PK
View Code? Open in Web Editor NEWA node module written in ClojureScript for turning ClojureScript code into a Spider-Monkey AST.
License: MIT License
A node module written in ClojureScript for turning ClojureScript code into a Spider-Monkey AST.
License: MIT License
The current output file is over 6 MB (~700 KB gzipped). This is probably being caused by the usage of Closure's "simple" optimizations. Currently, we can't use the "advanced" optimization because it munges the names of the cljs.core
functions we are trying to export. Calls to require also seem to get too mangled for things like Browserify to recognize.
Possible solutions to investigate:
goog.exportSymbol
on everything in cljs.core
(similar to mori)require
calls.Being able to restrict the usage of certain functions could be appropriate when using clojure-monkey to run code in a sandbox (eg: CodeCombat, 4clojure, etc.). This may be a bit outside the scope of the project, but it seems useful enough to warrant it's inclusion.
This could be done by:
cljs.js/analyze-str
clojure.walk
looking for any usages of the restricted Var's identifiercljs.compiler.api/emit
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.