https://github.com/pizlonator/fil-c/
Why not Fil-C lang?
- is 108k commits behind LLVM from which it is forked, and 2.3k commits ahead (ie. own commits)
- can't replay its 2.3k commits on top of latest LLVM
- i'd need/want wtw LLVM fixed in terms of bugs in those 100k commits
- looks like there's a rebase commit from Aug 2025 saying it was rebased on llvm 20.1.8 (likely the tag not the branch of it) so it's not as bad as I thought!
- as per Gemini(I didn't check/tested tho) each stack frame is heap allocated, if so, push/pop in asm would break things
- so ffmpeg,mpv,vlc shouldn't work since they've asm code (presumably doing push/pop too)
- saw a vid on yt from 1 year ago saying inline(was it?) asm isn't allowed at all because it would be like 'unsafe' code in Rust.
- works only on Linux for now
- inline asm → unconditional trap at runtime! never at compile time (fil-c 0.678 clang version 20.1.8) no flag to warn/error at compile time - this is absolutely unacceptable.
- Vlang compilation takes ~30mins, crashes at runtime, coulda saved time if it errored out at compile time!
Why yes Fil-C lang?
- has specific memory safety that I like
- is 1.5-4x (maybe? Gemini said) slower than C/C++
- doesn't need to change the C/C++ code, just recompile it.