Replies: 1 comment 1 reply
-
|
Previously, @kevinbentley suggested that we use WebAssembly for this purpose: #9 (comment). I like the idea of using WebAssembly because it allows us to use whatever language we want (as long as it can be compiled to WebAssembly). |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The existing method for adding specialized behavior is in the
scriptsdirectory which are compiled into DLLs, included in the.hogfile, and then loaded upon request.Problems
Solution
Replace
scriptscode with actual scripting. It has a very limited scope, so it shouldn't be too difficult.Implementation
There are a LOT of possible library options to choose from but I think it would be easiest to use PicoC (a platform agnostic C interpreter) as it should require the least amount of changes to
scriptscode. My second choice would be using libtcc from TCC but it only supports a handful of platforms because it's an actual compiler.Beta Was this translation helpful? Give feedback.
All reactions