190 points · by tosh · 7y ago · 46 comments
Replete iOS was one of the first applications of self-hosted ClojureScript (around 2015, the first time we could evaluate ClojureScript forms directly on iOS, no JVM in sight).
Just recently Replete was ported to Android, via some amazing work of Roman Liutikov.
It is all open source, for those interested in how it works: https://github.com/replete-repl/
(replete.http/get "http://replete-repl.org")
from
http://replete-repl.org/replete-namespaces.html
I get a "warning: no such name space" (on android).
Also, seems there's no selecting/copying text from the repl output, which is a bit annoying...
(require ‘replete.http)
in order to load the code for that namespace.You should be able to copy output by pressing on a history row.
> You should be able to copy output by pressing on a history row.
Appears I can copy the historical input but not the output.
As for http/get - after the require i get a "Cleartext HTTP traffic to (...) not permitted" with a http url, and an {:error nil} with a https url...
Is there a more appropriate forum for discussing tutorial/getting started stuff? I'd like to play, but a set of (tested) koans seems to be required.
This wasn't clear to me before or after I looked at the page.
They have hugely different applications, but at a certain level, they look like the same language.
https://news.ycombinator.com/item?id=11658418
and you could edit text in Lisping and send it to Replete for evaluation. (The generic hooks still exist in Replete, so in theory other apps could do the same.)
When Lisping existed (it is evidently no longer available), I was never really motivated to use it to develop code with Replete.
Clojurists emphasize simplicity and pragmatism. Why most popular front-end cljs wrappers are for React? Because it simply makes sense. It just works. If for any reason it stops making sense they'd quietly adopt something else.
Do you really enjoy chasing the hype and rebuilding your app every few months? Have you caught up with all the syntactic features added in ES/TS in the past few years? All developers in the team as well? Or are they still fighting if it is okay to use implicit returns or they are pure evil? Should you use rambda or lodash, what about immutable.js? Don't even let me start on webpack and the plugins.
People often falsely claim that Clojure codebases are not scalable because they haven't seen codebases built by large teams. The truth is - Clojure and Clojurescript are so practical that it doesn't require to have a huge team to build something really impressive and it definitely doesn't require to have a large team to maintain it.
Why do you think Clojure and F# coming as the most payed programming languages in most surveys for the past few years? If I had to choose either to have a team of 5-6 JS/TS devs and pay them 100K each, or to have 3 Clojure(script) devs and pay them 200K each - I'd rather do the latter, because ROI in that case is much, much higher.
I think that stability is a big advantage, depending on what type of client side applications you are building. I know of several consulting companies that are using ClojureScript for their client side work, and they can basically just continue building apps without having to re-architect their underlying framework every year. That can have a big effect on the cost of development.
I also highly recommend that any ClojureScript development is done using shadow-cljs, and that allows very convenient integration with npm modules.
Easier to list the case against. The case against is it has a steeper learning curve and it's harder to hire for.
If you require people to be co-located Berlin has a very strong Clojure community for example, depends on where you are though.
The official guide recommends using webpack, the irony. https://clojurescript.org/guides/webpack
Cljs seems to dodge a mountain of stupidity. Even react makes more sense in cljs than js.