其他 以后能用 Ruby 进行严肃的前端编程么?

blacktulip · June 18, 2015 · Last by zw963 replied at June 14, 2017 · 3829 hits

http://arstechnica.com/information-technology/2015/06/the-web-is-getting-its-bytecode-webassembly/

WebAssembly 据说打算让浏览器支持一种 binary 执行文件,然后有许多语言都能编译成这个 binary ... 我的理解不知道对不对

那我能用 Ruby 么...

http://opalrb.org/

本来我觉得这个编译器没什么前途,后来发现 Asciidoctor 就是用 opal 编译到 asciidoctor.js 的。

Coffee 其实就是 Ruby syntax js 了。

@msg7086 不能随便空格的 ruby syntax ...

可能会很有前途... 光数据类型的处理都比 js 强

浏览器厂商肯不肯用还是问题

#6 楼 @chaucerling

WebAssembly is a new project being worked on by people from Mozilla, Microsoft, Google, and Apple, to produce a bytecode for the Web.

https://github.com/voltrb/volt 这也是个 ruby 写前端的框架

前端有统一的 bytecode 以后,开发语言就可以百花齐放了,当然遇到问题也更加难调试了,以后开发 Web App 需要开“模拟器”了。

这对 JavaScript 来说不算是好消息咯?

cool,但是不知何年何月才能普及。

期望能实现

#5 楼 @luikore 用 coffee|type 还是没有 ruby 爽

挺好,底层优化也简单得多了

感觉很棒啊,对于不喜欢 javascript 的人。

Web is dead. It is the best time to re-invent OS now.

抱歉挖坟,现在主流的 Firefox 版本 52 已经支持了. Chrome 的下一个主流版本也会支持。

这两家只要支持,可以认为 %70 的浏览器已经支持了。

You need to Sign in before reply, if you don't have an account, please Sign up first.