ohf | 7 years ago | on: Writing a Portable CPU/GPU Ray Tracer in C#
ohf's comments
ohf | 7 years ago | on: Our relationship with teeth is uneven, messy and grim
ohf | 7 years ago | on: Show HN: The Curious Expedition – A Steam game in HTML5
Still, javascript.
ohf | 7 years ago | on: Show HN: The Curious Expedition – A Steam game in HTML5
For reference, I'm on a late-2015 laptop (XPS 13 9350) with integrated graphics, but the newer i3 gives me perfectly fine performance.
ohf | 8 years ago | on: Oculus Go
ohf | 8 years ago | on: Java is Pass-by-Value
ohf | 8 years ago | on: Java is Pass-by-Value
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.
ohf | 8 years ago | on: Java is Pass-by-Value
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.
ohf | 8 years ago | on: Java is Pass-by-Value
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.
ohf | 8 years ago | on: Marissa Mayer Is Still Here
ohf | 8 years ago | on: Lessons on product and marketing from the growth of Domino’s Pizza
ohf | 8 years ago | on: WhatsApp photo drug dealer caught by 'groundbreaking' work
ohf | 8 years ago | on: Spotify opens on NYSE, valuing company at almost $30B
ohf | 8 years ago | on: Spotify opens on NYSE, valuing company at almost $30B
If there's any evidence against this, please let me know. I think it's interesting.
ohf | 8 years ago | on: We need a nationalised alternative to Facebook
Propaganda, trite.
ohf | 8 years ago | on: Bricklayers Think They’re Safe from Robots
ohf | 8 years ago | on: Zuckerberg and Sandberg can't be trusted to handle data leak fallout
ohf | 8 years ago | on: The problem with Facebook
That aside, if you use Google as your main news outlet, all that goes out the window.
ohf | 8 years ago | on: Microsoft Offers Bug Bounty to Prevent Another Spectre-Meltdown Fiasco
ohf | 8 years ago | on: Microsoft Offers Bug Bounty to Prevent Another Spectre-Meltdown Fiasco
But it's really splitting hairs. I don't really get it either - just a guess.
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.