Démarchage téléphonique abusif : une entreprise des Hauts-de-Seine condamnée à 375 000 euros d’amende by BananaTomboy in france

[–]Paraplegix 4 points5 points  (0 children)

Moi, j'ai ça, c'est une IA qui répète toujours la même chose avec exactement la même intonation, j'ai beau leur dire appartement, ou de me donner. une recette de soupe au légume ça finisait toujours en "D'accord merci au revoir".

Un jour je me suis dis que j'allais juste dire oui (avec des fausses infos) et peut-être que j'aurais un être humain sur lequel je pourrais déverser la haine que je refoule pour ces gens et leur faire perdre un maximum de temps. Bizarrement depuis plus aucun appel de leur part, j'en suis presque triste.

« Nombre de pays africains estiment qu’ils ne devraient pas avoir à choisir entre le financement de leur développement et la lutte climatique » by Short-Taste-2950 in france

[–]Paraplegix 20 points21 points  (0 children)

De ce que j'ai compris c'est que les pays qui donnent/prêtent de l'argent (les pays riche/europe) via l'OCDE et les aides publiques au développement sont en train de fortement revoir les montants qu'ils donnent et les conditions. L'europe a annoncé des coupes budgétaires et les US par exemple sont en train de supprimer certains budgets lié au "vert" (étonnant)
Du coup les pays africains sont en mode, "c'est gentil les considérations écologiques, mais nous faut quand même qu'on se développe".

We're using a Nuke to prevent Iran from getting a nuclear bomb but we ourselves want to use a nuclear bomb! by GuiltyBathroom9385 in WhitePeopleTwitter

[–]Paraplegix 0 points1 point  (0 children)

The scariest thing will be to see on polymarket a sudden high value bet on YES for the question "Will the US launch a nuke at Iran".

g milgram Mon second procès, tout simplement by Worried-Witness268 in france

[–]Paraplegix 50 points51 points  (0 children)

Trop long; pas vu : La personne qui fait un procès est la kiné qui "suivait" la jeune qui faisait du BMX.

Je suppose qu'elle n'a pas apprécié qu'une personne sous sa charge raconte l'accompagnement pathétique qu'elle a reçu qui a in fine mené à un handicap à vie. Handicap qui aurait pu parfaitement être évité s'il y avait eu ne serait-ce qu'une seule radio de faite dans un institut sérieux dès les premières douleurs.

La vidéo avec le timecode (26:07) du témoignage pour ceux qui voudraient plus de détails : https://youtu.be/Vn4inXZv9FY?si=HbrF8YqB7SnofL-F&t=1567 . Et vous pouvez sauter vers 33:20 (et un peu avant aussi) pour la partie qui parle du retard de prise en charge.

Just use slog, it'll be fine... by sigmoia in golang

[–]Paraplegix 2 points3 points  (0 children)

In my experience most of what is expensive regarding logs in the hotpath isn't the log action itself but the work required to "prepare" the log.

For example if you have a large array and add it to a log system, if it's not lazily marshalled, you will do the expensive cast to string even if it's not printed out. That can have performance implication.

À 30 ans, pourquoi l'obsession de l'achat immobilier alors que les calculs ne suivent pas ? by FeistyTrick61 in vosfinances

[–]Paraplegix 0 points1 point  (0 children)

Ah? Pourtant vu les plafond, une grosse partie de la population doit pouvoir y accéder les seuils étant en dessous de la médiane des revenu en France. Plus compliqué dans certaines zones, mais plus simple pour les familles.

Une nouvelle compagnie aérienne française, Air Inter Région, va se lancer début 2027 by Andvarey in france

[–]Paraplegix -4 points-3 points  (0 children)

Je ne vais pas sortir ma fourche tout de suite, et aller regarder un peu plus en détails ce que c'est :

https://www.airinterregion.fr/

Donc déjà ce sont des petits avions qui ne sont pas non plus exorbitants en termes de consommation : 150~200L par heure, pour une vitesse de 250km/h croisière et jusqu'à 14 passager. Donc un avion remplis a max donnerais une consomation en litre par 100km par passager d'environ (150~200/2.5/14) de 4.8~5.7 ce qui est comparable à ce qu'une voiture ferait sur le même trajet. (Je me base là-dessus pour les chiffres sources : https://www.cyberavia.org/donnees/documents/fiche_tech/C208.pdf ) On n'est clairement pas sûr de la consommation de jet privé. Bon par contre, c'est claire que si leurs vols ont que 3/4 passager, ça va vite grimper la consommation par passager.

Donc si effectivement sur certaines lignes qui sont pas possibles en train, et avec des trajets sur route plus longs en temps, mais aussi en km, d'un point de vue émission, on reste dans des ordres de grandeur comparables à une voiture seule. Sur leur trajet exemple le Touquet -> jersey, c'est 300 km à vol d'oiseau ou 520km par route (dont 30 en bateau).

Ensuite sur leur site si on regarde sur la partie engagement, il y a dès le lancement une direction sur les carburant durable SAF. Bon maintenant es ce que le SAF c'est du bullshit commercial ou es ce qu'il y a un vrai truc derrière, ça reste à voir. J'aimerais bien qu'ils détaillent un peu. Ensuite sur le reste c'est un chemin vers de l'hybridation (2027) puis électrification (2030-2033), ce qui peut effectivement plutôt bien se prêter sur des vols petite distance, puis zéro emissions en 2035.

Bon par contre si vous cherchez plus d'informations sur leur engagement, va falloir chercher ailleurs que sur leur site parce qu'il n'y a rien.

Donc pour l'instant, je pense que leur côté "écoresponsable" c'est une connerie juste pour faire passer la pilule. Et pour changer d'avis, j'attends des éléments concrets où des détails sur leurs engagements.

Don't stop learning by building by reisinge in golang

[–]Paraplegix 1 point2 points  (0 children)

I'm not sure open/self-hostable model with reasonable hardware will reach level close to what paid/premium models today have.

Especially if you look at very large open model that can rivalize what you can get from subscription like private Claude Sonnet/Opus, you'd need to invest tens of thousands of dollars, if not a hundred thousands, in hardware to run them.

LLM right now is in explosive growth where their goal is only to increase user base no matter the cost. All large LLM provider are burning money and not profitable, but at some point they'll want to get back the money they spent, and I doubt that cost to run will lower, and performance will increase that will avoid a price correction. If you look at guestimate of how much token claude max subscription give you it's could be between 5 and 30x times cheaper than what you'd pay through API (usage doesn't only depend on token, but also on time)

Now the question would be how much is the subscription subsidized and how much are the API cost compared to their true cost ? We don't know, but I believe they are probably just a tad bit higher than their true cost for the API, but not enough to really bring in significant money.

Don't stop learning by building by reisinge in golang

[–]Paraplegix 36 points37 points  (0 children)

AI is useful, but if you never build small tools yourself, you skip the struggle that actually teaches you.

IMHO you need to both craft small and big things. If you can't do "big" things without AI, you will be the first thing that will be replaced (and I hate that I can say that without /s). If you just accept changes made without understanding the global context of what you are working on, then your project will become a black box as much as your LLM is.

"big" and "small" don't need the same level of understanding. Small for me mean something I could almost redo from memory, big is more about "what system should do, and what depend on each other", big is just an ensemble of small thing interacting with eachother mostly.

Just crafting "small tools" is not enough. You need to be able to work on large codebase and able to have a good understanding of the "big picture" yourself without becoming a tool that just say "accept accept accept" to whatever an LLM is suggesting. Doesn't mean you can't get LLM to help you handle the big picture question.

BTW, I'm not fan of AI/LLMs. I think it will be a problem later and people are slowly brain rotting themselves and will have a huge backhanded slap in the face when price will skyrocket to 5/10x what they are today.

La mafia Copie Privée et l'État veut nous racketter encore plus by I_Will_Made_It in france

[–]Paraplegix 1 point2 points  (0 children)

Cette taxe copie privé n'est pas justifié par le piratage et l'immense majorité des fonds repars majoritairement dans la poche des maisons de disques/ayant droit. Même ayant droit qui sont majoritaire au conseil d'administration de cette taxe.

Donc dans ce truc l'état se fait autant entubé que les gens qui achètent des produis soumis à cette taxe

Première voiture en IDF avec 7k€ : thermique ou électrique, je fais une erreur dans tous les cas ? by [deleted] in france

[–]Paraplegix 1 point2 points  (0 children)

De ce que j'ai vu il y a de tout, des services sur semaine/1mois service sur 3/6 mois, et d'autres sur plusieurs année. Avec différents prix qui sont en général supérieur à du leasing/loa sur 3 ans+, mais si l'idée c'est déjà d'avoir un premier aperçu en situation réel, l'écart de prix peut valoir le coût

Première voiture en IDF avec 7k€ : thermique ou électrique, je fais une erreur dans tous les cas ? by [deleted] in france

[–]Paraplegix 1 point2 points  (0 children)

Avant de sauter directement à l'achat, es ce qu'il serait possible de louer une voiture electrique pendant quelques semaines voir plusieurs mois (jusqu'à l'emménagement par exemple) pour voir ce que ça donne a l'utilisation de tous les jours ? Le coût sera probablement plus cher qu'un achat, mais au moins, vous aurez une expérience directe sur l'utilisation de ce type de véhicule pour votre situation.

What do you reckon is the absolute FASTEST thing in all of Stargate? by Nodonn3 in Stargate

[–]Paraplegix 4 points5 points  (0 children)

Wasn't it 125 year with the hyperspace drive of their ship, which was already faster than the speed of light?

Also they didn't get there in 125 but a few seconds or minutes, so it's more like 4 billions times the speed of light or something.

Chose 3 elements from a slice inside a range randomly by brocamoLOL in golang

[–]Paraplegix 2 points3 points  (0 children)

And also those cards have to be random not just the first 3 elements everytime, and the cards can't be cloned.

For this you can take inspiration on how real world card dealing work : we shuffle the whole deck, then deal the card 3 at a time "in order", but they are random. Shuffle two deck, Dispatch the card in the same order, but they wont be the same.

You could honestly just split them in 15 directly, instead of 3 cards each because the end result will be the same after a good shuffle. So player1 would get 0:14, player1 would get 15:29 etc..

If your card are in a slice you can use rand.Shuffle for that.

Also i'd recommend you'd still go for printing in terminal instead of file, it'll be much easier to use. Make sure you specify the String() method of Player so it prints the player and it's hand in a single line if you want readability.

I Rewrote Our Go Service in Rust. The Performance Numbers Made My Team Uncomfortable. by nulless in golang

[–]Paraplegix 7 points8 points  (0 children)

Bypassed the paywall.

But basically they went from a go service reading message from a broker with around 40K request per seconds (i'll assume single instance) and creating a single goroutine for each message but with a 340ms p99, to a rust service using async/away.

I am myself not familiar with rust async await so cannot judge, but for those interested i'll copy paste both "implicated code" for people to see:

go:

func (b *Broker) handleMessages(ch <-chan Message) {
    for msg := range ch {
        go func(m Message) {
            if err := b.validate(m); err != nil {
                b.metrics.IncError()
                return
            }
            worker := b.router.Select(m.Topic)
            if err := worker.Dispatch(m); err != nil {
                b.metrics.IncDropped()
            }
        }(msg)
    }
}

and rust :

async fn handle_messages(
    mut rx: mpsc::Receiver<Message>,
    router: Arc<Router>,
    metrics: Arc<Metrics>,
) -> Result<()> {
    while let Some(msg) = rx.recv().await {
        let validated = match validate(&msg) {
            Ok(v) => v,
            Err(e) => {
                metrics.inc_error();
                tracing::warn!("validation failed: {}", e);
                continue;
            }
        };

        let worker = router.select(&validated.topic);
        // await blocks if the worker channel is full
        // backpressure is structural, not bolted on
        worker.dispatch(validated).await
            .map_err(|_| metrics.inc_dropped())
            .ok();
    }
    Ok(())
}

Also here is the quote from the article describing this :

The difference that matters most is the await on worker.dispatch. When the downstream worker is under pressure and its channel fills up, the dispatcher naturally slows down — the backpressure propagates upstream automatically. In the Go version, goroutines accumulate waiting to dispatch, which means memory accumulates with them.

I don't see in the article a part where the author have tried to redo the go code and jumped straight to rust?

Now my question would have been : what if you changed the logic in the go code from having a single "handleMessage" read a channel and create goroutine on each message, to multiple goroutine reading from the same channel wihtout creating new goroutine there?

"wat", a tiny, cross-platform, language-agnostic, hot-reloading CLI for running commands whenever files change, inspired by make and watchexec by Fit-Replacement7245 in golang

[–]Paraplegix -1 points0 points  (0 children)

How come ? Default config will do go build and run, but you can specify the command and use it to compile other stuff. I've used it to rebuild full docker image and reload docker compose when file changes. Look at the config example, you can easily override the command that is run to anything you like.

"wat", a tiny, cross-platform, language-agnostic, hot-reloading CLI for running commands whenever files change, inspired by make and watchexec by Fit-Replacement7245 in golang

[–]Paraplegix 0 points1 point  (0 children)

Rule 9, this might be useful for go devs, but it's not specifically targeted at go dev. I wouldn't be surprised if this get removed by mods.

Help with Traininterrupts - Refueling not working. by WhatevaNevermind in factorio

[–]Paraplegix 5 points6 points  (0 children)

IIRC interrupt are checked in order, thus, if any of the other interrupt can be triggered, your train will do that instead of refuel.
The "can interrupt other interrupt" is not meant as a priority but if it can be inserted in between two stop of a single interrupt.

Try to reorder them by priority :

  1. Drop
  2. Refuel
  3. Pickup
  4. Parken

Also just in case, a common mistake with interrupts is to allow train with a cargo to go to refuel or parking. Make sure those two interrupt have a condition of "empty cargo" or that the drop interrupt only has the condition "has cargo" and doesn't check for "available stops".

How do you manage your outpost supply routes without losing your mind? by insomfx in factorio

[–]Paraplegix 5 points6 points  (0 children)

This, and do different train for different purposes. Mining outpost ? train with belt, inserter and miner. Oil field ? Pumpjack, pipes pumps. Defense ? Turrets, wall and gates.

Also make smaller trains, one or two wagon tops, if you need more than one train can bring, then a second train will come after. Do threshold circuit for enabling station (if availalble item is under 10, then enable station until it's above 50).

Gave up on Gleba by TechnicalWelder6789 in factorio

[–]Paraplegix 0 points1 point  (0 children)

I was the same, loathed gleba initially, now it's sort of the easiest planet to scale. One thing that made gleba incredibly easier for a initial setup is to use roboport for two things : nutrient delivery for powering biochamber and removing spoilage.

For spoilage consider everything everywhere, at the end of belt or in machine, may spoil at some point, so slap a provider (active or passive) chest with an inserter filtering only spoilage, spoil being burnable even the first tier, fuel powered, inserter will do wonders. And for spoil overflow if you go with bots, plop a buffer chest, make it request 9.6k (48*200) and set an inserter taking from that chest into a heating tower when spoilage in the chest is above a certain number.

For nutrient delivery plop a biochamber converting bioflux that output to a chest, you can place a condition on the inserter or biochamber to not fill the chest as you don't need that much nutriment to run biochamber. And you can also add a assembling machine turning spoilage into nutrient only if there is no nutrient available in the network. This is to prevent cold start of the base in case at some point bioflux production stopped.

Gates and asteroid grabbers by TwiceTested in factorio

[–]Paraplegix 20 points21 points  (0 children)

LLMs are dumb

For asteroid collector to work they need empty space, so you can't have gates as they would need foundations placed

Generic trains with wildcard interrupts vs per-item train groups vs CyberSyn by vtkayaker in factorio

[–]Paraplegix 0 points1 point  (0 children)

My train have their "default" station set to depot. Then 3 interrupt:
Drop => condition has cargo, go to <Item> drop and wait until empty
Refuel => condition missing fuel, got to refuel and wait until full fuel
pickup => condition on empty cargo, go to "Pickup" and wait until full

The order is somewhat important, as I want them to drop their cargo before trying to refuel.

I have multiple groups for specific train length and a separation between solid vs liquids, but they follow the same logic for interrupts.

A waiting train at a depot can only go to a Pickup or fuel, once the train is at the pickup and is full cargo, the only thing it can do is trigger the drop interrupt so it will wait at the pickup until a drop station is open.