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 10y ago · link · parent

Well, one could simply modify it to giving points to the employees and delaying the payouts until the company can afford it, then doing it by points so that those who've been at the company longer get more.

Anyway the details can be anything allowable by law, the question is can we do better than stock options. I feel the answer to that must be yes.

comment 10y ago · link · parent

Stock options are super-complicated, there are many gotchas, and there can be serious tax implications. Like having to pay taxes on "profits" from exercising options before having the revenue from selling them, which may prevent options from being exercised. I think all these drawbacks often make stock options have near zero value in the eyes of employees. Which makes it not that fit for purpose, which is supposedly to motivate your employees and align their interests with those of the company.

Is there a better way? If you run a startup and you want to achieve the same ends of providing a form of compensation that's tied to the future success of the company, but doesn't involve immediate outlay of funds, how would you structure it? It should be as simple and straightforward as possible with a minimum of gotchas, and avoid tax implications as much as possible. I'm kind of surprised YCombinator hasn't innovated anything in this space, like they did with "the Safe"[1].

What about something along the lines of making a pool of X% of the gross revenue of the company each year, and dividing that among all the creative employees fairly, and adjusted by how many months of the year the employee was at the company. Then just paying that out every year as the end of year bonus.

[1] https://blog.ycombinator.com/announcing-the-safe-a-replaceme...

comment 10y ago · link · parent

I never recommend going with random database X, use something that's been around a while and has lots of users, then at least you know that you're statistically unlikely to experience a failure mode that nobody else has.

Rolling your own on disk persistence and recovery is like rolling your own crypto. What you don't know can definitely hurt you, you'd better be an expert, and even then you won't likely get it right the first time around. It's just a really hard problem involving complex interactions between your code, the OS, the filesystem, the disk drivers, and your disks all of which can cause data loss in very unexpected ways.

Your method can work, but it almost certainly has issues lurking that can cause data loss. You might be ok with that because it's a toy project, but it's obviously not a good idea for important data.

comment 10y ago · link · parent

You can get surprisingly far with that approach, but as a database developer, I should warn you that something that "works" is not the same as something that works under rare failure conditions. See SQLite's famous document[1] to get an idea of how things can go wrong. It's not nearly as simple as it might seem. [1] https://www.sqlite.org/howtocorrupt.html

comment 10y ago · link · parent

I'm a software engineer, very aware of the insecurity in email, and I could have made that kind of mistake easily. What hope is there for an accountant? No the business process is flat out broken, and its not fair to blame the accountant here. The problem is higher up the responsibility chain.

comment 10y ago · link · parent

I think stupid accountants is too harsh here. If you miss that the I in your bosses email address is really a 1 (do you even look at the email address?) How would you know any better?

What's stupid is the business processes that allow an accountant that much power over wire transfers without some kind of secondary approval. That's just vulnerable to all kinds of things, like an accountant wiring the money to the Cayman islands and leaving for a country with no extradition treaty.

comment 10y ago · link · parent

It's already here[1], but I don't think it can be used for cache partitioning between the kernel and userspace (but I could be wrong!)

[1] http://danluu.com/intel-cat/

comment 10y ago · link · parent

The syscall overhead isn't the problem, that's dirt cheap as you say. The problem is the context-switch overhead. Calling into the OS flushes a lot of data and instructions from the cache, and that lost performance after returning can easily add up to around 30µs.[1]

[1] http://blog.tsunanet.net/2010/11/how-long-does-it-take-to-ma...

comment 10y ago · link · parent

When there's enough money to be made in it, private industry will just make it happen. We're not quite there yet, but it seems likely to happen as prices for solar keep falling. Politics don't have to enter into it, but government involvement has the potential to speed up the process.

comment 10y ago · link · parent

Do you really think it's more expensive, in terms of energy to transport electrons over a wire than liquids over the surface of the earth? I find that hard to believe. Mind you, I haven't done the math.

comment 10y ago · link · parent

Has anyone ever wondered why the C^2 in E=MC^2 I'm sure it wasn't chosen at random just because a large constant was needed, it must fall out of some other physics equations.

But still, what does that mean? What does the transmutation of energy into mass or visa versa have to do with the universal speed limit?

I am always struck by the inexplicable power of mathematics to describe the physical laws of the universe, in often simple equations like this. It doesn't have to be that way as far as we know.

comment 10y ago · link · parent

GoshawkDB is unique as it allows you to configure the tolerance to failure independently of the size of the GoshawkDB cluster. For example, you could have a cluster of 5 nodes and require that it continues to operate unless more than 2 nodes become unreachable. Or you could have a cluster of 20 nodes and require that it continues to operate unless more than 3 nodes become unreachable. The only requirement is that if F is the number of unreachable nodes you wish to be able to tolerate, then your minimum cluster size is 2F + 1. You may of course choose to have a cluster size larger than this. Currently no other data store that I'm aware of offers this flexibility.

I fail to see the point of making your cluster unavailable before you've lost so many nodes that you no longer have a quorum. It seems odd to have a cluster that can handle e.g. 4 node failures, and take it offline after only 2. Why would anyone want a feature like that?

comment 10y ago · link · parent

I'm pretty sure human beings won't make it anywhere close to that far. But either way is irrelevant to our lives now. All we have to worry about is living and making a good impact on the people in our lives - and hopefully leaving humanity slightly better off for having lived.

comment 10y ago · link · parent

Like the F35 debacle, trying to make something that's good at everything, you end up with something fit for nothing. There's a lot to be said for simpler, fit for specialized purpose designs. The same applies in computer software. Oracle attempts to be a one size fits all database, but as a row store it can never compete with column stores for analytics. As a disk-based, latching, locking, logging database, it can never compete with in memory stores that avoid those overheads. Really just an expensive pile of bytes that claims to solve all your problems, but is fit for nothing.

comment 10y ago · link · parent

It's a good point that unions are about more than just getting higher wages.

comment 10y ago · link · parent

Does anybody else think that unions are really labor side price fixing, and not much different to companies conspiring to fix prices, or the recent tech companies conspiracy to not poach each other's employees (a form of wage fixing, but on the side of capital.) It seems hypocritical to support one and be against the other.

On a less theoretical note, looking at stagnant wages over the last couple decades, it seems clear that between capital and labor, capital seems to hold more bargaining power. So something is needed to tip the power balance towards labor. Whether that's unions or something else, I have no idea.

comment 11y ago · link · parent

Thanks!

comment 11y ago · link · parent

I don't think weather chaos is that bad. Us humans are adverse to change, but that change will be both good and bad. Between that and the sea level rising it will cause a lot of resettlement and moving around, but hardly the end of the world in itself.

comment 11y ago · link · parent

Yeah, this is right on the money. I've worked in data sync the last four years, supporting an app that's used in rural parts of the developing world. Unfortunately offline sync was the only available option. What I learned from the experience is that sync is a super hard problem, that conflicts are inevitable, and that you should sync as much information and context as possible. Sync the higher level business actions, not low level data. Because when there's a conflict, you need the extra context to allow the user to resolve it in a sensible way. If you only synced low level data, you frequently find it's impossible to recover from some kind of conflicts.

comment 11y ago · link · parent

I downvoted you, not because I disagree with you, but because you have your head in the sand. Not believing in human caused global warming at this point is like not believing in the germ theory of disease. The weight of evidence against that position is so insanely lopsided that the only way is possible to defend it is out of sheer ignorance. Please educate yourself on the topic so people don't laugh at you behind your back.

comment 11y ago · link · parent

Lambda captures are great for that too, especially since C++14, where you can use move semantics with the captures (e.g. marshal std::unique_ptr)

comment 11y ago · link · parent

You meant to reply to the parent right? Just look at the published studies on the topic. One can argue for roughly 20% functionally illiterate easily, any higher and its really just speculation. Certainly far from a "vast majority"

comment 11y ago · link · parent

The vast majority of adults can't read English well? Let's get real here, that's not even close to the truth.

comment 11y ago · link · parent

Where do you get colder winters from? I don't see that as a likely outcome. Yeah the Earth's climate is a complex system, and global warming produces complex and sometimes unexpected effects. But you can't say colder winters just "because complexity". The likely effect, unsurprisingly, is warmer, shorter winters.

comment 11y ago · link · parent

I think it could be argued that some global warming could be a net benefit for Canada. As long as it stays below the level that would cause global catastrophe. Sea level rise will cause some issues, but Canada really has very few large cities on the coast and there are (expensive) ways of dealing with that, just like all other coastal cities will need to do in the coming century. But on the other side of the equation it would extend growing seasons and increase the amount of arable and forested land in the vast interior of the country. Changes in rainfall will be a mixed bag, bringing adjustment, but likely not ruin. Maybe this is a very simplistic way of looking at it, but as a Canadian I've always selfishly looked at global warming and said "bring it on". Of course global warming could reach a point where it causes serious catastrophe on a global scale, e.g. releasing methane deposits on the sea floor and going into a feedback loop. That's a losing scenario for the entire planet, and there's no guarantees yet that we will avoid that fate.

comment 11y ago · link · parent

There are costs to this, because you may dereference things that are not valid pointers either. The kernel used to have software prefetch code for linked list traversal. On each access it would prefetch the subsequent access. Which sounds like a huge win. However, in practice the most common list size was just a few elements and there was a huge penalty for fetching the final, invalid null pointer. They ended up taking out the prefetching recently (and I think they saw a small speedup as a result!) Now maybe someone could invent a hardware prefetcher that does this in a way that's a net gain, but the fact that Intel hasn't done it yet suggests that it maybe it doesn't help much or that the situation isn't all that common.

comment 11y ago · link · parent

I installed and played with Jekyll on a windows box. It was a horrible experience because of installing Ruby and all the dependencies. I'd like to give Hugo a shot just because I know it's Go and it will likely be a single binary with no deps that just works.

comment 11y ago · link · parent

It's semantics, but I'd argue if you're read only than you're changing the definition of available.

comment 11y ago · link · parent

Wow, reported May 2014, and still no resolution for such a serious issue. GCE looks nice in theory, but I've heard no end of problems like this with shitty communication and support when something doesn't work. I'll stick with AWS for the time being. I really wish Google would get their act together and provide serious competition though. That's good for everybody who uses the cloud.

comment 11y ago · link · parent

Syscalls are hugely expensive. Not for those reasons, but because of the way they trash the cache, causing reduced performance for a long time after returning control to userspace. This is why to really achieve the performance the hardware is capable of, both for nvram ssds and for high speed network interfaces, you need to bypass the kernel completely. You can do a little better using calls that amortize the costs of the syscalls over multiple units of work, but even with the best optimizations it's still an order of magnitude less than what the hardware is capable of.
1
170171172
184