HNHacker News
TopNewBestAskShowJobs

Klasiaster

1,389 karma · joined September 25, 2014

submissionscomments
Klasiaster··on Show HN: Fresh – A new terminal editor built in Rust
Actually not that important, it also does the same as shift-up/down and I think it's more a convenience feature that one can keep ctrl pressed when it was pressed as ctrl-shift-left/right for word selection and one then presses up/down.
Klasiaster··on Show HN: Fresh – A new terminal editor built in Rust
Good keybindings, some are missing compared to what normally works, e.g., in the browser text input area or in gnome-text-editor (Ctrl-Shift-Up/Down was one I directly ran into).

I've found https://github.com/gphalkes/tilde to work quite well, it also supports the system clipboard. Nice to see a Rust alternative.

Klasiaster··on Oniux: Kernel-level Tor isolation for any Linux app
So great that they worked on it! It seemed to be part of the arti work for a couple of years but I wasn't sure it was really on the roadmap. Wanted to do something like this since 2017 with smoltcp and also had a glued together version of it via badvpn/tun2socks (large DNS responses were broken though).
Klasiaster··on WASM 2.0
What's truly missing for Wasm and WASI to be an alternative to POSIX is dynamic instatiation so that a Wasm program/component can start another Wasm program/component by providing the bytecode at runtime. So far I don't think anyone is working on that.
Klasiaster··on Waydroid – Android in a Linux container
Many apps depend on running an "official" Android distro from Google, Samsung, etc. and don't work with Waydroid's Lineage-based distro. I think the Wine-like approach from https://gitlab.com/android_translation_layer/android_transla... might help to trick apps into believing that they run on an "official" Android distro.
Klasiaster··on Asterinas: OS kernel written in Rust and providing Linux-compatible ABI
Here is a list of implemented syscalls, but of course each checked one could still be slightly incompatible:

https://asterinas.github.io/book/kernel/linux-compatibility....

Klasiaster··on Asterinas: OS kernel written in Rust and providing Linux-compatible ABI
There was also the similar project Kerla¹ but development stalled. Recently people argued that instead of focusing on Rust-for-Linux it would be easier to create a drop-in replacement like these two. I wonder if there are enough people interested to make this happen as a sustained project.

¹ https://github.com/nuta/kerla/

Klasiaster··on Exploring Typst, a new typesetting system similar to LaTeX
You can embed attachments in PDFs. This way you could include CSV or JSON files into your PDF report. For a quick way doing it with CLI see `qpdf --help=add-attachment`
Klasiaster··on Wi-Fi Goes Long Range on New WiLo Standard
A major problem is that one can only have a single connection. It would be nice to do WiFi Direct or AdHoc mode while being connected to an AP. Being able to use WiFi without losing the AP connection (or having a standardized AdHoc channel for discovery) would replace uses of Bluetooth in consumer devices where Bluetooth is used for the initial connection to join a WiFi - some devices rely on WiFi Direct but the UX is very bad because the AP connection gets lost.
Klasiaster··on MNT Reform Next
Seems parts of the needed adapters do exist: https://www.amazon.com/Adapter-Converter-Thunderbolt-MacBook...
Klasiaster··on MNT Reform Next
Great to see it getting ready. Since the USB-C Power Delivery port doesn't support Display Port output, maybe there is a complex adapter that could splice the HDMI signal in (converted to Display Port) while still supporting data and Power Delivery?
Klasiaster··on Compilation of JavaScript to WASM, Part 3: Partial Evaluation
I love that his exists without even being in the need of it!
Klasiaster··on Verso – Web browser built on top of the Servo web engine
I don't understand what the advantages are over Servo's inbuilt web browser¹. So far they look the same when opening but the inbuilt web browser is more stable (I see rendering bugs with Verso and it panics when entering a domain without the http(s):// prefix).

¹ https://servo.org/download/

Klasiaster··on ICPP – Run C++ anywhere like a script
Related is cargo script for Rust: https://doc.rust-lang.org/cargo/reference/unstable.html#scri... (nightly only)
Klasiaster··on MNT Pocket Reform first impressions and hardware
The latest keyboard version 3.0 is more standard. The swapped control vs caps lock position is something one can probably remap in software. The apparent lack of page-up/down and home/end keys would be more of a problem for me, though.

https://shop.mntre.com/products/mnt-reform-keyboard-30

Klasiaster··on HiddenVM – Use any desktop OS without leaving a trace
"The laptop probably has a HiddenVM. Drug and hit the person with this 5$ wrench until we get access."

https://xkcd.com/538/

Klasiaster··on A small Rust binary indeed (2022)
One can also create small binaries with https://github.com/sunfishcode/origin (e.g., https://github.com/sunfishcode/origin/blob/main/example-crat... is in that ~400 bytes range) and select features as wanted without having to reimplement everything. Also see https://github.com/sunfishcode/origin-studio and https://github.com/sunfishcode/mustang - and of course https://github.com/sunfishcode/eyra
Klasiaster··on Show HN: Open-source x64 and Arm GitHub runners
GARM can easily manage ephemeral runners for you: https://github.com/cloudbase/garm (Ephemeral runners are also more secure)
Klasiaster··on A supply chain attack on PyTorch
With GARM (GitHub Actions Runner Manager) it's easy to manage ephemeral runners: https://github.com/cloudbase/garm

One should also use workflow approvals for external contributors.

Klasiaster··on VMware transition to subscription, end of sale of perpetual licenses
The setup is not too complicated with something like https://opendev.org/openstack/devstack
Klasiaster··on AWS unveils Graviton4 & Trainium2
Do any of the (soon-to-be) available non-metal offers support nested virt?
Klasiaster··on Libre Computer AML-A311D-CC "Alta" Single-Board Computer
Main benefits are a fully mainline Linux kernel plus UEFI: You can throw a standard arm64 image at it and it will directly boot and get updates forever - no custom images with special bootloader setup and downstream kernel needed.
Klasiaster··on Implementing TCP in Rust
There is also the Rust TCP/IP stack https://github.com/smoltcp-rs/smoltcp which is not mentioned as reference (and it's probably more useful to have a look there than querying ChatGPT).
Klasiaster··on Sophgo SG2380 2.5 GHz 16-core SiFive P670 RISC-V processor
Maybe it's like with software, once you add bloat/baggage over the course of the years it's hard to get rid off when trying to optimize again.
Klasiaster··on Changing the Rules of Rust
I think a "linter" that does formal verification would be a good solution. People use things like clippy already and my hope is that using one of the verification tools such as Kani could become equally widespread for checking common things like absence of panics and leaks.
Klasiaster··on iPhone 15 and iPhone 15 Plus
Didn't know that the phone was limited to USB 2.0 transfer before… kind of ridiculous for the high price.
Klasiaster··on Mashing Enter to bypass full disk encryption with TPM, Clevis dracut and systemd
Sounds like it would have also worked to replace the hard drive with an own one where the OS directly gives a root shell to read the TPM secret.

The solution is to bind the TPM secret to a measured boot state, but that requires a way of precalculation of the expected measurement values. Read more about signatures for these precalcuated measurement values here: https://0pointer.net/blog/brave-new-trusted-boot-world.html (TLDR: The publishing of prebuilt OS vendor kernel+initrds and signed PCR policies allows to bind the secret to the signature being valid, so that it still works when auto updates change the measurement as long as the vendor signature is also there.)

Klasiaster··on RFC 9420 a.k.a. Messaging Layer Security
There are plans for using it in Matrix: https://arewemlsyet.com/ (pointed out in https://news.ycombinator.com/item?id=36777573)
Klasiaster··on RFC 9420 a.k.a. Messaging Layer Security (MLS) – An Overview
They also published an implementation as Rust library: https://openmls.tech/
Klasiaster··on RFC 9420 a.k.a. Messaging Layer Security (MLS) – An Overview
It's interesting that there was a working group to build a new protocol that fixes the issues with the Signal Protocol. Maybe more alternatives to Signal could emerge now.
Page 1 of 11Next →