Chevy Ray | How I Created 175 Fonts Using Rust
How I used my own Rust tool to ship 175 quality pixel fonts.
Hasnain says:
"The pack was very popular and a financial savior for me, and I think these mockups helped a lot. They've been used in hundreds of indie games, even in big games like Nintendo's Cadence of Hyrule, created by local developer Brace Yourself Games."
Posted on 2024-08-11T06:21:01+0000
Building a highly-available web service without a database
If you’ve ever built a web service or a web app, you know the drill: pick a database, pick a web service framework (and in today’s day and age, pick a front-end framework, but let’…
Hasnain says:
“How well does this scale? We have a couple of big enterprise customers, but one especially well-known customer. Screenshotbot runs on their CI, so we get API requests 100s of times for every single commit and Pull Request. Despite this, we only need a 4-core 16GB machine to serve their requests. (And similar machines for the replicas, mostly running idle.) Even with this, the CPU usage maxes out at 20%, but even then most of that comes from image processing, so we have a lot of room to scale before we need to bump up the number of cores.”
Posted on 2024-08-10T06:33:03+0000
How I Use "AI"
I don't think that AI models (by which I mean: large language models) are over-hyped. In this post I will list 50 ways I've used them.
Hasnain says:
Lots of valuable quotes here (especially around the judicious doubt and worry about LLM abuse). But the author’s perspectives seem to match mine. I’ll leave with the conclusion:
“One of the most common retorts I get after showing these examples is some form of the statement “but those tasks are easy! Any computer science undergrad could have learned to do that!” And you know what? That's right. An undergrad could, with a few hours of searching around, have told me how to properly diagnose that CUDA error and which packages I could reinstall. An undergrad could, with a few hours of work, have rewritten that program in C. An undergrad could, with a hours hours of work, have studied the relevant textbooks and taught me whatever I wanted to know about that subject. Unfortunately, I don't have that magical undergrad who will drop everything and answer any question I have. But I do have the language model. And so sure; language models are not yet good enough that they can solve the interesting parts of my job as a programmer. And current models can only solve the easy tasks.
But five years ago, the best an LLM could do was write a plausibly-English sounding paragraph. And we were amazed when they could form coherent ideas from one sentence to the next. Their practical utility was exactly zero. Today, though, they've improved my productivity at the programming aspects of my job by at least 50% on the average project, and have removed enough of the drudgery that I built several things I would never have attempted otherwise.”
Posted on 2024-08-09T06:15:55+0000
Judge rules that Google ‘is a monopolist’ in US antitrust case
The DOJ and Google faced off in a 10-week trial.
Hasnain says:
Looking forward to reading the full detailed analysis of the 200+ page ruling when they come out, because this is one for the history books.
"One of the most significant revelations from the case was the size of Google’s payments to Apple to secure the default search engine spot on iPhone browsers. An expert witness for Google let slip that the company shares 36 percent of search ad revenue from Safari with Apple. In 2022, Google paid Apple $20 billion for the default position.
During closing arguments, Mehta homed in on those payments, wondering how other players in the market could possibly displace Google from that position. “If that’s what it takes for somebody to dislodge Google as the default search engine, wouldn’t the folks that wrote the Sherman Act be concerned about it?”"
Posted on 2024-08-05T21:13:09+0000
LISP with GC in 436 bytes
LISP engine that's tiny enough to fit in a 512-byte master boot record
Hasnain says:
“Tiny code contests have historically focused on the source code. What makes that problematic is how it incentivizes obfuscation. On the other hand, optimizing for binary size usually results in the source code becoming more elegant. In order to make program files tinier, one must choose data structures and design patterns that are harmonious with the way computers work. Doing that requires us to better understand the nature of the problem.”
Posted on 2024-08-03T21:38:46+0000
How to Build Anything Extremely Quickly - Learn How To Learn
Do "outline speedrunning": Recursively outline an MVP, speedrun filling it in, and only then go back and perfect. This is a ~10x speed up over the 'loading-bar' style (more on that below) Don't just read this article and move on. Go out and do this for the very next thing you make so y
Hasnain says:
Can confirm.
“"It is fascinating to see historical figures’ legacy records convey crucial scientific implications to modern scientists even centuries later," said co-author Sabrina Bechet of the Royal Observatory of Belgium. "I doubt if they could have imagined their records would benefit the scientific community much later, well after their deaths. We still have a lot to learn from these historical figures, apart from the history of science itself. In the case of Kepler, we are standing on the shoulders of a scientific giant."”
Posted on 2024-08-03T21:02:52+0000
How Kepler’s 400-year-old sunspot sketches helped solve a modern mystery
A sharp decline in sunspot activity in the 17th century has long puzzled astronomers.
Hasnain says:
“"It is fascinating to see historical figures’ legacy records convey crucial scientific implications to modern scientists even centuries later," said co-author Sabrina Bechet of the Royal Observatory of Belgium. "I doubt if they could have imagined their records would benefit the scientific community much later, well after their deaths. We still have a lot to learn from these historical figures, apart from the history of science itself. In the case of Kepler, we are standing on the shoulders of a scientific giant."”
Posted on 2024-08-03T20:58:39+0000
"We ran out of columns" - The best, worst codebase
When I started programming as a kid, I didn't know people were paid to program. Even as I graduated high school, I assumed that the world of "professional development" looked quite different from the code I wrote in my spare time. When I lucked my way into my first software job, I quickly learned ju...
Hasnain says:
“Why was Justin able to do this? Because this codebase had no master plan. There was no overarching design the system had to fit into. No expected format for APIs. No documented design system. No architectural review board making sure things were coherent. The app was a complete and utter mess. No one could ever fix it, so no one tried to. What did we do instead? We carved out our own little world of sanity.
This monolithic app, due to sheer necessity, had grown to be a microcosm of nice, small apps around its edges. Each person, when tasked with improving some part of that app, would inevitably give up untangling that web, and find some nice little corner to build new things. And then slowly update links to point to their nice new stuff, orphaning the old.
This may sound like a mess to you. But it was remarkably enjoyable to work in. Gone were the concerns of code duplication. Gone were the concerns of consistency. Gone were the concerns of extensibility. Code was written to serve a use, to touch as little of the area around it as possible, and to be easily replaceable. Our code was decoupled, because coupling it was simply harder.”
Posted on 2024-08-03T20:52:52+0000
How an Elon Musk PAC is using voter data to help Trump beat Harris in 2024 election
Tesla CEO Elon Musk says he created America PAC, which collects data in swing states key to the 2024 election between Donald Trump and Kamala Harris.
Hasnain says:
Isn’t this voter fraud?
“If they agree to submit all that, the system still does not steer them to a voter registration page. Instead, it shows them a “thank you” page.
So that person who wanted help registering to vote? In the end, they got no help at all registering. But they did hand over priceless personal data to a political operation.”
Posted on 2024-08-02T15:19:04+0000
‘Sensational’ Proof Delivers New Insights Into Prime Numbers | Quanta Magazine
The proof creates stricter limits on potential exceptions to the famous Riemann hypothesis.
Hasnain says:
“That process involved several surprising steps, including “what’s in my mind the most important idea, which still seems a bit magical to me,” Maynard said. At one point, there was a seemingly obvious step they should have taken to simplify their sum. Instead, they left it in its longer and more complicated form. “We do something that at first sight looks completely stupid. We just refuse to do the standard simplification,” Maynard said. “And this gives up a lot. It means that now we can’t get any easy bound for this sum.”
But in the long run, this turned out to be an advantageous move. “In chess you call it a gambit, where you sacrifice a piece to get a better position on the board,” Maynard said. Guth likened it to playing with a Rubik’s Cube; sometimes you have to undo previous moves and make everything look worse before finding a way to get more colors in the right place.”
Posted on 2024-08-02T05:37:50+0000