- > Zig, for all its ergonomic benefits, doesn’t make memory management safe like Rust does.
Not like Rust does, no, but that's the point. It brings both non-nullable pointers and bounded pointers (slices). They solve a lot of problem by themselves. Tracking allocations is still a manual process, but with `defer` semantics there are many fewer foot guns.
> I kind of doubt the Linux maintainers would want to introduce a third language to the codebase.
The jump from 2 to 3 is smaller than the jump from 1 to 2, but I generally agree.
- It is intended for release builds. The ReleaseSafe target will keep the checks. ReleaseFast and ReleaseSmall will remove the checks, but those aren't the recommended release modes for general software. Only for when performance or size are critical.
- And hardware access. You absolutely can't write a hardware driver without unsafe.
- I personally feel the Zig is a much better fit to the kernel. It's C interoperability is far better than Rust's, it has a lower barrier to entry for existing C devs and it doesn't have the constraints the Rust does. All whilst still bringing a lot of the advantages.
...to the extent I could see it pushing Rust out of the kernel in the long run. Rust feels like a sledgehammer to me where the kernel is concerned.
It's problem right now is that it's not stable enough. Language changes still happen, so it's the wrong time to try.
- So if you're writing a device driver in rust...
- Hardware access is unsafe - Kernel interface is unsafe
How much remains in the layer in-between that's actually safe?
- I don't understand why. Working with hardware you're going to have to do various things with `unsafe`. Interfacing to C (the rest of the kernel) you'll have to be using `unsafe`.
In my mind, the reasoning for rust in this situation seems flawed.
- Learn rust to a level where all cross language implications are understood, which includes all `unsafe` behaviour (...because you're interfacing with C).
Yes it does.
- That just highlights that the way people are interpreting the word `master` is wrong. You've named your most important branch "teacher".
- I hope you never come across a repo that has an old out-of-date `master` branch, because they moved to using `main` in a bad way.
- Master of Puppets -- Metallica
To be fair, the song is about control and the abuse of power.
- I'm also wondering what payload people want. There's already an error handling trace (similar but different to a normal stack trace) that captures the how the error propagates up to the point it's being handled so shows you exactly where the initial point was.
- My framework 12 has a similar sensor. It tells to UI when to disable the keyboard and track pad because you've got it in tablet mode.
- Microsoft is still supporting them by supplying $10bn in compute resources at cost. That's a huge recurring investment.
- A lot of people correlate it with humans moving from a vegetarian diet to a omnivorous diet.
1. Higher nutrition levels allowed the brain to grow. 2. Hunting required higher levels of strategy and tactics than picking fruit off trees. 3. Not needing to eat continuously (as we did on vegetation) to get what we needed allowed us time to put our efforts into other things.
Now did the diet cause the change, or the change necessitate the change in diet... I don't think we know.
- Absolutely. All the talk around AGI being some barrier through which unheard of glories can be unlocked sound very much like "perpetual motion machine" talk.
- China is not decarbonising. It's emissions are rocketing up.
- > Yes, but you placing your neck under that boot is a free choice.
Bollocks. We're not talking about going to a chat bot and asking questions. That's a free choice. It's insertion into every facet of online life is unavoidable and far more destructive.
- I remember him as a high level BBC executive in charge of programming, but I believe he was a presenter for a long time before that, concentrating on documentaries and journalistic pieces, particularly on the arts. He had a reputation of being very good at what he did, and I believe the period he was in charge is seen as a bit of a golden era for the BBC, especially for those not from the classical Oxbridge background.
Depends on the service, but tracking everything a user does may not be an option in terms of data retention laws