Go Language Resources Go, golang, go... NOTE: This page ceased updating in October, 2012

--- Log opened Fri Jan 15 00:00:46 2010
00:03 * araujo liking the type system of Go
00:04 < araujo> though still figuring out a bit the go routines, any more
resources about it around?
00:07 < plexdev> http://is.gd/6hx9x by [Rob Pike] in go/src/pkg/time/ -- fix
+0000 time zones.
00:16 -!- scarabx [n=scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
00:17 -!- Xera^ [n=brit@87-194-208-246.bethere.co.uk] has joined #go-nuts
00:17 -!- trevor_ [n=trevor@adsl-70-143-44-82.dsl.tul2ok.sbcglobal.net] has joined
#go-nuts
00:21 -!- gnibbler [n=duckman@203-217-90-83.dyn.iinet.net.au] has quit [Operation
timed out]
00:21 -!- alec [n=amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has quit [Read
error: 110 (Connection timed out)]
00:21 -!- gnibbler [n=duckman@203-217-90-83.dyn.iinet.net.au] has joined #go-nuts
00:30 -!- Xera` [n=brit@87-194-208-246.bethere.co.uk] has joined #go-nuts
00:30 -!- mward [n=mward@10.sub-70-194-214.myvzw.com] has quit [Read error: 110
(Connection timed out)]
00:31 -!- sinuhe [n=user@97-117-67-167.slkc.qwest.net] has quit ["ERC Version 5.2
(IRC client for Emacs)"]
00:32 -!- Kibiz0r [n=Adium@99-48-204-31.lightspeed.brhmmi.sbcglobal.net] has
joined #go-nuts
00:34 -!- hcatlin [n=hcatlin@pdpc/supporter/professional/hcatlin] has joined
#go-nuts
00:34 -!- Xera^ [n=brit@87-194-208-246.bethere.co.uk] has quit [Read error: 60
(Operation timed out)]
00:35 -!- hcatlin [n=hcatlin@pdpc/supporter/professional/hcatlin] has quit [Client
Quit]
00:35 -!- Kibiz0r [n=Adium@99-48-204-31.lightspeed.brhmmi.sbcglobal.net] has quit
[Client Quit]
00:39 -!- skelterjohn [n=jasmuth@c-76-116-179-93.hsd1.nj.comcast.net] has joined
#go-nuts
00:48 -!- plexdev [n=plexdev@arthur.espians.com] has quit [Remote closed the
connection]
00:49 -!- plexdev [n=plexdev@arthur.espians.com] has joined #go-nuts
01:02 -!- kanru [n=kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts
01:04 -!- droid001 [n=g1@p4FDCA3D6.dip.t-dialin.net] has joined #go-nuts
01:07 < plexdev> http://is.gd/6hG1T by [Nigel Tao] in go/src/pkg/exp/draw/
-- Fix s/Width/Height/ typo in draw.go.
01:07 < plexdev> http://is.gd/6hG28 by [Rob Pike] in go/doc/ -- be more
explicit about initialization of embedded fields.
01:07 -!- fgb [n=fgb@190.246.85.45] has joined #go-nuts
01:09 -!- rrr [i=rrr@gateway/gpg-tor/key-0x9230E18F] has joined #go-nuts
01:09 -!- fifoman [n=fifoman@p4FCC6DF6.dip.t-dialin.net] has quit [Read error: 110
(Connection timed out)]
01:15 -!- triplez [n=triplez@cm52.sigma225.maxonline.com.sg] has quit []
01:17 -!- Wi11 [n=william@dhcp-0-14-bf-38-80-9c.cpe.powergate.ca] has quit [Read
error: 54 (Connection reset by peer)]
01:17 -!- Wi11 [n=william@dhcp-0-14-bf-38-80-9c.cpe.powergate.ca] has joined
#go-nuts
01:18 -!- bortzmeyer [n=stephane@central.sources.org] has joined #go-nuts
01:24 -!- michael| [n=maikeru@unaffiliated/maikeru/x-7708887] has quit [Read
error: 60 (Operation timed out)]
01:26 -!- michael| [n=maikeru@24-107-56-173.dhcp.stls.mo.charter.com] has joined
#go-nuts
01:27 -!- Kibiz0r [n=Adium@h69-128-220-162.wyngmi.dedicated.static.tds.net] has
joined #go-nuts
01:28 -!- sinuhe [n=user@kaptah.deevans.net] has joined #go-nuts
01:37 -!- Kibiz0r [n=Adium@h69-128-220-162.wyngmi.dedicated.static.tds.net] has
quit ["Leaving."]
01:40 -!- triplez [n=triplez@bb116-14-33-119.singnet.com.sg] has joined #go-nuts
01:41 -!- rrr [i=rrr@gateway/gpg-tor/key-0x9230E18F] has quit [Remote closed the
connection]
01:46 -!- b00m_chef [n=watr@d64-180-45-230.bchsia.telus.net] has quit [Read error:
60 (Operation timed out)]
01:46 -!- crakrjak [n=merc@rrcs-70-62-156-154.central.biz.rr.com] has quit [Read
error: 60 (Operation timed out)]
01:49 -!- Venom_X [n=pjacobs@66.54.185.131] has quit []
01:58 -!- Arathorn [n=arathorn@78-86-114-145.zone2.bethere.co.uk] has quit ["This
computer has gone to sleep"]
02:01 -!- Wi11 [n=william@dhcp-0-14-bf-38-80-9c.cpe.powergate.ca] has quit [Read
error: 110 (Connection timed out)]
02:03 -!- amacleod [n=amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has joined
#go-nuts
02:06 < trevor_> Is the go talk given at stanford available online?
02:08 -!- sinuhe [n=user@kaptah.deevans.net] has quit ["ERC Version 5.2 (IRC
client for Emacs)"]
02:16 -!- araujo [n=araujo@gentoo/developer/araujo] has quit ["Leaving"]
02:19 < skelterjohn> the slides are
http://golang.org/doc/talks/go_talk-20100112.html
02:19 -!- tomestla [n=tom@AToulouse-151-1-92-110.w86-217.abo.wanadoo.fr] has quit
[Read error: 110 (Connection timed out)]
02:20 -!- nutate [n=rseymour@cacsag4.usc.edu] has quit ["I'm outta heee-eere"]
02:23 -!- b00m_chef [n=watr@128.189.78.202] has joined #go-nuts
02:24 -!- rhelmer [n=rhelmer@adsl-71-139-219-78.dsl.snfc21.pacbell.net] has quit
[]
02:25 -!- rhelmer [n=rhelmer@adsl-71-139-219-78.dsl.snfc21.pacbell.net] has joined
#go-nuts
02:25 -!- Wiz126 [n=Wiz126@24.115.240.60.res-cmts.sm.ptd.net] has joined #go-nuts
02:27 -!- Wiz126 [n=Wiz126@24.115.240.60.res-cmts.sm.ptd.net] has quit [Client
Quit]
02:28 -!- Wiz126 [n=Wiz126@24.115.240.60.res-cmts.sm.ptd.net] has joined #go-nuts
02:30 -!- jqgc [n=irchon@modemcable152.246-82-70.mc.videotron.ca] has joined
#go-nuts
02:31 -!- rhelmer [n=rhelmer@adsl-71-139-219-78.dsl.snfc21.pacbell.net] has quit
[]
02:32 -!- jqgc [n=irchon@modemcable152.246-82-70.mc.videotron.ca] has quit [Remote
closed the connection]
02:35 -!- Wi11 [n=william@dhcp-0-14-bf-38-80-9c.cpe.powergate.ca] has joined
#go-nuts
02:38 -!- kanru [n=kanru@61-30-10-70.static.tfn.net.tw] has quit ["WeeChat 0.3.0"]
02:38 < trevor> skelterjohn: I saw those, thats how I came to know of the
talk
02:39 < trevor> I'd like to see the talk itself
02:41 -!- kanru [n=kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts
02:45 -!- binaryjohn [n=binaryjo@cpe-24-30-132-50.san.res.rr.com] has joined
#go-nuts
02:51 -!- kota1111 [n=kota1111@gw2.kbmj.jp] has joined #go-nuts
02:52 -!- fgb [n=fgb@190.246.85.45] has quit [Read error: 104 (Connection reset by
peer)]
03:05 < trevor> Anyone think it would be useful to have a channel that sends
one type but receives a different one?
03:05 < trevor> Its a use case I've been hitting
03:06 < trevor> I commonly pass a chan to a function to send data to the
function and I need a different kind of data back
03:06 -!- jA_cOp [n=yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts
03:07 < trevor> Say the function runs a computation on a set of numbers and
all I need back is a bool
03:08 < trevor> bool <-chan <-[]int
03:08 < trevor> Chan receives []int and sends bool
03:08 < trevor> Ugly syntax, but maybe theres something better
03:09 < damjan> trevor: ? one go routine sends on the channel, the other has
to read the same thing
03:09 < damjan> trevor: you would need another channel for the bool
03:09 < trevor> I know
03:10 < trevor> Thats what I'm doing now
03:10 < trevor> The computation function is the sender.  It knows it can
only send bools
03:11 < trevor> The caller function can only send []int
03:11 < trevor> Just a thought, now that I think of it I realize it doesn't
make much sense
03:13 < trevor> On a related note, do you think it is "cleaner" for an api
to take a struct containing two chan (data feeder chan and response chan) or just
the two chans themselves?
03:19 -!- rrr [i=rrr@gateway/gpg-tor/key-0x9230E18F] has joined #go-nuts
03:24 -!- crakrjak [n=merc@rrcs-70-62-156-154.central.biz.rr.com] has joined
#go-nuts
03:26 -!- Kibiz0r [n=Adium@h69-128-220-162.wyngmi.dedicated.static.tds.net] has
joined #go-nuts
03:26 -!- Kibiz0r [n=Adium@h69-128-220-162.wyngmi.dedicated.static.tds.net] has
quit [Remote closed the connection]
03:30 -!- crakrjak [n=merc@rrcs-70-62-156-154.central.biz.rr.com] has quit [Remote
closed the connection]
03:34 -!- Eridius [n=kevin@growl/Eridius] has quit [Read error: 60 (Operation
timed out)]
03:42 -!- amacleod [n=amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has quit [Read
error: 110 (Connection timed out)]
03:47 -!- crakrjak [n=merc@rrcs-70-62-156-154.central.biz.rr.com] has joined
#go-nuts
03:47 -!- fgb [n=fgb@190.246.85.45] has joined #go-nuts
03:48 -!- carllerche [n=carllerc@99-8-186-86.lightspeed.snfcca.sbcglobal.net] has
joined #go-nuts
03:48 -!- sinuhe [n=user@kaptah.deevans.net] has joined #go-nuts
04:15 -!- skyfive [n=skyfive@173-11-110-86-SFBA.hfc.comcastbusiness.net] has quit
["Leaving..."]
04:15 -!- sinuhe [n=user@kaptah.deevans.net] has quit [Read error: 60 (Operation
timed out)]
04:15 -!- carllerche [n=carllerc@99-8-186-86.lightspeed.snfcca.sbcglobal.net] has
quit []
04:15 -!- scm_ [i=justme@c209141.adsl.hansenet.de] has joined #go-nuts
04:28 -!- scm [i=justme@c222049.adsl.hansenet.de] has quit [Read error: 110
(Connection timed out)]
04:29 -!- jackman [n=jackman@75-169-148-56.slkc.qwest.net] has quit [Read error:
110 (Connection timed out)]
04:31 -!- murodes1 [n=James@124-169-244-15.dyn.iinet.net.au] has joined #go-nuts
04:31 -!- pdusen [n=pdusen@crob4-55.flint.umich.edu] has quit [Read error: 60
(Operation timed out)]
04:33 -!- binaryjohn [n=binaryjo@cpe-24-30-132-50.san.res.rr.com] has quit []
04:34 -!- pdusen [n=pdusen@crob4-55.flint.umich.edu] has joined #go-nuts
04:35 -!- binaryjohn [n=binaryjo@cpe-24-30-132-50.san.res.rr.com] has joined
#go-nuts
04:37 -!- murodese [n=James@124-169-196-46.dyn.iinet.net.au] has quit [Read error:
110 (Connection timed out)]
04:37 -!- crakrjak [n=merc@rrcs-70-62-156-154.central.biz.rr.com] has quit [Remote
closed the connection]
04:40 -!- pvandusen [n=pdusen@crob4-55.flint.umich.edu] has joined #go-nuts
04:40 -!- sinuhe [n=user@kaptah.deevans.net] has joined #go-nuts
04:49 -!- trevor [n=trevor@adsl-70-143-44-82.dsl.tul2ok.sbcglobal.net] has quit []
04:53 -!- pdusen [n=pdusen@crob4-55.flint.umich.edu] has quit [Read error: 110
(Connection timed out)]
04:54 -!- crakrjak [n=merc@rrcs-70-62-156-154.central.biz.rr.com] has joined
#go-nuts
04:59 -!- dj_ryan [n=ryan@c-67-160-202-4.hsd1.ca.comcast.net] has quit [Read
error: 60 (Operation timed out)]
05:03 -!- sinuhe [n=user@kaptah.deevans.net] has quit ["ERC Version 5.2 (IRC
client for Emacs)"]
05:03 -!- dj_ryan [n=ryan@c-67-160-202-4.hsd1.ca.comcast.net] has joined #go-nuts
05:04 -!- bl3u [n=me@24-107-152-12.dhcp.stls.mo.charter.com] has quit [Read error:
110 (Connection timed out)]
05:06 -!- mejja [n=user@c-49b6e555.023-82-73746f38.cust.bredbandsbolaget.se] has
quit [Remote closed the connection]
05:17 -!- droid0011 [n=g1@p4FDC951A.dip.t-dialin.net] has joined #go-nuts
05:24 -!- Xera` [n=brit@87-194-208-246.bethere.co.uk] has quit ["(
www.nnscript.com :: NoNameScript 4.21 :: www.esnation.com )"]
05:27 -!- binaryjohn [n=binaryjo@cpe-24-30-132-50.san.res.rr.com] has quit []
05:33 -!- droid001 [n=g1@p4FDCA3D6.dip.t-dialin.net] has quit [Connection timed
out]
05:39 -!- b00m_chef [n=watr@128.189.78.202] has quit [Read error: 110 (Connection
timed out)]
05:49 -!- iant [n=iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Read
error: 104 (Connection reset by peer)]
05:51 -!- iant [n=iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined
#go-nuts
05:51 -!- mode/#go-nuts [+v iant] by ChanServ
05:57 -!- pjm0616 [n=user@61.250.113.98] has quit []
06:00 -!- ceh [n=ceh@celsius.it.uu.se] has joined #go-nuts
06:04 -!- iwikiwi [n=iwikiwi@202.3.77.160] has joined #go-nuts
06:07 -!- r2p2 [n=billy@v32671.1blu.de] has joined #go-nuts
06:09 -!- araujo [n=araujo@gentoo/developer/araujo] has joined #go-nuts
06:15 -!- Vova [n=Vova@77.125.6.107] has quit [Read error: 60 (Operation timed
out)]
06:16 -!- scarabx [n=scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit ["This
computer has gone to sleep"]
06:16 -!- Vova [n=Vova@77.125.15.114] has joined #go-nuts
06:17 -!- rrr [i=rrr@gateway/gpg-tor/key-0x9230E18F] has quit [Remote closed the
connection]
06:29 -!- werdan7 [n=w7@freenode/staff/wikimedia.werdan7] has quit [SendQ
exceeded]
06:32 -!- werdan7 [n=w7@freenode/staff/wikimedia.werdan7] has joined #go-nuts
06:33 -!- ni|_ [n=james@users.vu.union.edu] has joined #go-nuts
06:33 -!- ni| [n=james@users.vu.union.edu] has quit [Read error: 104 (Connection
reset by peer)]
06:38 -!- Amaranth [n=travis@ubuntu/member/Amaranth] has quit ["Ex-Chat"]
06:52 -!- path[l] [i=UPP@120.138.102.34] has quit []
06:52 -!- skelterjohn [n=jasmuth@c-76-116-179-93.hsd1.nj.comcast.net] has quit []
06:58 -!- Xeon [n=chatzill@202.158.165.178] has joined #go-nuts
07:07 -!- tgall_foo [n=tgall@gentoo/developer/dr-who] has quit [Read error: 60
(Operation timed out)]
07:08 -!- Xeon_ [n=chatzill@202.158.165.178] has joined #go-nuts
07:12 -!- idea_squirrel [n=ct2rips@77-22-20-3-dynip.superkabel.de] has joined
#go-nuts
07:12 -!- Xavier [i=xavier@bitchx/dev/eth0] has quit [Read error: 60 (Operation
timed out)]
07:13 -!- Xavier [i=FEET@gospel.wielder.net] has joined #go-nuts
07:13 -!- Xeon [n=chatzill@202.158.165.178] has quit [Read error: 60 (Operation
timed out)]
07:16 -!- path[l] [n=path@59.162.86.164] has joined #go-nuts
07:18 -!- murodese [n=James@124-169-78-127.dyn.iinet.net.au] has joined #go-nuts
07:31 -!- techsurvivor [n=fenris@ppp-70-254-33-69.dsl.lgvwtx.swbell.net] has quit
[Client Quit]
07:34 -!- dju [n=dju@89-158-236-229.rev.dartybox.com] has quit ["Quitte"]
07:35 -!- dju [i=dju@89-158-236-229.rev.dartybox.com] has joined #go-nuts
07:38 -!- murodes1 [n=James@124-169-244-15.dyn.iinet.net.au] has quit [Read error:
110 (Connection timed out)]
07:41 -!- rrr_ [i=rrr@gateway/gpg-tor/key-0x9230E18F] has joined #go-nuts
07:41 -!- Amaranth [n=travis@ubuntu/member/Amaranth] has joined #go-nuts
07:47 -!- rog_ [n=rog@89.241.197.228] has joined #go-nuts
07:47 -!- flipflop [n=FlipFlop@unaffiliated/fl1pfl0p] has quit ["Leaving."]
07:52 -!- Spaghettini [n=Spaghett@vaxjo8.44.cust.blixtvik.net] has joined #go-nuts
07:57 -!- trickie [n=trickie@94.100.112.225] has joined #go-nuts
07:58 -!- lambo4jos [n=chatzill@c-76-126-250-10.hsd1.ca.comcast.net] has joined
#go-nuts
07:59 -!- ceh [n=ceh@celsius.it.uu.se] has quit ["-> productivity"]
08:02 -!- KB1JWQ [i=KB1JWQ@freenode/staff/kb1jwq] has quit [Remote closed the
connection]
08:03 -!- KB1JWQ [i=KB1JWQ@freenode/staff/kb1jwq] has joined #go-nuts
08:07 -!- Netsplit kubrick.freenode.net <-> irc.freenode.net quits: Xeon_,
akheron, mitsuhiko, Gussi, Fringehead, andern, dj_ryan, goplexian, mat_, murodese,
(+73 more, use /NETSPLIT to show all of them)
08:07 -!- Netsplit kubrick.freenode.net <-> irc.freenode.net quits:
Innominate, drhodes, General13372, zimbatm, felipe, roto, fluffle, xorl, niekie,
Rint_, (+30 more, use /NETSPLIT to show all of them)
08:09 -!- ct2rips [i=ct2rips@77-22-20-3-dynip.superkabel.de] has joined #go-nuts
08:09 -!- Netsplit over, joins: drhodes, CodeBlock, rndbot, soul9, jessta,
Guest74057, yiyus, mycroftiv, ivan`, mpl (+113 more)
08:10 -!- tgall_foo [n=tgall@gentoo/developer/dr-who] has joined #go-nuts
08:12 -!- goplexian [n=user@d154-20-0-9.bchsia.telus.net] has quit [Remote closed
the connection]
08:12 -!- goplexian [n=user@d154-20-0-9.bchsia.telus.net] has joined #go-nuts
08:13 -!- lambo4jos [n=chatzill@c-76-126-250-10.hsd1.ca.comcast.net] has quit
["ChatZilla 0.9.86 [Firefox 3.5.7/20091221164558]"]
08:18 -!- ShadowIce [n=pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
08:20 -!- stalled [n=411@unaffiliated/stalled] has quit [Excess Flood]
08:21 -!- idea_squirrel [n=ct2rips@77-22-20-3-dynip.superkabel.de] has quit
[Connection timed out]
08:22 -!- Method [n=Method@unaffiliated/method] has quit ["No Ping reply in 90
seconds."]
08:23 -!- Method [n=Method@nat-3-135.snu.edu] has joined #go-nuts
08:26 -!- KB1JWQ [i=KB1JWQ@freenode/staff/kb1jwq] has quit [Client Quit]
08:28 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has joined #go-nuts
08:29 -!- KB1JWQ [i=KB1JWQ@freenode/staff/kb1jwq] has joined #go-nuts
08:30 -!- tibshoot [n=tibshoot@linagora-230-146.pr0.nerim.net] has joined #go-nuts
08:30 -!- stalled [n=411@unaffiliated/stalled] has joined #go-nuts
08:38 -!- tanamo [n=tanamo@125.252.70.230] has joined #go-nuts
08:43 -!- MadMethod [n=Method@nat-3-135.snu.edu] has joined #go-nuts
08:43 -!- Method [n=Method@unaffiliated/method] has quit [Broken pipe]
08:45 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has quit [Read
error: 104 (Connection reset by peer)]
08:45 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has joined #go-nuts
08:45 -!- fifoman [n=fifoman@p4FCC6C08.dip.t-dialin.net] has joined #go-nuts
08:50 -!- nighty__ [n=nighty@210.188.173.245] has joined #go-nuts
08:51 -!- kaigan|work
[n=kaigan@c-8290e255.1411-10-64736c14.cust.bredbandsbolaget.se] has joined
#go-nuts
08:56 -!- CodyH [n=codysloc@fl-76-3-191-210.dhcp.embarqhsd.net] has joined
#go-nuts
08:57 -!- beckman0 [n=beckp@81-223-19-26.triestersiedlung.xdsl-line.inode.at] has
joined #go-nuts
08:59 -!- reppie [i=refugee@elvis.mu.org] has quit [Read error: 104 (Connection
reset by peer)]
08:59 -!- CodyH [n=codysloc@fl-76-3-191-210.dhcp.embarqhsd.net] has quit [Client
Quit]
09:02 -!- Metaphis [n=cyanure@81-65-198-68.rev.numericable.fr] has joined #go-nuts
09:02 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has quit [Read
error: 60 (Operation timed out)]
09:05 -!- reppie [i=refugee@elvis.mu.org] has joined #go-nuts
09:16 -!- JohnDoe365 [n=JohnDoe3@193.171.58.27] has joined #go-nuts
09:19 -!- Cyanure[cn] [n=cyanure@81-65-198-68.rev.numericable.fr] has joined
#go-nuts
09:20 -!- Metaphis [n=cyanure@81-65-198-68.rev.numericable.fr] has quit [Read
error: 60 (Operation timed out)]
09:25 -!- sfuentes [n=sfuentes@cpe-98-154-70-216.socal.res.rr.com] has quit
["leaving"]
09:26 -!- reppie [i=refugee@elvis.mu.org] has quit ["Reconnecting"]
09:28 -!- xorl_ [n=xorl@xorl.xen.prgmr.com] has joined #go-nuts
09:28 -!- Maxdaman1us [n=Maxdam@203-97-238-106.cable.telstraclear.net] has joined
#go-nuts
09:28 -!- xorl [n=xorl@xorl.xen.prgmr.com] has quit [Broken pipe]
09:28 -!- Maxdamantus [n=Maxdam@203-97-238-106.cable.telstraclear.net] has quit
[Broken pipe]
09:28 -!- kaigan|work
[n=kaigan@c-8290e255.1411-10-64736c14.cust.bredbandsbolaget.se] has quit []
09:34 -!- senneth_ [i=senneth@irssi/staff/senneth] has joined #go-nuts
09:35 -!- dj_ryan [n=ryan@c-67-160-202-4.hsd1.ca.comcast.net] has quit [Connection
reset by peer]
09:35 -!- senneth [i=senneth@irssi/staff/senneth] has quit [Remote closed the
connection]
09:35 -!- reppie [i=refugee@elvis.mu.org] has joined #go-nuts
09:37 -!- nighty__ [n=nighty@210.188.173.245] has quit [Remote closed the
connection]
09:44 -!- crashR [n=crasher@codextreme.pck.nerim.net] has joined #go-nuts
09:46 < dagle> Hmmm.
09:46 -!- Demp [n=Demp@bzq-79-181-41-141.red.bezeqint.net] has joined #go-nuts
09:46 < dagle> Is really ArrayCopy needed when we have copy?
09:46 < dagle> Don't they do the same?
09:46 < dagle> (in reflect)
09:50 -!- rrr_ [i=rrr@gateway/gpg-tor/key-0x9230E18F] has quit [Remote closed the
connection]
09:50 -!- Demp_ [n=Demp@bzq-79-183-20-16.red.bezeqint.net] has quit [Read error:
60 (Operation timed out)]
09:53 -!- keesj_ [n=keesj@ip49-193-210-87.adsl2.static.versatel.nl] has joined
#go-nuts
09:54 -!- keesj [n=keesj@ip49-193-210-87.adsl2.static.versatel.nl] has quit [Dead
socket]
09:54 -!- bunz [n=bunz@unaffiliated/bunz] has quit [Broken pipe]
09:54 -!- bunz [n=bunz@unaffiliated/bunz] has joined #go-nuts
09:56 -!- buidangchung_ [n=chatzill@118.71.54.182] has joined #go-nuts
10:00 -!- goplexian [n=user@d154-20-0-9.bchsia.telus.net] has quit [Remote closed
the connection]
10:00 -!- Guest74057 [n=itorres@gandi.bedynamic.net] has quit [Broken pipe]
10:00 -!- itorres [n=itorres@gandi.bedynamic.net] has joined #go-nuts
10:00 -!- adante [n=adante@59.167.212.65] has quit [Connection reset by peer]
10:02 < buidangchung> hi all
10:02 -!- goplexian [n=user@d154-20-0-9.bchsia.telus.net] has joined #go-nuts
10:04 -!- adante [n=adante@59.167.212.65] has joined #go-nuts
10:06 -!- kota1111 [n=kota1111@gw2.kbmj.jp] has quit ["Leaving..."]
10:06 -!- callidus [n=quassel@80.194.247.74] has joined #go-nuts
10:07 -!- Toink [n=tony@89.208.253.111] has joined #go-nuts
10:07 < dagle> hi chungbd
10:12 -!- stalled_ [n=411@unaffiliated/stalled] has joined #go-nuts
10:13 -!- stalled [n=411@unaffiliated/stalled] has quit [Read error: 110
(Connection timed out)]
10:15 -!- rrr [i=rrr@gateway/gpg-tor/key-0x9230E18F] has joined #go-nuts
10:19 -!- Kashia [n=Kashia@port-92-200-231-27.dynamic.qsc.de] has quit ["This
computer has gone to sleep"]
10:32 -!- Cyanure[cn] [n=cyanure@81-65-198-68.rev.numericable.fr] has quit [Remote
closed the connection]
10:34 -!- tor7 [n=tor@c-987a71d5.04-50-6c756e10.cust.bredbandsbolaget.se] has
joined #go-nuts
10:41 < vegai> http://code.google.com/p/go/source/detail?r=ffbf0900a2
10:42 -!- triplez [n=triplez@bb116-14-33-119.singnet.com.sg] has quit []
10:44 < jhh> vegai: what's hw?
10:46 < jhh> raw hardware?
10:50 < vegai> that's what it claims
10:51 < vegai> 386, I guess
10:52 < vegai> perhaps they'll about to write a kernel on it :P
10:52 < vegai> oh, oh.  I guess they did already :P
10:57 < jhh> they did?
10:58 < jhh> that's getting interesting
10:58 -!- abiosoft [n=Ibrahim@82.206.136.101] has joined #go-nuts
11:01 < vegai> jhh: that thing's already a sort of a kernel, no?
11:01 -!- Arathorn [n=arathorn@87-194-127-65.bethere.co.uk] has joined #go-nuts
11:02 < jhh> yeah probably, I wouldn't know how you could run a go program
without.
11:02 < jhh> But I guess a kernel needs more...
11:05 < jhh> did you already try it?
11:05 < vegai> oh dear no
11:05 -!- tomestla [n=tom@AToulouse-151-1-32-70.w83-203.abo.wanadoo.fr] has joined
#go-nuts
11:06 < jhh> why is that such a horrible thought?
11:08 < vegai> well, no reason I suppose.
11:09 < vegai> just that I couldn't be arsed, I guess :)
11:13 -!- buidangchung [n=buidangc@118.71.54.182] has joined #go-nuts
11:13 -!- Olathe [n=Olathe@173-19-108-228.client.mchsi.com] has quit []
11:15 < jhh> what's bochs?
11:16 -!- abiosoft [n=Ibrahim@82.206.136.101] has left #go-nuts []
11:16 < jhh> some IA 32 emulator
11:17 -!- General1337 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has
joined #go-nuts
11:18 -!- Fraeon_ [n=kzer-za@e212-246-65-153.elisa-laajakaista.fi] has joined
#go-nuts
11:21 -!- jackman [n=jackman@75-169-151-195.slkc.qwest.net] has joined #go-nuts
11:22 -!- General13372 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit
[Read error: 60 (Operation timed out)]
11:22 -!- LuitvD [n=luitvd@beigetower/luitvd] has joined #go-nuts
11:23 < LuitvD> hi
11:26 -!- remyo [n=remyo@adsl-218-21-164.asm.bellsouth.net] has joined #go-nuts
11:26 -!- remyo [n=remyo@adsl-218-21-164.asm.bellsouth.net] has left #go-nuts []
11:30 -!- afurlan [n=afurlan@scorpion.mps.com.br] has joined #go-nuts
11:33 -!- JSharpe [n=jamie@5ad5024d.bb.sky.com] has joined #go-nuts
11:35 -!- Fraeon [n=kzer-za@e212-246-65-153.elisa-laajakaista.fi] has quit [Read
error: 110 (Connection timed out)]
11:46 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has joined #go-nuts
11:59 -!- kaigan|work
[n=kaigan@c-8290e255.1411-10-64736c14.cust.bredbandsbolaget.se] has joined
#go-nuts
12:04 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has quit [Read
error: 104 (Connection reset by peer)]
12:04 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has joined #go-nuts
12:05 -!- afurlan [n=afurlan@scorpion.mps.com.br] has quit [Remote closed the
connection]
12:10 -!- buidangchung [n=buidangc@118.71.54.182] has quit ["leaving"]
12:21 -!- kanru [n=kanru@61-30-10-70.static.tfn.net.tw] has quit [Read error: 60
(Operation timed out)]
12:22 -!- kanru [n=kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts
12:22 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has quit [Read
error: 104 (Connection reset by peer)]
12:22 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has joined #go-nuts
12:31 -!- robot12 [n=root@robot12.kgts.ru] has quit ["Ухожу я от вас (xchat 2.4.5
или старше)"]
12:37 -!- JohnDoe365 [n=JohnDoe3@193.171.58.27] has quit ["Leaving."]
12:40 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has quit [Read
error: 104 (Connection reset by peer)]
12:40 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has joined #go-nuts
12:44 -!- mward [n=mward@164.sub-75-206-65.myvzw.com] has joined #go-nuts
12:54 -!- triplez [n=triplez@cm52.sigma225.maxonline.com.sg] has joined #go-nuts
12:58 -!- jackman [n=jackman@75-169-151-195.slkc.qwest.net] has quit [Read error:
113 (No route to host)]
12:58 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has quit [Read
error: 104 (Connection reset by peer)]
12:58 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has joined #go-nuts
13:01 -!- nanoo [n=nano@95-89-197-218-dynip.superkabel.de] has joined #go-nuts
13:17 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has quit [Read
error: 104 (Connection reset by peer)]
13:17 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has joined #go-nuts
13:18 -!- mward [n=mward@164.sub-75-206-65.myvzw.com] has quit [Read error: 60
(Operation timed out)]
13:25 -!- DerHorst [n=Horst@e176108007.adsl.alicedsl.de] has joined #go-nuts
13:25 -!- afurlan [n=afurlan@scorpion.mps.com.br] has joined #go-nuts
13:29 -!- mward [n=mward@chml01.drwholdings.com] has joined #go-nuts
13:29 -!- plainhao [n=plainhao@mail.xbiotica.com] has joined #go-nuts
13:30 -!- JSharpe [n=jamie@5ad5024d.bb.sky.com] has quit [Client Quit]
13:32 -!- tibshoot [n=tibshoot@linagora-230-146.pr0.nerim.net] has quit [Remote
closed the connection]
13:34 -!- Metaphis [n=cyanure@81-65-198-68.rev.numericable.fr] has joined #go-nuts
13:35 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has quit [Read
error: 60 (Operation timed out)]
13:37 -!- nathanielk [n=quassel@frigga.summersault.com] has quit [Remote closed
the connection]
13:45 -!- nathanielk [n=quassel@frigga.summersault.com] has joined #go-nuts
13:45 -!- nathanielk [n=quassel@frigga.summersault.com] has quit [Remote closed
the connection]
13:52 -!- Metaphis [n=cyanure@81-65-198-68.rev.numericable.fr] has quit [Read
error: 104 (Connection reset by peer)]
13:52 -!- Cyanure[cn] [n=cyanure@81-65-198-68.rev.numericable.fr] has joined
#go-nuts
13:55 -!- kanru [n=kanru@61-30-10-70.static.tfn.net.tw] has quit ["WeeChat 0.3.0"]
14:07 -!- x-ip [n=sakura@unaffiliated/x-ip] has joined #go-nuts
14:08 -!- tor7 [n=tor@c-987a71d5.04-50-6c756e10.cust.bredbandsbolaget.se] has quit
[Read error: 60 (Operation timed out)]
14:08 -!- Cyanure[cn] [n=cyanure@81-65-198-68.rev.numericable.fr] has quit [Read
error: 110 (Connection timed out)]
14:10 -!- path[l] [n=path@59.162.86.164] has quit []
14:11 -!- oal [n=olav@5.79-160-122.customer.lyse.net] has joined #go-nuts
14:13 -!- tor7 [n=tor@c-987a71d5.04-50-6c756e10.cust.bredbandsbolaget.se] has
joined #go-nuts
14:17 -!- r2p2 [n=billy@v32671.1blu.de] has left #go-nuts []
14:28 -!- binaryjohn [n=binaryjo@cpe-24-30-132-50.san.res.rr.com] has joined
#go-nuts
14:29 -!- iant [n=iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Read
error: 110 (Connection timed out)]
14:29 -!- chachan [n=chachan@150.187.40.27] has joined #go-nuts
14:41 < LuitvD> it's silent...
14:42 < LuitvD> too silent
14:43 < reggna> Its a trap!  :O
14:43 < reggna> *'
14:45 < LuitvD> is it?
14:46 < LuitvD> it's a Trace/breakpoint trap, what I'm getting with Go on my
VPS
14:50 < LuitvD> anyone else having trouble with the net package?
14:56 -!- binaryjohn [n=binaryjo@cpe-24-30-132-50.san.res.rr.com] has quit []
14:58 -!- crashR [n=crasher@codextreme.pck.nerim.net] has quit ["Leaving."]
14:59 -!- iant [n=iant@67.218.107.41] has joined #go-nuts
14:59 -!- mode/#go-nuts [+v iant] by ChanServ
14:59 < jhh> net.Dial?  There seems to be discussion on the ML
15:00 < jhh> there's work going on:
http://codereview.appspot.com/183111/show
15:01 -!- pjm0616 [n=user@61.250.113.98] has joined #go-nuts
15:01 < LuitvD> my desktop does that
15:02 < LuitvD> but my VPS has issues with TLS
15:02 < LuitvD> the asn1 package, for instance, won't gotest
15:02 < LuitvD> make test fails 50% of the time in the packages asn1,
archive/tar, big and many others
15:03 < LuitvD> and my own properly working application from my laptop does
the same on my VPS
15:04 < LuitvD> dho: are you there?
15:06 -!- triplez [n=triplez@cm52.sigma225.maxonline.com.sg] has quit []
15:11 < LuitvD> dho: any news from russ?
15:13 -!- pjm0616 [n=user@61.250.113.98] has quit [Client Quit]
15:13 -!- pjm0616 [n=user@61.250.113.98] has joined #go-nuts
15:30 -!- path[l] [i=UPP@120.138.102.34] has joined #go-nuts
15:30 -!- skelterjohn [n=jasmuth@c-76-116-179-93.hsd1.nj.comcast.net] has joined
#go-nuts
15:33 -!- JSharpe [n=jamie@5ad5024d.bb.sky.com] has joined #go-nuts
15:33 -!- murodes1 [n=James@124-169-249-210.dyn.iinet.net.au] has joined #go-nuts
15:35 -!- Adys [n=Adys@unaffiliated/adys] has quit [Read error: 104 (Connection
reset by peer)]
15:36 -!- randomiser [n=james@nat-studcudn-172-24-62-0.fitz.cam.ac.uk] has joined
#go-nuts
15:37 -!- Adys [n=Adys@unaffiliated/adys] has joined #go-nuts
15:37 < randomiser> Hey, looking at the revision logs it seems commit
ffbf0900a2 has added (preliminary) support for execution of Go code on in a
bare-metal envrionment
15:37 < randomiser> Is this true?
15:38 < randomiser> It looks like its just a demo, however if so, this could
be *really* cool
15:42 < jhh> yeah
15:42 < jhh> just working on an emulator yet
15:46 < randomiser> thats awesome
15:47 < randomiser> I was hoping that this would happen
15:48 < randomiser> how are goroutines handles at the moment?
15:48 < LuitvD> bare-metal?  what's the definition of that in this use?
15:48 < randomiser> aka there's no operating system or virtual machine.  The
processor starts up, and starts executing your program
15:48 < LuitvD> nice :)
15:49 < LuitvD> for kernel-writing and such
15:49 < randomiser> Normally in an embedded setup, small
microcontrollers/processors which don't need a full operating system
15:49 < randomiser> no kernel, just your program.  Aka the kernel is 'just a
program' which happens to be able to do complicated stuff
15:50 * LuitvD only has experience with embedded C and ARM assembly language
15:50 -!- murodese [n=James@124-169-78-127.dyn.iinet.net.au] has quit [Read error:
110 (Connection timed out)]
15:51 < randomiser> embedded C -> embedded Go
15:51 < LuitvD> :)
15:51 < LuitvD> would be awesome
15:51 < randomiser> s/would/will be awesome hopefully
15:52 < LuitvD> goroutines in ARMv5
15:53 < LuitvD> v4 even
15:53 < LuitvD> (that's the ARM core I can program on in Assembly Language)
15:53 < LuitvD> ARM7TDMI (ARMv4T core)
15:54 -!- iwikiwi [n=iwikiwi@202.3.77.160] has quit [Remote closed the connection]
15:54 -!- iwikiwi [n=iwikiwi@202.3.77.160] has joined #go-nuts
15:55 < randomiser> aah the good times.  I like the arm achitecture a lot
15:55 -!- ceh [n=ceh@celsius.it.uu.se] has joined #go-nuts
15:55 < randomiser> also Atmel's AVR (please someone make a Go compiler for
these, once bare-metal execution has improved)
16:00 < LuitvD> http://code.google.com/p/luitvd/wiki/LPC214x
16:00 < LuitvD> made a start with a hardware library
16:01 < LuitvD> made that quite a while ago
16:01 < dho> LuitvD: I don't think we're going to be able to figure it out
:\
16:01 < dho> the patch that I have *should* work, but it doesn't
16:01 < dho> I think it'sa Xen bug
16:01 < LuitvD> the patch you made me use already?
16:02 < dho> yeah
16:02 -!- abiosoft [n=ibrahim@41.219.212.5] has joined #go-nuts
16:03 < LuitvD> it's weird that software that works properly on my laptop
doesn't want to run on my VPS about 50% of the time
16:04 < LuitvD> russ couldn't figure it out either?
16:04 < dho> It's difficult
16:04 -!- chachan [n=chachan@150.187.40.27] has quit ["KVIrc Insomnia 4.0.0,
revision: , sources date: 20090520, built on: 2009/06/06 11:44:47 UTC
http://www.kvirc.net/"]
16:07 -!- sinuhe [n=user@97-117-67-167.slkc.qwest.net] has joined #go-nuts
16:10 -!- JSharpe2 [n=jamie@5ad5024d.bb.sky.com] has joined #go-nuts
16:10 -!- chungbd [n=chatzill@118.71.54.182] has quit [Read error: 110 (Connection
timed out)]
16:10 -!- JSharpe [n=jamie@5ad5024d.bb.sky.com] has quit [Read error: 104
(Connection reset by peer)]
16:12 -!- SRabbelier [n=SRabbeli@ip138-114-211-87.adsl2.static.versatel.nl] has
joined #go-nuts
16:12 -!- chungbd [n=chatzill@118.71.28.240] has joined #go-nuts
16:13 -!- chungbd [n=chatzill@118.71.28.240] has quit [Client Quit]
16:13 -!- chungbd [n=chatzill@118.71.28.240] has joined #go-nuts
16:13 -!- chungbd [n=chatzill@118.71.28.240] has quit [Client Quit]
16:14 -!- iant [n=iant@67.218.107.41] has quit [Read error: 110 (Connection timed
out)]
16:14 -!- amuck [n=amuck@h7.51.19.98.dynamic.ip.windstream.net] has quit
["Leaving"]
16:14 -!- carllerche [n=carllerc@99.22.229.11] has joined #go-nuts
16:22 -!- Xera^ [n=brit@87-194-208-246.bethere.co.uk] has joined #go-nuts
16:22 -!- Fl1pFl0p [n=FlipFlop@unaffiliated/fl1pfl0p] has joined #go-nuts
16:27 -!- iant [n=iant@nat/google/x-azncvikqjxibhthm] has joined #go-nuts
16:27 -!- mode/#go-nuts [+v iant] by ChanServ
16:28 -!- tibshoot [n=tibshoot@linagora-230-146.pr0.nerim.net] has joined #go-nuts
16:29 -!- skelterjohn [n=jasmuth@c-76-116-179-93.hsd1.nj.comcast.net] has quit []
16:30 -!- kaigan|work
[n=kaigan@c-8290e255.1411-10-64736c14.cust.bredbandsbolaget.se] has quit []
16:41 -!- nanoo [n=nano@95-89-197-218-dynip.superkabel.de] has quit ["Leaving"]
16:43 -!- amorpisseur [n=analogue@toulouse.jfg-networks.net] has quit []
16:44 -!- abiosoft [n=ibrahim@41.219.212.5] has quit [Read error: 104 (Connection
reset by peer)]
16:44 -!- nealmcb [n=neal@ubuntu/member/nealmcb] has quit [Read error: 113 (No
route to host)]
16:46 -!- rhelmer [n=rhelmer@adsl-69-107-89-176.dsl.pltn13.pacbell.net] has joined
#go-nuts
16:46 -!- clip9 [i=tj@12.81-166-62.customer.lyse.net] has quit [Read error: 104
(Connection reset by peer)]
16:46 -!- divoxx [n=divoxx@c9154350.virtua.com.br] has joined #go-nuts
16:48 -!- nealmcb [n=neal@ubuntu/member/nealmcb] has joined #go-nuts
16:50 -!- clip9 [i=tj@12.81-166-62.customer.lyse.net] has joined #go-nuts
16:51 -!- gisikw [n=gisikw@137.28.186.120] has joined #go-nuts
16:54 -!- abiosoft1 [n=ibrahim@41.219.243.195] has joined #go-nuts
16:54 -!- carllerche [n=carllerc@99.22.229.11] has quit []
17:01 -!- rhelmer [n=rhelmer@adsl-69-107-89-176.dsl.pltn13.pacbell.net] has quit
[]
17:01 -!- b00m_chef [n=watr@d64-180-45-230.bchsia.telus.net] has joined #go-nuts
17:07 -!- uriel [n=uriel@li43-28.members.linode.com] has joined #go-nuts
17:07 -!- chachan [n=chachan@200.62.25.156] has joined #go-nuts
17:08 -!- Adys [n=Adys@unaffiliated/adys] has joined #go-nuts
17:12 -!- Arathorn [n=arathorn@87-194-127-65.bethere.co.uk] has quit [Read error:
104 (Connection reset by peer)]
17:15 < Vova> hm
17:16 < Vova> how do i allocate [][]byte with make?
17:17 < Vova> i need to loop over the array?
17:17 -!- afurlan [n=afurlan@scorpion.mps.com.br] has quit [Remote closed the
connection]
17:17 < Vova> nvm x:
17:21 < jhh> how did you do it?  [x][y]byte?
17:25 -!- JSharpe [n=jamie@5ad1d7f8.bb.sky.com] has joined #go-nuts
17:26 -!- afurlan [n=afurlan@scorpion.mps.com.br] has joined #go-nuts
17:26 -!- trickie [n=trickie@94.100.112.225] has quit [Read error: 113 (No route
to host)]
17:29 -!- JSharpe2 [n=jamie@5ad5024d.bb.sky.com] has quit [Read error: 60
(Operation timed out)]
17:29 -!- Kibiz0r [n=Adium@wndsnyhed01-pool1-a130.wndsny.tds.net] has joined
#go-nuts
17:33 -!- callidus [n=quassel@80.194.247.74] has quit [Remote closed the
connection]
17:34 -!- tibshoot [n=tibshoot@linagora-230-146.pr0.nerim.net] has quit [Remote
closed the connection]
17:38 -!- carllerche [n=carllerc@enginey-9.border1.sfo002.pnap.net] has joined
#go-nuts
17:41 -!- abiosoft1 [n=ibrahim@41.219.243.195] has quit [Read error: 110
(Connection timed out)]
17:43 -!- chungbd [n=chatzill@118.71.28.240] has joined #go-nuts
17:49 -!- Kibiz0r [n=Adium@wndsnyhed01-pool1-a130.wndsny.tds.net] has quit
["Leaving."]
17:52 -!- trickie [n=trickie@86.93.227.181] has joined #go-nuts
18:01 -!- skelterjohn [n=jasmuth@lawn-net168-in.rutgers.edu] has joined #go-nuts
18:06 -!- codedread [i=180dd699@gateway/web/freenode/x-keffzscnagrfifon] has
joined #go-nuts
18:06 -!- codedread [i=180dd699@gateway/web/freenode/x-keffzscnagrfifon] has left
#go-nuts []
18:09 -!- frem [n=frem___@66.185.73.137] has quit ["Leaving"]
18:11 -!- amacleod [n=amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has joined
#go-nuts
18:12 -!- uxp [n=uxp@uxp.dsl.xmission.com] has quit [Read error: 104 (Connection
reset by peer)]
18:12 -!- uxp [n=uxp@uxp.dsl.xmission.com] has joined #go-nuts
18:12 -!- ceh [n=ceh@celsius.it.uu.se] has quit ["blargh"]
18:23 -!- carllerche [n=carllerc@enginey-9.border1.sfo002.pnap.net] has quit []
18:24 -!- chachan [n=chachan@200.62.25.156] has quit ["KVIrc Insomnia 4.0.0,
revision: , sources date: 20090520, built on: 2009/06/06 11:44:47 UTC
http://www.kvirc.net/"]
18:24 -!- gisikw [n=gisikw@137.28.186.120] has quit []
18:27 -!- chungbd [n=chatzill@118.71.28.240] has quit [Read error: 110 (Connection
timed out)]
18:42 < skelterjohn> morning
18:44 < plexdev> http://is.gd/6kt1O by [Ian Lance Taylor] in go/test/ --
Test evaluation of range variables.
18:46 -!- chachan [n=chachan@ccscliente156.ifxnetworks.net.ve] has joined #go-nuts
18:49 -!- Adys [n=Adys@unaffiliated/adys] has quit [Read error: 104 (Connection
reset by peer)]
18:49 -!- Kibiz0r [n=Adium@wndsnyhed01-pool1-a130.wndsny.tds.net] has joined
#go-nuts
18:50 -!- Kibiz0r [n=Adium@wndsnyhed01-pool1-a130.wndsny.tds.net] has quit [Client
Quit]
18:51 -!- Adys [n=Adys@unaffiliated/adys] has joined #go-nuts
18:53 -!- |chachan| [n=chachan@ccscliente156.ifxnetworks.net.ve] has joined
#go-nuts
18:53 -!- chachan [n=chachan@ccscliente156.ifxnetworks.net.ve] has quit [Read
error: 104 (Connection reset by peer)]
18:54 -!- Kibiz0r [n=Adium@wndsnyhed01-pool1-a130.wndsny.tds.net] has joined
#go-nuts
18:55 -!- fgb [n=fgb@190.246.85.45] has quit [Read error: 54 (Connection reset by
peer)]
18:55 -!- Kibiz0r [n=Adium@wndsnyhed01-pool1-a130.wndsny.tds.net] has quit [Client
Quit]
19:00 -!- goplexian [n=user@d154-20-0-9.bchsia.telus.net] has quit [Remote closed
the connection]
19:02 -!- mssm [n=mssmfs@ip-95-221-99-167.bb.netbynet.ru] has joined #go-nuts
19:03 -!- carllerche [n=carllerc@enginey-9.border1.sfo002.pnap.net] has joined
#go-nuts
19:08 -!- bortzmeyer [n=stephane@central.sources.org] has quit [Read error: 113
(No route to host)]
19:08 -!- |chachan| [n=chachan@ccscliente156.ifxnetworks.net.ve] has quit ["KVIrc
Insomnia 4.0.0, revision: , sources date: 20090520, built on: 2009/06/06 11:44:47
UTC http://www.kvirc.net/"]
19:08 -!- chachan [n=chachan@ccscliente156.ifxnetworks.net.ve] has joined #go-nuts
19:09 -!- ash_ [n=john@adsl-068-213-191-097.sip.mgm.bellsouth.net] has joined
#go-nuts
19:09 -!- LuitvD [n=luitvd@beigetower/luitvd] has quit ["Leaving"]
19:13 -!- dju_ [i=dju@89-158-236-229.rev.dartybox.com] has joined #go-nuts
19:14 -!- carllerche [n=carllerc@enginey-9.border1.sfo002.pnap.net] has quit
[Remote closed the connection]
19:14 -!- p4p4 [n=P4p4@24.121.113.82.net.de.o2.com] has joined #go-nuts
19:15 -!- carllerche [n=carllerc@enginey-9.border1.sfo002.pnap.net] has joined
#go-nuts
19:20 -!- shasbot [n=shasbot@ip70-171-218-55.tc.ph.cox.net] has quit [Read error:
113 (No route to host)]
19:23 -!- michael| [n=maikeru@unaffiliated/maikeru/x-7708887] has quit [Read
error: 54 (Connection reset by peer)]
19:24 -!- bortzmeyer [n=stephane@central.sources.org] has joined #go-nuts
19:26 -!- dju [i=dju@89-158-236-229.rev.dartybox.com] has quit [Read error: 60
(Operation timed out)]
19:28 -!- michael| [n=maikeru@24-107-56-173.dhcp.stls.mo.charter.com] has joined
#go-nuts
19:29 -!- mejja [n=user@c-49b6e555.023-82-73746f38.cust.bredbandsbolaget.se] has
joined #go-nuts
19:31 < dho> quiet day.
19:32 <+iant> they'll hear you.....
19:33 < dho> heh.
19:33 < dho> so hot in the office.
19:33 < dho> iant: you don't happen to have experience with so-called ergo
keyboards do you?
19:33 <+iant> I do not; for the last 11 years I've only used a laptop
19:34 * dho is trying to find people using the kinesis ergo keyboard
19:34 -!- mward [n=mward@chml01.drwholdings.com] has quit []
19:34 < dho> i liked the microsoft ergo pro 4000 quite a bit, but i have
really bad luck with those
19:34 < dho> (= i spill things on them)
19:35 <+iant> see, if you used a laptop you would be really careful not to
spill anything on your keyboard
19:36 < dagle> dho: 5 of my friends use them.
19:37 < dagle> kinesis ergo that is.
19:37 < dho> dagle: the one with the depressed keys?
19:37 < dho> heh
19:38 * dho imagine keys committing suicide
19:38 * dho imagines being able to spell properly, too
19:38 -!- chachan [n=chachan@ccscliente156.ifxnetworks.net.ve] has quit ["KVIrc
Insomnia 4.0.0, revision: , sources date: 20090520, built on: 2009/06/06 11:44:47
UTC http://www.kvirc.net/"]
19:38 -!- chachan [n=chachan@ccscliente156.ifxnetworks.net.ve] has joined #go-nuts
19:38 < dagle> If you mean the advantage keyboards then yes.
19:39 < ash_> what is the 'proper' way to update go?  I had it working, then
ran hg pull and hg update release which gave conflicts for some reason, then it
failed to build, i never did figure out how to resolve conflicts in hg...
19:39 < dho> dagle: i guess that's a testament to them -- how resilient are
they to people like me who have messy desks that get soda|water spilled
periodically?
19:39 < dho> :\
19:39 < dho> ash_: sounds like you had local changes
19:39 <+iant> ash_: I think that when you have conflicts you have to edit
the files yourself; there will be markers like <<< around the conflicting
parts
19:40 < ash_> a clean checkout resolved the issue, but just curious
19:40 < ash_> i don't remember messing with any of the core go files...
19:40 < ash_> okay, i'll read the man on hg if it happens again
19:40 < dho> you can also hg revert --all if you haven't made changes
19:40 < dho> hg doesn't keep track of conflicts like subversion
19:42 < ash_> k, thanks
19:44 -!- lilpenguina [n=penguina@adsl-71-141-99-105.dsl.snfc21.pacbell.net] has
joined #go-nuts
19:46 < dagle> dho: Question sent, most of them are drinking beer atm.
19:49 < dho> hehe, thanks
19:50 -!- Kniht [n=kniht@c-68-58-17-177.hsd1.in.comcast.net] has joined #go-nuts
19:50 < dho> considering i've spent probably $150 on the microsoft keyboards
(having had bad luck with 3), i figure if i'm dropping over twice that on a
keyboard, it should not be easy to follow that fate.
19:51 < skelterjohn> $150 over your lifetime?
19:51 < skelterjohn> or in the past two weeks
19:52 < skelterjohn> I always try to get the simplest, lowest featured
keyboard i can
19:52 < dho> over my lifetime
19:52 < dho> skelterjohn: those hurt my hands
19:52 < skelterjohn> try raising or lowering your chair
19:52 < dho> doesn't matter
19:52 < skelterjohn> i find if i have the keyboard at a bad height relative
to my posture, i'll get carpal tunnel pain
19:52 < skelterjohn> i also like arms on the chair
19:53 < dho> also it's really easy to change my keyboard, it's really hard
to change my typing style
19:53 < dagle> kinesis are really nice to write on.
19:54 -!- mward [n=mward@chml01.drwholdings.com] has joined #go-nuts
19:54 < dagle> We even have keyboard/svorak nerdgroup in my town.  :)
19:55 < skelterjohn> some things i just feel like, you shouldn't have a club
for
19:55 < skelterjohn> what are the meetings like?
19:55 < dagle> Hehe.
19:55 < dagle> Beer?
19:55 < skelterjohn> well i guess that works
19:55 < dagle> Thats about it.
19:55 < skelterjohn> and comparing WPM
19:55 < dho> i wish i had the time to switch to dvorak
19:56 < skelterjohn> i tried to in college for a bit
19:56 < skelterjohn> then the magic marker wore off the keys and i couldn't
remember where things were :)
19:56 < dagle> There is a homepage about configs and setups and a
irc-channel.
19:56 < dho> yeah
19:56 < dho> i can't learn over a weekend though
19:56 < dho> and i already type >100wpm in qwerty
19:57 < dagle> I used an image of svorak as a wallpaper.
19:57 < dagle> That helped me.
19:58 < dagle> Should be more painful to not rember than to look at the
picture also.
19:58 < dagle> So looking shouldn't be easy.
19:58 < skelterjohn> is svorak different than dvorak?  i thought you made a
typo at first
19:58 < dagle> svorak = swedish dvorak.
19:58 -!- ash_ [n=john@adsl-068-213-191-097.sip.mgm.bellsouth.net] has left
#go-nuts []
19:58 < skelterjohn> heh
19:59 < dagle> We have åäö.
19:59 < dagle> Need to fit them too.
19:59 < dho> deadkeys don't work?
19:59 < dagle> We want to put them right.
20:00 < dagle> They should be on the left hand.
20:00 * dho has a standalone pchw kernel building that says hello world.
20:00 < dagle> Nice.
20:00 < dho> considering making it so that syscalls and ipc all happens over
channels
20:00 < dho> you'd do e.g.  foo := NewSyschan()
20:01 < dho> foo becomes a channel that you write to for performing a
syscall, read from to get value
20:01 < Vova> how can i remove a value from map?
20:02 < dho> Vova: explained in effective go
20:02 < dho> take a look
20:02 -!- rog_ [n=rog@89.241.197.228] has quit []
20:03 < dagle> But it's not querky to speak directly with the hardware in
go?
20:03 < dho> Not doing that yet.
20:03 < dagle> Ok.
20:03 < dho> It's still just a standalone pchw
20:04 -!- dju__ [i=dju@89-158-236-229.rev.dartybox.com] has joined #go-nuts
20:04 < dho> so basically I have the xv6 bootloader code and pkg/runtime
with just pchw
20:04 < dagle> Yeah.  But It could be really cool.
20:04 < skelterjohn> what is a pchw
20:04 < dho> skelterjohn: go on raw hardware
20:04 < dagle> skelterjohn: pc hardware.
20:04 < skelterjohn> i meant, what does it stand for
20:04 -!- afurlan [n=afurlan@scorpion.mps.com.br] has quit ["Leaving"]
20:04 < skelterjohn> i inferred what you said from context
20:05 < dho> dagle: once we get memory set up, i'm planning on starting APs
and seeing if I can get it to schedule across them
20:05 < dagle> Nice.
20:05 < dho> also going to get long mode in there somewhere
20:05 -!- nanoo [n=nano@95-89-197-218-dynip.superkabel.de] has joined #go-nuts
20:05 < dagle> Would be nice to see something at least.
20:06 < dho> what do you mean?
20:06 < dho> it can already print; pchw has a text display driver
20:06 < dho> though that's one of the easiest parts to write
20:07 < dho> just write to 0xb80000 i believe
20:07 < dho> give or take a 0
20:07 * skelterjohn just realized that dagle answered the question: "pc hardware"
20:07 < skelterjohn> heh
20:07 < dho> lol
20:07 < dho> was wondering when you'd catch that
20:07 * skelterjohn was getting annoyed at being ignored
20:08 < dagle> dho: It's one 0 less.
20:08 < dho> yep
20:08 -!- Venom_X [n=pjacobs@66.54.185.131] has joined #go-nuts
20:08 < dho> www.bitbucket.org/dhobsd/goos/
20:09 < dagle> But I mean: processes, filesystem...  just a small kernel
that could be used.  Not good and no drivers maybe but still.
20:09 < dho> I'm fairly confident that we can get vmware working
20:10 < dho> venkatesh has experience with VM and scheduling
20:10 < dho> i have experience with drivers
20:10 < dho> so
20:11 < dagle> I have built some toy kernels in C so I have som experiance
but not real experiance.
20:12 < dho> runtime will need a few changes
20:12 < dagle> Yeah.
20:12 < dho> like not being able to call into the scheduler in interrupt
handlers
20:13 < dho> shouldn't be too difficult thought
20:13 < dho> though*
20:15 < Vova> dho: thanks :]
20:15 < dho> np
20:27 -!- Kashia [n=Kashia@port-92-200-61-18.dynamic.qsc.de] has joined #go-nuts
20:34 -!- dju_ [i=dju@89-158-236-229.rev.dartybox.com] has quit [Connection timed
out]
20:36 -!- bortzmeyer [n=stephane@central.sources.org] has quit ["Leaving."]
20:38 < Vova> AStar path finder - http://gopaste.org/view/F7zpb , maze
example&solved - http://gopaste.org/view/P3bXH
20:41 -!- Demp [n=Demp@bzq-79-181-41-141.red.bezeqint.net] has quit [Read error:
104 (Connection reset by peer)]
20:41 -!- Demp [n=Demp@bzq-79-181-41-141.red.bezeqint.net] has joined #go-nuts
20:43 < Vova> with little cleanup http://gopaste.org/view/2tuqx , if anyone
finds a mistake or way to make it faster please tell me cause iam not sure its
perfect
20:45 -!- tor7 [n=tor@c-987a71d5.04-50-6c756e10.cust.bredbandsbolaget.se] has left
#go-nuts []
20:46 -!- pure_x01 [n=pure@c83-248-3-188.bredband.comhem.se] has joined #go-nuts
20:48 < pure_x01> hi ..  how is it possible to wrap a TCPConn in a
bufio.Reader ..  i can see anywhere that TCPConn includes the Reader interface ?
20:49 <+iant> pure_x01: you mean io.Reader, I assume; that only requires a
Read method, and TCPConn has one
20:49 < dho> pure_x01: What does the Reader interface require for something
to be considered a Reader?
20:49 * dho shakes fist at iant
20:49 <+iant> ha ha sorry
20:49 < dho> :)
20:50 < pure_x01> i thought that it had to include the interface in the type
delcaration to be a valid Reader
20:50 < dho> no
20:50 < pure_x01> oh i see..  is that so for all interfaces?
20:50 <+iant> give a man a match and he will be warm for a night, light a
man on fire and he will be warm for the rest of his life
20:50 < dho> an interface only lists a set of methods that must be attached
to a type for that type to be considered that interface
20:50 < dho> iant: indeed :)
20:50 < pure_x01> oh nice
20:55 < pure_x01> when using gofmt it sometimes ignore that i have wrapped
some lines that are long even if they are indented with one tab ..  but other
lines that are wrapped are still that way . is this a feature or a bug?  ..
20:57 -!- plainhao [n=plainhao@mail.xbiotica.com] has quit []
21:02 -!- q[mrw] [n=russd@willers.employees.org] has joined #go-nuts
21:03 -!- nanooo [n=nano@95-89-197-218-dynip.superkabel.de] has joined #go-nuts
21:04 -!- mssm [n=mssmfs@ip-95-221-99-167.bb.netbynet.ru] has quit ["WeeChat
0.3.0"]
21:08 < pure_x01> why does not this code fail.  i accidentially forgot to
hold a reference to each object allocated in a loop but they seem to live on.
http://gopaste.org/view/3AFoc#LC11 ..
21:08 < skelterjohn> why would you think something wouldn't live on?
21:11 -!- nanooo [n=nano@95-89-197-218-dynip.superkabel.de] has quit [Read error:
60 (Operation timed out)]
21:12 -!- nanooo [n=nano@95-89-197-218-dynip.superkabel.de] has joined #go-nuts
21:12 < skelterjohn> I don't know much about the library you are using, but
I imagine that Start() method will spawn a goroutine down in there somewhere
21:12 < skelterjohn> and that goroutine will have a reference to the
datastructure
21:21 -!- r2p2 [n=billy@v32671.1blu.de] has joined #go-nuts
21:21 -!- happy [n=stephen@pool-96-232-88-231.nycmny.fios.verizon.net] has joined
#go-nuts
21:21 -!- nanoo [n=nano@95-89-197-218-dynip.superkabel.de] has quit [Read error:
110 (Connection timed out)]
21:25 -!- lilpenguina [n=penguina@adsl-71-141-99-105.dsl.snfc21.pacbell.net] has
quit ["Leaving."]
21:31 < plexdev> http://is.gd/6l1Sx by [Charles L. Dorian] in
go/src/pkg/math/ -- math: 386 FPU functions
21:31 < plexdev> http://is.gd/6l1SP by [Charles L. Dorian] in
go/src/pkg/math/ -- math: special cases for Hypot
21:32 < plexdev> http://is.gd/6l1TG by [Jan H. Hosang] in
go/src/pkg/container/list/ -- Implemented ExtendFront/Back functions to insert a
list of elements into a list.
21:32 < plexdev> http://is.gd/6l1UC by [Robert Griesemer] in 9 subdirs of
go/src/ -- Steps towards tracking scopes for identifiers.
21:37 < pure_x01> skelterjohn: yes i have internal go routines and they are
member functions of the proxy and they live for a while ..
21:38 -!- jdp [n=justin@75.97.120.11.res-cmts.senj.ptd.net] has quit [Remote
closed the connection]
21:38 < skelterjohn> ok - so a goroutine has a reference to those objects,
and those goroutines are active, so the objects can't be cleaned up
21:39 < skelterjohn> there is no such thing as a "destructor" in go
21:39 < skelterjohn> if you want a particular object and its goroutines to
die, you'll have to send it/them a message
21:42 -!- nomemory [n=nm@94.62.140.2] has joined #go-nuts
21:42 < nomemory> hello, does go lang supports 'goto' functionality ?
21:42 < happy> If I have a function that accepts ...  parameters and I do
not want it to recieve certain types, should I just throw a runtime exception?  Or
is there a better way.
21:42 < happy> nomemory: yep
21:43 < nomemory> thank you
21:45 -!- gnuvince_ [n=vince@ip-250.45.99.216.dsl-cust.ca.inter.net] has quit
["What the fruit is goin' on here!?"]
21:46 < skelterjohn> happy: have the return type include an error
21:47 < pure_x01> skelterjohn: thanx
21:47 < happy> skelterjohn: I can not have more than one thing return.  It
needs to work so that you can use it inline
21:48 < skelterjohn> then you want to wait until exceptions are part of the
language
21:48 < skelterjohn> but i think the "inline" requirement is a bad one
21:48 < plexdev> http://is.gd/6l5hI by [Yves Junqueira] in go/src/pkg/net/
-- Use /etc/hosts when resolving names.
21:48 < plexdev> http://is.gd/6l5i1 by [Russ Cox] in go/src/pkg/template/ --
template: look inside interface values
21:48 < happy> skelterjohn: for example fmt.Println(f("something", "else",
"a"))
21:48 < skelterjohn> may i ask what context?
21:48 < skelterjohn> if there was an error in f, how could it be caught?
21:48 < skelterjohn> just make it into two lines
21:49 < skelterjohn> makes it easier to read, imo
21:49 < happy> skelterjohn: I am rewriting path.Join because I want it to
support slices and an infinite amount of directories.
21:50 < dho> well it still needs to be able to return an error, no?
21:50 < happy> skelterjohn: so path.Join([string]{"somethign", "else"},
"two", "three")
21:51 < happy> dho: yeah...  I wish there was a way to give a compiler
error...
21:51 < dho> compiler error?
21:51 < happy> dho: like specify that only certain types could be sent via
...
21:51 -!- mssm [n=mssmfs@ip-95-221-99-167.bb.netbynet.ru] has joined #go-nuts
21:53 < happy> dho: I am not sure if this would be hard to add to the spec.
But it says in the general roadmap that they want to rewrite how ...  works.  I
would want to be able to specify what can be sent.
21:54 -!- p4p4__ [n=P4p4@24.121.113.82.net.de.o2.com] has joined #go-nuts
21:54 < happy> dho: What kills me is that it is something that could be
checked at compile time :-\
21:54 < dho> i guess, it would require some sort of annotation
21:55 < happy> yeah
21:58 < happy> dho: if I were to request it be changed, what would be the
chance that it would be?  It is way beyond me to do something like that.  I am
rewriting path.Join because it bugged me, and I thought that it would be within my
skill range.
22:01 -!- jA_cOp [n=yakobu@unaffiliated/ja-cop/x-9478493] has quit ["Leaving"]
22:03 < dho> i don't know.
22:03 <+iant> it's fairly like that we will change ...  to take a type, as
in func Join(...  string) string
22:04 < skelterjohn> what about a set of types?
22:04 <+iant> that is less likely since you can do that using ...
interface{}
22:04 < skelterjohn> (...  string | int)
22:04 < plexdev> http://is.gd/6l8x5 by [Ian Lance Taylor] in 2 subdirs of
go/src/cmd/ -- Don't check array bounds if we have been told not to.
22:04 < plexdev> http://is.gd/6l8xh by [Ian Lance Taylor] in 2 subdirs of
go/test/ -- Test order of evaluation in tuple assignments.
22:04 <+iant> if the function uses ...  string, then instead of the struct
it gets now, it will get a slice of that type
22:04 < skelterjohn> that would certainly be more convenient
22:05 <+iant> yes, and also faster
22:05 <+iant> this isn't for sure, but it looks likely
22:05 -!- p4p4 [n=P4p4@24.121.113.82.net.de.o2.com] has quit [Read error: 110
(Connection timed out)]
22:06 < happy> iant: what if I want someone to be able to send only strings
and ints?  or only strings and []ints?
22:06 <+iant> you'll have to fall back on ...  interface{}
22:06 <+iant> unless we get union types into the language, but that is
farther off
22:06 < skelterjohn> which would still be much easier to deal with than the
reflect struct
22:07 < skelterjohn> union types would solve happy's problem entirely
22:07 < happy> iant: that is ok, but what I really want is a way to control
at compile time what types can be sent as interfaces
22:07 < happy> I do not even know what that is...
22:07 -!- nanooo [n=nano@95-89-197-218-dynip.superkabel.de] has quit [Client Quit]
22:07 < skelterjohn> in C, a union type is a type that you can treat as any
number of specific structs
22:08 < KirkMcDonald> Not just structs.
22:08 < skelterjohn> so if you unioned an int and a char[4] together, you
could treat it as an int or a char[4]
22:08 < dho> s/structs/types/
22:08 < skelterjohn> i don't think C had a way to remember what the assigned
type was, maybe go will
22:08 < happy> ok...
22:08 < dho> you usually use them in conjunction with a struct so that you
can have some annotation of what the type is.
22:08 < dho> e.g.
22:08 < KirkMcDonald> One pattern used in C code is to have a struct with an
enum field and a union field.
22:08 < skelterjohn> dho and KirkMcDonald should make out
22:09 < KirkMcDonald> Where the enum has one value for each field in the
union.
22:09 < dho> struct foo { union { int i; char c; } u; int t; }
22:09 < happy> ok
22:09 < dho> enum { T_INT, T_CHAR };
22:09 <+iant> in some languages that is called a tagged union
22:09 < skelterjohn> i'd bet that a go version of union would remember type
and have type assertions similar to an interface
22:09 < dho> struct foo bar; bar.u.i = 42; bar.t = T_INT;
22:11 < happy> thanks for the help.  I just have two more questions.  1.
can I overload functions (probably yes).  2.  What should I do if someone sends a
var to my Join function that is not a string?
22:11 < KirkMcDonald> happy: 1.  No. 2.  A compilation error.
22:11 < KirkMcDonald> Er, assuming your Join function wants a string.
22:12 -!- clip9 [i=tj@12.81-166-62.customer.lyse.net] has quit [Read error: 104
(Connection reset by peer)]
22:12 < happy> KirkMcDonald: how do I make it give a compilation error?
22:12 < KirkMcDonald> Oh, I see.
22:12 < KirkMcDonald> You're writing a variadic function.
22:13 < happy> yes.  exactly.  I want to send it any number of strings.  Or
even better strings and string slices
22:13 < KirkMcDonald> It is because of cases like this that I liked D's
type-safe variadics.
22:13 < happy> but an int is not very useful...
22:13 < happy> I have never used D
22:13 <+iant> KirkMcDonald: how does D do it?
22:13 -!- x-ip [n=sakura@unaffiliated/x-ip] has quit ["Leaving"]
22:14 -!- exch [n=nuada@h144170.upc-h.chello.nl] has quit ["Lost terminal"]
22:14 < KirkMcDonald> The D syntax looks something like: void f(int[] i...)
{}
22:14 -!- divoxx [n=divoxx@c9154350.virtua.com.br] has quit []
22:14 < KirkMcDonald> So 'i' is a variable of type int[] (a dynamic array,
very much like an []int in Go).
22:14 < pure_x01> I get a "throw: all goroutines are asleep - deadlock!"
http://gopaste.org/view/Vhc9C when running a simple sleep test program ..  when
invoking the sleep function as a go routine (as intended) it does not fail
22:14 -!- clip9 [n=tj@12.81-166-62.customer.lyse.net] has joined #go-nuts
22:14 < KirkMcDonald> The function can be called like this: f(1, 2, 3, 4)
22:15 < KirkMcDonald> That is, with a variable number of int arguments.
22:15 < KirkMcDonald> Or it can be called with an explicit int[] argument.
22:15 <+iant> KirkMcDonald: thanks; so that sounds similar to the proposed
change to ...  int
22:15 <+iant> ah, but that part is different
22:15 < KirkMcDonald> iant: There are some other, more complicated aspects
to the feature.
22:16 < KirkMcDonald> Say you have a struct (using D syntax here): struct S
{ int a; string b; }
22:16 < KirkMcDonald> You might have void f(S s...) {}
22:16 < KirkMcDonald> You can call the function as: f(1, "foo", S(2, "bar"))
22:17 <+iant> huh
22:17 < KirkMcDonald> Er, that should have been f(S[] s...) {}
22:17 < KirkMcDonald> Anyway.  This would give you an array with two S
structs in it.
22:17 < KirkMcDonald> It would try very hard to construct the S items from
the arguments passed to it.
22:17 -!- oal [n=olav@5.79-160-122.customer.lyse.net] has quit [Read error: 54
(Connection reset by peer)]
22:17 < KirkMcDonald> S(2, "bar") is just D's "struct literal" syntax.
22:17 <+iant> right
22:18 < dho> pure_x01: that looks like a bug to me.
22:18 < KirkMcDonald> iant: This could lead to some rather compliex
possibilities when you throw classes and overloaded constructors into the mix...
22:18 < pure_x01> dho: i will submit it
22:19 < dho> maybe.
22:19 < pure_x01> ok
22:19 < KirkMcDonald> iant: But!  The simple, sane case of int[] and so
forth was very useful.
22:19 < happy> iant: another question, why is there no overloading?
22:20 < pure_x01> dho: it finishes after 5s with that error so it sleeps
first then dies
22:20 < dho> that doesn't make sense
22:20 <+iant> happy: http://golang.org/doc/go_lang_faq.html#overloading
22:21 < dho> it's like gosched gets called after sched.msyscall is decreased
and before sched.msyscall is increased.
22:21 -!- amacleod [n=amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has quit ["eep..
dinner time!"]
22:21 < dho> oh
22:22 < dho> pure_x01: no
22:22 < dho> you have a bug
22:22 < dho> pure_x01: you meant to do `go sleep(finChan)'
22:22 < pure_x01> dho: yes that was my intention but i missed the go
22:22 < pure_x01> dho: when running with go it works
22:22 < dho> you don't understand why it doesn't otherwise?
22:23 < pure_x01> dho: exactly
22:23 < dho> pure_x01: in your `broken' code, who is listening on the
channel?
22:24 < pure_x01> dho: the main "thread" ? not sure
22:24 < dho> why?
22:24 < pure_x01> <-finChan ?
22:24 < dho> when does that get executed?
22:25 < pure_x01> after the sleep
22:25 < dho> ok, and what's the last line of sleep()?
22:26 < pure_x01> to send 1 to the channel and then hopfully that would be
read in the main method
22:26 < pure_x01> if im thinking correctly
22:26 < pure_x01> wich im probably not
22:26 -!- snearch [n=olaf@g229052060.adsl.alicedsl.de] has joined #go-nuts
22:26 < dho> it can't be read in func main, because <-finChan hasn't
executed yet.
22:26 < dho> let me draw you a simple set of diagrams for your program flow,
maybe it will make more sense.
22:26 < pure_x01> thanx
22:26 < dho> this is for a simpler program that doesn't even call sleep
22:30 < dho> http://gopaste.org/view/h7F1d
22:31 < dho> does that make more sense?
22:31 -!- moraes_ [n=moraes@187.39.148.176] has joined #go-nuts
22:32 < pure_x01> thanx..  im trying to understand it ..  i narrowed my code
down a bit http://gopaste.org/view/k69Ut
22:35 < dho> ok.
22:38 -!- chachan [n=chachan@ccscliente156.ifxnetworks.net.ve] has quit ["KVIrc
Insomnia 4.0.0, revision: , sources date: 20090520, built on: 2009/06/06 11:44:47
UTC http://www.kvirc.net/"]
22:38 < dho> Why would <-finChan ever execute in that case?
22:38 -!- clip9 [n=tj@12.81-166-62.customer.lyse.net] has quit [Read error: 110
(Connection timed out)]
22:38 < pure_x01> ok so you have to have a go routine listening on a channel
before sending to it?
22:38 < pure_x01> or wait i think im slowly starting to understand the
problem
22:38 -!- itorres [n=itorres@gandi.bedynamic.net] has quit [Remote closed the
connection]
22:38 -!- itorres [n=itorres@gandi.bedynamic.net] has joined #go-nuts
22:38 -!- sinuhe` [n=user@97.117.67.167] has joined #go-nuts
22:38 -!- b00m_chef__ [n=watr@64.180.45.230] has joined #go-nuts
22:38 < pure_x01> i thought that it you put a value on a channel it would be
on the channel but maybe that only works with buffered channels?
22:38 -!- Netsplit verne.freenode.net <-> irc.freenode.net quits: zeotrope,
murodes1, vhost-, trickie, tokuhiro_, ShadowIce, keeto, garbeam, nomemory, ni|_,
(+28 more, use /NETSPLIT to show all of them)
22:39 -!- \toothrot [n=mux@66-169-117-157.dhcp.ftwo.tx.charter.com] has joined
#go-nuts
22:39 -!- Netsplit over, joins: trickie
22:39 < dho> pure_x01: yes; channels are a synchronization mechanism
22:39 -!- ni| [n=james@users.vu.union.edu] has joined #go-nuts
22:39 -!- scoeri [n=jdekoste@multicore.vub.ac.be] has joined #go-nuts
22:39 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has joined #go-nuts
22:39 < dho> with an unbuffered channel, a write to the channel must be read
before the write returns
22:39 -!- Netsplit over, joins: evilhackerdude
22:39 -!- zeotrope [n=sazeinel@65.93.143.150] has joined #go-nuts
22:39 -!- Netsplit over, joins: madmoose
22:39 < pure_x01> channels is a new concept for me the closest thing i have
been working on before are with blocking queues between threads
22:40 < pure_x01> thanx now i understand :-)
22:40 -!- Netsplit over, joins: wayneeseguin, quag
22:40 -!- Netsplit over, joins: roo
22:40 -!- bunz [n=bunz@pool-173-56-111-193.nycmny.fios.verizon.net] has joined
#go-nuts
22:41 -!- Netsplit over, joins: jhh
22:44 -!- [k2]_ [n=[k2]@69.162.91.23] has joined #go-nuts
22:44 -!- mpl_ [n=mpl@smgl.fr.eu.org] has joined #go-nuts
22:46 -!- roto [n=roto@64.79.202.154] has quit [Killed by douglas.freenode.net
(Nick collision)]
22:46 -!- roto [n=roto@64.79.202.154] has joined #go-nuts
22:46 -!- theGussi [n=gussi@85.197.213.11] has joined #go-nuts
22:46 -!- mitsuhiko [n=mitsuhik@hammett.srv.pocoo.org] has joined #go-nuts
22:46 -!- itorres [n=itorres@gandi.bedynamic.net] has quit [Success]
22:46 -!- itorres [n=itorres@gandi.bedynamic.net] has joined #go-nuts
22:46 -!- mpl [n=mpl@smgl.fr.eu.org] has quit [Nick collision from services.]
22:47 -!- Netsplit verne.freenode.net <-> irc.freenode.net quits: araujo,
nchaimov, Garen_, [k2], b00m_chef, poppy_nogood, tsung, rrr, tanamo, absurdhero,
(+9 more, use /NETSPLIT to show all of them)
22:47 -!- nickjohnson [n=arachnid@coilette.notdot.net] has joined #go-nuts
22:48 < dho> no problem :)
22:48 < dho> on buffered channels, read is like lock and write is like
unlock
22:48 < dho> on unbuffered channels, write is like lock and read is like
unlock
22:48 -!- moraes [n=moraes@187.39.148.176] has quit [Read error: 110 (Connection
timed out)]
22:51 -!- tsung [n=jon@112.104.53.151] has joined #go-nuts
22:51 < skelterjohn> sorta
22:51 -!- atsampson [n=ats@94-193-50-45.zone7.bethere.co.uk] has joined #go-nuts
22:51 < pure_x01> dho: so it seems to be ok to write to a channel that noone
is listening to as long as you do it from a goroutine
http://gopaste.org/view/8p5pU
22:51 -!- Demp [n=Demp@bzq-79-181-41-141.red.bezeqint.net] has joined #go-nuts
22:51 -!- absurdhero [n=absurdhe@74.207.243.7] has joined #go-nuts
22:52 -!- clip9 [i=tj@12.81-166-62.customer.lyse.net] has joined #go-nuts
22:53 < pure_x01> like this http://gopaste.org/view/54Bhy
22:53 < dho> pure_x01: sure, as long as at least 1 goroutine may make
progress
22:54 -!- Netsplit verne.freenode.net <-> irc.freenode.net quits: roto
22:54 < dho> right
22:54 < pure_x01> dho: amen
22:56 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has quit [Read
error: 54 (Connection reset by peer)]
22:58 < pure_x01> in java the main method is executing in the main thread.
would it be possible to have the main go func to be executing in its own goroutine
so all funcs would be equal
22:58 -!- Netsplit over, joins: roto
22:58 < skelterjohn> not sure what you mean....
22:58 < skelterjohn> main() is executing in its own goroutine...
22:58 -!- Metaphis [n=cyanure@81.65.198.68] has joined #go-nuts
23:02 -!- roto [n=roto@64.79.202.154] has left #go-nuts []
23:02 -!- roto [n=roto@64.79.202.154] has joined #go-nuts
23:02 < pure_x01> skelterjohn: it is?  i thought this showed that it didnt
http://gopaste.org/view/54Bhy ..  that writing to a unbuffered channel that no one
is listening to is only ok from a goroutine ,,
23:07 -!- MadMethod [n=Method@unaffiliated/method] has quit [Dead socket]
23:27 -!- uriel_ [n=uriel@li43-28.members.linode.com] has joined #go-nuts
23:27 -!- highb [n=highb@shell.onid.oregonstate.edu] has joined #go-nuts
23:27 -!- ivan`` [n=ivan@64.71.152.39] has quit ["Coyote finally caught me"]
23:28 -!- poppy_nogood [n=rthc@rrcs-67-52-50-170.west.biz.rr.com] has joined
#go-nuts
23:28 -!- jessta [n=jessta@li7-205.members.linode.com] has joined #go-nuts
23:28 -!- iant [n=iant@nat/google/x-azncvikqjxibhthm] has joined #go-nuts
23:28 -!- SRabbelier [n=SRabbeli@ip138-114-211-87.adsl2.static.versatel.nl] has
joined #go-nuts
23:28 -!- Fraeon [n=kzer-za@e212-246-65-153.elisa-laajakaista.fi] has joined
#go-nuts
23:28 -!- tomestla [n=tom@AToulouse-151-1-32-70.w83-203.abo.wanadoo.fr] has joined
#go-nuts
23:28 -!- rrr [i=rrr@gateway/gpg-tor/key-0x9230E18F] has joined #go-nuts
23:28 -!- tanamo [n=tanamo@125.252.70.230] has joined #go-nuts
23:28 -!- araujo [n=araujo@gentoo/developer/araujo] has joined #go-nuts
23:28 -!- soul9 [n=none@unaffiliated/johnnybuoy] has joined #go-nuts
23:28 -!- Garen_ [n=garen@cpe-75-87-255-36.natnow.res.rr.com] has joined #go-nuts
23:28 -!- nchaimov [n=cowtown@c-71-237-208-209.hsd1.or.comcast.net] has joined
#go-nuts
23:28 -!- Innominate [n=sirrobin@cpe-069-134-170-056.nc.res.rr.com] has joined
#go-nuts
23:28 -!- ServerMode/#go-nuts [+v iant] by irc.freenode.net
23:28 -!- poppy_nogood [n=rthc@rrcs-67-52-50-170.west.biz.rr.com] has quit [Remote
closed the connection]
23:28 -!- Fringehead [n=fringe@c-24-126-235-188.hsd1.ga.comcast.net] has quit
[Killed by ballard.freenode.net (Nick collision)]
23:28 -!- Fringehead [n=fringe@c-24-126-235-188.hsd1.ga.comcast.net] has joined
#go-nuts
23:28 -!- poppy_nogood [n=rthc@rrcs-67-52-50-170.west.biz.rr.com] has joined
#go-nuts
23:30 -!- GabydeWilde__ [n=gabydewi@84.104.135.141] has joined #go-nuts
23:31 -!- werdan7 [n=w7@freenode/staff/wikimedia.werdan7] has quit [Dead socket]
23:31 -!- jvogel [n=jonathan@friedpancakes.com] has quit [Dead socket]
23:34 -!- Vova [n=Vova@77.125.15.114] has quit []
23:34 -!- GabydeWilde_ [n=gabydewi@84-104-135-141.cable.quicknet.nl] has quit
[Success]
23:34 -!- itorres [n=itorres@gandi.bedynamic.net] has quit [Broken pipe]
23:34 -!- Netsplit niven.freenode.net <-> irc.freenode.net quits: mycroftiv,
jurg, +danderson, usa, kleinchris, viirya, XenoPhoenix
23:36 -!- uriel [n=uriel@li43-28.members.linode.com] has joined #go-nuts
23:36 -!- ivan`` [n=ivan@64.71.152.39] has quit ["Coyote finally caught me"]
23:36 < skelterjohn> define "fail"
23:36 < skelterjohn> go sleep() is a no-op
23:37 < pure_x01> absolutly ..  when any goroutine go's in to blocking mode
the scheduler will try to continue executing another goroutine ..  if there is
only one goroutine "the main goroutine" it will fail
23:37 -!- General1337 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit
[Connection timed out]
23:37 < skelterjohn> oh an infinite loop
23:37 < skelterjohn> ok the reason for this is a bit more delicate
23:37 < skelterjohn> has to do with schedulers
23:38 -!- Demp [n=Demp@bzq-79-181-41-141.red.bezeqint.net] has quit [Connection
reset by peer]
23:38 < skelterjohn> if you set GOMAXPROCS to 2, it will behave the same
whether or not you comment out that line
23:38 -!- stalled [n=411@95-24-172-46.broadband.corbina.ru] has joined #go-nuts
23:38 < skelterjohn> if you have GOMAXPROCS set to 1 (the default) that
means that you can only have one goroutine running at a time
23:38 < skelterjohn> if that "go sleep()" routine starts, it will run
forever
23:38 -!- drhodes [n=none@209-20-72-61.slicehost.net] has quit [Client Quit]
23:38 < skelterjohn> because nothing in it will ever yield control
23:38 < skelterjohn> something like a channel access, a system call or file
io etc will cause that goroutine to yield
23:38 -!- Demp [n=Demp@bzq-79-181-41-141.red.bezeqint.net] has joined #go-nuts
23:38 -!- drhodes_ [n=none@209.20.72.61] has joined #go-nuts
23:38 < skelterjohn> yeah...not gonna look in the c code :)
23:38 < skelterjohn> so if you call "go sleep()", and that goroutine starts
up, main will never get to finish
23:38 < skelterjohn> because it will never be given back control
23:38 < skelterjohn> if you have GOMAXPROCS set to 2, main will get to
finish (in another process) and main() will return (killing the other goroutine)
23:38 -!- jdp [n=justin@75.97.120.11.res-cmts.senj.ptd.net] has joined #go-nuts
23:38 -!- Method [n=Method@unaffiliated/method] has quit ["No Ping reply in 90
seconds."]
23:38 -!- Method [n=Method@nat-3-135.snu.edu] has joined #go-nuts
23:38 < skelterjohn> oh but it won't return, because it writes to a channel
that no one can read from
23:38 < skelterjohn> causing threadlock
23:38 < skelterjohn> which will dump some nasty stuff onto your terminal
23:38 < skelterjohn> s/writes to/reads from/
23:39 < pure_x01> seems like the IRC server is not making it easy to have a
conversation :-)
23:39 -!- Paradox934X [n=Paradox9@98.142.211.46] has joined #go-nuts
23:40 -!- damjan [n=damjan@legolas.on.net.mk] has quit ["ZNC -
http://znc.sourceforge.net"]
23:40 -!- Paradox924X [n=Paradox9@98.142.211.46] has quit [Dead socket]
23:40 -!- Vova [n=Vova@77.125.15.114] has quit []
23:40 -!- uriel_ [n=uriel@li43-28.members.linode.com] has quit [Broken pipe]
23:40 < pure_x01> skelterjohn: i have to Go! to sleep() ,, thanx for an
interesting conversation and i learned some new stuff.
23:40 < skelterjohn> right
23:40 -!- codemac [n=codemac@cpe-076-182-083-019.nc.res.rr.com] has quit [Broken
pipe]
23:40 -!- vhost- [n=kyle@kyleterry.com] has quit [Success]
23:40 -!- Vova [n=Vova@77.125.15.114] has joined #go-nuts
23:40 -!- pure_x01 [n=pure@c83-248-3-188.bredband.comhem.se] has quit ["sleeping"]
23:40 -!- mward [n=mward@chml01.drwholdings.com] has quit [Read error: 110
(Connection timed out)]
23:40 -!- damjan [n=damjan@legolas.on.net.mk] has joined #go-nuts
23:41 < skelterjohn> frustrating :)
23:41 < skelterjohn> i think we need a completely new mass chat medium to
replace IRC
23:42 -!- jackman [n=jackman@75-169-136-229.slkc.qwest.net] has quit ["leaving"]
23:42 < skelterjohn> the days when things needed to be usable in text-only
mode are over
23:43 < skelterjohn> glad to help
23:43 -!- Cyanure [n=cyanure@81.65.198.68] has quit [Read error: 104 (Connection
reset by peer)]
23:43 -!- highb [n=highb@shell.onid.oregonstate.edu] has quit [Remote closed the
connection]
23:43 -!- jackman [n=jackman@75-169-136-229.slkc.qwest.net] has joined #go-nuts
23:43 < dagle> Oh that was a bad joke.  I will snatch that!  :)
23:43 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has joined #go-nuts
23:45 -!- Netsplit leguin.freenode.net <-> irc.freenode.net quits: garbeam,
keeto, Amaranth, tokuhiro_, crakrjak, ukai, da4089, carllerche, nealmcb, Vova, (+4
more, use /NETSPLIT to show all of them)
23:49 -!- codemac_ [n=codemac@archlinux/developer/codemac] has joined #go-nuts
23:53 -!- Adys [n=Adys@unaffiliated/adys] has quit [Read error: 110 (Connection
timed out)]
23:55 -!- Netsplit over, joins: garbeam, tav, Vova, carllerche, nealmcb,
randomiser, murodes1, Amaranth, crakrjak, ukai (+4 more)
23:55 -!- Adys [n=Adys@athedsl-348062.home.otenet.gr] has joined #go-nuts
23:55 -!- Ker-o-Zen [n=virgule@d076.nexlink.net] has joined #go-nuts
23:56 -!- Ker-o-Ze1 [n=virgule@d076.nexlink.net] has joined #go-nuts
23:57 -!- vhost- [n=kyle@kyleterry.com] has joined #go-nuts
23:58 -!- araujo [n=araujo@190.38.49.150] has joined #go-nuts
23:58 -!- codemac2 [n=codemac@cpe-076-182-083-019.nc.res.rr.com] has joined
#go-nuts
--- Log closed Sat Jan 16 00:00:11 2010