Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
rsc
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
29 ms
·
271.
▲
by
rsc
13y ago
Because the GNU toolchain uses AT&T syntax and most students have the GNU toolchain readily available?
272.
▲
by
rsc
13y ago
The parser is the only part I've written so far. It took me an evening (Go has yacc).
273.
▲
by
rsc
13y ago
Not true. Plan 9's user space was written in C. Alef came later and was used for only a few programs. The bulk were still in C, including the compiler toolchain. The Alef compiler was written in C too, never in Alef. In the second edit
274.
▲
by
rsc
13y ago
Yes, and my point is that parts of the compiler date back to 1990.
275.
▲
by
rsc
13y ago
That's an interesting causality. It implies that in 1990 when Ken started writing the compiler he knew it was going to be converted to Go. I doubt it. The more likely explanation is that the same people wrote the compiler in C and desi
276.
▲
by
rsc
13y ago
That's not why goto is there. Goto is there because sometimes you want to go somewhere and goto is the best way to get there.
277.
▲
by
rsc
13y ago
What bug is that?
278.
▲
by
rsc
13y ago
No. It reuses the check that was already being done for stack growth.
279.
▲
by
rsc
13y ago
Yes, the release has not happened yet. That commit is just the penultimate step.
280.
▲
by
rsc
13y ago
fmt.Println(strings.Replace("multiple cafeterias", "cafe", "cafes", 1))
281.
▲
by
rsc
13y ago
Not true. I count "new" being used about half as often as "&Point{}" in the Go standard library. That's not "practically unused". g% cg -c -f 'g/go/src/pkg.*\.go' '\bn
282.
▲
by
rsc
13y ago
It's the same command line flag design used by other programs at Google. The C++ library, which Rob had nothing to do with, is at https://code.google.com/p/gflags/ . The major benefit is that different parts o
283.
▲
by
rsc
13y ago
I don't think that has a way to get stacks. See http://research.swtch.com/pprof for why stacks are important.
284.
▲
How To Build a User-Level CPU Profiler
(research.swtch.com)
6 points
by
rsc
13y ago
|
0 comments
285.
▲
by
rsc
13y ago
No. A related bug would be if you implement Read and (say) ReadByte, but your ReadByte is buggy. Then when you get weird behavior passing yourself to something that expects a Reader (but internally needs byte-at-a-time and uses ReadByte to
286.
▲
by
rsc
13y ago
Go developer here. I posted this on the blog too. """ This is a mistake, plain and simple. It was pointed out on the Go developer mailing list a few days before your post, and you can see my reply there. NewRequest should tak
287.
▲
by
rsc
13y ago
Go designer here. We created Go first and foremost for ourselves. Go is the language we want to be (and are) writing programs in. I haven't had this much fun writing programs in a long time. It is emphatically NOT true that Go is "created f
288.
▲
by
rsc
13y ago
Thanks for your contributions. I apologize that you've found it difficult. Just to respond to your points: 1. CLAs are a fact of life in open source to keep the lawyers happy ( http://en.wikipedia.org/wiki/Contributor_License_Agreement ). W
289.
▲
by
rsc
13y ago
Profiling Go allocations typically makes leaks clear. http://blog.golang.org/2011/06/profiling-go-programs.html If you are worried about leaking goroutines, import _ "net/http/pprof" in your web server and then visit /debug/pprof/g
290.
▲
by
rsc
13y ago
I believe gccgo already works on Solaris. http://golang.org/doc/install/gccgo
291.
▲
by
rsc
13y ago
The final return does add information. It is common to name return variables to make the meaning clear to prospective users, without using them in the body. Just to pick the first one I found, here is the definition for regexp.Match: //
292.
▲
by
rsc
14y ago
If it was so easy papers like this would not exist: http://research.google.com/archive/paxos_made_live.html
293.
▲
by
rsc
14y ago
I think you will have an easier time learning the environment if you use a 3-button mouse, but it's not a requirement. I spend some entire days in acme on a MacBook Air, and the keyboard modifiers and %-C, %-V, %-X keyboard shortcuts on the
294.
▲
by
rsc
14y ago
For acme chording, Rob carries around a tiny external 3-button mouse that he likes. I use the keyboard modifiers. Both approaches work fine.
295.
▲
by
rsc
14y ago
Sorry, my original reply with the screenshot included a command line, but it got lost in the internet tubes, and when I reposted the reply I forgot the command line. acme -f /mnt/font/ComicSansMS/16a/font is how I made the screenshot. Run f
296.
▲
by
rsc
14y ago
For a number of years in the mid-1990s I switched between Borland's IDE when using DOS and vi (not vim) and later sam when using Unix. The fact that one world had highlighting and the other didn't have it had no effect on my productivity, a
297.
▲
by
rsc
14y ago
You have a better imagination than I do, then. I don't see how you can make acme run in text mode and still be acme.
298.
▲
by
rsc
14y ago
No, but the indentation can be turned on globally using the -a flag. I always run 'acme -a'.
299.
▲
by
rsc
14y ago
No, but I do export TERM=dumb and then complain to authors of programs that still emit escape sequences.
300.
▲
by
rsc
14y ago
Yes, that's still my mouse of choice. On a Mac you need a 3rd-party tool like 'USB Overdrive' to remap the buttons correctly. On Linux you can use xmodmap.
More ›