Chad Smith (@cs01_software) profile picture

SWE at meta, love creating things and solving problems. Previously worked in aerospace on safety critical software/GNC. Created pipx, gdbgui, other things.

Joined January 2022
Photo by Chad Smith (@cs01_software)Photo by Chad Smith (@cs01_software)Photo by Chad Smith (@cs01_software)Photo by Chad Smith (@cs01_software)Photo by Chad Smith (@cs01_software)Photo by Chad Smith (@cs01_software)Photo by Chad Smith (@cs01_software)Photo by Chad Smith (@cs01_software)Photo by Chad Smith (@cs01_software)Photo by Chad Smith (@cs01_software)
C has been getting more memory safety features in clang. You can now express buffer sizes, lifetimes, and which lock guards which data. This is a great start, but I believe C, of all languages, can get far closer to Rust-level safety than anyone realizes. 🧵
16
30
7
271
10,270
So can we make C as safe as Rust? Not yet. This proof of concept doesn't cover concurrency, may be unsound, and I probably missed things. But by leveraging clang features and adding new ones, it gets much closer than standard C, maintains compatibility, and is still just C.
1
6
270
Should this direction be pursued further? Would love to know your thoughts! github.com/cs01/llvm-project…
2
1
11
261
AOT TypeScript: - Bun - Scriptc - Perry AOT Python: - ??? Who is making python super fast without changing the language like they are for TS/JS?
1
1
174