Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mfikes
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
mfikes
11y ago
This makes it extremely easy to try out React Native with ClojureScript. Natal automates pretty much everything—you just type `natal MyProjectName` and you are up and running.
32.
▲
by
mfikes
11y ago
Yep, the ability to directly create network connections will ultimately land in Planck.
33.
▲
by
mfikes
11y ago
If you put the function source into edn and the function doesn't depend on anything but core constructs, it would be nearly trivial to eval using the new cljs.js. If those functions need to call into other ClojureScript namespaces that
34.
▲
by
mfikes
11y ago
Just for DX / ergonomics, I'd like to mimic more of the file I/O stuff that you have in Clojure, especially the ability to cope with streams. And then perhaps having network I/O would be interesting as well. Then there i
35.
▲
by
mfikes
11y ago
In fact, you no longer even need a full-fledged computer. :)
36.
▲
by
mfikes
11y ago
Here is some good exposition on that matter: https://github.com/clojure/clojurescript/wiki/Bootstrapped-C...
37.
▲
by
mfikes
11y ago
All difficult problems in the Clojure community are resolved by sleeping, preferably in a comfortable hammock.
38.
▲
by
mfikes
11y ago
Yep, and within a few months you will find yourself accidentally typing `(if` instead of `if (` in a C-based language.
39.
▲
by
mfikes
11y ago
None of this recent work facilitates compiling ClojureScript into CommonJS modules for use with Node. But, the opposite is in flight: ClojureScript now has support for depending on libraries that are packaged using the CommonJS system.
40.
▲
by
mfikes
11y ago
Also, check out http://clojurescript.net which is running bootstrapped ClojureScript. It starts up instantly on an iPhone.
41.
▲
by
mfikes
11y ago
It is actually pretty good for mobile and startup time isn't an issue. We have variants that run on iOS https://itunes.apple.com/us/app/replete/id1013465639?mt=8 and Android is in the works http:/&
42.
▲
by
mfikes
11y ago
You can dynamically compile and run ClojureScript scripts so long as you have properly hooked things up to a JavaScript engine. I've started on an effort that makes this easy OS X, wrapping JavaScriptCore and I could see similar effort
43.
▲
by
mfikes
11y ago
It can be very fast to get things running. Here is an example using "desktop" JavaScriptCore on OS X: https://twitter.com/mfikes/status/626884586392453120
44.
▲
by
mfikes
11y ago
Clojure and ClojureScript are practically the same language. Both are "hosted", relying on Java and JavaScript for low-level things and providing clean interop for those things. So, I see no problem with learning either. Especiall
45.
▲
by
mfikes
11y ago
Yes and no. You can write macros for which the source is ClojureScript, but they need to be kept separate. Here is a stab I took at explaining that subject: http://blog.fikesfarm.com/posts/2015-06-19-portable-macro-mu..
46.
▲
by
mfikes
11y ago
Some comments I've seen are that it is simply about establishing parity with Clojure 1.7 while keeping the current release strategy (it's not about semantic versioning). If you are curious, here is the Wiki page that tracks the pa
47.
▲
by
mfikes
11y ago
Wow, since 2013? So you've seen the state of ClojureScript change drastically over the past couple years. Have you stuck with the original tooling as it was back then, or did you try to track ClojureScript as it matured?
48.
▲
by
mfikes
11y ago
Thanks :) This stuff is coming together fast now. Android should be available soon as well. :)
49.
▲
by
mfikes
11y ago
Author here. Willing to answer questions.
50.
▲
Develop Now with ClojureScript for React Native
(blog.fikesfarm.com)
18 points
by
mfikes
11y ago
|
4 comments
51.
▲
by
mfikes
11y ago
Replete is a free and open source ( https://github.com/mfikes/replete ) ClojureScript REPL, and it was just now made available the App Store. It is based on a relatively recent ability for ClojureScript to “bootstrap” or
52.
▲
Show HN: iOS ClojureScript REPL
(blog.fikesfarm.com)
12 points
by
mfikes
11y ago
|
1 comments
53.
▲
by
mfikes
11y ago
While this blog post is one answer to "what", there is also a good FAQ covering questions related to "why": https://github.com/clojure/clojurescript/wiki/Bootstrapped-C...
54.
▲
by
mfikes
11y ago
Author here, willing to take questions on this. The post is intentionally made very simple, but if there are questions about the subtle details, glad to help out!
55.
▲
by
mfikes
11y ago
Just me thinking off the top of my head: I doubt ClojureScript's ability to compile itself helps with that, but I've never pondered that before. Hmm. I think Fogus's post is still relevant: http://blog.fogus.me
56.
▲
by
mfikes
11y ago
I actually suspect that you can make a solid app with ClojureScript _today_, QTTT being the thing that makes me think this is so. https://github.com/mfikes/qttt#react-native-port Also, Facebook has shipped apps based
57.
▲
by
mfikes
11y ago
From a tutorial / example perspective, there's this: https://github.com/omcljs/ambly/wiki/ClojureScript-React-Nat... The general state of things is covered here: http://blog.fikesfarm.com
58.
▲
by
mfikes
11y ago
Bootstrapped ClojureScript refers to the idea that ClojureScript can compile itself. Evidently Lisp was the first and ClojureScript was probably the most recent to accomplish this: https://en.wikipedia.org/wiki/Self-hos
59.
▲
by
mfikes
11y ago
Author here. Willing to answer questions.
60.
▲
by
mfikes
11y ago
A bootstrapped ClojureScript REPL now exists for Android. Replicator: http://tahmid.me/posts/2015-07-15-bootstrapped-cljs-repl-for...
More ›