Recent submissions

Comment · 8 years ago
This is enough to make me keep using C++ for the use cases where Nim is meant to shine, or choose Rust instead. If I'm to learn a modern language, I really expect it to support modern paradigms.

I can see why it'd be interesting to someone with no C/C++ knowledge to get into systems programming though.

Comment · 8 years ago
Working at one of the top 5 members of that clearing house in Scandinavia, very few people I've spoken to about it at work earlier this week thinks he is actually bankrupt. He's filing for bankruptcy so that he won't have to cover his own loss.
Comment · 8 years ago
Microsoft's Surface Book comes very close actually, so while the MBPs are still ahead, the gap is getting smaller!
Comment · 8 years ago
Well, there's plenty to say about C++ compiler errors too!
Comment · 8 years ago
Aren't they just Clevo computers? If so, the ones I've used have _nowhere_ near premium build quality.
Comment · 8 years ago
The nobel prize committee is far from "an arbitrary commmittee" as far as I know.

At least for the nobel prize in physics I know it's peers who decide and I'd assume it's the same for the other subjects, and it's not just "arbitrary people who have PhDs within the subject" either, it's a few selected ones who are well known in their fields.

Comment · 8 years ago
He mentioned nothing about where he's from though.
Comment · 8 years ago
But it's still just a pointer underneath? It's more or less just syntactical sugar which makes it dereferenced it for you, and I'd argue that it only makes sense to use the phrase in certain contexts.

The only real difference between the last two is that the last one shouldn't be sent in as null, isn't it? The test in OPs artictle doesn't really make sense either, because you can switch the values using pointers as well.

Comment · 8 years ago
Unless I'm misunderstanding you, what you're asking is only possible in a function signature if the compiler inlines it.

However, outside of function signatures, if you write:

int a = 2; int &aref = a; int b = aref;

I'd assume that the compiler is smart enough to optimize away &aref.

Comment · 8 years ago
Ah, I see the reasoning. I only did basic Java in university so I might be remembering incorrectly, but aren't variables storing non-primitive values called "References"?

Seems weird to me to say that Java "passes by value" when all objects being passed are actually references to objects.

Comment · 8 years ago
Coming from C++, if "passing by pointer value" is considered "passing by value", then what is the opposite? Not passing at all? I mean, there's always going to be _some_ kind of value being passed?
Comment · 8 years ago
Oh yeah, I've heard spying is more memory intensive than running dozens of VMs!
Comment · 8 years ago
Ah, I should've figured that out myself from looking at the contents. I might try it out and combine it with some reading of my old statistics book or some other means. Thanks!
Comment · 8 years ago
I've been looking for something like this to brush up/add to my math knowledge; can anyone recommend this course or would you recommend some other way?
Comment · 8 years ago
Most people will understand reddit if they give it a chance. Problem is that they're less likely to do so if they find the design and UX unintuitive.

I know I disliked reddit's design when I saw it the first time, and I've spoken to several people who never got into reddit because they disliked the design.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton