--- Log opened Thu Sep 02 00:00:05 2010 00:07 -!- artefon [~thiago@189.107.218.226] has joined #go-nuts 00:15 < plexdev> http://is.gd/eQcfY by [Andrew Gerrand] in go/src/pkg/http/ -- http: add PostForm function to post url-encoded key/value data. 00:21 -!- ExtraSpice [~XtraSpice@88.118.32.225] has quit [Ping timeout: 240 seconds] 00:27 -!- mattikus [~mattikus@ip24-250-73-154.br.br.cox.net] has joined #go-nuts 00:32 -!- aho [~nya@fuld-4d00d36a.pool.mediaWays.net] has quit [Quit: EXEC_over.METHOD_SUBLIMATION] 00:35 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Remote host closed the connection] 00:36 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Ping timeout: 276 seconds] 00:38 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts 00:45 -!- kanru [~kanru@118-168-232-207.dynamic.hinet.net] has quit [Ping timeout: 276 seconds] 00:46 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has joined #go-nuts 00:49 -!- mattikus [~mattikus@ip24-250-73-154.br.br.cox.net] has quit [Quit: Computer has gone to sleep.] 00:56 -!- iant [~iant@66.109.106.2] has quit [Ping timeout: 265 seconds] 00:57 -!- enherit [~enherit@cpe-98-149-170-48.socal.res.rr.com] has quit [Quit: leaving] 00:58 -!- napsy [~luka@212.235.174.112] has quit [Ping timeout: 255 seconds] 01:01 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Ping timeout: 272 seconds] 01:25 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts 01:31 -!- ukai [~ukai@nat/google/x-gcvymzhlgemlkupj] has quit [Ping timeout: 252 seconds] 01:31 -!- ukai [~ukai@nat/google/x-fbugtudrdysntokf] has joined #go-nuts 01:43 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts 01:43 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has joined #go-nuts 01:55 -!- l00t [~i-i3id3r_@189.105.2.11] has joined #go-nuts 01:57 -!- artefon [~thiago@189.107.218.226] has quit [Remote host closed the connection] 01:58 -!- steveno [~stevenoli@paludis/cheerleader/steveno] has joined #go-nuts 01:59 -!- napsy [~luka@212.235.174.112] has joined #go-nuts 02:03 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit: This computer has gone to sleep] 02:20 -!- adu [~ajr@pool-173-66-0-198.washdc.fios.verizon.net] has joined #go-nuts 02:29 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts 02:29 -!- mode/#go-nuts [+v iant] by ChanServ 02:29 -!- mattikus [~mattikus@ip24-250-73-154.br.br.cox.net] has joined #go-nuts 02:33 -!- adu [~ajr@pool-173-66-0-198.washdc.fios.verizon.net] has quit [Quit: adu] 02:37 -!- niemeyer [~niemeyer@200-102-194-252.pltce701.dsl.brasiltelecom.net.br] has quit [Ping timeout: 265 seconds] 02:38 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined #go-nuts 02:43 -!- mikespook [~mikespook@58.61.203.92] has joined #go-nuts 02:47 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit: This computer has gone to sleep] 03:00 -!- mafs [~maikeru@unaffiliated/maikeru/x-7708887] has quit [Ping timeout: 255 seconds] 03:01 -!- steveno [~stevenoli@paludis/cheerleader/steveno] has quit [Quit: steveno] 03:02 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 276 seconds] 03:04 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has joined #go-nuts 03:07 -!- ericvh [~ericvh@cpe-70-123-128-44.austin.res.rr.com] has joined #go-nuts 03:13 -!- skelterjohn [~jasmuth@c-76-116-182-139.hsd1.nj.comcast.net] has joined #go-nuts 03:21 -!- Melvar [~melvar@dslb-094-221-222-026.pools.arcor-ip.net] has joined #go-nuts 03:21 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has quit [Ping timeout: 260 seconds] 03:30 -!- skelterjohn [~jasmuth@c-76-116-182-139.hsd1.nj.comcast.net] has quit [Quit: skelterjohn] 03:33 -!- sacho [~sacho@79-100-63-178.btc-net.bg] has quit [Ping timeout: 276 seconds] 03:34 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has joined #go-nuts 03:41 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3] 03:41 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts 03:51 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has quit [Remote host closed the connection] 03:58 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has quit [Ping timeout: 240 seconds] 04:00 -!- kergoth [~kergoth@ip24-251-170-95.ph.ph.cox.net] has quit [Quit: kergoth] 04:18 -!- quag [~quag@121-98-81-61.bitstream.orcon.net.nz] has quit [Ping timeout: 240 seconds] 04:18 < plexdev> http://is.gd/eQBSn by [Ian Lance Taylor] in go/test/fixedbugs/ -- test: Recognize gccgo error messages. 04:18 < plexdev> http://is.gd/eQBSy by [Ian Lance Taylor] in go/test/fixedbugs/ -- test: Match gccgo error messages. 04:18 -!- quag [~quag@121-98-81-61.bitstream.orcon.net.nz] has joined #go-nuts 04:24 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has joined #go-nuts 04:31 -!- Melvar [~melvar@dslb-094-221-222-026.pools.arcor-ip.net] has left #go-nuts [] 04:31 -!- adu [~ajr@pool-173-66-0-198.washdc.fios.verizon.net] has joined #go-nuts 04:35 -!- ericvh [~ericvh@cpe-70-123-128-44.austin.res.rr.com] has quit [Quit: ericvh] 04:41 -!- itrekkie [~itrekkie@ip72-211-128-238.tc.ph.cox.net] has joined #go-nuts 04:41 -!- itrekkie [~itrekkie@ip72-211-128-238.tc.ph.cox.net] has quit [Client Quit] 04:45 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has quit [Ping timeout: 265 seconds] 04:48 -!- quag [~quag@121-98-81-61.bitstream.orcon.net.nz] has quit [Ping timeout: 258 seconds] 04:51 -!- quag [~quag@121-98-81-61.bitstream.orcon.net.nz] has joined #go-nuts 05:00 -!- napsy [~luka@212.235.174.112] has quit [Ping timeout: 272 seconds] 05:02 -!- scm [justme@d070105.adsl.hansenet.de] has quit [Ping timeout: 240 seconds] 05:04 -!- scm [justme@d071102.adsl.hansenet.de] has joined #go-nuts 05:13 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has joined #go-nuts 05:26 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 05:35 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3] 05:45 -!- skelterjohn [~jasmuth@c-76-116-182-139.hsd1.nj.comcast.net] has joined #go-nuts 05:54 -!- adu [~ajr@pool-173-66-0-198.washdc.fios.verizon.net] has quit [Quit: adu] 05:54 -!- quag [~quag@121-98-81-61.bitstream.orcon.net.nz] has quit [Ping timeout: 240 seconds] 05:55 -!- ExtraSpice [~XtraSpice@88.118.32.225] has joined #go-nuts 05:55 -!- quag [~quag@121-98-81-61.bitstream.orcon.net.nz] has joined #go-nuts 05:58 -!- navigator [~navigator@p54892233.dip.t-dialin.net] has joined #go-nuts 05:58 -!- tasosos [~tasosos@178.128.136.40.dsl.dyn.forthnet.gr] has joined #go-nuts 06:01 -!- napsy [~luka@212.235.174.112] has joined #go-nuts 06:01 -!- jessta [~jessta@203-217-77-151.dyn.iinet.net.au] has quit [Ping timeout: 240 seconds] 06:11 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has quit [Ping timeout: 258 seconds] 06:12 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-177-247.clienti.tiscali.it] has joined #go-nuts 06:30 -!- jessta [~jessta@203-158-39-200.dyn.iinet.net.au] has joined #go-nuts 06:35 -!- mikespook [~mikespook@58.61.203.92] has quit [Read error: Connection reset by peer] 06:37 -!- mikespook [~mikespook@58.61.203.92] has joined #go-nuts 06:43 -!- skelterjohn [~jasmuth@c-76-116-182-139.hsd1.nj.comcast.net] has quit [Quit: skelterjohn] 06:50 -!- ucasano [~ucasano@95.231.79.71] has joined #go-nuts 07:00 -!- quag [~quag@121-98-81-61.bitstream.orcon.net.nz] has quit [Ping timeout: 276 seconds] 07:00 -!- sacho [~sacho@213.91.244.15] has joined #go-nuts 07:01 -!- quag [~quag@121-98-81-61.bitstream.orcon.net.nz] has joined #go-nuts 07:06 < plexdev> http://is.gd/eQVP6 by [Alex Brainman] in go/src/cmd/8l/ -- 8l: suppress emitting DWARF in Windows PE. 07:07 -!- quag [~quag@121-98-81-61.bitstream.orcon.net.nz] has quit [Ping timeout: 245 seconds] 07:09 -!- quag [~quag@121-98-81-61.bitstream.orcon.net.nz] has joined #go-nuts 07:12 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Ping timeout: 255 seconds] 07:13 -!- slashus2 [~slashus2@74-137-77-71.dhcp.insightbb.com] has joined #go-nuts 07:14 -!- quag [~quag@121-98-81-61.bitstream.orcon.net.nz] has quit [Ping timeout: 245 seconds] 07:15 -!- quag [~quag@121-98-81-61.bitstream.orcon.net.nz] has joined #go-nuts 07:16 -!- ikaros [~ikaros@dslb-094-219-208-072.pools.arcor-ip.net] has joined #go-nuts 07:16 -!- slashus2_ [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts 07:19 -!- slashus2__ [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts 07:19 -!- slashus2 [~slashus2@74-137-77-71.dhcp.insightbb.com] has quit [Ping timeout: 265 seconds] 07:22 -!- slashus2_ [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Ping timeout: 255 seconds] 07:33 -!- tux21b [~christoph@chello213047047175.3.graz.surfer.at] has joined #go-nuts 07:33 -!- mbohun [~mbohun@202.124.73.208] has quit [Quit: Leaving] 07:33 -!- mbohun [~mbohun@202.124.73.208] has joined #go-nuts 07:41 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Read error: Connection reset by peer] 07:50 -!- mattikus [~mattikus@ip24-250-73-154.br.br.cox.net] has quit [Quit: Computer has gone to sleep.] 07:53 -!- virtualsue [~chatzilla@nat/cisco/x-qzvntbkdrkoxewpv] has joined #go-nuts 07:53 -!- ikaros [~ikaros@dslb-094-219-208-072.pools.arcor-ip.net] has quit [Quit: Leave the magic to Houdini] 07:53 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 08:00 -!- napsy [~luka@212.235.174.112] has quit [Ping timeout: 276 seconds] 08:00 -!- photron [~photron@port-92-201-70-214.dynamic.qsc.de] has joined #go-nuts 08:02 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Quit: slashus2] 08:06 -!- ucasano [~ucasano@95.231.79.71] has quit [Quit: ucasano] 08:07 -!- ucasano [~ucasano@95.231.79.71] has joined #go-nuts 08:08 -!- mbohun [~mbohun@202.124.73.208] has quit [Quit: Leaving] 08:09 -!- mbohun [~mbohun@202.124.73.208] has joined #go-nuts 08:11 -!- navigator [~navigator@p54892233.dip.t-dialin.net] has quit [Quit: WeeChat 0.3.3] 08:31 -!- napsy [~luka@212.235.174.112] has joined #go-nuts 08:42 -!- lmoura__ [~lauromour@187.113.127.220] has quit [Ping timeout: 245 seconds] 08:43 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by peer] 08:44 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has joined #go-nuts 08:44 -!- tasosos [~tasosos@178.128.136.40.dsl.dyn.forthnet.gr] has quit [Remote host closed the connection] 08:46 -!- saschpe [~quassel@mgdb-4d0cfdcc.pool.mediaWays.net] has joined #go-nuts 08:50 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts 08:51 -!- mduft [~mduft@gentoo/developer/mduft] has quit [Quit: Leaving] 08:58 -!- lmoura__ [~lauromour@187.113.127.220] has joined #go-nuts 09:02 -!- mduft [~mduft@gentoo/developer/mduft] has joined #go-nuts 09:20 -!- tvw [~tv@212.79.9.150] has joined #go-nuts 09:24 -!- piyushmishra [~piyushmis@117.200.231.143] has joined #go-nuts 09:24 < piyushmishra> Hi everyone I am downloading and installing go to test it out. whts this new language about? 09:26 -!- ronnyy [~quassel@p4FF1CA30.dip.t-dialin.net] has joined #go-nuts 09:27 < jessta> it's about being simple 09:29 < piyushmishra> hmm I am a web developer, can I make web apps from it? I will be getting a dedicated server next yr so would I be able to use go there? 09:32 < piyushmishra> oh great I just found this http://github.com/hoisie/web.go 09:32 < piyushmishra> :) 09:33 -!- napsy [~luka@212.235.174.112] has quit [Ping timeout: 260 seconds] 09:34 < jessta> yep, lots of things for making web apps 09:38 -!- ucasano_ [~ucasano@95.231.79.71] has joined #go-nuts 09:38 -!- tux21b [~christoph@chello213047047175.3.graz.surfer.at] has quit [Ping timeout: 265 seconds] 09:40 -!- mikespook [~mikespook@58.61.203.92] has quit [Quit: Leaving.] 09:41 -!- ucasano [~ucasano@95.231.79.71] has quit [Ping timeout: 260 seconds] 10:02 -!- jmettraux [~jmettraux@211.19.55.177] has quit [Remote host closed the connection] 10:04 -!- Shyde [~shyde@HSI-KBW-078-043-070-132.hsi4.kabel-badenwuerttemberg.de] has joined #go-nuts 10:14 -!- luruke [~luruke@151.53.37.247] has joined #go-nuts 10:20 -!- jmettraux [~jmettraux@PPPbm5391.kanagawa-ip.dti.ne.jp] has joined #go-nuts 10:21 -!- zerd [~quassel@2a01:608:ffff:3644:2e0:4dff:fe83:76ed] has quit [Read error: Operation timed out] 10:25 -!- zerd [~quassel@2a01:608:ffff:3644:2e0:4dff:fe83:76ed] has joined #go-nuts 10:32 -!- ucasano_ [~ucasano@95.231.79.71] has joined #go-nuts 10:34 -!- napsy [~luka@212.235.174.112] has joined #go-nuts 10:35 -!- ucasano [~ucasano@95.231.79.71] has quit [Ping timeout: 276 seconds] 10:39 -!- tasosos [~tasosos@178.128.136.40.dsl.dyn.forthnet.gr] has joined #go-nuts 10:57 -!- General13372 [~support@71-84-244-55.dhcp.gldl.ca.charter.com] has joined #go-nuts 10:59 -!- ucasano [~ucasano@95.231.79.71] has quit [Quit: ucasano] 11:00 -!- General1337 [~support@71-84-244-55.dhcp.gldl.ca.charter.com] has quit [Ping timeout: 240 seconds] 11:02 -!- ExtraSpice [~XtraSpice@88.118.32.225] has quit [Quit: Leaving] 11:04 -!- mbohun [~mbohun@202.124.73.208] has quit [Quit: Leaving] 11:08 -!- piyushmishra1 [~piyushmis@117.200.231.46] has joined #go-nuts 11:08 -!- piyushmishra1 [~piyushmis@117.200.231.46] has quit [Client Quit] 11:09 -!- piyushmishra [~piyushmis@117.200.231.143] has quit [Ping timeout: 240 seconds] 11:14 -!- dju [dju@fsf/member/dju] has quit [Read error: Connection reset by peer] 11:16 -!- ikaros [~ikaros@pD9E02645.dip.t-dialin.net] has joined #go-nuts 11:16 -!- scm [justme@d071102.adsl.hansenet.de] has quit [Ping timeout: 272 seconds] 11:17 -!- scm [justme@d018057.adsl.hansenet.de] has joined #go-nuts 11:19 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 11:35 -!- artefon [~thiago@189.107.218.226] has joined #go-nuts 11:47 -!- tvw [~tv@212.79.9.150] has quit [Ping timeout: 276 seconds] 11:58 -!- jmettraux [~jmettraux@PPPbm5391.kanagawa-ip.dti.ne.jp] has quit [Remote host closed the connection] 12:01 -!- piyushmishra [~piyushmis@117.200.230.170] has joined #go-nuts 12:03 -!- nuttyjj [~me@92.25.136.14] has joined #go-nuts 12:03 < nuttyjj> hi there folks 12:04 < nuttyjj> is go programs available for windows as i only see linux and os-x programs listed on http://golang.org/ 12:07 < photron> nuttyjj: the windows port is listed in the wiki http://code.google.com/p/go/wiki/WindowsPort and the wiki is linked from http://golang.org/ 12:08 -!- niemeyer [~niemeyer@200-102-194-252.pltce701.dsl.brasiltelecom.net.br] has joined #go-nuts 12:13 -!- tvw [~tv@212.79.9.150] has joined #go-nuts 12:16 -!- felipe [~felipe@my.nada.kth.se] has joined #go-nuts 12:16 -!- tux21b [~christoph@chello213047047175.3.graz.surfer.at] has joined #go-nuts 12:21 -!- ronnyy [~quassel@p4FF1CA30.dip.t-dialin.net] has quit [Remote host closed the connection] 12:21 -!- mafs [~maikeru@unaffiliated/maikeru/x-7708887] has joined #go-nuts 12:21 -!- ronnyy [~quassel@p4FF1CA30.dip.t-dialin.net] has joined #go-nuts 12:22 -!- skejoe [~skejoe@188.114.142.231] has joined #go-nuts 12:23 < skejoe> Hi. I have this code: http://www.pasteall.org/15392 12:23 < skejoe> And I get this error: particle.go:55: cannot use np (type *SimpleParticle) as type *Particle in assignment 12:24 < skejoe> (particle.go:55 is line 23 in paste) 12:24 < skejoe> I don 12:24 < skejoe> Any ideas why? 12:25 < MizardX> skejoe: Change `make([]*Particle, count)` to `make([]Particle, count)` 12:26 < MizardX> You don't need to use pointers to interface values 12:26 < MizardX> ... and the appropriate change in the ParticleSystem structure 12:28 < MizardX> The Particle inteface already matches *SimpleParticle, so *Particle would be something like **SimpleParticle. 12:29 -!- snearch [~snearch@f053009204.adsl.alicedsl.de] has joined #go-nuts 12:29 -!- tux21b [~christoph@chello213047047175.3.graz.surfer.at] has quit [Ping timeout: 265 seconds] 12:31 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has joined #go-nuts 12:33 < skejoe> MizardX: Ah great! Thanks. 12:33 -!- napsy [~luka@212.235.174.112] has quit [Ping timeout: 276 seconds] 12:35 -!- piyushmishra [~piyushmis@117.200.230.170] has quit [Ping timeout: 240 seconds] 12:35 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has joined #go-nuts 12:41 -!- luruke [~luruke@151.53.37.247] has quit [Quit: This computer has gone to sleep] 12:43 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has quit [Quit: Leaving] 12:55 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has quit [Remote host closed the connection] 12:56 -!- mattn_jp [~mattn_jp@180-144-132-193.eonet.ne.jp] has joined #go-nuts 12:58 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has joined #go-nuts 13:03 -!- tux21b [~christoph@chello213047047175.3.graz.surfer.at] has joined #go-nuts 13:05 -!- ericvh [~ericvh@32.97.110.63] has joined #go-nuts 13:06 -!- Shyde [~shyde@HSI-KBW-078-043-070-132.hsi4.kabel-badenwuerttemberg.de] has quit [Remote host closed the connection] 13:08 -!- artefon [~thiago@189.107.218.226] has quit [Ping timeout: 240 seconds] 13:10 -!- piyushmishra [~piyushmis@117.200.229.217] has joined #go-nuts 13:19 -!- piyushmishra [~piyushmis@117.200.229.217] has quit [Ping timeout: 255 seconds] 13:20 -!- artefon [~thiago@vpn-230.dcc.ufmg.br] has joined #go-nuts 13:22 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined #go-nuts 13:24 -!- skelterjohn [~jasmuth@c-76-116-182-139.hsd1.nj.comcast.net] has joined #go-nuts 13:25 -!- mattn_jp [~mattn_jp@180-144-132-193.eonet.ne.jp] has quit [Ping timeout: 245 seconds] 13:29 -!- mattn_jp [~mattn_jp@180-144-132-193.eonet.ne.jp] has joined #go-nuts 13:30 -!- mattn_jp [~mattn_jp@180-144-132-193.eonet.ne.jp] has left #go-nuts [] 13:30 -!- macroron [~ron@c-98-242-168-49.hsd1.fl.comcast.net] has joined #go-nuts 13:34 -!- napsy [~luka@212.235.174.112] has joined #go-nuts 13:34 -!- ronnyy [~quassel@p4FF1CA30.dip.t-dialin.net] has quit [Remote host closed the connection] 13:35 -!- ronnyy [~quassel@p4FF1CA30.dip.t-dialin.net] has joined #go-nuts 13:38 -!- gdhagger [~graham@66-234-41-91.nyc.cable.nyct.net] has joined #go-nuts 13:45 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 13:45 -!- artefon [~thiago@vpn-230.dcc.ufmg.br] has quit [Ping timeout: 265 seconds] 13:45 -!- ucasano [~ucasano@host153-182-static.227-95-b.business.telecomitalia.it] has joined #go-nuts 13:46 -!- piyushmishra [~piyushmis@117.200.228.183] has joined #go-nuts 13:50 -!- emmanueloga [~emmanuelo@201.253.203.71] has quit [Ping timeout: 265 seconds] 13:52 -!- piyushmishra [~piyushmis@117.200.228.183] has quit [Ping timeout: 276 seconds] 13:53 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit: This computer has gone to sleep] 13:56 -!- kergoth [~kergoth@ip24-251-170-95.ph.ph.cox.net] has joined #go-nuts 13:56 -!- piyushmishra [~piyushmis@117.200.228.85] has joined #go-nuts 13:57 -!- piyushmishra [~piyushmis@117.200.228.85] has quit [Client Quit] 13:59 -!- piyushmishra [~piyushmis@117.200.228.85] has joined #go-nuts 14:01 < piyushmishra> I use ubuntu linux i just installed go and its showed linux/386. How do I add /home/gotest/go/bin to my $PATH ?? 14:02 < chressie> piyushmishra: in bash: export PATH=$PATH:/home/gotest/go/bin 14:02 -!- artefon [~thiago@189.107.218.226] has joined #go-nuts 14:04 < piyushmishra> do I add that as one line? 14:05 < chressie> you can put it that line in your ~/.bashrc 14:06 -!- awidegreen [~quassel@62.176.237.78] has joined #go-nuts 14:06 < chressie> for example: echo 'export PATH=$PATH:/home/gotest/go/bin' >> ~/.bashrc 14:06 -!- mfoemmel2 [~mfoemmel@chml01.drwholdings.com] has joined #go-nuts 14:07 -!- mfoemmel2 [~mfoemmel@chml01.drwholdings.com] has quit [Client Quit] 14:07 -!- mfoemmel2 [~mfoemmel@chml01.drwholdings.com] has joined #go-nuts 14:08 -!- mfoemmel2 [~mfoemmel@chml01.drwholdings.com] has quit [Client Quit] 14:09 -!- mfoemmel [~mfoemmel@chml01.drwholdings.com] has quit [Remote host closed the connection] 14:09 -!- mfoemmel2 [~mfoemmel@chml01.drwholdings.com] has joined #go-nuts 14:09 -!- mfoemmel2 [~mfoemmel@chml01.drwholdings.com] has quit [Client Quit] 14:09 -!- mfoemmel [~mfoemmel@chml01.drwholdings.com] has joined #go-nuts 14:16 -!- piyushmishra [~piyushmis@117.200.228.85] has quit [Ping timeout: 265 seconds] 14:16 -!- gdhagger [~graham@66-234-41-91.nyc.cable.nyct.net] has quit [Ping timeout: 265 seconds] 14:17 -!- skelterjohn [~jasmuth@c-76-116-182-139.hsd1.nj.comcast.net] has quit [Quit: skelterjohn] 14:18 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Ping timeout: 240 seconds] 14:29 -!- navigator [~navigator@p54892233.dip.t-dialin.net] has joined #go-nuts 14:29 -!- gdhagger [~graham@170.200.168.24] has joined #go-nuts 14:30 -!- Venom_X [~pjacobs@74.61.90.217] has joined #go-nuts 14:30 -!- piyushmishra [~piyushmis@117.200.228.155] has joined #go-nuts 14:34 -!- ExtraSpice [~XtraSpice@88.118.32.225] has joined #go-nuts 14:54 -!- piyushmishra [~piyushmis@117.200.228.155] has quit [Read error: Connection reset by peer] 14:54 -!- skelterjohn [~jasmuth@c-76-116-182-139.hsd1.nj.comcast.net] has joined #go-nuts 14:58 -!- ikaros [~ikaros@pD9E02645.dip.t-dialin.net] has quit [Quit: Leave the magic to Houdini] 14:59 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts 15:07 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Quit: Leaving.] 15:10 -!- artefon [~thiago@189.107.218.226] has quit [Read error: Connection reset by peer] 15:11 -!- piyushmishra [~piyushmis@117.200.225.173] has joined #go-nuts 15:13 -!- idr [~idr@g225100237.adsl.alicedsl.de] has joined #go-nuts 15:15 -!- gdhagger [~graham@170.200.168.24] has quit [Ping timeout: 240 seconds] 15:19 -!- saschpe [~quassel@mgdb-4d0cfdcc.pool.mediaWays.net] has quit [Remote host closed the connection] 15:25 -!- skelterjohn [~jasmuth@c-76-116-182-139.hsd1.nj.comcast.net] has quit [Quit: skelterjohn] 15:30 -!- gdhagger [~graham@66-234-41-91.nyc.cable.nyct.net] has joined #go-nuts 15:30 -!- zerd [~quassel@2a01:608:ffff:3644:2e0:4dff:fe83:76ed] has quit [Read error: Operation timed out] 15:30 -!- zerd [~quassel@rex.zerd.net] has joined #go-nuts 15:31 -!- p4p4 [~P4p4@82.113.121.51] has joined #go-nuts 15:32 -!- idr [~idr@g225100237.adsl.alicedsl.de] has quit [Remote host closed the connection] 15:44 -!- rbetts [~rbetts@173-166-80-33-newengland.hfc.comcastbusiness.net] has joined #go-nuts 15:46 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has quit [Ping timeout: 240 seconds] 15:48 -!- piyushmishra [~piyushmis@117.200.225.173] has quit [Ping timeout: 240 seconds] 15:55 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has joined #go-nuts 15:58 -!- Esmil [~esmil@83.221.146.177] has joined #go-nuts 16:00 < Esmil> Say I have a slice s []byte and I want to set the first 4 bytes to the (little endian) representation of an int32. Is there an easy way to do that? 16:01 -!- ikaros [~ikaros@dslb-094-219-208-072.pools.arcor-ip.net] has joined #go-nuts 16:02 -!- piyushmishra [~piyushmis@117.200.228.213] has joined #go-nuts 16:06 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has quit [Quit: Leaving] 16:07 -!- virtualsue [~chatzilla@nat/cisco/x-qzvntbkdrkoxewpv] has quit [Ping timeout: 276 seconds] 16:11 < MaybeSo> Esmil: possibly of interest: setU32LE([]byte, uint32) in http://golang.org/src/pkg/exp/draw/x11/conn.go 16:13 < Esmil> MaybeSo: Ahh yes, thank you. That's sort of what I've done so far. I just hoped there was something simpler, since it is really just a memcpy 16:15 -!- mattikus [~mattikus@ip24-250-73-154.br.br.cox.net] has joined #go-nuts 16:16 -!- Esmil [~esmil@83.221.146.177] has quit [Quit: leaving] 16:17 -!- skelterjohn [~jasmuth@c-71-230-156-50.hsd1.nj.comcast.net] has joined #go-nuts 16:17 -!- skejoe [~skejoe@188.114.142.231] has quit [Quit: leaving] 16:23 -!- skelterjohn [~jasmuth@c-71-230-156-50.hsd1.nj.comcast.net] has quit [Quit: skelterjohn] 16:24 -!- femtoo [~femto@95-89-250-57-dynip.superkabel.de] has joined #go-nuts 16:25 -!- skelterjohn [~jasmuth@c-71-230-156-50.hsd1.nj.comcast.net] has joined #go-nuts 16:26 -!- skelterjohn [~jasmuth@c-71-230-156-50.hsd1.nj.comcast.net] has quit [Client Quit] 16:26 -!- nuttyjj [~me@92.25.136.14] has quit [] 16:40 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts 16:40 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Ping timeout: 272 seconds] 16:41 < madari> hmmm.. is type switching expensive? 16:42 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts 16:44 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has quit [Quit: Ex-Chat] 16:44 < MaybeSo> madari: this thread was pretty recent and indicates it is cheap: http://groups.google.vu/group/golang-nuts/browse_thread/thread/855849003c487044 16:45 -!- tux21b [~christoph@chello213047047175.3.graz.surfer.at] has quit [Ping timeout: 265 seconds] 16:47 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Remote host closed the connection] 16:51 -!- ucasano [~ucasano@host153-182-static.227-95-b.business.telecomitalia.it] has quit [Quit: ucasano] 16:53 -!- tvw [~tv@212.79.9.150] has quit [Remote host closed the connection] 16:54 < madari> MaybeSo: thank you 16:58 -!- skelterjohn [~jasmuth@c-71-230-156-50.hsd1.nj.comcast.net] has joined #go-nuts 16:59 -!- Erusavion [~josh@ws247-181.wireless.dynamic.msstate.edu] has joined #go-nuts 17:08 -!- tux21b [~christoph@chello213047047175.3.graz.surfer.at] has joined #go-nuts 17:09 -!- Fish [~Fish@9fans.fr] has joined #go-nuts 17:10 -!- Erusavion [~josh@ws247-181.wireless.dynamic.msstate.edu] has quit [Ping timeout: 240 seconds] 17:11 < nsf> http://nsf.github.com/images/goview.swf <- shows upcoming gocode features, basically gocode will be able to track semantic information about each identifier in the code and do smart things with it (like renaming, etc.) 17:11 < nsf> :P 17:14 -!- piyushmishra [~piyushmis@117.200.228.213] has quit [Ping timeout: 255 seconds] 17:15 < nsf> and on this screencast I wrote a simple app that highlights separate entities of that semantic map thing, for example variable 'f' in a function will not get confused with variable 'f' in another function or in a global scope, etc. 17:17 < exch> nice 17:17 < madari> nsf: you're awesome 17:18 < nsf> and mainly I'm targetting renaming feature, but who knows what else you can do with that 17:18 < nsf> targeting* 17:18 < nsf> madari: :D 17:19 -!- mattikus [~mattikus@ip24-250-73-154.br.br.cox.net] has quit [Quit: Computer has gone to sleep.] 17:20 -!- kizzo [~kizzo@c-67-188-68-8.hsd1.ca.comcast.net] has joined #go-nuts 17:21 * exch works on his web ui app framework thingy for Go 17:21 < nsf> hehe, nice, but it will use javascript for the front end, right? 17:21 < exch> yes 17:21 * nsf wants to get rid of javascript 17:22 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has quit [Remote host closed the connection] 17:22 < nsf> hopefully things like nativeclient will make that moment closer 17:22 < exch> I cba to deal with libs like gtk or QT. the only way to get at least similar behaviour is stuff like jquery :) 17:23 -!- sacho [~sacho@213.91.244.15] has quit [Remote host closed the connection] 17:23 < exch> the Go part is just the backend/server of the app. It functions like a standalone webservice of sorts 17:23 < nsf> I see 17:24 -!- ronnyy [~quassel@p4FF1CA30.dip.t-dialin.net] has quit [Remote host closed the connection] 17:26 -!- tux21b [~christoph@chello213047047175.3.graz.surfer.at] has quit [Read error: Connection timed out] 17:26 < exch> The webui builder does a bit more though. It auto-generates most of the browser content and compresses/packs it all into the most efficient form possible. for javascript that means all .js files merged into 1 and removing all whitespace + changing long function/var names into short ones. Sort of an obfuscation thing. Same for css files. And any images that are used are packed into a single image file using some clever computational origami tricks 17:27 < nsf> interesting 17:27 < nsf> so you can write web apps without knowing js? 17:27 < nsf> or it's not true? :) 17:27 < plexdev> http://is.gd/eRMAG by [Robert Griesemer] in go/doc/ -- go spec clarification: arrays must be addressable to be sliceable 17:28 < exch> ideally, it would be nice to have a go -> js translator so that becomes possible. 17:28 < nsf> well it's impossible 17:28 < nsf> but you can implement a translator for the subset of go 17:28 < nsf> at least 17:28 < exch> I suppose I could add that, so you don't even have to touch js at all 17:32 < exch> I have no idea how practical this will turn out to be. I'm just kinda making it up as I go along :p 17:33 < nsf> the same for gocode :) 17:33 < nsf> but I do a lot of refactorings because of that :( 17:33 < nsf> hopefully soon I will have tools to do that more quickly 17:33 < nsf> :D 17:33 < exch> hence the renaming app? :) 17:33 < nsf> no, I haven't renamed any app 17:34 < nsf> goview is a demo app, just to show the features of gocode :) 17:34 < exch> ah 17:34 < nsf> evetually renaming will be integrated in the vim as ususal 17:34 < nsf> usual* 17:35 < nsf> I mean renaming feature of the gocode 17:35 < exch> mm I just realized that another benefit of the web-ui approach is the ability to run the app on a public IP, effectively making the application a distributed tool. Run it on a server and you can (theoretically) use it anywhere you have a browser 17:35 -!- enherit [~enherit@cpe-98-149-170-48.socal.res.rr.com] has joined #go-nuts 17:35 < nsf> hehe 17:35 < nsf> true 17:35 < nickaugust> can a function return a map by value or just by pointer? 17:35 < nsf> nickaugust: map is a pointer 17:35 < exch> maps and slices are always references to the underlying datastructure 17:36 < nsf> it just doesn't look like one 17:36 < nickaugust> ok thanks 17:36 < nsf> sizeof(map type) == 4 17:36 < nsf> it's really a pointer 17:36 < nsf> sizeof(slice type) == 12 17:36 < nsf> pointer to data + len + capacity 17:37 < nickaugust> so how do i declare my function? im trying to do this func Index(model string, key string, fields []string) index map [string] string { 17:37 < nickaugust> but that return section obviously isnt right 17:37 < nsf> if you want to name the return value 17:37 < nsf> you should do that this way: 17:37 < nsf> func Index(model string, key string, fields []string) (index map [string] string) { 17:39 < nickaugust> oh i forgot the () :/ 17:39 < nickaugust> thanks man 17:40 < nickaugust> oh wait thats not what i meant.. i meant: 17:41 < nickaugust> func Index(model struct, key string, fields []string) (index map [string] string) { 17:41 < exch> btw, sizeof(pointertype) is 8 on 64 bit systems 17:41 < nickaugust> and the error is index.go:9: syntax error: unexpected comma, expecting { 17:41 < nickaugust> can i not pass a struct like that? 17:41 < nickaugust> i assumed it was the map part throwing the error 17:42 < exch> 'struct' is not a valid type name I think 17:42 < nsf> exch: yep 17:42 < nickaugust> see.. i was trying to pass it as an interface 17:42 < nickaugust> then use the reflect package to work with it as a struct 17:43 < exch> then declare the parameter as 'model interface{}' 17:43 < nickaugust> hmm.. so i cant pass a struct like that? 17:43 -!- Venom_X [~pjacobs@74.61.90.217] has quit [Quit: Venom_X] 17:44 < nickaugust> exch: then i was trying to do model.(reflect.StructType) but it didnt like that because i have methods attached to the struct 17:44 < nickaugust> "index.go:25: impossible type assertion: model (type Indexable) cannot have dynamic type reflect.StructType (missing ShowDirectoryName method)" 17:45 < nickaugust> because if i pass it as an interface i cant access the properties of the struct without a type assertion 17:45 < nickaugust> nsf we kinda talked about this the other day 17:45 < exch> you can with the reflect package 17:45 < exch> it's a hassle though 17:46 < nickaugust> yeah... so if my struct has methods attached to it should it be accessed as model.(reflect.ComplexType)? i havent found much documentation on taht 17:49 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts 17:50 < exch> To get references to specific methods, you don't need to cast it to a StructValue if I remember correctly. 17:50 < exch> a simple reflect.Type instance has Method(int) and NumMethod() functions you can use to access an object's methods 17:51 -!- snearch [~snearch@f053009204.adsl.alicedsl.de] has quit [Quit: Verlassend] 17:51 < niemeyer> Yeah, which mostly work, except in the case of bug #451, which is freaking old and I can't get anyone to fix it. 17:52 < nickaugust> ok let me spell out what im trying to do.. maybe im going about it wrong. im tyring to index a bunch of json files. each 'type' of file has a model struct, directory, for example contacts/, and an index file (contacts.index). so what i want to do is have a function Index() that takes three options (model struct, key sting, fields []string). it looks at model.ShowDirectoryName() and indexes all 17:52 < nickaugust> the fields in fields []string by key string. then returns the index as a map. 17:52 < niemeyer> I'll end up digging in and fixing it myself, but it's a bit frustrating that such obvious bugs are staying alive for so long. 17:53 < exch> nickaugust: why don't you just pass model as the type that has the ShowDirectoryName() then? 17:54 < nickaugust> so i was going to pass model as an interface{} instead of a struct then use the reflect package to do the type assertion (reflect.StructType).. but it wont take it since i have additional methods on the model type 17:54 < nickaugust> exch: the interface{} you mean? 17:54 < nickaugust> exch: or the &contact struct 17:56 < nickaugust> i want it to work for different struct types 17:56 -!- sacho [~sacho@79-100-63-178.btc-net.bg] has joined #go-nuts 17:56 < exch> does 'model' define that particular method? You posted earlier that it is of type Indexable.. so why not define the parameter as 'model Indexable'? 17:57 < exch> It's easier to define an interface for it then, that exposes the appropriate methods you want access to. All the structs will have to implement them though 17:57 < nickaugust> Indexable is the interface... that has the methods ShowDirectoryName() and ShowIndexFileName() 17:57 < exch> that should work then 17:57 < nickaugust> which is fine.. but then to do the type assertion i need to know ahead of time what type it is 17:58 < exch> why? you can just call model.ShowDirectoryName() 17:58 < nickaugust> to access the fields of that struct 17:58 < nickaugust> so i end up doing this thing 17:58 < nickaugust> switch tt := model.(type) { 17:59 < exch> ah, you need field access. Either expose thse fields through interface methods, or you're stuck with that type switch 17:59 < nickaugust> but then ive got to know the acceptable types before hand so i can do the case *Contact 17:59 < nickaugust> yeah... 17:59 < nickaugust> but the different types, say Contact, Location, ect dont have the the same field names 18:00 < plexdev> http://is.gd/eRPpd by [Scott Lawrence] in 2 subdirs of go/ -- goinstall: added -a flag to mean "all remote packages" 18:00 < exch> I that case I would really go for separate Index() implementations for each of the possible struct types 18:00 < exch> it's just too much of a hassle to generalize that 18:00 < nickaugust> so that led me to the reflect package... which ive only been working with for an hour or so but im not sure how i feel about it so far 18:01 < niemeyer> nickaugust: Feels bad.. if you need to access the fields, then a) Don't use the interface, or b) Expose the fields through the interface 18:02 < niemeyer> nickaugust: reflect is useful mostly when you're doing meta-programming.. your case feels like a matter of organization only 18:02 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts 18:02 < exch> so far reflect has only been necessary for me in my script VM 18:03 < nickaugust> what do you mean by meta-programming? i want to just define my data models and have my indexes for that model created dynamically 18:03 < nickaugust> do you think its possible with the reflect package? 18:03 -!- tux21b_ [~christoph@chello213047047175.3.graz.surfer.at] has joined #go-nuts 18:04 -!- antonyp [~antony@78.32.134.243] has joined #go-nuts 18:04 < exch> possible, yes. But probably not very efficient. Have a single general Index() function that takes model as an interface{}. Use a type switch to see which specific struct you got and then delegate to a IndexContact() or IndexLocation() function 18:05 < exch> a lot faster and a lot less hassle :) 18:06 < nickaugust> yeah thats how i do it now.. but then every time i add a new data model i have to copy and past the IndexXType() funciton and just s/search/replace the names.. .seems silly 18:06 < nickaugust> they all take the model, key, and fields arguments 18:06 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Remote host closed the connection] 18:08 < nickaugust> im going to try the reflect package using the struct without the interface methods and add the directory as a field of the struct rather than a method and see where that gets me 18:08 < nickaugust> maybe a __directory__ field... or is that too pythony? ;) 18:09 < niemeyer> nickaugust: Seems silly, and pretty weird actually 18:10 < nickaugust> heh i agree 18:10 < niemeyer> nickaugust: Why do you have several types with the same fields and the same methods? 18:10 < nickaugust> different fields same methods 18:10 < niemeyer> nickaugust: If they are different fields, then you're not simply search/replacing 18:10 < nickaugust> the methods are only ShowDirectoryName() and ShowIndexFile() 18:10 < niemeyer> nickaugust: and you need independent logic for each one of them 18:11 < nickaugust> the field names are passed as arguments 18:11 < nickaugust> no.. its all just take a list of fields and index them 18:12 < niemeyer> nickaugust: Yeah, seems like a weird approach to me indeed 18:12 < nickaugust> i know if i pass &contact i want to index contact.name and contact.company 18:13 < nickaugust> the point is i want to make the code reusable for future data models 18:13 < nickaugust> i know it seems wierd... im not really sure its going to work. 18:14 < niemeyer> nickaugust: You're having difficulties because you're passing field information into the function. Rather than trying to abstract the access to that information, you're pushing in knowledge that the function can't handle without introspection. 18:14 < niemeyer> nickaugust: It may work, I'd just not do it that way. 18:15 < nickaugust> niemeyer: how else would the index function konw what fields i want to index? 18:15 < nickaugust> if i dont pass them 18:16 < niemeyer> nickaugust: Why does it have to know the *fields*? 18:16 < plexdev> http://is.gd/eRQwh by [Russ Cox] in go/src/cmd/gc/ -- gc: fix spurious syntax error 18:16 < nickaugust> because each struct has a number of different fields.. not all of which should be indexed 18:17 < niemeyer> nickaugust: Yes, and who knows which fields should be indexed? 18:17 < nickaugust> me 18:17 < niemeyer> nickaugust: That's a good start for sure. Where is that information encoded in your code? 18:17 -!- mattikus [~mattikus@ip24-250-73-154.br.br.cox.net] has joined #go-nuts 18:18 * exch is confus 18:18 < nickaugust> niemeyer: hadnt really thought it out that far to be honest 18:18 < nickaugust> probably broken out somewhere though 18:19 < nickaugust> not sure how the file structure will look.. but basically i want to define my data models in a separate file and then some how designate which should be indexed 18:20 < niemeyer> nickaugust: Yes, someone will have to tell Index which fields must be indexed, and that someone probably sits within the implementation of these types necessarily, and have access to the fields. 18:20 -!- skelterjohn [~jasmuth@c-71-230-156-50.hsd1.nj.comcast.net] has quit [Quit: skelterjohn] 18:21 < niemeyer> nickaugust: So don't pass field names to a generic function, or you're unnecessarily delegating access to a generic function, thus creating a problem that you shouldn't have in the first place. 18:21 < nickaugust> niemeyer: thats an interesting point. let me mull that over for a bit. 18:22 < nickaugust> because the index functions will be broken out anyway 18:22 < niemeyer> Right 18:22 < nickaugust> brb 18:24 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3] 18:27 -!- fps [~user@p54994A9F.dip.t-dialin.net] has joined #go-nuts 18:31 -!- fps [~user@p54994A9F.dip.t-dialin.net] has quit [Remote host closed the connection] 18:31 -!- fps [~user@p54994A9F.dip.t-dialin.net] has joined #go-nuts 18:35 < plexdev> http://is.gd/eRS2i by [Russ Cox] in go/src/pkg/runtime/ -- runtime: add GOOS, GOARCH; fix FuncLine 18:35 < plexdev> http://is.gd/eRS2n by [Russ Cox] in 3 subdirs of go/ -- build: create bin and pkg directories as needed; drop from hg 18:35 < plexdev> http://is.gd/eRS2S by [Russ Cox] in go/src/pkg/http/ -- http: add Date to server, Last-Modified and If-Modified-Since to file server 18:35 < plexdev> http://is.gd/eRS3b by [Russ Cox] in go/src/pkg/time/ -- time: do not crash in String on nil Time 18:35 < plexdev> http://is.gd/eRS3w by [Robert Griesemer] in go/src/pkg/exp/iterable/ -- exp/iterables: fix typo 18:35 < plexdev> http://is.gd/eRS3Q by [Russ Cox] in go/src/cmd/gc/ -- gc: appease bison version running on FreeBSD builder 18:38 -!- Fish [~Fish@9fans.fr] has quit [Read error: Connection reset by peer] 18:38 -!- Fish [~Fish@9fans.fr] has joined #go-nuts 18:39 -!- fps [~user@p54994A9F.dip.t-dialin.net] has left #go-nuts [] 18:44 -!- aguai [~aguai@li74-37.members.linode.com] has joined #go-nuts 18:46 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts 18:54 -!- rbetts [~rbetts@173-166-80-33-newengland.hfc.comcastbusiness.net] has quit [Quit: rbetts] 18:56 < exch> ugh. Microsoft has managed to obtain a patent on 'shutting down a operating system'. And it exlpicitely mentions the applicability to linux and OSX in it 18:56 < exch> http://www.conceivablytech.com/2530/products/microsoft-patents-operating-system-shutdown/ 18:59 < nickaugust> they should have patented needless restarts 19:00 < Rennex> :D 19:00 < niemeyer> Excellent. The more ridiculous patents successfully obtained, the more it is clear that it's a broken system. 19:03 -!- cinghialino [~Marvin@dynamic-adsl-94-36-177-247.clienti.tiscali.it] has quit [Quit: E se abbasso questa leva che succ...] 19:07 -!- rbetts [~rbetts@173-166-80-33-newengland.hfc.comcastbusiness.net] has joined #go-nuts 19:07 -!- rbetts [~rbetts@173-166-80-33-newengland.hfc.comcastbusiness.net] has quit [Client Quit] 19:08 -!- skelterjohn [~jasmuth@c-71-230-156-50.hsd1.nj.comcast.net] has joined #go-nuts 19:16 -!- rbetts [~rbetts@173-166-80-33-newengland.hfc.comcastbusiness.net] has joined #go-nuts 19:16 -!- g0bl1n [~anonymous@a213-22-18-58.cpe.netcabo.pt] has joined #go-nuts 19:28 -!- ukai [~ukai@nat/google/x-fbugtudrdysntokf] has quit [Ping timeout: 276 seconds] 19:31 -!- ukai [~ukai@nat/google/x-fbeiwukpypnopkrz] has joined #go-nuts 19:33 -!- i__ [~none@unaffiliated/i--/x-3618442] has quit [Quit: leaving] 19:33 -!- i__ [~none@unaffiliated/i--/x-3618442] has joined #go-nuts 19:40 -!- artefon [~thiagon@150.164.2.20] has joined #go-nuts 19:41 -!- drhodes_ [~none@209-20-72-61.slicehost.net] has joined #go-nuts 19:41 -!- homa_ran1 [~erice@hmsvelociraptor.csail.mit.edu] has joined #go-nuts 19:41 -!- forgey_ [brook@seahawk.ript.net] has joined #go-nuts 19:41 -!- cbeck_ [ckolbeck@chandra.cs.pdx.edu] has joined #go-nuts 19:41 -!- tsung_ [~jon@112.104.53.151] has joined #go-nuts 19:41 -!- impl_ [impl@atheme/member/impl] has joined #go-nuts 19:41 -!- shawn__ [~shawn@208-78-98-92.slicehost.net] has joined #go-nuts 19:45 -!- rotorooter [~roto@64.79.202.154] has quit [Excess Flood] 19:45 -!- cbeck [ckolbeck@chandra.cs.pdx.edu] has quit [Remote host closed the connection] 19:45 -!- homa_rano [~erice@hmsvelociraptor.csail.mit.edu] has quit [Remote host closed the connection] 19:45 -!- drhodes [~none@209-20-72-61.slicehost.net] has quit [Remote host closed the connection] 19:45 -!- forgey [brook@seahawk.ript.net] has quit [Remote host closed the connection] 19:45 -!- tsung [~jon@112.104.53.151] has quit [Remote host closed the connection] 19:45 -!- shawn_ [~shawn@208-78-98-92.slicehost.net] has quit [Remote host closed the connection] 19:45 -!- impl [impl@atheme/member/impl] has quit [Remote host closed the connection] 19:45 -!- rotorooter [~roto@64.79.202.154] has joined #go-nuts 19:48 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 19:50 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has joined #go-nuts 20:03 -!- femtoo [~femto@95-89-250-57-dynip.superkabel.de] has quit [Ping timeout: 265 seconds] 20:04 -!- g0bl1n [~anonymous@a213-22-18-58.cpe.netcabo.pt] has quit [Quit: g0bl1n] 20:08 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has joined #go-nuts 20:13 -!- artefon [~thiagon@150.164.2.20] has quit [Quit: Leaving] 20:19 -!- antonyp [~antony@78.32.134.243] has quit [Quit: antonyp] 20:22 -!- antonyp [~antony@78.32.134.243] has joined #go-nuts 20:26 -!- antonyp [~antony@78.32.134.243] has quit [Client Quit] 20:29 -!- tensorpudding [~user@99.56.168.81] has joined #go-nuts 20:29 -!- macroron [~ron@c-98-242-168-49.hsd1.fl.comcast.net] has quit [Ping timeout: 265 seconds] 20:30 -!- macroron [~ron@c-98-242-168-49.hsd1.fl.comcast.net] has joined #go-nuts 20:30 -!- p4p4 [~P4p4@82.113.121.51] has quit [Remote host closed the connection] 20:37 -!- macroron [~ron@c-98-242-168-49.hsd1.fl.comcast.net] has quit [Quit: Leaving] 20:39 -!- dacc [~dan@D-128-95-10-226.dhcp4.washington.edu] has joined #go-nuts 20:39 -!- dacc_ [~dan@D-128-95-10-226.dhcp4.washington.edu] has joined #go-nuts 20:39 -!- dacc [~dan@D-128-95-10-226.dhcp4.washington.edu] has quit [Read error: Connection reset by peer] 20:45 -!- Fish [~Fish@9fans.fr] has quit [Read error: Connection reset by peer] 20:51 -!- quag [~quag@121-98-81-61.bitstream.orcon.net.nz] has quit [Remote host closed the connection] 20:52 -!- quag [~quag@121-98-81-61.bitstream.orcon.net.nz] has joined #go-nuts 20:52 < dacc> how do goroutines compare to asynchronous IO as a way to do things concurrently? 20:52 < dacc> besides being truly parallel i suppose 20:56 < nbjoerg> if you mean "non-blocking IO with multiplexing": it tends to be much simpler as a programming model 20:56 < nbjoerg> note that the socket abstraction is (IIRC) non-blocking internally 20:56 < dacc> ah sorry, that's what i meant 20:57 < nbjoerg> and non-blocking IO is not really a model for concurrent programming 20:57 < dacc> .. but for event driven programming, which isn't considered concurrent? 20:58 -!- Venom_X [~pjacobs@74.61.90.217] has joined #go-nuts 21:00 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has joined #go-nuts 21:01 < nbjoerg> one of the core ideas why non-blocking IO is thought to be faster than threading is that it avoids expensive serialisation 21:01 < nbjoerg> by not being concurrent in first place 21:01 -!- tasosos [~tasosos@178.128.136.40.dsl.dyn.forthnet.gr] has quit [Remote host closed the connection] 21:02 < dacc> ah ok 21:02 < nbjoerg> due to its nature, Go can kill most of the need for non-blocking IO 21:03 < nbjoerg> if you were willing to bump up gomaxproc and changed a few low level parts 21:03 < dacc> i guess that's what i'm trying to understand 21:03 < nbjoerg> the second reason people use event driven programming is because the classic thread libraries waste huge amounts of address space 21:03 < nbjoerg> which (at least for 32bit systems) is a killer 21:04 < nbjoerg> segmented stacks avoid the issue 21:07 -!- cbeck_ [ckolbeck@chandra.cs.pdx.edu] has left #go-nuts [] 21:07 -!- cbeck [ckolbeck@chandra.cs.pdx.edu] has joined #go-nuts 21:12 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Read error: Connection reset by peer] 21:12 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Quit: slashus2] 21:15 < nsf> I can say one thing for sure 21:15 < nsf> goroutines are much more simpler 21:15 < nsf> than any kind of library for event-based programming 21:16 < nsf> be it libev, libevent, glib or direct kernel stuff usage (select, epoll, linux's timerfd, etc.) 21:16 < nsf> in go few goroutines, channels and select statement solve all the problems :) 21:17 -!- DerHorst [~Horst@e176123187.adsl.alicedsl.de] has joined #go-nuts 21:17 < nsf> maybe not as fast though 21:17 < nsf> I mean the performance isn't as fast 21:17 < dacc> *nod* 21:18 < nsf> but who cares :) 21:18 < dacc> also it seems like you can take advantage of more cores easily, whereas event-based stuff is more single process, ya? 21:18 < Namegduf> I don't think goroutines replace mutexes with high contention and lots of little locks without huge performance degredation 21:19 < Namegduf> But the beauty is that you can then optimise by switching to a mutex for that thing while keeping everything that can be concurrent, concurrent. 21:19 < nsf> Namegduf: it's true, but the resulting code looks much simpler 21:20 < Namegduf> nsf: By massive, I mean "it isn't even using one core completely because it is spending all its time switching goroutines" 21:20 < nsf> it depends 21:20 < Namegduf> nsf: I don't think they're a be-all and end all, but they're very nice. They beat select/epoll easily. 21:20 < nsf> but for most apps you're right 21:25 < nsf> also sometimes I think that goroutines are too easy to use (and therefore to misuse) 21:25 < nsf> as well as channels 21:25 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts 21:25 < nsf> both come in one pack 21:28 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Remote host closed the connection] 21:28 < Namegduf> What I did originally was create types whose methods secretly sent a message to a goroutine for that instance/package 21:28 < Namegduf> Which did the job 21:29 < Namegduf> In order to implement them as concurrency safe (the situation calls for concurrency safety) 21:29 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts 21:29 < Namegduf> What I'm realising is going to be a huge optimisation is using a mutex there instead, because most of the operations are very short. 21:30 < nsf> yep 21:31 < nsf> but I think channels will eventually be implemented as lockless queues or something 21:31 < nsf> Java has a lot of experience dealing with that kind of issues 21:32 < nsf> (e.g. implementing primitives for highly parallel systems) 21:33 < nsf> but yeah currently and probably always 21:33 < nsf> using mutex in simple cases will be faster 21:34 < nsf> I'm looking at chan.c right now 21:34 < nsf> it has lots of stuff there :) 21:36 < nbjoerg> I had to start dealing with that for the NetBSD port 21:36 < nbjoerg> because the low level kernel primitives work quite different from Linux's futex 21:37 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has quit [Ping timeout: 600 seconds] 21:39 * nsf isn't familiar with NetBSD at all 21:40 < nbjoerg> the netbsd approach is lwp centric, not pointer centric 21:40 < nsf> :) 21:41 < nbjoerg> e.g. waking up a waiter is done by explicitly telling the lwp id 21:41 -!- tautologico [~notreilly@189.71.21.174] has joined #go-nuts 21:42 -!- gdhagger [~graham@66-234-41-91.nyc.cable.nyct.net] has quit [Quit: Ex-Chat] 21:42 < nbjoerg> so I essentially have a non-locking stack of waiters for lock/unlock 21:42 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit: Verlassend] 21:42 < nsf> I see 21:43 < nbjoerg> lockless queues are a lot more nasty to implement if you can't limit the queue size 21:45 * nsf will leave to guys who know what they're doing :) 21:46 -!- awidegreen [~quassel@62.176.237.78] has quit [Remote host closed the connection] 21:49 -!- kizzo [~kizzo@c-67-188-68-8.hsd1.ca.comcast.net] has left #go-nuts [] 21:57 -!- ikaros [~ikaros@dslb-094-219-208-072.pools.arcor-ip.net] has quit [Quit: Leave the magic to Houdini] 21:57 -!- ericvh_ [~ericvh@32.97.110.64] has joined #go-nuts 21:57 -!- ericvh_ [~ericvh@32.97.110.64] has quit [Client Quit] 22:00 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Remote host closed the connection] 22:00 -!- ericvh [~ericvh@32.97.110.63] has quit [Ping timeout: 255 seconds] 22:01 -!- tautologico [~notreilly@189.71.21.174] has quit [Remote host closed the connection] 22:01 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts 22:02 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Read error: Connection reset by peer] 22:03 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts 22:04 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Remote host closed the connection] 22:06 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts 22:07 -!- antonyp [~antony@78.32.134.243] has joined #go-nuts 22:07 -!- boscop [~boscop@g227134065.adsl.alicedsl.de] has quit [Ping timeout: 245 seconds] 22:08 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Remote host closed the connection] 22:08 -!- navigator [~navigator@p54892233.dip.t-dialin.net] has quit [Quit: WeeChat 0.3.3] 22:10 -!- antonyp [~antony@78.32.134.243] has quit [Client Quit] 22:11 -!- eeyore [~acts_as@208.236.105.27] has left #go-nuts [] 22:18 -!- boscop [~boscop@g225209192.adsl.alicedsl.de] has joined #go-nuts 22:19 -!- zerd_ [~quassel@2a01:608:ffff:3644:2e0:4dff:fe83:76ed] has joined #go-nuts 22:20 -!- zerd [~quassel@rex.zerd.net] has quit [Ping timeout: 245 seconds] 22:21 -!- antonyp [~antony@78.32.134.243] has joined #go-nuts 22:23 -!- hhh [~hhh@p1120-ipbf2505souka.saitama.ocn.ne.jp] has joined #go-nuts 22:30 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has quit [Remote host closed the connection] 22:38 -!- antonyp [~antony@78.32.134.243] has quit [Quit: antonyp] 22:40 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined #go-nuts 22:45 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org] 22:57 -!- General1337 [~support@71-84-244-55.dhcp.gldl.ca.charter.com] has joined #go-nuts 23:00 -!- General13372 [~support@71-84-244-55.dhcp.gldl.ca.charter.com] has quit [Ping timeout: 255 seconds] 23:07 -!- photron [~photron@port-92-201-70-214.dynamic.qsc.de] has quit [Ping timeout: 240 seconds] 23:13 < nsf> um.. I have an interface dilemma, what's better? a) implement renaming completely on the server side, 'gocode rename' won't return anything, editor will have to reload changed files 23:13 < nsf> b) return the list of things which are subject of renaming and let editor do the stuff 23:14 < nsf> cons for a: editor will display ugly "files is changed do you want me to reload" message 23:14 < nsf> pros for a: don't need to do anything in editor's script language 23:14 < nsf> cons for b: need to implement that stuff in vim script and in emacs script etc.. for each editor 23:15 < nsf> pros for b: renaming process can be presented nicely to a user 23:15 < nsf> :\ 23:16 * nsf is not able to decide 23:17 < dacc> as someone not doing the work, i vote "b" =P 23:17 < nsf> well, I think it's better too, but currently it's like 51% vs. 49% :) 23:18 < nsf> I guess in long term (b) is better 23:18 < nsf> thanks :D 23:19 < dacc> i guess just factor as much of the code out of the editor-specific env as possible and be able to do both(?) =) 23:21 < nsf> I'm more concerned about an ability to present things nicely to the user (aka good GUI) 23:21 < nsf> and apparently the editor is the side which can do that 23:21 < nsf> or can't (like in 'vim' case :D) 23:21 -!- jmettraux [~jmettraux@211.19.55.177] has joined #go-nuts 23:22 -!- hhh [~hhh@p1120-ipbf2505souka.saitama.ocn.ne.jp] has left #go-nuts [] 23:23 -!- scm [justme@d018057.adsl.hansenet.de] has quit [Ping timeout: 240 seconds] 23:23 < nsf> I'll definitely do (b) 23:23 < nsf> also, another question 23:24 < nsf> but more like a techincal one 23:24 -!- scm [justme@d038154.adsl.hansenet.de] has joined #go-nuts 23:24 -!- hoshino [~hhh@p1120-ipbf2505souka.saitama.ocn.ne.jp] has joined #go-nuts 23:24 < nsf> should I allow user to rename methods and fields and types which come from an imported package? 23:24 < nsf> it's a hard choice because: 23:25 < nsf> a) it's nice to have if someone changes an interface of his library, but 23:25 < nsf> b) semantic layer does precise inference of all objects in the code, and once you've renamed something like that, it will not be possible to infer all objects correctly again 23:25 < nsf> the correct update process will look that way: 23:26 < nsf> 1. download old library package (.a file) 23:26 < nsf> 2. rename things 23:26 < nsf> 3. install new package 23:26 < nsf> which is kind of ugly 23:26 < nsf> so.. I think disallowing renaming of foreign entities is a good idea 23:27 < nsf> or not.. 23:27 < nsf> :D 23:27 -!- drhodes_ [~none@209-20-72-61.slicehost.net] has quit [Quit: leaving] 23:28 < nsf> well, techinally I guess it is possible to do 23:28 < nsf> by mainaining some kind of a list of changes 23:28 < nsf> and after these changes infer all objects using that information 23:28 < nsf> but.. 23:29 < nsf> :( 23:29 < nsf> hard decision 23:29 -!- drhodes [~none@209-20-72-61.slicehost.net] has joined #go-nuts 23:31 -!- skelterjohn [~jasmuth@c-71-230-156-50.hsd1.nj.comcast.net] has quit [Quit: skelterjohn] 23:33 -!- hoshino [~hhh@p1120-ipbf2505souka.saitama.ocn.ne.jp] has quit [Quit: Leaving...] 23:33 -!- hoshino [~hhh@p1120-ipbf2505souka.saitama.ocn.ne.jp] has joined #go-nuts 23:34 -!- _Horst_ [~Horst@e176105199.adsl.alicedsl.de] has joined #go-nuts 23:35 < nsf> uh.. now let's see how it is possible to present that renaming stuff in vim to the end user 23:38 -!- DerHorst [~Horst@e176123187.adsl.alicedsl.de] has quit [Ping timeout: 245 seconds] 23:41 -!- g0bl1n [~anonymous@a213-22-18-58.cpe.netcabo.pt] has joined #go-nuts 23:43 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts 23:56 -!- hoshino [~hhh@p1120-ipbf2505souka.saitama.ocn.ne.jp] has quit [Quit: Leaving...] 23:56 -!- ukai [~ukai@nat/google/x-fbeiwukpypnopkrz] has quit [Ping timeout: 240 seconds] 23:58 -!- ukai [~ukai@nat/google/x-wfhuzpzuezcooygw] has joined #go-nuts 23:58 -!- mbohun [~mbohun@202.124.74.134] has joined #go-nuts 23:59 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts --- Log closed Fri Sep 03 00:00:05 2010