News for hackers. Stuff that matters.
Re:NeDB, a pure Javascript database for Node.js and Node Webkit by bsg75 on Thursday June 20, 2013 @10:33AM (#5912276)
The trend continues where all things eventually get implemented in Javascript. Waiting for JS.js
Re:NeDB, a pure Javascript database for Node.js and Node Webkit by voidlogic on Thursday June 20, 2013 @11:07AM (#5912506)
Indeed. In my mind much of the value of javascript is for rapid protoyping and for allowing those who enjoy JS (I do not [1]), to build medium performance tier applications.

What strikes me as odd is people wanting to write things that traditionally are written in C/C++ and more recently also in Go/Rust/Java/D in JS. The reason these arguably slower, in development speed, languages are used for things like DBs is that they are write once re-use thousands of times, and this use case warrants being slightly lower level and less rapid in development and gaining performance and I would argue maintainability.

[1] Note: In case you are wondering why I dislike JS: 1. JS's extensive use of spaghetti cough I mean callbacks 2. Higher effort needed to use compute resources for a single task in a parallel fashion compared to other langs 3. I dislike dynamically typed languages (I belive they are harder to maintain) 4. Performance: http://benchmarksgame.alioth.debian.org/u64/benchmark.php?te...

Re:NeDB, a pure Javascript database for Node.js and Node Webkit by louischatriot on Thursday June 20, 2013 @11:17AM (#5912572)
The goal in this particular case is to have all your code in a single language for easy distribution. If you write and distribute a Node.js webapp or Node Webkit app (which I guess you don't since you don't like JS!), needing your users to also install whichever DB you use is a pain for them (esp. for desktop apps with Node Webkit, users may not be developers). That's the reason I built this.
Re:NeDB, a pure Javascript database for Node.js and Node Webkit by voidlogic on Thursday June 20, 2013 @01:00PM (#5913180)
First off, louischatriot kudos to you for building this. Building embedded DB's is fun and worthwhile. The fact I'm not a JS fan doesn't diminish that value to me.

While I understand that packaging motivation; it seems to me to be less relevant due to msi/rpm/deb packages. Those technologies make it pretty easy to package an application built with heterogeneous components.

Re:NeDB, a pure Javascript database for Node.js and Node Webkit by louischatriot on Thursday June 20, 2013 @01:48PM (#5913554)
Thanks :)

It's true that it's easy to package such applications for unix systems, but it's much harder on Windows. What makes Node Webkit great is the fact that it's cross-platform with very little pain, and in that case having the DB in the JS code makes packaging a breeze.

Re:NeDB, a pure Javascript database for Node.js and Node Webkit by jasonlotito on Thursday June 20, 2013 @11:15AM (#5912560)
> What strikes me as odd is people wanting to write things that traditionally written in C/C++

I should note I know people who make this choice. They can write these things in C, and in the past, they have. But they are choosing Node.js. So it's not just a "what you know" affect.

Re:NeDB, a pure Javascript database for Node.js and Node Webkit by kodablah on Thursday June 20, 2013 @10:56AM (#5912426)
Re:NeDB, a pure Javascript database for Node.js and Node Webkit by bobbyi_settv on Thursday June 20, 2013 @03:35PM (#5914375)
Narcissus is an excellent name for a meta-circular evaluator
Re:NeDB, a pure Javascript database for Node.js and Node Webkit by louischatriot on Thursday June 20, 2013 @10:38AM (#5912325)
With the rise of very fast javascript VMs, lots of things can now be done in the same language, javascript. That doesn't meand everything should of course, but a Node Webkit app is definitely a case where I want a JS DB instead of a native one. Less powerful of course but less of a pain for my app's users.
Re:NeDB, a pure Javascript database for Node.js and Node Webkit by paulbjensen on Thursday June 20, 2013 @11:04AM (#5912484)
It's a very cool idea, I wish I had an excuse to use it.