9,664 karma · joined Jun 14, 2010 (16y ago) · 1,504 submissions
comment 4y ago · link · parent
I fully agree with UML being stuck in OO land, though, and I think that’s the actual problem. Lambdas don’t exist, or have to be verbosely represented as interfaces. Type-level programming doesn’t exist. Anything higher order is unrepresentable to begin with. You don’t have to use Haskell to run into those limits, modern C++ is enough, or Kotlin, or TypeScript. UML is basically useless if you’re doing anything more interesting than cranking out Java 1.4 era EJB boilerplate.
comment 4y ago · link · parent
I’m not sure why it has suddenly become so popular to claim that every single historical fact is a myth. Galileo’s prosecution by the Church is not only well-documented, John Paul II. officially apologized for it in 1992. He might have looked into their archives before doing that.
I swear, going around smugly claiming “Only sheeple still believe that theory” about random facts doesn’t make a person seem nearly as smart as they might think it does.
comment 4y ago · link · parent
I mean, if using that value is supposed to be UB anyway, then the current behavior if standard ints conforms to the spec. Doesn’t that make the proposal largely pointless?
comment 4y ago · link · parent
But you have to consider that a lot of game engines and related tools are intended for an audience without a strong programming background. You wouldn’t expect a 3D modeling tool to display radians. And if the UI shows degrees, the file format would better use degrees as well to avoid rounding errors. And then maybe you want the scripting layer to use the same values that the UI does. And so on.
comment 4y ago · link · parent
What surprises me is that a lot of the deprecated functionality seems really recent — C++14 or newer. Compatibility is C++’s big thing, that’s historically why it kept almost all of C as a sublanguage. I know organizations where migrating to C++11 is still an ongoing process. It’s not great news if features become obsolete faster than many users can adopt them.
comment 4y ago · link · parent
As I explained in a sister comment, there's a lot more going on with rasterization, even back then, than "painting 2D triangles" might imply. Yes, only the XY coordinates determine the screen location of a rendered pixel, but the Z coordinate even at that stage has a lot to do with its color (e.g. for perspective-correct texture lookup) and whether it is painted at all (Z buffering).
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
Here's what I don't get: After a stunt like this, any reputation/brand value that you might have had is gone. So, the obvious conclusion is they bought the company purely to pull this trick. Any other value the company might have had is deleted. Can that have been worth it? Very few people will pay voluntarily, I can't imagine them successfully collecting the money, and the acquisition price probably wasn't 0 either. I can't imagine that the math checks out, or does it?
comment 4y ago · link · parent
Obviously, there's a growing number of people who use Rust professionally, but that's not even the point to argue. Why would people need to "justify" their hobbies? Of course, it's perfectly fine if you don't care about the craft beyond "pay[ing] the bills". But others might, especially on a site called "Hacker News". Maybe let them discuss stuff they find personally interesting, whether those interests are "justified" according to your opinion or not.
comment 4y ago · link · parent
> D’Huy is applying these methods to study how ancient myths can inform what we know about our connection with other animals such as sheep — their mythological link with the sun could have led to domestication. Symbolic, rather than utilitarian, reasons for domestication could explain a lot of data, he says.
Why would hunter-gatherers in a resource-constrained environment keep food around and not eat it? I would rather bet that my ancestors had exactly the same mythological connection with their flock of sheep that I have with my freezer.
comment 4y ago · link · parent
At least some of the colors weren't pure binary RGB values as claimed in the article. For example, "dark yellow" was closer to a brown #804000 than #808000. Maybe that depended on the graphics card? Otherwise, I'm not sure why many terminal emulators would have gone with a pure dark yellow instead.
Also, maybe the overall contrast was lower on CRTs. At least I think the blacks were less dark on early monitors, which might have helped to make the colors look less harsh.
comment 4y ago · link · parent
For people like me, it’s clearly childhood nostalgia. But to be honest, 8-bit programming was so painful that people couldn’t wait to get rid of those limitations back then. (I tend to think the 16-bit era was the sweet spot in terms of capabilities vs. complexity.)
comment 4y ago · link · parent
The long answer is that it’s not so clear what an “in place addition” even means at the level of CPU instructions after you consider register allocation. For example, if you have
v = x;
v += y;
f(v);
and the never mention v again, then the whole operation is performed directly in the register that is specified to receive the first argument in a function call, not in whatever register might have been allocated for v.That’s because, with some complications I don’t want to go into, compilers look at the dependency graph of values rather than at the variable names.
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
*reg &= ~(uint64_t)x;
or, and there’s no elegant way to even write this in C, I might want: *reg &=(uint64_t)(uint8_t)~x;
The fact that I have to write two casts here to undo the damage of the auto-promotion is evidence of how broken this is.