So I’ve been making a computer in Gmod, another universal turing machine, first in low level wire, then in E2, and I thought “E2 is good, cause everyone has it. But if I want my reduced instruction set CPU to compete with Black Phoenix’s ZCPU, I must make it a lua entity like he did”. But then I thought, scrap that, lua is a script language run inside of a C or C++ interpreter. Dlls have Got to give tenfold performance!
In short, I want ultimate performance of many millions of executions per second, whatever the cost. Are DLL’s really faster than Lua in this matter and how do I write a DLL for garrysmod? I can program C but are there any references on like how does lua run a function from a dll and is there anything special to know?