
Factorio
CppCast
00:00
How to Optimize Your Chai Scripts
Chai script is strongly typed and it is one-to-one typing with c++ anything you expose in chai script is a c ++ type. It would increase your compile times and it is pretty heavy on dynamic allocations. We had to rewrite parts of lua that when you iterate I think tables or something like that it to make it deterministic because we just need detergian simulation. Lua gives you huge power of for example you can have a mod that modifies data of other mods and it can be done procedure procedurally so these kind of these kind of things are really nice.
Transcript
Play full episode