Re:Show HN: EDI – An editor in Go
by doragcoder on Wednesday August 06, 2014 @01:46PM
(#8143771)
Interesting concept. Are you planning on adding a system where you can write plug-ins in Javascript or Python for example? I saw in the blog post you were looking to adding a way to extend the editor.
[ Parent
| on HN ]
Re:Show HN: EDI – An editor in Go
by satyajitranjeev on Wednesday August 06, 2014 @02:10PM
(#8143938)
Yes in a future release I do plan to do so.
I would recommend against using multiple languages for the plugin interface. It just becomes a mess, the Sublime Text way of using Python and Python only for all the plugin system makes it extremely clean and extremely powerful. In your case maybe making all the plugins Go would be the way to go, It helps a lot with performance (not having to create an environment for each programming language) and the power (all the cool stuff you can do in Go).
Re:Show HN: EDI – An editor in Go
by georgemcbay on Wednesday August 06, 2014 @06:28PM
(#8145228)
The problem with having plugins be in Go is that dynamic linking of shared libraries (written in Go) is not very well supported right now with gc (standard Go tools, not gccgo). There are plans to address this post Go 1.4.
There are, of course, hacky ways to do plugins without shared library support (gobs via rpc to other processes or whatever), but if it were me I wouldn't spend a lot of time right now working on a Go plugin system for a Go app.
Re:Show HN: EDI – An editor in Go
by andrewchambers on Wednesday August 06, 2014 @11:13PM
(#8146122)
Google protocol buffers over stdin/stdout of subprocesses maybe.
Re:Show HN: EDI – An editor in Go
by andrewchambers on Wednesday August 06, 2014 @05:54PM
(#8145082)
There is a javascript engine written in Go called otto so you could use that for plugins. That way people can write plugins with many languages if they wish. i.e. clojurescript, typescript ,dart, etc etc
I'd rather have it use Lua: low profile, good language, trivial embedding[0], excellent performance.