TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

ClojureScript Is Not An Island: Integrating Node Modules

193 点作者 swannodette将近 8 年前

12 条评论

priornix将近 8 年前
One thing I really like about Clojure is how the language has basically stayed the same, but I can use it on the heavy server-side stuffs like working with Hadoop, Spark, ElasticSearch to the front-end stuff like React, React Native, to CLR and now into nodejs, while staying sane [1] in the process. It feels like comparing a nice tropical island paradise to a crowded, hectic, mutating market, where everyone is competing for your attention and selling their newest wares.<p>[1] <a href="https:&#x2F;&#x2F;hackernoon.com&#x2F;how-it-feels-to-learn-javascript-in-2016-d3a717dd577f" rel="nofollow">https:&#x2F;&#x2F;hackernoon.com&#x2F;how-it-feels-to-learn-javascript-in-2...</a>
swannodette将近 8 年前
This feature is really, really a long time coming. Myself and other ClojureScript core contributors are happy to answer any questions people may have.
评论 #14756335 未加载
评论 #14757175 未加载
评论 #14762218 未加载
lilactown将近 8 年前
This is awesome. CLJS is amazingly close to having as good host-interop with JavaScript as plain Clojure does with Java.<p>Will be interesting to see how this impacts things like the React Native and Node.js service-side stories.
mtnygard将近 8 年前
This is a nice step forward for developer experience. I struggled to get NPM and Clojurescript to play nicely. Ultimately, I had two different build systems at play in one project. (Three if you count Webpack.)<p>It&#x27;ll be nice to have such an easy integration.
nickbauman将近 8 年前
The thing I like about Clojurescript is the ability to escape the node&#x2F;NPM ecosystem entirely. It&#x27;s feature, not a bug, that I don&#x27;t want to interoperate with node&#x2F;NPM.
评论 #14756631 未加载
评论 #14756629 未加载
评论 #14757043 未加载
xiaoma将近 8 年前
What&#x27;s the best resource for learning CLJS as of mid 2017?
评论 #14758914 未加载
fiatjaf将近 8 年前
How does Clojurescript lookup for a module you declare?<p>For example, in <a href="https:&#x2F;&#x2F;github.com&#x2F;omcljs&#x2F;om&#x2F;blob&#x2F;c68e668a73cc534ecfdc71d6314abc3af911657e&#x2F;src&#x2F;main&#x2F;om&#x2F;core.cljs" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;omcljs&#x2F;om&#x2F;blob&#x2F;c68e668a73cc534ecfdc71d631...</a> (couldn&#x27;t think of any Clojurescript library), you have `[om.dom`, `[cljsjs.react`, `[goog.dom`. Where does the compiler look for these things? How does it knows one is a local module and the other an external package?<p>I need to know this so I can implement it in <a href="https:&#x2F;&#x2F;github.com&#x2F;fiatjaf&#x2F;module-linker" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;fiatjaf&#x2F;module-linker</a>
评论 #14756904 未加载
kcorbitt将近 8 年前
This is a great step for ClojureScript. It&#x27;s extremely difficult for a compile-to-JS language to bootstrap a large enough ecosystem to stand alone. A good interop story neatly sidesteps that issue.
评论 #14757505 未加载
fernandohur将近 8 年前
I just want to thank the Clojure(Script) team for such an amazing work. It really is a joy to work in Clojure(Script) and improvements like this make it an even better tool to work with.<p>Keep up the good work!
curryingyou将近 8 年前
How did clojurescript use node modules &#x2F; APIs before?
评论 #14760900 未加载
bribri将近 8 年前
Do I still need externs?
评论 #14760905 未加载
Scarbutt将近 8 年前
Scary, any newbie will read this and run away.<p>Is passing through the complexity, pain and all the caveats one can encounter from this really worth it for using Clojurescript? Serious question, now that with have ES6+ and today babel&#x2F;webpack are solid tools.<p>I mean from all the modules mess, I didn&#x27;t get what&#x27;s the correct way to do javascript interop right now.
评论 #14757243 未加载
评论 #14757069 未加载