since micro is written in go, can the plugin be written also in go? #4095
-
|
not in lua, it is so wordy. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
No. If you want to use Go you can fork/modify micro itself instead of implementing the desired functionality as a plugin. Go isn't a great language for plugins because it requires a compilation step (I think Go interpreters exist but I have no idea if they support the full language or are any good). Maybe you could write an adapter that communicates with binary plugins through some kind of IPC interface but it's almost certainly more trouble than it's worth. Lua is a very small language that is intended to be embedded in larger programs, so including an interpreter doesn't bloat micro's binary size that much. |
Beta Was this translation helpful? Give feedback.
No. If you want to use Go you can fork/modify micro itself instead of implementing the desired functionality as a plugin.
Go isn't a great language for plugins because it requires a compilation step (I think Go interpreters exist but I have no idea if they support the full language or are any good). Maybe you could write an adapter that communicates with binary plugins through some kind of IPC interface but it's almost certainly more trouble than it's worth. Lua is a very small language that is intended to be embedded in larger programs, so including an interpreter doesn't bloat micro's binary size that much.