swannodette / cljs-bootstrap Goto Github PK
View Code? Open in Web Editor NEWClojureScript compiling ClojureScript
ClojureScript compiling ClojureScript
I followed the instructions and the node repl works. After I do:
lein run -m clojure.main script/browser.clj
and launch the server, I get a "Failed to load resource: net::ERR_CONNECTION_REFUSED"
http://localhost:9000/repl?xpc=%7B%22cn%22%3A%22GughUVB9bi%22%2C%22tp%22%3Aโฆs.txt%22%2C%22lpu%22%3A%22http%3A%2F%2Flocalhost%3A9000%2Frobots.txt%22%7D
presumably from this line (59174) in main.js:
"undefined" === typeof cljs_bootstrap.dev.conn && (cljs_bootstrap.dev.conn = clojure.browser.repl.connect("http://localhost:9000/repl"));
cljs-bootstrap.repl> (< 10 2)
false
cljs-bootstrap.repl> (< 10 0)
Error
at new cljs$core$ExceptionInfo (/Users/nasser/Scratch/cljs/repl-all.js:33197:11)
at Function.cljs.core.ex_info.cljs$core$IFn$_invoke$arity$3 (/Users/nasser/Scratch/cljs/repl-all.js:33238:10)
at Function.cljs.core.ex_info.cljs$core$IFn$_invoke$arity$2 (/Users/nasser/Scratch/cljs/repl-all.js:33235:28)
at cljs$core$ex_info (/Users/nasser/Scratch/cljs/repl-all.js:33225:32)
at Function.cljs.tools.reader.reader_types.reader_error.cljs$core$IFn$_invoke$arity$variadic (/Users/nasser/Scratch/cljs/repl-all.js:34775:27)
at cljs$tools$reader$reader_types$reader_error (/Users/nasser/Scratch/cljs/repl-all.js:34772:54)
at cljs$tools$reader$read_number (/Users/nasser/Scratch/cljs/repl-all.js:35438:60)
at /Users/nasser/Scratch/cljs/repl-all.js:36447:56
at cljs$tools$reader$reader_types$log_source (/Users/nasser/Scratch/cljs/repl-all.js:34843:20)
at cljs$tools$reader$target (/Users/nasser/Scratch/cljs/repl-all.js:36426:56)
cljs-bootstrap.repl> (> 10 1)
true
cljs-bootstrap.repl> (> 10 0)
Error
at new cljs$core$ExceptionInfo (/Users/nasser/Scratch/cljs/repl-all.js:33197:11)
at Function.cljs.core.ex_info.cljs$core$IFn$_invoke$arity$3 (/Users/nasser/Scratch/cljs/repl-all.js:33238:10)
at Function.cljs.core.ex_info.cljs$core$IFn$_invoke$arity$2 (/Users/nasser/Scratch/cljs/repl-all.js:33235:28)
at cljs$core$ex_info (/Users/nasser/Scratch/cljs/repl-all.js:33225:32)
at Function.cljs.tools.reader.reader_types.reader_error.cljs$core$IFn$_invoke$arity$variadic (/Users/nasser/Scratch/cljs/repl-all.js:34775:27)
at cljs$tools$reader$reader_types$reader_error (/Users/nasser/Scratch/cljs/repl-all.js:34772:54)
at cljs$tools$reader$read_number (/Users/nasser/Scratch/cljs/repl-all.js:35438:60)
at /Users/nasser/Scratch/cljs/repl-all.js:36447:56
at cljs$tools$reader$reader_types$log_source (/Users/nasser/Scratch/cljs/repl-all.js:34843:20)
at cljs$tools$reader$target (/Users/nasser/Scratch/cljs/repl-all.js:36426:56)
Hi @swannodette
I was wondering whether you're planning to write a blog post regarding the clojurescript compiler's inner working. I'm immensely intrigued by the project and after some Googling, I found that this can be leveraged towards different hosts as well.
So far, I've found
Clojure-to-C
Clojure-Scheme
But these are a bit dated and the structure of the clojurescript
repo seems to have changed. Would you please, write a blog post about the internals? The CLJS compiler, along with the chez-scheme compiler are the most approachable ones for a driven lisp hacker.
Also, I'm aware about the M. Fogus' talk on InfoQ, which outlines the compiler a bit but that too seems dated.
Thank you for Clojurescript, the talks and all the work that you do for open source. I appreciate it and I learn a lot from you ๐
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.