--- Log opened Fri Jun 04 00:00:02 2010 00:01 -!- stanleylieber [~stanleyli@68-179-130-17.bsr-c9-d1.evv.dhcp.sigecom.net] has quit [Remote host closed the connection] 00:01 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has quit [Read error: Connection reset by peer] 00:02 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has joined #go-nuts 00:05 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has quit [Read error: Connection reset by peer] 00:05 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has joined #go-nuts 00:06 -!- stanleylieber [~stanleyli@68-179-130-17.bsr-c9-d1.evv.dhcp.sigecom.net] has joined #go-nuts 00:06 -!- photron [~photron@openvpn82.uni-paderborn.de] has quit [Ping timeout: 260 seconds] 00:09 -!- SecretofMana [~truthlimi@142.46.164.30] has joined #go-nuts 00:13 < plexdev> http://is.gd/cBF7l by [Rob Pike] in go/src/pkg/fmt/ -- fmt.Scan: %c 00:21 -!- photron [~photron@port-92-201-75-96.dynamic.qsc.de] has joined #go-nuts 00:21 -!- aho [~nya@g230141239.adsl.alicedsl.de] has quit [Ping timeout: 252 seconds] 00:26 -!- baman [~moo@75.112.131.164] has joined #go-nuts 00:30 < plexdev> http://is.gd/cBFWI by [Nigel Tao] in go/src/pkg/image/ -- Add Opaque method to the image types. 00:30 < plexdev> http://is.gd/cBFWN by [Nigel Tao] in go/src/pkg/exp/draw/ -- draw.Draw fast paths for the Over operator. 00:30 -!- Haro` [~moo@65.219.121.70.cfl.res.rr.com] has joined #go-nuts 00:30 -!- aho [~nya@g230128094.adsl.alicedsl.de] has joined #go-nuts 00:32 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-180-175.clienti.tiscali.it] has quit [Quit: E se abbasso questa leva che succ...] 00:33 -!- baman [~moo@75.112.131.164] has quit [Ping timeout: 240 seconds] 00:33 -!- photron [~photron@port-92-201-75-96.dynamic.qsc.de] has quit [Ping timeout: 265 seconds] 00:35 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has quit [Read error: Connection reset by peer] 00:36 -!- mikespook [~mikespook@219.137.49.140] has joined #go-nuts 00:36 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has joined #go-nuts 00:51 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has quit [Ping timeout: 258 seconds] 00:52 -!- thomas_b [~thomasb@cm-84.215.37.40.getinternet.no] has quit [Quit: leaving] 00:54 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts 00:55 -!- thomas_b [~thomasb@cm-84.215.37.40.getinternet.no] has joined #go-nuts 00:56 -!- KinOfCain [~KinOfCain@rrcs-64-183-61-2.west.biz.rr.com] has quit [Ping timeout: 276 seconds] 00:57 -!- kkress [~kkress@c-65-49-35-49.tilenetworks.com] has left #go-nuts [] 00:57 -!- kkress [~kkress@c-65-49-35-49.tilenetworks.com] has joined #go-nuts 01:02 -!- Haro` [~moo@65.219.121.70.cfl.res.rr.com] has quit [Ping timeout: 272 seconds] 01:09 -!- baman [~moo@65.219.121.70.cfl.res.rr.com] has joined #go-nuts 01:09 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has joined #go-nuts 01:13 -!- bmizerany [~bmizerany@dsl081-064-072.sfo1.dsl.speakeasy.net] has quit [Remote host closed the connection] 01:16 -!- Venom_X [~pjacobs@71.20.102.220] has quit [Quit: Venom_X] 01:21 -!- b00m_chef [~watr@d64-180-45-230.bchsia.telus.net] has quit [Ping timeout: 258 seconds] 01:21 -!- bmizerany [~bmizerany@dsl081-064-072.sfo1.dsl.speakeasy.net] has joined #go-nuts 01:22 -!- bmizerany [~bmizerany@dsl081-064-072.sfo1.dsl.speakeasy.net] has quit [Remote host closed the connection] 01:25 -!- Haro` [~moo@65.219.121.70.cfl.res.rr.com] has joined #go-nuts 01:28 -!- baman [~moo@65.219.121.70.cfl.res.rr.com] has quit [Ping timeout: 265 seconds] 01:35 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has quit [Quit: Lost terminal] 01:43 -!- mikespook [~mikespook@219.137.49.140] has quit [Remote host closed the connection] 01:44 -!- mikespook [~mikespook@219.137.49.140] has joined #go-nuts 01:52 -!- BrowserUk [~irc1_20_B@92.15.66.71] has joined #go-nuts 01:53 -!- carllerche [~carllerch@208.87.61.203] has quit [Quit: carllerche] 01:59 -!- gnuvince_ [~vince@70.35.165.196] has quit [Read error: Connection reset by peer] 02:01 -!- gnuvince_ [~vince@70.35.168.249] has joined #go-nuts 02:07 -!- BrowserUk [~irc1_20_B@92.15.66.71] has left #go-nuts [] 02:13 -!- SecretofMana [~truthlimi@142.46.164.30] has quit [Quit: What is a quit message? A miserable little pile of secrets!] 02:33 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has quit [Ping timeout: 620 seconds] 02:37 -!- Popog1 [~Popog@66-192-186-98.static.twtelecom.net] has quit [Quit: Leaving.] 02:40 -!- Haro` [~moo@65.219.121.70.cfl.res.rr.com] has quit [Quit: Leaving] 02:40 -!- baman [~moo@65.219.121.70.cfl.res.rr.com] has joined #go-nuts 02:42 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has joined #go-nuts 02:49 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has joined #go-nuts 03:01 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 260 seconds] 03:08 -!- fredgo [~fredgo@59.164.123.252] has quit [Ping timeout: 276 seconds] 03:08 -!- rv2733 [~rv2733@c-98-242-168-49.hsd1.fl.comcast.net] has joined #go-nuts 03:12 -!- Popog [~Popog@pool-98-117-156-217.sttlwa.fios.verizon.net] has joined #go-nuts 03:17 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Ping timeout: 252 seconds] 03:17 -!- baman [~moo@65.219.121.70.cfl.res.rr.com] has quit [Ping timeout: 265 seconds] 03:22 -!- Popog [~Popog@pool-98-117-156-217.sttlwa.fios.verizon.net] has left #go-nuts [] 03:30 -!- KinOfCain [~KinOfCain@cpe-76-170-26-1.socal.res.rr.com] has joined #go-nuts 03:30 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has quit [Read error: Connection reset by peer] 03:31 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has joined #go-nuts 04:00 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Read error: Connection reset by peer] 04:02 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts 04:02 -!- mode/#go-nuts [+v iant] by ChanServ 04:02 <+iant> I think the SWIG patch is finally ready 04:03 < exch> \o/ 04:12 -!- KinOfCain [~KinOfCain@cpe-76-170-26-1.socal.res.rr.com] has quit [Remote host closed the connection] 04:16 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts 04:23 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined #go-nuts 04:35 -!- ExtraSpice [~ExtraSpic@78-62-86-161.static.zebra.lt] has joined #go-nuts 04:39 -!- snearch [~snearch@f053006093.adsl.alicedsl.de] has joined #go-nuts 04:39 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Ping timeout: 272 seconds] 04:42 -!- gmurphy [~gmurphy@nat/ibm/x-vahcfbwnakikeoog] has joined #go-nuts 04:42 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts 04:42 -!- mode/#go-nuts [+v iant] by ChanServ 04:46 -!- idr [~idr@g225065026.adsl.alicedsl.de] has joined #go-nuts 04:51 -!- crunchy135711 [~user@dslb-084-062-023-050.pools.arcor-ip.net] has joined #go-nuts 05:00 -!- scm [justme@d134237.adsl.hansenet.de] has quit [Ping timeout: 240 seconds] 05:01 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Read error: Connection reset by peer] 05:02 -!- scm [justme@d070082.adsl.hansenet.de] has joined #go-nuts 05:02 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts 05:02 -!- mode/#go-nuts [+v iant] by ChanServ 05:10 -!- snearch [~snearch@f053006093.adsl.alicedsl.de] has quit [Quit: Verlassend] 05:15 -!- gisikw [~gisikw@173-107-143-124.pools.spcsdns.net] has joined #go-nuts 05:17 -!- MizardX [~MizardX@unaffiliated/mizardx] has quit [Ping timeout: 248 seconds] 05:20 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has quit [Read error: Connection reset by peer] 05:20 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has joined #go-nuts 05:26 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Read error: Connection reset by peer] 05:27 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts 05:27 -!- mode/#go-nuts [+v iant] by ChanServ 05:29 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Read error: Connection reset by peer] 05:29 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts 05:29 -!- mode/#go-nuts [+v iant] by ChanServ 05:29 -!- gmurphy [~gmurphy@nat/ibm/x-vahcfbwnakikeoog] has quit [Quit: Laters] 05:33 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Read error: Connection reset by peer] 05:34 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts 05:34 -!- mode/#go-nuts [+v iant] by ChanServ 05:35 -!- rv2733 [~rv2733@c-98-242-168-49.hsd1.fl.comcast.net] has quit [Quit: Leaving] 05:42 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Read error: Connection reset by peer] 05:42 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts 05:42 -!- mode/#go-nuts [+v iant] by ChanServ 05:58 -!- gnuvince_ [~vince@70.35.168.249] has quit [Ping timeout: 260 seconds] 06:06 -!- tumdum [~tumdum@aty40.neoplus.adsl.tpnet.pl] has joined #go-nuts 06:06 -!- tumdum [~tumdum@aty40.neoplus.adsl.tpnet.pl] has quit [Changing host] 06:06 -!- tumdum [~tumdum@unaffiliated/tumdum] has joined #go-nuts 06:15 -!- gnuvince_ [~vince@64.235.212.154] has joined #go-nuts 06:22 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has quit [Read error: Connection reset by peer] 06:23 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has joined #go-nuts 06:24 -!- gisikw [~gisikw@173-107-143-124.pools.spcsdns.net] has left #go-nuts [] 06:26 -!- gisikw [~gisikw@173-98-40-237.pools.spcsdns.net] has joined #go-nuts 06:29 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has quit [Read error: Connection reset by peer] 06:29 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has joined #go-nuts 06:31 -!- gisikw [~gisikw@173-98-40-237.pools.spcsdns.net] has quit [Client Quit] 06:34 < jessta> could anyone explain how syscall.Syscall works? 06:36 -!- zcram [~zcram@133.193.159.217.dyn.estpak.ee] has joined #go-nuts 06:38 < Soultaker> I think it maps directly to the native syscall function 06:38 < jessta> oh, I see 06:38 < Soultaker> (so see man syscall/syscalls etc. for details) 06:39 < jessta> ok, thanks 06:58 -!- ikaros [~ikaros@g228023035.adsl.alicedsl.de] has joined #go-nuts 07:00 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts 07:00 -!- Shyde [~shyde@HSI-KBW-078-043-070-132.hsi4.kabel-badenwuerttemberg.de] has joined #go-nuts 07:07 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has quit [Read error: Connection reset by peer] 07:07 -!- Ina [~ina@62.140.137.103] has joined #go-nuts 07:07 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has joined #go-nuts 07:07 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has quit [Ping timeout: 615 seconds] 07:09 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has joined #go-nuts 07:16 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit: This computer has gone to sleep] 07:23 -!- alone [~user@58.52.5.166] has left #go-nuts ["ERC Version 5.3 (IRC client for Emacs)"] 07:25 -!- General13372 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has quit [Ping timeout: 248 seconds] 07:28 -!- Shyde [~shyde@HSI-KBW-078-043-070-132.hsi4.kabel-badenwuerttemberg.de] has quit [Quit: Shyde] 07:29 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined #go-nuts 07:29 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has joined #go-nuts 07:36 -!- alone [~user@58.52.5.166] has joined #go-nuts 07:39 -!- gmurphy [~gmurphy@203-214-102-215.dyn.iinet.net.au] has joined #go-nuts 07:45 -!- zozoR [~zozoR@0x5da69cf2.cpe.ge-0-1-0-1105.hsnqu1.customer.tele.dk] has joined #go-nuts 07:50 < emiel_> hm, why are ShortVarDecls not allowed outside function definitions, so in the TopLevelDecl? 07:56 < Soultaker> I guess it's a matter of style. (for that matter, why are function declarations only allowed at the top level?) 07:59 -!- zcram [~zcram@133.193.159.217.dyn.estpak.ee] has quit [Ping timeout: 245 seconds] 08:01 < jessta> emiel_: it's about the parsing 08:01 -!- mxweas [~max@c-98-225-102-170.hsd1.az.comcast.net] has quit [Quit: Mac has gone to sleep] 08:01 < emiel_> aha 08:02 < jessta> all top level decls start with a keyword, var,func,type etc. 08:03 < jessta> there are a number of things like that make the parser simpler 08:03 < emiel_> ahyes, i see, okay 08:03 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has quit [Read error: Connection reset by peer] 08:03 < Soultaker> is that really necessary? why isn't it necessary within function scope? 08:04 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has joined #go-nuts 08:04 < Soultaker> it seems that a lot more complicated stuff can go inside a function body than in the top-level scope, so if the parser can correctly recognize short variable declarations in a function, then it certainly should be able to do so at the top level. 08:05 -!- Ina [~ina@62.140.137.103] has quit [Ping timeout: 264 seconds] 08:05 < Soultaker> although I can understand the desire to have all top-level declarations be preceded by a keyword for consistency. 08:07 < EthanG> major goal in the design of Go: VERY fast compilation, including parsing 08:09 -!- bjarneh [~bjarneh@1x-193-157-205-236.uio.no] has joined #go-nuts 08:14 -!- zcram [~zcram@133.193.159.217.dyn.estpak.ee] has joined #go-nuts 08:18 -!- geoffhill [~geoffhill@dhcp-199-74-102-182.res-hall.northwestern.edu] has joined #go-nuts 08:20 -!- mbarkhau [~koloss@dslb-084-059-163-201.pools.arcor-ip.net] has joined #go-nuts 08:25 -!- gmurphy [~gmurphy@203-214-102-215.dyn.iinet.net.au] has left #go-nuts [] 08:26 -!- emiel__ [~emiel@vpn109237.vpn.utwente.nl] has joined #go-nuts 08:29 -!- emiel_ [~emiel@vpn104034.vpn.utwente.nl] has quit [Ping timeout: 258 seconds] 08:29 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has quit [Ping timeout: 240 seconds] 08:31 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has joined #go-nuts 08:33 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has quit [Read error: Connection reset by peer] 08:34 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has joined #go-nuts 08:34 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has quit [Ping timeout: 260 seconds] 08:40 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has joined #go-nuts 08:40 -!- ikaros_ [~ikaros@f051121202.adsl.alicedsl.de] has joined #go-nuts 08:45 -!- ikaros [~ikaros@g228023035.adsl.alicedsl.de] has quit [Ping timeout: 264 seconds] 08:46 -!- ikaros_ [~ikaros@f051121202.adsl.alicedsl.de] has quit [Quit: Leave the magic to Houdini] 08:51 -!- bjarneh [~bjarneh@1x-193-157-205-236.uio.no] has quit [Ping timeout: 252 seconds] 08:52 < Soultaker> EthanG: apart from that being the stupidest goal, I'm not convinced that restriction improves parse speed by much 08:53 < EthanG> eh ok 08:53 < EthanG> wait 08:53 < EthanG> compile times are getting ridiculous 08:53 < Soultaker> you can probably get real statistics from actual Go source, but I'd guess that 90% of tokens appear not in the top-level scope. 08:53 < EthanG> which doesn't answer your 2nd point, I'll admit 08:55 -!- emiel__ [~emiel@vpn109237.vpn.utwente.nl] has left #go-nuts [] 08:55 -!- emiel_ [~emiel@vpn109237.vpn.utwente.nl] has joined #go-nuts 08:55 < emiel_> Soultaker: thinking of it, there may be some awkward type 'guessing' required when allowing short decls on the top level, having myVar := myFunc(), where myFunc is defined at the end of the file 08:56 < Soultaker> I think the only thing that really makes parsing slow is backtracking. but any parser generator worth it's salt avoids that. 08:56 -!- emiel__ [~emiel@vpn104034.vpn.utwente.nl] has joined #go-nuts 08:56 < Soultaker> emiel_: you can still write "var x = foo()" can't you? 08:57 < Soultaker> doesn't that involve the same type guessing? 08:57 < Soultaker> (AFAIK "x := y" is equivalent to "var x = y" except you don't have to write the var part, but I haven't consulted the language reference) 08:57 -!- zozoR [~zozoR@0x5da69cf2.cpe.ge-0-1-0-1105.hsnqu1.customer.tele.dk] has quit [Quit: Morten. Desu~] 08:58 < bortzmeyer> But can you put "var x = y" anywhere in the code? I thought it was only at the beginning of a routine 08:58 < Soultaker> I think you can do that on the top-level too. 08:59 -!- emiel_ [~emiel@vpn109237.vpn.utwente.nl] has quit [Disconnected by services] 08:59 -!- emiel__ [~emiel@vpn104034.vpn.utwente.nl] has left #go-nuts [] 08:59 -!- zozoR [~zozoR@0x5da69cf2.cpe.ge-0-1-0-1105.hsnqu1.customer.tele.dk] has joined #go-nuts 08:59 -!- emiel_ [~emiel@vpn104034.vpn.utwente.nl] has joined #go-nuts 08:59 -!- emiel_ [~emiel@vpn104034.vpn.utwente.nl] has left #go-nuts [] 09:01 -!- emiel_ [~emiel@vpn104034.vpn.utwente.nl] has joined #go-nuts 09:01 * emiel_ fighting with nickserv, wtf :) 09:02 < emiel_> Soultaker: anyhow, i didn't know the long var decls could be without types? 09:02 -!- tvw [~tv@212.79.9.150] has joined #go-nuts 09:02 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has quit [Read error: Connection reset by peer] 09:03 < emiel_> i see, apparently they can 09:03 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has joined #go-nuts 09:05 < Soultaker> I don't usually write them like that either (because they you might as well use the short syntax). 09:05 < Soultaker> maybe the whole := syntax is superfluous. I personally wouldn't mind typing var to introduce new variables. 09:10 -!- Ina [~ina@5ED73781.cable.ziggo.nl] has joined #go-nuts 09:11 -!- geoffhill [~geoffhill@dhcp-199-74-102-182.res-hall.northwestern.edu] has quit [Quit: geoffhill] 09:12 -!- snearch [~snearch@f053006093.adsl.alicedsl.de] has joined #go-nuts 09:16 -!- Gracenotes [~person@wikipedia/Gracenotes] has quit [Read error: Operation timed out] 09:21 -!- chressie [~chressie@dreggn.in-ulm.de] has quit [Quit: WeeChat 0.3.2] 09:21 -!- chressie [~chressie@dreggn.in-ulm.de] has joined #go-nuts 09:23 -!- Ina [~ina@5ED73781.cable.ziggo.nl] has quit [Read error: Connection reset by peer] 09:23 < mpl> what I don't like about := is that when you realize you want to introduce the var a bit earlier in the code, you have to change that := into an =. and then you realize it was a mistake so you have to change it back, etc... 09:26 < jessta> seems about the same as any other kind of declaration 09:26 < bortzmeyer> mpl: true, it's annoying but having variables silently being declared (and type-inferred) at the first use seems worse 09:27 < mpl> jessta: well, not in language like C, when I just declare my var at the beginning and forget about it. but I agree this practice has more inconveniencies than the go way. 09:27 < mpl> bortzmeyer: yes. 09:27 < jessta> mpl: you can do the same thing in Go 09:27 < mpl> yep 09:28 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has quit [Read error: Connection reset by peer] 09:28 < mpl> the go way is a compromise and I think it's a good one as this is pretty much the only thing that is annoying. 09:28 -!- bjarneh [~bjarneh@1x-193-157-205-236.uio.no] has joined #go-nuts 09:29 < jessta> the shadowing of variables can be a bit weird too 09:29 < jessta> it's easy to miss the := and think it's a = 09:29 < mpl> yep 09:30 -!- Ina [~ina@5ED73781.cable.ziggo.nl] has joined #go-nuts 09:30 < mpl> also it's not obvious with multiple returns what you're allowed to do. do both the vars have to be new ones, etc... it takes me a bit of thinking everytime. 09:30 -!- noam__ [~noam@77.127.56.202] has quit [Read error: Connection reset by peer] 09:30 < mpl> which might be a good thing if it makes me stop and avoid a mistake anyway. 09:30 -!- noam__ [~noam@77.127.56.202] has joined #go-nuts 09:31 < Soultaker> ah right, that's probably the one thing in which := differs from var. 09:31 < mpl> jessta: btw, goplan9 indeed had everything I needed for my little tool, thx. 09:32 -!- mikespook [~mikespook@219.137.49.140] has quit [Quit: Leaving.] 09:34 < jessta> mpl: what's the tool? 09:35 < mpl> jessta: I've posted to go-nuts, it should come up soon. but here it is http://bitbucket.org/mpl/xplor 09:36 < mpl> off for lunch now, ttyl. 09:36 < Ina> How can I rebind Stdin to a file? 09:43 < emiel_> dup2 ;)? 09:44 < emiel_> ah 09:44 -!- BrowserUk [~irc1_20_B@92.15.66.71] has joined #go-nuts 09:44 < emiel_> Syscall.Dup2 in go 09:44 < emiel_> *syscall 09:51 -!- Gracenotes [~person@wikipedia/Gracenotes] has joined #go-nuts 09:51 < Soultaker> I suppose you can also assign to os.Stdin 09:52 -!- kota1111 [~kota1111@gw2.kbmj.jp] has joined #go-nuts 10:04 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Ping timeout: 276 seconds] 10:07 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts 10:29 -!- noam__ [~noam@77.127.56.202] has quit [Read error: Connection reset by peer] 10:29 -!- mbarkhau [~koloss@dslb-084-059-163-201.pools.arcor-ip.net] has quit [Quit: Leaving.] 10:29 -!- noam__ [~noam@77.127.56.202] has joined #go-nuts 10:29 -!- BrowserUk [~irc1_20_B@92.15.66.71] has quit [Quit: BrowserUk] 10:32 -!- Shyde [~shyde@HSI-KBW-078-043-070-132.hsi4.kabel-badenwuerttemberg.de] has joined #go-nuts 10:36 -!- samitheberber [~saada@melkinpaasi.cs.helsinki.fi] has quit [Ping timeout: 258 seconds] 10:39 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-180-175.clienti.tiscali.it] has joined #go-nuts 10:40 -!- samitheberber [saada@melkinpaasi.cs.helsinki.fi] has joined #go-nuts 10:42 -!- emiel__ [~emiel_@c-3d4071d5.610-2-64736c10.cust.bredbandsbolaget.se] has joined #go-nuts 10:44 -!- Eko [~eko@adsl-76-251-230-31.dsl.ipltin.sbcglobal.net] has quit [Quit: Leaving.] 10:45 -!- emiel_ [~emiel@vpn104034.vpn.utwente.nl] has quit [Ping timeout: 258 seconds] 10:45 -!- emiel__ [~emiel_@c-3d4071d5.610-2-64736c10.cust.bredbandsbolaget.se] has left #go-nuts [] 10:45 -!- emiel_ [~emiel_@c-3d4071d5.610-2-64736c10.cust.bredbandsbolaget.se] has joined #go-nuts 10:46 -!- baman [~moo@65.219.121.70.cfl.res.rr.com] has joined #go-nuts 10:46 -!- tumdum [~tumdum@unaffiliated/tumdum] has quit [Quit: tumdum] 10:48 -!- GoBIR [~gobir@adsl-76-251-230-31.dsl.ipltin.sbcglobal.net] has quit [Ping timeout: 260 seconds] 10:53 -!- Gracenotes [~person@wikipedia/Gracenotes] has quit [Ping timeout: 260 seconds] 11:09 -!- snearch [~snearch@f053006093.adsl.alicedsl.de] has quit [Quit: Verlassend] 11:11 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Read error: Connection reset by peer] 11:13 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts 11:13 -!- mode/#go-nuts [+v iant] by ChanServ 11:25 -!- alehorst [~alehorst@200.139.121.198.dynamic.adsl.gvt.net.br] has joined #go-nuts 11:28 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has joined #go-nuts 11:31 -!- Wiz126 [~Wiz126@70.15.26.13.res-cmts.sm.ptd.net] has quit [Ping timeout: 276 seconds] 11:31 -!- Wiz126 [~Wiz126@70.15.26.13.res-cmts.sm.ptd.net] has joined #go-nuts 11:33 -!- ikaros [~ikaros@f051121202.adsl.alicedsl.de] has joined #go-nuts 11:41 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Quit: WeeChat 0.3.2] 11:42 -!- alehorst [~alehorst@200.139.121.198.dynamic.adsl.gvt.net.br] has quit [Ping timeout: 248 seconds] 11:46 -!- no_mind [~orion@122.163.234.212] has quit [Ping timeout: 245 seconds] 11:47 -!- no_mind [~orion@122.163.234.212] has joined #go-nuts 11:47 -!- alehorst [~alehorst@189.58.16.68.dynamic.adsl.gvt.net.br] has joined #go-nuts 11:47 -!- plainhao [~plainhao@mail.xbiotica.com] has joined #go-nuts 11:50 -!- kota1111 [~kota1111@gw2.kbmj.jp] has quit [Quit: Leaving...] 11:52 -!- no_mind [~orion@122.163.234.212] has quit [Ping timeout: 265 seconds] 11:53 < emiel_> a scanner that supports .NextLine() and .HasNextLine() is currently not part of the default go pkg, right? 11:56 < jessta> emiel_: what do you want your lines as? 11:56 < emiel_> i have input from a <-chan []byte, put this in a bytes.Buffer, and then want to read a newline, if available only 11:56 < emiel_> *reat till 11:56 < emiel_> *read till 11:56 < emiel_> as string 11:57 < jessta> io.Reader.ReadString('\n') 11:57 -!- noam__ [~noam@77.127.56.202] has quit [Read error: Connection reset by peer] 11:58 -!- noam__ [~noam@77.127.56.202] has joined #go-nuts 11:58 < jessta> io.Reader being an interface that bytes.Buffer implements 11:58 < emiel_> don't see this in the docs ;)? 11:58 < jessta> *satisfies 11:58 < jessta> emiel_: http://golang.org/pkg/bufio/#Reader.ReadString 11:59 < emiel_> yes, but this seems to block until the newline is available? 11:59 < emiel_> *new line 11:59 < jessta> oops, that was bufio.Reader not io.Reader 11:59 < jessta> anyway, yes it blocks 12:00 < jessta> what else is it supposed to do? 12:00 < emiel_> i want to check whether the next token is available first 12:00 < emiel_> a block will break my select 12:01 < jessta> what are you trying to achieve? 12:03 < emiel_> jessta: http://gist.github.com/425327 12:03 < jessta> if something blocks a lot of the time you can just put it in a different goroutine 12:03 < jessta> but that dpends on what's you're tryin to do 12:03 < emiel_> hmm 12:05 < mpl> does go have ioprocs? 12:05 < mpl> if yes, I believe it could be your solution 12:06 < mpl> http://swtch.com/plan9port/man/man3/ioproc.html 12:07 < jessta> emiel_: you want to read from stdout, in to a buffer and get lines from that? 12:07 < emiel_> from my child process's stdout yes 12:08 < jessta> so make a goroutine that does that 12:09 < emiel_> but when and how will that goroutine end? 12:09 < jessta> when the channel is closed 12:10 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has quit [Read error: Connection reset by peer] 12:10 -!- no_mind [~orion@122.163.234.212] has joined #go-nuts 12:11 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has joined #go-nuts 12:17 -!- dahankzter [~henrik@static-92-33-16-3.sme.bredbandsbolaget.se] has joined #go-nuts 12:17 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has quit [Read error: Connection reset by peer] 12:17 -!- Ideal [~Ideal@ideal-1-pt.tunnel.tserv6.fra1.ipv6.he.net] has joined #go-nuts 12:17 -!- vdrab [~vdrab@cap008-246.kcn.ne.jp] has joined #go-nuts 12:18 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has joined #go-nuts 12:32 -!- zcram [~zcram@133.193.159.217.dyn.estpak.ee] has quit [Ping timeout: 252 seconds] 12:57 -!- bjarneh [~bjarneh@1x-193-157-205-236.uio.no] has quit [Ping timeout: 264 seconds] 13:02 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has quit [Read error: Connection reset by peer] 13:02 -!- MizardX [~MizardX@unaffiliated/mizardx] has joined #go-nuts 13:02 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has joined #go-nuts 13:03 -!- baman [~moo@65.219.121.70.cfl.res.rr.com] has quit [Ping timeout: 260 seconds] 13:06 < dahankzter> http://blog.golang.org/2010/04/json-rpc-tale-of-interfaces.html 13:06 < dahankzter> this kind of posts has to spread at least to peeps in the java world :) 13:09 -!- Knutsi [~knut@cm-84.215.55.99.getinternet.no] has joined #go-nuts 13:10 -!- Ideal [~Ideal@ideal-1-pt.tunnel.tserv6.fra1.ipv6.he.net] has quit [Quit: Ideal] 13:12 -!- Abablabab [~Abablabab@93-96-78-46.zone4.bethere.co.uk] has quit [Ping timeout: 260 seconds] 13:13 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Ping timeout: 240 seconds] 13:13 -!- Abablabab [~Abablabab@93-96-78-46.zone4.bethere.co.uk] has joined #go-nuts 13:13 -!- Fish-Work [~Fish@86.65.182.207] has quit [Read error: Connection reset by peer] 13:14 -!- Fish-Work [~Fish@86.65.182.207] has joined #go-nuts 13:21 -!- bjarneh [~bjarneh@1x-193-157-205-236.uio.no] has joined #go-nuts 13:24 -!- Knutsi [~knut@cm-84.215.55.99.getinternet.no] has quit [Quit: Leaving] 13:26 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has quit [Ping timeout: 264 seconds] 13:27 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has joined #go-nuts 13:36 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has quit [Read error: Connection reset by peer] 13:37 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has joined #go-nuts 13:41 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has quit [Read error: Connection reset by peer] 13:42 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has joined #go-nuts 13:48 -!- awidegreen [~quassel@62.176.237.78] has joined #go-nuts 13:52 -!- abunner [~abunner@c-71-198-231-134.hsd1.ca.comcast.net] has joined #go-nuts 13:55 < exch> rob's talk at stanford uni is enlightening. Finally someone who agrees with my views on how utterly ridiculous design patterns are 13:58 < vrtical> exch: link to a video? 13:58 < exch> http://stanford-online.stanford.edu/courses/ee380/100428-ee380-300.asx direct link to the stream 13:58 -!- crunchy135711 [~user@dslb-084-062-023-050.pools.arcor-ip.net] has quit [Remote host closed the connection] 13:59 < vrtical> thanks. 14:06 -!- iant [~iant@67.218.104.7] has joined #go-nuts 14:06 -!- photron [~photron@port-92-201-71-80.dynamic.qsc.de] has joined #go-nuts 14:06 -!- mode/#go-nuts [+v iant] by ChanServ 14:07 -!- noam__ [~noam@77.127.56.202] has quit [Read error: Connection reset by peer] 14:08 -!- noam__ [~noam@77.127.56.202] has joined #go-nuts 14:09 -!- dragonball_ [~dragonbal@unaffiliated/dragonball] has joined #go-nuts 14:10 -!- dragonball_ [~dragonbal@unaffiliated/dragonball] has quit [Read error: Connection reset by peer] 14:13 -!- napsy [~luka@88.200.96.14] has joined #go-nuts 14:21 -!- tux21b [~tux21b@90.146.60.30] has joined #go-nuts 14:27 -!- gr0gmint [~kris@2002:573c:1726::1337:beef] has joined #go-nuts 14:28 -!- divoxx [~divoxx@189.27.168.29.dynamic.adsl.gvt.net.br] has joined #go-nuts 14:33 < emiel_> "throw: all goroutines are asleep - deadlock!" < one of my goroutines is actually time.Sleep'ing, is this a bug? 14:39 -!- aho [~nya@g230128094.adsl.alicedsl.de] has quit [Quit: EXEC_over.METHOD_SUBLIMATION] 14:40 -!- Shyde [~shyde@HSI-KBW-078-043-070-132.hsi4.kabel-badenwuerttemberg.de] has quit [Remote host closed the connection] 14:43 -!- ikaros [~ikaros@f051121202.adsl.alicedsl.de] has quit [Quit: Leave the magic to Houdini] 14:43 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has quit [Read error: Connection reset by peer] 14:44 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has joined #go-nuts 14:44 -!- ikaros [~ikaros@f051121202.adsl.alicedsl.de] has joined #go-nuts 14:46 -!- tumdum [~tumdum@unaffiliated/tumdum] has joined #go-nuts 14:57 -!- zerdman [mk@devio.us] has joined #go-nuts 14:57 -!- Venom_X [~pjacobs@71.20.102.220] has joined #go-nuts 14:57 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has quit [Read error: Connection reset by peer] 14:58 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has joined #go-nuts 15:01 -!- iant [~iant@67.218.104.7] has quit [Ping timeout: 265 seconds] 15:04 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has quit [Ping timeout: 240 seconds] 15:04 -!- abunner [~abunner@c-71-198-231-134.hsd1.ca.comcast.net] has quit [Quit: abunner] 15:05 -!- snearch [~snearch@f053006093.adsl.alicedsl.de] has joined #go-nuts 15:06 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has quit [Read error: Connection reset by peer] 15:17 -!- vsayer [~vivek@24.130.25.47] has joined #go-nuts 15:22 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has joined #go-nuts 15:25 -!- ender2070 [~ender2070@bas2-brampton13-2925226045.dsl.bell.ca] has joined #go-nuts 15:27 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts 15:29 < emiel_> noone? 15:29 -!- vsayer [~vivek@24.130.25.47] has quit [Ping timeout: 258 seconds] 15:29 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has joined #go-nuts 15:30 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has quit [Quit: Leaving.] 15:31 -!- ender2070 [~ender2070@bas2-brampton13-2925226045.dsl.bell.ca] has quit [Remote host closed the connection] 15:33 -!- iant [~iant@nat/google/x-xrnrpamerfkfadpc] has joined #go-nuts 15:34 -!- mode/#go-nuts [+v iant] by ChanServ 15:35 -!- awidegreen [~quassel@62.176.237.78] has quit [Ping timeout: 265 seconds] 15:40 -!- iant [~iant@nat/google/x-xrnrpamerfkfadpc] has quit [Quit: Leaving.] 15:40 -!- iant [~iant@nat/google/x-sdbgofbrdnsrohvk] has joined #go-nuts 15:40 -!- mode/#go-nuts [+v iant] by ChanServ 15:42 -!- gr0gmint [~kris@2002:573c:1726::1337:beef] has quit [Ping timeout: 260 seconds] 15:43 -!- gr0gmint [~kris@2002:573c:1726::1337:beef] has joined #go-nuts 15:47 -!- vdrab [~vdrab@cap008-246.kcn.ne.jp] has quit [Quit: vdrab] 15:51 < exch> http://theoatmeal.com/comics/angler 15:51 < exch> eep 15:51 < exch> wrong chan :p 15:52 < mpl> emiel_: well I dunno if they are supposed to be all asleep. but if you have only one thread, I'd say sending a coroutine to sleep effectively blocks all the other coroutines of the same group since they wait for the sleeping wait to release control. 15:52 < mpl> *the sleeping one 15:56 -!- tux21b [~tux21b@90.146.60.30] has quit [Read error: Connection reset by peer] 16:04 -!- tvw [~tv@212.79.9.150] has quit [Ping timeout: 245 seconds] 16:08 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has quit [Read error: Connection reset by peer] 16:08 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has joined #go-nuts 16:11 -!- napsy [~luka@88.200.96.14] has quit [Ping timeout: 258 seconds] 16:13 -!- KinOfCain [~KinOfCain@rrcs-64-183-61-2.west.biz.rr.com] has joined #go-nuts 16:25 -!- tumdum_ [~tumdum@aty40.neoplus.adsl.tpnet.pl] has joined #go-nuts 16:25 -!- tumdum_ [~tumdum@aty40.neoplus.adsl.tpnet.pl] has quit [Changing host] 16:25 -!- tumdum_ [~tumdum@unaffiliated/tumdum] has joined #go-nuts 16:26 -!- tumdum [~tumdum@unaffiliated/tumdum] has quit [Ping timeout: 265 seconds] 16:30 -!- napsy [~luka@88.200.96.14] has joined #go-nuts 16:35 -!- bjarneh [~bjarneh@1x-193-157-205-236.uio.no] has quit [Quit: bjarneh] 16:36 -!- bjarneh [~bjarneh@1x-193-157-205-236.uio.no] has joined #go-nuts 16:41 -!- gr0gmint [~kris@2002:573c:1726::1337:beef] has quit [Read error: Operation timed out] 16:52 -!- waterwalker [~tar@dsl-hkibrasgw3-fe75fb00-7.dhcp.inet.fi] has quit [Ping timeout: 240 seconds] 16:54 -!- Surma [~surma@91-64-31-88-dynip.superkabel.de] has joined #go-nuts 16:55 -!- bjarneh [~bjarneh@1x-193-157-205-236.uio.no] has left #go-nuts [] 16:55 -!- tumdum_ [~tumdum@unaffiliated/tumdum] has joined #go-nuts 16:56 -!- emmanueloga [~emmanuelo@190.247.39.128] has joined #go-nuts 16:57 -!- tumdum [~tumdum@unaffiliated/tumdum] has quit [Ping timeout: 248 seconds] 16:57 -!- b00m_chef [~watr@216-21-143-134.ip.van.radiant.net] has joined #go-nuts 17:01 -!- geoffhill [~geoffhill@2002:c74a:664a:8:21b:63ff:fe96:e3d1] has joined #go-nuts 17:04 -!- gnuvince_ [~vince@64.235.212.154] has quit [Quit: What the fruit is goin' on here!?] 17:22 -!- gr0gmint [~kris@2002:573c:1726::1337:beef] has joined #go-nuts 17:23 -!- jkr [~jkr@c-69-255-36-229.hsd1.md.comcast.net] has joined #go-nuts 17:23 -!- Shyde [~Shyde^^@HSI-KBW-078-043-070-132.hsi4.kabel-badenwuerttemberg.de] has joined #go-nuts 17:24 -!- zcram [~zcram@133.193.159.217.dyn.estpak.ee] has joined #go-nuts 17:33 -!- napsy [~luka@88.200.96.14] has quit [Ping timeout: 264 seconds] 17:35 -!- napsy [~luka@88.200.96.14] has joined #go-nuts 17:38 -!- Svarthandske [~nn@dsl-tkubrasgw1-fe3cdc00-28.dhcp.inet.fi] has joined #go-nuts 17:42 -!- i__ [~gordolinu@unaffiliated/i--/x-3618442] has joined #go-nuts 17:42 -!- i__ [~gordolinu@unaffiliated/i--/x-3618442] has quit [Client Quit] 17:45 -!- gisikw [~gisikw@70-9-99-245.pools.spcsdns.net] has joined #go-nuts 17:45 -!- Gracenotes [~person@wikipedia/Gracenotes] has joined #go-nuts 17:53 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has quit [Ping timeout: 264 seconds] 18:05 -!- i__ [~none@unaffiliated/i--/x-3618442] has joined #go-nuts 18:06 < i__> maybe somebody else has already watched it but the google io talk is online at: http://www.youtube.com/watch?v=jgVhBThJdXc 18:06 < exch> thanks 18:07 -!- divoxx [~divoxx@189.27.168.29.dynamic.adsl.gvt.net.br] has quit [Quit: divoxx] 18:07 -!- ahihi [~generic@cs27127176.pp.htv.fi] has quit [Read error: Operation timed out] 18:13 < kmeyer> i__: thanks also :) 18:17 -!- Kashia [~Kashia@port-92-200-3-151.dynamic.qsc.de] has joined #go-nuts 18:17 -!- Ideal [~Ideal@ideal-1-pt.tunnel.tserv6.fra1.ipv6.he.net] has joined #go-nuts 18:18 -!- ahihi [~generic@cs27127176.pp.htv.fi] has joined #go-nuts 18:20 -!- rsaarelm [~rsaarelm@cs181128175.pp.htv.fi] has joined #go-nuts 18:20 -!- KinOfCain [~KinOfCain@rrcs-64-183-61-2.west.biz.rr.com] has quit [Remote host closed the connection] 18:21 -!- KinOfCain [~KinOfCain@rrcs-64-183-61-2.west.biz.rr.com] has joined #go-nuts 18:27 -!- waterwalker [~tar@dsl-hkibrasgw3-fe75fb00-7.dhcp.inet.fi] has joined #go-nuts 18:28 -!- idr [~idr@g225065026.adsl.alicedsl.de] has quit [Remote host closed the connection] 18:29 -!- cco3-hampster [~conleyo@nat/google/x-dvgyevivthonnnsr] has quit [Read error: No route to host] 18:29 -!- Venom_X [~pjacobs@71.20.102.220] has quit [Ping timeout: 240 seconds] 18:32 -!- idr [~idr@g225065026.adsl.alicedsl.de] has joined #go-nuts 18:33 -!- gr0gmint [~kris@2002:573c:1726::1337:beef] has quit [Quit: leaving] 18:36 -!- geoffhill [~geoffhill@2002:c74a:664a:8:21b:63ff:fe96:e3d1] has quit [Quit: geoffhill] 18:36 -!- ikaros [~ikaros@f051121202.adsl.alicedsl.de] has quit [Quit: Leave the magic to Houdini] 18:36 -!- Venom_X [~pjacobs@66.54.185.131] has joined #go-nuts 18:36 -!- napsy [~luka@88.200.96.14] has quit [Read error: Operation timed out] 18:36 -!- babusri [~e50138@122.166.147.150] has joined #go-nuts 18:37 -!- andrei1089 [~andrei108@81.18.92.10] has joined #go-nuts 18:38 -!- snearch [~snearch@f053006093.adsl.alicedsl.de] has quit [Quit: Verlassend] 18:38 -!- napsy [~luka@88.200.96.14] has joined #go-nuts 18:40 -!- illya77 [~illya77@201-198-178-94.pool.ukrtel.net] has joined #go-nuts 18:45 -!- tvw [~tv@e176005170.adsl.alicedsl.de] has joined #go-nuts 18:47 -!- babusri [~e50138@122.166.147.150] has quit [Read error: Connection reset by peer] 18:47 < andrei1089> hi, there's no way to declare a static variable in go right ? 18:48 < Ginto8> you could consider any exported var as static 18:48 < Ginto8> and any file in a package can access every var/func in that package, regardless of the file it's in 18:50 < andrei1089> Ginto8, so if I declare a variable in a function with an upper case name then it's static? 18:50 < Ginto8> what I mean it define "static" 18:52 < andrei1089> Ginto8, I want something similar to static in C, to define a static variable in a function that it's not allocated on the stack 18:52 < Ginto8> a static var in a function? 18:52 < Ginto8> hmm just use a global package var? 18:52 < Ginto8> not exported obviously 18:53 -!- carllerche [~carllerch@99.13.242.166] has joined #go-nuts 18:56 < andrei1089> Ginto8, I don't want to export it 18:56 < andrei1089> Ginto8, look at this example http://www.java2s.com/Tutorial/C/0020__Language/Staticvariable.htm 18:56 < andrei1089> how could I write a similar f1 function in go ? 18:57 < Ginto8> one sec I'll get back to you 18:58 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has quit [Read error: Connection reset by peer] 18:58 < rsaarelm> You can't write such in-function static var in Go, but you can use a global variable. 18:58 < Ginto8> yeah 18:58 < andrei1089> thanks rsaarelm 18:58 < Ginto8> what rsaarelm said 18:59 -!- Svarthandske [~nn@dsl-tkubrasgw1-fe3cdc00-28.dhcp.inet.fi] has quit [Quit: Svarthandske] 18:59 < andrei1089> thanks Ginto8, I know a could use a global variable, but it would be visible in the whole package then 18:59 < rsaarelm> As long as it's not visible outside the package it shouldn't be a problem, just give it a distinctive name. 19:00 < Ginto8> well global vars are only considered bad in C/++ because anyone including the header file can modify it 19:00 < Ginto8> but in Go not everything in a package is exported, so the problem is nullified 19:00 < rsaarelm> They are also considered generally bad because they mess up referential transparency. 19:00 < Ginto8> yeah 19:01 < Ginto8> but I don't think go allows variable hiding via scope 19:02 < rsaarelm> I was thinking more about packages becoming harder to unit test and generally reason about if they have hidden state. 19:03 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts 19:03 <+iant> they have state whether the variable is static or global 19:03 < andrei1089> Ginto8, I've tried to hide a global var with a local one in a function and it works 19:04 < andrei1089> so is there any resolution operator like :: in c++? 19:04 < Ginto8> orly? interesting 19:04 < Ginto8> no just don't hide it 19:04 <+iant> andrei1089: no 19:07 -!- fredgo [~fredgo@59.164.122.78] has joined #go-nuts 19:09 -!- i__ [~none@unaffiliated/i--/x-3618442] has quit [Quit: Lost terminal] 19:12 < Soultaker> you can hide locals with other locals too if you want (in different scopes) 19:13 < exch> Google should fire the person doing the subtitles for IO talks. 19:17 <+iant> I think it's a program 19:17 < exch> that explains things 19:20 < Soultaker> seriously? 19:22 -!- Venom_X_ [~pjacobs@71.20.102.220] has joined #go-nuts 19:23 -!- b00m_chef [~watr@216-21-143-134.ip.van.radiant.net] has quit [Read error: Connection reset by peer] 19:24 -!- General13372 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has joined #go-nuts 19:26 -!- Venom_X [~pjacobs@66.54.185.131] has quit [Ping timeout: 258 seconds] 19:27 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has quit [Ping timeout: 240 seconds] 19:41 -!- bmizerany [~bmizerany@dsl081-064-072.sfo1.dsl.speakeasy.net] has joined #go-nuts 19:46 -!- plainhao [~plainhao@mail.xbiotica.com] has quit [Quit: plainhao] 19:48 -!- kingfishr [~kingfishr@71-222-221-147.albq.qwest.net] has quit [Read error: Connection reset by peer] 19:49 -!- g0bl1n [~pr0kter@a213-22-77-195.cpe.netcabo.pt] has joined #go-nuts 19:52 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has joined #go-nuts 19:53 -!- SRabbelier [~SRabbelie@ip138-114-211-87.adsl2.static.versatel.nl] has quit [Quit: Leaving.] 19:53 < cw> iant: i've seen subtitles added in near real-time 19:56 -!- SRabbelier [~SRabbelie@ip138-114-211-87.adsl2.static.versatel.nl] has joined #go-nuts 20:00 -!- cco3-hampster [~conleyo@nat/google/x-cnxuwrtbgjdlumnh] has joined #go-nuts 20:01 -!- carllerche [~carllerch@99.13.242.166] has quit [Quit: carllerche] 20:15 -!- jackman [~jackman@c-24-21-216-140.hsd1.or.comcast.net] has quit [Remote host closed the connection] 20:17 -!- jackman [~jackman@c-24-21-216-140.hsd1.or.comcast.net] has joined #go-nuts 20:18 -!- illya77 [~illya77@201-198-178-94.pool.ukrtel.net] has quit [Read error: Connection reset by peer] 20:20 -!- i__ [~none@unaffiliated/i--/x-3618442] has joined #go-nuts 20:20 -!- carllerche [~carllerch@208.87.61.203] has joined #go-nuts 20:25 -!- ExtraSpice [~ExtraSpic@78-62-86-161.static.zebra.lt] has quit [Quit: Leaving] 20:26 < exch> Am I going blind? There is some really peculiar compiler error I can't seem to place. Beginning to think it's a bug of some kind. http://pastie.org/992346 20:28 < Soultaker> is Person also defined in the contacts package? 20:28 < exch> yup 20:28 < exch> main2() would not work if it wasn't 20:28 < Soultaker> no clue then :/ 20:29 < Soultaker> I guess that's true.. 20:34 <+iant> exch: note that every import statement that refers to a specific package must use exactly the same name to refer to it 20:34 <+iant> that is, if you import "../lib/contacts" in one package, you need to use that name in every other package that imports contacts 20:34 <+iant> otherwise you can get this kind of error 20:35 < exch> i'm not using it in any other package/file 20:35 <+iant> hmm 20:35 < exch> main.go you see there is the only file 20:35 < exch> http://pastie.org/992362 this is contacts.pb.go. it's the output of protoc as-is 20:36 <+iant> that seems like a bug 20:36 < exch> yea. i'm just not sure where the bug is 20:36 < exch> the . alias works fine in main2() 20:36 <+iant> that is a different, and simpler, case 20:37 <+iant> struct literals with keys are tricky because the compiler doesn't know the type when it is parsing the literal 20:38 < exch> hmm. think I should file an issue for this? 20:38 <+iant> yes, please 20:39 < exch> alright 20:44 -!- andrei1089 [~andrei108@81.18.92.10] has quit [Read error: Connection reset by peer] 20:46 -!- zerdman [mk@devio.us] has quit [Quit: leaving] 20:47 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Ping timeout: 265 seconds] 20:47 -!- exch [~nuada@h144170.upc-h.chello.nl] has quit [Ping timeout: 258 seconds] 20:50 -!- i___ [~none@unaffiliated/i--/x-3618442] has joined #go-nuts 20:50 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has quit [Read error: Connection reset by peer] 20:51 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has joined #go-nuts 20:52 -!- i__ [~none@unaffiliated/i--/x-3618442] has quit [Ping timeout: 265 seconds] 20:53 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts 20:54 -!- Shyde [~Shyde^^@HSI-KBW-078-043-070-132.hsi4.kabel-badenwuerttemberg.de] has quit [Remote host closed the connection] 20:57 -!- eikenberry [~jae@mail.zhar.net] has quit [Quit: End of line.] 21:03 -!- wsfulton [~wsfulton@fultondesigns.plus.com] has joined #go-nuts 21:03 -!- idr [~idr@g225065026.adsl.alicedsl.de] has quit [Remote host closed the connection] 21:06 < wsfulton> hi, I've just run all.bash and go has been installed in my home directory, which is not what I intended. How do I uninstall it, ie the equivalent of the normal 'make uninstall'. 21:07 <+iant> I don't think there is a "make uninstall" 21:07 <+iant> you will want to remove the pkg directory 21:08 <+iant> also [68]{a,c,cov,g,l,nm,prof} and gopack, gopprof, goyacc, quietgcc 21:09 <+iant> hmmm, also cgo, ebnflint, godefs, godoc, gofmt, goinstall, gomake, gotest, hgpatch 21:09 <+iant> that is assuming all the files which usually go in bin wound up in your home dir 21:09 -!- exch [~nuada@h144170.upc-h.chello.nl] has joined #go-nuts 21:09 <+iant> finally, a few files will be installed in $GOROOT/lib 21:09 <+iant> I think that might be everything 21:10 < wsfulton> okay, thanks, I can see a bunch of stuff in bin, but can't find pkg, should that be ~/pkg ? 21:10 <+iant> it will be $GOROOT/pkg 21:10 <+iant> whatever $GOROOT was 21:10 <+iant> by default it will be whereever you unpacked the sources, I think 21:10 < wsfulton> yup, got it, tks 21:11 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has quit [Read error: Connection reset by peer] 21:11 < wsfulton> so the only stuff installed outside of $GOROOT is ~/bin ? 21:11 <+iant> yes 21:11 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has joined #go-nuts 21:12 < wsfulton> Would be nice if it had a ./configure --prefix approach with a make install/uninstall like everything else. But never mind, not hard to sort out. 21:13 <+iant> yeah 21:13 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-180-175.clienti.tiscali.it] has quit [Quit: E se abbasso questa leva che succ...] 21:14 -!- exch [~nuada@h144170.upc-h.chello.nl] has quit [Quit: nipples rock] 21:15 -!- exch [~nuada@h144170.upc-h.chello.nl] has joined #go-nuts 21:15 < exch> great timing for a power outage -.- 21:15 < Tonnerre> How so? 21:16 -!- carllerche [~carllerch@208.87.61.203] has quit [Quit: carllerche] 21:16 < exch> I was just about to submit a go bugreport when our kitchen exploded and half the electrical wiring in the house with it :p 21:16 < exch> no doubt a sign from the heavens 21:16 <+iant> yikes 21:17 < Tonnerre> That must have been one hell of a bug 21:18 < exch> heh yes it's a nasty one 21:18 < Tonnerre> «When I use library function X with arguments Y, the kitchen explodes and the electrical wiring in the house melts down» 21:18 < Tonnerre> That would make for a seriously funny bug report 21:19 < exch> that's what you get for messing with systems programming languages ;) I guess putting the go runtime in the doorbell wasn't such a good idea afterall 21:20 < exch> anyhow. Bug reported. Nobody can stop me! 21:21 < Tonnerre> I think I'll report a Python bug. «Every time I use the Python crypto API, God kills a kitten» 21:21 < exch> some might see that as a feature :p 21:22 < Tonnerre> Until the Universe runs out of kittens and all Python crypto code starts throwing OutOfKittenExceptions 21:22 < exch> :P 21:22 < exch> I should make a note of adding such an error to one of my programs. Just cos I can 21:22 < Tonnerre> Then the Java people will hack up a KittenFactory and hook it up to Jython 21:24 < Tonnerre> exch, like http://developer.android.com/reference/android/app/ActivityManager.html#isUserAMonkey() ? 21:25 < exch> hehe 21:25 < Tonnerre> Also, http://developer.android.com/reference/android/util/Log.html#wtf(java.lang.String, java.lang.String) 21:26 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has quit [Ping timeout: 252 seconds] 21:27 < exch> nice :D 21:27 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has joined #go-nuts 21:33 < mpl> is it allowed to nest switch statements in Go? 21:33 < exch> why not? 21:34 < Ginto8> There shouldn't be any reason you can't 21:34 < jesusaurus> should be, give it a shot 21:34 < Ginto8> Switches act like if/else if/else blocks with optional fallthrough 21:34 < mpl> dunno. I seem to recall some other language gave me trouble with that. can't recall which one... 21:34 < Ginto8> so it should be fine 21:35 < Tonnerre> Reminds me of the break/continue/next mess with nested loops… 21:35 < Ginto8> Tonnerre, that's eliminated in Go 21:35 < Ginto8> just label the loops 21:36 < Tonnerre> Ginto8, I know, thanks fro reminding me ;) 21:36 < Tonnerre> for 21:36 < Ginto8> and use break <loopname> or continue <loopname> 21:36 < Ginto8> np 21:37 < vrtical> What about Duff's Device? :-) 21:38 < Ginto8> ? 21:38 < vrtical> You know, the interleaved loop and switch in C. http://en.wikipedia.org/wiki/Duff%27s_device 21:40 -!- tumdum [~tumdum@unaffiliated/tumdum] has quit [Quit: tumdum] 21:42 -!- zozoR [~zozoR@0x5da69cf2.cpe.ge-0-1-0-1105.hsnqu1.customer.tele.dk] has quit [Quit: Morten. Desu~] 21:43 -!- marsu [~marsu@140.100.202-77.rev.gaoland.net] has joined #go-nuts 21:44 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has quit [Read error: Connection reset by peer] 21:45 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has joined #go-nuts 21:49 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has quit [Read error: Connection reset by peer] 21:50 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has joined #go-nuts 21:50 -!- Ina [~ina@5ED73781.cable.ziggo.nl] has quit [Ping timeout: 252 seconds] 22:06 < mpl> yep, seems to be working. 22:06 < mpl> (nested switches that is) 22:10 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has quit [Read error: Connection reset by peer] 22:11 -!- gisikw [~gisikw@70-9-99-245.pools.spcsdns.net] has quit [Ping timeout: 260 seconds] 22:11 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has joined #go-nuts 22:33 -!- Venom_X [~pjacobs@71.20.102.220] has quit [Ping timeout: 276 seconds] 22:34 -!- wsfulton [~wsfulton@fultondesigns.plus.com] has quit [Quit: Leaving] 22:35 -!- baman [~moo@65.219.121.70.cfl.res.rr.com] has joined #go-nuts 22:35 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has quit [Read error: Connection reset by peer] 22:36 -!- vsayer [~vivek@c-24-130-25-47.hsd1.ca.comcast.net] has joined #go-nuts 22:40 -!- emmanueloga [~emmanuelo@190.247.39.128] has quit [Ping timeout: 260 seconds] 22:42 -!- emmanueloga [~emmanuelo@190.247.39.128] has joined #go-nuts 22:47 -!- Ideal [~Ideal@ideal-1-pt.tunnel.tserv6.fra1.ipv6.he.net] has quit [Quit: Ideal] 22:51 -!- vdrab [~vdrab@cap013-214.kcn.ne.jp] has joined #go-nuts 23:11 -!- plainhao [~plainhao@mail.xbiotica.com] has joined #go-nuts 23:16 -!- napsy [~luka@88.200.96.14] has quit [Read error: Operation timed out] 23:17 -!- micrypt [~micrypt@94-195-127-212.zone9.bethere.co.uk] has joined #go-nuts 23:17 -!- napsy [~luka@88.200.96.14] has joined #go-nuts 23:19 -!- fredgo [~fredgo@59.164.122.78] has quit [Quit: fredgo] 23:20 -!- vdrab [~vdrab@cap013-214.kcn.ne.jp] has left #go-nuts [] 23:21 -!- photron [~photron@port-92-201-71-80.dynamic.qsc.de] has quit [Ping timeout: 265 seconds] 23:25 -!- Surma [~surma@91-64-31-88-dynip.superkabel.de] has quit [Ping timeout: 276 seconds] 23:30 -!- iant [~iant@nat/google/x-sdbgofbrdnsrohvk] has quit [Ping timeout: 276 seconds] --- Log closed Sat Jun 05 00:00:01 2010