HNHacker News
TopNewBestAskShowJobs

gpanders

995 karma · joined November 15, 2019

https://gpanders.com

Email: contact <AT> gpanders.com

submissionscomments
gpanders··on Zig's multi-sequence for loops
Thanks, I fixed it :)
gpanders··on Zig's multi-sequence for loops
>Rust also hates hidden allocations

Does it? Rust seems happy to allocate silently all the time.

    let x = String::new(“hi”);
    let y = vec![];
Do either of these allocate? As the writer or reader of this code, how do I know if either of these statements result in a heap allocation, or if the data is strictly on the stack?

Zig’s requirement of explicitly passing around an Allocator type removes any ambiguity completely.

gpanders··on Steam Deck: First Anniversary
Thankfully most games I’ve played have an option to scale UI text, which has addressed this for me. Hopefully more games add an option for this.

You can also press the STEAM + LB buttons to open a magnifier for reading small text.

gpanders··on Steam Deck: First Anniversary
>I suspect that almost all Steam Deck owners already have a PC they game on.

I don’t know if I’m in the minority or not, but I have never owned a gaming PC, and have not had a console since I was a teenager with an Xbox 360. I’m now 30, and I bought the Steam Deck precisely because of its portability.

gpanders··on Hundreds of changes made to latest editions of Roald Dahl's books
>if you cannot understand why this is being done, you are part of the problem.

Seems like a quick and condescending way to shut down any critical thinking or debate.

“Agree with me, or suffer the same fate”.

gpanders··on Ask HN: What is the weirdest or most surreal recent technology you have seen?
It's interesting to see both the advances in humanoid robotics and language models like ChatGPT. The obvious next step will be to combine these two to achieve a truly human-like android, just like in old school science fiction.

Of course, bridging the uncanny valley to make it even look passably human is another milestone entirely.

gpanders··on GitHub Sponsors will stop supporting PayPal
You could use something like https://privacy.com/. In fact, I’ve been using a Privacy credit card (connected directly to my bank account) for GitHub sponsors since I signed up.
gpanders··on Ask HN: Great text based games to play?
The IRE games are very well done. I too have spent many, many hours in Achaea, and more recently (a year or two ago) in Starmourn.

You can get by without paying for credits, though it does involve more in-game grinding. For me, what made me lose my interest in these games is the role playing requirement. I understand that for some people that is part of the fun, but I could never really get into it.

gpanders··on Google removed my Yubikeys from a Google account 'just to be safe'
>What’s the big deal really to lose things from the past?

Losing pictures of my kids when they were young would be devastating. For some things, it’s a very big deal.

gpanders··on This is the year of the RSS reader?
>They could have an email dedicated to comments and feedback.

Some technical blogs I follow use this. They create a public mailing list that they treat as their “public inbox”. Anyone can send an email to it, and all messages are publicly viewable. No signup or account required either since it’s all just email.

I’m a fan of this solution personally.

gpanders··on This is the year of the RSS reader?
I’m a happy user of https://notifier.in/ for this purpose.
gpanders··on Git Notes
Where do you host your fossil repos (or do you not centrally host them at all)?
gpanders··on LXD containers on macOS at near-native speeds
Last I checked (which was not that long ago), Lima was stuck using 9p because QEMU for Darwin didn’t yet support virtiofs. Has this changed? Or maybe I’m just misremembering the details…

EDIT: Looks like this was indeed just added in the last couple of weeks https://github.com/lima-vm/lima/commit/c18ae239b69a47db77436...

gpanders··on Tea: A new package manager from the creator of brew
I was very excited about this until I read the comments here. I didn’t notice the NFT/blockchain stuff when I read through the README, but I agree with other commenters here that that is very off-putting. I really don’t want anything to do with Web3 or anything blockchain.

It’s a bummer too, because it looks like a more sane version of using Nix as a package manager. I’ve written about this elsewhere, but my experience using Nix as a package manager on macOS was very bad. I understand the value proposition of isolated development environments, but the execution with Nix left a lot to be desired (in my experience). Something that provides similar benefits in a nicer package would be very welcome.

gpanders··on What’s so great about functional programming anyway?
Ah yes, OS development, a domain famous for attracting stupid people.
gpanders··on Mom handcuffed, jailed for 8-year-old son walking half a mile
>Are people (and specifically cops) in US really that quick to judge? Or do these cases make the news exactly because of how outrageous and rare they are?

(With the obvious caveat that I do not claim to represent the entire American population) I think it is the latter. This kind of thing is newsworthy precisely because it gets people riled up (as it should). It is pretty shocking to me as someone who has lived in the US my entire life. As other commenters have said, I also walked to school alone as a kid with no issues.

gpanders··on Podman Desktop: A Free OSS Alternative to Docker Desktop
This is exciting news! Is there an issue or something similar I can subscribe to to track progress?
gpanders··on Bomba (Cryptography)
I’m currently reading the biography of Alan Turing by Andrew Hodges and just so happen to currently be in the chapters discussing the history and operation of the Bombes. Funny to see this pop up now!
gpanders··on Nord – An Arctic, north-bluish color palette
I like Nord and I've been using it for a while, but I agree with the other comments about the low contrast which I also don't particularly like. But the thing is, I hate configuring color schemes, I find it tremendously tedious, and one thing that is nice about Nord is that it has such wide support, most applications come with a builtin Nord theme so I can just set it and move on.

Does anyone have recommendations for a higher contrast (preferably simple/few colors) theme that also has broad support?

gpanders··on Ask HN: Is it still possible to live in a terminal?
>In terms of turning things off, if you turn them off, then what’s the point of having the language server?

Code navigation and completion, for one.

But there are plenty of knobs to turn that provide a spectrum between “show nothing” and “show everything”. I also find the inline diagnostic text noisy, so I configure it to only show on the line where my cursor is. You can also use the “open_float” function to open the diagnostics on your current line in a floating window. That way you can leave them off my and simply view them on-demand.

gpanders··on Ask HN: Is it still possible to live in a terminal?
Can you explain what you mean by “visually noisy”? If you’re referring to the diagnostics messages (virtual text and signs and such), that is easily configurable to disable (I would know, I wrote it)
gpanders··on Thunderbird 102
Unfortunately yes. Some organizations (like mine) use Office365 and disable IMAP/SMTP, so the only way to interface to the mail server is via Exchange :(
gpanders··on Apple Passkey
Passwords in iCloud Keychain are already E2EE, it seems reasonable the private passkeys would be too.
gpanders··on Ask HN: Non-violent video games with great stories?
Seconded, Subnautica was an amazing experience. One of my all time favorites, though I'm not sure if it's a good fit to play with your kids (or even with other people in general). The best part of the game is the atmosphere it creates, which means the best way to enjoy it is to really immerse yourself in the experience.
gpanders··on De-AMP: Cutting out Google and enhancing privacy
Where do they sell ads outside of the App Store?
gpanders··on Neovim 0.7 Released
Yes it does.
gpanders··on Neovim 0.7 Released
I did a brief write up on some of the biggest new features here: https://gpanders.com/blog/whats-new-in-neovim-0-7/
gpanders··on Mach v0.1: Cross-platform Zig graphics
Admittedly I don’t have as much experience cross compiling with Rust, but my experience has not been so smooth. You need to install each target toolchain manually with rustup, and then some tool chains require different versions of Rust (e.g. the ESP32 RISC-V toolchain requires nightly). Another time I tried cross compiling on x86 Linux targeting Linux on ARM64, and I kept getting linking errors (or it couldn’t find an acceptable linker).

I certainly agree that Rust is much better than C/C++, but it’s not quite at Zig level, at least in my (limited) experience.

gpanders··on Mach v0.1: Cross-platform Zig graphics
Do you have experience cross compiling? If so, you’re likely familiar with the headache: getting the right tool chains, sysroots, compiler flags, libraries, etc. There are entire businesses and open source tools whose raison d'être is providing these tool chains and making the process simpler.

With Zig, that all goes away. It’s as simple as saying `zig build -Dtarget=aarch64-linux-gnu` or `zig build -Dtarget=riscv32-freestanding-none` and it just works. It’s pretty incredible.

Zig has set the bar for how cross compilation should be done and all other languages should be measured against it. Rust is close but is still a headache. The only other language that compares at the moment (IMO) is Go.

gpanders··on Mach v0.1: Cross-platform Zig graphics
What do you mean? It can link against OpenSSL just like any other library. I don’t know if OpenSSL supports static builds, but if it does you can link it statically as well.
← PreviousPage 2 of 11Next →