-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Narwhal speed #7
Comments
Is coffee -i not working for you at all? On the latest 0.1.5? Let me know if it isn't. So, the interactive mode is still a huge hack -- it's shelling out to the compiler (in Ruby) for every line you type, and then taking that JS back and evaling it. I wouldn't worry too much about the speed. That said, the idea with Narwhal is to provide multiple backing engines that you can choose from. I haven't tried it, but I think you should be able to install the "k7" engine, which uses Google's V8, and get much faster script execution. |
coffee --version coffee -i if I add Dir.chdir(CS path) in command_line.rb:launch_repl then I get narwhal was installed via source /Users/tbd/Software/narwhal/bin/activate for now I created a command in TextMate CoffeeScript bundle to compile and run it in jsdb and I am happy ;) |
Whoa. Thanks for the bug report -- |
problem fixed. thank you and keep up the good work ! |
```coffeescript defer { a : { b: c } } ``` But capture works as usual
```coffeescript defer { a : { b: c } } ``` But capture works as usual
```coffeescript defer { a : { b: c } } ``` But capture works as usual
having troubles with CS in interactive mode due Narwhal not finding coffee-script.js I used JSDB.org and it is much faster on small script (sorting an array)
time jsdb test.js
real 0m0.017s | user 0m0.010s | sys 0m0.006s
vs
time narwhal test.js
real 0m1.371s | user 0m1.098s | sys 0m0.150s
is there any plans in having other JS compilers added for interactive mode ?
The text was updated successfully, but these errors were encountered: