gittup / tup

Tup is a file-based build system.
http://gittup.org/tup/
GNU General Public License v2.0
1.17k stars 144 forks source link

Built-in C compiler #448

Open data-man opened 2 years ago

data-man commented 2 years ago

The best candidates in my humble opinion:

If you don't mind the idea, I can start working on it. ;)

gittup commented 2 years ago

I'm not sure what the idea is :). Can you elaborate on what you're trying to achieve?

data-man commented 2 years ago

Light-speed compiling without communication with an external compiler. :smile:

gittup commented 2 years ago

You mean tup would compile files without doing a fork()/exec()? How much time would that save vs. invoking the compiler?

And is most of the overhead of the fork/exec really just FUSE? What is the overhead of using the ldpreload server with fork/exec as compared to a built-in compiler?

data-man commented 2 years ago

You mean tup would compile files without doing a fork()/exec()?

Yes. I can't say anything until I try it. :)

gittup commented 2 years ago

I guess give it a shot and see how it goes! I imagine it could be implemented similarly to !tup_ln (mostly in parser.c and updater.c I think).

data-man commented 2 years ago

Just thought: Tiny C can be used as a very fast scripting engine. That could be a good alternative to Lua. :)

CorruptedVor commented 1 year ago

Honestly neither belong in tup, if you really want to use a programming language you can use that to generate a tupfile and then run it - perhaps from standard input instead?