Closed mathiasbynens closed 6 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.
@mathiasbynens thanks for this! Question: currently it installs version 5.1.281.47. Is there any way to install the latest V8?
@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
@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
@mathiasbynens working on PR now. Will update to 5.8.57
@oaleynik Please post a link to the PR here once it’s ready!
@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
@mathiasbynens https://github.com/Homebrew/homebrew-core/pull/9343
I'm not sure is it ok to export d8
executable only though
ChakraCore can now be installed with Homebrew! OP updated.
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.
Thank you very much! It would be great if they help us, packaging should cost nothing to them after binaries are actually built.
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
…and jsvu now solves this problem in a much better way. 🎉
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!
v8@5.8
formula by @pinepainbrew install v8 --with-icu4c --with-readline
PR: https://github.com/Homebrew/homebrew-core/pull/9323brew install chakra --with-icu4c
-v
/--version
to binaryjsshell
)https://archive.mozilla.org/pub/firefox/tinderbox-builds/mozilla-release-macosx64/1486087028/jsshell-mac.zip
where 1486087028 is the build number — PR: https://github.com/Homebrew/homebrew-core/pull/9607brew install spidermonkey
jsc
)-v
/--version
tojsc
binary/System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc
Please leave a comment if you want to work on any of these.