HNHacker News
TopNewBestAskShowJobs

RGBCube

1,255 karma · joined May 22, 2023

hackernews [at] https://rgbcu.be/
submissionscomments
RGBCube··on BirdyChat becomes first European chat app that is interoperable with WhatsApp
Agreed, it's not intuitive at all, but at least it's there...
RGBCube··on BirdyChat becomes first European chat app that is interoperable with WhatsApp
You can just paste the number into the "start new chat" search input and start a chat from there. You don't need any of this.
RGBCube··on The Humble Android Calculator
I like the Google Calculator, but don't use Google services and the Google Calculator can't work without Play Services for some reason. So I've tried all the popular open source ones and found https://github.com/sadellie/unitto to be the closest in experience (material design) and accuracy (the tan(355/226) test works). It also has conversions for other units, and even currency using https://github.com/fawazahmed0/exchange-api that is accurate enough for a rough estimate if you let it have Internet access.
RGBCube··on Interview with Kent Overstreet (Bcachefs) [audio]
> This is hacker news, not drama queen news

Same thing.

RGBCube··on Rust in the kernel is no longer experimental
The C++ that have the humility to realize are using Rust.
RGBCube··on GrapheneOS is the only Android OS providing full security patches
That's actually one of the best parts.
RGBCube··on Awk Technical Notes (2023)
Stop using awk, use a real programming language+shell instead, with structured data instead of bytestream wrangling:

  > ls -l | get user

  ┌────┬──────┐
  │  0 │ cube │
  │  1 │ cube │
  │  2 │ cube │
  │  3 │ cube │
  │  4 │ cube │
  │  5 │ cube │
  │  6 │ cube │
  │  7 │ cube │
  │  8 │ cube │
  │  9 │ cube │
  │ 10 │ cube │
  │ 11 │ cube │
  │ 12 │ cube │
  │ 13 │ cube │
  │ 14 │ cube │
  │ 15 │ cube │
  └────┴──────┘
You don't need to memorize bad tools' quirks. You can just use good tools.

https://nushell.sh - try Nushell now! It's like PowerShell, if it was good.

RGBCube··on Steam Frame
Finally, a modern VR headset that doesn't hate you.
RGBCube··on XSLT RIP
Mozilla.
RGBCube··on Why Zig Is Quietly Doing What Rust Couldn't: Staying Simple
AI slop.
RGBCube··on Minecraft removing obfuscation in Java Edition
Even if they made it Source Available it wouldn't hurt them much, because Minecraft is very easy to pirate and the reason anyone pays for anything at all is because you need an account in Mojang's authentication servers (which people do not want to move off of for various reasons).

Hell, they could even make it Open Source with a clause preventing other companies from using to code to make a profit. It's too big to fail.

RGBCube··on Upcoming Rust language features for kernel development
It is much more complex than C, sure. But it's so much simpler than C++ and you won't find yourself digging through the reference, or standard, or whatever to understand the code you are writing. It's very close to the sweet spot of "not complex enough to make you bald, not simple enough to make your code complex" while also making correctness the default.
RGBCube··on A sudo shim that uses run0 internally
What I love about this is that it removes the need for anything suid completely, removing more Unix, thus making our systems more secure and overall better.
RGBCube··on You can't build tcc from Nixpkgs if you are in the UK
I'm actually working on my own OS agnostic package collection + system management software, and I've found https://radicle.xyz great for this. All repos depended on by the official package collection t will be on the radicle network.
RGBCube··on You can't build tcc from Nixpkgs if you are in the UK
The linked GitHub isssue links to that page, too.
RGBCube··on You can't build tcc from Nixpkgs if you are in the UK
This won't affect most users as they will be using the cache.nixos.org substituter and haven't modified any package that pulls repo.or.cz repositories, but it's still amusing.
RGBCube··on Seamless Linux Boot [video]
There's no Virtual Terminal, aka TTY / VT, so the kernel is smaller and the insecure VT impl in the Kernel is not compiled in. In general, you get less moving parts and a more solid system.

The functionality of the VT as a fallback can be handled by cage+foot/whatever or kmscon.

RGBCube··on Seamless Linux Boot [video]
See the reddit post explaining a lot here: https://reddit.com/r/linux/comments/1dpeqay/config_vtn_in_20...

Coming to a distro near you, probably!

RGBCube··on We rewrote the Ghostty GTK application
You need to enable the option-key-as-alt config option (I recommend only doing it for left option) as alt and option aren't actually the same thing. The name of the config key may be different but it exists
RGBCube··on Quickshell – building blocks for your desktop
Currently Linux and I think BSD, and the creator has said he wants to support MacOS and Windows, though those will only be included in the paid product.

On Linux and BSD, it supports Wayland and X11, though Wayland is better supported.

ie, Quickshell will forever stay completely free for free operating sysems.

RGBCube··on GitHub pull requests were down
Radicle.xyz fixes this with COBs (Collaborative Objects). They're stored inside your git repo as normal objects, and benefit from its p2p mechanism as well. It's the true sovereign forge.
RGBCube··on A deep dive into Rust and C memory interoperability
Sorry, I meant `&Vec<T, dyn Allocator>`.

And no, it is possible. Here is an example that does it with BufReader, which has T: ?Sized and uses it as a field: https://play.rust-lang.org/?version=stable&mode=debug&editio...

Though it comes with a caveat that you can't take self by value, which is perfectly fine for this use case & is what a normal allocator-aware language does anyway.

RGBCube··on A deep dive into Rust and C memory interoperability
If the `A` generic parameters were changed to be ?Sized, it would still be possible to make `read_to_end` support custom allocators by changing the signature to `read_to_end(&mut dyn Vec<u8, Allocator>)`

Not sure if that is a breaking change though, it probably is because of a small detail, I'm not a rustc dev.

RGBCube··on I tried Servo
That's more of a distro thing than "Linux being a few screws loose".

I vastly prefer the OpenBSD kernel too, but if you use a distro that does things properly such as NixOS, the BSDs are the ones that feel wonky.

RGBCube··on Someone made a 128k line PR to OpenCut
Holy slop.

This does reflect my experience with Claude Code too. It just writes TOO MUCH damn code. It's never able to understand the tiny change that would make the software actually be better without guidance, and at that point I'd rather write it myself.

It's fine for gruntwork though.

RGBCube··on Eskil Steenberg – I've had it with the security orthodoxy. – BSC 2025 [video]
This whole rant is uninformed & it seems like the author is completely ignorant of anything happening outside his well.

But I'll bite the Rust rant anyway.

> Where's your SSL?

Right here: https://www.memorysafety.org/blog/rustls-server-perf/

It's an order of magnitude faster than OpenSSL, and almost double the speed of BoringSSL.

> Where's your operating system?

There are lots of OSes written in Rust, but nobody expects them to replace a well-established piece of software like Linux (and _even Linux_ is integrating Rust, because you can't RIIR the kernel overnight). That's why it's shining in the embedded sector, with stuff such as Tock: https://github.com/tock/tock, or many, many other OSes available today. Oxide Computers uses Rust, Volvo writes a lot of their systems in Rust. I also know a few unnamed MIC companies in Turkey using Rust for their software. Anduril also uses Rust.

Rust also runs the Internet, Cloudflare is primarily Rust and AWS is one of the biggest users of Rust. So many more examples but these are the biggest.

Half my environment is Rust: Helix/Zed my editors, my version control system (jj), my shell (nushell), my Window Manager (niri), the build system I'm working on in Rust to build it all, Firefox which is partially Rust, and I actually enjoy using these greatly, because they're fast, well designed and secure.

Has the author written anything in his life that's not games or toys?

RGBCube··on Hi
Hello
RGBCube··on .gitignore Is Inherently Sisyphean
They're still not enough. Even with those, it's really easy for stuff to slip in.

You should just pick the nearly exhaustive option instead

RGBCube··on Modernish – A library for writing programs for POSIX-based shells and utilities
Many such cases.

Nushell fixes this: https://nushell.sh/

I've been using it as my shell for 2-3 years, and it has improved a LOT since then. The interactive experience is great, and it's wonderful assembling scripts in its REPL. I can use my editor to edit the bufferline too using ctrl+o.

The best thing about it is that's it's self-contained. You don't have to assume anything about the users environment, as Nushell has almost everything you'd need fot common tasks built-in.

Some example scripts I've written:

- Link all files in a dir & deduplicate based on hash, in parallel, handling all cases: https://github.com/RGBCube/random-scripts/blob/master/linear... - A simple github->forgejo migration/live mirroring script: https://github.com/RGBCube/GitHub2Forgejo/blob/master/github...

All of these only need nushell, and not even coreutils.

RGBCube··on The Tabs vs. Spaces war is over, and spaces have emerged victorious
I also use 3 spaces myself, because 4 spaces is too damn wide and 2 spaces is a little bit too small. I would use tabs instead, but rustfmt doesn't handle it well at all in some of the nightly options, I've had it use spaces where it should use tabs a lot.
Page 1 of 7Next →