--- Log opened Mon Jan 24 00:00:05 2011
00:02 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
00:07 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
00:10 -!- cafesofie [~cafesofie@dhcp-140-254-202-158.osuwireless.ohio-state.edu]
has joined #go-nuts
00:12 -!- virtualsue [~chatzilla@93-97-62-8.zone5.bethere.co.uk] has joined
#go-nuts
00:12 -!- virtualsue [~chatzilla@93-97-62-8.zone5.bethere.co.uk] has quit [Remote
host closed the connection]
00:18 -!- bmizerany [~bmizerany@adsl-99-40-54-193.dsl.pltn13.sbcglobal.net] has
quit [Remote host closed the connection]
00:27 -!- bmizerany [~bmizerany@99-117-97-46.lightspeed.sntcca.sbcglobal.net] has
joined #go-nuts
00:29 -!- bookses [~john@60.221.255.188] has joined #go-nuts
00:29 -!- Tuller [~tuller@c-69-143-52-174.hsd1.va.comcast.net] has quit [Remote
host closed the connection]
00:31 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-162-243.clienti.tiscali.it] has
quit [Quit: E se abbasso questa leva che succ...]
00:34 -!- boscop__ [~boscop@f055157200.adsl.alicedsl.de] has quit [Ping timeout:
240 seconds]
00:35 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
00:44 -!- kosiini [~janne@pdpc/supporter/student/kosiini] has quit [Quit:
Lähdössä]
00:44 -!- bookses [~john@60.221.255.188] has quit [Quit: Leaving.]
00:45 -!- bookses [~john@60.221.255.188] has joined #go-nuts
00:46 -!- bookses [~john@60.221.255.188] has quit [Client Quit]
00:47 -!- Tv [~tv@cpe-76-168-227-45.socal.res.rr.com] has quit [Ping timeout: 240
seconds]
00:56 -!- cenuij- [~cenuij@base/student/cenuij] has quit [Remote host closed the
connection]
01:02 -!- TheSeeker [~n@99-153-250-110.lightspeed.irvnca.sbcglobal.net] has joined
#go-nuts
01:04 < temoto> Desperately seeking for any techniques for profiling memory.
At least, i want to understand why so much memory is used, even if it's not a
leak.  Any suggestions?
01:05 < temoto> i know that final tools are not ready yet.  maybe there is
something i could try manually
01:14 -!- Scorchin [~Scorchin@host86-181-88-61.range86-181.btcentralplus.com] has
quit [Quit: Scorchin]
01:16 < TheSeeker> Go never releases any memory it allocates back to the OS.
so memory usage will always == peak memory usage.
01:18 -!- saturnfive [~saturnfiv@210.74.155.131] has joined #go-nuts
01:21 -!- bmizerany [~bmizerany@99-117-97-46.lightspeed.sntcca.sbcglobal.net] has
quit [Ping timeout: 265 seconds]
01:21 -!- viirya [~viirya@cml506-25.csie.ntu.edu.tw] has quit [Ping timeout: 240
seconds]
01:25 < uriel> there is quite a bit of info one can get from the GC I think,
check the mailing list archives
01:26 < uriel> I'm quite sure russ and others have said something about this
01:28 -!- bmizerany [~bmizerany@99-117-97-46.lightspeed.sntcca.sbcglobal.net] has
joined #go-nuts
01:30 -!- aviflax [~avi@207-237-116-129.c3-0.nyr-ubr1.nyr.ny.cable.rcn.com] has
joined #go-nuts
01:30 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
01:51 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Ping timeout: 276 seconds]
01:54 < temoto> Not returning memory is pretty sad, but the problem is more
like program uses 10 times more memory than i expect.
01:54 -!- mosva [~mosva@unaffiliated/mosva] has joined #go-nuts
01:55 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Remote host closed the connection]
01:56 -!- bmizerany [~bmizerany@99-117-97-46.lightspeed.sntcca.sbcglobal.net] has
quit [Remote host closed the connection]
02:00 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
02:20 -!- bmizerany [~bmizerany@c-76-21-40-207.hsd1.ca.comcast.net] has joined
#go-nuts
02:33 -!- bmizerany [~bmizerany@c-76-21-40-207.hsd1.ca.comcast.net] has quit [Ping
timeout: 240 seconds]
02:33 -!- bmizerany [~bmizerany@74.sub-75-208-7.myvzw.com] has joined #go-nuts
02:36 -!- skejoe [~skejoe@188.114.142.162] has quit [Quit: Lost terminal]
02:38 -!- allengeorge [~allengeor@70.26.100.141] has joined #go-nuts
02:39 -!- bmizerany [~bmizerany@74.sub-75-208-7.myvzw.com] has quit [Remote host
closed the connection]
02:44 -!- KBme [~KBme@9angled-2-pt.tunnel.tserv5.lon1.ipv6.he.net] has quit [Ping
timeout: 260 seconds]
02:53 -!- KBme [~KBme@9angled-2-pt.tunnel.tserv5.lon1.ipv6.he.net] has joined
#go-nuts
02:53 -!- cafesofie [~cafesofie@dhcp-140-254-202-158.osuwireless.ohio-state.edu]
has quit [Remote host closed the connection]
02:53 -!- aviflax [~avi@207-237-116-129.c3-0.nyr-ubr1.nyr.ny.cable.rcn.com] has
quit [Quit: aviflax]
03:08 -!- LeNsTR [~lenstr@unaffiliated/lenstr] has quit [Quit: LeNsTR]
03:09 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
03:21 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
03:31 -!- cafesofie [~cafesofie@rnwifi-164-107-92-181.resnet.ohio-state.edu] has
joined #go-nuts
03:42 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
03:44 -!- viirya [~viirya@cml506-25.csie.ntu.edu.tw] has joined #go-nuts
03:46 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Client Quit]
04:01 -!- jdp [~justin@24.238.32.162.res-cmts.segr.ptd.net] has quit [Remote host
closed the connection]
04:06 -!- mosva [~mosva@unaffiliated/mosva] has quit [Read error: Connection reset
by peer]
04:06 -!- mosva [~mosva@unaffiliated/mosva] has joined #go-nuts
04:18 -!- brownee [~brownee@209.34.56.106] has quit [Ping timeout: 272 seconds]
04:25 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 276 seconds]
04:44 -!- allengeorge [~allengeor@70.26.100.141] has quit [Quit: allengeorge]
04:44 -!- rgiles [~rgiles@67-41-143-87.hlrn.qwest.net] has joined #go-nuts
04:45 < rgiles> hey, having problems compiling go!  on Ubuntu 10.10 any
suggestions?
04:45 < rgiles> It hangs on pkg/net
04:45 < cbeck> Testing or building?
04:46 < rgiles> building
04:46 < rgiles> I run all.bash and it goes fine until pkg/net
04:46 < rgiles> then it just stays there
04:46 < rgiles> no more output
04:46 < rgiles> I can wait for hours but it's just hung
04:51 -!- adu [~ajr@pool-72-83-254-159.washdc.fios.verizon.net] has joined
#go-nuts
05:12 -!- vinisterx [~ryan@74-129-194-67.dhcp.insightbb.com] has quit [Ping
timeout: 240 seconds]
05:31 < quantumelixir> Are interface values implemented as a union of the
types that implement it?
05:41 < cbeck> No
05:41 < quantumelixir> How, then, can they store a value of any type that
implements that interface?
05:42 < cbeck> They hold a pointer
05:43 < quantumelixir> But I just read in the tutorial slides (2nd of 3)
that they don't
05:43 < quantumelixir> which is why I'm asking this in the first place
05:43 < Namegduf> They do.
05:43 < quantumelixir> Oh, am I missing something then?
05:44 < cbeck> 2nd of 3?
05:44 < quantumelixir> Page 55 of the 2nd slide
05:44 < Namegduf> They're two-member struct containing a pointer to an
itable for the methods in the type, and a pointer to the value, or the value if
the value itself is smaller than the pointer.
05:45 < quantumelixir> Oh, that's why I got confused.
05:46 < quantumelixir> And the vector package that Go provides isn't really
a vector in the C++ sense of the word is it?
05:46 < quantumelixir> because of what you just said
05:47 < quantumelixir> It's more like a vector<*T>
05:48 < quantumelixir> Namegduf: Once they store a pointer, where do they
store the type information?
05:48 < quantumelixir> s/they/the interface values/
05:49 < quantumelixir> oh, they don't?
05:49 < Namegduf> From the itable.
06:05 < mosva> anyone use gocode?
06:06 -!- fabled [~fabled@mail.fi.jw.org] has joined #go-nuts
06:11 < taruti> mosva: I do with emacs
06:14 < mosva> What did nsf use to make it look like
http://i.imgur.com/nyqUX.png
06:15 < taruti> that screenshot is from vim
06:20 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
06:22 -!- rgiles [~rgiles@67-41-143-87.hlrn.qwest.net] has left #go-nuts []
06:28 -!- creack [~charme_g@163.5.84.215] has quit [Ping timeout: 240 seconds]
06:43 -!- vermi [959f7527@gateway/web/freenode/ip.149.159.117.39] has joined
#go-nuts
06:46 < vermi> I'm trying to figure out how to take this JSON response
http://www.chalamius.se/quotes/api/json/search/kawaii and decode each object into
a map[string]interface{}
06:46 < vermi> i believe i need to unmarshal it into a []interface{} first,
but after that I'm a bit lost
06:47 -!- nettok [~quassel@200.119.190.71] has joined #go-nuts
06:47 -!- nettok_ [~quassel@200.119.170.118] has quit [Ping timeout: 241 seconds]
06:48 < vermi> sorry http://www.chalamius.se/quotes/api/json/search/vermi is
a better example
06:48 < taruti> vermi: why not decode it into a []map[string]interface{} ?
06:48 < vermi> i hadn't thought of that
06:49 < vermi> i'll give it a go!  thanks :D
06:50 -!- vermi [959f7527@gateway/web/freenode/ip.149.159.117.39] has quit [Quit:
Page closed]
07:02 -!- zozoR [~zozoR@56346ed3.rev.stofanet.dk] has joined #go-nuts
07:03 -!- nettok_ [~quassel@200.119.190.71] has joined #go-nuts
07:04 -!- nettok [~quassel@200.119.190.71] has quit [Ping timeout: 240 seconds]
07:11 -!- vermi [959f7527@gateway/web/freenode/ip.149.159.117.39] has joined
#go-nuts
07:11 < vermi> is for i; i <= 5; searchResult = range reply {
blahblahblah } a valid for loop?
07:14 < vermi> or would for i <= 5, searchResult = range reply { } do
what i'm trying to do there?
07:15 -!- vinisterx [~ryan@74-129-194-67.dhcp.insightbb.com] has joined #go-nuts
07:16 -!- quantumelixir [~chillu@203.110.240.41] has quit [Quit: leaving]
07:16 -!- quantumelixir [~chillu@203.110.240.41] has joined #go-nuts
07:17 -!- quantumelixir [~chillu@203.110.240.41] has quit [Client Quit]
07:18 -!- piranha [~piranha@5ED4B890.cm-7-5c.dynamic.ziggo.nl] has joined #go-nuts
07:22 -!- Project_2501 [~Marvin@82.84.77.236] has joined #go-nuts
07:26 -!- vinisterx [~ryan@74-129-194-67.dhcp.insightbb.com] has quit [Ping
timeout: 240 seconds]
07:31 -!- LeNsTR [~lenstr@unaffiliated/lenstr] has joined #go-nuts
07:35 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts
07:41 -!- piranha [~piranha@5ED4B890.cm-7-5c.dynamic.ziggo.nl] has quit [Quit:
Computer has gone to sleep.]
07:49 -!- vinisterx [~ryan@74-129-194-67.dhcp.insightbb.com] has joined #go-nuts
07:50 -!- iLeNsTR [~lenstr@unaffiliated/lenstr] has quit [Quit: iLeNsTR]
07:50 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
07:51 -!- LeNsTR_ [~lenstr@unaffiliated/lenstr] has joined #go-nuts
07:51 -!- LeNsTR_ [~lenstr@unaffiliated/lenstr] has quit [Client Quit]
07:52 -!- Ina [~Ina@524AF477.cm-4-3d.dynamic.ziggo.nl] has quit [Ping timeout: 255
seconds]
07:55 -!- Sgeo [~Sgeo@ool-18bf618a.dyn.optonline.net] has quit [Ping timeout: 240
seconds]
08:11 -!- wrtp [~rog@92.17.39.246] has joined #go-nuts
08:11 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
08:12 -!- piranha [~piranha@5ED42E59.cm-7-5a.dynamic.ziggo.nl] has joined #go-nuts
08:15 -!- accel [~accel@unaffiliated/accel] has joined #go-nuts
08:15 < accel> for go, although I don't control the garbage collector,
08:15 < accel> do I control the memory layout?
08:22 < plexdev> http://is.gd/augR6m by [Andrew Gerrand] in go/ -- A+C:
Pieter Droogendijk
08:22 < plexdev> http://is.gd/oD1k3a by [Pieter Droogendijk] in
go/src/pkg/json/ -- json: handle capital floating point exponent (1E100).
08:30 < wrtp> accel: do you mean the layout of the heap?
08:31 -!- dforsyth [~dforsyth@c-76-21-40-117.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
08:31 < accel> not of the heap
08:31 -!- dforsyth [~dforsyth@c-76-21-40-117.hsd1.ca.comcast.net] has joined
#go-nuts
08:31 < accel> of structs
08:31 < accel> in ocaml for eample, if I define a struct, I'm not even
guaranteed that the elements are in a continuous memory block
08:31 < accel> if I have an array of structs; it's actually an array of
pointers to the structs
08:32 < accel> wrtp: I want a setup where I have some control over how
structs; and arrays are laid out
08:32 < accel> it doesn't have to be C "packed"; it needs only be continuous
block
08:32 < wrtp> accel: yes, you have that guarantee in go
08:32 < accel> wrtp: cool; one more thing
08:32 < accel> does go have a pre processor?
08:32 < wrtp> no
08:32 < wrtp> deliberately
08:33 < accel> are there any interesting probjects that provide a
preprocessor for go?
08:33 < wrtp> why do you want a preprocessor?
08:33 < accel> becuse I want to build a DSL on top of go
08:33 < wrtp> well, if you want a DSL, there's always yacc, and it's not
hard to spit out go code at the other end
08:34 < Tonnerre> Wasn't there also a goyacc?
08:35 < wrtp> yes, sorry, i meant goyacc when i said yacc
08:35 < accel> suppose I do: goyacc blah.dsl -> blah.go
08:35 < accel> is there a way to get lines in blah.go to correspond to the
right lines in blah.dsl ?
08:36 < wrtp> that's not really how yacc works
08:36 < accel> I've used yacc before; say: "mydsl-converter blah.dsl ->
blah.go"
08:36 < wrtp> yeah, that's more like it
08:37 < wrtp> i *think* there might be a facility in go for the output go
file to reference input file numbers
08:37 < wrtp> what also might help your DSL is that the Go parser is also
available as a go library
08:37 < wrtp> so if you want to embed fragments of go into your DSL, that's
quite easy
08:39 < wrtp> /line 106 foo.dsl
08:39 < wrtp> should say that the next line in the output file corresponds
to line 106 of the dsl input file
08:40 < wrtp> oops
08:40 -!- vermi [959f7527@gateway/web/freenode/ip.149.159.117.39] has quit [Quit:
Page closed]
08:40 < wrtp> i means //line 106 foo.dsl
08:40 < wrtp> s/means/meant/
08:40 < accel> wrtp: I no longer have an excuse to not use go
08:40 < accel> wrtp: thanks for your insights
08:40 < wrtp> no problem
08:40 < wrtp> have fun
08:43 -!- adu [~ajr@pool-72-83-254-159.washdc.fios.verizon.net] has quit [Quit:
adu]
08:45 -!- quantumelixir [~chillu@203.110.240.41] has joined #go-nuts
08:46 -!- boscop__ [~boscop@f055161092.adsl.alicedsl.de] has joined #go-nuts
08:46 -!- zozoR [~zozoR@56346ed3.rev.stofanet.dk] has quit [Ping timeout: 250
seconds]
08:47 -!- zozoR [~zozoR@56346ed3.rev.stofanet.dk] has joined #go-nuts
08:50 -!- vermi [959f7527@gateway/web/freenode/ip.149.159.117.39] has joined
#go-nuts
08:52 < vermi> having trouble getting this to stop when the index hits 4:
http://pastie.org/1492071
08:55 -!- temoto [~temoto@89-178-204-23.broadband.corbina.ru] has quit [Ping
timeout: 265 seconds]
08:57 < accel> where is the go ffi?
08:57 < accel> i assume it must abe able to interafce nicely with C
08:58 < KirkMcDonald> There is cgo.
08:58 < accel> http://golang.org/cmd/cgo/ nice
08:59 < accel> so basically the ffi is: include the header files, you can
call it's function and access it's structs
08:59 < rm445> vermi: 'A "break" statement terminates execution of the
innermost "for", "switch" or "select" statement.'
08:59 < rm445> I guess what you want is a goto, or an 'if' instead of a
switch
09:00 < vermi> rm445: i had an if i == 4 { break } in there before, and it
still wasn't stopping.
09:02 < vermi> ooh
09:02 < vermi> adding a label seems to have done the trick
09:03 < vermi> so now it's http://pastie.org/1492071
09:03 < vermi> and works fine
09:03 < vermi> thanks for your suggestion~ :D
09:04 < rm445> accel: as I understand it, the FFI is more like 'write a go
package that wraps the library you want to use'.  (perhaps this is just stating
the obvious, but my point is most of your program sees your Go interface rather
than the C functions, I think)
09:05 < rm445> vermi: I'm pretty sure if i==4 break works too.  Break isn't
magic, it just breaks out of the innermost thing as you'd expect.
09:07 < vermi> rm445: yeah; i expected the if statement to work myself, but
it did not, which is why I went to the switch statement, thinking that might help.
But it didn't occur to me that it was breaking out of the switch itself...
09:09 < rm445> http://pastie.org/1492087 << vermi: this ultra-simple
example works (stops at i=4), can't say what your real code might have been doing.
09:09 -!- Kashia [~Kashia@port-92-200-22-196.dynamic.qsc.de] has quit [Ping
timeout: 250 seconds]
09:10 < vermi> well, thanks for your assistance :D
09:10 -!- vermi [959f7527@gateway/web/freenode/ip.149.159.117.39] has quit [Quit:
Page closed]
09:11 -!- adu [~ajr@pool-72-83-254-159.washdc.fios.verizon.net] has joined
#go-nuts
09:11 < rm445> :-)
09:15 -!- snearch [~snearch@f053001103.adsl.alicedsl.de] has joined #go-nuts
09:24 -!- yebyen [~yebyen@martyfunkhouser.csh.rit.edu] has quit [Ping timeout: 260
seconds]
09:25 -!- [dmp] [~dennis@unaffiliated/dmp/x-546784] has joined #go-nuts
09:37 -!- dRbiG [drbig@insomniac.pl] has joined #go-nuts
09:43 -!- skejoe [~skejoe@188.114.142.162] has joined #go-nuts
09:52 -!- visof [~visof@unaffiliated/visof] has joined #go-nuts
09:52 < visof> hello
09:59 -!- skejoe [~skejoe@188.114.142.162] has quit [Quit: Lost terminal]
10:01 < hokapoka> ahem...  erm, what's the escape sequencne for a bool in
Printf?
10:04 < rm445> %t
10:07 -!- Project-2501 [~Marvin@82.84.80.94] has joined #go-nuts
10:08 -!- Project_2501 [~Marvin@82.84.77.236] has quit [Ping timeout: 255 seconds]
10:12 -!- quantumelixir [~chillu@203.110.240.41] has quit [Quit: leaving]
10:16 -!- nettok_ [~quassel@200.119.190.71] has quit [Ping timeout: 240 seconds]
10:19 < hokapoka> rm445: sweet, worked a treat, many thanks.
10:21 -!- adu [~ajr@pool-72-83-254-159.washdc.fios.verizon.net] has quit [Remote
host closed the connection]
10:29 -!- saturnfive [~saturnfiv@210.74.155.131] has quit [Read error: Connection
reset by peer]
10:30 -!- shvntr [~shvntr@123.64.95.114] has joined #go-nuts
10:34 -!- Ina [~Ina@62.140.137.126] has joined #go-nuts
10:43 < wrtp> wow, i never realised there was a Printf verb specific to
bools.  i always just used %v
10:43 -!- skejoe [~skejoe@188.114.142.162] has joined #go-nuts
10:46 -!- xash [~xash@d063078.adsl.hansenet.de] has joined #go-nuts
10:56 -!- temoto [~temoto@81.19.91.9] has joined #go-nuts
10:59 -!- apexo [~apexo@apexo.de] has joined #go-nuts
10:59 -!- ap3xo [~apexo@daedalus.isaco.de] has quit [Quit: ZNC -
http://znc.sourceforge.net]
11:00 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3]
11:03 < mosva> wrtp, ;)
11:04 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has quit
[Quit: Ex-Chat]
11:05 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has joined
#go-nuts
11:07 -!- dforsyth [~dforsyth@c-76-21-40-117.hsd1.ca.comcast.net] has quit [Quit:
Computer has gone to sleep.]
11:12 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
11:14 -!- Skola [~ik@5352A3FB.cm-6-3c.dynamic.ziggo.nl] has joined #go-nuts
11:21 -!- acetoline [~acetoline@122.58.180.208] has quit [Ping timeout: 264
seconds]
11:25 -!- shvntr [~shvntr@123.64.95.114] has quit [Ping timeout: 240 seconds]
11:27 -!- shvntr [~shvntr@116.26.131.57] has joined #go-nuts
11:32 -!- zozoR [~zozoR@56346ed3.rev.stofanet.dk] has quit [Quit: Morten.  Desu~]
11:38 -!- artefon [~thiago@189.59.187.100] has joined #go-nuts
11:39 -!- Mr_Dark [~dk@poviko.demon.nl] has quit [Read error: No route to host]
11:39 -!- tensorpudding [~user@99.23.127.179] has quit [Read error: Connection
reset by peer]
11:40 -!- Mr_Dark` [~dk@poviko.demon.nl] has joined #go-nuts
11:44 -!- tvw [~tv@e176005183.adsl.alicedsl.de] has joined #go-nuts
11:56 < visof> hello
11:56 < visof> is there a good tutorial for starting in learning Go ?
11:57 < xash> http://golang.org/doc/go_tutorial.html
11:58 < jumzi> Yeah check the website, often a good start ^^
12:01 -!- niemeyer [~niemeyer@189.30.51.233] has joined #go-nuts
12:04 < mpl> so I have a bytestream, and I want to put parts of it as
indexes of a map.  since []byte can't be used as an index I just convert each
slice to a string beforehand.  from what I understood in the spec, this operation
is completely reversible and I can convert those strings to slices again in any
case, right?
12:10 -!- accel [~accel@unaffiliated/accel] has quit [Ping timeout: 260 seconds]
12:12 -!- accel [~accel@unaffiliated/accel] has joined #go-nuts
12:19 < mosva> visof, http://miek.nl/files/go/20110124-go.pdf
12:19 < mosva> best way to start learning go
12:19 < mosva> Everything is explained and in order
12:19 -!- allengeorge [~allengeor@70.26.100.141] has joined #go-nuts
12:20 < visof> mosva: thanks
12:21 -!- xash [~xash@d063078.adsl.hansenet.de] has quit [Ping timeout: 250
seconds]
12:21 -!- allengeorge [~allengeor@70.26.100.141] has quit [Client Quit]
12:36 -!- ExtraSpice [~XtraSpice@88.118.33.48] has joined #go-nuts
12:44 -!- jcdny [~davis@mailrelay1.pbclients.com] has joined #go-nuts
12:45 -!- quantumelixir [~chillu@203.110.240.41] has joined #go-nuts
12:48 -!- xash [~xash@d126206.adsl.hansenet.de] has joined #go-nuts
12:50 < wrtp> mpl: yes
12:50 < wrtp> mpl: although you get an allocation and a copy each time
12:53 < mosva> wrtp, why can't we use []byte as index?
12:53 < mosva> because its a reference type?
12:53 < wrtp> yup
12:53 < mosva> can we use struct?
12:53 -!- artefon [~thiago@189.59.187.100] has quit [Quit: bye]
12:53 < wrtp> mosva: no
12:54 < wrtp> there's no particularly good reason there
12:54 < wrtp> except that equality is not defined on structs
12:54 < wrtp> and maps only allow types for which equality is defined
12:54 < mosva> but a value can be struct.  right?
12:57 < wrtp> yeah, a value can be anything at all
12:59 < Namegduf> Convert the []byte to a string
13:00 < mpl> wrtp: hmm from my tests, I was starting to believe the
contrary.
13:10 < mpl> wrtp: can you see what I'm doing wrong here (wanted to check
that the conversion back and forth was ok)?  http://pastebin.com/REa0BLnA
13:12 < wrtp> mpl: you can't use []byte as a key, only as a value
13:12 < wrtp> oh sorry, that's not what you're doing
13:12 < wrtp> to convert a []byte x to a string, all you need to is
string(x)
13:13 < wrtp> s/need to/need to do/
13:13 < mpl> I know.
13:13 < mpl> that piece of code was meant to check that I can convert all
the bytes by slices of length 2 to strings, and then get the same back when I
convert back to []byte.
13:16 -!- visof [~visof@unaffiliated/visof] has quit [Read error: Operation timed
out]
13:19 -!- visof [~visof@41.233.117.228] has joined #go-nuts
13:19 < temoto> You can't use []byte as key, because meaningful part of
[]byte is mutable.
13:19 < wrtp> mpl: you never assign to B
13:20 < wrtp> to B[i] i mean
13:20 < mpl> wrtp: ah indeed, I typoed it with b, thx
13:20 < temoto> I wish there was an 'immutable' type modificator.
13:21 < mpl> serves me right for using b and B as var names
13:21 < mpl> yep, all good now, thx.
13:27 < wrtp> mpl: here's a slightly more idiomatic version:
http://pastebin.com/YMXYYJEv
13:29 -!- leczb [~leczb@nat/google/x-grovjptsduvbhphw] has joined #go-nuts
13:31 -!- accel [~accel@unaffiliated/accel] has quit [Quit: leaving]
13:33 < mpl> ah yes, with ranges.  I only have the range reflex with maps.
13:40 -!- DerHorst [~Horst@e176118076.adsl.alicedsl.de] has joined #go-nuts
13:51 -!- cafesofie [~cafesofie@rnwifi-164-107-92-181.resnet.ohio-state.edu] has
quit [Remote host closed the connection]
13:52 -!- virtualsue [~chatzilla@nat/cisco/x-xbacpvzghweoozgu] has joined #go-nuts
13:53 -!- cafesofie [~cafesofie@rnwifi-164-107-92-181.resnet.ohio-state.edu] has
joined #go-nuts
13:57 -!- cafesofie [~cafesofie@rnwifi-164-107-92-181.resnet.ohio-state.edu] has
quit [Remote host closed the connection]
13:57 -!- Project_2501 [~Marvin@82.84.77.11] has joined #go-nuts
13:59 -!- Project_2501 [~Marvin@82.84.77.11] has quit [Client Quit]
14:00 -!- fzzbt [~fuzzybyte@77.79.7.8] has quit [Ping timeout: 255 seconds]
14:00 -!- fzzbt [~fuzzybyte@77.79.7.8] has joined #go-nuts
14:01 -!- Project-2501 [~Marvin@82.84.80.94] has quit [Ping timeout: 276 seconds]
14:01 < visof> 3 hours for "make" for gccgo and still working
14:01 < KBme> wth?
14:01 < KBme> oh, you're compiling gcc?
14:02 < KBme> even then, what machine is this?  a 486DX2?
14:03 < visof> KBme: what ?
14:03 < visof> where can i find bin for gccgo ?
14:03 -!- cafesofie [~cafesofie@rnwifi-164-107-92-181.resnet.ohio-state.edu] has
joined #go-nuts
14:04 < KBme> visof: 3 hours is very long, is this a slow machine?
14:04 < visof> it's Dell latitude D620 with 1.6 Ghz core 2
14:04 -!- femtoo [~femto@95-89-198-16-dynip.superkabel.de] has joined #go-nuts
14:05 < visof> KBme: with 1 Gb ram
14:05 < KBme> visof: it shouldn't take that long
14:05 < KBme> it's just compiling gcc right?
14:05 < Namegduf> It will, by default, only use one core
14:05 < KBme> i compile gcc in ~30m
14:05 < KBme> with -j3
14:05 < Namegduf> One 1.6Ghz core, two (three?) compiler runs...
14:05 < KBme> -j3 should work fine, yea
14:06 < KBme> not all threads are usually compiling at once
14:06 -!- cafesofie [~cafesofie@rnwifi-164-107-92-181.resnet.ohio-state.edu] has
quit [Remote host closed the connection]
14:08 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Quit:
Leaving...]
14:10 < visof> KBme: i just get the source then ./configure
--enable-languages=c,c++,go --with-ld=/opt/gold/bin/ld
14:10 < visof> then make
14:10 < KBme> visof: on a dual-core use make -j3
14:11 < visof> and make step doesn't complete so far
14:11 < KBme> it'll take way less long, but it'll heat up your laptop
14:11 < KBme> and eat your memory
14:11 < KBme> gcc is *BIG*
14:11 -!- skejoe [~skejoe@188.114.142.162] has quit [Quit: Lost terminal]
14:12 < visof> KBme: yeah very very big
14:13 < visof> KBme: i must wait i don't know should i cancel then make -j3
or wait
14:13 -!- femtoo [~femto@95-89-198-16-dynip.superkabel.de] has quit [Read error:
Connection reset by peer]
14:13 < visof> i don't know how much should i will wait
14:13 < KBme> visof: good question.  do you trust the gcc build system to
continue where you stopped it?  :D
14:14 -!- femtoo [~femto@95-89-198-16-dynip.superkabel.de] has joined #go-nuts
14:15 -!- im2ee [im2ee@gateway/shell/bshellz.net/x-ydioybaqkzajrbbz] has joined
#go-nuts
14:17 < visof> KBme: what do you mean ?
14:18 < KBme> visof: well, gmake can supposedly resume a build, but i
usually don't trust this for kernel compilation or gcc/glibc compilation
14:18 < KBme> especially if make flags change
14:22 < aiju> watching stuff build with gcc is so obnoxious
14:23 < aiju> it's so SLOW
14:23 < temoto> CFLAGS+=-q
14:23 < aiju> does that make it faster?  :P
14:23 < temoto> Well, actually yes.
14:24 < temoto> write to stdout on xterm is ~1ms
14:24 < KBme> heh
14:25 < aiju> well, on my machines console output is not the bottleneck
14:25 < aiju> i suppose that's my fault for not doing my compilation on the
blue gene
14:26 -!- vinisterx [~ryan@74-129-194-67.dhcp.insightbb.com] has quit [Read error:
Connection reset by peer]
14:27 < KBme> i'm guessing if you don't actually watch the compilation
(window is hidden) it's not the same
14:27 -!- victordenisov [~vdenisov@m132.sar.mirantis.ru] has joined #go-nuts
14:27 < KBme> since for me, compiling with -j7 on a super verbose
compilation speeds up compilation by ~5x
14:28 -!- vinisterx [~ryan@74-129-194-67.dhcp.insightbb.com] has joined #go-nuts
14:31 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
14:34 -!- devrim [~Adium@cpe-72-225-239-227.nyc.res.rr.com] has quit [Quit:
Leaving.]
14:35 -!- shvntr [~shvntr@116.26.131.57] has quit [Ping timeout: 260 seconds]
14:37 -!- cafesofie [~cafesofie@dhcp-140-254-202-158.osuwireless.ohio-state.edu]
has joined #go-nuts
14:37 < visof> KBme: i compiled and installed then i write simple hello
world , and i got ./hello: error while loading shared libraries: libgo.so.0:
cannot open shared object file: No such file or directory
14:38 < aiju> who added dynamic linking to Go?
14:38 * aiju gets out katana
14:38 -!- niemeyer_ [~niemeyer@189.74.207.121] has joined #go-nuts
14:38 < Namegduf> gccgo, I think
14:39 -!- niemeyer [~niemeyer@189.30.51.233] has quit [Ping timeout: 240 seconds]
14:40 < mpl> visof: is there a specific reason you want gccgo and not just
go?
14:40 < visof> mpl: how can i use go only ?
14:40 < temoto> visof, compile with 6g/8g depending on your arch.
14:41 -!- KBme [~KBme@9angled-2-pt.tunnel.tserv5.lon1.ipv6.he.net] has quit [Ping
timeout: 260 seconds]
14:41 -!- niekie [~niek@CAcert/Assurer/niekie] has quit [Ping timeout: 260
seconds]
14:42 < mpl> visof: http://golang.org/doc/install.html
14:42 -!- KBme [~KBme@9angled-2-pt.tunnel.tserv5.lon1.ipv6.he.net] has joined
#go-nuts
14:43 -!- cafesofie [~cafesofie@dhcp-140-254-202-158.osuwireless.ohio-state.edu]
has quit [Remote host closed the connection]
14:44 -!- niekie [~niek@CAcert/Assurer/niekie] has joined #go-nuts
14:46 -!- cafesofie [~cafesofie@dhcp-140-254-202-158.osuwireless.ohio-state.edu]
has joined #go-nuts
14:51 -!- visof [~visof@41.233.117.228] has quit [Quit: Lost terminal]
14:55 -!- amro [~amro@li37-20.members.linode.com] has left #go-nuts ["Konversation
terminated!"]
14:57 -!- xash [~xash@d126206.adsl.hansenet.de] has quit [Ping timeout: 260
seconds]
15:10 -!- vinisterx [~ryan@74-129-194-67.dhcp.insightbb.com] has quit [Read error:
Connection reset by peer]
15:11 -!- vinisterx [~ryan@74-129-194-67.dhcp.insightbb.com] has joined #go-nuts
15:13 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
15:18 -!- skelterjohn [~jasmuth@lawn-gw.rutgers.edu] has joined #go-nuts
15:18 -!- ymasory [~ymasory@c-76-99-55-224.hsd1.pa.comcast.net] has quit [Remote
host closed the connection]
15:19 < skelterjohn> morning
15:20 < mosva> morning skelterjohn
15:27 -!- femtooo [~femto@95-89-198-16-dynip.superkabel.de] has joined #go-nuts
15:30 -!- femtoo [~femto@95-89-198-16-dynip.superkabel.de] has quit [Ping timeout:
240 seconds]
15:33 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 240 seconds]
15:36 -!- devrim [~Adium@160.79.7.234] has joined #go-nuts
15:40 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
15:49 -!- m4dh4tt3r [~Adium@c-69-181-223-245.hsd1.ca.comcast.net] has quit [Quit:
Leaving.]
15:50 -!- Venom_X [~pjacobs@75.92.43.21] has joined #go-nuts
15:56 -!- mattn_jp [~mattn@112-68-53-212f1.hyg1.eonet.ne.jp] has joined #go-nuts
15:58 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has quit [Quit: Leaving.]
16:00 -!- devrim [~Adium@160.79.7.234] has quit [Ping timeout: 240 seconds]
16:07 -!- napsy [~luka@88.200.96.18] has quit [Read error: Connection reset by
peer]
16:08 -!- devrim [~Adium@160.79.7.234] has joined #go-nuts
16:10 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
16:13 -!- User403 [~User@CPE-58-166-100-35.lnse5.cht.bigpond.net.au] has joined
#go-nuts
16:13 -!- User403 [~User@CPE-58-166-100-35.lnse5.cht.bigpond.net.au] has quit
[Client Quit]
16:13 -!- User21 [~User@CPE-58-166-100-35.lnse5.cht.bigpond.net.au] has joined
#go-nuts
16:14 -!- User21 [~User@CPE-58-166-100-35.lnse5.cht.bigpond.net.au] has quit
[Client Quit]
16:14 -!- john___ [2e812986@gateway/web/freenode/ip.46.129.41.134] has joined
#go-nuts
16:16 < john___> Hi. Can anyone please tell me if there is any helper pkg,
which I could use to convert a string from ISO-8859-?  to UTF-8?  Something like
iconv..?
16:16 < aiju> no
16:16 < aiju> not officially, that is
16:17 < temoto> john___, you could use iconv itself.
16:17 < wrtp> john___: well, 8859-1 is a subset of unicode :-)
16:17 < john___> yes, but I need 8859-2 :)
16:18 < john___> ok, thanks.  then I will need to figure out someting by
myself
16:18 < wrtp> to be honest, conversion from any 8 bit char set is fairly
trivial - you just need to find out the unicode equivalents.
16:18 -!- plainhao [~plainhao@208.75.85.237] has joined #go-nuts
16:20 < wrtp> john___: here's a conversion table:
http://pastebin.com/ZgLrahtt
16:20 < john___> thanks!
16:21 < aiju> wrtp: not really
16:21 < aiju> conversion from CP437 is a bit trickier :P
16:21 -!- cco3-hampster [~conleyo@nat/google/x-mhnhqrwzlrhgtnjp] has quit [Ping
timeout: 260 seconds]
16:22 < wrtp> aiju: doesn't it have unicode equivalents for all its chars?
16:22 < aiju> some are ambiguous
16:22 < aiju> i don't really know how this is solved in practice
16:22 < aiju> i suppose it isn't
16:23 -!- cco3-hampster [~conleyo@nat/google/x-carhuixjpckiwlyn] has joined
#go-nuts
16:23 < wrtp> i'd just use the code points given on the wikipedia page...
16:26 < mattn_jp> or you can use go-iconv.
16:26 < john___> wrtp: this convertion table doesnt seem right
16:26 < john___> for example, a code 0xb1 whoud be translated into 0xc4,
0x85
16:27 < aiju> and what's wrong with that?
16:27 < aiju> oh yeah, should be C2 D1
16:27 < john___> well the table has either 0,1 or 2 at the highest byte
16:28 < john___> so how do I lookup for c485 having b1?
16:29 < mattn_jp>
http://unicode.org/Public/MAPPINGS/VENDORS/MICSFT/PC/CP437.TXT
16:31 -!- piranha [~piranha@5ED42E59.cm-7-5a.dynamic.ziggo.nl] has quit [Quit:
Computer has gone to sleep.]
16:35 < wrtp> john___: that table gives the unicode code point equivalents.
you'll need to translate into utf-8
16:36 < john___> so i will need another table?
16:36 < wrtp> no, use utf8.EncodeRune
16:36 < john___> oh, ok
16:40 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3]
16:45 -!- artefon [~thiago@189.59.128.103.dynamic.adsl.gvt.net.br] has joined
#go-nuts
16:50 -!- xash [~xash@d126206.adsl.hansenet.de] has joined #go-nuts
16:55 < john___> it worked - thank you, wrtp!  :)
16:57 -!- dforsyth [~dforsyth@c-76-21-40-117.hsd1.ca.comcast.net] has joined
#go-nuts
16:59 -!- cafesofie [~cafesofie@dhcp-140-254-202-158.osuwireless.ohio-state.edu]
has quit [Remote host closed the connection]
17:00 -!- john___ [2e812986@gateway/web/freenode/ip.46.129.41.134] has quit [Quit:
Page closed]
17:01 -!- virtualsue [~chatzilla@nat/cisco/x-xbacpvzghweoozgu] has quit [Ping
timeout: 246 seconds]
17:06 -!- mattn_jp [~mattn@112-68-53-212f1.hyg1.eonet.ne.jp] has quit [Ping
timeout: 240 seconds]
17:07 -!- ShadowIce
[~pyoro@HSI-KBW-109-193-120-162.hsi7.kabel-badenwuerttemberg.de] has joined
#go-nuts
17:07 -!- ShadowIce
[~pyoro@HSI-KBW-109-193-120-162.hsi7.kabel-badenwuerttemberg.de] has quit
[Changing host]
17:07 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
17:08 -!- piranha [~piranha@5ED4B890.cm-7-5c.dynamic.ziggo.nl] has joined #go-nuts
17:08 -!- mattn_jp [~mattn@112-68-53-212f1.hyg1.eonet.ne.jp] has joined #go-nuts
17:10 -!- rbraley [~rbraley@ip72-222-134-229.ph.ph.cox.net] has joined #go-nuts
17:14 -!- Rounin [~david@sos3-1x-dhcp489.studby.uio.no] has joined #go-nuts
17:15 -!- ucasano [~ucasano@host185-90-static.5-79-b.business.telecomitalia.it]
has joined #go-nuts
17:17 -!- Rounin [~david@sos3-1x-dhcp489.studby.uio.no] has left #go-nuts []
17:18 -!- victordenisov [~vdenisov@m132.sar.mirantis.ru] has left #go-nuts []
17:24 -!- ucasano [~ucasano@host185-90-static.5-79-b.business.telecomitalia.it]
has quit [Read error: Connection reset by peer]
17:26 -!- binarypie [~binarypie@adsl-99-185-244-154.dsl.pltn13.sbcglobal.net] has
joined #go-nuts
17:30 -!- ucasano_ [~ucasano@151.83.90.173] has joined #go-nuts
17:32 -!- vinisterx [~ryan@74-129-194-67.dhcp.insightbb.com] has quit [Read error:
Connection reset by peer]
17:33 -!- vinisterx [~ryan@74-129-194-67.dhcp.insightbb.com] has joined #go-nuts
17:39 -!- ucasano_ [~ucasano@151.83.90.173] has quit [Quit: ucasano_]
17:39 -!- deso_ [~deso@x0561a.wh30.tu-dresden.de] has joined #go-nuts
17:39 < wrtp> anyone know of a go library that reads plan9 ndb-style config
files?
17:40 -!- Kashia [~Kashia@port-92-200-30-31.dynamic.qsc.de] has joined #go-nuts
17:41 < taruti> that would be nifty
17:41 < taruti> if you end up writing one please do link it
17:42 < mpl> wrtp: you planning on writing a DNS in go?  :)
17:42 < aiju> look at how Plan 9 parses it
17:42 < aiju> might be worth looking at
17:50 -!- wwkeyboard [~wwkeyboar@115.108.33.53] has joined #go-nuts
17:50 -!- Project_2501 [~Marvin@82.84.77.11] has joined #go-nuts
17:54 -!- wwkeyboard [~wwkeyboar@115.108.33.53] has quit [Remote host closed the
connection]
17:56 -!- vinisterx [~ryan@74-129-194-67.dhcp.insightbb.com] has quit [Read error:
Connection reset by peer]
17:57 -!- vinisterx [~ryan@74-129-194-67.dhcp.insightbb.com] has joined #go-nuts
17:58 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has joined #go-nuts
18:00 -!- Venom_X [~pjacobs@75.92.43.21] has quit [Ping timeout: 264 seconds]
18:04 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:1102:7998:6094:2427] has joined
#go-nuts
18:04 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has quit [Quit:
Leaving.]
18:05 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has joined #go-nuts
18:05 -!- nutate [~rseymour@cacsag4.usc.edu] has joined #go-nuts
18:06 -!- Venom_X [~pjacobs@66.54.185.131] has joined #go-nuts
18:06 < quantumelixir> wrtp: What's an ndb-style config file?  (link to
format spec)
18:07 < aiju> quantumelixir: i don't think there is such a thing
18:07 < aiju> maybe ndb(6) (see man.cat-v.org)
18:07 < aiju> it's like sophisticated INI files
18:08 < quantumelixir> sophisticated INI?  :o)
18:08 < aiju> that just made it sound lame
18:08 < aiju> it's actually really neat
18:09 < wrtp> aiju: yes
18:09 < wrtp> http://plan9.bell-labs.com/magic/man2html/6/ndb
18:09 < quantumelixir> got it wrtp
18:11 -!- vinisterx [~ryan@74-129-194-67.dhcp.insightbb.com] has quit [Read error:
Connection reset by peer]
18:12 -!- vinisterx [~ryan@74-129-194-67.dhcp.insightbb.com] has joined #go-nuts
18:19 -!- photron [~photron@port-92-201-200-124.dynamic.qsc.de] has joined
#go-nuts
18:22 -!- tav [~tav@92.7.116.65] has quit [Read error: Connection reset by peer]
18:30 -!- virtualsue [~chatzilla@nat/cisco/x-mrpoxotzckasmobv] has joined #go-nuts
18:31 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-176-83.clienti.tiscali.it] has
joined #go-nuts
18:34 -!- tav [~tav@92.7.116.65] has joined #go-nuts
18:34 -!- Project_2501 [~Marvin@82.84.77.11] has quit [Ping timeout: 250 seconds]
18:37 -!- dforsyth [~dforsyth@c-76-21-40-117.hsd1.ca.comcast.net] has quit [Quit:
Computer has gone to sleep.]
18:43 -!- jcdny [~davis@mailrelay1.pbclients.com] has quit [Ping timeout: 272
seconds]
18:43 -!- mosva [~mosva@unaffiliated/mosva] has quit [Quit: mosva]
18:43 -!- DerHorst [~Horst@e176118076.adsl.alicedsl.de] has quit [Remote host
closed the connection]
18:43 -!- femtooo [~femto@95-89-198-16-dynip.superkabel.de] has quit [Read error:
Connection reset by peer]
18:48 < jumzi> tihi format spec
18:50 < jumzi> oh ndb isn't just key=value
18:51 < jumzi> Or well it is?
18:51 < jumzi> actually
18:52 < jumzi> see!  made me make things complicated
18:52 < skelterjohn> glad to help
18:53 < jumzi> Actually it was quantumelixir, but sure...  Take all the
credit
18:53 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 255 seconds]
18:56 -!- Scorchin [~Scorchin@host109-154-145-135.range109-154.btcentralplus.com]
has joined #go-nuts
18:57 -!- mattn_jp [~mattn@112-68-53-212f1.hyg1.eonet.ne.jp] has quit [Quit:
Ex-Chat]
18:58 -!- vinisterx [~ryan@74-129-194-67.dhcp.insightbb.com] has quit [Read error:
Connection reset by peer]
18:59 -!- dforsyth_ [~dforsyth@bastion.inap.yelpcorp.com] has joined #go-nuts
18:59 -!- vinisterx [~ryan@74-129-194-67.dhcp.insightbb.com] has joined #go-nuts
19:00 -!- snearch [~snearch@f053001103.adsl.alicedsl.de] has quit [Quit:
Verlassend]
19:02 -!- Davidian1024 [~Davidian1@cpe-174-100-42-130.neo.res.rr.com] has joined
#go-nuts
19:02 -!- Zoopee [alsbergt@zoopee.org] has quit [Read error: Connection reset by
peer]
19:03 -!- Zoope- [alsbergt@zoopee.org] has joined #go-nuts
19:06 -!- nettok [~quassel@200.119.151.115] has joined #go-nuts
19:11 -!- quantumelixir [~chillu@203.110.240.41] has quit [Quit: leaving]
19:16 -!- enherit [~enherit@cpe-98-149-170-48.socal.res.rr.com] has joined
#go-nuts
19:19 -!- skelterjohn [~jasmuth@lawn-gw.rutgers.edu] has quit [Quit: skelterjohn]
19:21 -!- Fish- [~Fish@9fans.fr] has joined #go-nuts
19:30 -!- keithcascio [~keithcasc@nat/google/x-takcsroemhzllyto] has joined
#go-nuts
19:31 -!- nettok_ [~quassel@200.119.152.47] has joined #go-nuts
19:34 -!- nettok [~quassel@200.119.151.115] has quit [Ping timeout: 240 seconds]
19:41 -!- bmizerany [~bmizerany@204.14.152.118] has joined #go-nuts
19:43 -!- jumzi [~jumzi@c-89-233-234-125.cust.bredband2.com] has quit [Read error:
Operation timed out]
19:44 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
19:45 -!- artefon [~thiago@189.59.128.103.dynamic.adsl.gvt.net.br] has quit [Quit:
bye]
19:47 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has quit [Remote
host closed the connection]
19:48 -!- napsy [~luka@88.200.96.18] has quit [Read error: Connection reset by
peer]
19:49 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
19:49 -!- MX80 [~MX80@cust141.253.117.74.dsl.g3telecom.net] has quit [Ping
timeout: 255 seconds]
19:49 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts
19:51 * tav waves
19:54 * Project-2501 waves back at tav
19:54 < Project-2501> o.o
19:57 -!- bmizerany [~bmizerany@204.14.152.118] has quit [Remote host closed the
connection]
19:59 -!- m4dh4tt3r [~Adium@c-69-181-223-245.hsd1.ca.comcast.net] has joined
#go-nuts
20:01 -!- femtoo [~femto@95-89-198-16-dynip.superkabel.de] has joined #go-nuts
20:01 -!- bmizerany [~bmizerany@204.14.152.118] has joined #go-nuts
20:03 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
20:04 < wrtp> is this guaranteed to work?  x := ([]byte{4,5,67})[:0]; x =
append(x, x[0:cap(x)]...)
20:05 <+iant> it won't crash or anything, if that is what you are asking
20:05 < temoto> wrtp, goerl
20:06 < wrtp> iant: yes, but will the overlapping copy be handled correctly?
20:06 <+iant> yes
20:06 < wrtp> good
20:06 < wrtp> thanks
20:06 < wrtp> temoto: what?
20:06 < aiju> memcpy not handling overlapping areas properly is something
Pike really dislikes
20:06 < temoto> wrtp, looks like perl
20:07 < wrtp> i know copy works for that.  but i wasn't entirely sure about
append.
20:07 < aiju> the Go runtime doesn't even have memcpy, only memmove
20:07 < wrtp> the copy primitive could potentially optimise out the copy
entirely in this case.  i wonder if it does.
20:09 -!- sjbrown [~sjbrown@dsl081-072-059.sfo1.dsl.speakeasy.net] has joined
#go-nuts
20:09 -!- tvw [~tv@e176005183.adsl.alicedsl.de] has quit [Remote host closed the
connection]
20:10 -!- sjbrown [~sjbrown@dsl081-072-059.sfo1.dsl.speakeasy.net] has quit
[Client Quit]
20:11 -!- acetoline [~acetoline@122.58.180.208] has joined #go-nuts
20:11 -!- jumzi [~jumzi@c-89-233-234-125.cust.bredband2.com] has joined #go-nuts
20:15 < aiju> btw is r@golang.org = rob?
20:15 <+iant> yes, r@golang.org is Rob Pike
20:15 < aiju> heh
20:15 < aiju> makes me feel important
20:15 < aiju> rob assigned my bug to ken :P
20:16 -!- MX80 [~MX80@cust141.253.117.74.dsl.g3telecom.net] has joined #go-nuts
20:23 < GilJ> +D
20:23 < GilJ> =D*
20:23 < jumzi> Pfft, you should go find security bugs in firefox
20:32 -!- PortatoreSanoDiI [~Marvin@dynamic-adsl-94-36-168-224.clienti.tiscali.it]
has joined #go-nuts
20:36 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-176-83.clienti.tiscali.it] has
quit [Ping timeout: 265 seconds]
20:38 -!- adu [~ajr@pool-72-83-254-159.washdc.fios.verizon.net] has joined
#go-nuts
20:38 -!- deso_ [~deso@x0561a.wh30.tu-dresden.de] has quit [Remote host closed the
connection]
20:47 -!- xash [~xash@d126206.adsl.hansenet.de] has quit [Ping timeout: 255
seconds]
20:48 -!- plainhao [~plainhao@208.75.85.237] has quit [Quit: plainhao]
20:52 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Ping
timeout: 265 seconds]
20:53 -!- iant [~iant@216.239.45.130] has joined #go-nuts
20:53 -!- mode/#go-nuts [+v iant] by ChanServ
20:57 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:1102:7998:6094:2427] has quit
[Quit: Leaving.]
20:59 -!- vinisterx [~ryan@74-129-194-67.dhcp.insightbb.com] has quit [Read error:
Connection reset by peer]
21:00 -!- vinisterx [~ryan@74-129-194-67.dhcp.insightbb.com] has joined #go-nuts
21:02 -!- femtooo [~femto@95-89-198-16-dynip.superkabel.de] has joined #go-nuts
21:03 -!- femtooo [~femto@95-89-198-16-dynip.superkabel.de] has quit [Read error:
Connection reset by peer]
21:05 -!- femtoo [~femto@95-89-198-16-dynip.superkabel.de] has quit [Ping timeout:
276 seconds]
21:07 -!- itrekkie [~itrekkie@ip72-211-129-122.tc.ph.cox.net] has joined #go-nuts
21:09 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 240 seconds]
21:11 -!- tensorpudding [~user@99.23.127.179] has joined #go-nuts
21:11 -!- vinisterx [~ryan@74-129-194-67.dhcp.insightbb.com] has quit [Read error:
Connection reset by peer]
21:12 -!- vinisterx [~ryan@74-129-194-67.dhcp.insightbb.com] has joined #go-nuts
21:16 -!- tensorpudding [~user@99.23.127.179] has quit [Remote host closed the
connection]
21:16 -!- tensorpudding [~user@99.23.127.179] has joined #go-nuts
21:17 -!- tensorpudding [~user@99.23.127.179] has quit [Remote host closed the
connection]
21:19 -!- ampleyfly [ampleyfly@gateway/shell/blinkenshell.org/x-jqwkyvtrgxhlcinf]
has quit [Ping timeout: 272 seconds]
21:19 -!- ampleyfly [ampleyfly@gateway/shell/blinkenshell.org/x-slhxrfttdslunskg]
has joined #go-nuts
21:26 -!- tensorpudding [~user@99.23.127.179] has joined #go-nuts
21:29 -!- brownee [~brownee@209.34.56.106] has joined #go-nuts
21:34 -!- gmilleramilar [~gmiller@38.104.67.234] has joined #go-nuts
21:35 < gmilleramilar> Quick quiz.  What does this code output:
http://pastie.org/private/sbbujlnrrrqvdte9lp1cug
21:35 < aiju> gmilleramilar: take over the world
21:36 < nsf> gmilleramilar: 10
21:36 < gmilleramilar> nsf, you're either quick with the compiler, or
smarter than me
21:36 < gmilleramilar> that one got me a few minutes ago.
21:36 < nsf> for i,m := range arr {
21:37 < nsf> here, 'm' is not a reference to an array element
21:37 < nsf> it's a local variable
21:37 < nsf> it's like:
21:37 < nsf> { var m aStruct; for i := range arr { m = arr[i]; ...  } }
21:38 < nsf> therefore taking an address of 'm', at the end of the loop
leaves it with the last value
21:38 < nsf> but code is a bit weird
21:39 < gmilleramilar> yeah, when I inspect it closely I guess it makes
sense.  The problem was that in my actual code, m was declared far enough away
from my use of &m, I wasn't even thinking that it would change with different
iterations of the loop.
21:39 < gmilleramilar> cost me about half an hour trying to puzzle that one
out.
21:39 -!- vinisterx [~ryan@74-129-194-67.dhcp.insightbb.com] has quit [Read error:
Connection reset by peer]
21:39 < nsf> the source of this misunderstanding is the usage of "for x, y
:= range ...  {" form in the first place
21:39 < nsf> if you need a reference to an array, you should get it manually
21:40 < nsf> for i := range arr { if i == 0 { ptr = &arr[i]; } }
21:40 < gmilleramilar> so you're arguing never to use the range construct?
21:40 < nsf> no
21:40 < nsf> it has two forms for slices
21:40 < nsf> index or index + copy of an element
21:40 -!- vinisterx [~ryan@74-129-194-67.dhcp.insightbb.com] has joined #go-nuts
21:41 < gmilleramilar> got it.
21:41 < nsf> if you want a reference to an array, you should use the first
one
21:41 < nsf> if you're only interested in a value, then the second one
21:42 < nsf> or even like: for _, element := range ...  {
21:43 < gmilleramilar> yup, just gotta make room in my brain for that new
rule.
21:45 < nsf> that's an interesting observation btw, weird language
constructs lead to weird usages
21:45 -!- virtualsue [~chatzilla@nat/cisco/x-mrpoxotzckasmobv] has quit [Ping
timeout: 250 seconds]
21:45 < nsf> for range loop is one of them and I don't like it
21:46 < aiju> range makes up for the lack of pointer arithmetic
21:46 < nsf> and it allows compiler to relax bounds checking in some cases
21:46 < aiju> things like for(;*lp;lp++) in C
21:46 < nsf> hehe, never do that in C
21:47 < aiju> i do it all the time
21:47 < aiju> while(n--) *dst++ = *src++;
21:47 < aiju> how i write memcpy
21:47 -!- jcdny [~davis@mailrelay1.pbclients.com] has joined #go-nuts
21:47 < nsf> the most common stuff in C for me is: for (int i = 0; i <
array_n; ++i)
21:47 < nsf> aiju: using memcpy is a better idea
21:47 < nsf> compilers optimize it
21:47 < aiju> nsf: that's not the point
21:48 < aiju> s/how i write memcpy/how i would write memcpy/
21:48 < aiju> ofc i use memcpy
21:48 < nsf> ah, ok, well I know that C is nice in case if you need pointer
arithmetic
21:48 < aiju> after all it's likely to be loop unrolled and shit
21:49 < aiju> for(p=list; p; p=p->next)
21:49 < aiju> traversing a linked list in C
21:49 < nsf> yeah, that one is nice
21:49 < aiju> (should also be possible in Go)
21:50 < aiju> in gofy code i almost jumped right into a loop lol
21:50 < aiju> but 6c choked on it, forcing me to rewrite it
21:50 < nsf> gofy is a weird project to me
21:50 < aiju> haha
21:51 < aiju> it's supposed to be a weird project
21:52 < nsf> reminds me a .NET-based OS by microsoft for some reason
21:52 < aiju> hahahahah
21:52 < nsf> :D
21:52 < aiju>
http://code.google.com/p/gofy/source/browse/kernel/runtime/mem.c#116
21:52 < aiju> that routine is full of pointer arithmetic
21:53 < nsf> main·f**k(s, sizeof(s));
21:53 < nsf> lol
21:53 < nsf> "Sorry, GOFY doesn't run on toasters"
21:53 < aiju> it also suffers from classical C problems
21:53 < nsf> :D
21:53 < aiju> weird input data could cause memory corruption
21:54 < aiju> but i want to see a BIOS *that* fucked up
21:55 -!- Fish- [~Fish@9fans.fr] has quit [Quit: So Long, and Thanks for All the
Fish]
21:55 -!- virtualsue [~chatzilla@93-97-62-8.zone5.bethere.co.uk] has joined
#go-nuts
21:55 < nsf> and I'm writing C right now as well
21:56 < nsf> catched myself on a thought that I start to forget its feel
21:56 < nsf> funny, but most likely I feel like good libraries are missing
21:56 < nsf> wondering why is that
21:56 < nsf> oops
21:56 < nsf> s/most likely/mostly/
21:57 < jumzi> You've been lazy?
21:57 < nsf> am i?
21:57 < jumzi> If good libraries are missing
21:57 < jumzi> You've been lazy
21:58 < nsf> no, I mean really..  I've seen 5 different string libraries and
all doesn't have the thing I want
21:58 < nsf> kind of sad :)
21:58 < aiju> <string.h>
21:58 < nsf> aiju: it's the most horrible one :)
21:58 < nsf> it doesn't do memory management at all
21:59 < aiju> all you need is while()
21:59 < nsf> yeah, I know that I can do very low level code, but it's kind
of a wrong way
21:59 < aiju> "a wrong way"
21:59 < nsf> the biggest programmers problem is that we constantly failing
at building building blocks..
22:00 < aiju> you begin sounding like a Java programmer
22:00 < nsf> they are failing as much as others or even more
22:00 < nsf> inheritance object model simply sucks
22:00 < jumzi> I really don't see where this is going *excited*
22:00 < nsf> inheritance-based*
22:00 < aiju> there is fast code, there is readable code and there is code
which is both
22:00 -!- jcdny [~davis@mailrelay1.pbclients.com] has quit [Remote host closed the
connection]
22:00 < aiju> anything else is silly
22:01 < aiju> things like "code which uses goto is evil and THE WRONG WAY"
or "code which doesn't use libraries to wipe the programmers ass are THE WRONG
WAY"
22:02 < nsf> well, trying to use libraries simply because we are supposed to
use them is a bad idea
22:02 < nsf> libraries sucks..  most of them
22:02 < jumzi> oranges sux
22:02 < bartbes> candii suxx
22:02 < aiju> jumzi: why are you so obsessed about oranges?  :P
22:02 < nsf> (Go's std lib is pretty nice actually)
22:03 < jumzi> ...Oranges
22:03 < bartbes> oh it was candy suxxx
22:03 < bartbes> I fail again
22:03 < bartbes> candy suxx
22:03 < bartbes> there
22:03 < nsf> suck* ugh..  it's time to sleep
22:04 < nsf> libraries suck and my english suckS :\
22:05 < jumzi> aiju: Let's say i had a very traumatic childhood and leave it
at that
22:05 < aiju> haha
22:05 < jumzi> Lets*
22:05 < aiju>
http://code.google.com/p/gofy/source/browse/kernel/runtime/mem.c#312
22:05 < aiju> this whole function is just one register setting on the PDP11
22:05 -!- brownee [~brownee@209.34.56.106] has quit [Read error: Connection reset
by peer]
22:05 < aiju> live is so much simpler with 8 pages
22:05 < nsf> aiju: gofy team lacks security paranoids
22:06 < nsf> they will tell how you should write your code :D
22:06 < aiju> instead of 68 billion
22:09 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3]
22:11 -!- photron [~photron@port-92-201-200-124.dynamic.qsc.de] has quit [Ping
timeout: 240 seconds]
22:11 -!- PortatoreSanoDiI [~Marvin@dynamic-adsl-94-36-168-224.clienti.tiscali.it]
has quit [Quit: E se abbasso questa leva che succ...]
22:13 -!- im2ee [im2ee@gateway/shell/bshellz.net/x-ydioybaqkzajrbbz] has quit
[Quit: leaving]
22:13 -!- artefon [~thiago@189.59.187.100] has joined #go-nuts
22:15 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
22:32 -!- jcdny [~davis@mailrelay1.pbclients.com] has joined #go-nuts
22:34 -!- ExtraSpice [~XtraSpice@88.118.33.48] has quit [Ping timeout: 240
seconds]
22:41 -!- fenicks [~christian@log77-3-82-243-254-112.fbx.proxad.net] has joined
#go-nuts
22:42 -!- Sgeo [~Sgeo@ool-18bf618a.dyn.optonline.net] has joined #go-nuts
22:42 -!- virtualsue [~chatzilla@93-97-62-8.zone5.bethere.co.uk] has quit [Ping
timeout: 240 seconds]
22:43 -!- wrtp [~rog@92.17.39.246] has quit [Quit: wrtp]
22:47 < fenicks> yep
22:52 -!- piranha [~piranha@5ED4B890.cm-7-5c.dynamic.ziggo.nl] has quit [Quit:
Computer has gone to sleep.]
22:52 -!- artefon [~thiago@189.59.187.100] has quit [Quit: bye]
22:52 -!- adu [~ajr@pool-72-83-254-159.washdc.fios.verizon.net] has quit [Quit:
adu]
22:55 -!- tensorpudding [~user@99.23.127.179] has quit [Ping timeout: 276 seconds]
22:58 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
23:00 -!- tensorpudding [~user@99.23.127.179] has joined #go-nuts
23:00 -!- tensorpudding [~user@99.23.127.179] has quit [Read error: Connection
reset by peer]
23:11 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 240 seconds]
23:17 -!- APBT [APBT@10-216.141.popsite.net] has joined #go-nuts
23:18 -!- APBT [APBT@10-216.141.popsite.net] has left #go-nuts []
23:18 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
23:22 -!- boscop__ [~boscop@f055161092.adsl.alicedsl.de] has quit [Ping timeout:
240 seconds]
23:23 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller,
Faster, Easier.  http://miranda-im.org]
23:35 -!- nutate [~rseymour@cacsag4.usc.edu] has quit [Read error: Connection
reset by peer]
23:35 -!- nutate [~rseymour@cacsag4.usc.edu] has joined #go-nuts
23:39 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
23:40 < uriel> adg: is Go going to participate in GSoC this year?
23:43 -!- devrim [~Adium@160.79.7.234] has quit [Ping timeout: 246 seconds]
23:49 -!- Skola [~ik@5352A3FB.cm-6-3c.dynamic.ziggo.nl] has quit [Quit: Skola]
23:51 -!- ronnyy [~quassel@p4FF1C75F.dip0.t-ipconnect.de] has joined #go-nuts
--- Log closed Tue Jan 25 00:00:05 2011