Better HN
topnewbestaskshowjobs
Log inSign up

matthews2

1,085 karma · joined Mar 4, 2022 (4y ago) · 218 submissions

Submissions

1.

Why do we need modules at all? (2011)(groups.google.com ↗)

151 points · by matthews2 · 1y ago · 88 comments

2.

How China's Surveillance State Works [video](youtube.com ↗)

6 points · by matthews2 · 1y ago · discuss

comment 1y ago · link · parent

Kagi's repository doesn't contain any of raphaelrobert's code directly. It's used as a library: https://github.com/kagisearch/privacypass-lib/blob/main/src/...

comment 1y ago · link · parent

Espressif are a Chinese company so I would imagine so. Although you shouldn't find an ESP32 on a car anyway, they are not automotive grade parts.

comment 1y ago · link · parent

You still authenticate and kick off the Mosh session via SSH, so it shouldn't be any worse than plain SSH.

> Mosh doesn't listen on network ports or authenticate users. The mosh client logs in to the server via SSH, and users present the same credentials (e.g., password, public key) as before. Then Mosh runs the mosh-server remotely and connects to it over UDP.

comment 1y ago · link · parent

What is the link between car washing and spreading bird flu?

7.

SEGGER's Ozone debugger now supports Rust(segger.com ↗)

3 points · by matthews2 · 2y ago · discuss

comment 2y ago · link · parent

Dust (and scratches?) can be detected with an infrared scan. The IR scan is only used to detect defects, and then something like a spot removal tool is automatically applied to the defect areas.

https://www.hamrick.com/blog/digital-ice.html

comment 2y ago · link · parent

> If serde_json is a parser and has a different feature set than json-threat-protection, does it make sense to compare performance?

If you were using serde_json just to validate a payload before passing it on to another service (like a WAF), then the comparison makes sense. If you had more complex validations or wanted to extract some of the data, then maybe not.

comment 2y ago · link · parent

The Debian Firefox package ships a config with most of that disabled by default: https://wiki.debian.org/Firefox#Disabling_automatic_connecti...

comment 2y ago · link · parent

Retail trading starts on Friday morning.

comment 2y ago · link · parent

Oops, my bad. I was stuck in Intel land.

The option I linked is even listed under the x86-specific options...

comment 2y ago · link · parent

You can use -mno-popcnt for this.

Godbolt: https://godbolt.org/z/raszoEedr

Reference: https://clang.llvm.org/docs/ClangCommandLineReference.html#c...

comment 2y ago · link · parent

HTTP/2 push is super dead: https://evertpot.com/http-2-push-is-dead/

comment 2y ago · link · parent

More MFT goodness: the file search tool Everything (https://www.voidtools.com/)

comment 2y ago · link · parent

If GET requests increase my AWS bill, does that make them not idempotent any more?

comment 2y ago · link · parent

Zero dependencies seems like a weird selling point, especially since it depends on Clap, Tokio, a Rust compiler...

A neat project, though. I think that this is best solved in the application itself (e.g. your server starts but returns HTTP errors while the database is unavailable), but being able to retrofit this behaviour into any existing application seems useful. Feels like something very similar should be built into tools like docker-compose.

18.

Nintendo Stuff on Steam Workshop(store.steampowered.com ↗)

2 points · by matthews2 · 2y ago · discuss

comment 2y ago · link · parent

Maybe there isn’t a benefit to closed-source Llama either.

comment 2y ago · link · parent

You can drop root after binding, or you can use capabilities to allow a particular program to bind on privileged ports. php-fpm could listen on a UNIX socket instead of a TCP socket.

comment 2y ago · link · parent

> running around salsa.debian.org pushing for more updates in other projects as well

This is quite common in most (all?) distributions. People are going through lists of outdated packages, updating them, testing them, and pushing them.

comment 2y ago · link · parent

MIR comes from the Rubyverse and isn't related to LLVM MLIR.

https://github.com/vnmakarov/mir?tab=readme-ov-file#mir

comment 2y ago · link · parent

I haven't had chance to use it properly yet, but I think JfrUnit[0][1] is a good option here to test non-functional behaviour like memory usage and garbage collection.

[0]: https://github.com/moditect/jfrunit [1]: https://www.morling.dev/blog/towards-continuous-performance-...

comment 2y ago · link · parent

Thanks for sharing! I'm going to go and test my backups now...

comment 2y ago · link · parent

You don’t need to convert back to yaml. Your json is valid yaml.

comment 2y ago · link · parent

In this example, the kernel is doing the task switching. They are "real" threads. The userspace component is informing the kernel which tasks should be run.

goroutines and Java virtual threads are a separate idea. The application saves its state and then yields back to a scheduler in the application.

27.

Did SpaceX copy NASA thermal tiles? [video](youtube.com ↗)

3 points · by matthews2 · 2y ago · 1 comment

comment 2y ago · link · parent

This smells like when PowerShell aliased curl and wget to a completely different command, with incompatible arguments.

https://github.com/PowerShell/PowerShell/pull/1901

comment 2y ago · link · parent

You don't need to agree with all of his opinions to use SourceHut :)

I'm not a big fan of some of his hot takes, but I still respect him and trust him with my data.

comment 2y ago · link · parent

It uses U-Boot, but you can use U-Boot to launch an EFI executable.

https://docs.u-boot.org/en/latest/board/thead/lpi4a.html https://docs.u-boot.org/en/latest/usage/cmd/bootefi.html

12345
8