Sami Badawi

Sami Badawi

@samibadawi.com

Coder monkey 🐒 - aerospace amateur 🚀

743 followers103 following263 posts

Yesterday @armanbil.ge from the Typelevel Foundation gave an amazing presentation about #CatsEffect for #Scala. There are a lot of speed improvements since v3.0.0. He explained how it works under the hood, and compared it to Java's project Loom.

Squeezed Devstral Small 2 24B, Mistral's 24 billion parameter LLM, onto my 32 GB laptop. I gave it a Raylib code test. It handled the test in C, C++ and Rust. Also made graphics demos in JavaScript and ported to TypeScript. Capable, but huffing and puffing. 😮‍💨

I tried self hosting open weight models / coding LLMs on my modest laptops for a week. Are there any use cases for this now? Yes. If you are offline, broke or cannot send code over the internet for privacy or legal reasons. But be prepared to pair-program with your LLM.

Yesterday I spent hours removing vibe coded verbose documentation and mock unit tests. 🤖 There is a fine line between best practice and slop. 🫥

My coding LMM triggered AI safeguards shutdown. 🤯 I am coding a database insert to a table called audit. Not doing cybersecurity work. 🙁 Guardrails are good, but I thought they were more sophisticated. 💂 (Gemini suggested to temporarily rename audit table to log_history)

I have tried #OpenCode. Good ergonomics, similar to Claude Code. In OpenCode you always see the number of tokens and money spent. Your LLM does useful work, but it also burns tokens by reading through long logs. Humans 😵‍💫 assume LLMs 🤖 would warn us. In OpenCode you notice problems fast.

My #coffee habit: ☕ to wake up ☕ get that boost ☕ combat afternoon slump Last week I only drank morning coffee, and had no more afternoon slump. 🤔 ☕ is advertised as an energy boost, but it's an energy loan.

I ported the same Raylib, C fluid dynamic simulation to Odin and Zig 0.16 to compare state of the art in C interop. #Odin is as simple as a system language can be. There is no build script. Raylib is included. #Zig has very fine control even more than C and CMake-like build scripts written in Zig.

#C-lang is still best for micro controllers, but Odin and Zig are substantially simpler and have good C interop. IMHO it is worth wrapping your C code in Odin or Zig if you want to do graphical simulations.

Professor Jacob Barandes has a new interesting interpretation of quantum mechanics without wave function: Indivisible Stochastic Quantum Mechanics Very cool, but hard to judge its merit, so happy to hear him debate it with Sean Carroll.

Sean Carroll@seanmcarroll.bsky.social

Mindscape 323 | Jacob Barandes on Indivisible Stochastic Quantum Mechanics. We go on for a while. #MindscapePodcast www.preposterousuniverse.com/podcast/2025...

Wrote my first blog post in 5 years. Now it is common to just read the web search AI summary. But nice robots 🤖 might appreciate my post, and summarise it for 👨‍👨‍👧 real people, like myself. Maybe it's effective knowledge sharing 🤔 but I felt different and a little alienated while writing 🫥

Sami Badawi reposted

Scala 3.8 is here! A major release modernising the ecosystem and paving the way for Scala 3.9 LTS. Highlights: - Standard library compiled by Scala 3 - Better Fors & runtimeChecked stabilized - New experimental features - Update to JDK 17+ 🧵 Let's dive in...

@unison-lang.org v 1.0 passes my language readiness criteria * Good language server support * Trivial to make a word frequency program with tests It's mind blowing 🤯 to program with code fragments, instead of projects of files. Very composable. Promising, but hard to imagine its effect on DevOps

Sami Badawi reposted

🥳🥳🥳

Sami Badawi@samibadawi.com

The rumours were true: Installing and setting up Haskell in 2025 is a breeze. Install ghcup. Use that to install ghc, Cabal and HLS. #Haskell feels ergonomic and modern. Took an hour from start till I had made my sample app with unit tests in VS Code.

The rumours were true: Installing and setting up Haskell in 2025 is a breeze. Install ghcup. Use that to install ghc, Cabal and HLS. #Haskell feels ergonomic and modern. Took an hour from start till I had made my sample app with unit tests in VS Code.

Sami Badawi reposted

The 2020's have to be the decade of great tooling for #Haskell. More investment in Developer Experience, reliable foundations and predictable performance will see us gain a lot of street cred.

Sami Badawi@samibadawi.com

A pure functional programming language has long been a utopian dream. We suddenly have 3 strong contenders: * @haskell.org with better tooling * Lean 4, adopted by mathematicians * @unison-lang.org out in v 1.0 Good time to revisit pure.

Lean 4 is a theorem prover that has been adapted by working mathematicians. But it is also a nice Haskell style programming language. Solid with good tooling. I was productive right away.

Sami Badawi reposted