8 ms·
Macchiato – A way to build Node web applications using ClojureScript
- spraak 9y agoI've been loosely following the development for a while. Glad that it's not dying and seems to be going somewhere, but not quite ready to build anything big on it yet (which I guess can be self fulfilling... someone has to build something big on it sometime to increase visibility)
- dharness 9y agoI think it should say "ClojureScript arrives on THE server", with the article.
- v4tab 9y agoI keep looking at ClojureScript, and decide to try it. And then I get to the "requires JDK" and just turn around and walk out the door. It seems like an interesting language, but it would be nice to have it run without that requirement.
- senand 9y agoWhy? (Honest question)
- grzm 9y agoThat's no longer true. ClojureScript can now be self-hosted. https://clojurescript.org/guides/self-hosting https://clojurescript.org/guides/self-hosting [Edit to correct: the following is no longer entirely valid: see downthread.] That said, if you want to benefit from the Google Closure optimizations, you currently do need to use the JVM toolchain. IIRC, there's been work on the Google Closure side to run without a JVM, and if that's the case, there may be opportunities in the future to take advantage of this in the ClojureScript toolchain.
- didibus 9y agoIt can, look at lumo: https://github.com/anmonteiro/lumo https://github.com/anmonteiro/lumo Its a ClojureScript compiler built in ClojureScript, which creates NodeJS targets. Self-Hosted ClojureScript's current downside is that it does not support as many of the ClojureScript libs. That said, the use of the JVM by ClojureScript is just as a build tool. Don't you already have Java installed on your computer anyways?
- vemv 9y agoThe fact that you "just walk out of the door" says more about you than about clojurescript or the jvm.
- weego 9y agoI have to admit I thought it was some kind of meta joke about the state of development right now. I just can't imagine many situations where you have cl/cljs capable devs yet want to reject all the benefits of the jvm and use node
- shizcakes 9y agoThe JVM, for all it's benefits, comes with a significant number of downsides. Many folks no longer wish to operate a JVM when less bloated and clunky runtimes exist.
- kimi 9y agoLike what? :-)
- shizcakes 9y agoIn this particular case, it looks like the author is preferring to target the Node runtime.
- FieryTransition 9y agoWell, there is an OpenJDK version that azul systems make called zulu, which is open source and free from oracle. The jvm is still a really good runtime. Java is a way more consistent language than javascript. Other languages running on top of the jvm are way more beautiful and sensible than javascript. The jvm can be leveraged many ways when it comes to performance and use cases, and I consider it way more stable than different javascript runtime implementations running in different browsers coded by different organizations. Out of curiosity, why do you think the JVM is such a thing of the past and so bloated and clunky? I'm curious about what reasons people have. From my own experience, I get that javascript is easy to start things in, but damn, it can get sucky once you have to maintain and refactor a bigger codebase. It just feels like javascript and node gets a lot of mindshare since it is what the web industry pushes down everyones throat sometimes :/
- 9y ago
- didibus 9y agoWhat stops you from using ClojureScript on the server today?
- noobermin 9y agoWhat stops you from using clojure on the server today?
- didibus 9y agoNothing, and I believe there's also nothing stopping you from using ClojureScript on the server today either with Nashorn or Nodejs. But Macchiato seems to imply that something was previously stopping us, which it solves, so I'm curious to know what that is, since I was under the impression it was already possible.
- yogthos 9y agoThe goal of Macchiato is to provide an idiomatic way to write Clojure apps on top of Node that mimics the way Clojure web stack works on the JVM.
- deleted 9y ago[deleted]
- darkstar999 9y agoHow many more coffee drink names are available for the taking? Do we reach peak javascript when that list is exhausted?
- lukealization 9y agoThere's two JS libraries using the term "ristretto", we've all heard of mocha. "espresso" seems to be a disused node.js tooling library, similarly, "flat white" is a disused CMS, "latte" is a failed CoffeeScript competitor. "Americano" seems to be a slightly more used tooling repository. I guess the less than inspiring names "short black" and "long black" are available? :)
- deleted 9y ago[deleted]
- foxfired 9y agoYou have a typing error under from closure: -he goal for Macchiato is... should be: The goal for Macchiato is...