Better HN
topnewbestaskshowjobs
Log inSign up

gignico

238 karma · joined Mar 16, 2025 (1y ago) · 62 submissions

Submissions

comment 3d ago · link · parent

Why isn’t this acknowledging Masullo’s proof as well?

comment 2w ago · link · parent

Honestly, coming from C++, Rust seems to compile very very fast. Those who complain about compile times usually come from Go, whose compiler, to be fair, barely needs to parse the code to call it a day. Or from interpreted languages where you don't have to wait at all. But in general, the Rust compiler is quite fast for what it does. If you have a 500kLoC project though, of course it is recommended to split it up into different crates (where it makes sense logically), to speed up even further.

comment 2w ago · link · parent

I love C++, in the C++11 days I even organized a local C++ User Group at my university, and I've used it for the last 20 years as my main language.

I still appreciate its many merits but since a bit more than a year I migrated to Rust and I find it very difficult to look back, except for maintaining my previous C++ projects.

Surprisingly, it's not Rust's memory safety features that I miss the most when turning back to C++. It's mostly the absence of algebraic data types and pattern matching, and the split between compile-time and runtime polymorphism, i.e. concepts vs virtual classes, where in Rust you just have traits and use them for everything. On top of that the tooling and the ecosystem are just amazing.

There's a proposal for pattern matching sitting there under the committee's desk for some years now. With the mess that the standard committee is going through I really doubt they will be able to ship pattern matching for C++29 or even later. Too little too late.

So to answer the question, yes, I still appreciate the merits of C++ but I don't enjoy writing it as much as I have in the past.

comment 1mo ago · link · parent

Wait, is there a StarCraft coming in 2030??

comment 1mo ago · link · parent

> Generalized Star-Height at Most Three

This was an open problem in automata theory I worked on for more than one year before giving up. I'm very curious about their claimed proof.

comment 2mo ago · link · parent

They are, but if the country has a law forbidding you from doing anything, things cannot move forward. If they'll not work, of course they won't be built. And large classic reactors are unlikely to be built either, even with this new law.

comment 2mo ago · link · parent

The idea is to go to new-generation SMRs, not revive decades-old plants, which is actually impossible.

comment 2mo ago · link · parent

> 06 - Somatic limb regeneration

At least those things cannot be solved by just burning GPT tokens.

comment 2mo ago · link · parent

This sounded to me like that old “would you steal a car?” anti-piracy campaign until I clicked to read the post :)

comment 2mo ago · link · parent

In the contrary it’s one of the best design decisions of the language. The rules for object safety are the same C++ applies to virtual functions. On the other hand you don’t have to choose a priori whether you’ll need dynamic or static polymorphism, you can choose at use site, and the size of the objects do not pay for dynamic dispatch because the vtable pointer is kept together with the object pointer, not within the object.

comment 2mo ago · link · parent

Indeed, thanks :)

comment 2mo ago · link · parent

Unbelievably I read this news while visiting Cork. Went to Kinsale yesterday. Never been to Ireland before. What a coincidence!

comment 2mo ago · link · parent

I thought the US government had just decided that the cause of autism was vaccines </sarcasm>

comment 3mo ago · link · parent

Yes, C++26 reflection is nice, but also extremely complex to understand and use well. The rest of C++26 is the usual series of too-little-too-late additions. Meanwhile I’m still waiting for pattern matching to become a thing (a proposal has been discussed for ages)

comment 3mo ago · link · parent

I understand the issue about the ever-moving target etc., but almost fifteen years later do you really believe C++98 is better than C++11 without move semantics and decent smart pointers? I remember working with Qt5 and C++98 and yes, it was productive, but it was also a mess of intricate object ownership.

I'm critical about some choices made with C++20 and after, like the mess that modules are, and the too-little-too-late ranges library. C++26 is also a joke imho. But on the other hand, working with std::optional and (in C++23) std::expected is so much better than without. The thing is nobody forces you to use every single feature of a new standard, but I would not recommend ignoring very good tools just for the sake of it.

comment 3mo ago · link · parent

What is a product? So you take two natural numbers `a` and `b`, and you want to sum `a` for `b` times, or vice versa. Then things become complicated if you want to do that quickly...

comment 4mo ago · link · parent

I was about to start arguing why I don't agree but then I thought it was better not to :P

comment 5mo ago · link · parent

Yes, but logic gates with constant fan-in, crucially, otherwise that's called AC.

comment 5mo ago · link · parent

That's true for two `rectangle` paths, but for two nodes that's what I would expect as a user. Anyway, not an easy problem for sure.

comment 5mo ago · link · parent

I've tried it now a little. The UI looks very cool, and generally the project is cool so congrats!

However, the generated TikZ code is not good in my opinion. Everything uses absolute coordinates, which in TikZ is seldom needed.

Just to start, if I place a single node I get absolute coordinates for it. Why? If you just write `\node {Hello};`, TikZ will put that at the center of the bounding box. No need to tell it's at `(0.5,2.91)` like it's happening in my test. Then features such as "align bottom" for a selection of multiple nodes should are manipulating the absolute coordinates instead of using TikZ's alignment features (anchors etc.).

I understand generating such code is more difficult. Maybe it can be something to point at for the next version, who knows...

comment 5mo ago · link · parent

Indeed! Not scientifically controversial at all, but politically controversial, unfortunately.

comment 5mo ago · link · parent

We all should feel sad and angry. That said, this was never about saving money. This is about keeping scientists under tight control by the government, in order to suppress research on climate change and other controversial topics. If the government can cut your grant at any time without notice or appeal you will think twice before publishing results that go against their ideology, or even before publishing a criticism on Twitter. This is true especially if you are not tenured, which accounts for the majority of the academic world.

comment 5mo ago · link · parent

Afaik std::span does not need anything that was not in C++98 already, or am I missing something?

comment 5mo ago · link · parent

> It seems that some people are really losing the taste for good readable code.

It seems that some people never had taste for good reliable code. Use `void ` and now any error whatsoever is a direct undefined behavior. Moreover `std::span` clearly says that you are not* taking ownership of the memory (even though the language does not check it of course), while `void *` does not.

I understand that people can have many things to say about C++, and I do as well, but `std::span` should have been there decades ago and is such a life saver in these situations. A truly zero-cost abstraction which effectively saves you from a lot of troubles.

comment 7mo ago · link · parent

Too bad HN nicknames cannot be put for sale :)

comment 7mo ago · link · parent

So LLMs are destroying the economy and the environment but at least “catastrophic risk” is still low. Ok then…

comment 7mo ago · link · parent

Off topic, but I sincerely ask: am I the only one that is disturbed by the use of the term "Mac OS X" to refer to modern versions of the OS that is currently called "macOS"? (and not MacOS either)

I mean, the name was changed ten years ago...

comment 7mo ago · link · parent

Is it really worth? YMMV, but yes if you ask me.

comment 7mo ago · link · parent

For reasons, I used to go to Rome quite frequently in the 2010s, and the construction of Metro C was already a meme. But now some of the stations are quite interesting indeed.

comment 7mo ago · link · parent

Thanks!

The arXiv submission says the paper is submitted to SAT26, did it get accepted?

123