TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Announcing Scala.js v0.1

171 pointsby llambdaover 11 years ago

15 comments

auggieroseover 11 years ago
This is a game changer. I&#x27;ve used it over the last few 3 or 4 months, and it is really stable and usable. I am betting an entire (although academic) project on it: <a href="http://proofpeer.net" rel="nofollow">http:&#x2F;&#x2F;proofpeer.net</a> (note that Clojure is mentioned there as a language of choice, but I switched to Scala since then as Scala provides a similar level of conciseness with all the goodies of a powerful static type system with support for both Java and Javascript).
评论 #6822902 未加载
评论 #6823610 未加载
评论 #6824203 未加载
dysocoover 11 years ago
I remember how years ago I complained about how Javascript was the only language aviable for the web.<p>Nowadays you can even run sliced bread on Javascript... though, wouldn&#x27;t it be better to focus on developing languages on top of asm.js or PNacl so we wouldn&#x27;t rely on JS?
评论 #6821582 未加载
评论 #6825022 未加载
lihaoyiover 11 years ago
Fun demos using Scala.js:<p><a href="http://lihaoyi.github.io/scala-js-games/" rel="nofollow">http:&#x2F;&#x2F;lihaoyi.github.io&#x2F;scala-js-games&#x2F;</a> <a href="http://lihaoyi.github.io/scala-js-game-2/" rel="nofollow">http:&#x2F;&#x2F;lihaoyi.github.io&#x2F;scala-js-game-2&#x2F;</a><p>The second one has some performance issues, and bugs out initially when first opened in FF (need to refresh before it works properly) but otherwise it&#x27;s pretty fun =)
jakozaurover 11 years ago
For those who haven&#x27;t heard about it. The initial presentation: <a href="http://www.parleys.com/play/51c380bfe4b0ed8770356866/" rel="nofollow">http:&#x2F;&#x2F;www.parleys.com&#x2F;play&#x2F;51c380bfe4b0ed8770356866&#x2F;</a>
wodenokotoover 11 years ago
As someone who doesn&#x27;t really know anything about scala, why is this a cool thing?<p>While such an early release is definitely aimed at scala enthusiast, I&#x27;d still like a sales pitch for the rest of us.
评论 #6821959 未加载
评论 #6821621 未加载
评论 #6821562 未加载
jroseattleover 11 years ago
I&#x27;m finding a sort of corollary of JavaScript being a byte-code equivalent for the web, what with everything being translated to compilation in js syntax.<p>Maybe the browsers need to move beyond JavaScript interpretation, and think about things more like a VM to allow actual scala&#x2F;java&#x2F;c#&#x2F;ruby&#x2F;python&#x2F;erlang&#x2F;lua&#x2F;something-completely-new&#x2F;etc. to be executed in context.<p>Or, maybe a more forward-thinking approach would be to consider &quot;docker in the browser&quot; -- containers that run in execution. Probably a performance nightmare, but I&#x27;m thinking of an interesting compilation of bits -- CMS done well in Ruby, an e-commerce cart in Python, data charts in Erlang, and enterprise-based workflows in Java -- all working together, client-side.<p>Disclaimer: it&#x27;s a holiday and I&#x27;m enjoying a nice cabernet sauvignon. Thought clarity and consistency may not necessarily be present at this point in time.
评论 #6821982 未加载
leokunover 11 years ago
I wonder how complicated it is to parse JSON in Scala.js. It&#x27;s pretty involved in regular Scala and incredibly easy in JavaScript, so what&#x27;s it like in Scala.js?
评论 #6821285 未加载
评论 #6821561 未加载
评论 #6821286 未加载
ShardPhoenixover 11 years ago
This is exactly what I&#x27;ve been hoping for - I&#x27;d like to write little games&#x2F;etc in Scala, but it&#x27;s a lot easier to distribute JS.
krisajenkinsover 11 years ago
Anyone know how the compilation times compare with regular Scala?
评论 #6821638 未加载
评论 #6822737 未加载
memracomover 11 years ago
Too bad that there is not more effort on Scala.NET instead of this. Lots of people are comfortable with writing Javascript in the browser so all of these compilers emitting Javascript end up being little more than a technology demo. But Scala on the .NET vm would really fill a gap.
评论 #6822021 未加载
评论 #6822209 未加载
评论 #6823052 未加载
评论 #6823061 未加载
评论 #6824055 未加载
评论 #6822734 未加载
julianduqueover 11 years ago
It supports Node.js or is only for web applications?
评论 #6822735 未加载
myth_drannonover 11 years ago
So now it&#x27;s Dart vs Scala. Great to have some good options.
评论 #6821700 未加载
coldcodeover 11 years ago
Is there anything Javascript can&#x27;t do?
评论 #6821763 未加载
评论 #6821737 未加载
评论 #6821902 未加载
评论 #6823059 未加载
macmacover 11 years ago
They will be adding prefix notation next...
ghostdiverover 11 years ago
Fun stuff, but again, doesn&#x27;t come with any tools. Microsoft Typescript is much better on that matter.<p>What javascript universe needs right now is not some more of syntactic sugar clusterfuck followed by debugging nightmare, but real tools, static code analysis. I don&#x27;t want to waste my precious time dealing with closure compiler+scala something combo. It&#x27;s fun from programmers POV, but still it won&#x27;t make me pay my bills!<p>reality check, please
评论 #6821315 未加载
评论 #6821568 未加载
评论 #6822657 未加载