vaibhav sagar

624 Followers
1.2K Following
495 Posts
This is a cover up of a murder, led by our own federal government.
I was laid off in October after 13 years at Amazon and am still seeking a new opportunity. Please ping me if you know of a full-time remote role working on network and/or infrastructure security (on-prem and cloud-based). I also have experience with embedded/OT/IoT network security and wireless security. After hours I run a small network (AS46577) and fiddle with microcontrollers, embedded Linux, ham radio, and drones. Boosts appreciated. #infosecjobs #getfedihired #jobhunt #jobsearch

Day 11 of Advent of Compiler Optimisations!

A clever loop that counts set bits using the "clear bottom bit" trick: value &= value - 1. Works great, generates tight assembly. But change one compiler flag to target a slightly newer CPU and something extraordinary happens to your loop. The compiler spots a pattern you didn't even know was there. What replaces your careful bit manipulation?

Read more: https://xania.org/202512/11-pop-goes-the-weasel-er-count
Watch: https://youtu.be/Hu0vu1tpZnc

#AoCO2025

Emu War - Wikipedia

Parents, please check your kids' candy this Hallowe'en. I just found a Lisp interpreter pretending to be a text-editor inside one of their chocolates.
hey remember that craft you spent your life developing and which you enjoy doing and which people like when you do it? yeah, we automated that. but now it’s way worse. sorry bud
Ghc now runs in your browser

This is very cool! I wonder how easy it would be to load some packages; cabal in the browser when? I’m also wondering how usable Agda in the browser would be.

Haskell Community

I've written a series of blog posts, in which I write a #bytecode #compiler and a #virtualMachine for arithmetic in #Haskell. We explore the following topics in the series:

- Parsing arithmetic expressions to ASTs.
- Compiling ASTs to bytecode.
- Interpreting ASTs.
- Efficiently executing bytecode in a VM.
- Disassembling bytecode and decompiling opcodes for debugging and testing.
- Unit testing and property-based testing for our compiler and VM.
- Benchmarking our code to see how the different passes perform.
- All the while keeping an eye on performance.

The third and final post of the series that focuses on writing the virtual machine is now out: https://abhinavsarkar.net/posts/arithmetic-bytecode-vm/

#programming #Blogging #compilers #programmingLanguages

A Fast Bytecode VM for Arithmetic: The Virtual Machine

We write a fast bytecode VM for arithmetic in Haskell.

abhinavsarkar.net
The CHAIR stack (Common Lisp, Haskell, Algol, INTERCAL, and Rust)
@redmp it turns out that MicroHs can be bootstrapped with (patched) Hugs! I never thought I'd see the day we'd have a properly bootstrapped Haskell: https://github.com/augustss/MicroHs?tab=readme-ov-file#bootstrapping-with-hugs
GitHub - augustss/MicroHs: Haskell implemented with combinators

Haskell implemented with combinators. Contribute to augustss/MicroHs development by creating an account on GitHub.

GitHub