Re: [go-nuts] Using the new plugin API to create a Go REPL

2016-11-25 Thread Seb Binet
On Fri, Nov 25, 2016 at 9:41 AM, Jason Stillwell 
wrote:

> https://github.com/dragonfax/go_repl_plugin_example
>
> Its just a toy, but I thought it was an interesting idea.
>
> You compile a plugin with the code the user typed, and then load that into
> the process and execute it.
>

Nice!

I believe though that the "plugin" package can't really be the central tool
to build a REPL.
having a new plugin being built for each new command entered, won't scale
very far :)

it could be used as a nice stop gap solution for a JIT, though.

Feel free to reach out to the go-interpreter community:
 https://github.com/go-interpreter
 https://gophers.slack.com/messages/go-interpreter

-s

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] Using the new plugin API to create a Go REPL

2016-11-25 Thread Jason Stillwell
https://github.com/dragonfax/go_repl_plugin_example

Its just a toy, but I thought it was an interesting idea.

You compile a plugin with the code the user typed, and then load that into 
the process and execute it.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.