HNHacker News
TopNewBestAskShowJobs

sirn

3,953 karma · joined October 25, 2009

Contact: sirn@ogsite.net

Software developer living in Tokyo, Japan

Work: Oozou (BKK), Omise (BKK→TYO), Varnish Software (TYO), EnergyRoute Japan (TYO)

I run a small consulting business in Japan; feel free to email.

submissionscomments
sirn··on Slack is retiring its status account on X
In Japan, it’s not uncommon for companies or governing bodies to announce something _only_ on Twitter.

This can be anything from websites announcing maintenance to a public safety announcement. For example, the district I live has a disaster announcement account on Twitter.

At least for people here, using Twitter only for status updates while not logged in is a very common thing.

sirn··on AMD Introduces New AMD Ryzen Threadripper 7000/Pro 7000 WX
> However this method does not work for server and workstation CPUs, because these have already the highest TDP that is possible with the current cooling solutions, so in servers and workstations the bad Intel MT performance is much more visible

I disagree on this point. I would say this problem is much more critical on Intel's desktop platform than their workstation platform. Xeon Sapphire Rapids is actually very easy to cool, even on air, thanks to the CPU having a much larger surface to dissipate heat than their desktop equivalent.

I have Xeon w9-3495X, and while power consumption is one of its weakest points, it stays under 60°C with water cooling while I pump 500W into it (25°C ambient), of which I see between +30% to +50% gain in multithreaded performance over the default power limit. (Golden Cove needs around ~10W per core, so the default 350W/56c = 6.25W is way below its performance curve.) Noctua has also shown that they're able to achieve ~700W on U12S DX-4677[1] on this platform.

[1]: https://www.youtube.com/watch?v=dCACHpLzapc

sirn··on A basic guide to using Asian names
They're the actual nicknames. Back some thirty years ago, people were still named using Thai words like "Daeng" (Red), "Kai" (Chicken), "Noi" (Small), "Nam" (Water), while a Thai-Chinese family may have their elder member in the family name their children with a Chinese word. (e.g., mine was named by my great-grandmother, and if I were to spell my nickname properly in Chinese it would likely be "Shen", though I've never cared enough to confirm)

However, the influence of western media in recent years caused this to slowly shift into English words in the past twenty or so years. So nowadays it's not uncommon to find someone named "Night", "Nick", "Note", "Buddy", etc. There was also a brief period where people named their kids based on a Korean star they like (though not as popular as English-sounding names).

(And yes, getting referred to by first name on a website is always very weird to me :)

sirn··on Pad kaphrao contest seeks true taste of Thai dish
I would also suggest OTR's video on the topic: https://www.youtube.com/watch?v=1OupK3x8ujw which also covers the importance of Holy Basil, talks about other variants of Pad Krapao that are little known outside of Thailand, and also a little bit of the history behind the dish.
sirn··on DirectX 12 Support on macOS
The actual interesting bit is at the end of the patch, in `static void init_non_native_support` where they dlopen a proprietary MetalD3D dylib.
sirn··on Ordering Photocopies from Japan's National Library
Article 31 of Japan's copyright law (著作権法第31条) gives National Diet Library (and a few approved public libraries) a special exception which allows them to make a photocopy of a copyrighted material as long as it's "for researching purpose", "part of a work" (i.e., less than 50% of a book or an article), and "one copy per person".[1]

IANAL, but I think it could be that a digital copy is no longer "one copy per person" as you can make unlimited copies from it, as well as sending it digitally is already making two copies between sender and receiver.

[1]: https://www.cric.or.jp/english/clj/cl2.html (Article 31)^1

^1: Though this translation is slightly outdated, there were some revisions to copyright law in 2021, but this part is mostly unaffected.

sirn··on Microsoft Unveils Its Own Version of Nvidia's RTX Super Resolution
I think the Microsoft's one may have been based on Clarity Boost[1] rather than Chromium's VpSuperResolution since there's still no AMD implementation in Chromium[0], but Edge VSR does support AMD cards.

A fun anecdote here is that VpSuperResolution was actually added to Chromium by Intel back in April 2022[2], citing Clarity Boost as an inspiration. It works with iGPU, but it was never enabled by default. Nvidia's patch came much later in Sep 2022[3] but enabled by default with a driver-level trigger (rather than enable behind a feature flag like Intel).

[0]: https://chromium.googlesource.com/chromium/src/+/master/ui/g...

[1]: https://www.microsoft.com/en-gb/edge/features/clarity-boost?...

[2]: https://bugs.chromium.org/p/chromium/issues/detail?id=131838...

[3]: https://bugs.chromium.org/p/chromium/issues/detail?id=136831...

sirn··on A mistake that killed Japan’s software industry?
Anecdotal: in one of the Japanese companies I've worked at, we had to do a Japanese-speaking-only follow-up after every meeting with the global team, as the majority of the team were relying on a machine translator. Every so often this ended up requiring a follow-up to a follow-up where the local team has questions but unable to ask due to a language barrier. It slowed down the progress considerably.

Another thing I've found particular interesting is that this language barrier also seems to cause some technique or design pattern to be extremely popular among the local developers out of proportion to the English-speaking world. For instance, Clean Architecture is extremely popular in certain industry (e.g., SI). I believe, it was due to the book having a decent Japanese translation, the lack of Japanese-language commentary against it, and the tendency to follow manuals due to social norms.

sirn··on Apple introduces end-to-end encryption for backups
Photos are synced in the background via location change events (and thus requiring Location permission). It can be a bit unreliable from time to time, but generally works. Contacts and calendars are synced in the background via iOS' CalDav/CardDav integration.

Nextcloud app also exposed itself as file provider in Files.app, so it's possible to use it in place of iCloud Drive for apps that use the appropriate API. (Unfortunately most apps use CloudKit, which sync over iCloud.)

sirn··on Factorio runs on Apple Silicon
Not sure about the performance of NH-D14 and 13700K, but my NH-D15 (upgraded from NH-U12A) is running OK for 13700k with Intel's PL1/PL2 settings, hovering around 60~70c during full load at 25c ambient temperature. Unlimited PL2 is a different story and can go up to 100c during full load. My previous NH-U12A build ran at about 2-4c higher temperature under load.

I've been experimenting with different settings and found that unlimited PL2 and undervolting the CPU by -150mV give the best temperature to performance at ~80c during full load. It has been running stable for few days, and I'm pretty happy with the result so far.

sirn··on Factorio runs on Apple Silicon
FWIW, addition of MetalFX upscaling (comparable to DLSS/FSR 2) in Ventura has been a nice surprise and one of the biggest development on Mac gaming in recent memory.

Digital Foundry did some review of MetalFX in Resident Evil Village[1] and was pretty positive about it. (From DF's findings, MetalFX has some problems with transparent texture, but details preservation/restoration are pretty good.)

[1]: https://www.youtube.com/watch?v=6iXx9lfe62w

sirn··on Factorio runs on Apple Silicon
That doesn't sound right. Codeweavers has been shipping fairly recent version of DXVK alongside with MoltenVK since CrossOver 20. On community side there's Gcenx/DXVK-macOS[1] that patched DXVK to work with some of Apple GPU quirks in some games and closely track upstream.

[1]: https://github.com/Gcenx/DXVK-macOS

sirn··on KDE beats macOS
I personally do not like using web apps and usually try to use desktop version whenever possible. Of these examples:

- Obsidian for note taking. Configured to sync with Obsidian Sync.

- OmniFocus as my personal GTD. Configured to sync with Omni Sync Server, and also sync to my phone (though on Linux I use OmniFocus for Web)

- Clockify (Desktop) for time tracking. Required for work.

sirn··on KDE beats macOS
Personally, I found the opposite to be true. Given more and more applications require constantly polling backend server (not only social apps, e.g. a TODO list, note-taking application, a time tracker, etc.) I much more prefer this behavior being the default.

That said, I still like KDE Plasma more than macOS as a desktop. But this and the proxy icons are two things that I missed the most.

sirn··on KDE beats macOS
It was very frustrating when they hide the proxy icon behind an obscure modifier key trigger and a delay in Monterey. Thankfully enough complains were made, and they've since added a toggle in Monterey 12.1 to always show proxy icon (Accessibility -> Display -> [ ] Show window title icons).
sirn··on KDE beats macOS
I'm the opposite. Just the other day I was trying to find if I could keep an application running without any window on KDE Plasma :-)

I want to keep some applications running so it continue to receive its own thing in the background, but I do not want to accidentally open the window during Alt-Tab, e.g. my email client, my chat application. (On macOS it's still showing up on Cmd+Tab, but selecting the application doesn't activate the window).

I think this design decision still makes sense in 2022. On Windows and Linux, applications can have no window open by installing a background service (ugh) or hide to status bar, but application need to explicitly implement the behavior. On macOS, this is the expected behavior.

sirn··on KDE beats macOS
>I have no idea what you mean, but you can drag lots of stuff in windows to different places and stuff happens.

On macOS, there's a concept called "Proxy Icons". These are little icons that are shown in a title bar of a document-based applications (e.g. "[ICON] My File.txt"). You can interact with these icons as if they are an actual file on the disk.

For example, you have "My File.txt" open in TextEdit, and you want to reference them in Terminal, you can just drag the icon into Terminal.app window and it will resolve the full path. Or you're editing the file, but realized you need to make a copy of that file before making changes, you can alt-drag on the icon and copy it elsewhere. Or you're working on a file and want to navigate to the containing directory, you can right click on the proxy icon and it will show the full hierarchy for navigation, etc.

This is something I missed quite a lot when using other OSes.

sirn··on ZFSBootMenu – A boot loader to manage ZFS boot environments for Linux
Thank you for such a great tool. I've recently migrated from one server to another server in different contenient via `zfs send | zfs recv` (using hrmpf), and `generate-zbm` inside the chroot was all I need to get it working again.
sirn··on ZFSBootMenu – A boot loader to manage ZFS boot environments for Linux
My understanding is that during the boot process using ZBM's initramfs:

1. ZBM prompt for encryption passphrase, decrypts the filesystem, locate kernel/initramfs on ZFS datasets, then display boot menu

2. ZBM kexec into the kernel on the filesystem using the chosen kernel/initramfs while appending root=zfs:... to the kernel parameter

3. The target kernel decrypts the filesystem[^] and mounts the root ZFS again and boot into final system

[^]: In this case, ZBM requires the encryption key to be placed in the target initramfs (not ZBM's) for the target kernel to load (dataset need to be decrypted again since kernel state is disregarded). This initramfs is located inside the encrypted filesystem itself, only accessible after initial decryption/mount by ZBM in step 1, so the only way to obtain this key is to already have access to encrypted filesystem in the first place.

sirn··on ZFSBootMenu – A boot loader to manage ZFS boot environments for Linux
The problem is, ZFS support on GRUB2 hasn't been great, partly due to CDDL/GPL licensing incompatibility requiring lots of ZFS internals to be re-implemented in GRUB. This resulted in issues such as grub-probe unable to detect ZFS pools due to unsupported ZFS features[1] (including native ZFS encryption, which is a deal-breaker for many)

ZBM took another approach. It provides a small initramfs image that are built on the host machine via standard method such as dracut or mkinitcpio. This image provides an interface for decrypting/mounting ZFS filesystems using the very same ZFS kernel module and tools installed on the host. After the filesystem is mounted, it then kexec'd into the host kernel.

This also means ZBM doesn't completely replaced GRUB2 or syslinux. Instead, it rely on those intermediate bootloader (including EFI bootloader such as rEFId/gummiboot) to load ZBM itself. (Though ZBM itself only has built-in hooks for syslinux and gummiboot).

Being an initramfs give an extra benefit of providing interesting mechanism during boot e.g. providing a SSH server for entering an encryption key on a headless server[2], ability to discover, managing/booting from ZFS snapshots, etc.

(No affiliate; just a very happy user.)

[1]: https://savannah.gnu.org/bugs/?58555

[2]: https://github.com/zbm-dev/zfsbootmenu/wiki/Remote-Access-to...

sirn··on Blurhash: A compact representation of a placeholder for an image
Mastodon, for example, use it to defer loading of images tagged with Content Warning until the user clicked reveal. It provides a useful context for user to decide whether to view the image, while not require browsers/clients to load the image beforehand.
sirn··on macOS 13 Ventura review
My Cintiq Pro 16 stopped working with 6.4.0 driver on Ventura (no pen/touch input). Wacom Center could detect the display, but it looks like the driver itself just crashes. Rebooting do fix it, but it hasn't been very stable. I haven't tried reinstalling the driver yet, but I would say avoid for now if Wacom driver is a requirement.
sirn··on Win32 Is the Only Stable ABI on Linux?
I believe OP is referring to the fact Factorio has some optimization on Linux such as using fork() to autosave (which is copy-on-write unlike its Windows counterpart), which result in zero-stuttering during auto-save for large-SPM bases.
sirn··on Ploopy open source thumb trackball
I have had MX Ergo failing due to switches wearing out after ~3 years of use and several hundred hours of Factorio. Both MX Ergo and M570 share the same D2FC-F-7N switches, so durability should be similar. I've replaced the stock D2FC-F-7N with D2F-01F for over a year and half and it has been working great since.
sirn··on LaBanquePostale payments request bank password
IIRC, this depends on the card brand. Attempting to do 3-D Secure with non-enrolled JCB/Visa cards should result in a liability shift, AMEX/Diners only records the attempt, and MasterCard does not offload liability in such cases. (Though this may also vary by country.)
sirn··on LaBanquePostale payments request bank password
I meant that ideally, they should be using the same domain as the bank itself. However, it's not uncommon for banks to use the ACS domain their vendor provides, which is the case here. The ACS vendor still requires passing PCI-3DS and PCI-DSS in either case, though.
sirn··on LaBanquePostale payments request bank password
Judging from your screenshot, this is part of the 3-D Secure[1] process. WLP-ACS is not a payment processor but rather an Access Control Server (ACS) that your bank uses. Ideally, this page should reside under the bank's domain name, and they should be using OTP of some sort, but (unfortunately) it's not uncommon to see banks do this.

The flow goes: Merchant -> Merchant Plug-In (MPI) -> Directory Server -> Access Control Server (ACS) -> Banks. The first two are under the merchant's responsibility domain (or payment processors). The Directory Server is under the payment network's responsibility domain. The last two are under the bank's responsibility domain. Thus, a "3-Domains Secure" name.

Despite the word "secure" in its name, the primary purpose of 3-D Secure is to protect the merchant. Transactions authenticated with 3-D Secure will be "liability shifted," making merchants less liable for chargebacks (e.g., banks are more likely to reject your chargeback claims).

[1]: https://en.wikipedia.org/wiki/3-D_Secure

sirn··on Blender 3.1
I've been playing around with it on M1 Max since the Alpha build with great results.

Here's some numbers from my latest benchmark run:

    "Junk Shop" demo using Cycles
    M1 Max (10 cores CPU / 32 cores GPU)

    Blender 3.0 (CPU) / 1:14.64 minutes
    Blender 3.1 (CPU) / 1:10.86 minutes (1.05x)
    Blender 3.1 (Metal GPU) / 0:44.16 minutes (1.68x)
    Blender 3.1 (Metal GPU+CPU) / 0:27.90 minutes (2.67x)
For a reference, RTX 3090 (OptiX) was 0:18.22
sirn··on Seconds before a 6.2 earthquake rattled California, phones got a warning
This[1] is how it sounds in Japan if anyone is interested.

The author of the sound (Kokubo Takashi) interviewed in the past[2] that he designed the sound to make people alerted, but it must not make people feel uneasy or causing panic. The sound must also not resemble any other alert sound as people may ignore it. The result is what we're using in Japan today, repeating three times to ensure it draws enough attention.

[1]: https://www.youtube.com/watch?v=0DGAuxO_YWE

[2]: https://news.livedoor.com/article/detail/6419314/

sirn··on Show HN: We open sourced our new Mac developer setup script
MacPorts has been doing binary packages since MacPorts 2.0 (2011). It will compile from source when binary package is unavailable (e.g., non-default variant or newer OS release).
← PreviousPage 3 of 29Next →