[go-nuts] Re: [ANN] DCLua - Lua 5.3 VM and compiler for Go

2016-10-25 Thread chris.lu via golang-nuts
Thanks! I will try to use it in my project, which is a map reduce system in pure Go. But the computation is in Lua. Currently it support calling Luajit via an external OS process. https://github.com/chrislusf/gleam Maybe you can also post some perf numbers? Chris On Tuesday, October 25, 2016

[go-nuts] reading with scanner.Bytes()

2016-08-29 Thread chris.lu via golang-nuts
I am reading a file line by line, and send it to a chan []byte, and consume it on another goroutine. However, I found I must create a new []byte, because the scanner.Bytes() returned a []byte slice that's shared, and the scanner may still write to the []byte slice. How to efficiently create a