3 ms·
It's already done often, especially for frontend gems. See execjs [0]. [0] https://github.com/sstephenson/execjs https://github.com/sstephenson/execjs
by byroot 12y ago
It's already done often, especially for frontend gems. See execjs [0].
[0] https://github.com/sstephenson/execjs https://github.com/sstephenson/execjs
- mrinterweb 12y agoI'm surprised I haven't heard to that gem. I would assume that adding Duktape as another supported runtime to execjs would be possible.
- byroot 12y agoIt's what power the coffeescript and uglifier support in Rails. You may not have heard of it, but you likely used it.
- joshpeek 12y agoHa, I guess someone started this awhile ago. https://github.com/judofyr/duktape.rb https://github.com/judofyr/duktape.rb I opened a PR update it to 1.0.
- joshpeek 12y agoIf someone publishes a ruby-duktap c extension, I'll definitely get that supported in ExecJS.