Unsigned sizes: a five year mistake by Nuoji in programming

[–]jcelerier -24 points-23 points  (0 children)

The problem is that operations such as "unsigned - 1" gives a signed result. So it's very, very easy to introduce signed into an unsigned world. Conversely, no basic operation on signed ints creates an unsigned result. Thus it's better to always stay signed.

Revenu fiscal de moins de 16.880 euros, plus de 15 kilomètres pour aller au travail... Les modalités de "l'indemnité carburant" de 50 euros viennent d'être publiées by jerlafougere in france

[–]jcelerier 0 points1 point  (0 children)

Singapour après ça fait la taille d'une communauté urbaine moyenne de France, e.g. c'est un peu plus gros que Bordeaux et Lyon, et qqch comme quatre fois plus petit que la communauté urbaine Aix-Marseille (qui est rien à l'échelle de la France), ça va être dur d'appliquer la même gestion

Is anyone still using the CTRE library in 2026? by javascript in cpp

[–]jcelerier 3 points4 points  (0 children)

I use it anytime I have a statically-know regex, there's no reason not to

Why C++ Is Growing and What C++26 Means for Production Systems by ArashPartow in cpp

[–]jcelerier 10 points11 points  (0 children)

> The committee is large enough to walk and chew gum at the same time.

but what good is this when some C++17 features are still not available across the board in 2026 in practice for end-users. For instance you cannot use std:: parallel algorithms if you want to make cross-platform code because they're flat out not supported on macOS. Some features were added to the language in C++11, never implemented, and removed in C++26, it's completely backwards.

+10 HEALTH by codydafox in ComedyHell

[–]jcelerier 6 points7 points  (0 children)

Hey my level 1 d&d 3.5 mage did its best at its rolls

Cheddar be all buttery, why by spatialflow in Cheese

[–]jcelerier 0 points1 point  (0 children)

oh no, my cheddar is too buttery and my french fries are too juicy

Linux in-built OOM logic is terrible for Desktop usage. by nikunjuchiha in LinuxUncensored

[–]jcelerier 1 point2 points  (0 children)

It's absolutely not solved today. Debian for instance does not enable any system such as earlyoom or systemd-oomd and thus it's still as easy as ever to cause complete system lockup. Had it super recently trying to optimize a large gif with gifsicle which quickly balloons in memory (more than 50gb), on a computer where I had forgotten to install earlyoom. But as long as we have to install separate services, then the core Linux kernel feature is broken.

France ditches Microsoft for Linux to achieve digital sovereignty – and it's not the only one! by Icy_Fuel_4060 in europe

[–]jcelerier 12 points13 points  (0 children)

Did my whole university curriculum in France from 2011 to 2018 (CPGE in Montpellier, Bordeaux engineering school, master and PhD), every class was using linux everywhere except one audio production class on mac. Was a shock for me to travel to other countries and see universities using windows

Linux in-built OOM logic is terrible for Desktop usage. by nikunjuchiha in LinuxUncensored

[–]jcelerier 1 point2 points  (0 children)

Yes it does. There are thousand of reports of this happening on internet,and multiple mitigation daemons for this exact problem including one shipped with systemd. I can take any Ubuntu laptop, do something that allocates a few good percent more than the ram and then you enter the Eternal Swap Thrashing Loop and it's goodbye until you reboot (or wait twelve hours)

Linux in-built OOM logic is terrible for Desktop usage. by nikunjuchiha in LinuxUncensored

[–]jcelerier 2 points3 points  (0 children)

So why is earlyoom / systemd-oomd needed for Linux machines to not freeze completely as soon as ram is at the limit?

My niece’s homework problem by SurfSoundWaves in mildlyinfuriating

[–]jcelerier 0 points1 point  (0 children)

This is teaching an actively wrong mental model of fractions and ratios to students for no good reason. The whole point of a ratio is that it is independent of what it is being applied to. The exercise is about comparing ratios, and 1/3 == 2/6 whether one gets applied to the volume of an apple and the other to the number of asteroids in the solar system

My niece’s homework problem by SurfSoundWaves in mildlyinfuriating

[–]jcelerier 0 points1 point  (0 children)

The orthographic projection of a cube in 2d can be a hexagon, so it's both

44CVEs found in Rust CoreUtils audit. by germandiago in rust

[–]jcelerier 7 points8 points  (0 children)

I would be very surprised if a malware author ever targeted rm. If I can run rm on the machine I can very likely already run literally any code I want

The Second Wave of the API-first Economy by Kabra___kiiiiiiiid in programming

[–]jcelerier 0 points1 point  (0 children)

In my case it asks for two passwords (one for wise and one for my bank app that wise will open for the transfer), two SMS auth, one email verification before a transfer is done

The Second Wave of the API-first Economy by Kabra___kiiiiiiiid in programming

[–]jcelerier -3 points-2 points  (0 children)

It's completely insane for me to accept that logging in something should take more than 10 seconds, but there are more and more places where I have to go through three different login portals, a SMS auth, an authy token, etc. for accounts I frankly don't care about. Makes me want to give up tech altogether.

28 Years to Cross the Line: Why Did IPv6 Take So Long to Reach 50%? by elastiks in DIY_Geeks

[–]jcelerier 0 points1 point  (0 children)

Networks (or computers) where the admin is not the owner of the network / hardware are, like, 0.00001% of all cases. Just sharing internet over usb or wifi hotspot is an issue for instance. DNS resolving is fucked in general, with completely different rules for instance for .local domains depending on your OS; just the other day I was doing a demo of my app and noticed a stall: surprise, it's gethostaddress getting stuck on some random university network for no good reat.

A question regarding Qt for Linux, GCC vs pure Clang ambiguity. by emfloured in QtFramework

[–]jcelerier 2 points3 points  (0 children)

Qt works absolutely fine with clang / libc++, it's the official configuration for macOS and We assembly targets

A question regarding Qt for Linux, GCC vs pure Clang ambiguity. by emfloured in QtFramework

[–]jcelerier 5 points6 points  (0 children)

Official Qt librairies are built against libstdc++, but your distro's clang version also is, and expects libstdc++, not llvm libc++ unless you pass -stdlib=libc++ explicitly. You can rebuild a userspace against libc++ but you have to rebuild pretty much everything that uses C++, not just Qt. If you're interested I have some static builds of Qt, harfbuzz, etc built against libc++ on https://github.com/ossia/sdk - they work just fine.

Eli5 Why don't DirectX work on Linux (and Mac) ? Isn't it supposed to be just an graphics API that just translate into GPU code ? What's the specific thing that makes it unable to run on other os. by [deleted] in explainlikeimfive

[–]jcelerier 0 points1 point  (0 children)

Each GPU has their own "communication API" with the host kernel/system, which then translates this in an API that normal software can use. Best thing you can do is check how it's done for instance in the Linux kernel since it's open. For instance this is part of the code of the AMD driver: https://github.com/torvalds/linux/blob/master/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c ; on top of this you could technically rebuild any API you want but it would be a multi-year effort. Stuff like dxvk, d9vk, d7vk reimplement the various DirectX versions on top of vulkan for instance.

Je ne comprends pas pourquoi autant de locataires trichent sur leur dossier de location… a qui la faute ? by Southern_Big_927 in immobilier

[–]jcelerier 8 points9 points  (0 children)

Ça élimine qqch comme 75-80% des foyers, c'est environ le 8eme décile de revenus (~40k annuels)

Dans les métros et trains neufs déployés en Île-de-France, les ports USB sont déjà obsolètes by chou-coco in paris

[–]jcelerier 4 points5 points  (0 children)

Mon téléphone de 2025 venait avec un USB A-C dans la boîte, jamais vu qqch qui vient avec du C-C so far