News for hackers. Stuff that matters.
[deleted]
Re:Show HN: EnnoDB, a simple NoSQL database by joshu on Friday June 12, 2015 @01:51AM (#9704276)
Nobody should ever invent new things or try building things. The set of technologies we have is completely perfect. No further innovation is required.
Re:Show HN: EnnoDB, a simple NoSQL database by enno on Friday June 12, 2015 @01:40AM (#9704252)
I learned a ton of things doing this (not least how to post something on HN, and that Show HN exists). Can't say that for Minecraft.
Re:Show HN: EnnoDB, a simple NoSQL database by afshinmeh on Friday June 12, 2015 @01:43AM (#9704257)
That's why I upvoted you.

Btw, have you followed a tutorial or a instruction to make this? I'm reviewing the code and it seems pretty straightforward.

Re:Show HN: EnnoDB, a simple NoSQL database by enno on Friday June 12, 2015 @01:57AM (#9704289)
Thanks for the upvote and the compliment! There isn't all that much code, just enough for a toy project, and what there is, is written with maintainability in mind.

Not sure what kind of tutorial I could have read. I've seen two key-value store implementations before, memcache and openkeyval. The memcache code is a nightmare to follow, and openkeyval is written in PHP, so neither of them is what I'd call either a tutorial or instructive.

Other than that, I read a book about C twenty years ago, but I'm completely self-taught ever since. I obviously read djb's paper on critbit trees before implementing them. The rest is from man pages and code. I had never used libfcgi for anything big before embarking on this, so that was a new thing. It's also my first time using mmap, and the Windows equivalent. Configuring nginx just right may have been the hardest part of it all.

I think the code is pretty clean, although it could use a few more tests. Mocking out libfcgi is a bit of a chore that I didn't want to go into right now, and it has already bitten me in the ass once.

Re:Show HN: EnnoDB, a simple NoSQL database by travjones on Friday June 12, 2015 @01:31AM (#9704228)
I disagree. This is a "show HN" post. Anyone should show anything they feel good about. Even if it's ABD (already been done). Keep the NoSQL databases and JS libraries coming!
Re:Show HN: EnnoDB, a simple NoSQL database by afshinmeh on Friday June 12, 2015 @01:36AM (#9704238)
Yup, cool. But don't you think creating a database engine involves many high-technical subjects that only a team of engineers can handle them?

I'm the author of IntroJS and many other open-source JavaScript libs. Those things make much more sense than a database engine.