https://github.com/ry/v8worker Minimal golang binding to V8. This exposes a non-blocking message passing interface to the V8 javascript engine. Go and JavaScript interact by sending and receiving messages. V8 will block a thread (goroutine) only while it computes javascript - it has no “syscalls” other than sending and receiving messages to Go. There are only three built in functions exposed to javascript: $print(string), $send(msg), and $recv(callback)
目前项目处于早期状态,不知道未来会有怎样的影响
12 回复