Recent submissions

Comment · 1 day ago
I don't think that's good, I think that's horrible, got to hate invisible state.
Comment · 2 days ago
Comment · 5 months ago
And doesn't forbid you from using their platform for free if you sell the keys by yourself and you can also decide to publish your game to other stores...
Comment · 9 months ago
I'll be honest, I just want something that I can develop on (linux is the easiest by far) and that's not annoying (Nixos is the best at that).

I don't even use any advanced config, just bare-minimum config for the system, enough (project-specific things handled by nix).

Comment · 10 months ago
I also got the same feeling from that, in fact, I would go as far as to say that nixpkgs and nix-commands integration with git works quite well and is not an issue.

So the phrase the article says "Package managers keep falling for this. And it keeps not working out" I feel that's untrue.

The most issue I have with this really is "flakes" integration where the whole recipe folder is copied into the store (which doesn't happen with non-flakes commands), but that's a tooling problem not an intrinsic problem of using git

Comment · 10 months ago
The best part of statement expressions is that a return there returns from the function itself, not from the statement expr.

I use that with with macros to return akins to std::expected, while maintaining the code in the happy-path like with exceptions.

Comment · 10 months ago
This is also somewhat common in c++ with immediate-invoked lambdas
Comment · 10 months ago
it makes function declarations/instantiations much more grep-able.
Comment · 10 months ago
auto has a good perk, it prevents uninitialized values (Which is a source of bugs).

For example:

auto a;

will always fail to compile not matter what flags.

int a;

is valid.

Also it prevents implicit type conversions, what you get as type on auto is the type you put at the right.

That's good.

Comment · 10 months ago
This will end up with people creating their pages in top of godot engine to avoid html scrapping hahaha
Comment · 10 months ago
To be honest I don't know what to say, you can use nix in many ways, and you don't even require to know the language.

The easiest entry-point is to just use it like a package manager, you install nix (which is just a command...) and then you have available the whole set of packages which are searchable from here: https://search.nixos.org/packages

nix-shell is just to download&add programs temporary to your PATH.

I don't feel that this is harder than something like "sudo apt install -y xxxxx" but for sure more robust and portable, and doesn't require sudo.

If at some point you want to learn the language in order to create configurations or packaging software, it may require to check a lot more documentation and examples, but for this I think it's pretty straightforward and is not harder than any other package manager like aptitude, homebrew or pacman.

Comment · 10 months ago
If you really need a portable binary that uses shared libraries I would recommend building it with nix, you get all the dependencies including dynamic linker and glibc.
Comment · 10 months ago
Comment · 11 months ago
If the source is known, it is not less bad that downloading a program and running it
Comment · 11 months ago
yes just use brige networking instead of nat

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton