HN user

cillian64

805 karma

Embedded design engineer in Cambridge, UK.

Posts6
Comments179
View on HN

Even for extended workloads, a Pi 5 without a heatsink is still a hell of a lot faster than a Pi 4. And as sibling says, most users appreciate bursty speed while not doing prelonged compute (see also fanless laptops).

(Disclaimer, I work for raspberry pi ltd, not views of employer etc.)

I had that style of integrated panels installed on my (Victorian) house in the UK. The slates were old and crumbling so needed replacing and doing integrated panels meant only needing a fraction as much slate which saved a chunk of money. I think the result also looks a lot better than non-integrated panels, at least with slate roofs (which are common in my area)

Apparently integrated panels can be a little less efficient in hot weather as they don't get cooled by airflow under the panels and are less efficient when hotter. But it's a pretty minor effect, maybe a few percent of output. Seems like the best option on a new-build or if you're re-roofing anyway.

To look at it another way, just because some code I work on at my job is derived from open source MIT-licensed code doesn't mean I personally have the right to distribute it if my company doesn't want me to. I'd guess this comes under some generic "confidential information" clause in the employment contract.

It'll be the same as larger inverters for roof-top solar - they are constantly monitoring the mains cycle and will shut off if the voltage (or probably frequency too?) goes out of range, let alone drops out entirely. The relevant standards in the UK are G98/G99.

MacBook Neo 5 months ago

Two advantages for me: It's nice that you don't break the connector if you trip over the cable or put the laptop down on a soft surface, and it's nice being able to charge while still using both USB-C ports (although I guess 3x USB-C would also solve that).

I don't really see any downside to a proprietary connector if you also have the option to charge over USB-C as well.

The trick with neutral in the leaf is that you have to hold the gear selector in the neutral direction for about a second. No relation to brake pedal timing as far as I can tell. No idea why neutral has that delay given none of the other “gears” do.

Because duolingo is designed for addiction

For people who have trouble keeping up hobbies, that's a feature. Even if duolingo isn't the ideal way to learn, it's a lot better than something I give up on or forget about after a week.

I have a load of these shell aliases as I spend a frankly ridiculous amount of time messing with git. `g` is `git status`, `d` is `git diff`, `gad` is `git add`, `ds` is `git diff --staged`, `gg` is `git grep`, `gbv` is `git branch -va`

Compared to the amount of code that people compile and the number of bugs seen and fixed in that code, that is a tiny number of bugs. I wouldn't say it's "never" a compiler error but when you find a bug in your program, it's almost certainly not the compiler's fault.

Yep, for me the reason to go with Hue is that the bulbs have good CRI, good colors, and the colors match between all the different types of fixtures. I've also not had a single Hue bulb fail in the 6 years I've been using them.

There is quite a bit of variation between SD cards, browser taking several seconds is surprisingly bad.

On Pi 4 I use a 2.5" SATA SSD (WD blue) on a startech USB3 adaptor and the performance seems to me much better than even good quality microsd cards.

In some places it sounds like the ONT is integrated with the router (like with DOCSIS), and being forced to use the ISP’s router is a problem.

But in cases where the ONT just looks like a media converter and you have a separate router I really can’t see any reason for the customer to provide their own ONT. Especially given PON is a shared medium so a misbehaving ONT can affect other customers.

If that’s the argument against, it could just be denied by default and require the user to go into settings to allow. The annoyance isn’t too bad given webserial is probably only used on occasion, and it means no concerns about consent spam or fingerprinting.

32-bit raspberry pi os is based on raspian instead of debian for the architecture reasons explained by a sibling comment. But 64-bit raspberry pi OS is based on actual Debian, with extra repos added for rpi-specific software and patched versions of some Debian software

If you use ffmpeg’s libavcodec interface then you can get it to give you the decoded framebuffers as exported DRM-prime descriptors which you can turn into textures. This is how Firefox does video decode with VAAPI, using libavcodec as a wrapper.

Edit: missed the part about JS ecosystem. You can move DRM prime descriptors between processes, but I assume you can’t do this from the ffmpeg CLI and would need to write your own little C wrapper around libavcodec

On Linux there is already an alternative to VAAPI: The Video4Linux Memory-2-memory (V4L2-M2M) API, which provides a standardised API for hardware encode and decode accelerators (and supports using DMA-bufs for copy-free decoding or using decoded frames as textures). I don't know how much support there is for AMD/nvidia/intel but it works well on the Raspberry Pi at least.

It would feel weird for Vulkan to become the standard API for encode/decode given that (as you say) video accelerators aren't necessarily tied to the GPU (although not necessarily weirder than doing it through an extension of the webcam API).

Zig Quirks 3 years ago

The downside is when reading code you’re keeping in your head information about the type of each variable. If you skim through the code and miss one of these redefinitions then you may be mistaken about the variable’s type.

That said, I still think sparing use of this is justified, especially with an editor which can show types on mouseover.

Often a company will offer severance more generous than they are contractually/legally obliged to in exchange for the leaver signing some extra restrictions beyond what was in the original employment contract.