Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
benhoyt
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
Switching from S3 to Tigris on Fly.io
(benhoyt.com)
1 points
by
benhoyt
3y ago
|
0 comments
62.
▲
A Git implementation in AWK (2021)
(github.com)
3 points
by
benhoyt
3y ago
|
0 comments
63.
▲
The Ballerina programming language
(ballerina.io)
5 points
by
benhoyt
3y ago
|
0 comments
64.
▲
Profile Guided optimisation in Go 1.21
(andrewwphillips.github.io)
2 points
by
benhoyt
3y ago
|
0 comments
65.
▲
Working on a virtualenv without magic (2016)
(ruudvanasseldonk.com)
1 points
by
benhoyt
3y ago
|
0 comments
66.
▲
Stray Pointers podcast
(straypointers.com)
2 points
by
benhoyt
3y ago
|
0 comments
67.
▲
Building a Blog with Go, Nix and Hugo
(jnsgr.uk)
12 points
by
benhoyt
3y ago
|
1 comments
68.
▲
by
benhoyt
3y ago
Actually, an article of mine was on the front page of HN the other day, and it only got ~10,000 hits over a day. At its peak it was less than 1 per second. I've been #1 on HN before, and you still only get about 30k hits total with a p
69.
▲
Using a Markov chain to generate readable nonsense with 20 lines of Python
(benhoyt.com)
230 points
by
benhoyt
3y ago
|
71 comments
70.
▲
by
benhoyt
3y ago
One of my favourite computer games was written in Turbo Pascal: ZZT, written by Tim Sweeney of Epic Megagames. It was a quircky text-mode game with puzzles, shooting, and so on. It had a built-in game editor that came even with the free sha
71.
▲
by
benhoyt
3y ago
This is a lot more possible now that Go has generics (as of 1.18). I would probably never use these, as I find such libraries are a whole new domain-specific language to learn, and often don't make things much simpler anyway, but here
72.
▲
by
benhoyt
3y ago
Here's one possibility. With an interface: https://go.dev/play/p/WTo2k_7PeRT type Barker interface { Name() string Bark() } And with a function-struct: https://go.dev/play
73.
▲
by
benhoyt
3y ago
> interfaces are mostly equivalent to… structs of function pointers This is an interesting discussion point. Some colleagues at a previous workplace actually used such structs with function fields (in Go they're not designated "
74.
▲
Finitecurve.com: TSP art on a CPU budget
(vidarholen.net)
4 points
by
benhoyt
3y ago
|
1 comments
75.
▲
The Source of Readability
(loup-vaillant.fr)
44 points
by
benhoyt
3y ago
|
4 comments
76.
▲
by
benhoyt
3y ago
> The author contradicts their own advice to avoid flowery prose Can you give some examples of where I use flowery prose in the article (apart from when quoting samples that do)? It's something I try hard to avoid.
77.
▲
by
benhoyt
3y ago
The very same. To tell, you can click on my HN profile, which links to my website (where this article was published).
78.
▲
by
benhoyt
3y ago
> When benhoyt says "In short, don’t be generic" then at least he could take his own advice into account when writing questions. I actually agree with this: I think several of our questions could be improved and made more speci
79.
▲
by
benhoyt
3y ago
They have been derided for their interview process (though not, as far as I know, for their candidate selection), but that's not the point of the article. I'd love if it we stuck to discussing the content of the article: how to wr
80.
▲
by
benhoyt
3y ago
It's not the "perfect grammar" that gets penalized (though ChatGPT grammar isn't really stellar). It's the part where the writing contains "little or nothing from the candidate's experience".
81.
▲
The Source of Readability
(loup-vaillant.fr)
2 points
by
benhoyt
3y ago
|
0 comments
82.
▲
Using the WordStar Diamond in 2023
(benhoyt.com)
14 points
by
benhoyt
3y ago
|
0 comments
83.
▲
AWK for Exploratory Data Analysis of Humanities Data, by BWK
(awk.dev)
2 points
by
benhoyt
3y ago
|
0 comments
84.
▲
by
benhoyt
3y ago
Yeah, with the "go 1.21.0" line in the go.mod file, it only works on Go 1.21. Here's what I get on Go 1.20: $ go run . go: errors parsing go.mod: .../static-server/go.mod:3: invalid go version '1.21.0&#
85.
▲
by
benhoyt
3y ago
Yeah, it's used in the top-level update() call in the BEGIN block: if (update(ARGV[1]) == 0) print ARGV[1] " is up to date"
86.
▲
by
benhoyt
3y ago
Alec Thomas wrote a script like this called pawk.py ( https://github.com/alecthomas/pawk ). It reads input automatically, and for each line, defines "n" and "f" to the line number and fields list (amo
87.
▲
by
benhoyt
3y ago
I don't think Python is very well suited to one-liners, but it's not due to interpreter startup time (20ms on my machine). Rather, it's due to all the scaffolding needed, which AWK provides implicitly: AWK automatically rea
88.
▲
by
benhoyt
3y ago
Thanks for the prominent link to my article! ("The Small Web is Beautiful") I consider that my personal software manifesto, so I'm glad to see it being promoted more widely. I really like what you're doing with Kagi Smal
89.
▲
by
benhoyt
3y ago
Yeah, "micro" for an editor would be 11 kilo bytes. I bet it's possible to do a half-decent editor in C in 11KB. Antirez's "kilo" (~1000 lines of C) is 36KB when compiled with standard gcc ( https://
90.
▲
by
benhoyt
3y ago
I used to love JOE! Maybe that's why, because it had echoes of WordStar. I just wrote an article about how I still use the "WordStar Diamond" keys in Linux today: https://benhoyt.com/writings/wordstar-dia
More ›