Formally modeled Dreidel for no good reason
I can mathematically prove the game's not fun.
The latest blog posts to take off on Hacker News. 14,540 posts.
I can mathematically prove the game's not fun.
I recently stumbled upon this screenshot while researching social media on the train. Of course, it was followed by a cascade of spiteful comments, criticizing this fresh programmer’s attempt to solve a classical problem in computer science. The modulus operation.
2025 edition. this is very different from most "best books for programmers" lists you'll see, with Code Complete and Clean Code and Wistful Wanking for Practical Wankers and Design Slatterns and titles like that. you'll figure all that out as you go along. these are books to read so that you can cut motherfuckers with…
This post is about two new command-line utilities: rep and ren. Both are available on GitHub.
The Small Web Renaissance, Finger, Gopher and Gemini. How they work and what makes them different from the modern Big Web.
BASIC is often dismissed as an inferior language compared to its successors. Common complaints are its use of line numbers, its heavy reliance on GOTO for execution flow, and its lack of a stack for local variables. What many critics overlook is that at the time of its use (during the first wave of home computers)…
The first step in building my text editor is to implement the core API. If you’re wondering why I want to do this, the original article is here.
Challenging projects every programmer should try
Describes how to create reproducible and deterministic one-file bundles of git repositories for use cases such as backups.
A blog about game engines, graphics, C++, and more.
The second block has more real work going on. If the character stored in the variable _ does not match the first character of the string a , the code recurses in such a way that this same block of code will again be entered. That is, t=-65 forces a return to the if (t < -50) block. The recursion steps through string a…
In my last post, we explored how to build WASM modules, both with and without WASI support, using Clang. In a comment on Reddit, it was mentioned that much of the setup I walked through in that post could be avoided by just leveraging Zig’s WASI supprt. This is a great point, and I would recommend doing the same. The…
Blog about linguistics, programming, and my projects
TL;DR: I think that a focus on memory safe languages (MSLs) versus non memory-safe languages is a bit of a red herring. The actual distinction is slightly…
Stop trying to make customElement happen. Do this instead.
Foreign keys are a bit like that well-intentioned friend who insists on double-checking everything you do. They’re often recommended as a must-have for enforcing referential integrity checks in your database.
Wherein Application Audio Is Routed Between Isolated Programs by Virtual Cables, and Streamer-Focused Solutions Are Observed to Have Eased Tedious Setup, While macOS and Windows Tools Such as BlackHole and VB Audio Are Catalogued.
Someone is wrong on the Internet; he said that all code is technical debt, and I refute that.
a blog about music technology
From a person who really shouldn't be giving others advice.
A simple, whitespace theme for academics. Based on [*folio](https://github.com/bogoli/-folio) design.
Fire is an interesting graphics problem. Past approaches generally faked it. For example, Lord of the Rings used sprites with lots and lots of smoke (the fluid sim was too expensive at the time, even for movies). Real-time applications like video games have pretty much exclusively used non-physical approaches.
Right after getting my degree, I was lucky to be hired into a small but decent R&D department as an embedded software engineer. My first task was to create a Unit Test project and have it run in our build pipeline after compilation. I was not particularly excited about this task, it seemed like busywork to me. I…
Software companies come in many sizes. There are small startups, medium-sized companies, and huge enterprises. As you might expect, startups are usually lean and fast. Big companies that develop large applications move much more slowly. Those might be systems developed for many years or decades by hundreds of…
Suppose that the logic of your program depends on time. That is, you need to keep track of when something in the past happened, and what tim...
Discussions: Hacker News (64 points, 3 comments), Reddit r/MachineLearning (219 points, 18 comments) Translations: Simplified Chinese, French, Korean, Russian, Turkish This year, we saw a dazzling application of machine learning. The OpenAI GPT-2 exhibited impressive ability of writing coherent and passionate essays…
Emacs incremental search (isearch) has an embarrassingly rich feature set. That said, I rarely use isearch beyond its basics for the twofold reasons: There are many isearch commands that are...