Will McGugan's banner
Will McGugan's profile picture

Will McGugan

@willmcgugan41,681 subscribers

Former presidential speech writer. Hyperborean Python expert, PSF fellow, author, humanist, husband. He/him @[email protected]

Shorts

This may be the coolest thing I have ever built, or ever will build.

This may be the coolest thing I have ever built, or ever will build.

227,200 просмотров

This is why "vibe coding" reaches a point where it can become painfully slow. Do you see where the dashed line meets the edge of the page. Notice how the phases of the dashes doesn't continue seamlessly when I resize the window. Should I care? Maybe not. Do I care? Yes, very much. But trying to get Claude to even knowledge the issue is proving frustrating.

This is why "vibe coding" reaches a point where it can become painfully slow. Do you see where the dashed line meets the edge of the page. Notice how the phases of the dashes doesn't continue seamlessly when I resize the window. Should I care? Maybe not. Do I care? Yes, very much. But trying to get Claude to even knowledge the issue is proving frustrating.

13,073 просмотров

This bugs me more than it should. This is Ghostty, but it happens to other software. Characters on the corners are cropped by the border radius of the window. I like macOS in general, but wish Apple would roll back the rounded corners a tad.

This bugs me more than it should. This is Ghostty, but it happens to other software. Characters on the corners are cropped by the border radius of the window. I like macOS in general, but wish Apple would roll back the rounded corners a tad.

35,040 просмотров

This should not be possible with the terminal! 🤯

This should not be possible with the terminal! 🤯

42,561 просмотров

Videos

willmcgugan's profile picture

Cute! But does it have sub-cell mouse drag and easing animation?

Will McGugan

54,297 просмотров • 9 месяцев назад

willmcgugan's profile picture

Retweet if you want an inline terminal code editor.

Will McGugan

46,824 просмотров • 2 лет назад

willmcgugan's profile picture

Are we doing this? I guess we're doing this.

Will McGugan

24,920 просмотров • 1 год назад

willmcgugan's profile picture

Well that was an adventure. Toad's fuzzy file search boosts first characters, smallest number of groups, and it highlights the best scoring match. So you can locate a file with the bare minimum of keypresses. It's an expensive algorithm as it scores every possible combination of the query characters. For any given path there could be many indices which match, and each of them is scored separately. Still, it was fast enough to search as you type for my largest repository. Alas, it was slow for very large repos. Like Microsoft's Typescript, which has more than 84,000 files. I figured I'd reach the limit of what I could do with Python. So my options were to use something like ripgrep or re-implement the fuzzy searching in a faster language. I didn't want to add the ripgrep dependency, so I built a Rust version (with the help of AI) which eventually yielded a ~14X speedup. Nice. Better. But it could still become painful to type under certain pathological conditions. An inefficient algorithm can always be slow if you add more items. So I scrapped the Rust solution and built an index in Python—so the fuzzy search could throw away most paths that wouldn't match or have low scores. And its faster than the Rust solution was. The only downside is that there is a little additional work upfront (done in the background). I think this will do for a while. Until I get an issue that it is slow with 10million files. Rust is still an option, as is doing the work in parallel. This will be in the next version of Toad. Here I am searching the Typescript repo... #Python

Will McGugan

12,261 просмотров • 6 месяцев назад