Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
psyclobe
1mo ago
0 comments
Save
Share
Cause its dead simple. Shell out, run a quick sed or something, then compile it in. It is quite amazing what 'magic meta' stuff you can do with that shit. Meanwhile 10 years in we are finally getting reflection.....
0 comments
1 comments · 1 top-level
top
newest
oldest
SleepyMyroslav
1mo ago
C++ is often cross compiled from mostly identical sources. Here is an example from Zig [1] that explains why it is not that simple.
1.
https://matklad.github.io/2025/04/19/things-zig-comptime-won...
j
/
k
navigate · click thread line to collapse