News for hackers. Stuff that matters.
Re:Show HN: Tonic – A data visualizing REPL for Node.js by tolmasky on Tuesday August 18, 2015 @01:58PM (#10080916)
Hey guys, @boucher, @rentzsch and I are happy to get this out there, we are around if you have any questions!
Re:Show HN: Tonic – A data visualizing REPL for Node.js by mcrowe on Tuesday August 18, 2015 @02:16PM (#10081051)
Beautiful work! Reminds me of a very polished Jupyter.

Any plans to support compile-to-js languages? Coffeescript, etc.

Re:Show HN: Tonic – A data visualizing REPL for Node.js by boucher on Tuesday August 18, 2015 @02:20PM (#10081074)
Possibly, depending on how much demand we see. You can obviously kind of hackily use coffeescript right now by just requiring the package, but that's not a real solution.
Re:Show HN: Tonic – A data visualizing REPL for Node.js by babby on Wednesday August 19, 2015 @12:43AM (#10083720)
I'd love CoffeeScript support.

Additionally... Tonic is comparible to CodePen in terms of testing and thus gave me the idea;

Perhaps you could also include other languages into your platform. Such as a Stylus REPL, SASS, SCSS etc. all of which, like CoffeeScript, are just JS modules on npm.

With compilers like Stylus and SCSS you would probably default the return value to be the compiled CSS, and with Coffee you'd need a toggle button to show what the compiled JS looks like, though not 100% necessary.

With that said, if there was just a way to set up a "build" script for a REPL to set up the environment to achieve the same result. As in, you require('stylus') then have some global variable stream/buffer, tonic.output, for which you could inject into the module of your choice to generate output, and then save it via tonic.buffer.write() or something. It could then be ridiculously flexible in terms of testing out finicky new languages/compilers.

Re:Show HN: Tonic – A data visualizing REPL for Node.js by vladikoff on Tuesday August 18, 2015 @02:04PM (#10080959)
This is amazing, good work!

Are you guys going to open source it or will this be a paid service?

Re:Show HN: Tonic – A data visualizing REPL for Node.js by tolmasky on Tuesday August 18, 2015 @02:29PM (#10081160)
Thanks so much

There's certainly a ton of stuff we'd love to open source, but we've been focused on getting it out the door. This product is also interesting in that the ops is as challenging as the code itself, so there may be some interesting opportunities to offer paid services later, if people start wanting to do more interesting things with it. We're really just kind of hoping people show us how they can use it.

Re:Show HN: Tonic – A data visualizing REPL for Node.js by anotherangrydev on Tuesday August 18, 2015 @02:22PM (#10081102)
I was impressed by the Time Travel.

If I delete a file through there, and "go back in time" would the files would still be there?

Re:Show HN: Tonic – A data visualizing REPL for Node.js by boucher on Tuesday August 18, 2015 @02:24PM (#10081115)
Yup. The time travel stuff is somewhat transparent and hard to talk about. If you think of the document as a .js file, than it is pretty easy to reason about what will happen. Things are just executed in order. The magic is that we don't have to re-execute a bunch of stuff every time just to get to your actual change.
Re:Show HN: Tonic – A data visualizing REPL for Node.js by nailer on Tuesday August 18, 2015 @03:40PM (#10081638)
> The time travel stuff is somewhat transparent and hard to talk about.

Wouldn't that mean it's opaque, since we can't see see into it?

PS. That's picky. This is a rad project and I love the time travel & the 'requiring packages automatically installing them' feature too.

Re:Show HN: Tonic – A data visualizing REPL for Node.js by anotherangrydev on Tuesday August 18, 2015 @02:30PM (#10081167)
Do you override 'require('fs')' or do you do some magic at the OS level ?
Re:Show HN: Tonic – A data visualizing REPL for Node.js by boucher on Tuesday August 18, 2015 @02:36PM (#10081212)
We use docker pretty extensively, and so between each code cell we can evaluate the layered filesystem docker provides for changes and save them.
Re:Show HN: Tonic – A data visualizing REPL for Node.js by anotherangrydev on Tuesday August 18, 2015 @05:33PM (#10082360)
Good, thanks.
Re:Show HN: Tonic – A data visualizing REPL for Node.js by chrislloyd on Tuesday August 18, 2015 @05:11PM (#10082224)
This is awesome. Any plans to support other JS based languages (like Clojure via. planck)?
Re:Show HN: Tonic – A data visualizing REPL for Node.js by boucher on Tuesday August 18, 2015 @05:14PM (#10082244)
See the other answer in this thread :)
Re:Show HN: Tonic – A data visualizing REPL for Node.js by gamekathu on Wednesday August 19, 2015 @12:39AM (#10083709)
awesome work! would be a great tool in learning and teaching node :)