News for hackers. Stuff that matters.

hgl

Re:Andrej Karpathy: Software in the era of AI [video] on Thursday June 19, 2025 @12:46AM (#44315520)
It’s fascinating to think about what true GUI for LLM could be like.

It immediately makes me think a LLM that can generate a customized GUI for the topic at hand where you can interact with in a non-linear way.

Re:I like to install NixOS (declaratively) on Sunday June 01, 2025 @05:26AM (#44149659)
Thanks for bringing the disko command to my attention.

However, since we are talking about installing NixOS declaratively, and it's done through nixos-anywhere, which will install it[0] to the ram unfortunately.

[0]: https://github.com/nix-community/nixos-anywhere/blob/abb0d72...

Re:I like to install NixOS (declaratively) on Sunday June 01, 2025 @04:55AM (#44149552)
That's fair, having a remote shell environment that you feel comfortable to poke around is pretty great.

For git, you commented "for checking out github.com/stapelberg/configfiles". I wonder if you sometimes install NixOS locally from the installer? If so, I can understand having those packages around can be very useful.

Re:I like to install NixOS (declaratively) on Sunday June 01, 2025 @04:39AM (#44149478)
Not to criticize the article, which is very well written, just some extra info:

It seems for the author, the custom installer is mainly used for accepting user SSH public key, terminfo, and maybe also locale.

Almost none of the packages the author listed get used, including zsh. Since NixOS is installed via nixos-anywhere, it runs a bash script to do everything, and all the script's dependencies will be pulled by nix.

For people who don't want to build a custom installer, or their cloud environment doesn't allow one, you can simply host a script somewhere and download and run it on the remote machine to add your SSH public key and other customizations, including partitioning the disk.

Note that the author used disko to partition the disk declaratively. Disko won't work for a machine with very limited ram, because disko runs in the installer, and needs to install tools to the ram to do the partition.

I wrote a nix configuration library[1] that also does NixOS installation (uses nixes-anywhere under the hood), where you can choose between using disko, a default script[2] that handles 90% of the use cases (using only the default tools available on a vanilla NixOS installer, so nothing gets installed to the ram), or your own script.

[1] https://github.com/hgl/nixverse

[2] https://github.com/hgl/nixverse/blob/main/load/partitionScri...

Re:Ask HN: Is Reddit now a hostile place to new users? on Friday May 09, 2025 @02:26AM (#43934300)
Do you happen to have links to such discussions and analyses?
Re:Ask HN: Is Reddit now a hostile place to new users? on Friday May 09, 2025 @02:01AM (#43934183)
It seems Reddit also punishes ban avoiding. If they find a way to associate my banned accounts with a preprovisioned account, that account can also get banned?

I don't know how they do it, but I have tried using a completely new IP and private browsing, getting a new account, and posting in r/CatAdvice that r/NewToReddit says is newcomer friendly, but still got shadow banned.

Ask HN: Is Reddit now a hostile place to new users?

I recently build an open source nix project and I want to share it with people in r/NixOS.I have an account I made in 2023, but I don't really use it and I don't really like the user name I previously picked, so I made a new account and posted the project to r/NixOS, but my post was immediately removed and my account shadow banned. I created a bunch more accounts and they were all shadow banned...

( Read More... | 4 comments | 3 points | on HN )

Show HN: ACME Hugger – Make Nginx have native ACME capabilities

https://github.com/hgl/acmehugger

Hi, this is Glen. I find setting up Nginx with an ACME tool very involved and painful. Inspired by Caddy's automatic HTTPS, I created something similar for Nginx. It mainly addresses the followings:1. Nginx cannot have HTTPS configuration before the certificates are obtained. So you need to edit the configuration at least once, and also manually reload it after that.2. Nginx and the ACME tool...

( Read More... | no comments | on HN )
Re:Proof You Can Do Hard Things on Tuesday July 11, 2023 @10:13PM (#36689686)
> ... teenager asks why they need to learn calculus

> But if we avoid hard things

I don't see how you can justify the former by arguing the latter. These two are orthogonal. If I were that teenager, I think what I really would want to ask is that why it has to be calculus instead of some other things that is also hard but with obvious real world application like writing a small 3D game engine.

And my answer to that question is you probably shouldn't if your were in an ideal education system. You would be taught what interesting interactions you could have with the physical world, and be induced to discover calculus or some other math tools that helps you understand how the interactions really work and demonstrates you really need such tools. You're more likely to grasp them when you're driven by curiosity.

I wonder if Google is Xerox of our era, developing promising technologies only to be made practical and commercialized by other entities? Transformer is one example. Not sure if recent advancement in quantum computing is another.
Re:Apple Vision Pro: Apple’s first spatial computer on Monday June 05, 2023 @03:55PM (#36202608)
This seems to be another iPhone moment, but I wonder what’s its killer feature? iPhone had the killer feature of phone calls, so everyone has a reason to buy one, I can’t come up with any for AR.

Don’t get me wrong, I’m actually incredibly excited about AR, I just can’t imagine how it becomes mainstream. It can of course be mainstream if it’s just like glasses and has all day battery, but it still seems pretty far away.

Re:Defining a new HTTP method: HTTP Search (2021) on Saturday May 27, 2023 @11:49AM (#36095686)
Many people seem to be unenthusiastic about it because the limitation on query strings are usually large enough.

I personally like this addition, because it no longer requires all queries be shoehorned into query strings. You can use any syntax you like, be it SQL or GraphQL etc.

Ask HN: How to monitor the security of a personal VPS?

I have a personal VPS for my blog and side projects. Recently I noticed something fishy is going on on my server: some bins are gone, ssh last login IPs belongs to a docker container even if it’s me, etc. I currently have no way to confirm if my server is compromised, and if it’s, how it’s compromised. The only security measure I have is disallowing ssh login via password.I wonder if there are...

( Read More... | 2 comments | 13 points | on HN )
Re:What is the Fourth Dimension? (1884) on Saturday May 29, 2021 @10:32PM (#27330130)
This is akin to 2D beings saying time is the third dimension and being satisfied with the conclusion and happily living in their 2D world.
Re:Ask HN: Any books/resources on logging and monitoring? on Tuesday April 28, 2020 @01:46AM (#23003815)
This seems like a pretty comprehensive book. Will check out. Thanks.
Re:Ask HN: Any books/resources on logging and monitoring? on Monday April 27, 2020 @11:58PM (#23003211)
Thanks, but as mentioned in the post, without a good understanding it's really difficult to choose tools.

I'm looking for materials that put these tools into context & perspective so we can make a more informed judgement call.

Ask HN: Any books/resources on logging and monitoring?

I’ve been running a few distributed web services, but except for a few rudimentary nginx access logs, I have no idea how they’re functioning.I have the following goals and questions regarding implementing a logging & monitoring system to get better insights of them:- What are the best practices to instrument source code to collect general logs and exceptions? - How to determine if the...

( Read More... | 4 comments | 3 points | on HN )
Re:Rome: An experimental JavaScript toolchain on Thursday February 27, 2020 @11:01PM (#22440427)
Is it a good opportunity to make it work in deno since everything is self-contained?
> Even if someone does copy you, it grows the market, at least for startups.

Thanks for showing me a totalizing view. This is another thing I should keep in mind.

> No. If it were easy, lots of people have already done it earlier. I've never seen a pure copycat do well. > Unless yours is a trillion dollar industry, it probably won't be tackled by someone competent.

When I saw the first the argument, I was gonna say Apple is one, and it beat Xerox spectacularly (I'd hazard it was a pure copycat, the whole selling point of Mac was the GUI), but the second told me I wouldn't have such a mighty competitor since I certainly don't have an original idea like that and is definitely not in the trillion dollar industry. But I think a competitor as at much lower level of competence can still make me nervous.

Let's do a thought experiment. Let's say I anticipate IPv6 support will be a highly requested feature, yet I don't really understand it well to implement related features. Should I make myself well-versed in IPv6 before release a MVP (could take a long time)? Or release it first but then spending a lot of time learning it and make users wait, giving competitors opportunities to implement it first (I think many many developers/teams are well-versed in IPv6).

Making users wait is itself another concern I mentioned in the earlier reply.

> Going from 50% chance of making something useless to 25% - by seeing how users react to your product - is worth increasing the chances of a copycat from, say, 1% to 2%

This is a very good argument for not worrying about copycats during MVP. I'll keep that in mind.

But what about users? You talk with users, and tweak the product accordingly, they like it, and then they want a new feature, and it's also on the feature list, but very difficult to implement. What do you do? Just make them wait as long as it needs or should I make sure that before releasing a MVP, I at least have the technical capacity to implement all the features that are challenging (at the cost of delaying shipping, probably significantly)?

I forgot to mention my averse to making users wait is also part of what worries me. I wonder if such concern is warranted?

Ask HN: Do you worry about copycats when building a project?

I'm building a project that I'm quite excited about, but at the same time, I feel worried. I worry that if I release a MVP asap, but not techinically competent enough to quickly implement more features, once it's on the market, someone or some team will copy it and outmaneuver me because they're capable of pumping out new features more quickly. From what I read, time to market is really...

( Read More... | 16 comments | 18 points | on HN )
I wonder if there exists a sci-fiction that talks about how human beings detect something disastrous happened to Sgr A* and realize that happened 26,000 years ago then try to leave the Milky Way in panic.
Re:Alpine Linux 3.7.0 Released on Friday December 01, 2017 @10:53AM (#15824542)
Glad to see updated packages. I wonder if they should be favored over those offered by official Docker images when used in Docker?

For example, what are the pros and cons between using official Docker go image vs creating a custom image from an alpine image with apk add go?

Re:Go: Ten years and climbing on Thursday September 21, 2017 @09:25PM (#15308742)
I’m trying to not rely on GOPATH too, but how do you import sub packages? Are you supposed to put them in vendor too?
Re:Golang: Don't be afraid of makefiles on Wednesday September 20, 2017 @12:25PM (#15295559)
You can work around the GOPATH issue by using Docker. If you build go within a Docker container, you can structure the folder however you like and it won't affect the host.

The only downside is that your text editor might stop offering some features when editing a go file, since the import paths might not point to the actual location.

I'm a stutter too. My condition is a bit special I think. When I'm alone, I don't stutter at all if I think out loud or just read something on the screen, every scary word turns into a piece of cake. But as soon as I realize someone can hear me (even if it's remote like video chat), I start to stutter, pretty badly. I wonder if other people are in the same camp.

I didn't stutter when I was kid until I played with a neighbor kid who did, and it frightened me that I might stutter like him whenever I need to talk. As time progresses, the frightening reinforced, and I never grew out of it. I wonder if it qualifies as classical conditioning?

I also speak other languages, and the severity is different in different languages.