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

Compose (an IBM company) does managed Postgres.

comment 10y ago · link · parent

Maybe this is more reflective on the kinds of software I work on, but I don't find that I have enough cache. So syscalls always come at a steep price. In fact I am tempted to break up one program into multiple processes and use the cache partitioning in Xeon v4 to prevent the different parts of my program from clobbering it's own cache.

comment 10y ago · link · parent

Nice, I had a feeling they did that, thanks for the link.

I fully agree, missed optimization opportunity from not being able to inline is usually a bigger effect, because loops dominate the runtime and that's where those optimizations count.

comment 10y ago · link · parent

It absolutely is fair. For a long time after a syscall your program will run slower thanks to the increased cache misses from the kernel clobbering your stuff in cache. That's a real price that you pay for a syscall and it would be wrong not to count it. However, if you found some other way of doing the work, e.g user code, kernel bypass, amortized bulk syscall, those will also have a (lesser) effect on the cache. So to be fair you compare a syscall against that, not against zero.

comment 10y ago · link · parent

NUMA typically affects multi-socket machines only. An exception would be high end Xeon chips since Haswell when used in a cluster-on-die configuration, but you won't find that in a desktop PC. Each socket in a multi-socket system has its own memory, and when a remote CPU accesses the memory of another CPU, it pays a fairly hefty latency penalty compared to accessing its own memory.

comment 10y ago · link · parent

Exactly. Calling a virtual function in a tight loop, almost indistinguishable from a direct (non-inlined) function call. Calling a virtual function every now and then, much more expensive, but also not as likely to matter much to the performance of your program on the whole anyway.

Still worth noting that every VM like Java or .NET or LuaJIT will optimize for the case that a virtual call usually has only one or two commonly invoked target functions. They will use a conditional fast-path for the common case(s) and fall back to slower virtual calls or less optimized paths for megamorphic calls. I don't know if any C++ compilers do this kind of thing, but I would be surprised if they did not.

comment 10y ago · link · parent

A syscall is a lot cheaper than shown here in terms of direct costs ~ 150 cycles, and also a lot more expensive, depending on the call, when you factor in the full cost of the cache that gets clobbered. More like the full cost of a context switch shown, around 10-30K cycles[1]. For this reason it's important to use system calls that allow you to amortize more work into one call, like preadv, pwritev, recvmmsg, and sendmmsg.

[1] http://www.cs.cmu.edu/~chensm/Big_Data_reading_group/papers/...

comment 10y ago · link · parent

Your position is that statically typed languages shouldn't have reflection? I think that's a pretty fringe position to take that not many programmers would agree on. The JVM and .NET static typed languages have reflection, C++ will (hopefully) get reflection one of these days soon as it's been talked about for a while. Even rust has reflection. I think statically typed languages without reflection are the exception rather than the norm.

comment 10y ago · link · parent

If you're doing that all over the place, you're doing it wrong. I've never seen Go code that looks like that in real projects.

comment 10y ago · link · parent

Since when is powerful reflection a drawback or a sign of a broken language? In my experience reflection is not used all that often in Go and it's nowhere near as powerful as say .NET or JVM reflection - which means package private stuff stays package private, unlike the JVM where the JIT must assume that any type can change at any time.

Go has its quirks, and many design decisions that I find dubious, but so does every language I've used. I'd still much rather tackle a new project in Go than Python or C++ or Java. It's efficient, it's got great tools and a fully-stocked standard library, a fast compiler, static type checking, type inference, and is extremely easy to read other's code because the language is so simple. There aren't a million ways to write cryptic code, unlike say Scala - which appeals to me more on paper but is a disaster to work with in comparison.

comment 10y ago · link · parent

I wish I could filter jobs by this criteria. Can we do this in the who's hiring thread? I'm sick of the interview process and massive unpaid work assignments cough Compose cough only to find out after investing thirty unpaid hours that they can't offer US market rates to a Canadian for 100% remote job. Oh and they also want to own anything you do in your free time.

Sorry for ranting, I'm just pissed off at how an industry that brags about how they pamper their employees can treat them like garbage during the interview process.

comment 10y ago · link · parent

By the way, if you want to be 300% ahead of your peers, get that remote job, sell your house, close your bank accounts in Canada, and seek non-resident status. Travel the world and bank that extra $70000 a year that would have gone to taxes. Ten years doing that and you can probably retire.

Speaking as someone who did that, and is amazed that it doesn't occur to more people. It's not for everyone, probably most people can't just up and move, their spouse likely can't get a job elsewhere that easily, and there is the question of what to do for the kid's education. If you're single though, you're crazy to stay.

comment 10y ago · link · parent

The effect that will have on the Canadian dollar remains to be seen. I don't expect it to strengthen anytime soon. It fell in reaction to the news.

comment 10y ago · link · parent

Yeah definitely greener in some places and browner in other, I couldn't agree more. But it was a good experience for me too, I married a Panamanian. Plus no income or property tax was just an incredible benefit, I miss that a lot! I'll go back there when I can, just for the taxes.

comment 10y ago · link · parent

I think we're safer from nuclear war now, at least in the short-term. Hillary was going to continue the hard-line against Russia. Trump will likely come to a civilized agreement with them that deescalates the situation. There's no secret that he's Putin's favorite candidate (while the rest of Europe is in shock right now.)

More concerning is his policy with regard to Iran, but the current treaty covers our butts in the short term, while giving the Iranians a sure shot at nuclear capability down the road. Once they get nukes, the Saudis will want them too and the world will be a few minutes closer to midnight. It remains to be seen if Trump will make the situation better or worse.

comment 10y ago · link · parent

As someone who spent ten years in Panama and working for a Swiss company, that must have been a culture shock after Switzerland. Did you speak Spanish before you moved?

comment 10y ago · link · parent

I was out walking around in shorts and a t-shirt yesterday, comfortably. High of 17 degrees. I've never done that in Canada, and I used to be much less of a wuss about the cold. The climate in Vancouver really is hard to beat in Canada.

comment 10y ago · link · parent

If you're a software engineer working in Canada, you can get a 50% pay bump just by crossing the border.

My recommendation is get a remote job for a smaller company that will pay you in US dollars. After converting to Canadian dollars you'll be about 30% ahead of your Canadian peers but without having to pay Silicon Valley living costs or immigrate into a country crazy enough to elect Trump. If you can live away from Vancouver and Toronto you can really make that stretch.

comment 10y ago · link · parent

And I agree with that argument. Where I must respectfully disagree is when you say the previous two major economic upheavals didn't affect you personally, as if implying they shouldn't affect anyone else either, which is silly. You probably didn't mean to imply that, but that's what people are going to read (myself included.)

comment 10y ago · link · parent

Because when lots of people collectively make dumb decisions, then the whole macroeconomic picture goes bad and people like you and I, otherwise not involved find ourselves out of work because of general layoffs in a down economy.

One bad decision here or there won't make much of a difference, because it doesn't dent the whole, and it likely doesn't affect anyone directly connected to us. But many bad decisions is a whole other ballgame.

comment 10y ago · link · parent

I love this, it feels cleaner and more elegant a solution than dark matter particles. However, nature doesn't care what we like, so that doesn't make it more likely to be true.

comment 10y ago · link · parent

I love that quote. Somehow it just highlights the irrationality of it all.

comment 10y ago · link · parent

Adding cars affects throughput, not latency. For goods that doesn't matter much (hyperloop seems like a bad idea for goods anyway) but for passengers it could make a world of a difference.

comment 10y ago · link · parent

I'd say I'm still figuring it out. I think you can't really market yourself too broadly, otherwise people assume you're just padding your resume with buzzwords. You need to focus on a few areas, with maybe just a couple popular flavor of the month frameworks.

Know your customer, and market the portion of your skills that's most relevant to them.

I would go so far as to have two separate blogs/websites if you're going to market skills as disparate as mine.

comment 10y ago · link · parent

I charge $120/hour for development work. I specialize in low-level, performance critical stuff, lock-free algorithms, C/C++, assembly, SIMD code. But most of the work I get is typical full-stack web application development, with a little mobile stuff sometimes.

I charge half rate to startups in top accelerators, like YC, that haven't closed an A round yet. The idea is to build relationships with future customers that have lots of growth potential - but who can't afford $120/hour.

dan"at"closetothemetal.com

I made more when I was working full-time though.

comment 10y ago · link · parent

You've only had 4 assassinations in the USA. It's easy to name 5 internationally. I think leaders could accomplish real change in the USA, but extreme changes would very likely result in assassination. I am certain that if anyone tried to dismantle the military industrial complex in the USA that they would be killed for it. Someone in the military would feel it to be their patriotic duty, or one of the big defense companies would do it to protect their business. You're very naive if you think otherwise.

Abe Lincoln was killed by Booth apparently for being too North-centric in his policies - Booth believed killed Lincoln would cause a major shift towards the South (which was wrong of course.)

Martin Luther King, Jr. wasn't even an elected official, but was killed for trying to change the system.

Luis Carlos Galán in Columbia was killed by the Medellin Cartel when it looked like he was going to win the election in a landslide - his platform was tough on crime and involved cracking down on the production and trafficking of cocaine.

Olof Palme was assasinated in Sweden for trying to implement socialist reforms.

Benazir Bhutto in Pakistan, the first woman elected to lead a Muslim country killed for threatening the status quo.

comment 10y ago · link · parent

Yeah, nuke them. Like it's any different anyway. If you invade a nuclear nation, you're going to get nuked. Which makes it idiotic to invade them. That's why regime's want nukes so badly, it makes them untouchable.

And yes, if you try to shutdown a $600 billion dollar a year industry, someone who benefits from that system will defend their way of life by bumping you off. Politicians have been offed for much lesser things. Don't kid yourself that everyone plays by the rules.

comment 10y ago · link · parent

Too bad. Imagine the paradise your country could be if you just kept a huge nuclear weapon stockpile for deterrence and defence and got rid of everything else. $600 billion a year that could go toward raising the standard of living for Americans and funding health and science. Sure some other parts of the world will go to shit, but that's not your problem and everybody else hates it when you get involved anyway.

I often thought if I could run for president, that would be my platform. But I'd never win. If it even looked like I could win, I'd die under mysterious circumstances. I don't think it's possible for anyone to scale back the military to that extent. There's too much money involved and vested interests will do anything to maintain the status quo.

comment 10y ago · link · parent

Obviously you're not talking about the UK. Maybe you live in Spain.

comment 10y ago · link · parent

Exactly, because gasoline never catches fire in a crash... I bet if you look at vehicle fires per 1000 vehicles, you'll find Teslas are involved in fewer fires than gasoline vehicles.

Not sure about diesel because it's a lot less flammable.

1
164165166
184