HNHacker News
TopNewBestAskShowJobs

wyuenho

2,022 karma · joined May 20, 2010

If you are good at something never do it for free (except for the first time).
submissionscomments
wyuenho··on The Yaml document from hell
From the article:

  Although yaml 1.2 is more than 10 years old by now, you would be mistaken to think that it is widely supported: the latest version libyaml at the time of writing (which is used among others by PyYAML) implements yaml 1.1 and parses 22:22 as 1342.
wyuenho··on The Yaml document from hell
Or if you want to go really minimalist there's also https://github.com/crdoconnor/strictyaml
wyuenho··on The Yaml document from hell
Yes, the problem is PyYAML.
wyuenho··on The Yaml document from hell
INI has no spec, and there are many variations all slightly incompatible with each other, kinda like Markdown. YAML is really the only sane configuration language that lets you denote nested structures while keeping them look nested.

Basically, all of the problem identified in the article can be dealt with 1 rule - always quote your strings. I agree with the author we should have reduced, safe and minimalist subset of yaml, which is basically YAML 1.2, released in 2009.

P.S. Please just stop using PyYAML.

wyuenho··on Raspberry Pi Camera Module 3 released
the height of unobtainable was just a couple of weeks ago, and it lasted for almost a year in which rpilocator was only showing a few shops in the world selling a few dozen pis in a different form factor you are looking for at a time.
wyuenho··on Raspberry Pi Camera Module 3 released
Someone who lives in Cambridge saying "let them eat cake" ?
wyuenho··on Cylindrical aquarium housing 1,500 exotic fish bursts in Berlin
What exactly have we learned that’s valuable from this news?
wyuenho··on Cylindrical aquarium housing 1,500 exotic fish bursts in Berlin
I don’t know about TikTok, I just know this post was submitted by someone with 50 karma originally pointing to a German radio station news site, in German. It was only changed to the Guardian later, perhaps by a mod.
wyuenho··on Cylindrical aquarium housing 1,500 exotic fish bursts in Berlin
I guarantee you car crashes has more engineering angles than this. There's not even a post-mortem here.
wyuenho··on Cylindrical aquarium housing 1,500 exotic fish bursts in Berlin
It's interesting only if there's a detailed report on the reasons. Otherwise this piece is news is just a "oh", instead of a "a-ha".
wyuenho··on World's Largest freestanding cylindrical aquarium bursts in Berlin
Off topic
wyuenho··on Cylindrical aquarium housing 1,500 exotic fish bursts in Berlin
From the guidelines:

> Off-Topic: Most stories about politics, or crime, or sports, unless they're evidence of some interesting new phenomenon. Videos of pratfalls or disasters, or cute animal pictures. If they'd cover it on TV news, it's probably off-topic.

HN really needs a European mod to maintain the quality of this board.

wyuenho··on Is America Stealing TSMC?
Not liking a video isn't an excuse to kneejerk comments.
wyuenho··on Emacs: Feature/tree-sitter merged into master
You have been able to emulate cooperative multitasking using callbacks since at least the 70s with lisp. There's always been some form of concurrency in any lisp, the problem is, the event listening/emitter pattern is pretty much not a thing in Emacs, so you can't fire a custom event and hope it will drop into the event loop and get responded to by whatever is listening, because it's not an event loop, it's a command loop. The types of events you can respond to is fixed.
wyuenho··on Is America Stealing TSMC?
Is HN doing so bad these days that people don't even bother to check the channel or listen to the first 1 min of the video before commenting? Take my downvotes.
wyuenho··on Dora: A open-source Rust DHCP Server
https://github.com/nextdhcp/nextdhcp
wyuenho··on Apple introduces end-to-end encryption for backups
You should Google how many times Apple has bent to China as recent as last month. Apple's human rights record is spotty at best.
wyuenho··on Dora: A open-source Rust DHCP Server
Depending on your use case CoreDNS may also be an option.
wyuenho··on Emacs should become a Wayland compositor
> Emacs is already a great window manager.

Right. That's why everybody uses popwin, amiright?

wyuenho··on Keyboard Latency (2017)
This has been debunked since 2014, humans apparently can detect meanings in pictures flashed in front of them in as little as 13ms.

https://www.researchgate.net/publication/259490307_Detecting...

wyuenho··on U.S. bans equipment from Huawei and ZTE, citing national security concerns
It's called the only 5th gen fighter jet Europe can buy
wyuenho··on Emacs: Feature/tree-sitter merged into master
What did YOU mean in particular?
wyuenho··on Emacs: Feature/tree-sitter merged into master
Like the way Python have threads lol. Emacs has generators too, and there are promises implemented on top of them, but they aren't very useful in the elisp ecosystem because at some point you are still going to have to poll due to a lack of a JS like event loop that users can submit tasks to.
wyuenho··on Emacs: Feature/tree-sitter merged into master
I'll be entirely satisfied with a process/event queue/loop that we can submit tasks to like Javascript's. There is already a command loop in Emacs, we just can't use it for anything other than input events and commands. Once we have an good event loop, we can build a state machine like Redux on it, then we can start rebuilding the display machinery, then we can start deleting all those hooks that constantly interfere with each other...
wyuenho··on macOS Ventura is now available
You can just start typing in Finder, prefix search will Just Work.
wyuenho··on macOS Ventura is now available
I think you've forgotten about Spaces.

I've been maximizing the windows for every app on the built-in screen since forever. More recently I've been using Rectangle when my MBP is connected to my new 27" screen. It works quite well but the layouts require a bit of nannying, I guess it's just a matter of me familiarizing myself with the keyboard shortcuts.

[1]: https://rectangleapp.com/

wyuenho··on Researchers develop thermoformable ceramics, 'a new frontier in materials'
Does that mean we can 3D print ceramics soon?
wyuenho··on Estonia’s inflation hit 25% year-on-year in August, energy prices to blame
Except that oil is nowhere near that expensive in reality, and oil companies aren't buying oil at anywhere near that price. The reason it's expensive in Europe now (for consumers) is because the EU lump oil and gas together into one price, and gas is expensive, so oil got expensive, but the oil companies haven't paid nearly that much to buy it in the first place. That's why they are having a massive windfall and the EU is going to tax them.

These are all problem can be solved by capping oil price. Oil is a buyer's market, the US and Canada are producing so much of it, if OPEC+1 reduces output, it just amounts to a suicide for them.

wyuenho··on Estonia’s inflation hit 25% year-on-year in August, energy prices to blame
And yet the EU keeps opposing an oil price cap
wyuenho··on Apple overtakes Android to pass 50% share of smartphones used in US
I attribute most of this to the simple fact that in Europe, Apple products are around 20% more expensive, because, protectionist EU trade policies.

Unsurprisingly, iPhone has a pretty damn high penetration rate in Japan where it costs about as much as the US, because there's fewer trade barrier there.

← PreviousPage 2 of 21Next →