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.

Ruby 1.9 lands NaCl support, can run in Chrome

123 pointsby igrigorikabout 13 years ago

12 comments

bad_userabout 13 years ago
I see that some people wonder why this is useful. I wonder the same thing, and in general I don't like the concept of NaCl, which will be ActiveX all over again, even though it has a better security sandbox, as poor security wasn't the biggest problem of ActiveX ... seems to me like Google is trying really hard to be like Microsoft.<p>However, I can't help but notice that Ruby, as a programming language, is getting ported everywhere. It runs on all desktop operating systems, it runs on top of the JVM and on top of Android. For iOS there are 2 competing versions already. For .NET the interest was low, so IronRuby is kind of dying, but it's still decent for a .NET implementation. Ruby MRI evolved a lot from 1.8 to 1.9, being a decent VM for a scripting language. Rubinius is much like Smalltalk, having the standard library in Ruby itself, allowing you to access the internals of the VM. JRuby is awesome.<p>Then there are the specs. Amongst the scripting languages people use today, Ruby has some of the best specs. It started with RubySpec, which are test suites started by the people working on Rubinius and now used by everybody else. And now Ruby is becoming an ISO standard. This makes me happy because when it comes to equivalent dynamic languages, there is no spec other than the reference implementation, making third-party implementations an unfeasible task. Perl 5 is a really good example of this.<p>So does anybody else find this exciting? As a language, Ruby is really mature these days, while still being fun and productive. Much like Smalltalk was back in the day.
评论 #3990616 未加载
评论 #3990717 未加载
评论 #3990940 未加载
derefrabout 13 years ago
On a complete tangent: of all the language runtimes I'd expect to be converted to run in NaCl, I don't think Ruby's would top my list for "immediate practical uses." On the other hand, porting the Erlang BEAM VM--and thus allowing a web client to become a node in an Erlang process network, and have arbitrary code pushed to and executed on it by the network--would have tons of relevant applications. Anyone working on this? Should <i>I</i> start working on this?
评论 #3990563 未加载
评论 #3990579 未加载
评论 #3995651 未加载
评论 #3990053 未加载
charliesomeabout 13 years ago
I always thought Ruby used Git (<a href="https://github.com/ruby/ruby" rel="nofollow">https://github.com/ruby/ruby</a>), but this links to an SVN repo.<p>What's up with that?
评论 #3989605 未加载
评论 #3990134 未加载
评论 #3994289 未加载
iccoabout 13 years ago
Here is the same commit in GitHub: <a href="https://github.com/ruby/ruby/commit/76bc2d1ed7f13fb329c33f48756ea3c24c59a6ea" rel="nofollow">https://github.com/ruby/ruby/commit/76bc2d1ed7f13fb329c33f48...</a>
icepickabout 13 years ago
Has anyone built this and have a demo?
评论 #3995581 未加载
pjmlpabout 13 years ago
NaCl == Google's ActiveX, no thanks.
评论 #3991638 未加载
评论 #3991136 未加载
markus2012about 13 years ago
This is neat.<p>It would be fantastic if someone did the same thing with the jvm. Then I could use Java or Clojure or whatever JVM-based language I wanted - and make use of tons of pre-existing libraries.<p>NaCL is the sandbox I want, not the craplet sandbox. With NaCL I can use C libs and access useful OS services without having to sign the app and ask the user for permission to delete their hard drive.
EricR23about 13 years ago
Interesting. I wonder, though, what the advantages of executing sandboxed ruby in the browser are?
评论 #3989869 未加载
评论 #3991175 未加载
jgmmoabout 13 years ago
What is significance of this? When can I write Ruby as easily as JS/PHP?
评论 #3989682 未加载
评论 #3989711 未加载
评论 #3989638 未加载
ippaabout 13 years ago
While NaCL is exciting tech I wonder how user-friendly (load times, performance etc) and how easy to develop on top of it, it will be in reality.
评论 #3990609 未加载
评论 #3991138 未加载
peppertreeabout 13 years ago
Does anyone know if future versions of chrome will come bundled with ruby runtime? Or is it going to be a plugin download.
评论 #3989729 未加载
评论 #3990208 未加载
评论 #3991188 未加载
评论 #3989730 未加载
评论 #3990029 未加载
eagsalazarabout 13 years ago
On the one hand I get why people are excited about this and why people like coffeescript, especially when source maps start working in inspector/firebug. You can write web apps in the language you love and know. Cool!<p>On the other hand, this really sucks. Javascript is just maturing to where it is really awesome! And there is a ton of collaboration among app developers because javascript was the only game in town for so long.<p>Of course people will continue to collaborate but not, I fear, at the same level. 3rd party libraries will continue to be available, but not as many will fit in so neatly with people coding in other languages.<p>This has already come up a few times with coffeescript and in a couple years when it is truly easy for people to work in other languages, we'll have a tower of babel effect.<p>JS is really good. It isn't that hard to learn if you already know other languages. It has warts but it is also very powerful so often it is worth it (check out the lines of code and speed vs other languages):<p><a href="http://shootout.alioth.debian.org/u32/javascript.php" rel="nofollow">http://shootout.alioth.debian.org/u32/javascript.php</a>
评论 #3990911 未加载
评论 #3990129 未加载
评论 #3991127 未加载
评论 #3990497 未加载