HNHacker News
TopNewBestAskShowJobs

g15jv2dp

657 karma · joined May 24, 2024

submissionscomments
g15jv2dp··on Monetagium – monetary extortion in feudal Europe
Is your comment still about Europe...?
g15jv2dp··on Clang vs. Clang
There's no reason that C should be suitable for every purpose under the sun.
g15jv2dp··on Clang vs. Clang
> It should emit an instruction to access memory location some_array + i.

That's definitely what compilers emit. The UB comes from the fact that the compiler cannot guarantee how the actual memory will respond to that. Will the OS kill you? Will your bare metal MCU silently return garbage? Will you corrupt your program state and jump into branches that should never be reached? Who knows. You're advocating for wild behavior but you don't even realize it.

As for your example. No, the compiler couldn't optimize like that. You seem to have some misconceptions about UB. If foo is false in your code, then the behavior is completely defined.

g15jv2dp··on Considerations when building embedded databases
It's still going to dynamically allocate its memory in there, isn't it? This is a slow operation.
g15jv2dp··on Considerations when building embedded databases
Another thing to consider is that sqlite dynamically allocates memory. You typically want to avoid that in embedded. Everything is slow, memory is scarce. The sheer code size is also a issue.
g15jv2dp··on Breakthrough a step toward revealing hidden structure of prime numbers
Instead of expressing your knowledge and superiority by metaphorically rolling your eyes without contributing anything, how about you give a better explanation? Because honestly, I find these two kind-of "okay".

And because this is HN, based on past experience, I need to preface with the fact that I'm a professor of math. So no need to start by questioning my knowledge on the topic, just get straight to the point.

g15jv2dp··on SnowflakeOS: Beginner friendly and GUI focused NixOS variant
The existence of a dozen entries for that word reinforces my point...
g15jv2dp··on Porffor: A from-scratch experimental ahead-of-time JS engine
All of these have, at the very least, escape hatches that makes the type system unsound overall. And probably other issues https://counterexamples.org/ I can find a few in there for at least scala and haskell. Perhaps this is not a satisfying answer to you, an "unsound type system" is a technical, precise notion, and this is what people who parrot "typescript is unsound" are referring to. You cannot just reply "well there are a few runtime checks so it's all good."
g15jv2dp··on SnowflakeOS: Beginner friendly and GUI focused NixOS variant
It's a very common word. Why should one company be allowed to appropriate it?
g15jv2dp··on After 10 years, Yelp gave my app 4 days
Even if we subscribe to this interpretation, the overall point stands.
g15jv2dp··on Porffor: A from-scratch experimental ahead-of-time JS engine
Look at the last example in there: https://counterexamples.org/polymorphic-references.html
g15jv2dp··on Superconducting Microprocessors? Turns Out They're Ultra-Efficient (2021)
It depends on what you have your transistors do. You could even have one single transistor that you switch on/off very very quickly. You'd need to find a transistor with sub-ns switching time to reach >1GHz. It's not a very interesting "computation," though.
g15jv2dp··on Porffor: A from-scratch experimental ahead-of-time JS engine
I doubt it's been proved to be sound. It shows up a lot on https://counterexamples.org/, although if I skim the issues seem to have been fixed since then.
g15jv2dp··on Porffor: A from-scratch experimental ahead-of-time JS engine
This is specifically about type systems. It's easy to have a sound type system when you have no type system.

Also, I'm not too familiar with JVM bytecode, but if I load i64 in two registers and then perform floating point addition on these registers, does the type system prevent me from compiling/executing the program?

Can you say more about "proven to be sound"? Are you talking about a sound type system?

g15jv2dp··on Porffor: A from-scratch experimental ahead-of-time JS engine
> I think the even bigger elephant in the room is that TypeScript's type system is unsound.

Can you name a single language that is used for high-performance software and whose type system is sound? To speed up the process, note that none of the obvious candidates have sound type systems.

g15jv2dp··on Don't blindly prefer `emplace_back` to `push_back` (2021)
...could it be that

> Without knowing the type of the vector, we don’t know what constructor it’s invoking, so we can’t really say what that line is doing.

g15jv2dp··on Calculating the cost of a Google DeepMind paper
This assumes that you can sell 100% of the resources' availability 100% of the time. Whenever you have more capacity that you can sell, there's no opportunity cost in using it yourself.
g15jv2dp··on AWS Code Commit Ceased Onboarding New Customers
Software devs fall to hype sometimes. It's not just management. But I guess it's easier to always look for blame elsewhere.
g15jv2dp··on C Macro Reflection in Zig
> C++ fears reflection in general and hates macros in particular.

Macros aren't a particular case of reflection... And at least in the way they're done in C++, they're a big source of bugs / spaghetti.

g15jv2dp··on Don't blindly prefer `emplace_back` to `push_back` (2021)
Uh. I'll try to be more explicit. Let's say that someone in a library somewhere has made what you consider to be a mistake. Or they consider something to be a conversion but the constructor is not trivial. For the push_back construction, can you then say what the call does without knowing the types?
g15jv2dp··on Why Navajo is one of the most difficult languages (2023)
English becoming the "international" language for the west has nothing to do with English as a language, and everything to do with geopolitics and economics.

As for being treated as an outsider, I actually moved and lived to the US for close to a year. I made tons of effort to try and speak good English. On the face of it, the locals were very appreciative - French accent is so romantic, am I right? In reality, they made absolutely zero effort to understand me when my pronunciation differed slightly from the correct one, on countless occasions. And believe me, I tried.

g15jv2dp··on Don't blindly prefer `emplace_back` to `push_back` (2021)
Are you saying that for the first line, one could say that...

> Without knowing the type of the vector, we don’t know what constructor it’s invoking, so we can’t really say what that line is doing.

g15jv2dp··on Apple has reached its first-ever union contract with store employees in Maryland
Are you trying to make a joke? Or just derailing the conversation? I'm clearly talking about the people posting on this site.
g15jv2dp··on Apple has reached its first-ever union contract with store employees in Maryland
Maybe read up on recent union busting cases. Starbucks, Tesla, Walmart, Amazon... It's a lot more nuanced than that.

And note I'm replying to someone claiming it's impossible to charge companies with union busting at all.

g15jv2dp··on Apple has reached its first-ever union contract with store employees in Maryland
"This site" isn't a single person and if you read the comments under this story, you will find a ton of anti-union sentiment.
g15jv2dp··on Apple has reached its first-ever union contract with store employees in Maryland
> But that's just pointless because there are a thousand other reasons they might want to close the store and there is no way to prove it

That's the exact point where your argument breaks down. It is possible, sometimes, to prove that a company closed a store because of a union. See the recent Starbucks trial. In the end, they were only saved by the SCOTUS, who isn't exactly uncontroversial at the moment.

g15jv2dp··on Apple has reached its first-ever union contract with store employees in Maryland
Why is Apple presented as the protagonist in this headline? It's obvious that they fought this teeth and nails. No, store employees managed to make a behemoth bow and accept their demands.
g15jv2dp··on An experiment in UI density created with Svelte
> This is not true. Mobile platforms do help with tapping on small elements. E.g. HN isn't mobile friendly "as is", but I have no issues with tapping any of the links. I've also used Exante mobile trading terminal for some time and had no issues with it either.

Good for you, maybe your phone screen is huge. I routinely tap on the wrong element when using HN on mobile. Even on desktop I have to set the zoom level to 125%.

g15jv2dp··on SQLite: 35% Faster Than the Filesystem
Didn't they introduced ReFS ("dev drives") to alleviate this?
g15jv2dp··on The Linux audio stack demystified
Dupe from three days ago by the same author https://news.ycombinator.com/item?id=41042753
← PreviousPage 3 of 8Next →