HNHacker News
TopNewBestAskShowJobs

TheYumasi

139 karma · joined October 19, 2017

submissionscomments
TheYumasi··on Cursor 1.0
Claude code asks you permissions for every command. It also gives you the possibility of marking commands as safe so next time it can use them without asking .
TheYumasi··on Apple announces changes to iOS, Safari, and the App Store in the European Union
They require apps to be notarised, so my guess is that this app store from another store would not be, and as such, would not execute on the iPhone.
TheYumasi··on Debugging C with Cosmopolitan Libc
The TUI is from gdb.[1] Nothing from GDB is compiled in your binary. My guess (might be wrong!) is that the ShowCrashReports() call added in your program's main function sets up some signal handlers, so that in case of segfaults it starts GDB in a separate process and attaches it to your crashing process.

[1]: https://sourceware.org/gdb/onlinedocs/gdb/TUI.html

TheYumasi··on EU Passes Law to Switch iPhone to USB-C by End of 2024
As an EU citizen, I am really happy with this decision.

I am an iPhone user, but having an iPhone is not ubiquitous here, almost all of my friends/special other, use an Android phone with USB-C. Most of their laptops, Mac or not, use or allow USB-C for charging. This as been the case for a few years now, yet, if I go somewhere for more than a full day and forget my lighting cable, my phone will become a useless paperweight while every non-iPhone user is fine in the meantime because of the wide adoption of USB-C. It is also ironic how Apple markets heavily on how you can take great RAW photos or videos but somehow you have to use lightning USB2 speeds to transfer them. Lightning is barely smaller than USB-C, and clearly my iPhone thickness will not change if it switches to USB-C.

As for the e-waste generated by "having to throw all of those lightning cables", how is it not e-waste that someone buying an iPhone will have yet another lightning cable that will only be used to charge it. If we want to really be more environmentally friendly, wouldn't it make more sense to have no cable at all with the devices we buy, force the sellers to clearly tell the consumers about it and offer the cable on the side only if needed? With that cable being usb-c, the consumer don't have to think about the cable type, for non-tech savvy people, that would be "the regular charging cable" and that's it. I would also add that all lightning cables won't suddenly go to the landfill in 2024. Many people will keep their iPhones/AirPods for a while after that date. Many would probably donate their old lightning cables to whoever needs them. In the meantime, we all already have an ever growing landfill in our homes called the cable drawer, and it is also an issue that needs to be addressed.

TheYumasi··on Ask HN: How many computers you got?
I want to keep the number low (I don't like e-waste):

Laptops:

- Macbook Pro (2021), M1, 16Go: my only personal machine. I play video games using services like Shadow or GeForce Now, I want my setup to be small.

- My work laptop, employer issued.

Servers:

- 1st gen Surface Book: currently works as a home server, used to be my student laptop, soon to be retired with...

- Core i7 3700 (something like that), 16Go DDR3: an old machine I got for free yesterday, than I will put in a small mini-ITX case to work as a full-time home server (mainly storage). It will end up at the bottom of a small shelf, and needs to be completely silent.

My servers all run NixOS.

TheYumasi··on Ask HN: How do you share your personal setup over different computers?
I use Nix + home-manager and keep my config in a git repository. Of course, that is less ideal if I need to use a machine on which I can't install Nix.
TheYumasi··on The Curse of NixOS
> Maybe that is difficult for people who haven't had an experience with pure/functional programming?

I found my understanding of the Nix language became a lot better once I started learning some Haskell. Specifically once I understood what currying was about.

My real gripe with Nix is the lack of a complete, easy to find, documentation of its "standard library". Nix Pills & a few wiki pages are far from enough.

TheYumasi··on My NixOS Desktop Flow
It’s just a matter of doing a good old `man 5 configuration.nix`.
TheYumasi··on The Linux codebase has over 3k TODO comments, many from over a decade ago
I have something similar in Emacs with magit-todos, although it's very slow on large codebases.
TheYumasi··on Vim after 15 Years
As a former Vim user I'm happy to see a post like that ! Some old problems mentionned in the post like asynchronous processes mostly, but also the lack of smart indentation with the TAB key that also takes into account the type of file you're editing really drove me out of Vim. I've since switched to Emacs (with Evil mode because modal editors rocks), and I haven't looked back since.