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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Scala.js 1.0.0-RC1

100 点作者 sjrd超过 5 年前

6 条评论

threeseed超过 5 年前
Would highly recommend pairing this with Slinky (React for Scala.js).<p><a href="https:&#x2F;&#x2F;slinky.dev" rel="nofollow">https:&#x2F;&#x2F;slinky.dev</a>
评论 #21639460 未加载
评论 #21637836 未加载
utkarshkukreti超过 5 年前
Anyone know what&#x27;s the minimum size of the compiled JS now? Is there any way Scala.js can produce code as compact as BuckleScript&#x2F;ReasonML in the future?<p>I like Scala&#x27;s syntax but the last time I tried Scala.js, the output was several hundred kb for something slightly more than a Hello World -- it used some List and Seq functions. I&#x27;d bet the comparable ReasonML output would likely be in tens of kb (including List and Array functions from Belt).
评论 #21637354 未加载
评论 #21637793 未加载
评论 #21637654 未加载
评论 #21638212 未加载
评论 #21637332 未加载
评论 #21637360 未加载
gedy超过 5 年前
I can&#x27;t speak for everyone, but while I loved programming in Scala, I can&#x27;t stand sbt[0] as a build tool. If I could use Scala.js without all this (e.g. Webpack or Rollup) could see myself using.<p>[0] <a href="https:&#x2F;&#x2F;www.scala-sbt.org" rel="nofollow">https:&#x2F;&#x2F;www.scala-sbt.org</a>
评论 #21643540 未加载
评论 #21639651 未加载
The_rationalist超过 5 年前
Can this call js libraries and the DOM trivially like typescript? Or does it leverage ffi?
评论 #21637305 未加载
评论 #21637858 未加载
AzzieElbab超过 5 年前
Always been curious about workflow of people who use Scala.js. I am a complete newbie when it comes to frontend. How do you do frontendish interactive development considering scalac&#x27;s slowness?
评论 #21639546 未加载
googleisevil6超过 5 年前
As someone who has dropped Scala on the backend (not doing FUD, just not happy with the JVM memory reqs)- what keeps me still using scala is Scala.js.<p>While some argue that there is more readable code with Bloomberg&#x27;s OCaml.js, I like Scala.js because of Scala itself, which is<p>1) Very well designed 2) Lots of &quot;functional&quot; constructs in accompanying libraries 3) Good typechecking 4) Fun language to use.<p>and because Scala.js interop with JS is very seamless.<p>Do check out ScalablyTyped repo on Github, a Scala.js analogue of DefinitelyTyped.<p>Being typed- one of the best things I like about Scala is that I can do something like this (provided by a couple of frameworks- Laminar, Scalatags et al)<p>&lt;pre&gt; div( Seq( div( &quot;div 1&quot; ) ), div( &quot;div 2&quot; ), b( &quot;bold stuff&quot;, i( &quot;italic inside bold&quot; ) ) ) &lt;&#x2F;pre&gt;<p>No more mismatching tags, wrongly spelled tags, unclosed tags. Typechecked HTML in some sense.<p>This would also be a good place to mention some alternatives where a mainstream language can also compile to JS so hopefully people can comment with their experience:<p>1) F#- Fable 2) OCaml- Bloomberg&#x27;s BuckleScript 3) Go- Gopher 4) Haskell- GHCJS<p>Other non-mainstream but compile-to-JS languages<p>1) PureScript 2) ELM 3) Clojure script (child comment)<p>... and of course... TypeScript! :)<p>It should be noted that while Scala.js isn&#x27;t as popular as some of it&#x27;s alternatives in &quot;popular&quot; programmer culture, the author is very focussed on correctness and I don&#x27;t know of anybody who has ever used Scala.js for a project but dropped it. (Happy to be corrected)
评论 #21637902 未加载
评论 #21637324 未加载
评论 #21638042 未加载
评论 #21638345 未加载
评论 #21637576 未加载
评论 #21639170 未加载
评论 #21641247 未加载
评论 #21638848 未加载