8 ms·
Does anybody knows which is the javascript interpreter he is using on the screencast?
by hchinchilla 15y ago
Does anybody knows which is the javascript interpreter he is using on the screencast?
- jarito 15y agoLooks like something that comes as part of Webkit: http://trac.webkit.org/wiki/JSC http://trac.webkit.org/wiki/JSC
- GuiA 15y agoIt's jsc (comes with Webkit) - it's present on Mac OS X by default in /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc You can just do: sudo ln /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc /bin/jsc To be able to invoke it directly from the command line.
- hchinchilla 15y agoThanks, I'll look how to get this working on linux.
- gpmcadam 15y agoAlternatively, you could use Rhino Shell (https://developer.mozilla.org/en/Rhino_Shell https://developer.mozilla.org/en/Rhino_Shell) - it even supports tab completion!
- mbq 15y agoAt least Arch has `js`package which gives you js command to obtain JS shell; in fact it is just Mozilla's SpiderMonkey. Anyway, the best option for "standalone JS" is node, mainly because it has a sane way of importing code from other files.
- betterth 15y agoMy Chrome install on Windows has the same thing. I push ctrl+shift+c to load the developer tools, and click on console and it's a very similar tool to what he was using.
- bitops 15y agoThat is extremely useful. Do you know if any testing libraries or other useful functionality have been built around this? I suppose if you are a WebKit-only developer, this utility could have many useful applications.
- jrockway 15y agoThere's also mozrepl, which lets you evaluate code in Firefox from the command-line or Emacs.
- phuff 15y ago<shamelessplug>If you want to use any of these inside emacs check out my js-comint mode: http://js-comint-el.sourceforge.net/ http://js-comint-el.sourceforge.net/ Makes it really easy to do things like write code in one buffer and execute it in another. </shamelessplug>