Better HN
topnewbestaskshowjobs
Log inSign up

slashdev

17,493 karma · joined May 14, 2013 (13y ago) · 5,497 submissions

Founder of revscope.co

Revenue focused web analytics to help you quickly identify where to focus your effort to best increase revenue.

And embersofvictory.com

Retro turn-based strategy game.

Submissions

comment 11y ago · link · parent

If you expect companies to care about you, you need a reality check.

comment 11y ago · link · parent

The GPL doesn't protect against that either. They still own the code, either way, and can make new development closed whenever they want.

5253.

2M requests/s techempower benchmarks (2015)(techempower.com ↗)

4 points · by eloff · 11y ago · discuss

comment 11y ago · link · parent

Redis doesn't market itself as a general purpose database, more as an advanced memcached, which is why those make sense. People who value performance over durability can of course change the setting, being aware of what they are getting into. That's very different from someone who doesn't realize that just because his database seems to save his data doesn't mean it won't eat it tomorrow because he didn't know to change the configuration. I stand by my judgment of hopelessly stupid.

comment 11y ago · link · parent

It's not quite that simple, because both in startups and relationships you can lose all hope for a future for a time, recover it at some point and be successful. I would say you've failed when that situation persists for too long - something completely subjective and dependent on your pain threshold.

comment 11y ago · link · parent

So does postgres. That alone isn't enough because you can get situations like torn pages where part of the database page is old data and part is new data and nothing makes sense anymore. A log fixes that by first writing to the log so that if the database page gets messed up you have a secondary source you can use to restore it from.

comment 11y ago · link · parent

It's like if MySQL shipped with libeatmydata configured by default. The defaults should be safe. Mongo made not just a bad choice, but a really idiotic decision to make their default configuration non durable.

comment 11y ago · link · parent

It's quite inelegant, but physicists have eliminated most of the other sensible explanations. Remember, there's no law in the universe that us humans have to like the underlying physical laws of the universe. Frankly it's amazing that they have as much elegance and mathematical beauty as they do.

comment 11y ago · link · parent

Nevertheless those assumptions are true more than false, which is what matters if you want to make broad sweeping statements about a diverse population. Well I don't think #1 is true, but it's also a straw man. Women do care about money and stability, surprisingly much depending on the culture.

comment 11y ago · link · parent

I was wondering that too, since Aurora uses shared multi AZ storage. When I learned that yesterday I found myself wishing they made just that available on AWS as it's own service. One day later, they announce it. I love what these guys are doing.

comment 11y ago · link · parent

Well the number ten has obvious origins. Thanks to evolution we have ten fingers that we like to use to count with. I don't think many people believe it's based on some rigorous data.

A lot of people comment on HN that there are no 10x engineers, which I find strange. How can you work in this industry and not be convinced of the huge gradient in productivity?

We measure productivity with #bugs, #points of features, etc. It's pretty crude, but better than lines of code. It really doesn't tell the whole story though, because most of what makes a 10x engineer is not solving problems faster, but solving the right problem in the first place.

comment 11y ago · link · parent

You must work in a really sad place.

comment 11y ago · link · parent

Where do these guys who deny 10x engineers work? I work in a company with ten devs. There's about a factor of five between the productivity of the top guys vs the bottom guys. That's after the worst performers have been let go. It's impossible for me to deny that some programmers are just really that much better at their trade than others.

comment 11y ago · link · parent

Looks like an acquire hire and product kill scenario.

comment 11y ago · link · parent

Lua is a nicer language, but the sheer number of developers who are familiar with JavaScript gives it a huge edge. I suspect that's the driving reason.

comment 11y ago · link · parent

There are many valid criticisms of go, but the one presented in this article make no sense. Or maybe only make sense if you're a huge dynamic languages fan and can't stomach static typing. Personally, as someone who used to be a huge fan of dynamic languages like Python, I've sobered up as I've grown older and had to fight with large python and JavaScript code bases. A compiler that is fast with clear error messages is tremendously valuable.

comment 11y ago · link · parent

I've seen lots of articles written by people who benefit from it in benchmarks of software of varying realism. They don't work for Intel.

comment 11y ago · link · parent

I'm surprised people are defending these guys. Maybe we're just so used to internet trolls, but the medium doesn't change the fact that we have laws against hate speech and threats. This kind of behavior is just not acceptable, it's a stain on the human race. It's these kinds of trolls that make life really difficult for women online. I'm glad they're learning there's consequences.

comment 11y ago · link · parent

It's very hard. Bugs in lock-free algorithms are the only class of bugs that have defeated me. I once worked for three months of evenings trying to fix one, before throwing in the towel. I learned from that experience to use only very simple algorithms. Adhering to the single-writer principle[1] helps a lot. When changes and deletes can't interact because they're all on the same thread, life is a _LOT_ easier.

[1] http://mechanical-sympathy.blogspot.com/2011/09/single-write...

comment 11y ago · link · parent

Correctness is very important. But being correct and faster is better. A lot of the techniques I use to accomplish that start to look similar to immutable. Copy on write is the cornerstone of good lock-free algorithms as well as immutable data structures. However, not being religious about mutability has tangible performance benefits - depending on the details, as always.

comment 11y ago · link · parent

I was specifically thinking of LMDB as a counter-example when I wrote that it's not impossible, just hard to do well. A much more sensible set of tradeoffs than LevelDB.

comment 11y ago · link · parent

Good point, but do they seriously do that? It's stupid.

If you overwrite data in place that's being concurrently read, you get garbled data. So you must guarantee nobody is reading it. One way is to lock the data for both readers and writers using a mutex of some form. Another way is Linux-RCU style[1]. Both make readers always pay a price for what should be an uncommon case.

It makes more sense to me to put your updates in a new place, and if need be copy them over the old data once nobody can see the old data anymore.

[1] http://lwn.net/Articles/262464/

comment 11y ago · link · parent

As a matter of interest, what product is that?

I used some tricks to reduce the amount of data that must be cleaned up at any given point in time, but it was not possible to evade it completely. I still have to do concurrent compaction, and there's some really nasty corner cases I don't have any good solutions for, it's a hard problem.

comment 11y ago · link · parent

If you do, please ping me at dan.eloff @ populargooglemailservice.com, I don't want to miss reading that one!

comment 11y ago · link · parent

Excellent points, yes it's important to clarify what we're talking about here. Samza sounds like an event-sourcing style immutable event log. You could think of it like the transaction or replication log of a traditional database. Having that be immutable is very sensible! But you can't always query that in "real-time".

On the other hand, the data structures you query in real-time, making that immutable is problematic, because then you'll need a LevelDB style compaction step. That doesn't mean to say that it can't be done well, but that it's hard to do well.

comment 11y ago · link · parent

It's similar, they use MVCC, which means no in-place updates or deletes. Postgres then has a compaction step called vacuum to clean up old tuples. Redis is one of the few "databases" that truly uses in-place updates, but it has that luxury because it's single-threaded.

comment 11y ago · link · parent

You'll have to go into detail. Mutable data structures mop the floor with immutable ones, synchronization issues aside. What's actually better depends on the specific case in question, but mutable data structures have a superset of the techniques available to immutable ones, and that's never a disadvantage. It, might, however lead you to use a poor design that falls down under contention.

comment 11y ago · link · parent

It's that merge (edit: GC is a better term) step that's difficult to get right. Google screwed this up badly with LevelDB which had(still has?) horrible performance issues caused by compaction. Even with concurrent compaction it can be difficult due to needing additional disk space, adding additional read and write pressure to the storage subsystem and the effects that has on latency. I'm not sure what RethinkDB's approach was there, but I'm very curious to know.

comment 11y ago · link · parent

It has it's advantages to be sure, I really like eventsourcing. For some kinds of projects it's the obvious way to go. Finance seems like a killer application, because of the way the entire audit trail is stored, and the system can often be rebuilt to a valid state upon finding and correcting a production bug.

comment 11y ago · link · parent

Immutability is hardly a cure-all, see the discussion here for why RethinkDB moved away from it: http://www.xaprb.com/blog/2013/12/28/immutability-mvcc-and-g...

The reality is shared, mutable state is the most efficient way of working with memory-sized data. People can rant and rave all they want about the benefits of immutability vs mutability, but at the end of the day, if performance is important to you, you'd be best to ignore them.

Actually, to be more honest, reality is more complicated still. MVCC that many databases use to get ACID semantics over a shared mutable dataset is really a combination of mutable and immutable.

1
175176177
184