HNHacker News
TopNewBestAskShowJobs

davidhyde

2,817 karma · joined April 7, 2016

Curious software developer
submissionscomments
davidhyde··on Bike-mounted sensor could boost the mapping of safe cycling routes
From the photos, there appears to be more than one sensor on the device which may be used to tell which direction the large object is coming from. Unless you were cycling backwards or mounted the device the wrong way around you shouldn't have any stationary cars passing you. Just a guess though.
davidhyde··on Microsoft C/C++ Extension appears no longer support unofficial forks of VS Code
A pretty good reason to switch to vscodium because monopolies, even open source ones, are never good in the long run.
davidhyde··on Pitfalls of Safe Rust
This is an excellent read. I was expecting a Rust rant but was instead treated to a very well thought out article about how to write more defensive code in Rust. Highly recommended.
davidhyde··on I won't connect my dishwasher to your stupid cloud [video]
I won’t be stupid and buy a dishwasher that connects to your clever cloud. /s
davidhyde··on Rust inadequate for text compression codecs?
When writing codecs in Rust I found the Iterator trait (and all its provided methods) to be very useful for avoiding panics relating to out of bounds indexing into arrays. It also tends to generate very efficient code since bounds checks are done on the order of once per loop rather than once per loop iteration. And then there is the powerful itertools crate that gives you even more capabilities. Highly recommended!
davidhyde··on Increasing rat numbers in cities are linked to climate warming, urbanization
During The Plague of 1665 in London they culled 200,000 cats thinking that they were the root cause. It turned out that the rats were the cause and cats were their natural predator at the time. So they made things worse.

https://www.bbc.co.uk/bitesize/articles/zcwssk7

The OP article does mention cats as a predator. Insignificant compared to the medieval times. Still interesting. > “Parsons et al. (56) documented less than a 1% predation rate between feral cat carnivores and rats in an urban setting.”

davidhyde··on Building a T1D smartwatch for my son from scratch
I have also recently been through the same steep learning curve you have and the following worked for me. Reading spec sheets is fine but nothing beats measurement if its feasible. I built a custom PCB with all the power pins for all the peripherals broken out so I could put an ammeter in series with each of them individually. Then I used Nordic's inexpensive power profiler kit 2 (search for Nordic PPK2 - its under $100). Really decent specs at 100kHz sampling rate and 100nA resolution - you connect it to a PC to see the charts. I also bought my own resin 3D printer. They are so cheap these days and it helped with iterating on designs and not having to wait days for things to arrive. PS, great post, loved it.
davidhyde··on Live London Underground / bus maps taken down by TfL trademark complaint
It’s CRITAAS proliferation. Copyright infringement takedown as a service. It only feels unfair because right now it’s asymmetric. Wait until there is an automatic SAAS to counter balance it and let the bots duel it out whilst laws eventually catch up.
davidhyde··on What Happened to the Largest Tube TV? [video]
And yet it disappeared off Hacker News almost immediately. I kind-of feel lucky to have stumbled upon it, what a gem of a video.
davidhyde··on Ultra-low-power localization tag uses cellular signals [pdf]
There are many cheap ultra low power microcontrollers that can keep a time clock going and a small amount (say 32KB) of ram. 30 years on a coin cell. Pair that with a Bluetooth low energy transceiver to automatically transfer the data when the home base is in range (or any number of base stations). Like at a port in your example.
davidhyde··on Raspberry Pi CM5 is a faster, drop-in upgrade
Admittedly I ended up building a board with a microcontroller rather than a microprocessor because I could interface with the modem over spi too. However, this YouTube channel was great to work through:

http://www.youtube.com/@PhilsLab

It has some high speed stuff with ddr memory, fpga’s gigabit Ethernet and usb3 too so I’m pretty sure you could use the same concepts to build a board with a microprocessor on it. Proper grounding, emi, impedance control and length matching are well explained. I think he has some more advanced courses via his website too.

Additionally, this was an ah-ha moment video for me: https://www.youtube.com/live/ySuUZEjARPY?feature=shared

davidhyde··on Raspberry Pi CM5 is a faster, drop-in upgrade
As someone who spent many months designing a product around CM4 and then waiting for more than 2 years for modules to arrive over the parts shortage era (eta kept being pushed out by the distributor) I will never put myself in that position ever again. The solution I have found was to skill up and learn how to do hardware design myself. At that point there are many more options. Understandably that's not ideal for a lot of people.
davidhyde··on With AI, the future of augmented reality is in your ears
Gross.

> “The new company is building a service that leverages the enormous corpus of data in large AI systems and newly ubiquitous headphones. Then it’s adding the capabilities of a smartphone to surface relevant local information as and when a person walks by a location, such as a restaurant, a cocktail bar, or even a street corner.”

> “He talks about attempting to make sense of it all while staying true to his original mission: building things that help people better experience the world around them.”

davidhyde··on Ambulance hits cyclist, rushes him to hospital, then sticks him with $1,800 bill
Knee jerk reaction about the ambulance service behaviour and general cyclist safety aside, 100k in medical expenses and a 1m lawsuit for a broken nose and other “unspecified” injuries is just mental.
davidhyde··on Deep dive: the instability of op-amps
What an absolute goldmine of a website. So many varied topics. Just amazing.
davidhyde··on Learn Rust the Dangerous Way
If you learned Rust first but find yourself reading a lot of C then this is also a good thing to read because of the parallels it draws with the languages.
davidhyde··on Software Rasterizing Hair
Very impressive! Looks like it could be used to practice hair cutting and to perhaps come up with some new styles. It’s a shame that safari on iPhone is so crippled. Webgpu support in combination with the depth camera could turn the casual user into Edward scissor-hands.
davidhyde··on Microsoft donates the Mono Project to the Wine team
I believe that you would use dotnet nano for something like that. I used it (or some previous version of it) once many years ago and was very impressed with the productivity and ease of use it offered. Ultimately the lack of community surrounding it drove me to other technologies. Might have changed since then though, who knows!

https://www.nanoframework.net/

davidhyde··on Meta cancels high-end mixed reality headset after Apple Vision Pro struggles
Imagine an experience like that but on mars or the moon. With real footage. Now that would be something!
davidhyde··on So you want to build an embedded Linux system?
I found this to be a great resource when I was learning PCB design: https://www.youtube.com/@PhilsLab

I watched all his KiCad videos and tried to build them as I went along. Then you can use a cheap PCB manufacturer like JLCPCB to get them made. It's a lot cheaper than you think (tens of dollars delivered in two weeks for simple stuff). There is a lot of know-how to learn in this field but I found it to be very accessible as a SWE and it all made sense. It just took a long time to pick it all up.

davidhyde··on Show HN: High-precision date/time in SQLite
You’re right, whether or not the integers are signed has nothing to do with the issue above. Unsigned integers have the same issue.

Here is an example for signed integers.

These represent zero time but have different representations in memory:

Seconds: 2 Nanoseconds: -2,000,000,000 (fits in a 32 bit number) Time: zero seconds

Seconds: -2 Nanoseconds: 2,000,000,000 Time: zero seconds

Here is an example for unsigned: Seconds: 1 Nanoseconds: 0 Time: 1 second

Seconds: 0 Nanoseconds: 1,000,000,000 Time 1 second

davidhyde··on Show HN: High-precision date/time in SQLite
I think it’s important to be explicit about whether or not signed integers are used. From reading the document it seems that they may be signed but they could not be. If they are signed then you could have multiple bit strings that represent the same date and time which is not great.
davidhyde··on I Hope Rust Does Not Oxidize Everything
My personal take on this subject is that Rust turns experts back into beginners and some devs react with hatred because of the fear this induces. For me it was the opposite. I was getting bored with my industry and thinking of a move to something else like management. Rust came along 6 yeas ago (for me) and threw me a lifeline. I love getting good at something that is hard, it’s just very satisfying. I do get why some people can’t stand the language. It is ugly to look at with its genetics and lifetime annotations and when a project is so large that it begins to lag rust-analyser then my joy turns to rage too.
davidhyde··on For the Colonel, It Was Finger-Lickin’ Bad (1976)
> “They really gag me, that’s what I think of them”

When asked about a new product line, what a quote!

davidhyde··on Writing GUI apps for Windows is painful
OP said less than 40MB. You can build Slint binaries targeting embedded devices. So a few hundred KB for a small application. Still arguably too much space but gui frameworks like slint use a domain specific language that generates more verbose code than what a human would typically write. Probably in the interests of being generic.
davidhyde··on Slow-spinning radio neutron star breaks all the rules
It could be a periodic spin change caused by a large, unseen, object orbiting it. Alternatively, the angle of the cone of radiation coming from the poles might be tightening and enlarging on a cyclical basis and we may see the glancing blows as a large sector sweeps by our viewpoint.

Periodic spin changes: https://sciencex.com/news/2021-09-pulse-neutron-star-decades...

davidhyde··on Slow-spinning radio neutron star breaks all the rules
It occurred to me that the neutron star may be wobble spinning and we only catch it flashing by now and again when it gets round to pointing in our direction. Does anyone here know if this even a possibility for such an object or would it’s internal uniformity (in composition) prohibit such behaviour?
davidhyde··on Dragonfly: A large vision-language model with multi-resolution zoom
Thanks, I probably shouldn’t be commenting on an LLM article if I don’t even know what a gold answer is! Oh well.
davidhyde··on Dragonfly: A large vision-language model with multi-resolution zoom
It’s problematic because the LLM is describing another person’s scan and not the one presented to it. It should at least present the other scan as workings and the percentage difference between the two. Finding a similar looking scan is very useful no doubt but if the result is hallucinated that it is less so. Dangerous even. There is no confidence percentage and there should be.
davidhyde··on Dragonfly: A large vision-language model with multi-resolution zoom
> “ Question: Write a detailed radiology note based on the chest X-ray. Gold Answer: AP upright and lateral views of the chest were provided. Left chest wall pacer pack is again seen with leads extending into the right heart. ”

The bit about a “wall pacer pack is again seen…” leads me to believe this was based on another doctors note about a similar looking X-ray which was probably paired with other information like another scan at the time. That would be problematic imo.

← PreviousPage 2 of 19Next →