News for hackers. Stuff that matters.
Re:On comparing languages, C++ and Go by pbsd on Saturday October 05, 2013 @05:04PM (#6502074)
Go uses an assembly syntax completely different from everyone else. That's mighty annoying.
Re:On comparing languages, C++ and Go by _ak on Saturday October 05, 2013 @05:30PM (#6502148)
Where "everyone else" is at least two different syntaxes in the first place, Intel and AT&T.
Re:On comparing languages, C++ and Go by corresation on Saturday October 05, 2013 @05:18PM (#6502117)
You can use C files and GCC syntax in your Go project. Go will use Cgo and compile it with GCC.
Re:On comparing languages, C++ and Go by RamiK on Saturday October 05, 2013 @05:18PM (#6502115)
Ha? Doesn't it work through the 'import "C"' and then it's just regular C?
Re:On comparing languages, C++ and Go by pbsd on Saturday October 05, 2013 @05:23PM (#6502125)
I meant something like this, i.e. not going through C at all: http://golang.org/src/pkg/syscall/asm_freebsd_amd64.s
Re:On comparing languages, C++ and Go by mseepgood on Saturday October 05, 2013 @06:08PM (#6502262)
It looks like AT&T assembly without the %s. Not really that weird.
Re:On comparing languages, C++ and Go by RamiK on Saturday October 05, 2013 @06:11PM (#6502273)
Oh. You mean the Plan 9 assembler... It's pretty good looking to me so I haven't really considered that an issue. I guess you're on the other side of the AT&T vs. Intel assembly fence... But just how much assembly are we writing this days anyhow? I say, just wrap it all up in Go (or C through cgo) and be done with it.