News for hackers. Stuff that matters.
Re:Using TinyCC to compile Linux (2.4) kernels by londons_explore on Monday June 13, 2022 @01:22PM (#31728570)
You could take this one step further and have some magic filesystem filter such that all binaries are compiled before use. Ie. your hard disk would contain no executable code, only source code.

It sounds slow, but it needn't be if you have the right caching in place. Binaries could even be recompiled with better/slower compilers as needed to give better performance too.

Now I think about it it isn't so different from the android/java model of shipping applications as bytecode...

Re:Using TinyCC to compile Linux (2.4) kernels by wongarsu on Monday June 13, 2022 @03:04PM (#31730100)
I guess that's the logical extreme of what Gentoo is doing, just without the speed benefits (since the compiler is under time pressure and thus won't do a great job). Maybe if you combine it with profile guided optimization? (Yes, this is basically reinventing Java/.NET)
Re:Using TinyCC to compile Linux (2.4) kernels by jesprenj on Monday June 13, 2022 @06:25PM (#31732541)
tcc has a -run option argument which executes the binary after creating it as a temporary file. This way tcc -run can be specified in the shebang and you can execute c code like a script, which is outright amazing.
Re:Using TinyCC to compile Linux (2.4) kernels by goldsteinq on Tuesday June 14, 2022 @03:45AM (#31735933)
TempleOS does this