Earlier quoted context omitted.
Well, C is essentially "portable assembly", so it's to be expected...
I never understood this sentiment. C isn't assembly exactly because there isn't necessarily a direct correlation between the instructions the programmer writes and the resulting machine code. To me, this is as contrived as the idea that Javascript is "LISP in Java's clothing" In what possible sense can it be described as an assembler?
Go in Go
111–120 of 156 posts
Re: Go in Go
#112Earlier quoted context omitted.
Well, C is essentially "portable assembly", so it's to be expected...
I never understood this sentiment. C isn't assembly exactly because there isn't necessarily a direct correlation between the instructions the programmer writes and the resulting machine code. To me, this is as contrived as the idea that Javascript is "LISP in Java's clothing" In what possible sense can it be described as an assembler?
Re: Go in Go
#113Earlier quoted context omitted.
No, any newer version works. You can build 1.5 with 1.5, you will be able to build 1.6 with 1.5 and 1.6.
Right, but if someone surreptitiously deleted all Go compiler binaries from the world, then we'd have to go back to compiling the C source of 1.4... Of course, that's the nature of bootstrapping! If someone managed to erase all the software from all the computers in the world, we'd have to go back and find an "Old world" Mac and use the on-die Forth compiler to write a C compiler so we could start compiling things ag…
Re: Go in Go
#114Does that mean cgo is away too ?
I don't know why I've been downvoted. Maybe my question wasn't clear. Since there is no need anymore for a C compiler in the Go toolset, how will the magic import "C" package work ?
Re: Go in Go
#115Earlier quoted context omitted.
SSA?
Internal graph representation the compiler uses for programs. llvm uses SSA form of programs as its main low level representation. The benefits of SSA is that it enables some analysis and optimization techniques.
Re: Go in Go
#116Earlier quoted context omitted.
SSA?
Internal graph representation the compiler uses for programs. llvm uses SSA form of programs as its main low level representation. The benefits of SSA is that it enables some analysis and optimization techniques.
Re: Go in Go
#117I get that you can write a program which compiles language X to machine code, e.g. how python interpreting Go to write the assembly necessary would be technically possible.
My question is, how is the compiler generated? If it's written in c, gcc -o compiler, but what is the piece I'm missing when it comes to Go compiles a Go compiler -- or is this still done as "here's the machine code, now compile the Go runtime"?
I suppose my question is a similie to "the chicken or the egg?".
Re: Go in Go
#118Earlier quoted context omitted.
It works fine on an iPhone. Tap the left or right side of the slide to go back or forward, respectively.
I have to hold the screen in landscape to not get the sides of the slides cropped off, and then I still get the address bar covering the headline after each new slide load, unless I tilt the phone to portrait and back for each slide. Horrible.
Much like HackerNews website implementation, actually.
Re: Go in Go
#119There is no slide about writing the GC in Go. How do you write a GC in a GC'd language?
Slide #9 mentions they use the unsafe package in the GC to deal with pointers as raw bits.
Can the GC be interrupted by itself if it takes too long or uses too much memory?
It seems like there are several things about the GC that would need to be special-cased, since the GC is implicitly invoked by the runtime.
Re: Go in Go
#120Earlier quoted context omitted.
It works fine on an iPhone. Tap the left or right side of the slide to go back or forward, respectively.
I have to hold the screen in landscape to not get the sides of the slides cropped off, and then I still get the address bar covering the headline after each new slide load, unless I tilt the phone to portrait and back for each slide. Horrible.