617 karma · joined Jan 4, 2011 (15y ago) · 122 submissions
comment 3mo ago · link · parent
4.
The APLR(1) Algorithm Is Simpler and More Capable Than IELR(1)(branchtaken.com ↗)
8 points · by jasone · 5mo ago · 1 comment
comment 1y ago · link · parent
7.
Jemalloc Postmortem(jasone.github.io ↗)
801 points · by jasone · 1y ago · 233 comments
comment 2y ago · link · parent
comment 2y ago · link · parent
10.
All Aboard the Bootstrap Transpiler Express(branchtaken.com ↗)
4 points · by jasone · 2y ago · discuss
11.
Now Back to Our Regularly Scheduled Programming Language(branchtaken.com ↗)
2 points · by jasone · 2y ago · discuss
12.
IELR(1) as Implemented by Hocc(branchtaken.com ↗)
4 points · by jasone · 2y ago · discuss
comment 2y ago · link · parent
https://www.youtube.com/watch?v=wqI7MrtxPnk
By the way the CHM oral history video series is full of gems.
comment 2y ago · link · parent
comment 3y ago · link · parent
Many of us programmers have powers of 2 memorized through at least 2^20 (and 2^10 ~= 1000 is close enough for decomposing and converting larger values), which makes rough conversion to/from the log domain trivial. The trick in estimation is to round to the nearest whole number when converting to the log domain, and try to alternate rounding direction for inputs that are not close to the upper/lower extrema. Keep a running total of the log-domain value as a whole value, and take the antilog as the final step. Given these simple rules, most estimates come within a factor of 2 of the intended value, and with minimal cognitive load. All you need to remember is the current sum and which direction to round the next input.
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
It's a project I hope to go back to someday, and maybe follow up on some of the human-like play options and variants I came up with along the way. The tournament word list is proprietary and at the time there were apparently no reasonable licensing options (licensing has since improved), which put a damper on releasing my engine.
comment 3y ago · link · parent
comment 3y ago · link · parent
Erlang is somewhat unusual among contemporaries in how it multiplexes actors onto system threads. This has historically been quite difficult to get 100% right because even if you manage to make all system calls non-blocking (e.g. TCP socket I/O), "non-blocking" disk I/O can still stall computation for a relative eon. I'm pretty excited about io_uring because it provides a general solution to this problem.
comment 3y ago · link · parent
We'll, it sorta worked. In this state I somehow recognized that the device placed on my fingertip must be a blood sensor of some sort, and that squeezing my finger might mess with the readings. I made it through two rounds of setting off alarms before the nurses caught me. I was immensely pleased with myself!
comment 3y ago · link · parent