News for hackers. Stuff that matters.
Re:Show HN: Gun database – 100k ops/sec in IE6 on 2GB Atom CPU by ddorian43 on Saturday December 24, 2016 @07:32AM (#13249552)
Honestly, I cringe everytime I read about gundb.

Db made in nodejs? Check.

No mention of multiprocess? Check.

No mention of persistence? Check.(lol @ s3 persistence)

All tests failing ? Check.

Optimizing if/else? Check.

Faster than redis? Check.

Store non-optimized json in disk(not sure but looks liek it)? Check.

I cringe at every page on their docs(like sharding). It just feels like the templeos situation. Upvoted for discussion though.

Re:Show HN: Gun database – 100k ops/sec in IE6 on 2GB Atom CPU by atombender on Saturday December 24, 2016 @04:11PM (#13251641)
One might take the claims — and hubristic comparisons to production-ready systems like Redis, Cassandra, Firebase and Riak — more seriously if the code weren't such an inscrutable ball of spaghetti [1]. I commented on this a year ago [2], and the author's response was... not great. Anyone who considers using this project should definitely read the code first and make up their own mind.

[1] https://github.com/amark/gun/blob/master/gun.js#L584

[2] https://news.ycombinator.com/item?id=10683467

Re:Show HN: Gun database – 100k ops/sec in IE6 on 2GB Atom CPU by marknadal on Saturday December 24, 2016 @07:51AM (#13249609)
Actually, we turned S3 into a timeseries store that handled 100M+ messages for $10/day (over 100GB+ data, all costs for processing, storage, and backup), check out this screencast - https://www.youtube.com/watch?v=x_WqBuEA7s8 .

Master/stable branch is not failing, and we definitely don't recommend using the JSON dump in production (we have warnings about this everywhere) it is intended to make local development easier.

NodeJS is single threaded, but because GUN has a P2P/decentralized architecture it can easily sync between machines or threads and handles concurrency and conflict resolution. Check out this demo - https://youtu.be/-i-11T5ZI9o .

Re:Show HN: Gun database – 100k ops/sec in IE6 on 2GB Atom CPU by yellowapple on Saturday December 24, 2016 @08:49PM (#13252461)
"It just feels like the templeos situation."

Huh? TempleOS is explicitly not meant to be one's primary OS or even really anything besides an educational environment. Gun appears to actually be trying to target production use.

If anything, this is closer to a "MongoDB is web scale" situation.

Re:Show HN: Gun database – 100k ops/sec in IE6 on 2GB Atom CPU by ddorian43 on Sunday December 25, 2016 @02:57AM (#13253416)
I was talking about the "mental issues" angle. But he is charging 500/hour for consultancy so he is doing something right. This thread has more juice: https://www.reddit.com/r/programming/comments/5k3367/50x_fas...
Re:Show HN: Gun database – 100k ops/sec in IE6 on 2GB Atom CPU by fiatjaf on Saturday December 24, 2016 @01:19PM (#13250937)
"Store non-optimized json in disk(not sure but looks liek it)? Check."

How can you say "not sure" and "check" in the same line?

Re:Show HN: Gun database – 100k ops/sec in IE6 on 2GB Atom CPU by ddorian43 on Sunday December 25, 2016 @02:40AM (#13253383)
Because I read the docs but I didn't understand it so I wasn't sure, but had confidence that I was right based on the other points.