HNHacker News
TopNewBestAskShowJobs

dllu

2,074 karma · joined January 13, 2012

http://daniel.lawrence.lu
submissionscomments
dllu··on A desktop made for one
I vibe coded an image viewer for myself to address a big pain point that had been annoying me for years. [1]

[1] https://daniel.lawrence.lu/blog/2025-10-22-sriv-simple-rust-...

dllu··on Porsche will contest Laguna Seca in historic colors of the Apple Computer livery
> to take part in a competition, election, etc., and try to win it

https://www.oxfordlearnersdictionaries.com/us/definition/eng...

dllu··on The smelly baby problem
Nowadays some parents went back to opting for cloth diapers. Apart from the obvious environmental aspect, there's the idea that ultra absorbent and comfy diapers disincentivize babies from signalling that they are about to poop. Apparently, babies can communicate when they need to go even quite early on, in what's called "elimination communication". This also makes them a lot easier to potty train later on.

[1] https://en.wikipedia.org/wiki/Elimination_communication

dllu··on Show HN: I built a frontpage for personal blogs
I vibe coded RSS feed for my static site generator a few months ago: https://github.com/dllu/dllup-rs/blob/main/src/main.rs#L850

and was pleasantly surprised to see my blog was already on this website!

dllu··on enclose.horse
That reminds me of Paquerette Down the Bunburrows [1] which is a very fun pathfinding game where the bunnies will pathfind to try to run away from you. It's not exactly what you described, but it is very fun and surprisingly deep and challenging.

[1] https://store.steampowered.com/app/1628610/Paquerette_Down_t...

dllu··on Why does a least squares fit appear to have a bias when applied to simple data?
Yeah, you can generally "whiten" the problem by scaling it in each axis until the variance is the same in each dimension. What you describe is if x and y have a covariance matrix of like

    [ σ², 0;
      0,  (nσ)² ]
but whitening also works in general for any arbitrary covariance matrix too.

[1] https://en.wikipedia.org/wiki/Whitening_transformation

dllu··on Why does a least squares fit appear to have a bias when applied to simple data?
You can think of it as: linear regression models only noise in y and not x, whereas ellipse/eigenvector of the PCA models noise in both x and y.
dllu··on Line scan camera image processing
Ah yeah, I recently changed the url scheme for my blog posts, from

    https://daniel.lawrence.lu/blog/y2025m09d21
to

    https://daniel.lawrence.lu/blog/2025-09-21-line-scan-camera-image-processing/
so maybe that's why OP didn't realize that it had already been posted recently. With the older scheme, not only is SEO bad, but it was really hard to remember which date corresponds to which blog post, and people can brute force search for my hidden (unpublished) blog posts easily.
dllu··on Line scan camera image processing
The gain is fixed. I think the column variation arises from unstable oscillator frequency and maybe some electrical bug/crosstalk between pixels. Not sure exactly.
dllu··on Show HN: Ez FFmpeg – Video editing in plain English
When converting video to gif, I always use palettegen, e.g.

    ffmpeg -i input.mp4 -filter_complex "fps=15,scale=640:-2:flags=lanczos,split[a][b];[a]palettegen=reserve_transparent=off[p];[b][p]paletteuse=dither=sierra2_4a" -loop 0 output.gif
See also: this blog post from 10 years ago [1]

[1] https://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html

dllu··on Asahi Linux with Sway on the MacBook Air M2 (2024)
Yes, the M4 is still outperforming the desktop 9950X in single-threaded performance on several benchmarks like Geekbench and Cinebench 2024 [1]. Compared to the 9955HX, which is the same physical chip as the 9950X but lower clocked for mobile, the difference is slightly larger. But the 16 core 9950X is obviously much better than the base M4 (and even the 16 core M4 Max, which has only 12 P cores and 4 E cores) at multithreaded applications.

However, the M2 in the blog post is from 2022 and isn't quite as blazingly fast in single thread performance.

[1] https://nanoreview.net/en/cpu-compare/apple-m4-8-cores-vs-am...

dllu··on Who Watches the Waymos? I do [video]
Thanks, I posted it 4 months ago already: https://news.ycombinator.com/item?id=44996938
dllu··on Asahi Linux with Sway on the MacBook Air M2 (2024)
Old Thinkpads are great! I used to have a Lenovo Thinkpad X1 Carbon Gen 6 with Intel Core i7 8640U, 16 GB of RAM, and 1 TB SSD. I installed Arch Linux on it with Sway.
dllu··on Asahi Linux with Sway on the MacBook Air M2 (2024)
Agreed. On the computer hardware side:

* x86 chips can surpass the M series cpus in multithreaded performance, but are still lagging in singlethreaded performance and power efficiency

* Qualcomm kinda fumbled the Snapdragon X Elite launch with nonexistent Linux support and shoddy Windows stability, but here's to hoping that they "turn over a new leaf" with the X2.

Actually, some Snapdragon X Elite laptops do run Linux now, but performance is not great as there were some weird regressions and anyway newer chips have caught up [1].

On the build quality side, basically all the PCs are still lagging behind Apple, e.g. yesterday's rant post about the Framework laptop [2] touched on a lot of important points. Of course, there are the Thinkpads, which are still built decently but are quite expensive. Some of the Chinese laptops like the Honor MagicBooks could be attractive and some reddit threads confirm getting Linux working on them, but they are hard to get in the US. That said, at least many non-Apple laptops have decent trackpads and really nice screens nowadays.

[1] https://www.phoronix.com/review/snapdragon-x-elite-linux-eoy...

[2] https://news.ycombinator.com/item?id=46375174

dllu··on Asahi Linux with Sway on the MacBook Air M2 (2024)
Marcan (Hector Martin) resigned from Asahi Linux early this year [0].

Asahi Lina, who also did tons of work on the Asahi Linux GPU development, also quit as she doesn't feel safe doing Linux GPU work anymore [1].

[0] https://marcan.st/2025/02/resigning-as-asahi-linux-project-l...

[1] https://asahilina.net/luna-abuse/

dllu··on Asahi Linux with Sway on the MacBook Air M2 (2024)
Apple does tons of optimizations for every component to improve battery life. Asahi Linux, which is reverse engineered, doesn't have the resources to figure out each of those tricks, especially for undocumented proprietary hardware, so it's a "death by a thousand cuts" as each of the various components is always drawing a couple of milliwatts more than on macOS.
dllu··on Who Watches the Waymos? I do [video]
It was done with a line scan camera. More on the technique here: https://daniel.lawrence.lu/blog/2025-09-21-line-scan-camera-...
dllu··on Who Watches the Waymos? I do [video]
These were parked on Hudson Ave, which is a public street, and not inside the fenced area of the depot. So I just walked up to them.
dllu··on Who Watches the Waymos? I do [video]
Very neat. I recently went to the Waymo depot in Bayshore (Toland St) and snapped a couple of pictures of the new Zeekrs for Wikipedia.

[1] https://commons.wikimedia.org/wiki/File:Waymo_Zeekr_Vehicle_...

[2] https://commons.wikimedia.org/wiki/File:Waymo_Zeekr_Vehicle_...

dllu··on Fabrice Bellard: Biography (2009) [pdf]
The fact that so many people use FFmpeg and QEMU suggest that he is quite good at documenting, collaborating, and at least making his code remarkably clean and easy to follow. This already puts him way ahead of the average silicon valley senior software engineer that I've worked with. However, he does value independence so I don't think he would have been happy working at a faang-type company for long.
dllu··on We pwned X, Vercel, Cursor, and Discord through a supply-chain attack
The fact that SVG files can contain scripts was a bit of a mistake. On one hand, the animations and entire interactive demos and even games in a single SVG are cool. But on the other hand, it opens up a serious can of worms of security vulnerabilities. As a result, SVG files are often banned from various image upload tools, they do not unfurl previews, and so on. If you upload an SVG to discord, it just shows the raw code; and don't even think about sharing an SVG image via Facebook Messenger, Wechat, Google Hangouts, or whatever. In 2025, raster formats remain way more accessible and easily shared than SVGs.

This is very sad because SVGs often have way smaller file size, and obviously look much better at various scales. If only there was a widely used vector format that does not have any script support and can be easily shared.

dllu··on Rivian Unveils Custom Silicon, R2 Lidar Roadmap, and Universal Hands Free
Not banned. In addition to the Chinese lidars I mentioned, the Valeo Scala on Audi cars is 905 nm, and then there are also Ouster (865 nm), Innoviz (905 nm), Livox (905 nm) etc. The large spinning lidar on top of the Waymo Jaguar I-Pace is also purportedly 905 nm, although in the past they also had a swivelling 1550 nm lidar in the dome of the Chrysler Pacifica cars (situated just underneath a smaller spinning 905 nm one).

The eye safety threshold for 850/905 nm is a lot lower than 1550 nm, so they output way less power, but the much better sensitivity of silicon sensors makes up for it partially. You can also squeeze out more range using clever signal processing and a large optical aperture (which allows you to output more light, but since the light is spread out across the aperture, the intensity doesn't exceed the threshold). Typically, the range of 850/905 nm lidars is less than that of 1550 nm lidars though.

On the bright side, due to lower power, there hasn't been any instances (to my knowledge) of 850 nm and 905 nm lidars damaging cameras, whereas at least two different 1550 nm lidars have been known to destroy cameras (Luminar and AEye).

On the Luminar lidar website [1] they proudly advertise "1,000,000x pulse energy of 905nm".

[1] https://www.luminartech.com/technology

dllu··on Photographer built a medium-format rangefinder
Really awesome design! It would be wise to replace some of those 3D printed parts with CNC parts, especially for places where a lot of strength is required (eyelets for those Peak Design anchors) or precision is required (lens mount). I myself have 3D printed some parts for my line scan camera too, so I can totally understand.

[1] https://daniel.lawrence.lu/blog/2024-08-31-customizing-my-li...

dllu··on Rivian Unveils Custom Silicon, R2 Lidar Roadmap, and Universal Hands Free
You seem to be implying that all automotive lidar are 1550 nm but that's not true. While there are lots of 1550 nm automotive lidars (Luminar on Volvo, Seyond on NIO) there are also plenty of 850 nm to 940 nm lidars are used in cars (Hesai, Robosense, etc). Those can pass through water and get focused to your retina, but they are also a lot lower power so they do not damage cameras.
dllu··on Rivian Unveils Custom Silicon, R2 Lidar Roadmap, and Universal Hands Free
Depends on the wavelength of lidar. Near IR lidars (850 nm to 940 nm, like Ouster, Waymo, Hesai) will be focused to your retina whereas 1550 nm lidars (like Luminar, Seyond) will not be focused and have trouble penetrating water, but they are a lot more powerful so they instead heat up your cornea. To quote my other comment [1]:

> If you have many lidars around, the beams from each 905 nm lidar will be focused to a different spot on your retina, and you are no worse off than if there was a single lidar. But if there are many 1550 nm lidars around, their beams will have a cumulative effect at heating up your cornea, potentially exceeding the safety threshold.

[1] https://news.ycombinator.com/item?id=46127479

dllu··on Framework Laptop 13 gets ARM processor with 12 cores via upgrade kit
It does have graphics acceleration and you can even play AAA titles with fex [1] since last year. But many bells and whistles still don't work --- for example, the video decoding hardware, proper sleep, etc.

Anyway, I've been using it on my Macbook Air M2 and it works fine for my use case [3]. Pretty smooth.

[1] https://rosenzweig.io/blog/aaa-gaming-on-m1.html

[3] https://daniel.lawrence.lu/blog/2024-12-01-asahi-linux-with-...

dllu··on Multivox: Volumetric Display
I once considered making a spinning persistence of vision similar to this one specifically for visualizing lidar data from a spinning automotive lidar. The lidar has 128 beams and you could make a spinning array of 128 1D LED displays at exactly the same beam angles to recreate the point cloud from the lidar.

Anyway, I was too lazy to make it, but it's super neat to see that someone actually made something similar.

dllu··on All about automotive lidar
Velodyne actually donated an HDL-64E to the Smithsonian.

[1] https://lidarmag.com/2011/05/21/velodyne-donates-lidar-and-r...

dllu··on All about automotive lidar
The externally spinning Waymo Laser Bear Honeycombs do indeed cause whacking and pinching and occasionally get gunked up with wet leaves and debris. One reason why they are like that is because these have very large fields of view. A cylindrical plastic cover seriously degrades optical quality especially when the beam is hitting it at a steep angle. Another reason is that it has a heatsink on the back of the spinny part. Earlier Waymos like the Firefly in fact cover up this lidar, e.g. on the "nose" and the side mirrors [1]. But they went back to leaving it exposed for better performance.

Likewise with the big spinning lidar on top, which was covered in the older Chrysler Pacificas but externally spinning in the newer Jaguar I-Paces.

[1] https://commons.wikimedia.org/wiki/File:Waymo_self-driving_c...

dllu··on All about automotive lidar
Beamforming with a phased array is talked about in the article, but you are conflating two very different types of arrays. You can't form beams with the types of macroscopic arrays I was referring to, since they consist of macroscopic array elements whose phase cannot be controlled, and reside behind a fixed lens that ensures that they all point in different directions.
← PreviousPage 3 of 10Next →