HNHacker News
TopNewBestAskShowJobs

Ralith

661 karma · joined August 7, 2009

submissionscomments
Ralith··on Jujutsu for busy devs
There's a (configurable, easily bypassed) limit for newly created file size to catch that common mistake.
Ralith··on Some models of Gigabyte motherboards download firmware updates insecurely
Disabling that option makes the `%SystemRoot%\system32\GigabyteUpdateService.exe` binary mentioned by the original article stop appearing, so it seems so.
Ralith··on Tokio: Runtime for writing reliable asynchronous applications with Rust
There's even been experiments with binding futures to glib or various GUI event loops!
Ralith··on Tokio: Runtime for writing reliable asynchronous applications with Rust
"system" here is intended to refer to the application using tokio, i.e. if you got rid of tokio and did everything by hand you wouldn't be able to make your application faster.
Ralith··on Ask HN: Do you have personal bots?
Missed opportunity to render pixel art in the calendar display.
Ralith··on Quiche – An implementation of the QUIC transport protocol in Rust
Thanks for the details!

> the core protocol objects in quinn that directly link to specific socket and address and even event loop reactor objects - and these objects strictly in Rust to boot.

This isn't accurate. The core protocol objects in Quinn are those defined in "quinn-proto", which has absolutely no awareness of how I/O is performed or what event loop is in use: the interface is structurally very similar to Quiche's, with the caller providing data/timeouts by any means and consuming events that result. See https://docs.rs/quinn-proto/0.2.0/quinn_proto/struct.Endpoin... for details.

The high level "quinn" crate interface, which incorporates awareness of UDP sockets and the tokio event loop, is strictly an optional binding; that's why it's a separate crate.

> existing solutions available right now would not be able to offer the level of flexibility and abstraction we need, nor would they likely be able to add the interfaces we need in a reasonable timescale, nor would they likely tolerate our requests to do so.

Support for this type of flexibility, up to and including allowances for a C API suitable for integration with existing software, has actually been an express design goal of Quinn from the start, and I regret that that wasn't clear.

Ralith··on Quinn 0.2.0: QUIC protocol implementation in Rust
It's worth emphasizing that QUIC is more general than a new transport for HTTP; it has wide ranging applications, due to being far more versatile than TCP.
Ralith··on Quinn 0.2.0: QUIC protocol implementation in Rust
All Rust programs call out to platform-dependent unsafe code sooner or later in the form of the standard library. Otherwise, you wouldn't be able to allocate memory or do any I/O whatsoever.

Sometimes the standard library doesn't expose functionality you want, like the capability to read/write the ECN bits of your UDP packets, so you have to bind some syscalls yourself. The capability to do this is one of Rust's core strengths, and it does not compromise a program's rustiness any moreso than calling a wrapper around write to print "Hello, world!" does.

Ralith··on Quinn 0.2.0: QUIC protocol implementation in Rust
The current draft encourages, but does not require, QUIC implementations to employ path MTU discovery along those lines; see https://quicwg.org/base-drafts/draft-ietf-quic-transport.htm... for details. Quinn doesn't yet have this implemented, but it would be pretty cool!
Ralith··on NixOS – Purely Functional Linux Distribution
> But for C/C++ projects I would just compile in an Ubuntu container as well.

Setting up a reproducible build environment with nix-shell is much more convenient than screwing around with containers.

Ralith··on NixOS – Purely Functional Linux Distribution
> Binaries are a pain, but that's always true if you aren't running the exact distro that the binary was built for.

This is actually easier to deal with on NixOS than elsewhere, because the tools for handling that case (patchelf, buildFHSUserEnv, supporting multiple versions of a lib, etc) are so well developed.

Ralith··on NixOS – Purely Functional Linux Distribution
> most of the configuration is for desktop stuff and NixOS doesn't really cover that.

I like home-manager: https://github.com/rycee/home-manager

Ralith··on NixOS – Purely Functional Linux Distribution
You just pass it in explicitly: https://nixos.org/nixpkgs/manual/#sec-pkg-override
Ralith··on Quaternions: the Strange Numbers That Birthed Modern Algebra
> I invented quaternions using matrices

what

Ralith··on Quaternions: the Strange Numbers That Birthed Modern Algebra
Even if you're writing your own engine from scratch, VR runtimes provide orientation information directly to the engine as a 4x4 transform matrix. They would have to ignore all the documentation and go far out of their way to somehow regress to euler angles, and are likely introducing other precision issues in doing so.
Ralith··on QUIC as a solution to protocol ossification
> There is no support for datagrams, just datastreams.

Datagrams can be easily and effectively encoded as discrete short-lived streams. If you need streams of datagrams, you can encode your own header to do that. I see no reason why this has to be built into the protocol when the provided primitives are sufficient.

> Forward error correction is actually cool but just using XOR is too limited.

Pretty sure FEC was removed from the IETF draft.

Ralith··on QUIC as a solution to protocol ossification
Those are probably supported version numbers.
Ralith··on GCC is C++17 Complete
Do you want GNU extensions? Use the latter. Otherwise, use the former.
Ralith··on Rust severely disappoints me
One of Rust's selling points is literally that it has very easy zero-overhead C interop.
Ralith··on Simple and Terrifying Encryption Story
Who needs type systems, anyway? Or any datatypes but strings, for that matter!
Ralith··on Rust severely disappoints me
> There is a return statement; it just can't return anything

What? Return works exactly like it does in C, it's just not required as much.

> warning: unnecessary parentheses around `if` condition

I'm confused about how reducing the amount of required syntax is "gratuitous syntax."

Ralith··on Typing the nix language
A type system for Nix would be pretty neat, but a lot of unfortunate design decisions were made in the absence of one that may make this a difficult project.
Ralith··on Ruma, a Matrix homeserver written in Rust
It should be noted that rooms are not "on" a homeserver the way IRC channels are on a network. The server is just a convenient reference point. If it goes down, the room still exists and can still be used, and even given a new name.
Ralith··on Experimental Australian scheme to eradicate long-term homelessness
> Over 10 years the government will save $1.32 for every $1 invested for fuller support for the chronically homeless, Sacred Heart Mission estimates

32% return on investment sounds like a lot to me.

Ralith··on In Sweden, Sverker Johansson and His 'Bot' Have Created 2.7M Wikipedia Articles
That's a problem Wikipedia has in general; improvements to Wikipedia's botany coverage are not going to meaningfully change it one way or the another.
Ralith··on Programming paradigms that change how you think about coding
You can compromise on turing-completeness, too. Idris, for example, lets the programmer decide whether a given definition should be required to provably terminate or not.
Ralith··on Introducing WhiteHat Aviator – A Safer Web Browser
It could still make sense to ship an ad blocking plugin with the browser distribution.
Ralith··on Why Microsoft Word must die
So if I use LaTeX and it gives me the results I want and I don't find myself spending inordinate amounts of time tweaking things, does that make me an intermediate user? I guess I had better stop learning.
Ralith··on Ask HN: Where are all the programming jobs?
> I had been mainly looking on the Who's hiring posts of HN

Well, there's your problem. HN consists mostly of web developers/startups.

Ralith··on Rob Pike: Go at Google
> It's almost like you don't realize that Java came out a decade before Go

This might be a more compelling argument if Go didn't ignore (more than) the last decade of PL research.

Page 1 of 13Next →