Red Blob Games

Red Blob Games

@redblobgames.com

Hi! I'm Amit Patel. I explain algorithms and math with interactive web pages (incl. pathfinding, hexagons, procgen maps, voronoi). Wrote Solar Realms Elite; helped w/Barren Realms Elite and Realm of the Mad God. https://www.redblobgames.com/

2.1K followers101 following577 posts

Red Blob Games reposted

the internet has lost *legibility of effort* - the ability to easily whether something took meaningful human work It's why we all catalogue vibe-code tells. And I bet that we'll find new ways to show our humanity through our work eieio.games/blog/legibil...

Red Blob Games reposted

Have you ever thought about how your computer adds and subtracts? It takes a lot of hardware to handle floating-point numbers like 12.34. I opened up Intel's 8087 math coprocessor chip from 1980 to see how it works...

I am *loving* this use of LLMs. For my current project I'm writing all the code myself, but I have llm-buddy reading my code as I type, giving me feedback. And … it's caught a lot of bugs and style issues. It's telling me things I would've never thought of asking an LLM about.

Andrew Hyatt@andrewhyatt.bsky.social

I just posted a video introducing llm-buddy, with a demo showing how it detects issues in whatever you are writing in #emacs and how it can (optionally) just fix the issues that are too insignificant to mention.

View full thread

And here's an example of some code I wrote that was redundant with code I had written earlier. I had forgotten about the earlier code, but llm-buddy reminded me that I had already done this operation and don't need to do it again. It's essentially acting like a linter but on logic instead of style

I was trying to figure out why my regexp wasn't matching, and … after a minute llm-buddy popped up a message which said my regexp will never match, pointed to the error, and suggested a fix. Very helpful!

Red Blob Games reposted

I thought I was being clever by making a "print statement" in javascript (yes, I miss python 2's print statement, and BASIC too) print `${attacker} attacks ${defender} for ${damage} hp.`; But it turns out Mozilla's docs have this same idea developer.mozilla.org/en-US/docs/W... console.log`Hello`;

developer.mozilla.orgTemplate literals (Template strings) - JavaScript | MDNTemplate literals are literals delimited with backtick (`) characters, allowing for multi-line strings, string interpolation with embedded expressions, and special constructs called tagged templates.

Every once in a while I think I should turn off comments on my blog/site, and then there are days like today when I get TWO comments that are so great that I want to keep comments open.

I am *loving* this use of LLMs. For my current project I'm writing all the code myself, but I have llm-buddy reading my code as I type, giving me feedback. And … it's caught a lot of bugs and style issues. It's telling me things I would've never thought of asking an LLM about.

Andrew Hyatt@andrewhyatt.bsky.social

I just posted a video introducing llm-buddy, with a demo showing how it detects issues in whatever you are writing in #emacs and how it can (optionally) just fix the issues that are too insignificant to mention.

Here's an example of me being careless. It's not a type error, but the code is wrong. llm-buddy got me to look at it again. And yes, I'm careless sometimes :-(

Red Blob Games reposted

I just posted a blog post on my hyperbezier curve: linebender.org/blog/hyperbe... I've actually been working on this for years, and only recently figured out a solution to the parameter mapping problem. I think this curve is potentially better than cubic Béziers for 2D vector graphic design.

View full thread

- artificer - put magic into everyday tools, usable by mortals - cleric - rituals that work but you don't know why, and you don't need to - warlock - bargaining, if you meet its whims you get ultimate power - druid - tending to & observing, teaching/nurturing

- ranger - guide others through many generators/techniques - paladin - explains pros & cons, definitions of procgen Some Dungeons & Dragons campaigns also featured anti-magic groups. And I think it all applies to LLM use! Which D&D class matches your use of LLMs?

I still think about this talk. My notes: - wizard - system of rules that can be mastered, fully understand some subset of magic - sorcerer - relies on intuition, introspection, examining one's own beliefs - bard - creativity enhancement, artistic, embraces weirdness

For a long time 3D graphics had a fixed function pipeline. Over time, that loosened up, and we can now write "shaders" to control how it works. I've been wondering about the same with LLMs—

Love this video! I don't have a perfect system but: - I keep short term stuff on paper - I keep long term stuff on the computer (ideally searchable text files, but I also use Notion occasionally) I don't do a lot of organizing (mindmap, zettlekasten, etc.). My notes are messy.

Saleh@mskayyali.com

New Video on Interface Studies What Every Productivity App Trades Away youtu.be/OuEKdD_1F8s?... As we chase the latest productivity systems, this video takes a step back to examine the fundamental trade-offs built into every productivity app.

Bobbie's interview questions were great — it got me thinking about what I'm working on and what I'd like to be working on

Bobbie Chen@bobbiechen.com

Today, it has never been easier to create something, anything. But when given the opportunity, most people never do. So I interviewed four creators I admire, on how they make the exciting, creative, uniquely-personal things they do - and here's the result: digitalseams.com/blog/making-...

What I'm currently working on is not what I really want to be working on. I discovered that due to a mistake I made in 2020, very rarely the font size on my site is 19.9879px instead of 20px. Of course nobody will notice. I am trying to understand how it happened and how to prevent it in the future

Red Blob Games reposted

Broadcasting negative opinions about something is an easy way to get a lot of people to agree with you, because it resonates with them. They've been thinking the same thing, and they were too afraid to say it out loud. And it feels good to have someone else say it. And it becomes self-sustaining...

Red Blob Games reposted

Red Blob Games reposted

Intel introduced the 8087 floating-point chip in 1980 to make math faster. The chip does tangents, square roots, and so forth, but fundamentally everything is computed through additions and subtractions, performed by an adder at the heart of the chip. Let's look at the adder's circuitry... 1/N