In the past few years, I have developed one of the most rewarding experiences of his career, would like to share with you.
Recently, we have some work to do to create an application for iOS ClojureScript REPL, Replete. Whole looks cool, and the corresponding Android application will only be considered barely created. Unfortunately, my mediocre Android technology, it can not get started immediately.
However, this aspect of the technology also Tahmid Sadik got on the table.
In fact, Replete also need to do this, used is a function of Ambly. Of course I know, Replete is an independent REPL, it does not need to Ambly. But I used a little trick, you can reuse this function, so ClojureScript start running Replete inside.
By the way, I initially intended to use to achieve Replete React Native of. The results found that the use of ClojureScript React Native support is still too early, but can be guided ClojureScript really just the beginning of the function, in order to be able to practice a lot of effort needs to be done. So, for Replete, I kept it simple, even Goby also not used.
With the above results, a good point is not required React Native dependence (Android version has not been officially released publicly), nor Goby dependent (only supports iOS). Replete built ClojureScript very simple, the use of traditional iOS UI, it proved to be helpful for Android Tahmid to accomplish the same functions.
After that, he basically can boot successfully ClosureScriptle.
cljs.core.apply.call (null, cljs.core.inc, new cljs.core.PersistentVector (null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, , null))
Then finally Tahmid 2.0. Awesome! This should be the first time ever, running up ClojureScript on Android-based embedded Rhino.
replete.core.read_eval_print.call (null, '(+ 1 2)')
Wait a minute, Transit in execution goog.require ( 'replete.core'); time is a problem, it should be with randomUUID related. Tragedy, looks obviously there are many places need to be addressed.
I got 3
(+ 12) = 3
... And then continue to bother me, but also without hair blog. In this way, guided ClojureScript REPL on Android born!
It is simply a storm!
Clojure ~ 14 Miao
Clojure / Skummet ~ 11 Miao
ClojureScript ~ 2 Miao
These are the results on the simulator to run, but I still think it shows the true realization ClojureScript reduce computation delay on mobile devices commitments. I think it's time for ClojureScript active, used to develop applications for mobile devices!