3 ms·
Write certain operations (like math- or string-heavy functions) in c and bundle that as a shared library. AFAIK this is what vscode does and why it runs so fas
by earenndil 8y ago
Write certain operations (like math- or string-heavy functions) in c and bundle that as a shared library. AFAIK this is what vscode does and why it runs so fast.
- stockkid 8y agoCould you point to a resource or a doc? Would it be possible to do something like that but in Go?
- calligraphic 8y agoYou could do it via Node.js native modules.
- earenndil 8y agoI'm not quite sure how it works in javascript, but I would look up javascript cffi or electron cffi or something like that to find how to do it. As for go, it might be possible, but it'll definitely be harder. You'll have to find how to expose a c api to your go code.
- InGodsName 8y agoI write in rust, look into native extension, nodejs