ClojureScript Is Not An Island: Integrating Node Modules
31–40 of 43 posts
Re: ClojureScript Is Not An Island: Integrating Node Modules
#32Earlier quoted context omitted.
That's a surprisingly positive result. Usually I expect most JavaScript libraries to be destroyed by Closure's Advanced optimizations, unless they've been written specifically with Closure in mind (which they're not). Anyway, congrats on those features :-) Scala.js doesn't do the part where Closure is applied on JS dependencies; it's only applied to Scala.js code (though with the advantage that we never need any exte…
how does interop works in scalajs without externs?
It's even slightly more powerful than using externs: if you use the same property name both in internal accesses and external ones, Scala.js can rename the former without touching the latter. An externs-based solution won't be allowed to rename the internal accesses.
Re: ClojureScript Is Not An Island: Integrating Node Modules
#33Re: ClojureScript Is Not An Island: Integrating Node Modules
#34Earlier quoted context omitted.
It sounds like this handles extern inference if possible. Is that the case? I have wanted to play around with Webrtc for a while now but it basically requires adapter.js ( https://github.com/webrtc/adapter ) and as a result a ton of externs. It would be cool if I could just plug and play!
There's no extern inference required here as all the original sources are passed directly through Google Closure Compiler. As a benchmark for feasibility when we started we chose React.js as it's non-trivial and heavily depended upon in the ClojureScript ecosystem. We discovered that over all of React's sources we only need 4 extern definitions for 4 generated names in EventsPlugin. So as long as the JS library in qu…
Re: ClojureScript Is Not An Island: Integrating Node Modules
#35What's the best resource for learning CLJS as of mid 2017?
As a beginner, I recommend you looking at the Reagent [7] or Rum [8] React library first, than you can look at something more complex and full-featured like Om [9] later (whose author is also a ClojureScript core contributor @swannodette).
PS: You can also learn by implementing a Dashboard like this [10]. Disclaimer: I am the author of this library.
[1] http://funcool.github.io/clojurescript-unraveled/
[2] http://clojurescriptkoans.com/
[3] http://todomvc.com/examples/reagent/
[4] https://github.com/reagent-project/reagent/tree/master/examp...
[5] https://github.com/gadfly361/cljs-todomvc
[7] https://reagent-project.github.io/
[8] https://github.com/tonsky/rum
Re: ClojureScript Is Not An Island: Integrating Node Modules
#36Earlier quoted context omitted.
There's no extern inference required here as all the original sources are passed directly through Google Closure Compiler. As a benchmark for feasibility when we started we chose React.js as it's non-trivial and heavily depended upon in the ClojureScript ecosystem. We discovered that over all of React's sources we only need 4 extern definitions for 4 generated names in EventsPlugin. So as long as the JS library in qu…
What were those four names?
Re: ClojureScript Is Not An Island: Integrating Node Modules
#37What's the best resource for learning CLJS as of mid 2017?
Depends whether you learn best by reading [1], answering some interactive questions/koans [2], or downloading and playing around with a ToDoMVC app example [3][4][5] or a mixture of the above. Feel free to join the #clojurian Slack channel [6] if you need help. As a beginner, I recommend you looking at the Reagent [7] or Rum [8] React library first, than you can look at something more complex and full-featured like O…
The #1 thing I'm usually looking for is something that eliminates any time-wasting hassles related to getting set up, and all the major language features in some set of working examples.
After that, I usually write little command line apps, play with graphics a bit and convert some simple games into the language.
Re: ClojureScript Is Not An Island: Integrating Node Modules
#38Earlier quoted context omitted.
Depends whether you learn best by reading [1], answering some interactive questions/koans [2], or downloading and playing around with a ToDoMVC app example [3][4][5] or a mixture of the above. Feel free to join the #clojurian Slack channel [6] if you need help. As a beginner, I recommend you looking at the Reagent [7] or Rum [8] React library first, than you can look at something more complex and full-featured like O…
I like small books that build progressively more complex projects (Dave Thomas's Elixir book was good that way, Realm of Racket was my favorite). Short video tutorials are nice as a supplement are nice, too. Daily Drip's elm videos were fantastic. The #1 thing I'm usually looking for is something that eliminates any time-wasting hassles related to getting set up, and all the major language features in some set of wor…
Re: ClojureScript Is Not An Island: Integrating Node Modules
#39How did clojurescript use node modules / APIs before?
Re: ClojureScript Is Not An Island: Integrating Node Modules
#40Do I still need externs?