pdubouilh
Sigstore Cosign signature verifier in 150 lines of C
Sigstore, the Swiss army knife of signing and attestation
Re:Why is there no P2P streaming protocol like BitTorrent?
on Tuesday April 15, 2025 @07:30AM (#43691327)
I built a proof of concept doing exactly that a few years ago[0]. The codebase is unmaintained and the demo website has been down for a wee while too, but it's basically this idea.
Only issue is that the overhead to establish WebRTC connection is heavy, so it's not exactly lightweight...
Re:Can human brain connectivity explain verbal working memory?
on Wednesday November 13, 2024 @05:38AM (#42124849)
Why can humans acquire vast vocabularies, while non-human primates cannot? This study addresses this question using brain-constrained neural networks that realize between-species differences in cortical connectivity.
Can human brain connectivity explain verbal working memory?
What if Germany had invested in nuclear power?
Re:What if Germany had invested in nuclear power?
on Saturday August 24, 2024 @05:54AM (#41336945)
ABSTRACT: Germany has one of the most ambitious energy transition policies dubbed ‘Die Energiewende’ to replace nuclear- and fossil power with renewables such as wind-, solar- and biopower. The climate gas emissions are reduced by 25% in the study period of 2002 through 2022. By triangulating available information sources, the total nominal expenditures are estimated at EUR 387 bn, and the associated subsidies are some EUR 310 bn giving a total nominal expenditures of EUR 696 bn. Alternatively, Germany could have kept the existing nuclear power in 2002 and possibly invest in new nuclear capacity. The analysis of these two alternatives shows that Germany could have reached its climate gas emission target by achieving a 73% cut in emissions on top of the achievements in 2022 and simultaneously cut the spending in half compared to Energiewende. Thus, Germany should have adopted an energy policy based on keeping and expanding nuclear power.
Re:IPC in Rust – A Ping Pong Comparison
on Wednesday June 19, 2024 @06:53AM (#40726998)
Pretty good write up - I reached the same conclusion doing something similar a few years back.
For the record, I got even better perfs with shared-memory by avoiding the mutex in `raw_sync::events::BusyEvent` - I used a blocking loop with atomics, and yielded the CPU (`yield_now` in rust) between the iterations of the loop.
Downside is that it becomes a bit less consistent. And it is a _lot_ more complex than a unix domain socket :)
Re:Fire alarm audio detection, using FFTs and 184 lines of Go
on Sunday April 07, 2024 @05:51PM (#39964286)
Thanks for this, I'll toy with implementing that instead of a full FFT
Re:Fire alarm audio detection, using FFTs and 184 lines of Go
on Sunday April 07, 2024 @05:23PM (#39964053)
yeah using a DSP for this definitely makes more sense - but I'm lacking experience in the field. Same goes for using a discrete band-pass filter. This project is more of an attempt at "how can I build something in 2 hours that works reliably" !
For reference, it eats ~25% of the available CPU resources on my rpi zero 2w - which draws a maximum of 350mA, so this implementation definitely draws less than 1 watt.
Re:Fire alarm audio detection, using FFTs and 184 lines of Go
on Sunday April 07, 2024 @05:18PM (#39964025)
There's an audio file in the repo to simulate an alarm (works for 3 different models bought in Germany, they all sound the same).
You can pass the target frequency, beep-length and audio threshold as parameters in the CLI (you can estimate these params with audacity).
Re:Fire alarm audio detection, using FFTs and 184 lines of Go
on Sunday April 07, 2024 @05:09PM (#39963942)
This is smart - minut sensors are also doing the same (afaiu).
Re:Fire alarm audio detection, using FFTs and 184 lines of Go
on Sunday April 07, 2024 @03:38PM (#39963196)
I was in a similar situation, and it turns out that setting up new zigbee devices with zigbee2mqtt and a frontend was more work than just detecting the sound pattern with a few lines of Go ! Plus the fire-alarms are compulsory and already installed and managed by my building...
Re:Fire alarm audio detection, using FFTs and 184 lines of Go
on Sunday April 07, 2024 @03:28PM (#39963111)
I agree ! But I have a few fire alarms, and 2 water leak alarms, that would be a lot of wires lying around, and this solution is wireless :)
Fire alarm audio detection, using FFTs and 184 lines of Go
Re:What Happened with the Web Monetization API?
on Tuesday February 06, 2024 @01:17PM (#39278153)
Thanks :) It's a basic centralised idea - I'm working on a second version of the whitepaper to be more pragmatic with defining the solution, the current one is just conceptual.
Re:What Happened with the Web Monetization API?
on Tuesday February 06, 2024 @10:40AM (#39275496)
On the non-crypto web-monetization side, I'm toying with a non-profit idea in the same vein but using third party tooling (browser extension, etc...)
website: https://lagom.org whitepaper: https://lagom.org/docs/lagom-whitepaper.pdf
Secure Boot on ESP32 Platforms
Show HN: TYB – a Rust-based single-config-file Yocto Linux image builder
Re:Show HN: Spotify streaming GDPR dump local analyzer
on Saturday April 08, 2023 @07:52AM (#35492406)
I guess I didn't realise that they kept full IPs for such a wide range of time - I was kind of hoping they were anonymizing them after some time...
Show HN: Spotify streaming GDPR dump local analyzer
Re:Code coverage for Go integration tests
on Wednesday March 08, 2023 @05:43PM (#35075808)
A bit more convoluted, but it's also possible in Rust
https://github.com/pldubouilh/rust-coverage-integration-test