before assignment operators were standardized, C code used backwards-looking operators like =+ instead of +=
the famous “you are not expected to understand this” code looked even stranger back then
Linux’s Rust debate just got bigger as systemd officially adds Rust support.
The software that boots your system and manages its services now allows developers to write new standalone components in Rust.
Support has merged into main for systemd 263. Existing C code won’t be rewritten, and core libraries will stay in C.
There are strict rules too. No Cargo, no Rust standard library. Everything builds through Meson.
The first planned component is systemd-keyring-setup, which loads certificates into Linux kernel keyrings.
Rust is becoming part of more of the software Linux runs on.
Source: https://t.co/5Bn9jsf3Q1
Got Rust hot reload, even with GPUI. Without writing any additional code into app itself.
But currently initial build is slow, it took 195.62s to build this app from scratch to have hot-reload, with Zed it takes 800s+
Have to fix that. Btw it works kinda like Vite, by exposing it's own SDK to write integrations, that allows GPUI to survive state between hot-reloads
It's name is Rite (like Vite but instead of V is R)
Understanding is the noblest of pursuits. People who actively strive to understand are pushing against uncertainty. People who give up on understanding are willingly falling into chaos.
Code optimization is absolutely fascinating.
When you multiply something by a constant (let's say 24), LLVM replaces multiplication (imul) with a combination of left shift (shl) and load effective address (lea)
Left shift by 3 is the same as multiplying by 8, load effective address does math of [base + index] in the brackets, and then stores its result.
All of this literally to save 1 cycle. Because imul takes 3 cycles, and shl and lea take 1 each.
And you can find tables with similar heuristics for a lot of different constants. These people who write optimizing compiler backends spend so much effort to save just one instruction, so don't throw it all away!
We have Jupyter notebooks in the terminal now!
📓 jOtter — A TUI for editing and running Jupyter notebooks!
💯 Inline plots, rendered LaTeX, Neovim support, automatic kernel detection & autosave!
🦀 Written in Rust & built with @ratatui_rs
⭐ GitHub: https://t.co/OrXNhbqLWs
#rustlang #ratatui #tui #jupyter #python #terminal
I don’t like cute moves like this, especially in a textbook for students. You’re kind of lying—it’s not directed at that point you’re just using (abusing) the flag. You could maybe name it something else at least, imho.