ohf

Joined 8 years ago

Karma
82
Submissions
35
Member since
Mar 5
procrastinator
View on Hacker News

Recent submissions

Comment · 8 years ago
> Yep. I bet this changes relatively soon, since you can sometimes use recursion in OpenCL & CUDA.

Am I correct in assuming you can only recurse when the recursion can be "unrolled" into a simple loop? In other words, no program flow structures.

Comment · 8 years ago
Neanderthal isn't a synonym for stone-age.
Comment · 8 years ago
Oh, duh.

Still, javascript.

Comment · 8 years ago
High CPU overhead seems reasonable for HTML5-based games. Introducing a DOM can only make things slower relative to a leaner (native) engine.

For reference, I'm on a late-2015 laptop (XPS 13 9350) with integrated graphics, but the newer i3 gives me perfectly fine performance.

Comment · 8 years ago
Wow, that webpage sucks. What are the specs?
Comment · 8 years ago
Touche.
Comment · 8 years ago
> Java calls references, works more like C/C++ pointer, rather than C++ reference

What makes you say this? You can't do pointer arithmetic on Java references, and the internal memory model is completely obscured. C++ and Java references look similar to and are accessed like variables. The major difference is that Java references can be reassigned, like a pointer, which is necessary in a language without true pointers.

Comment · 8 years ago
Java references are closer to C++ references than anything else. They're like pointers until you access/call them, at which point they're just objects. C++ references are identical, but the syntax is a bit more explicit.

It is a funny language feature to have when you think about it; it just so happens to be useful. References and pointers are distinct in languages that have both (C++), so not mixing the terms between languages is helpful. If Java programmers started referring to their variables as "pointers," because internally, that's more representative of what they are, I'd be a bit irked.

Comment · 8 years ago
I would actively avoid that, but only because it confuses me.

That syntax loosely implies that removing the second d assignment would allow me to create new-but-altered dogs with alterDog(Dog), which isn't the case. If I wanted to use assignments like that, I would try to go fully immutable with factory methods that help me make slightly different, new dogs on the fly, and return them.

Comment · 8 years ago
Here lies the tale of Marissa Mayer.
Comment · 8 years ago
That article sure manages to say a lot without saying anything at all.
Comment · 8 years ago
It's whoever 4chan is.
Comment · 8 years ago
Ah, shit.
Comment · 8 years ago
I'd wager that Spotify is nearing the point at which - if not already there - record labels cannot afford to revoke their license. If they can get away with it, they'll try to push some buttons, but I doubt a full confrontation.

If there's any evidence against this, please let me know. I think it's interesting.

Comment · 8 years ago
Why, no government-funded institutions have ever violated our privacy. What a wonderful idea.

Propaganda, trite.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton