Sign in

Vincent Bernat

@vincent.bernat.ch
515 followers 219 following 177 posts

Network engineer at AS12322. Debian and free software developer. Like to work on projects with C, Python, or Go. He/him. vincent.bernat.ch

PostsRepliesMedia
Vincent Bernat @vincent.bernat.ch · 07/03/2026
Math home work for senior year. Written with ChiWriter (a scientific word processor).
010
Vincent Bernat @vincent.bernat.ch · 08/02/2026
Thanks to Bart Schaefer, here is how to have an handy "=" alias to run a calculator directly from Zsh: github.com/vincentberna... With numbat installed, you can do things like this:
021
Vincent Bernat @vincent.bernat.ch · 12/08/2025
Trying a bit Claude Code. I feel like I am doing all the work and paying for that.
Output for Claude Code.

Me: No, no, no, don't reintroduce a compactRoutesForPrefix that is building a slice. WE DO NOT WANT SLICES. Maintain two indexes when iterating: checkKey for the key to check next for removal (to be incremented for each iterated route) and nextKey the key to be used for the next route to be kept (to be incremented when we keep a route) and when keeping a route and checkKey != nextKey, we need to move the route from checkKey to nextKey.

Claude: You're absolutely right! I was reverting to the inefficient slice-based approach. Let me implement the proper two-index compaction directly in the removeRoutes method without any slices
022
Vincent Bernat @vincent.bernat.ch · 12/06/2025
I don't know why Outlook 365 keep asking my opinion every week...
010