Coder Social home page Coder Social logo

Narwhal speed about coffeescript HOT 4 CLOSED

jashkenas avatar jashkenas commented on May 18, 2024
Narwhal speed

from coffeescript.

Comments (4)

jashkenas avatar jashkenas commented on May 18, 2024

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.

from coffeescript.

TBD avatar TBD commented on May 18, 2024

coffee --version
CoffeeScript version 0.1.5

coffee -i
require error: couldn't find "/Users/tbd/lib/coffee_script/narwhal/js/launcher.js"

if I add Dir.chdir(CS path) in command_line.rb:launch_repl then I get
require error: couldn't find "coffee-script"

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 ;)

from coffeescript.

jashkenas avatar jashkenas commented on May 18, 2024

Whoa. Thanks for the bug report -- coffeescript -i was completely broken when running outside of the coffee-script directory, and I never noticed. I've pushed out a 0.1.6 update that fixes the problem. Closing this ticket -- if it doesn't work for you, let me know.

from coffeescript.

TBD avatar TBD commented on May 18, 2024

problem fixed. thank you and keep up the good work !

from coffeescript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.