Better HN
topnewbestaskshowjobs
Log inSign up

slashdev

17,493 karma · joined May 14, 2013 (13y ago) · 5,498 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

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.

comment 11y ago · link · parent

> The syntax of go feels a little "expert", while the syntax of C seems more friendly and easy to grasp. I doubt anything will replace C if it's not as easy and simple.

I think C is a lot harder to grasp. e.g. manual memory management, dangling pointers, unchecked casts, etc.

> One thing that could improve on C, might be very simple things like (immutable?) string as a native type, hashmaps, lambdas, etc. I would love to see some pythonic stuff into C.

Have you used Go? It has all of those things...

comment 11y ago · link · parent

I think the Go compiler, runtime, and GC would need to mature a lot before it could be used to create something competitive with Redis. But it is moving in that direction. A pauseless GC[1], a numa-aware scheduler with lower overheads[2], more efficient atomic operations[3], all these are/have been discussed by the Go team and are actual goals AFAIK.

I'm building a database in Go, keeping the data off-heap (which solves the GC problem for now.) The performance will lag C currently, but I do think it will eventually get close.

[1] https://groups.google.com/forum/#!topic/golang-dev/GvA0DaCI2... [2] https://docs.google.com/document/d/1TTj4T2JO42uD5ID9e89oa0sL... [3] https://github.com/golang/go/issues/8739

comment 11y ago · link · parent

Especially taken with the recent news of the monster blackhole, also seemingly too developed for it's age, makes me think we might discover that we're wrong about something fundamental like that. It would be an incredibly exciting discovery.

comment 11y ago · link · parent

Now look at the evidence against. You can't cherry pick the few things that agree with your world-view, you need to take an unbiased, scientific approach where you consider all possibilities with the evidence (and likelihoods) both for and against. When weighed against the rest of the evidence, it just doesn't hold up. Remember, a good scientist doesn't look for evidence confirming his theory, which is often available even for incorrect theories. They look at all the evidence and see if it leads to the same conclusion.

comment 11y ago · link · parent

The US has previously contemplated false flag missions against it's own people (see operation Northwoods[1] which was rejected by JFK.) However, there's no evidence that they were behind the 9/11 attacks. Spouting conspiracy theories without serious backup is going to get you down-voted here on HN where we pride ourselves on being less gullible than average.

[1] http://en.wikipedia.org/wiki/Operation_Northwoods

comment 11y ago · link · parent

Presumably because making the patch public also makes the vulnerability public and they want to give the big players time to protect their customers.

comment 11y ago · link · parent

The effect was only noticeable with sauna usage 4-7 times a week, more than wealth that implies free time, which implies lower stress (a risk factor) and, to a degree, wealth.

comment 11y ago · link · parent

There's a nice glimmer of hope, that we may be the slaves that build the interstellar rocket ship monument to our AI god so it can beetle off to a nicer looking star system (or super-massive black hole?) better suited to it (e.g. more energy, more matter.)

comment 11y ago · link · parent

Good, I live in a Sauna, 8 degrees north of the equator. That bodes well for my health :)

Joking aside, this study seems unlikely to have actually discovered a real effect, rather than just a group of people with lower risk and higher sauna usage in common. (Wealthy people?)

comment 11y ago · link · parent

Yeah, I don't think 1 THz is achievable, but we can likely do substantially better than 4 Ghz, even when we can't go smaller. Then there are also gains to be made from building bigger, building in 3 dimensions, decreasing waste heat, etc. I suspect that innovation with chips will get bumpier, but likely overall maintain the pace of innovation for a couple decades more - which is all we need to get into really interesting territory re AI and other things.

comment 11y ago · link · parent

Just because much of the science has flaws does not mean that the effect is temporary, we don't really know what the long term effects might be. But even assuming it had no bad long term effects on the brain, if one were a regular user then it would regularly drop your intelligence and motivation, which itself is a disadvantage. This is no different than drinking regularly.

I may be more keenly aware of this than people in the US, but life is a global competition for resources, and it's unwise to squander your competitive edge.

Ritalin probably has more risks, I've not decided that it's worth the tradeoff yet.

I guess the core of your question is a deeper one about life, happiness, and the tradeoffs we make. I think the answer to that is different for everyone. Life is short and without intrinsic meaning. You have to focus on what gives it value for you, which is likely very different from the next person. For me, I enjoy creating things, and I feel most alive when in the zone churning out code. Most other people probably enjoy activities that are more social.

comment 11y ago · link · parent

A lot of the science that says it drops your IQ seems to have been poorly done. Smokers are dumber in general, but that may well say more about their socioeconomic backgrounds. However, I personally wouldn't risk it. Do you know what I would pay to raise my IQ by a half-dozen points? I seriously considered taking Ritalin at one point, to see if it might give me a boost (actually I still haven't ruled it out, just shelved the idea.) I wouldn't dare use a substance that had the potential to lower my IQ, or reduce my ambition/motivation.

comment 11y ago · link · parent

Anyway to see if that certificate is on a Lenovo computer? Anyway to remove it? I bought a Lenovo laptop recently, and I was appalled at the amount of crapware that was installed. It's a wonderful laptop at a great price, just too bad about the software.

comment 11y ago · link · parent

That sounds good in theory, but there's no way to know if it will be like that in practice. Those are unproven assumptions when applied to a new entity. Many of the same things could have been said of Pets.com. Just like no battle plan survives contact with the enemy, no startup survives contact with its customers.

comment 11y ago · link · parent

Exactly. These guys are the opposite of the lean startup. All air and venture funding with ambitious growth plans. No product, nothing tested, just on theory. That seems like how a lot of famous dotcom companies launched to great fanfare only to discover the market wasn't interested. Pets.com and webvan come to mind.

comment 11y ago · link · parent

So much public ownage of a multibillion dollar company, it's just beautiful. Nom nom nom. I'd love to see how dominos responds.

comment 11y ago · link · parent

Rep movsd is only recommended for large clears/copies by Intel. Indeed the commit message states:

REP MOVSQ and REP STOSQ have a really high startup overhead. Use a Duff's device to do the repetition instead.

comment 11y ago · link · parent

If these can be triggered so far in advance of a quake, couldn't we bury instruments of some kind that also trigger under those conditions? That would be useful regardless what types of rocks are in the area.

It might not be perfect, but anything is better than the no warning we have now.

comment 11y ago · link · parent

While I have your attention, assuming SSD with typical 128k erase blocks, do you do anything special to avoid write amplification at the disk level when reusing pages? My understanding is that those are in-place updates from the filesystem's POV, so writing over 32k of old pages will cause 128-256k actual writes. One could avoid this somewhat with trim support, fallocate + hole punch (not portable) but you have to think carefully about alignments and grouping free pages into contiguous erase block multiples. That never struck me as being very practical. Have you thought about that problem before or tried anything there?

comment 11y ago · link · parent

Sorry, I got my terminology muddled. IIRC LMDB is similar to append only trees, except it puts obsolete pages into a free list (also a LMDB tree?) and will reuse them when it reaches the end of the file? And my math is way off for 100 byte records, laughably so. Don't get me wrong though, I needed an example of write amplification caused by COW that happens in append only trees, LMDB is a great database, and for the use case it was designed for, large records and read heavy workload, it has no peer.

comment 11y ago · link · parent

I've been developing high performance databases for the last five years off and on. This article is right on the money. It's tough to beat MVCC for a database that wants isolated concurrent transactions. Append only designs seem attractive, but they don't actually help much with write throughput on SSDs (but avoiding in-place updates does, due to erase blocks.) And they often require writing much more information. E.g. writing 100 bytes in LMDB, which is an append only btree, requires copying all pages from the root to the leaf and writing them all out, typically 64k or more. Writing 100 bytes to a transaction log or WAL costs about 100 bytes. There's a huge write amplification going on.

comment 11y ago · link · parent

This smells like a con in so many ways. I'm less curious about how it supposedly works than I am about how he managed to trick those researchers. He was on site, so presumably he could of had the opportunity for meddling with the experiment.

comment 11y ago · link · parent

This is a problem because you can get sued by one of the worst parent trolls out there, the guys that defeated newegg. https://www.techdirt.com/articles/20121109/02321120982/meet-...

comment 11y ago · link · parent

It's tough to imagine a similar process in a complex lifeform. So it could well be the great filter. Evolution doesn't work well with things that happen rarely over geological timescales. This is one reason why life on earth is very sensitive to climate change, even although the climate has gone through many major changes in the past.

comment 11y ago · link · parent

It's interesting to note that Go doesn't depend on libc. However, I rather doubt the Go runtime bootstraps any faster than libc, so it probably wouldn't help here. One consequence is that Linux and libc are tightly coupled and some of the "syscall" behavior you depend on is actually implemented as a wrapper in libc. This has caused some behavioral differences between Go and C that have surprised the language developers.

comment 11y ago · link · parent

I'm Canadian, Canada is less possessive of its citizens than the US, if you don't have residency in Canada (not the same as just not living there anymore.)

comment 11y ago · link · parent

I do this. I actually live in a large, ocean view condo in Panama City. I rent half of it on AirBnB which covers all my fixed expenses other than my mortgage. I work remotely for a Swiss company and I legally pay no taxes. I don't have a degree, and I've only been working since I was 26. I'll be worth half a million before I'm 33, partly because my condo has risen in value. I married a beautiful local girl who probably wouldn't have given me the time of day in my native Canada. Here I'm taller, handsomer, and richer without having changed at all, just because the local men lower the bar for competition. The city is full of things to do, and it's more modern and interesting in some ways than many Canadian cities. Good beaches are 1-2 hours by car, so sadly I don't code on the beach (when I go, coding is the furthest thing from my mind.)

comment 11y ago · link · parent

You've obviously never read the Qur'an. There are pages and pages of material condoning and inciting people to violence. Sam Harris printed pages of quotes from a translation of the Qur'an in The End of Faith, it was an eye-opening read for me. I often hear liberals repeating that it's not really a violent text, without knowing anything about it, they just want to believe it, maybe because it fits with the liberal philosophy of tolerance. The old testament also has some of that, but I think Islam easily wins as the most violent mainstream religion, both in reality and in their holy texts.

comment 11y ago · link · parent

The same way his age is relevant. Fewer African Americans code, so he has to overcome not just his age, busy schedule, and probable fear of computers, but societal stereotypes as well. It makes it even more of an accomplishment. The same way it would if he had learned ballet instead (this time for gender, rather than racial stereotypes.)
1
176177178
184