HNHacker News
TopNewBestAskShowJobs

yazzku

848 karma · joined July 21, 2022

submissionscomments
yazzku··on Show HN: OpenFreeMap – Open-Source Map Hosting
> (I call this begware)

This only reflects how fucking stupid you are. If you read the post in any detail, you'd realize the author has been running a paid service for a while (9 years) and does not need your help.

yazzku··on Rawdrawandroid – Build Android apps without any Java, in C and Make
It's really sad. I think Java is a rather ill-designed and boring language, not even worth learning for intellectual purposes, but it does have a mature ecosystem around databases, web services and stuff, and it has its use cases. Beyond that, it really beats me where this attitude comes from. I attribute it to living in your bubble and not exploring what the guys over on the other side of the fence are doing. This is why one should learn as many programming languages (and paradigms) as possible, even if you don't end up using half of them. It's like when those guys come out with a new "minimalist" CSS framework, and the bitch downloads a 2MB payload just to bootstrap your "hello world".
yazzku··on Rawdrawandroid – Build Android apps without any Java, in C and Make
I appreciate your response. My original post was a rant for sure, but let me reply to your comments.

> You want project Valhalla, or more specifically Value Objects, which are in preview [0]. If you really want the highest performance related to cache accesses, you want to arrange things as SoA (struct of arrays) anyway, which has approx 0 object overhead and doesn't require Value Objects.

SoA requires unboxed arrays, otherwise it defeats the purpose. I may have been wrong about int[] being boxed (it seems to be unboxed in most implementations), but the fact that ints still auto-promote to Integer in certain circumstances is just ridiculous for any kind of low-level programming.

It's also hilarious that Value Objects are still in preview. Even C# has had structs (value semantics) since forever.

> This is silly. This happens with all other languages, and Java will give you better results on average. Use a different compiler or runtime for your C code, or run it on a different processor architecture, and have fun tuning your code.

This is false. structs in C or C++ don't have a language-imposed overhead. They may have different sizes depending on the alignment requirements of the platform.

> The Vector API [1] is available in preview.

Also hilarious. It's 2024.

> It's widely understood that doing the opposite has been perhaps one of the largest mistakes in the history of the industry.

Checking every single array access in a tight loop, for example, is stupid. It's the naive, dumb, and inefficient way of doing it (i.e., the Java way.) The right way to do it is to enforce up front that the index may never be out of bounds. Ada helps with this by having user-defined ranges and integer types, for example.

> What does this even mean? An int[] is a linear array of 32-bit int values in memory.

Yes, I think I botched that one, but see also my comment above.

> Are we now just talking about a small slice of people who write bad code?

No, I am talking about Java.

> Ah, ok. Have a fine day.

Oh, and how does Java do low-level systems programming without unsigned integer types, lol? Oh, yeah, you need to cast to/from the next largest integer representation so that you can encode all of the positive values. And you better hope you don't need more than the native size, because then you get fuck-boxed into Integer (see my comment above.) Fucking hilarious, y'all.

Also, you don't even have a guarantee that a variable is allocated on the stack even when the dumbest compiler can tell it's bound by function scope. You need to hope that the JIT will do it, and from my past experience in Android (which this post is about), it doesn't. This is why, for example, if you look at the math library of LWJGL [1], all functions are defined to mutate one of the arguments, they never allocate a new vector to return. This is just completely stupid because mathematical vectors should have value semantics and the compiler optimize the fuck out of them. (Don't get me wrong, I love LWJGL and the guys. This is a criticism of the language, not the library; they are doing the best they can given the language's stupid decisions.)

[1] https://github.com/JOML-CI/JOML/blob/main/src/main/java/org/...

yazzku··on Rawdrawandroid – Build Android apps without any Java, in C and Make
No, it doesn't.

Java is a piece of crap with JVMs imposing an 8-24 byte overhead per object, which destroys caching, memory footprint, and any chance of low-level optimization. Not only is the overhead bad, it's implementation-dependent, i.e. unpredictable. That, along with lacking SIMD, imposing stupid decisions like bounds checks on all array accesses, making arrays boxed (int[] is not an array of ints, sorry), or using exceptions for control flow, which is the wrong way to use exceptions, is a just part of the big laundry list of why Java is a piece of obsolete crap that nobody serious about low-level hardware programming uses. Java SE/ME is a fucking joke, as is every book I have read about "high performance Java". People who promote Java for low-level hardware programming, real-time systems, and the like, just have absolutely no fucking idea what they're talking about and they get their garbage published only because of the low standards of publishing nowadays. They do get the "Java Champ" badge from Oracle, though. Noobs award other noobs badges, as it turns out.

yazzku··on Rawdrawandroid – Build Android apps without any Java, in C and Make
It's not blind rage. I've used them, they're over-engineered crap, like most things Java, especially the abominations made at Apache land. You can't say Make is over-engineered; lacking, maybe, but it does what it's meant to do and not much of anything else.
yazzku··on Rawdrawandroid – Build Android apps without any Java, in C and Make
Obviously the complete and utter crap that gradle/maven are is much better, right?
yazzku··on LinkedIn does not use European users' data for training its AI
Fuck LinkedIn. They should have already been sued for their exploitation of people's identities a long time ago.
yazzku··on A Message from Intel CEO Pat Gelsinger to Employees
Gonna be the finest engine you've seen since the industrial revolution. Grease those gears, guys, we're shedding a head count of no less than 15,000 to keep this baby going. And that's just this year.
yazzku··on OpenAI Threatening to Ban Users for Asking Strawberry About Its Reasoning
Good point against the EEE case above, but the models are not open source per the OSI definition that everyone understands. That part is part of their marketing playbook. Licenses are almost always non-commercial use, which makes them not-open. You could say it's "open model", but that's a useless term since the arch is not a secret, but rather the training data that went into it, which is not open.
yazzku··on Is Tor still safe to use?
It's like a series of onions!
yazzku··on Falsehoods programmers believe about TCP
The author probably doesn't understand the answers very well themselves.
yazzku··on Understanding Concurrency, Parallelism and JavaScript
That is how I learned it at uni too. Unfortunately, I have found these definitions are all over the place in some literature.
yazzku··on David Chang on the long, hard, stupid way
As a programmer, this still seems overly dogmatic. Why not just develop the discipline to put effort where it's actually needed instead of burning gas all around like a moron? Every programmer knows this. The extreme dogma seems the real lack of discipline to me.
yazzku··on Brazil's X ban is sending lots of people to Bluesky
"externalities" is precisely the kind of word used by those who evade responsibility.
yazzku··on Brazil's X ban is sending lots of people to Bluesky
The dictatorship of those who think differently than I do.
yazzku··on Brazil's X ban is sending lots of people to Bluesky
I've read Greenwald's "Securing Democracy". Is that still an accurate picture of Brazilian politics from your point of view?
yazzku··on Freetube is the best way to watch YouTube
"sustainable" while making the board $20bn quarterly profit, of course.
yazzku··on AnandTech Farewell
Text -> video -> text

It's come full circle, just that the wheel now consumes orders of magnitude more power to churn the final text.

yazzku··on US judge throws out FTC's ban on non-compete agreements
"Agreements"

Right. Like you actually have a fucking choice when every employer does it and you've come out of college with some $300k in student debt. This judge needs to step down on Earth. Or is he on a Boeing spacecraft?

yazzku··on Sort, sweep, and prune: Collision detection algorithms (2023)
Not mentioned is spatial hashing, which works well without complex data structures.

Also sad that you need all this complexity to test 25 balls in Javascript. 25^2 is a small number in C, especially when your balls fit in cache.

Still a good introduction to various algorithms, though.

yazzku··on Confusion Attacks: Exploiting Hidden Semantic Ambiguity in Apache HTTP Server
Also slides: https://i.blackhat.com/BH-US-24/Presentations/US24-Orange-Co...
yazzku··on How the Totem Compass Works
Good ol' pissing on the side of the tree. Lasts longer than any battery and also wards potential predators off. Dog approves. Spice up that smell with a caramel macchiato add-on if you're into startups.
yazzku··on Stable Fast 3D: Rapid 3D Asset Generation from Single Images
I was going to comment on the same; these 3d reconstructions often generate a mess of a topology, and this post does not show any of the mesh triangulations, so I assume they're still not good. Arguably, the meshes are bad even for rendering.
yazzku··on An experiment in UI density created with Svelte
It should have been prefixed with "AI".
yazzku··on An experiment in UI density created with Svelte
I've seen this behaviour on other web pages too, and it also occurs on desktop. A mystery of life.
yazzku··on CrowdStrike offers a $10 apology gift card to say sorry for outage
I suppose you are downvoted because your last statement is not necessarily true. But you are right that the post is vague about how many people exactly received a gift card, since it only says that "partners" received a gift card. The thought that CrowdStrike sent one $10 gift card per partner company is hilarious. They botched the update and apparently they botched this narrative too.
yazzku··on AT&T says criminals stole phone records of 'nearly all' customers in data breach
These are records from 2022. The hack wasn't carried out the second the calls were made. You really need to keep the records that long to do your billing? That's absurd.
yazzku··on AT&T says criminals stole phone records of 'nearly all' customers in data breach
> There's no federal law requiring AT&T to hold onto this data.

This is false? https://www.law.cornell.edu/uscode/text/18/2703 https://www.usnews.com/news/articles/2015/05/22/how-long-cel...

yazzku··on Gpu.cpp: A lightweight library for portable low-level GPU computation
Because C++ is better.
yazzku··on Three years in North Korea as a foreigner (2021)
It's like the mom and pop shop around the corner.
← PreviousPage 4 of 24Next →