good idea. it is a big work. i sugget use cgo as the start point: use Go implement some pure c function, then export as the c function.
for example: //export ButteraugliScoreForQuality func ButteraugliScoreForQuality(quality C.double) C.double { // go code } 在 2017年3月18日星期六 UTC+8下午4:32:47,Val写道: > > Thanks Chai! > Do you think this is something we could translate to pure go, no requiring > cgo? > I understand this would be a fair amount of work. I did a similar job > recently (translated some PVRTC stuff from c++ to go by copy-paste, then > fix everything), it went pretty well. I may try the same for Guetzli. > > Cheers > Val > > On Friday, March 17, 2017 at 6:37:43 PM UTC+1, chais...@gmail.com wrote: >> >> https://github.com/chai2010/guetzli-go >> https://github.com/google/guetzli >> >> -- 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.