mathiasbynens / todo

1 stars 0 forks source link

Homebrew formulae for JavaScript engines #17

Closed mathiasbynens closed 6 years ago

mathiasbynens commented 7 years ago

Being able to install stable versions of major ECMAScript engines through Homebrew would make it much easier to set up eshost on macOS, and to just test them out in general. The easier it is to install these engines, the more likely developers are to play around with them and file bugs.

Let’s create Homebrew formulae for each of them!

Please leave a comment if you want to work on any of these.

ariya commented 7 years ago

Is Nashorn necessary in this case? Installing JDK already gives jrunscript, a JS shell utilizing Nashorn.

Example: http://esprima.readthedocs.io/en/3.1/getting-started.html#using-esprima-with-rhino-or-nashorn.

oaleynik commented 7 years ago

@mathiasbynens thanks for this! Question: currently it installs version 5.1.281.47. Is there any way to install the latest V8?

mathiasbynens commented 7 years ago

@oaleynik Someone needs to update the formula for V8. The process is fairly straight-forward — are you up for it? https://github.com/Homebrew/homebrew-core/blob/master/CONTRIBUTING.md#submit-a-version-upgrade-for-the-foo-formula

oaleynik commented 7 years ago

@mathiasbynens I see someone have submitted PR for 5.4: https://github.com/Homebrew/homebrew-core/pull/7168

Also there is a formula for 5.7: https://github.com/pinepain/homebrew-devtools/blob/master/Formula/v8%405.7.rb

oaleynik commented 7 years ago

@mathiasbynens working on PR now. Will update to 5.8.57

mathiasbynens commented 7 years ago

@oaleynik Please post a link to the PR here once it’s ready!

oaleynik commented 7 years ago

@mathiasbynens will do! I don't have the fast network link here so fetching v8 takes a lot of time :) I'm actually making formula to build 5.8.48 as default and build latest with --HEAD option

oaleynik commented 7 years ago

@mathiasbynens https://github.com/Homebrew/homebrew-core/pull/9343

oaleynik commented 7 years ago

I'm not sure is it ok to export d8 executable only though

mathiasbynens commented 7 years ago

ChakraCore can now be installed with Homebrew! OP updated.

mathiasbynens commented 7 years ago

I’ve started to file requests to host each engine’s pre-built binaries for each OS/arch somewhere official.

This would simplify the Homebrew formulae and would drastically improve brew install $engine performance since we‘d then no longer have to build from source.

pinepain commented 7 years ago

Thank you very much! It would be great if they help us, packaging should cost nothing to them after binaries are actually built.

mathiasbynens commented 7 years ago

Since binary formulae aren’t welcome in homebrew-core, I’ve created a tap where such formulae can be hosted: https://github.com/mathiasbynens/homebrew-ecmascript

mathiasbynens commented 6 years ago

…and jsvu now solves this problem in a much better way. 🎉