236 karma · joined Sep 19, 2016 (10y ago) · 25 submissions
comment 5d ago · link · parent
4.
Resisting Cognitive Surrender(knlb.dev ↗)
350 points · by knlb · 3w ago · 164 comments
comment 3mo ago · link · parent
So far I've been enjoying the language (pythonic, comptime, tile support) and plan to spend time using it to work with gpus to learn more, the puzzles are also pretty cool.
comment 3mo ago · link · parent
7.
Experiments in building bespoke tools with AI(knlb.dev ↗)
1 points · by knlb · 9mo ago · discuss
comment 10mo ago · link · parent
comment 10mo ago · link · parent
In the fullness of time, you end up having to. Or at least I have. Which is why I always dislike additional layers and transforms at this point.
(eg. when I think about react native on android, I hear "now I'll have to be excellent at react/javascript and android/java/kotlin and C++ to be able to debug the bridge; not that "I can get away with just javascript".)
comment 10mo ago · link · parent
The boox palma with android + (obsidian | termux + tailscale) when I need it has actually worked out well for me for writing | programming with a portable keyboard (nuphy). I even did this year's Advent of Code on it. (https://knlb.dev/logs/aoc25 has some photos)
11.
AI Industry Interview Prep Guide(twopug.com ↗)
1 points · by knlb · 11mo ago · discuss
comment 1y ago · link · parent
The structure can be a bit confusing if you've only seen one liners because it has a lot of defaults that kick in when not specified.
The pleasant surprise from learning to use awk was that bpftrace suddenly became much more understandable and easier to write as well, because it's partially inspired by awk.
comment 1y ago · link · parent
I really liked Deepnote the product when I last used it, but the post definitely feels off.
comment 1y ago · link · parent
My personal favorite tool I've built this year is to dynamically generate a trace from a sql query, and allow quickly combining queries. Something like `SELECT timestamp, track, name, ` etc. where column names get transformed to packets automatically.
That way I can overlay multiple py-spy traces and instrumentation into a dynamically implemented generated perfetto trace, loaded into a perfetto iframe using the ping/pong mechanism at https://perfetto.dev/docs/visualization/deep-linking-to-perf....
comment 1y ago · link · parent
I feel like I've seen Cupti have fairly high overhead depending on the cuda version, but I'm not very confident -- did you happen to benchmark different workloads with cupti on/off?
---
If you're taking feature requests: a way to subscribe to -- and get tracebacks for -- cuda context creation would be very useful; I've definitely been surprised by finding processes on the wrong gpu and being easily able to figure out where they came from would be great.
I did a hack by using LD_PRELOAD to subscribe/publish the event, but never really followed through on getting the python stack trace.
comment 1y ago · link · parent
It definitely doesn't feel as solid as the Kinesis or ergodox (which I used intermittently as well) but is the most comfortable keyboard I've used, the LEDs are actually useful (for showing battery life and bluetooth connections), and there are enough keys (including function keys); I don't like having to reason about layers at all, I want to be able to smoothly transition to my laptop's keyboard in a pinch).
comment 1y ago · link · parent
The org mode one is at https://explog.in/config.html.
comment 1y ago · link · parent
#!/usr/bin/env -S uv run --script
# -*- mode: python -*-
#
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "pyyaml", "flask", "markdown-it-py",
# "linkify-it-py", "mdit-py-plugins"
# ]
# ///
The HTML templates & CSS are baked into the file which is why it's so long. flask so that I can have a live view locally while writing new notes.uv's easy dependency definition really made it much easier to manage these. My previous site was org exported to html and took much more effort.
(With the conceit that the website is a "notebook" I call this file "bind").
comment 1y ago · link · parent
https://www.threads.com/@kunalb_/post/C6ZQIOVpwMd https://gist.github.com/kunalb/abfe5757e89ffba1cf3959c9543d9...
which has been really useful.
comment 1y ago · link · parent
Julia Evans also has a very nice zine on debugging: https://wizardzines.com/zines/debugging-guide/
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 10y ago · link · parent
[1] Publishing config: http://explog.in/config.html [2] Org Source: http://explog.in/config.org.html