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

It was a 10-15 min drive, or one hour walking. Which sounds about right (maybe a little less than $20.)

comment 9y ago · link · parent

This is a judge that I respect. He should be on the Supreme Court.

comment 9y ago · link · parent

I actually grew to like the taste of UHT milk, after living in Panama for many years where the fresh milk just never lasted longer than a week in the fridge. But I prefer pasteurized still.

comment 9y ago · link · parent

GraphQL has a lot more to offer than just batching requests. I think that's one of the less important features actually. A common way to declare exactly what objects and attributes you want is more important, you can invent something like that for REST but you'd be reinventing the wheel for every endpoint.

comment 9y ago · link · parent

I think that stands to reason, unless the OP wants to argue it's an innate defect of the Chinese as a race - which, to be clear, I don't think anyone is arguing.

In outsourcing situations where you replace a highly-skilled and highly-paid worker with a low paid one in another country, you often get predictably bad results. Is it a cultural difference? Is it because of the compensation? Or just the attitudes of the companies involved on both sides and the kind of people they hire? I think like any complex issue, there's no one answer, but that last point sounds particularly convincing.

comment 9y ago · link · parent

I've worked on both types of projects and I would never choose microservices over monolith if presented the option.

Rather, I agree with the author that proper separation into documented modules gives most of the benefits from microservices without any of the numerous drawbacks.

Microservices seriously increase the operational overhead. They increase the hardware expenses. They increase service latency through round trip times and unnecessary work. They increase the code complexity through unneeded serialization/deserialization and REST calls vs plain old function calls. They make debugging a lot harder. They give you all the pain of distributed systems and networking when all you previously needed was a function call.

With Go (and many other statically typed languages) you get proper modules that can't reach into the private implementation of other modules (even with reflection.) They can't have import cycles. The compiler will take care of alerting you when an API changes in an incompatible way. Likely all your modules will share a backend database(s) so you need to take care to use the public interface of the responsible module rather than reach around behind its back with direct queries - but that's a solvable organizational problem.

I wonder sometimes if the microservices craze isn't trying to find a technical solution to human problems that would be better dealt with via communication and creating solid organizational practices. Like team A doesn't trust team B and rather than work out a common set of norms and rules they just start using microservices to bypass dealing with the problem all together.

comment 9y ago · link · parent

Those are organizational concerns that you're conflating with microservices vs monolith. They're tangential. I see no reason why you can't assign team responsibility to individual modules vs microservices. You can collect metrics for both modules and microservices and publish them in a dashboard. Alarms and monitoring are probably unnecessary at the module level in most cases - you'd just do it once for the whole monolith.

comment 9y ago · link · parent

It's clear that if a powerful language was such a competitive advantage, languages like Haskell would rule the world - instead they're hardly used for business projects.

Along comes Go and in 8 years people have built more production code with it than probably all the functional programming languages of the world combined. If that's not true yet, it will be soon the way the trend is going. And those languages have been around for many decades.

I think this means Paul Graham was wrong - a powerful language isn't a killer advantage. Other things matter more. Like simplicity that means being able to read other people's code and cooperate on a large code base. Strong language tooling. A batteries included standard library. Being able to hire developers not skilled in language X and get them up to speed quickly.

At the end of the day it seems pragmatic wins.

comment 9y ago · link · parent

I turned down a job with IBM once they told me, after appeal, that they would own my side project if I continued to work on it. The interview process cost me 40 hours and an all-nighter take home (I really needed the job.) The salary was fantastic for Canada, but still pathetic by US standards.

comment 9y ago · link · parent

Let's hope Elon Musk doesn't find out about this. With his ambition and penchant for moon(mars?)shots he might just try redirecting this asteroid. Plus he owns a rocket company, so he's got more means to pursue such a goal than anyone else. But I'd sleep better knowing there isn't a 200km wide chunk of solid iron being redirected in our general direction by programmers who maybe fat-fingered a critical part of the data/algorithm somewhere.

comment 9y ago · link · parent

Finally! I've been wanting this for a decade - but not badly enough to try to build it myself.

comment 9y ago · link · parent

It's not located on/at Mars, it's located at the Lagrange point - which means much like your hand can cover entire mountains at a distance, a smaller magnetic field could shield an entire planet when positioned between mars and the sun.

comment 9y ago · link · parent

It doesn't need to affect your CPU cache, because x64 processors have non-temporal writes (streaming stores) that bypass the cache.

The stuff about eagerly allocating pages is spot on though.

There is calloc which allocates and zeroes memory, but people don't use it as often as they should.

comment 9y ago · link · parent

Still limited to a measly 208gb of RAM? That was pretty good back in the day, but now my desktop workstation has 128gb. AWS offers up to 488gb on their latest R4 instances, and 2tb on their X1 instances released a year ago.

comment 9y ago · link · parent

I'll share my experience here for anyone who's considering the tradeoffs.

It's harder without a degree, especially getting the first job. And your jobs might pay less in the beginning (mine did not, but that might not apply to everyone.) After that it gets easier, but even now in my mid thirties I get turned down because of that - but it doesn't bother me much. There's a lot of developer jobs out there and I still end up getting to pick among several. I was making six figures by my second job, but I have no idea how common that is.

A degree costs a lot of money and 4 years of your time. You should give that a good hard look, because if you're dedicated and you love the work you can progress much faster on your own and it won't cost you anything - in fact you will likely earn a lot of money during that time. If you prefer to veg out after work every day with your choice of drug or tv, forget it. You're going to need all the help you can get, go for the degree. If you're going to put in the time and effort you'll quickly surpass your peers and get the best jobs - with or without degree.

But the biggest thing I did for my career was move to Panama where there's no tax on foreign income. I worked five years in a remote job and paid off my mortgage.

comment 9y ago · link · parent

I've seen quite a lot of evidence in support for this. I won't do your googling for you, but it's out there if your interested.

comment 9y ago · link · parent

This is a joke right?

Unix philosophy has long been that the person with physical access to the machine owns it. This would only be acceptable for a very specific class of compute jobs where nobody cares if you hack them. Like computation for charitable purposes. You could never host peoples personal or business data in this. Furthermore bandwidth would be limited and unreliable, as would power.

comment 9y ago · link · parent

If you want to get pedantic I'll revise that too young children typically have a simplistic world view where things are either good or bad. I'm all too aware that many adults are like that as well, but it's a childish attitude that speaks very poorly of them. I also expect that kind of attitude is negatively correlated with IQ, but have no evidence to back that up.

comment 9y ago · link · parent

This is an example of patents being used the way they were intended. Not all patents are bad you know. The world is shades of grey, not black and white as children see it.

comment 9y ago · link · parent

I'd like to hear that opinion from a lawyer. While it makes sense, the reality of the law doesn't always make sense.

comment 9y ago · link · parent

IIRC one of the problems was github notifies you as soon as a comment is posted, potentially wasting your time if you go look before the comments are finalized. For example you may see a comment asking how something works, and waste time replying only to see the comment was since deleted because the reviewer figured it out.

I don't think the issues were really that serious, but the Go team likely saw no reason to change away from the tool they were comfortable with for a slightly worse tool that they would have to adapt to.

comment 9y ago · link · parent

An unintended side effect of the GIL is that all calls to a C implemented function are atomic and single threaded, provided that the C function doesn't release the GIL. In practice this means lists and dicts are thread safe and existing Python code relies on this.

comment 9y ago · link · parent

This is not a lock free bug. But it does illustrate how hard it is to get thread synchronization correct. The only bug that ever beat me was a lock free bug in a concurrent skip list. I spent two months of evenings and weekends trying to find it. I wrote special logging tools and visualization tools to try and gain insight. The bug would happen roughly once every hundred billion operations. In the end I decided it is easier to change the entire algorithm than to fix the bug.

comment 9y ago · link · parent

That would have rubbed me the wrong way too. Good on you for pushing back and winning.

comment 9y ago · link · parent

I think few would take the position that all regulations are bad, or that Silicon Valley companies should be able to ignore regulations. However, regulations need to change with the times and the technology, and this is one case where they haven't caught up. The regulations are serving to protect special interests, defeating the natural efficiency of the free market. They also serve some use, in terms of safety standards, mandating accessibility for people with disabilities, etc. Clearly they need to be revised and improved, but I don't have a lot of confidence in the political environment in the US that they will bring sanity to the situation anytime soon.

comment 9y ago · link · parent

Slippery-slope fallacy. Revising regulation to strike a balance between no regulation and existing regulations to allow services like AirBnB and Uber does not have a causative link to creating a contract-for-hire market for killers...

comment 9y ago · link · parent

In this case I respectfully disagree. If it's opt-in, many, many fewer people opt-in. The data on this is a striking and huge difference between opt-in and opt-out countries. All countries should change to opt-out because it would save a lot of lives - and that's exactly the kind of trade off between personal freedom and the greater good that governments are in the best position to make. That's why we have seat-belt laws and helmet laws and government vaccination programs, etc.

The tragedy in this is actually how long countries are taking to wake up to the data and take action. In Canada (BC anyway) it's still opt-in.

comment 9y ago · link · parent

The interview experience is terrible. I completed a much more ambitious project than I needed to, demonstrating the ability to pick up a complex new framework quickly (React Native). I also implemented a very thorough auth system demonstrating mastery of secure programming (proper salting, message signing, defense against timing attacks.) That didn't matter one bit, I got denied for omitting a requirement which wasn't in the listed requirements and for not communicating to clarify the requirements. Whilst I understand the value of timely communication with real clients, I assumed these guys could get their own assignment requirements correct.

In addition to all this, you will get a much lower rate than you're expecting. While it's true that you set your own rate, they basically told me if I don't charge at the same below-salary rates as the rest of the people on their network, they won't send business my way.

So huge waste of time on the interview, plus you'll make less than a salaried position for the advantage of sporadic work and no benefits. Stay away if you know what's good for you!

comment 9y ago · link · parent

I'd rather a big, fast SSD than an Optane+HDD combo. An HDD in a laptop is just yuck. But Optane does seem to out-perform the top-end PCIe enterprise SSDs by a factor of 5-7x, at least judging by the benchmarks Intel has published against it's own top-end SSDs.

comment 9y ago · link · parent

And this is relevant to Optane because?
1
162163164
184