<div dir="ltr"><div><span style="color:rgb(33,33,33);font-size:13px">Hi folks,</span></div><div><span style="color:rgb(33,33,33);font-size:13px"><br></span></div><div><font color="#212121">A while ago I snapped llgo, the Go frontend for LLVM. At the time, classic snaps were not a thing, and so the snap had limited functionality. I've updated it to use classic confinement, so you can use the compiler toolchain as you would normally.</font></div><div><span style="color:rgb(33,33,33);font-size:13px"><br></span></div><span style="color:rgb(33,33,33);font-size:13px">$ sudo snap install --classic llgo</span><br class="gmail_msg" style="color:rgb(33,33,33);font-size:13px"><div><span style="color:rgb(33,33,33);font-size:13px">$ llgo version</span></div><div><div><font color="#212121">go version go1.5.1 llgo version 5.0.0 (go1.4.2) linux/amd64</font></div><div style="color:rgb(33,33,33)"><span style="font-size:13px">$ llgo </span>run ...</div></div><div style="color:rgb(33,33,33)"><br></div><div style="color:rgb(33,33,33)">The llgo interpreter is still available, but as it is part of the same snap it is no longer confined:</div><div style="color:rgb(33,33,33)"><br></div><div style="color:rgb(33,33,33)">$ llgo.llgoi</div><div style="color:rgb(33,33,33)">(llgo) import "fmt"</div><div style="color:rgb(33,33,33)">(llgo) fmt.Println("hello, world")</div><div style="color:rgb(33,33,33)">hello, world<br></div><div style="color:rgb(33,33,33)">13</div><div style="color:rgb(33,33,33)"><nil></div><div style="color:rgb(33,33,33)"><br></div><div style="color:rgb(33,33,33)">I have also exposed the llgo compiler as "llgo.compiler", so you can generate LLVM IR, for example:</div><div style="color:rgb(33,33,33)"><br></div><div style="color:rgb(33,33,33)">$ llgo.compiler -emit-llvm -S -o - main.go</div><div style="color:rgb(33,33,33)">; ModuleID = 'main'</div><div style="color:rgb(33,33,33)">source_filename = "main"</div><div style="color:rgb(33,33,33)">target datalayout ...</div><div style="color:rgb(33,33,33)"><br></div><div style="color:rgb(33,33,33)">Cheers,</div><div style="color:rgb(33,33,33)">Andrew</div></div>