lambdadev (@lambdadevfr) header
lambdadev (@lambdadevfr) profile picture

simple developper with no name, just a context

Paris France
Joined November 2011
Photo by lambdadev (@lambdadevfr)Photo by lambdadev (@lambdadevfr)Photo by lambdadev (@lambdadevfr)Photo by lambdadev (@lambdadevfr)Photo by lambdadev (@lambdadevfr)Photo by lambdadev (@lambdadevfr)Photo by lambdadev (@lambdadevfr)Photo by lambdadev (@lambdadevfr)Photo by lambdadev (@lambdadevfr)Photo by lambdadev (@lambdadevfr)
"Get out of the cloud. Make your own cloud and encrypt data. And say who your friends are" @joeerl
1
5
I no longer think.
I no longer think you should read to learn.
2
49
Sex Pistols advice line.....
11
107
3
756
31,588
Kafka keeps dropping bombs as new features come in. 💥 In 4.0, Kafka is becoming a Queue! The more things change, the more they stay the same 🥲 Kafka was always great for high-throughput cases where: • a message was meant to be read multiple times by different sinks • ordering mattered • message replayability mattered But it always fell short trying to address task coordination use-cases which lend themselves more to a queue-like system: • granular per-record acknowledgement 👍 Cases like job distribution, where a consumer gets the message, acts on the job and then archives it - were trickier to implement with Kafka. Another pain point was that consumers were coupled with the number of partitions. Two consumers in the same group can't read from the same partition, so if you had 5 partitions - you couldn't have more than 5 consumers either. 🤦🏻‍♂️ You need to overpartition to address this, but that's wasteful if your workload doesn't care about ordering and doesn't need scalability. (like a job queue would) KIP-932 addresses this. 👌 At a high level, it supports: ✅ - the ability for many consumers to read from the SAME partition ✅ - individual records acknowledgments ✅ - still keeps producers and consumers decoupled ✅ - no maximum queue size ✅ - messages are still retained - so you have the ability to replay How does it do it? Shared Consumer Groups. ✨ Each broker is a shared group coordinator for the partitions it is leading. It manages the "sharing" of reads between the consumers. It will keep a sliding window of start (SPSO) and end offset (SPEO) for each pair of partition and group. The records available for consumption will only be those within that offset range, essentially adding a maximum lag between the slowest and fastest consumer. 🛑✋ e.g group-1 can read between offset 50-100 for topic-A-partition-1 👌 Consumers from the same shared group can read from the same partition by exclusively reserving a few records (offset range) in the partition via a time-limited acquisition lock. A consumer can then ack/release/reject the message(s): 🥇 - ack - acknowledges successful processing and moves the shared group’s offset forward 🥈 - release (unsuccessful processing) - retry. Release the record for another consumer to retry 🥉 - reject (unsuccessful processing) - abort. Blacklists the record, making it unavailable for another consumer ☠️ To avoid poison messages - a delivery count is kept per message. When it goes over a maximum retry limit, the message is rejected. In one sentence, this is a usability feature for un-ordered consumption by an arbitrary number of consumers. Note KIP-932 has the following limitations: 🔴 - Ordering is not guaranteed. Out-of-order delivery is possible within a partition. 🔴 - No exactly once yet - it is at least once. 🔴 - There is an indirect maximum processing delta. A consumer cannot read more than N messages ahead of the slowest one in the group.
6
105
1
676
49,644
Haskell is not popular. In fact, it's less popular than it was 10 years ago. Fifteen years ago, @unclebobmartin gave a talk titled "What Killed Smalltalk Could Kill Ruby, Too." 🔗 youtu.be/YX3iRjKj7C0?si=JuY8… He argued that the downfall of Smalltalk was caused by the arrogance of its community, a lack of concern for practical solutions, an inability to address business needs, and a deliberate isolation from the "dirty outside world." Uncle Bob warned Ruby developers not to follow the same path. In 2020, I transcribed the talk but secretly replaced Smalltalk with Haskell, Ruby with Rust, and so on. The result was "What Killed Haskell Could Kill Rust, Too," highlighting the same issues now plaguing Haskell: arrogance, a lack of pragmatism, and a deliberate detachment from the outside world. 🔗 gist.github.com/graninas/22a… Haskellers were infuriated by the post, accusing me of all possible sins—of being an idiot defaming the entire community, of not being a real Haskeller, or even of having malicious intent to destroy Haskell (by merely pointing out problems). The harshest criticism was that my writing style was "absolutely horrible." I don’t know how to bear it and am still trying to recover. The truth is that the post was so brutally honest that they simply couldn't handle it. Many seemed convinced that Haskell was just about to take over the industry. Many were in denial, refusing to see the obvious. Others admitted Haskell would never be popular but insisted "it’s good, actually." This follows a familiar pattern: 1. It's not really happening. 2. Yeah, it's happening, but it's not a big deal. 3. It's a good thing, actually. 4. People freaking out about it are the real problem. Later, I gave a talk titled "Functional Programming: Failed Successfully," where I outlined why FP languages have failed. Most of the reasons, I argued, were social, not technical. 🔗 youtu.be/018K7z5Of0k?si=rb1B… Dmitrii made many important points, but I firmly believe the core issue was the narratives within the FP community—narratives that were inherently, deliberately, but unnecessarily hostile to the industry. A significant fraction of FP developers simply didn’t want to lose their elite status by sharing power with mere industry developers. But that’s no longer the case. The so-called elite status of FP is mostly in ruins, because, in the end, FP has never been morally superior to other paradigms.
My take on why Functional Programming is not popular: 1. We live in a world where popular becomes more popular. If you didn’t win a coin flip of billions of dollars marketing on 90’s, it’s hard to break out of the niche. 2. Computers were slow back in the day. Compiled languages led to frustration during dev time. So languages like Python, JavaScript, PHP and Ruby had an edge. They naturally set the imperative narrative. 3. Mainstream languages are shallow. There’s nothing to learn, so devs jump to building faster. FP languages are deep, and devs on average spend more time exploring the universe of possibilities. 4. When a language is not popular, it leads to cascading effects on the tooling quality. Most devs are spoiled, they can’t spend even an hour figuring out how to install the toolchain. 5. Another cascading effect is lack of jobs. Almost everyone learns programming to find a job. And if there’re no jobs, you’re not going to learn a language. And if nobody learns it, it doesn’t become more popular. 6. In an industry where you have to constantly learn new things, a lot of devs are still lazy. They maybe learn 2-4 languages and just stick to them. So popular languages have a higher probability of being learnt.
39
43
5
483
103,755
ChatGPT je t'aime 😍😂😂😂
5
1
20
6,106
lambdadev retweeted
Trajan's (@trajan317) story & countless others like it in the face of these cuts and wild shifts in government fellowships intended for our brightest & most promising students will have long-term, deeply damaging effects on the U.S.'s competitiveness in science, math, CS and more.
Tonight I found out that the NSF math postdoctoral fellowship I applied for is being deleted because it does not comply with Trump’s executive orders on DEI in the federal government. I’m going to answer some FAQs and share some thoughts about this ordeal in this thread 1/n
60
62
9
581
135,870
Hi all, it’s time to officially announce my new book: Pragmatic Type-Level Design Yay! 😀😀😀😄😊😊😊 🗜️ It is about practical, approachable, useful type-level programming with concrete ideas applicable across various languages: C++, Rust, Scala, OCaml, Haskell, F#. 👩‍🎓Curry-Howard correspondence, System F, Propositional Logic, type-level isomorphisms, cumulative universes—nothing like that in my book. It is academism-free, avoids math completely, and is approachable to mere developers like me who just want to build real applications using ready type-level solutions and approaches. By PTLD on LeanPub for $35 and support my hard work; the link is in the message below. What does the book offer? A lot: 🟤 type-level domain modeling 🔵 type-level domain-specific languages (eDSLs) 🟣 type-level correctness verification 🟡 extensibility and genericity approaches 🟠 type-level interfaces (my own concept) 🔴 application architectures and type-level design patterns 🟢 design principles such as SOLID, make invalid states unrepresentable, dumb but uniform ⚪️ a whole methodology called Pragmatic Type-Level Design 🟤 several new ideas and approaches never seen in other resources before 📝 PTLD has 409 pages, 481K symbols, and 72K words. 💐Writing is engaging and fun, full of nice diagrams and pictures. I even developed a special visual language, Typed Forms, which is useful for illustrating the types and relations. ➡️The model language is Haskell, but the book is not about features; it’s about high-level design ideas that can be transferred to other languages. The Rosetta Stone part provides this translation to Rust and Scala 3.⬅️ ❗️The book is systematic, offering a definite methodology for writing type-level applications. It is not just a set of receipts, it is a complete story from end to end. No blind hacking 👩‍🦯, No type astronautics 🛸, nothing for pleasuring one's intellect 🚫🧠🚫. Only pragmatism, only hardcore 🛠️. 🤖 There are numerous supporting projects, all with different application architectures: cellular automaton management is a common CLI application; Minefield step-by-step game is actor-based; Zeplrog, a zero-player rogue-like game (not playable at the moment), is also actor-based, but it’s much more than that. There are other showcase projects I developed for the book, you’ll find them in the book’s repo. 📚 If you have my previous book, Functional Design and Architecture (Manning), you know my writing approach. I cover gaps in software engineering and try to build a new foundation for functional programming. Hopefully, Functional Design and Architecture will become a classic one day. In some sense, PTLD is marketing material for it. Yes, this is my way of promoting a book—to write another one. PTLD and FDaA complement each other nicely. 🧩🧩 ▶️If PTLD sells well (1000+ copies), I’ll expand the main material with four new chapters because the subject is deep, and there are more topics to discuss. I’ll also add two more chapters with C++ and F#/OCaml to the Rosetta Stone part. ◀️ ➤ I’ll collect issues and errata for a while and publish an updated version sometime in January 2025. If you are interested in a free copy in return for the beta reading, please contact me directly; I’ll be happy to get your help. ➤ Additionally, I have 10 author’s paper copies of Functional Design and Architecture (Manning). Contact me directly if you want to purchase the PTLD e-book and FDaA paper copy together for $60, including EMS shipping worldwide. ➤ In January, I’ll also investigate Amazon KDP publishing to enable paper copy on demand. Hope you’ll enjoy my insights and will get something useful in your day-to-day practice.
7
43
386
18,596
Dans la série "les complémentaires santé privées imposées aux entreprises sont un non-sens économique et social et il faut y mettre fin" : le patron d'une très petite entreprise (moins de 10 salariés) me dit qu'il avait pris une mutuelle très à la mode, par simplicité, et qu'il se voit notifier pour 2025 une très forte augmentation de la cotisation. Pourquoi ? Parce que les remboursements dans cette TPE ont été, pour X raisons liées à la santé d'un ou plusieurs salariés ou de leur famille, statistiquement beaucoup plus lourds qu'ailleurs. Plutôt que d'avoir une mutualisation du risque entre les 65 millions de Français, comme le faisait la sécurité sociale qu'on déshabille de plus en plus au gré des déremboursements au profit des assurances privées, on se retrouve avec un risque de plus en plus atomisé, où les petites structures connaissent un aléa très important selon leur propre risque, qu'elles ne peuvent en aucun cas maîtriser. Et tout ça pour quoi ? Pour avoir des complémentaires qui remboursent moins bien, et coûtent plus cher, que ce que faisait la sécurité sociale, pour deux raisons majeures identifiées par la Cour des comptes : 1. elles ne peuvent structurellement pas faire les mêmes économies d'échelle qu'une assurance santé qui couvre 65 millions de personnes ; 2. elles ont des dépenses marketing énormes pour capter la clientèle, que n'a évidemment pas la sécurité sociale dont les frais de gestion sont très inférieurs à ceux du privé.
61
334
19
887
62,167
Oh ne fait-elle pas du bien cette Petite Fugue sans prétention, par Maxime Le Forestier accompagné de Nana Mouskouri, à la télé, en 1974?
145
577
72
2,426
219,304
#Ubisoft : de nombreux salariés se mobilisent pour une grève de trois jours alors que le géant français du jeu vidéo compte imposer le retour en présentiel à l'entreprise. Reportage 👇
1,149
592
665
2,619
5,160,214
A few weeks ago, we launched a WebRing (developed in #OCaml), and it's great fun to see people joining in! Don't hesitate to join us! ring.muhokama.fun/ The source code for the generator can be found here: github.com/muhokama/ring #smallweb #webring #indieweb
1
5
6
468
Happy to announce the v2.0.0 of YOCaml, a static blog generator framework in #OCaml ! github.com/xhtmlboi/yocaml discuss.ocaml.org/t/ann-yoca…
1
6
1
7
621
Comme je le dis trop souvent dans l’intimité d’une discussion avec une personne en souffrance qui me contacte pour un futur poste (qui, dans le fond, veut juste une oreille attentive) : TU N’ES PAS SEUL.E Tu n’es pas seul.e à lutter face à des candidatures sans réponse qui poussent, bien plus qu’on le croit, à un job à temps plein, à de la frustration, à ce sentiment d’échec et donc, inévitablement, à ce manque de confiance en soi qui grandit un peu plus chaque jour. Tu n’es pas seul.e à subir du harcèlement d’une hiérarchie qui se sent intouchable, avec ce pouvoir de briser ta motivation, tes envies de projection dans ton poste jusqu’à tes envies de sortir avec tes potes. Tu n’est pas seul.e à faire des nuits de merde, à ruminer combien tu devrais partir tout en te sentant impuissant.e de le faire comme dans une relation toxique. Tu n’es pas seul.e à avoir cru à ce job super bien payé qui te faisait rêver et qui, finalement, te permet de payer des congés sans solde car tu glisses doucement vers le burn-out. Non tu n’es pas seul.e à y avoir trop cru, à t’être donné à 1000% en te privant, parfois, de quelques soirées avec tes enfants. Non, tu n’es pas seul.e à te sentir vidé.e, à bout de souffle tout en continuant d’afficher un sourire de façade à la pause café. Tu n’es pas seul.e à avoir subi de la discrimination pour grossesse, à vivre l’enfer avec une hiérarchie qui te fait culpabiliser te porter la vie, « d’avoir fait cet enfant dans le dos » tout en étant incapable de leur dire toutes les inséminations échouées avant ce miracle arrondi aussi large que ton sourire quand tu le sens bougé. Tu n’es pas seul.e a avoir été viré.e à 40 ans (ou plus) alors que tu n’as jamais connu le chômage ni la recherche de job. Tu as toujours été ce bon élève sur cette route professionnelle. Tu n’avais pas besoin de faire de l’auto-stop. On te sollicitait. Aujourd’hui les choses ont changé avec des trésoreries qui s’effritent. Non tu n’es pas seul.e à te remettre en question, à te réveiller avec tes douleurs somatiques car tu craques, tu pleures et tu veux juste être reconnu.e à ta juste valeur. Tu n’es pas seul.e à ne pas te sentir légitime, pas à la hauteur de ton job car tu portes, comme une énorme charge mentale, le poids de ta reconversion professionnelle qui n’a jamais été vraiment reconnue ni prise au sérieux. Alors tu acceptes ce que l’on te demande de faire au risque de sauter et de ne pas valider ta période d’essai. Tu acceptes les horaires supplémentaires, les remarques déplacées. Non tu n’es pas seul.e à te dire que c’est le jeu, qu’il faut serrer les dents et avancer. Vous me dites tellement de choses que je pourrais en faire un livre. Mais je me tais. Je raccroche. Parfois, il m’arrive de pleurer car votre histoire touche, fait mal. BREF TU N'ES PAS SEUL.E !
2
3
20
2,248
Join me at @Devoxx on Tuesday at 12:40 (room 6) to explore Platform Engineering principles and how @doctolib is applying them to support our shift from a monolith to multi-services architecture devoxx.be/talk?id=20068
5
1
21
2,553
lambdadev retweeted
I can attest from my own small experience, the New Yorker's fact checking is indeed quite thorough. teapawt.org/JeffDean/status/106960…
“Checkpoints” is a great piece by John McPhee about the New Yorker’s fact checking department, the most famous in the world. It’s about fact checking a story told to him by John Wheeler about nuclear weapons material. They check everything. newyorker.com/magazine/2009/…
2
6
1
27
22,976
🇫🇷 I've finally decided to write an article explaining why #OCaml is my language of choice, in my professional adventures, but also for my personal projects! xvw.lol/pages/why-ocaml.html
10
1
17
997
Les comptes Twitter à suivre 🧵 Un fil qui change de ce que je réalise mais qui est important si vous voulez vous créer un flux d’informations pertinentes & variées. On est noyé sous les flux donc il faut cibler les follows. Voici les comptes que je recommande de suivre⤵️ 1/18
120
501
39
1,920
562,914