HNHacker News
TopNewBestAskShowJobs

pbohun

759 karma · joined November 3, 2015

submissionscomments
pbohun··on Ape Coding [fiction]
You probably also don't use a calculator because it uses a scary language called arabic numerals. Why write 123,456 when you could write out in english: One Hundred Twenty-Three Thousand Four Hundred Fifty-Six? English is your programming language and also your math language, right?
pbohun··on Ape Coding [fiction]
It's not ape coding. It's skill coding. People who don't have the skill to do math and logic ask others to do it for them.

The reason we have programming languages is the same reason we have musical notation or math notation. It is a far more concise and precise way of communicating than using natural languages.

We could write music using natural language, but no one does because a single page of music would require dozens of pages of natural language to describe the same thing.

pbohun··on Lilush – LuaJIT static runtime and shell
Thanks for the update!
pbohun··on An interactive intro to quadtrees
This page was put together very well. It has interactive illustrations when needed (not excessive), and the explanations were informative yet concise. I also like how it brings up other uses of quadtrees, such as for images. This encouraged me to think about how they might be used elsewhere.
pbohun··on Lilush – LuaJIT static runtime and shell
This looks very interesting. It says it has networking, cryptography, etc. Is there any documentation of the APIs? I can't try this out if I don't know what they are.
pbohun··on Closing this as we are no longer pursuing Swift adoption
As far as I know, only Go uses Go's back end because it was specifically designed for Go. But the architecture is such that it makes it trivial for Go to cross compile for any OS and architecture. This is something that LLVM cannot do. You have to compile a new compiler for every OS and arch combo you wish to compile to.

You could imagine creating a modified Go assembler that is more generic and not tied to Go's ABI that could accomplish the same effect as LLVM. However, it'd probably be better to create a project like that from scratch, because most of Go's optimizations happen before reaching the assembler stage.

It would probably be best to have the intermediate language that QBE has and transform that into "intermediate assembly" (IA) very similar to Go's assembly. That way the IL stage could contain nearly all the optimization passes, and the IA stage would focus on code generation that would translate to any OS/arch combo.

pbohun··on Closing this as we are no longer pursuing Swift adoption
QBE is a tiny project, but I think illustrates a better intermediate language design. https://c9x.me/compile/
pbohun··on Closing this as we are no longer pursuing Swift adoption
People are correct I didn't explain my position.

LLVM: Pretty much everyone who has created a programming language with it has complained about its design. gingerbill, Jon Blow, and Andrew Kelley have all complained about it. LLVM is a good idea, but it that idea was executed better by Ken Thompson with his C compiler for Plan 9, and then again with his Go compiler design. Ken decided to create his own "architecture agnostic" assembly, which is very similar to the IR idea with LLVM.

Swift: I was very excited with the first release of Swift. But it ultimately did not have a very focused vision outlined for it. Because of this, it has morphed into a mess. It tries to be everything for everyone, like C++, and winds up being mediocre, and slow to compile to top it off.

Mojo isn't doesn't exist for the public yet. I hope it turns out to be awesome, but I'm just not going to get my hopes up this time.

pbohun··on Closing this as we are no longer pursuing Swift adoption
There's no way to say this without sounding mean: Everything Chris Lattner has done has been a "successful mess". He's obviously smart, but a horrible engineer. No one should allow him to design anything.

Edit: I explained my position better below.

pbohun··on Microsoft purges Win11 printer drivers, devices on borrowed time
I have an old printer, maybe 15 years old or so. Linux still prints and Windows doesn't!
pbohun··on Tiny C Compiler
There also is an unofficial mirror which has updates.

https://github.com/TinyCC/tinycc

pbohun··on Ask HN: How are you automating your coding work?
I'm not. I'm learning a little bit each day, making my brain better and myself more productive as I go.
pbohun··on Hate is a strong word, but I don't like Windows 11
It feels like everything is falling apart and getting worse. Yet somehow people are racing to produce AI slop faster. If software eventually collapses under its own weight, things might be so borked we have to bootstrap everything from scratch, staring with assembly.
pbohun··on Microsoft May Have Created the Slowest Windows in 25 Years with Windows 11
It sounds weird to say, but Steve Ballmer was probably the best CEO of Microsoft.
pbohun··on A million ways to die from a data race in Go
Not quite. Erlang uses the Actor model which delivers messages asynchronously to named processes. In Go, messages are passed between goroutines via channels, which provide a synchronization mechanism (when un-buffered). The ability to synchronize allow one to setup a "rhythm" to computation that the Actor model is explicitly not designed to do. Also, note that a process must know its consumer in the Actor model, but goroutines do not need to know their consumer in the CSP model. Channels can even be passed around to other goroutines!

Each have their own pros and cons. You can see some of the legends who invented different methods of concurrency here: https://www.youtube.com/watch?v=37wFVVVZlVU

There's also a nice talk Rob Pike gave that illustrated some very useful concurrency patterns that can be built using the CSP model: https://www.youtube.com/watch?v=f6kdp27TYZs

pbohun··on A million ways to die from a data race in Go
They're not using the dangerous way because of syntax, they're using it because they think they're "optimizing" their code. They should write correct code first, measure, and then optimize if necessary.
pbohun··on A million ways to die from a data race in Go
The first Go proverb Rob Pike listed in his talk "Go Proverbs" was, "Don't communicate by sharing memory, share memory by communicating."

Go was designed from the beginning to use Tony Hoare's idea of communicating sequential processes for designing concurrent programs.

However, like any professional tool, Go allows you to do the dangerous thing when you absolutely need to, but it's disappointing when people insist on using the dangerous way and then blame it on the language.

https://www.youtube.com/watch?v=PAAkCSZUG1c

pbohun··on APT Rust requirement raises questions
That's not what the comment said. It said, "How about a Rust to C converter?..." The idea was that using a converter could eliminate the problem of not having a rust compiler for certain platforms.
pbohun··on Programming with Less Than Nothing
Haha! You know, I think this is a perfect illustration between something being mathematically beautiful verses pragmatically beautiful. The beauty of one often looks ugly by the standards of the other.
pbohun··on rlsw – Raylib software OpenGL renderer in less than 5k LOC
Whoah! That's so cool!
pbohun··on rlsw – Raylib software OpenGL renderer in less than 5k LOC
What's cool about this is that computers are so fast that you could probably make a decent 2D game using only this software-rendered OpenGL 1.1 library.
pbohun··on Discord says 70k users may have had their government IDs leaked in breach
The Principle of Least Privilege is one of the foundational aspects of security. Governments should be enforcing that not requiring companies to collect very sensitive information like they are currently doing. Things like "prove your age", digital ID, and Chat Control are actively malicious when it comes to safety, security, and privacy.
pbohun··on Why the hell does Android even exist anymore?
I know right now there are some privacy-focused distros of Android, but it might be time to just have a fork that moves off in a different direction. I think the only way to have success is create a distro that is very friendly to developers. If you get enough devs creating software for the fork, you can start to get users. I imagine the fork would only be popular with enthusiasts and devs at first.
pbohun··on Show HN: I recreated Windows XP as my portfolio
This is cool! I like how you can toggle the pixel effect. A lot of great attention to detail.
pbohun··on Domain Name Price Increases August 26, 2025
Is there any fundamental reason for TLD price increases? I can't imagine it would take much infrastructure to just keep a registry of domain name entries.
pbohun··on StarDict sends X11 clipboard to remote servers
I don't understand why the whole thing isn't local. A comprehensive Chinese dictionary has less than 400k words. Even at 1k per word that's less than 400MB.

It's just poor design to make something require a network connection when it could work offline locally.

pbohun··on The fundamentals still matter
This was also the point of COBOL. I think one thing we've learned is non-specialists don't like thinking/problem solving, and there's no meeting them halfway on that. Asking some people to think is asking too much.
pbohun··on The Q Programming Language
Looking through the code a bit. This is quite impressive for such a short time working on it.
pbohun··on The Q Programming Language
This looks very interesting. I'm hoping there will be more documentation. For example, docs for the standard library/packages and explanation about the design of the language (does it use garbage collection? how does the type system work? how does the foreign function interface work? etc.).

Technically I could find all these things out by reading all the source code, but that's a lot of work just to see if the language meets my needs.

pbohun··on HTML-in-Canvas
The whole point of canvas is to get away from the awful kludge that is HTML and CSS. I'd much rather see a new simple UI library that's developed for canvas.
← PreviousPage 2 of 5Next →