--- Log opened Sun Jan 16 00:00:03 2011
00:06 -!- artefon [~thiago@189.59.130.73.dynamic.adsl.gvt.net.br] has quit [Read
error: Connection reset by peer]
00:07 -!- nettok_ [~quassel@200.119.190.98] has joined #go-nuts
00:07 -!- nettok_ [~quassel@200.119.190.98] has quit [Read error: Connection reset
by peer]
00:11 -!- nettok [~quassel@200.119.164.230] has quit [Ping timeout: 240 seconds]
00:20 -!- virtualsue [~chatzilla@93-97-176-250.zone5.bethere.co.uk] has quit [Ping
timeout: 276 seconds]
00:50 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has quit [Read error: Connection
reset by peer]
00:55 -!- georgekollias [~georgekol@men75-1-81-57-41-176.fbx.proxad.net] has quit
[Read error: Operation timed out]
00:59 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
01:01 -!- bmizerany [~bmizerany@229.sub-75-208-191.myvzw.com] has joined #go-nuts
01:05 -!- bmizerany [~bmizerany@229.sub-75-208-191.myvzw.com] has quit [Ping
timeout: 255 seconds]
01:22 -!- chressie [~chressie@dreggn.in-ulm.de] has quit [Quit: WeeChat 0.3.3]
01:23 -!- vdrab [~vdrab@pd3e9b4.kyotnt01.ap.so-net.ne.jp] has quit [Quit: vdrab]
01:25 -!- bmizerany [~bmizerany@101.sub-75-208-245.myvzw.com] has joined #go-nuts
01:36 -!- LeNsTR [~lenstr@unaffiliated/lenstr] has quit [Quit: LeNsTR]
01:36 -!- shvntr [~shvntr@123.89.100.83] has quit [Quit: leaving]
01:55 -!- vdrab [~vdrab@pd3e9b4.kyotnt01.ap.so-net.ne.jp] has joined #go-nuts
01:56 -!- nekoh [~nekoh@p4FD8849C.dip0.t-ipconnect.de] has quit []
02:03 -!- vdrab [~vdrab@pd3e9b4.kyotnt01.ap.so-net.ne.jp] has quit [Quit: vdrab]
02:06 -!- devrim [~Adium@cpe-72-225-239-227.nyc.res.rr.com] has quit [Quit:
Leaving.]
02:10 -!- wtfness [~dsc@78.101.112.199] has quit [Ping timeout: 240 seconds]
02:12 -!- jeff2_ [~sername@c-67-164-29-36.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
02:12 -!- cafesofie [~cafesofie@rnwifi-164-107-93-24.resnet.ohio-state.edu] has
joined #go-nuts
02:18 -!- pancake [~pancake@95.61.49.229] has joined #go-nuts
02:18 < pancake> how can I link multiple objects with $(GOARCH)l ?
02:19 < pancake> I tried with 8l -o foo foo.8 bar.8, but it just displays
the usage
02:33 -!- monty_hall [~monty_hal@adsl-75-51-96-59.dsl.sgnwmi.sbcglobal.net] has
joined #go-nuts
02:33 < cbeck> pancake: in one, lets say foo, you need to `import "./bar"`
02:34 < pancake> uhm, using gopack i can workaround it..  8l only accepts
one argument
02:38 -!- monty_hall [~monty_hal@adsl-75-51-96-59.dsl.sgnwmi.sbcglobal.net] has
left #go-nuts []
02:41 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
02:41 -!- Natch [~natch@c-2bcfe155.25-4-64736c10.cust.bredbandsbolaget.se] has
joined #go-nuts
02:41 -!- Tv [~tv@cpe-76-168-227-45.socal.res.rr.com] has quit [Ping timeout: 255
seconds]
02:42 -!- Natch| [~natch@c-2bcfe155.25-4-64736c10.cust.bredbandsbolaget.se] has
quit [Ping timeout: 260 seconds]
02:43 -!- pancake [~pancake@95.61.49.229] has quit [Quit: Lost terminal]
03:01 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Ping
timeout: 246 seconds]
03:02 -!- iant [~iant@216.239.45.130] has joined #go-nuts
03:02 -!- mode/#go-nuts [+v iant] by ChanServ
03:05 -!- quantumelixir [~chillu@203.110.240.41] has quit [Ping timeout: 240
seconds]
03:06 -!- quantumelixir [~chillu@203.110.240.41] has joined #go-nuts
03:15 -!- boscop_ [~boscop@g229215158.adsl.alicedsl.de] has quit [Ping timeout:
240 seconds]
03:17 -!- boscop_ [~boscop@f055144079.adsl.alicedsl.de] has joined #go-nuts
03:22 -!- mafs [~maikeru@24-107-56-173.dhcp.stls.mo.charter.com] has quit
[Changing host]
03:22 -!- mafs [~maikeru@unaffiliated/maikeru/x-7708887] has joined #go-nuts
03:30 -!- devrim [~Adium@cpe-72-225-239-227.nyc.res.rr.com] has joined #go-nuts
03:38 -!- vdrab [~vdrab@pd3e9b4.kyotnt01.ap.so-net.ne.jp] has joined #go-nuts
03:39 -!- jesmon [~user@rrcs-69-193-6-191.nys.biz.rr.com] has joined #go-nuts
03:47 < teejae> is there some pretty print package in go for structs?
03:49 < exch> teejae: not specifically.  But the json package can output
data in an indented format.  Whether that's an acceptable solution is up to you of
course
03:49 < teejae> exch: that might be good enough
03:49 < teejae> exch: what about for pointers?  does it follow pointers?
03:49 < teejae> just want something that "does the right thing"
03:49 < teejae> :P
03:50 < exch> If a struct has a field which is some pointer type, that
should be handled appropriately.  eg: the reflection code will dereference it and
see what's behind the pointer
03:50 < teejae> exch: nm, found it.  yes, it does follow pointers
03:50 < teejae> exch: appreciate your help here :)
03:50 < exch> np
03:52 -!- joatmon54 [~engest@cpe-66-74-195-46.san.res.rr.com] has joined #go-nuts
03:55 -!- bmizerany [~bmizerany@101.sub-75-208-245.myvzw.com] has quit [Remote
host closed the connection]
04:21 -!- jesmon [~user@rrcs-69-193-6-191.nys.biz.rr.com] has quit [Remote host
closed the connection]
04:26 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 276 seconds]
04:27 -!- nettok [~quassel@200.119.168.25] has joined #go-nuts
04:32 -!- watr_ [~watr@66.183.100.58] has joined #go-nuts
05:01 -!- crazy2be [~justin@d75-152-162-237.abhsia.telus.net] has joined #go-nuts
05:07 -!- vayos [~osiris@aixd3.rhrk.uni-kl.de] has joined #go-nuts
05:09 -!- adu [~ajr@pool-72-83-254-159.washdc.fios.verizon.net] has joined
#go-nuts
05:10 -!- tensorpudding [~user@99.23.127.179] has joined #go-nuts
05:18 < crazy2be> is there any way to find the originating host with the
http library?
05:37 < KirkMcDonald> crazy2be: The ResponseWriter given to a handler has a
RemoteAddr method.
05:38 -!- teejae [~teejae@softbank219185095092.bbtec.net] has quit [Quit: teejae]
05:44 < quantumelixir> Where can I find information regarding writing
Go-bindings for C libraries?
05:46 < |Craig|> quantumelixir: cgo
05:46 -!- go^lang [~newblue@121.11.99.31] has joined #go-nuts
05:47 < quantumelixir> |Craig|: Nice.  It includes some examples too!
05:52 < crazy2be> KirkMcDonald: Oh, nice!  That must be left over from when
it was a http.Conn, it would make more sence then
05:54 -!- vdrab [~vdrab@pd3e9b4.kyotnt01.ap.so-net.ne.jp] has quit [Quit: vdrab]
05:56 -!- go^lang [~newblue@121.11.99.31] has quit [Quit: 暂离]
06:03 -!- DarthShrine [~angus@pdpc/supporter/student/DarthShrine] has quit [Quit:
DarthShrine]
06:09 -!- vayos [~osiris@aixd3.rhrk.uni-kl.de] has left #go-nuts [" "]
06:10 -!- joatmon54 [~engest@cpe-66-74-195-46.san.res.rr.com] has quit [Quit:
Ex-Chat]
06:18 -!- quantumelixir [~chillu@203.110.240.41] has quit [Ping timeout: 240
seconds]
06:25 -!- watr_ [~watr@66.183.100.58] has quit [Ping timeout: 272 seconds]
06:31 -!- adu [~ajr@pool-72-83-254-159.washdc.fios.verizon.net] has quit [Quit:
adu]
06:31 -!- crazy2be [~justin@d75-152-162-237.abhsia.telus.net] has quit [Remote
host closed the connection]
06:33 -!- DarthShrine [~angus@pdpc/supporter/student/DarthShrine] has joined
#go-nuts
06:36 -!- goingnuts [cb6ef315@gateway/web/freenode/ip.203.110.243.21] has joined
#go-nuts
06:38 -!- illya77 [~illya77@55-71-133-95.pool.ukrtel.net] has joined #go-nuts
06:41 -!- goingnuts [cb6ef315@gateway/web/freenode/ip.203.110.243.21] has quit
[Ping timeout: 265 seconds]
06:46 -!- quantumelixir [cb6ef315@gateway/web/freenode/ip.203.110.243.21] has
joined #go-nuts
06:51 -!- quantumelixir [cb6ef315@gateway/web/freenode/ip.203.110.243.21] has quit
[Ping timeout: 265 seconds]
06:54 -!- karshan [~karshan@213.144.149.205] has joined #go-nuts
07:25 -!- jeff2 [~sername@c-67-164-29-36.hsd1.ca.comcast.net] has joined #go-nuts
07:31 -!- karshan [~karshan@213.144.149.205] has quit [Quit: Leaving]
07:32 < jeff2> how is Scan() in Russ Cox's gosqlite module supposed to work
with NULL values?
07:33 -!- zozoR [~zozoR@56346ed3.rev.stofanet.dk] has joined #go-nuts
07:34 < jeff2> if I do: i := make(int); q.Scan(&i), then *i is 0 both if the
column is 0 or if it is NULL.  can they not be told apart?
07:35 < zozoR> shouldnt you use new on an int?
07:36 < jeff2> zozoR: oops, you're right it should be new()
07:36 < zozoR> :)
07:37 < jeff2> but, I still can't differentiate NULL from 0 :(
07:37 < jeff2> I think it is a flaw in the wrapper
07:39 < zozoR> heh, i dont know how scan works
07:39 < aiju> eh NULL and 0 are the same, aren't they?
07:39 < jeff2> no not in SQL
07:40 < aiju> oic
07:40 < aiju> not talking about C :>
07:40 < jeff2>
http://code.google.com/p/gosqlite/source/browse/sqlite/sqlite.go#252
07:41 < JBeshir> Maybe you could scan into an interface{}
07:41 < JBeshir> Where nil and a valid number which happens to be 0 are
distinguishable.
07:45 < jeff2> maybe a pointer to an interface would work
07:45 < JBeshir> Yeah.
07:46 < JBeshir> Not ideal but there's no such thing as a nilable
integertype in Go
07:46 < JBeshir> And it can make do, I hope.
07:50 < jeff2> I think it could.  just need to work out how I'd pass it
through Scan().  currently it accepts an ...interface{}, and uses a type switch
(with case *int, etc.) to determine how to convert the value.  suppose I could add
case *interface{}(?)..  or perhaps **int would do
08:01 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has quit [Ping
timeout: 260 seconds]
08:07 < jeff2> yeah that works great.  thanks
08:09 < aiju> what's Go's equivalent of RBP?
08:10 < jeff2> what's RBP?
08:10 < aiju> base pointer
08:10 < aiju> talking about the calling conventions here
08:16 -!- kashia_ [~Kashia@p4FEB2BFC.dip.t-dialin.net] has joined #go-nuts
08:19 -!- Kashia [~Kashia@p4FEB5326.dip.t-dialin.net] has quit [Ping timeout: 246
seconds]
08:20 < Maxdamantus> aiju: NULL and 0 aren't the same in C either.
08:20 < aiju> yes they are
08:20 < Maxdamantus> aiju: they might be though.
08:20 < aiju> no
08:21 < Maxdamantus> Yes.
08:21 < aiju> the standard defines them to be equivalent
08:21 < Maxdamantus> No it doesn't.
08:21 < Maxdamantus> It defines them both as a "null pointer constant"
08:21 < Maxdamantus> But "null pointer constant" does not have a specific
type.
08:21 < aiju> NULL can't be 5
08:21 < Maxdamantus> Consider: printf("%p\n", NULL);
08:21 < Maxdamantus> That is invalid.
08:22 < Maxdamantus> You must use (void*) since NULL doesn't need to have
type void* and the argument is not promoted to anything in the vararg.
08:22 < Maxdamantus> (void*)NULL, rather
08:22 < Maxdamantus> aiju: it can be 5.
08:22 < Maxdamantus> aiju: you can't assume that it is though.
08:23 < aiju> ANSI C guarantees that any null pointer will be equal to 0 in
a comparison with an integer type
08:23 < Maxdamantus> 5 might be a null pointer constant in some specific
implementation ..  it just means that the implementation must recognise 5 as being
able to be implicitly converted to any pointer type, and (void*)0 == 5, etc
08:23 < Maxdamantus> (and also malloc() will not be allowed to return
(void*)5)
08:23 < Maxdamantus> (unless it fails)
08:23 < aiju> weird standard shit
08:24 < Maxdamantus> aiju: null pointer constant, no.
08:25 < Maxdamantus> The standard does allow many weird things.  But for
simplicity, an implementation can ignore most of them.
08:26 < Maxdamantus> A programmer writing portable code often can't though,
as in that NULL vararg example.
08:28 < aiju> *grml*
08:28 < aiju> you can't get the address of a local variable in Go
08:28 < aiju> (if you try taking it Go simply moves the variable to the heap
…)
08:37 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
08:39 -!- alkavan [~alkavan@IGLD-84-229-231-169.inter.net.il] has quit [Quit:
Leaving]
08:43 -!- jeff2 [~sername@c-67-164-29-36.hsd1.ca.comcast.net] has quit [Quit:
Leaving]
09:03 -!- illya77 [~illya77@55-71-133-95.pool.ukrtel.net] has quit [Read error:
Connection reset by peer]
09:07 -!- watr_ [~watr@66.183.100.58] has joined #go-nuts
09:19 -!- vinisterx [~ryan@74-129-194-67.dhcp.insightbb.com] has joined #go-nuts
09:25 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
09:28 -!- watr_ [~watr@66.183.100.58] has quit [Ping timeout: 250 seconds]
09:30 -!- skejoe [~skejoe@188.114.142.162] has joined #go-nuts
09:32 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
09:33 -!- dforsyth [~dforsyth@c-76-21-40-117.hsd1.ca.comcast.net] has quit [Quit:
Computer has gone to sleep.]
09:35 -!- Skola [~ik@5352A3FB.cm-6-3c.dynamic.ziggo.nl] has joined #go-nuts
09:36 -!- Skola [~ik@5352A3FB.cm-6-3c.dynamic.ziggo.nl] has quit [Client Quit]
09:41 -!- Skola [~ik@5352A3FB.cm-6-3c.dynamic.ziggo.nl] has joined #go-nuts
09:41 -!- photron [~photron@port-92-201-241-225.dynamic.qsc.de] has joined
#go-nuts
09:43 -!- kashia_ [~Kashia@p4FEB2BFC.dip.t-dialin.net] has quit [Quit: This
computer has gone to sleep]
09:47 -!- Skola [~ik@5352A3FB.cm-6-3c.dynamic.ziggo.nl] has quit [Quit: Skola]
09:56 < jessta> aiju: Go doesn't really have a stack or a heap, it just has
memory.
09:56 < aiju> the underlying machine has
09:56 -!- DarthShrine [~angus@pdpc/supporter/student/DarthShrine] has quit [Quit:
DarthShrine]
09:56 < aiju> local variables get either allocated on heap with runtime·new
or allocated on stack
09:57 < jessta> but the spec doesn't
09:57 < jessta> it's implementation specific
09:57 < aiju> yeah
09:57 -!- photron [~photron@port-92-201-241-225.dynamic.qsc.de] has quit [Ping
timeout: 255 seconds]
09:58 < aiju> sorry, i want to get actual work done, not just argue about
standards
09:58 < jessta> oh, and the stacks are on the heap anyway
09:58 < aiju> not in my case …
10:03 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-148-187.clienti.tiscali.it] has
joined #go-nuts
10:10 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 265 seconds]
10:18 -!- DarthShrine [~angus@pdpc/supporter/student/DarthShrine] has joined
#go-nuts
10:19 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
10:21 -!- skejoe [~skejoe@188.114.142.162] has quit [Quit: Lost terminal]
10:25 -!- jon_r [~jon_r@67.201.160.103] has joined #go-nuts
10:26 -!- jon_r [~jon_r@67.201.160.103] has left #go-nuts []
10:26 -!- femtoo [~femto@95-89-248-110-dynip.superkabel.de] has joined #go-nuts
10:29 -!- rutkowski [~adrian@078088207135.walbrzych.vectranet.pl] has joined
#go-nuts
10:37 -!- rutkowski [~adrian@078088207135.walbrzych.vectranet.pl] has quit [Quit:
WeeChat 0.3.3-dev]
10:38 -!- jkakar [~jkakar@176.Red-79-155-139.dynamicIP.rima-tde.net] has quit
[Ping timeout: 240 seconds]
10:38 -!- quantumelixir [~chillu@203.110.240.41] has joined #go-nuts
10:50 -!- TheMue [~TheMue@p5DDF5BC0.dip.t-dialin.net] has joined #go-nuts
10:51 -!- nettok [~quassel@200.119.168.25] has quit [Ping timeout: 260 seconds]
10:53 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
10:54 -!- saturnfive [~saturnfiv@124.114.71.237] has joined #go-nuts
10:57 -!- gits [~gits@77.94.219.158] has joined #go-nuts
11:01 -!- sauerbraten [~sauerbrat@p508CD52F.dip.t-dialin.net] has joined #go-nuts
11:07 -!- Skola [~ik@5352A3FB.cm-6-3c.dynamic.ziggo.nl] has joined #go-nuts
11:16 -!- cafesofie [~cafesofie@rnwifi-164-107-93-24.resnet.ohio-state.edu] has
quit [Remote host closed the connection]
11:21 < saturnfive> hello
11:24 -!- m4dh4tt3r [~Adium@c-69-181-223-245.hsd1.ca.comcast.net] has joined
#go-nuts
11:39 -!- sauerbraten_ [~sauerbrat@p508CD52F.dip.t-dialin.net] has joined #go-nuts
11:39 -!- sauerbraten [~sauerbrat@p508CD52F.dip.t-dialin.net] has quit [Read
error: Connection reset by peer]
11:48 -!- gits [~gits@77.94.219.158] has quit [Ping timeout: 272 seconds]
11:48 -!- boscop_ [~boscop@f055144079.adsl.alicedsl.de] has quit [Ping timeout:
240 seconds]
11:51 -!- shvntr [~shvntr@123.89.96.38] has joined #go-nuts
11:52 -!- creack [~charme_g@163.5.84.215] has quit [Ping timeout: 255 seconds]
11:52 -!- TheMue [~TheMue@p5DDF5BC0.dip.t-dialin.net] has quit [Quit: TheMue]
11:55 -!- axle__ [~sauerbrat@p508CDF95.dip.t-dialin.net] has joined #go-nuts
11:56 -!- boscop [~boscop@f055214238.adsl.alicedsl.de] has joined #go-nuts
11:58 -!- sauerbraten_ [~sauerbrat@p508CD52F.dip.t-dialin.net] has quit [Ping
timeout: 250 seconds]
11:58 -!- jkakar [~jkakar@165.Red-79-157-7.dynamicIP.rima-tde.net] has joined
#go-nuts
12:03 -!- axle__ [~sauerbrat@p508CDF95.dip.t-dialin.net] has quit [Quit: Leaving]
12:04 -!- LeNsTR [~lenstr@unaffiliated/lenstr] has joined #go-nuts
12:05 -!- shvntr [~shvntr@123.89.96.38] has quit [Ping timeout: 264 seconds]
12:06 -!- creack [~charme_g@163.5.84.215] has joined #go-nuts
12:10 -!- tvw [~tv@e176001072.adsl.alicedsl.de] has joined #go-nuts
12:10 -!- tvw [~tv@e176001072.adsl.alicedsl.de] has quit [Remote host closed the
connection]
12:11 -!- foocraft [~dsc@dyn-86-36-43-92.wv.qatar.cmu.edu] has joined #go-nuts
12:11 -!- tvw [~tv@e176001072.adsl.alicedsl.de] has joined #go-nuts
12:18 -!- foocraft [~dsc@dyn-86-36-43-92.wv.qatar.cmu.edu] has quit [Ping timeout:
246 seconds]
12:26 -!- mosva [~mosva@unaffiliated/mosva] has joined #go-nuts
12:26 < mosva> Why should declaration and assigning value have the syntax :=
instead of just =
12:27 < aiju> to distinguish it from assignment
12:28 < mosva> Also, can I write p := &s instead of var p *string = &s
12:28 < aiju> yeah
12:28 < aiju> that's the point of :=
12:29 < mosva> It would have been easier if the first assignment is
automatically infered as a declaration
12:29 < aiju> what do you mean?
12:29 < aiju> p := &s is perfectly valid
12:30 < aiju> and declares p
12:32 < taruti> Is there any mail message parsing library in Go?
12:37 -!- m4dh4tt3r [~Adium@c-69-181-223-245.hsd1.ca.comcast.net] has quit [Quit:
Leaving.]
12:45 < jessta> mosva: then it would be ambiguous as to whether you where
using a variable in the outer scope or declaring a new variable in the current
scope with the same name
12:46 < mosva> jessta, Don't many other languages manage this ambiguity?
12:47 < aiju> mosva: tell me one
12:47 < jessta> mosva: other languages don't have block scoping
12:47 < jessta> *those languages
12:47 < aiju> it all gets down to specifying the scope of variables
12:47 < mosva> oh okay
12:48 < aiju> e.g.  you have a global or local keyword
12:48 -!- vdrab [~vdrab@pd3e9b4.kyotnt01.ap.so-net.ne.jp] has joined #go-nuts
12:52 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
13:05 -!- wrtp [~rog@92.17.93.184] has joined #go-nuts
13:08 < saturnfive> hello, everyone, which ui library are your use?
13:08 < aiju> fmt
13:08 -!- prip [~foo@host14-132-dynamic.35-79-r.retail.telecomitalia.it] has quit
[Read error: Connection reset by peer]
13:09 < taruti> http + http_jsonrpc
13:09 < taruti> "what UI" :)
13:10 < saturnfive> eg: gtk, qt
13:10 < taruti> none :)
13:10 < aiju> UI = user interface
13:10 < aiju> my user interface is the CLI
13:11 < saturnfive> oh
13:18 -!- shvntr [~shvntr@123.89.96.38] has joined #go-nuts
13:18 -!- DarthShrine [~angus@pdpc/supporter/student/DarthShrine] has quit [Ping
timeout: 246 seconds]
13:24 -!- prip [~foo@host80-133-dynamic.42-79-r.retail.telecomitalia.it] has
joined #go-nuts
13:26 -!- TheMue [~TheMue@p5DDF5BC0.dip.t-dialin.net] has joined #go-nuts
13:30 -!- wrtp [~rog@92.17.93.184] has quit [Quit: wrtp]
13:32 -!- shvntr [~shvntr@123.89.96.38] has quit [Ping timeout: 265 seconds]
13:32 -!- tav [~tav@92.7.128.181] has joined #go-nuts
13:40 < plexdev`> http://is.gd/YT75Y7 by [Ken Thompson] in go/src/cmd/5g/ --
arm reg bug MOVW into bool variable
13:40 < plexdev`> http://is.gd/4ZOvdx by [Ken Thompson] in go/src/cmd/5g/ --
disable reg - tar test failed
13:42 -!- tset [77384537@gateway/web/freenode/ip.119.56.69.55] has joined #go-nuts
13:44 -!- piranha [~piranha@5ED4B890.cm-7-5c.dynamic.ziggo.nl] has joined #go-nuts
14:03 -!- tset [77384537@gateway/web/freenode/ip.119.56.69.55] has quit [Quit:
Page closed]
14:13 -!- awidegreen [~quassel@c-eacae555.08-2-73746f39.cust.bredbandsbolaget.se]
has joined #go-nuts
14:28 -!- saturnfive [~saturnfiv@124.114.71.237] has left #go-nuts []
14:28 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:71ee:d7a6:f805:be55] has joined
#go-nuts
14:34 -!- vdrab [~vdrab@pd3e9b4.kyotnt01.ap.so-net.ne.jp] has quit [Quit: vdrab]
14:37 -!- awidegreen [~quassel@c-eacae555.08-2-73746f39.cust.bredbandsbolaget.se]
has quit [Read error: Connection reset by peer]
14:47 -!- awidegreen [~quassel@c-eacae555.08-2-73746f39.cust.bredbandsbolaget.se]
has joined #go-nuts
14:51 -!- devrim [~Adium@cpe-72-225-239-227.nyc.res.rr.com] has quit [Ping
timeout: 240 seconds]
14:51 -!- devrim [~Adium@cpe-72-225-239-227.nyc.res.rr.com] has joined #go-nuts
14:51 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
15:07 -!- awidegreen [~quassel@c-eacae555.08-2-73746f39.cust.bredbandsbolaget.se]
has quit [Remote host closed the connection]
15:09 -!- awidegreen [~quassel@c-eacae555.08-2-73746f39.cust.bredbandsbolaget.se]
has joined #go-nuts
15:22 -!- temoto [~temoto@95-25-160-208.broadband.corbina.ru] has joined #go-nuts
15:26 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has joined #go-nuts
15:31 -!- Boney [~paul@124.168.123.191] has quit [Ping timeout: 240 seconds]
15:31 -!- Boney [~paul@124.168.123.191] has joined #go-nuts
15:46 -!- wrtp [~rog@92.17.93.184] has joined #go-nuts
15:50 -!- skejoe [~skejoe@188.114.142.162] has joined #go-nuts
16:00 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3]
16:01 -!- Skola [~ik@5352A3FB.cm-6-3c.dynamic.ziggo.nl] has left #go-nuts []
16:47 -!- dju [dju@fsf/member/dju] has quit [Ping timeout: 260 seconds]
16:49 -!- dju [dju@at.dmz.me] has joined #go-nuts
16:49 -!- dju [dju@at.dmz.me] has quit [Changing host]
16:49 -!- dju [dju@fsf/member/dju] has joined #go-nuts
16:51 -!- sav [~lsd@189001130056.usr.predialnet.com.br] has joined #go-nuts
16:56 -!- quantumelixir [~chillu@203.110.240.41] has quit [Ping timeout: 240
seconds]
16:57 -!- quantumelixir [~chillu@203.110.240.41] has joined #go-nuts
17:03 -!- surma [~surma@dslb-188-096-219-234.pools.arcor-ip.net] has joined
#go-nuts
17:04 < surma> Hey guys.  I could have sworn that the path package used to
have Dirname() or something.  But now I can only find Base().  Is this worth an
issue?
17:04 < KirkMcDonald> surma: There's Split().
17:05 < surma> KirkMcDonald: Yeah, I know, but that means that I have to
path.Clean(), strings.Split() and then join everything but the last element
17:06 < surma> and also pay attention to os-dependent pathseparators
17:06 < surma> I tihnk this is should be in the path package, especially
since there's Base() already.  These function are like siblings ;)
17:06 < KirkMcDonald> surma: Split() just returns two items, the directory
and what Base() returns.
17:07 < surma> But bottom line is: there's no function to provide this
functionality yet, right?
17:07 < KirkMcDonald> func Dirname(path string) (dir string) { dir, _ =
path.Split() }
17:08 < surma> KirkMcDonald: Oh I'm so sorry
17:08 < surma> KirkMcDonald: Somehow I did not see path.Split
17:08 < surma> KirkMcDonald: Thanks.  (But why does Base() exist, then?  ;)
)
17:11 -!- surma [~surma@dslb-188-096-219-234.pools.arcor-ip.net] has quit [Quit:
surma]
17:23 -!- sav [~lsd@189001130056.usr.predialnet.com.br] has quit [Ping timeout:
240 seconds]
17:25 -!- exch [~exch@h78233.upc-h.chello.nl] has quit [Quit: leaving]
17:26 -!- sav [~lsd@189001130056.usr.predialnet.com.br] has joined #go-nuts
17:32 -!- exch [~exch@h78233.upc-h.chello.nl] has joined #go-nuts
17:33 -!- sav [~lsd@189001130056.usr.predialnet.com.br] has quit [Ping timeout:
265 seconds]
17:37 -!- surma [~surma@dslb-188-096-219-234.pools.arcor-ip.net] has joined
#go-nuts
17:40 < surma> Hey guys.  I'm struggling with reflections.  I got an
interface type (which is implemented by a struct type).  My goal is to enumerate
the functions of the interface (with names!).  When I call reflect.NewValue() and
try to assert that to (*reflect.InterfaceValue), it panics complaining that it is
a *reflect.PtrValue, and not an interface.  How do I obtain the InterfaceValue?
Enumerating the struct's functions doesn't yield the names.
17:45 < uriel> functions?  yo umean methods?
17:45 < uriel> (and no, I'm not sure I know the answer to your question)
17:45 < surma> yeah, I just found the mistake myself
17:45 < surma> acutally was the difference between functions and methods :-/
17:46 -!- sav [~lsd@189001130056.usr.predialnet.com.br] has joined #go-nuts
17:46 < exch> functions have no receiver.  Methods do
17:46 < exch> eg: functions don't 'belong to a type'
17:47 < exch> reflect.PtrValue can be dereferenced with it's Elem() method
17:47 < exch> It should yield the reflect.Value for whatever it points to
17:47 < exch> http://golang.org/pkg/reflect/ is your friend :)
17:47 < surma> exch: Thing is: I don't wanna dereference (which would give
me the reflect.Value of the struct), I want to enumerate the methods of the
interface
17:48 -!- Fish [~Fish@9fans.fr] has joined #go-nuts
17:48 < surma> exch: And now I'm enumerating all methods which the struct as
the receiver.  Why doesn't the assertion work?
17:49 < surma> exch: I'm on that page the whole time.  It's not so easy to
see throught it all, though
17:51 -!- sav [~lsd@189001130056.usr.predialnet.com.br] has quit [Ping timeout:
264 seconds]
17:52 < exch> Cant you just take the reflect.Type of whatever value you have
and enumerate it's methods?  Haven't tried this, but it should yield all methods
defined on your interface value or struct
17:52 -!- sav [~lsd@189001130056.usr.predialnet.com.br] has joined #go-nuts
17:53 * taruti thinks it may need extra wrapping before passing to reflect
17:53 < taruti> since reflect strips away the outermost interface
17:53 < surma> Yup, that's true.  But how do I know which functions are
defined by the interface?
17:53 < surma> ahh
17:54 < surma> I see my mistake
17:54 < surma> damn
17:54 < surma> okay, thanks guys.  I'm gonna go and be embarrassed for a
while ;)
17:54 -!- surma [~surma@dslb-188-096-219-234.pools.arcor-ip.net] has quit [Quit:
surma]
17:54 -!- dforsyth [~dforsyth@c-76-21-40-117.hsd1.ca.comcast.net] has joined
#go-nuts
18:06 -!- sav [~lsd@189001130056.usr.predialnet.com.br] has quit [Read error:
Connection reset by peer]
18:18 -!- sauerbraten [~sauerbrat@p508CDF95.dip.t-dialin.net] has joined #go-nuts
18:18 -!- jeffreyb [56938621@gateway/web/freenode/ip.86.147.134.33] has joined
#go-nuts
18:39 -!- Tv [~tv@cpe-76-168-227-45.socal.res.rr.com] has joined #go-nuts
18:57 -!- piranha [~piranha@5ED4B890.cm-7-5c.dynamic.ziggo.nl] has quit [Quit:
Computer has gone to sleep.]
19:13 -!- gits [~gits@77.94.219.158] has joined #go-nuts
19:14 -!- tvw [~tv@e176001072.adsl.alicedsl.de] has quit [Remote host closed the
connection]
19:27 < femtoo> how to convert a string to byte[]?
19:29 -!- sacho [~sacho@90.154.201.105] has quit [Ping timeout: 264 seconds]
19:29 < cbeck> []byte(mystring)
19:29 < femtoo> ty
19:30 < femtoo> that's why I love irc
19:31 < aiju> this wasn't quite an irc typical answer
19:31 < aiju> let's retry this
19:31 < aiju> femtoo: CHRIST RTFM DUDE
19:31 < femtoo> lol
19:31 -!- skejoe [~skejoe@188.114.142.162] has quit [Read error: Operation timed
out]
19:34 -!- nettok [~quassel@200.119.190.170] has joined #go-nuts
19:35 -!- skejoe [~skejoe@188.114.142.162] has joined #go-nuts
19:38 -!- Scorchin [~Scorchin@host86-186-246-184.range86-186.btcentralplus.com]
has joined #go-nuts
19:39 -!- segy [~segfault@pdpc/supporter/active/segy] has quit [Quit: leaving]
19:40 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
19:43 -!- fabled [~fabled@mail.fi.jw.org] has quit [Quit: Ex-Chat]
19:43 -!- skejoe_ [~skejoe@188.114.142.162] has joined #go-nuts
19:43 -!- skejoe [~skejoe@188.114.142.162] has quit [Read error: Operation timed
out]
19:44 -!- awidegreen [~quassel@c-eacae555.08-2-73746f39.cust.bredbandsbolaget.se]
has quit [Remote host closed the connection]
19:48 -!- sacho [~sacho@90.154.201.105] has joined #go-nuts
19:48 -!- segy [~segfault@mail.hasno.info] has joined #go-nuts
19:48 -!- segy [~segfault@mail.hasno.info] has quit [Changing host]
19:48 -!- segy [~segfault@pdpc/supporter/active/segy] has joined #go-nuts
19:56 -!- sacho [~sacho@90.154.201.105] has quit [Ping timeout: 240 seconds]
20:01 -!- femtooo [~femto@95-89-248-110-dynip.superkabel.de] has joined #go-nuts
20:04 -!- femtoo [~femto@95-89-248-110-dynip.superkabel.de] has quit [Ping
timeout: 260 seconds]
20:05 -!- sacho [~sacho@90.154.201.105] has joined #go-nuts
20:09 -!- jeffreyb [56938621@gateway/web/freenode/ip.86.147.134.33] has quit [Ping
timeout: 265 seconds]
20:25 -!- pothos_ [~pothos@111-240-168-94.dynamic.hinet.net] has joined #go-nuts
20:25 -!- virtualsue [~chatzilla@93-97-62-8.zone5.bethere.co.uk] has joined
#go-nuts
20:26 -!- pothos [~pothos@111-240-165-86.dynamic.hinet.net] has quit [Ping
timeout: 246 seconds]
20:31 -!- kixo [~kixo@78-0-206-31.adsl.net.t-com.hr] has joined #go-nuts
20:31 < kixo> hi
20:32 < kixo> keysort a map in go ?
20:33 < kixo> can it be done?
20:33 < aiju> "keysort"?
20:33 < kixo> like php-s ksort
20:33 < aiju> what does it do?
20:33 < jumzi> sorting keys?
20:33 < aiju> maps in Go are hashmaps, the keys aren't ordered in any way
20:34 < kixo> hm
20:35 < zozoR> you can make a struct with key and value, make a list and add
functions to satisfy sort interface and your done :P
20:36 -!- virtualsue [~chatzilla@93-97-62-8.zone5.bethere.co.uk] has quit [Ping
timeout: 240 seconds]
20:37 -!- virtualsue [~chatzilla@nat/cisco/x-vkzjawchitipkcmg] has joined #go-nuts
20:39 < jumzi> As any true supported i should ask: what is to be achived?
20:41 < kixo> i have limited (6) key-value pairs, i need to sort them by key
then concat and md5'em
20:42 < kixo> i'll just hard-code it for now
20:46 < aiju> if the order of keys is important, a hashmap is not what you
want
20:46 < kixo> i noticed :)
20:48 -!- sauerbraten [~sauerbrat@p508CDF95.dip.t-dialin.net] has quit [Quit:
Leaving]
20:54 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Read error:
Connection reset by peer]
20:55 -!- anticw [~anticw@c-67-169-68-180.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
20:59 -!- m4dh4tt3r [~Adium@c-69-181-223-245.hsd1.ca.comcast.net] has joined
#go-nuts
21:01 -!- anticw [~anticw@c-67-169-68-180.hsd1.ca.comcast.net] has joined #go-nuts
21:05 -!- femtooo [~femto@95-89-248-110-dynip.superkabel.de] has quit [Ping
timeout: 260 seconds]
21:08 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts
21:12 -!- jeffreyb [56938621@gateway/web/freenode/ip.86.147.134.33] has joined
#go-nuts
21:15 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 260 seconds]
21:18 -!- TheMue [~TheMue@p5DDF5BC0.dip.t-dialin.net] has quit [Quit: TheMue]
21:29 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
21:37 -!- watr_ [~watr@66.183.100.58] has joined #go-nuts
21:39 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller,
Faster, Easier.  http://miranda-im.org]
21:41 -!- vpit3833 [~user@203.111.33.203] has joined #go-nuts
21:43 -!- ment [thement@ibawizard.net] has quit [Quit: eof]
21:45 -!- lmoura_ [~lauromour@187.59.245.160] has quit [Ping timeout: 250 seconds]
21:48 -!- lmoura_ [~lauromour@187.113.165.27] has joined #go-nuts
21:56 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:71ee:d7a6:f805:be55] has quit
[Quit: Leaving.]
21:56 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
21:57 -!- crazy2be [~justin@d75-152-162-237.abhsia.telus.net] has joined #go-nuts
22:01 -!- nsf [~nsf@jiss.convex.ru] has quit [Client Quit]
22:02 < crazy2be> is there anything wrong with my Stringer interface at
http://pastie.org/1468081?
22:03 < crazy2be> because when i call fmt.Println on a []Event structure, i
don't get the output of the String() function
22:07 -!- Qvist_ [~erik@c-9fcce455.05-294-6c6b701.cust.bredbandsbolaget.se] has
joined #go-nuts
22:10 -!- artefon [~thiago@189.59.130.73] has joined #go-nuts
22:16 -!- sifi [~silas@unaffiliated/sifi] has joined #go-nuts
22:19 < temoto> crazy2be, you described a method for *Time, but Event has
Time (not pointer to Time).
22:20 < exch> The runtime should automatically call Stirng() with a pointer.
22:21 < exch> *String
22:21 < temoto> kixo, i'd create a list of keys, sort it and then iterate
over that list while concating for md5 operation.
22:22 < crazy2be> temoto: Ah, thanks!
22:22 < crazy2be> i figured it was something obvious
22:25 < temoto> crazy2be, does it work if you add/remove pointer?
22:25 < crazy2be> if i change it to a Time *Time within the Event structure
it works
22:26 < crazy2be> so, thanks again :)
22:26 < temoto> Sad, isn't it?
22:26 < crazy2be> one of those things you don't notice in your own code, but
someone else can pick out instantly :P
22:27 < temoto> I mean exch is right, your code is supposed to work.
22:29 < exch> The only reason I can think of, is that the reflection code in
fmt does not conform with the runtime rules for method receivers
22:30 -!- DarthShrine [~angus@60-242-109-62.tpgi.com.au] has joined #go-nuts
22:30 -!- DarthShrine [~angus@60-242-109-62.tpgi.com.au] has quit [Changing host]
22:30 -!- DarthShrine [~angus@pdpc/supporter/student/DarthShrine] has joined
#go-nuts
22:30 < exch> It doesn't find (*T) String() and just uses the default
behaviour
22:30 < exch> err, it doesn't find (T) String()
22:32 < temoto> Separate reflection code in fmt...  sad.
22:33 < temoto> Good news is that we can fix that.
22:33 -!- Kashia [~Kashia@port-92-200-22-224.dynamic.qsc.de] has joined #go-nuts
22:34 < exch> I'm just guessing here really.  I might be entirely wrong
22:34 -!- jeffreyb [56938621@gateway/web/freenode/ip.86.147.134.33] has quit [Ping
timeout: 265 seconds]
22:39 -!- Fish [~Fish@9fans.fr] has quit [Quit: So Long, and Thanks for All the
Fish]
22:40 -!- virtualsue [~chatzilla@nat/cisco/x-vkzjawchitipkcmg] has quit [Ping
timeout: 276 seconds]
22:45 -!- gits [~gits@77.94.219.158] has quit [Ping timeout: 265 seconds]
22:50 -!- zozoR [~zozoR@56346ed3.rev.stofanet.dk] has quit [Quit: Morten.  Desu~]
22:51 -!- cafesofie [~cafesofie@dhcp-140-254-204-17.osuwireless.ohio-state.edu]
has joined #go-nuts
22:57 -!- exch [~exch@h78233.upc-h.chello.nl] has quit [Read error: Connection
reset by peer]
22:59 -!- exch [~exch@h78233.upc-h.chello.nl] has joined #go-nuts
23:09 -!- devrim1 [~Adium@cpe-72-225-239-227.nyc.res.rr.com] has joined #go-nuts
23:09 -!- devrim [~Adium@cpe-72-225-239-227.nyc.res.rr.com] has quit [Read error:
Connection reset by peer]
23:12 -!- LeNsTR [~lenstr@unaffiliated/lenstr] has quit [Quit: LeNsTR]
23:12 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
23:12 -!- Qvist_ [~erik@c-9fcce455.05-294-6c6b701.cust.bredbandsbolaget.se] has
quit [Quit: Lost terminal]
23:12 -!- wrtp [~rog@92.17.93.184] has quit [Quit: wrtp]
23:17 -!- shvntr [~shvntr@123.89.110.64] has joined #go-nuts
23:24 -!- LeNsTR [~lenstr@unaffiliated/lenstr] has joined #go-nuts
23:34 -!- tav [~tav@92.7.128.181] has quit [Quit: tav]
23:36 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Ping timeout: 272 seconds]
23:38 -!- tav [~tav@92.7.128.181] has joined #go-nuts
23:43 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
23:51 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-148-187.clienti.tiscali.it] has
quit [Quit: E se abbasso questa leva che succ...]
23:56 -!- artefon [~thiago@189.59.130.73] has quit [Read error: Connection reset
by peer]
--- Log closed Mon Jan 17 00:00:03 2011