2,337 karma · joined Sep 13, 2018 (8y ago) · 646 submissions
comment 2d ago · link · parent
The political landscape right now is such a shit show that it is a huge risk on investment that they are probably not willing to take.
There is a slight chance that this get significantly better if Lisnard get elected.. But that is a pretty small hope for now: Polymarket evaluate the probability only to 17-18%
comment 2d ago · link · parent
- French Nuclear (where Mistral is) is around 5 gCO2/kwh
- Gas plants (where all US models are) are around 300-350 gCO2/kwh
- Coal plants (where most Chinese models are) are around 800-900 gCO2/kwh
So in term of consumption, your queries are around 65x greener in term of energy consumption hitting a French datacenter than a US one.
Why US data providers are not building more Nuclear power ?
Answer: Time to market. It takes less than a year to setup a 1GW gas turbine. And close to 10y to setup a similar capacity in Nuclear.
Why France does not have the problem ?
Answer: Because they do have a ridiculous oversized Nuclear park with 150 TWH of overcapacity per year.
The only other areas of the world that can afford to have both the grid power necessary for A.I datacenters and the low Carbon intensity are: Sweden, Norway and Canada hydro (in some areas).
comment 4d ago · link · parent
Providing C compatible APIs is one of them.
However, I do not see any reasons to start a plain C user space project in 2026. Excepted if you are embedded / kernel dev.
Everything advantage you do have in C (portability, compatibility, memory control).... you have them in Modern C++, but better.
comment 4d ago · link · parent
Or just use bloody C++ that solved that years ago with std::span.
Unfortunately, many C dev prefers whining about "How horribly bloated" C++ is instead of using the part that makes sense.
comment 5d ago · link · parent
Why sqlite instead of RocksDB ?
What you need at the end of the day for a blob storage is a transactional key value store.
Which RocksDB will give you with much better throughput (and latency) and solves your transaction problem.
comment 6d ago · link · parent
Depend of your definition of scummy I imagine. Actively helping people to avoid taxes by illegal screening and offshore company [1]. And association with Drug cartel in Mexico for money Laundering [2] is not what I would call "Dumb".
It is intentional and fully organized criminal activities.
If it would be any other foreign company that one too-big-to-fail bank, it would have been eradicated from the surface of Earth by law enforcement in less than a year.
[1]: https://en.wikipedia.org/wiki/Swiss_Leaks [2]: https://insightcrime.org/news/hsbc-dirty-money-white-collars...
comment 6d ago · link · parent
Deutsche Bank, HSBC and Credit Suisse.
If there is a major mafia / illegal operation implying a bank somewhere in the world, you can bet your hat that one of these three is implicated.
Drug cartels, money laundering, tax evasion, war support, international sanctions bypass, genocide. Their CV is absolutely top notch.... for a criminal.
comment 1w ago · link · parent
For someone not familiar with American law: How the fuck is that a bigger problem than the Chinese spy ?
Is there any explicit rules at NVidia forbidding that in a code of conduct somewhere ?
comment 2w ago · link · parent
I have an AGENTS.md that I bring around in every repo.
Few things I found:
- On new project is that it is much more efficient to point the agent on an old, existing project and simply say "Copy the code style" than to try to document everything in a markdown file.
- Explicit listing of both headers and implementation in CMake target seems to help for dependency resolution.
- A simple "Analyze this codebase" on a folder helps a lot for context prefilling on complex type system. I have a compiler where the entire language grammar is defined as C++ types with mutual relations. DeepSeek is completely capable to understand it and debug grammar mistakes in a blink of an eye.
comment 2w ago · link · parent
Debugging constexpr is trivial with static_assert. In addition, most UBs are entirely eliminated at compile time which is excellent for testing.
> then the normal user gets error, sees "decltype(auto)" or some sfinae monster
Thats a non-issue in the age of Agents. They can reason about that very well. This kind of problem disappeared entirely.
Additionally, I would say that if you are still using SFINAE post C++20, the problem is you and not C++.
comment 2w ago · link · parent
I dont use Claude. I use DeepSeek and it is very capable. I have found Gemini and Mistral4 equally capable.
One thing I realised however is that Agents adapts to the existing code style:
- Give them a modern, polish C++ codebase and they will produce clean modern C++ - Give them a legacy codebase and they will produce a festival of raw pointer spaghetti and loose themselves. It seems that evem for A.I there is 10^6 variations of C++.
- Force them to use span and string_view and 90% of boundaries problem and lifetime go away. It seems to ease their reasoning.
- A single line in the AGENTS.md is enough for them to properly use fully sanitizers in their test. - They are pretty good at leveraging defensive programming if asked to.
Few negative points: - They are still pretty bad at reasoning about memory hierarchy and memory allocation. But thats hardly surprising, very few codebase do it properly. - You need to explicitly list your dependencies and build system or it's a festival of reimplementation. I have beem pretty successful with Nix so far.
comment 2w ago · link · parent
"How I stopped to worry and like the bomb"
Claude doesn’t value all lives equally ; Mistral, Kimi and Grok are nationalists while GPT and Claude are effective altruists ; Grok would rather drag us into war than be switched off ; Mistral is Doctor Strangelove
Here is the data report: https://samuelfitoussi.com/nuclear-button/
13.
Nuclear button Benchmark: I gave five AIs the nuclear button(samuelfitoussi.com ↗)
2 points · by adev_ · 2w ago · 1 comment
comment 2w ago · link · parent
C++ is by far the most powerful language around. And this is for the best and (often) also the worst.
In term of generic programming, control on hardware, capacity of abstraction and more generally expressivity: Nothing, even today, come even close to C++.
It is a language full of foot guns and it has its fair share of legacy problems.
But if you learn to avoid it (throught experience and pain). You can reach a productivity and a level of performance in C++ which is very difficult to beat with anything else, including Rust.
Ironically, I find it particularly true in the age of A.I.
Because the amount of C++ around is so tremendous, that agents are currently pretty good at it if guided properly.
comment 2w ago · link · parent
You could easily go around it.
The compiler knows when creating the destructor for B.
In your example, to have correct C++, you need to have declared a virtual destruct-or for B. You could encode the size of B in a static offset from the virtual destructor or simply as a return value from it.
This is not how it is done now, mainly because how free was designed in C.
free() design is a terrible mistake. Probably one of the worst design mistake of C with the null terminated / no-length specified string and the preprocessor.
comment 1mo ago · link · parent
Because it's well known that subclassing is used only for Event type and never EVER anything else requires polymorphism #irony.
The only part of this discussion where you are right is that closed polymorphism (std:: variant) is better than open polymorphism when it can be applied.
And even there, your proposed implementation is utter garbage that leaks memory and that I would refuse straight away in any PR.
comment 1mo ago · link · parent
No it's not and you apparently did not understand the concept behind it (or more likely, do not want to understand the concept behind it).
Your solution is not an implementation of Open Polymorphism, it is just a poor man implementation of std::variant.
> Which the version I showed has none of.
Because it is not the same thing like explain by my previous comment and in around 5 other comments around mine soon I guess.
But you are entirely free to grunt around and continue to imply that C++ committee people are implementing something useless (Which they are not, this is useful).
comment 1mo ago · link · parent
The blog is about Open polymorphism. Where the list of compatible Object can be extended dynamically (Which is handy for some type of error report for instance).
You can do that since forever in C++ (Since the first support for inheritance), the only thing std::polymorphism brings is the ability to do it without dynamic allocations, emplacement new or lifetime problems.
comment 1mo ago · link · parent
They are not most expensive per Task. DeepSeek 4.1 flash is bloody efficient.
I currently did run a test myself: - Use the pay as you go offer on OpenRouter on the same task on two different project: Perf optimisation on C++ codebase both with Anthropic and DeepSeek.
- I exploded my 15$ budget in a half-week with Anthropic.
- I did two weeks and half with DeepSeek.
comment 1mo ago · link · parent
It's definitively not a revolution, but it is a major jump forward compared to Mistral Medium 3.5.
Worth to notice that they explicitly said they still refining the model, so we might expect something a little bit better at the end of the month
For something trained on a limited budget and 4000 GPUs, it is quite respectable.
comment 1mo ago · link · parent
It's nowhere mediocre.
It's toes-to-toes with GLM-5.3 which is one of the best Open Weight model available (With Kimi K3) for general reasoning.
I just runned it on code reviews right now and it was able to catch some thread safety issue than DeepSeek-4.1 didn't. And DeepSeek-4.1 is by no means a bad model.
comment 1mo ago · link · parent
+100.
Thanks God. these open weight models exist.
And the fact Anthropic is currently trying lobby against these models is despicable.
There is no scenario where putting the key of cybersecurity in the hands of few chosen ones is even remotely acceptable.
No government, no company, no entity should have this power.
Soon or later it will be abused (By 3 letter agency or by an insider/leak).
Delayed disclosure is dead already.
So just give the same capabilities to everybody and stop to fuck around.
comment 2mo ago · link · parent
You mean like Apple today ?
The Apple watch is from 2015.
What new product Apple produced since Tim Cook took over ?
The iPhone Duo ? Ironically it has quite a smell of Nokia N95 all over again.
comment 3mo ago · link · parent
But I do agree with you, the glibc is all one giant codebase shipped in one giant blob, dispatch under several names.
Even libdl.so is barely more than a wrapper and some glue around the libc.so itself.
comment 3mo ago · link · parent
That's currently the real core of the problem.
The loader (and libdl) need to be decoupled from the glibc itself under Linux.
Without that, any attempt to ship static binaries (or any binary with a different Libc) will be a source of perpetual pain.
nss plugins and its associated pain (sssd and avahi) are an other examples of that.
comment 3mo ago · link · parent
https://www.tcmit.org/english/research/car/car01
This is the last century version of the item that Asus is presenting here... but with a Gasoline engine.
The Engine is fixed on its own wheel and attached on the side of the bicycle.
This was apparently was a thing. It was used to motorize Japan at its industrialization debut.
On century later, electrification is now a thing and the same device is back with a battery. The loop is done.
PS: I do recommend the museum for anybody interested in industries and industrial processes.
comment 3mo ago · link · parent
Recursive descenrs parsers are not linear.
They are generally O(n^2) and can even can go exponential with some grammars if written naively.
It can be pretty easy to do adverserival attacks on most naive descent parser and bring it to its knees.
Packrat parser [^1] are linear, but they are by no means "trivial 200 lines" type of parsers.
comment 4mo ago · link · parent
My son is born at 02h30 right DST change time.
It tooks 3 f*cking days to get his birth registered in the Hospital new birth registration system.
The hospital (at the time) just got digitalized and most systems where not able to agree if he was born after or before DST changes.
PS: I guess he is born fated to be a software QA later on.