News for hackers. Stuff that matters.

chi3

Re:A Programming Language Underdog on Saturday September 22, 2018 @07:32AM (#18045580)
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.

Re:Rain ruins one of Norway’s richest men on Sunday September 16, 2018 @06:52AM (#17998303)
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.
Re:Linux touchpad like a Macbook: goal worth pursuing? on Tuesday July 17, 2018 @04:35AM (#17548211)
Microsoft's Surface Book comes very close actually, so while the MBPs are still ahead, the gap is getting smaller!
Re:Rust pointers for C programmers on Saturday June 30, 2018 @06:36PM (#17433101)
Well, there's plenty to say about C++ compiler errors too!
Re:You can now run Linux apps on Chrome OS on Wednesday May 09, 2018 @03:56AM (#17028108)
Aren't they just Clevo computers? If so, the ones I've used have _nowhere_ near premium build quality.
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.

He mentioned nothing about where he's from though.
Re:Java is Pass-by-Value on Monday April 23, 2018 @03:02AM (#16901076)
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.

Re:Java is Pass-by-Value on Sunday April 22, 2018 @11:53AM (#16896681)
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.

Re:Java is Pass-by-Value on Sunday April 22, 2018 @11:38AM (#16896606)
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.

Re:Java is Pass-by-Value on Sunday April 22, 2018 @11:11AM (#16896492)
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?
Oh yeah, I've heard spying is more memory intensive than running dozens of VMs!
Re:Course: Mathematics for machine learning on Monday April 09, 2018 @05:03AM (#16791463)
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!
Re:Course: Mathematics for machine learning on Monday April 09, 2018 @02:49AM (#16790938)
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?
Re:Reddit’s Redesign on Tuesday April 03, 2018 @02:49AM (#16742415)
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.

Re:Deprecating Raw Pointers in C++20 on Sunday April 01, 2018 @09:17AM (#16728119)
Honestly, anyone with C++ experience should understand that it's a joke just from the title. I'm honestly surprised so many people thought this could be true; even Rust has raw pointers (in unsafe mode).
Re:Deprecating Raw Pointers in C++20 on Sunday April 01, 2018 @09:13AM (#16728100)
And why couldn't you do it in another language? If Go is performant enough, then I'm sure for example Java would be as well.
About [2], yeah, that's the way it could happen without a 0-day, but it really does seem very, very impractical, risky and unlikely.

Out of sf, KQLY and Emilio, it does seem likely that both sf and Emilio would cheat online in order to qualify, but KQLY whose team almost always passed online qualifiers? I have no idea.

If I recall correctly, Emilio was banned months prior to the others though, and he hardly played any major LANs. sf and KQLY were using the same cheat, but there's nothing which makes it seem like it happened on LANs.

Either way, it's impossible to say what happened years ago, but if it did happen, I doubt it kept happening.

There has never been a proven case of either as far as I know, only theories and "insiders" claiming these things.

The german guy who was caught was saying a lot of these things which obviously weren't true, like claiming that a lot of other players in top teams were cheating on LAN, but in hindsight that hardly seems believable.

A driver cheat which would auto-inject code on insertion would as far as I know require a 0-day exploit on Windows, and I have a hard time believing one of the cheat devs was sitting on one of those.

There was a huge scandal in CSGO a few years ago where people started thinking a top professional player had been cheating in a major LAN, and that was about when he came up with the gameref. The player was banned for cheating, but whether that was on LAN or in online games is still unknown.

The cheat was allegedly injected into the game through an exploit in a custom map which you could download through steam.

Re:C++ Core Guidelines on Friday March 09, 2018 @08:59AM (#16551745)
That's because a panic should never happen in Rust. If it happens, there's by definition a bug which will make the thread crash.
Re:Ask HN: Best way to learn modern C++? on Wednesday March 07, 2018 @01:29PM (#16538568)
That's quite irrelevant to the conversation though, we weren't talking about whether OOP is good or not. C++ is very far from "C with classes" today.
Re:Ask HN: Best way to learn modern C++? on Wednesday March 07, 2018 @12:14PM (#16537852)
> C++ is just C with extra notation for easy modeling of Classes and Objects.

That's far from true today, and I'd even argue it hasn't been true since very early on. Simple example to prove my point: RAII.

From what I know, If you're self-employed you'll also have to pay payroll tax, which makes taxes end up close to 50% without even taking taking sales taxes into account.
Re:D3 Antminers on Tuesday September 26, 2017 @08:23AM (#15337962)
If that's the case, why aren't they using them themselves instead of selling them?