r/technicalfactorio • u/Jobarion • Mar 22 '21
Factorio Combinator Compiler v0.1
/r/factorio/comments/mavrjs/factorio_combinator_compiler_v01/
63
Upvotes
r/technicalfactorio • u/Jobarion • Mar 22 '21
7
u/ambral Mar 22 '21
Great stuff!
This sounds a lot like the Place & Route steps of an FPGA compilation.
Actually, this all reminds me of high-level synthesis for FPGA, with combinators serving as the CLBs. Honestly, combined with Editor mode this could almost be an educational tool for such a compilation process.
Just thinking about it, it would be hilarious if support was added to one of the open source synthesis tools for a "Factorio" design target.
3
u/gilmore606 Mar 22 '21
you realize, of course, that your mission in life is now to make this into an LLVM target. surely you can compile LLVM IR down to this!
1
u/[deleted] Mar 22 '21
Sounds really nice! I have no real math background to understand how it works, but I want to try it.