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

--- Log opened Wed Jul 13 00:00:02 2011
--- Day changed Wed Jul 13 2011
00:00 -!- Niedar [~bleh@ip68-99-166-222.hr.hr.cox.net] has quit [Read error:
Connection reset by peer]
00:00 -!- Niedar [~bleh@ip68-99-166-222.hr.hr.cox.net] has joined #go-nuts
00:00 < jrabbit> Anyone hacked on camlistore enough to help brad_ here
debug?
00:04 < kevlar_work> anyone have a simple way to duplicate a map, or is a
for k,v := range { copied[k]=v } the preferred way?
00:04 < crest> kevlar_work: does copy() support maps?
00:04 <+iant> the for loop is the only way
00:05 <+iant> well, you can write a reflect based function to do it
00:05 < kevlar_work> k, just making sure copy() or something didn't do it.
00:06 -!- trn [~trn@adsl-065-007-181-160.sip.bct.bellsouth.net] has joined
#go-nuts
00:09 < brandini> waddup dudes
00:10 < kevlar_work> hiyo
00:10 -!- virtualsue [~chatzilla@nat/cisco/x-ihpainuzwooqjrow] has quit [Ping
timeout: 258 seconds]
00:11 -!- patcoll [~patcollin@c-24-3-89-106.hsd1.pa.comcast.net] has joined
#go-nuts
00:11 -!- patcoll [~patcollin@c-24-3-89-106.hsd1.pa.comcast.net] has quit [Client
Quit]
00:25 < brandini> so I think there is a need for web frameworks to start
popping up for go :)
00:31 < kevlar_work> brandini, web.go is one of the most-goinstalled
packages
00:32 < kevlar_work> and there are a bunch more out there too, if you crawl
the list for appengine-related or html/template related posts
00:32 < brandini> I found mango, and goldorak.go
00:32 < brandini> and web.go
00:33 < brandini> I wonder if web.go is better than I first thought
00:35 < brandini> I didn't like web.py as much as pylons
00:35 < brandini> so I guess pylons is what I'm after :)
00:43 -!- franciscosouza [~francisco@187.105.25.184] has joined #go-nuts
00:50 -!- ccc1 [~Adium@140.109.98.187] has joined #go-nuts
00:50 -!- nicka [~nicka@unaffiliated/nicka] has quit [Read error: Connection reset
by peer]
00:51 -!- nicka [~nicka@unaffiliated/nicka] has joined #go-nuts
00:52 -!- tvw [~tv@e176000204.adsl.alicedsl.de] has quit [Read error: Connection
reset by peer]
00:54 -!- cmike_ [~cmike@99.75.50.144] has joined #go-nuts
00:54 -!- chanwit [~chanwit@223.206.197.201] has joined #go-nuts
00:55 -!- tvw [~tv@e176001222.adsl.alicedsl.de] has joined #go-nuts
01:06 -!- iant [~iant@67.218.103.165] has quit [Ping timeout: 264 seconds]
01:09 -!- d2biG [p@bofh.edu.pl] has joined #go-nuts
01:09 -!- dRbiG [p@bofh.edu.pl] has quit [Ping timeout: 276 seconds]
01:12 -!- moraes [~moraes@189.103.188.201] has quit [Ping timeout: 264 seconds]
01:14 -!- fotang [~fotang@41.220.69.41] has quit [Ping timeout: 258 seconds]
01:20 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has quit [Remote host
closed the connection]
01:28 -!- franciscosouza [~francisco@187.105.25.184] has quit [Read error:
Connection reset by peer]
01:28 -!- franciscosouza [~francisco@187.105.25.184] has joined #go-nuts
01:29 -!- benjack [~benjack@bb121-6-51-10.singnet.com.sg] has joined #go-nuts
01:35 <@adg> uriel:
http://code.google.com/p/go-wiki/wiki/SliceTricks?ts=1310521236&updated=SliceTricks
01:38 -!- kergoth_ [~kergoth@ip24-251-173-232.ph.ph.cox.net] has quit [Read error:
Connection reset by peer]
01:39 -!- sagex [~sagex@c-98-192-25-168.hsd1.ga.comcast.net] has joined #go-nuts
01:45 -!- benjack [~benjack@bb121-6-51-10.singnet.com.sg] has quit [Quit:
Leaving.]
01:45 -!- benjack [~benjack@bb121-6-51-10.singnet.com.sg] has joined #go-nuts
01:46 < chomp> pretty slick
01:46 -!- benjack [~benjack@bb121-6-51-10.singnet.com.sg] has quit [Client Quit]
02:12 -!- chanwit [~chanwit@223.206.197.201] has quit [Quit: Leaving.]
02:12 -!- coldturnip1 [~COLDTURNI@111-250-3-218.dynamic.hinet.net] has quit [Read
error: Connection reset by peer]
02:15 -!- coldturnip [~COLDTURNI@111-250-3-218.dynamic.hinet.net] has joined
#go-nuts
02:15 -!- qeed [~qeed@adsl-98-85-32-90.mco.bellsouth.net] has quit [Quit: Leaving]
02:30 -!- grai [~grai@38.70.70.115.static.exetel.com.au] has quit [Read error:
Connection reset by peer]
02:41 -!- muke [~doobies@75-59-237-124.lightspeed.sntcca.sbcglobal.net] has quit
[Ping timeout: 255 seconds]
02:41 -!- muke [~doobies@75-59-237-124.lightspeed.sntcca.sbcglobal.net] has joined
#go-nuts
02:46 -!- magn3ts [~magn3ts@ip68-103-225-65.ks.ok.cox.net] has quit [Read error:
Connection reset by peer]
02:48 -!- magn3ts [~magn3ts@ip68-103-225-65.ks.ok.cox.net] has joined #go-nuts
02:53 -!- bmizerany [~bmizerany@204.14.152.118] has quit [Remote host closed the
connection]
03:05 -!- Queue29 [~Queue29@egress-w.sfo1.yelpcorp.com] has joined #go-nuts
03:05 -!- jrabbit [~babyseal@unaffiliated/jrabbit] has quit [Read error: Operation
timed out]
03:07 -!- sunfmin [~sunfmin@115.238.44.107] has joined #go-nuts
03:14 -!- kr [~Keith@204.14.152.118] has quit [Quit: WeeChat 0.3.4]
03:15 -!- bmizerany [~bmizerany@c-50-131-56-150.hsd1.ca.comcast.net] has joined
#go-nuts
03:15 -!- magn3ts [~magn3ts@ip68-103-225-65.ks.ok.cox.net] has quit [Quit:
Leaving]
03:15 -!- magn3ts [~magn3ts@ip68-103-225-65.ks.ok.cox.net] has joined #go-nuts
03:17 -!- jrabbit [~babyseal@unaffiliated/jrabbit] has joined #go-nuts
03:23 -!- keithcascio [~keithcasc@nat/google/x-xzibztqonacggsyv] has quit [Quit:
Leaving]
03:27 -!- mjml [~joya@174.3.227.184] has joined #go-nuts
03:28 -!- angasule [~angasule@190.2.33.49] has quit [Remote host closed the
connection]
03:29 -!- cmike_ [~cmike@99.75.50.144] has quit [Quit: Leaving]
03:37 -!- mnemoc [~amery@shell.opensde.net] has quit [Ping timeout: 240 seconds]
03:50 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has joined #go-nuts
03:55 -!- jrabbit [~babyseal@unaffiliated/jrabbit] has left #go-nuts []
04:04 -!- rejb [~rejb@unaffiliated/rejb] has quit [Disconnected by services]
04:04 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
04:08 -!- mjml [~joya@174.3.227.184] has quit [Ping timeout: 250 seconds]
04:14 -!- gridaphobe [~gridaphob@cpe-74-68-151-24.nyc.res.rr.com] has quit [Remote
host closed the connection]
04:19 -!- prip [~foo@host233-120-dynamic.35-79-r.retail.telecomitalia.it] has quit
[Ping timeout: 260 seconds]
04:21 -!- mjml [~joya@174.3.227.184] has joined #go-nuts
04:24 < jessta_> brandini: what are you looking for in a 'web framework"?
04:30 -!- Cobi [~Cobi@2002:1828:88fb:0:aede:48ff:febe:ef03] has quit [Ping
timeout: 264 seconds]
04:31 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts
04:31 -!- mode/#go-nuts [+v iant] by ChanServ
04:31 -!- prip [~foo@host250-123-dynamic.32-79-r.retail.telecomitalia.it] has
joined #go-nuts
04:32 -!- Nisstyre [~nisstyre@infocalypse-net.info] has quit [Ping timeout: 264
seconds]
04:37 -!- benjack [~benjack@bb121-6-51-10.singnet.com.sg] has joined #go-nuts
04:37 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has quit [Remote host
closed the connection]
04:40 -!- smw [~stephen@unaffiliated/smw] has joined #go-nuts
04:40 -!- Cobi [~Cobi@2002:1828:88fb:0:aede:48ff:febe:ef03] has joined #go-nuts
04:41 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has joined #go-nuts
04:46 -!- Nisstyre [~nisstyre@infocalypse-net.info] has joined #go-nuts
04:46 -!- Nisstyre [~nisstyre@infocalypse-net.info] has quit [Max SendQ exceeded]
04:46 -!- Nisstyre [~nisstyre@infocalypse-net.info] has joined #go-nuts
04:47 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Read error:
Connection reset by peer]
04:48 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts
04:49 -!- kergoth [~kergoth@ip24-251-173-232.ph.ph.cox.net] has quit [Quit:
Computer has gone to sleep.]
04:58 -!- fabled [~fabled@83.145.235.194] has joined #go-nuts
05:03 -!- mindphaze [~void@ip98-181-33-119.br.br.cox.net] has quit [Read error:
Connection reset by peer]
05:03 -!- mindphaze [~void@ip98-181-33-119.br.br.cox.net] has joined #go-nuts
05:06 -!- anticw [~anticw@c-98-210-108-13.hsd1.ca.comcast.net] has quit [Ping
timeout: 258 seconds]
05:06 -!- anticw [~anticw@c-98-210-108-13.hsd1.ca.comcast.net] has joined #go-nuts
05:07 -!- hokapoka [~hokapoka@hoka.hokapoka.com] has quit [Ping timeout: 258
seconds]
05:08 -!- hokapoka [~hokapoka@hoka.hokapoka.com] has joined #go-nuts
05:09 -!- xcombelle [~xcombelle@AToulouse-551-1-60-104.w92-146.abo.wanadoo.fr] has
joined #go-nuts
05:17 -!- nteon_ [~nteon@c-98-210-195-105.hsd1.ca.comcast.net] has joined #go-nuts
05:22 -!- k3nt [~k3nt@adsl-99-154-246-231.dsl.snlo01.sbcglobal.net] has joined
#go-nuts
05:24 < k3nt> help!  http://pastie.org/2205573
05:27 < Tekerson> k3nt, http.Get() only has 2 return values, you're
assigning it to 3 variables.
05:27 < Tekerson> (or 2 variables, and telling it to discard 1)
05:27 < k3nt> makes sense...  did this change?
05:28 < Tekerson> no idea
05:29 < k3nt> durr, should've looked at the func spec more closely...  used
to be three
05:29 < k3nt> thanks Tekerson
05:29 < chomp> sneaky sneaky go
05:30 < jessta_> k3nt: things change all the time
05:30 < jessta_> sometimes gofix can help
05:31 < k3nt> yeah, I should expect it, and forgot all about gofix
05:36 -!- ronnyy [~quassel@p4FF1C5D1.dip0.t-ipconnect.de] has joined #go-nuts
05:41 -!- smw [~stephen@unaffiliated/smw] has quit [Read error: Connection reset
by peer]
05:43 -!- sacho [~sacho@87.126.39.0] has quit [Ping timeout: 255 seconds]
05:47 -!- chrisdothall [~chris@segfault.net.nz] has joined #go-nuts
05:47 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has quit [Remote host closed
the connection]
05:47 -!- magn3ts [~magn3ts@ip68-103-225-65.ks.ok.cox.net] has quit [Quit:
Leaving]
05:48 -!- chrisdothall [~chris@segfault.net.nz] has quit [Client Quit]
05:49 -!- cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has quit [Remote
host closed the connection]
05:57 -!- ccc1 [~Adium@140.109.98.187] has quit [Quit: Leaving.]
06:04 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
06:05 -!- ccc1 [~Adium@140.109.103.153] has joined #go-nuts
06:12 -!- noodles775 [~michael@g225094099.adsl.alicedsl.de] has joined #go-nuts
06:12 -!- noodles775 [~michael@g225094099.adsl.alicedsl.de] has quit [Changing
host]
06:12 -!- noodles775 [~michael@canonical/launchpad/noodles775] has joined #go-nuts
06:24 -!- chomp [~chomp@c-67-186-35-69.hsd1.pa.comcast.net] has quit [Quit:
Leaving]
06:26 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-177-195.clienti.tiscali.it] has
joined #go-nuts
06:33 -!- vmil86 [~vmil86@78.57.227.12] has joined #go-nuts
06:37 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts
06:41 -!- ronnyy [~quassel@p4FF1C5D1.dip0.t-ipconnect.de] has quit [Remote host
closed the connection]
06:48 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
06:51 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 252 seconds]
06:51 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
07:02 -!- benjack1 [~benjack@bb121-6-51-10.singnet.com.sg] has joined #go-nuts
07:02 -!- benjack [~benjack@bb121-6-51-10.singnet.com.sg] has quit [Ping timeout:
250 seconds]
07:03 -!- napsy [~luka@193.2.66.6] has joined #go-nuts
07:03 -!- |Craig| [~|Craig|@71-217-28-119.tukw.qwest.net] has joined #go-nuts
07:03 -!- |Craig| [~|Craig|@71-217-28-119.tukw.qwest.net] has quit [Changing host]
07:03 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
07:05 -!- Kahvi [~Kahvi@a91-152-186-228.elisa-laajakaista.fi] has joined #go-nuts
07:05 -!- Kahvi [~Kahvi@a91-152-186-228.elisa-laajakaista.fi] has quit [Client
Quit]
07:05 -!- Kahvi [~Kahvi@a91-152-186-228.elisa-laajakaista.fi] has joined #go-nuts
07:14 -!- k3nt [~k3nt@adsl-99-154-246-231.dsl.snlo01.sbcglobal.net] has quit
[Remote host closed the connection]
07:26 -!- photron [~photron@port-92-201-89-83.dynamic.qsc.de] has joined #go-nuts
07:31 -!- nteon_ [~nteon@c-98-210-195-105.hsd1.ca.comcast.net] has quit [Read
error: Operation timed out]
07:33 -!- Adys [~Adys@unaffiliated/adys] has quit [Ping timeout: 240 seconds]
07:37 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has quit [Ping
timeout: 240 seconds]
07:39 -!- virtualsue [~chatzilla@nat/cisco/x-aamnvxcstssxlvfp] has joined #go-nuts
07:42 -!- Pathin [~root@gladsheim.nullbytestudios.net] has joined #go-nuts
07:43 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has joined #go-nuts
07:50 -!- virtualsue [~chatzilla@nat/cisco/x-aamnvxcstssxlvfp] has quit [Ping
timeout: 255 seconds]
07:52 -!- coldturnip [~COLDTURNI@111-250-3-218.dynamic.hinet.net] has quit [Read
error: Connection reset by peer]
07:53 -!- coldturnip [~COLDTURNI@111-250-3-218.dynamic.hinet.net] has joined
#go-nuts
07:53 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
07:54 -!- franciscosouza [~francisco@187.105.25.184] has quit [Read error:
Connection reset by peer]
07:54 -!- franciscosouza [~francisco@187.105.25.184] has joined #go-nuts
08:05 -!- ccc1 [~Adium@140.109.103.153] has quit [Quit: Leaving.]
08:08 -!- ccc1 [~Adium@140.109.98.187] has joined #go-nuts
08:09 -!- Wild_Cat [~mnoel@240.234.2.93.rev.sfr.net] has joined #go-nuts
08:09 -!- mindphaze [~void@ip98-181-33-119.br.br.cox.net] has quit [Read error:
Connection reset by peer]
08:14 -!- farq2pean [~jon_dankd@ip-118-90-6-205.xdsl.xnet.co.nz] has joined
#go-nuts
08:15 -!- farq2pean [~jon_dankd@ip-118-90-6-205.xdsl.xnet.co.nz] has left #go-nuts
[]
08:15 < Wild_Cat> I'm pretty sure this question gets asked all the time but
I can't find an entry in the FAQ, so here goes: is there an Ubuntu PPA or a
Windows installer for recent Go releases, or is compiling from the source the only
way to try it?
08:16 < aiju> on linux just build it
08:17 -!- nicka [~nicka@unaffiliated/nicka] has quit [Ping timeout: 258 seconds]
08:17 < ijknacho> it's an easy process
08:18 -!- nicka [~nicka@unaffiliated/nicka] has joined #go-nuts
08:18 < ijknacho> http://golang.org/doc/install.html has Ubuntu instructions
near the top
08:20 < Wild_Cat> oh, I know it's easy to compile (on Linux, at least -- on
Windows, it's a PITA).  A PPA would just have made it even easier (and
auto-updated every time there's a stable-ish release)
08:20 < Wild_Cat> anyway, thanks for the info.
08:20 < aiju> there is a package for plan 9!  haha
08:23 < jessta_> Wild_Cat: there is an ubuntu PPA that foollows the releaes
08:25 < jessta_> Wild_Cat: https://launchpad.net/~niemeyer/+ppa-packages
08:26 < Wild_Cat> jessta_: ah, sweet!  Exactly what I was looking for.
08:27 -!- virtualsue [~chatzilla@nat/cisco/x-uyftfuiwrmvapekw] has joined #go-nuts
08:27 < aiju> what exactly is launchpad, even
08:27 -!- moraes [~moraes@189.103.188.201] has joined #go-nuts
08:29 < Wild_Cat> thanks everyone!
08:29 -!- Wild_Cat [~mnoel@240.234.2.93.rev.sfr.net] has left #go-nuts ["Leaving"]
08:32 < ijknacho> aiju: collab site like sourceforge or github, designed by
Canonical.  used to make Ubuntu.  beta annoucement from 2007 here:
http://www.markshuttleworth.com/archives/103
08:33 < aiju> ah
08:33 < aiju> NIH stuff
08:33 -!- fotang [~fotang@41.206.12.67] has joined #go-nuts
08:35 < ptrb> honestly I think Go is still a year+ away from being a
rational candidate for package managers
08:35 -!- fabled [~fabled@83.145.235.194] has quit [Read error: No route to host]
08:37 -!- fabled [~fabled@83.145.235.194] has joined #go-nuts
08:46 -!- bmizerany [~bmizerany@c-50-131-56-150.hsd1.ca.comcast.net] has quit
[Remote host closed the connection]
08:50 -!- bmizerany [~bmizerany@c-50-131-56-150.hsd1.ca.comcast.net] has joined
#go-nuts
08:50 -!- GilJ [~GilJ@zeus.ugent.be] has joined #go-nuts
08:58 -!- mnemoc [~amery@shell.opensde.net] has joined #go-nuts
09:09 -!- benjack1 [~benjack@bb121-6-51-10.singnet.com.sg] has quit [Quit:
Leaving.]
09:13 -!- bmizerany [~bmizerany@c-50-131-56-150.hsd1.ca.comcast.net] has quit
[Remote host closed the connection]
09:22 < str1ngs> ptrb: its not bad if you use /opt/go
09:22 < str1ngs> if you try to FHS then it gets messy :P
09:22 < ptrb> fhs?
09:22 < aiju> filesystem hype standard
09:22 < ptrb> hmm
09:22 < str1ngs> http://www.pathname.com/fhs/
09:23 < aiju> "yo dawg i heard you liked pointless redundant directories so
we put a /usr and a /usr/local in your FHS"
09:24 < str1ngs> more trolling?
09:24 < aiju> yeah
09:24 < aiju> all doubting of the holy standards is trolling
09:27 -!- ccc1 [~Adium@140.109.98.187] has quit [Quit: Leaving.]
09:34 -!- photron_ [~photron@port-92-201-89-83.dynamic.qsc.de] has joined #go-nuts
09:35 -!- str1ngs [~strings@unaffiliated/str1ngs] has quit [Quit: WeeChat 0.3.0]
09:37 -!- sagex_ [~sagex@c-98-192-25-168.hsd1.ga.comcast.net] has joined #go-nuts
09:38 -!- thomas_b_ [~thomasb@cm-84.215.47.51.getinternet.no] has joined #go-nuts
09:40 -!- noodles785 [~michael@g225094099.adsl.alicedsl.de] has joined #go-nuts
09:41 -!- flaguy48 [~gmallard@user-0c6s350.cable.mindspring.com] has quit [Ping
timeout: 255 seconds]
09:41 -!- alehorst [~alehorst@201.22.35.44.dynamic.adsl.gvt.net.br] has quit [Ping
timeout: 255 seconds]
09:41 -!- sagex [~sagex@c-98-192-25-168.hsd1.ga.comcast.net] has quit [Ping
timeout: 255 seconds]
09:41 -!- thomas_b [~thomasb@cm-84.215.47.51.getinternet.no] has quit [Ping
timeout: 255 seconds]
09:41 -!- photron [~photron@port-92-201-89-83.dynamic.qsc.de] has quit [Ping
timeout: 255 seconds]
09:41 -!- jsj [~johan@78-70-253-105-no149.tbcn.telia.com] has quit [Ping timeout:
255 seconds]
09:41 -!- noodles775 [~michael@canonical/launchpad/noodles775] has quit [Ping
timeout: 255 seconds]
09:41 -!- arun__ [~arun@e71020.upc-e.chello.nl] has quit [Ping timeout: 255
seconds]
09:41 -!- skelterjohn|work [~jasmuth@dice.rutgers.edu] has quit [Ping timeout: 255
seconds]
09:41 -!- skelterjohn|work [~jasmuth@dice.rutgers.edu] has joined #go-nuts
09:41 -!- alehorst [~alehorst@201.22.35.44.dynamic.adsl.gvt.net.br] has joined
#go-nuts
09:46 -!- fotang [~fotang@41.206.12.67] has quit [Ping timeout: 276 seconds]
09:49 -!- fotang [~fotang@41.206.12.61] has joined #go-nuts
09:54 -!- yebyen [~yebyen@martyfunkhouser.csh.rit.edu] has quit [Read error: No
route to host]
09:54 -!- iant1 [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined
#go-nuts
09:58 -!- jsj [~johan@78-70-253-105-no149.tbcn.telia.com] has joined #go-nuts
09:59 -!- Varriount_ [~Varriount@67.222.157.172] has joined #go-nuts
09:59 -!- Nisstyre [~nisstyre@infocalypse-net.info] has quit [Ping timeout: 255
seconds]
09:59 -!- sunfmin [~sunfmin@115.238.44.107] has quit [Ping timeout: 255 seconds]
09:59 -!- ijknacho [~goofy@71.123.134.24] has quit [Ping timeout: 255 seconds]
09:59 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Ping
timeout: 255 seconds]
09:59 -!- arun__ [~arun@e71020.upc-e.chello.nl] has joined #go-nuts
09:59 -!- skelterjohn|work [~jasmuth@dice.rutgers.edu] has quit [Ping timeout: 255
seconds]
09:59 -!- Varriount [~Varriount@67.222.157.172] has quit [Ping timeout: 255
seconds]
09:59 -!- skelterjohn|work [~jasmuth@dice.rutgers.edu] has joined #go-nuts
10:00 -!- Nisstyre [~nisstyre@infocalypse-net.info] has joined #go-nuts
10:00 -!- alehorst [~alehorst@201.22.35.44.dynamic.adsl.gvt.net.br] has quit [Ping
timeout: 255 seconds]
10:01 -!- alehorst [~alehorst@201.22.35.44.dynamic.adsl.gvt.net.br] has joined
#go-nuts
10:01 -!- ijknacho [~goofy@71.123.134.24] has joined #go-nuts
10:03 -!- str1ngs [~strings@unaffiliated/str1ngs] has joined #go-nuts
10:07 -!- alehorst [~alehorst@201.22.35.44.dynamic.adsl.gvt.net.br] has quit [Ping
timeout: 255 seconds]
10:08 -!- alehorst [~alehorst@201.22.35.44.dynamic.adsl.gvt.net.br] has joined
#go-nuts
10:09 -!- grai [~grai@38.70.70.115.static.exetel.com.au] has joined #go-nuts
10:10 < Kahvi> Are there any working scripting solutions for Go yet?
10:11 -!- Sep102_ [~Sep102@c-71-227-179-131.hsd1.wa.comcast.net] has quit [Read
error: Connection reset by peer]
10:12 -!- vikstrom [~vikstrom@stockholm.ardendo.se] has joined #go-nuts
10:13 < vikstrom> morning
10:14 -!- Sep102 [~Sep102@c-71-227-179-131.hsd1.wa.comcast.net] has joined
#go-nuts
10:22 -!- yebyen [~yebyen@martyfunkhouser.csh.rit.edu] has joined #go-nuts
10:26 -!- noodles785 [~michael@g225094099.adsl.alicedsl.de] has quit [Ping
timeout: 276 seconds]
10:28 -!- noodles775 [~michael@g229202051.adsl.alicedsl.de] has joined #go-nuts
10:28 -!- noodles775 [~michael@g229202051.adsl.alicedsl.de] has quit [Changing
host]
10:28 -!- noodles775 [~michael@canonical/launchpad/noodles775] has joined #go-nuts
10:28 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Read error:
Connection reset by peer]
10:28 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts
10:35 < ijknacho> when a chan is finally garbage collected, does it have a
finalizer that calls close() on it?
10:35 < aiju> it has a finalizer
10:35 < aiju> i doubt it will get closed
10:35 < aiju> rather cleaned up
10:39 -!- tvw [~tv@e176001222.adsl.alicedsl.de] has quit [Remote host closed the
connection]
10:45 -!- ccc1 [~Adium@118-166-214-128.dynamic.hinet.net] has joined #go-nuts
10:45 < jessta_> ijknacho: if a channel is garbage collected then it doesn't
need to be close()'ed
10:46 < jessta_> since nothing could send to it, because nothing has a
refernece to it
10:49 < ijknacho> well, some goroutines doing a for range on the chan would
automatically break out of the loops if the chan /were/ closed
10:50 < aiju> ehm
10:50 < ijknacho> yes?
10:50 < aiju> if you do a for range on a channel
10:50 < jnwhiteh> if theyr'e doing a for on the range, the channel wont' be
garbage collected.
10:50 < aiju> you have a reference to it
10:50 < aiju> as long as you have references to it
10:50 < ijknacho> haha.  =]
10:50 < aiju> it won't be garbage collected
10:50 < jnwhiteh> damn, I ruined the punchline
10:50 < ijknacho> thanks for pointing out that MINOR detail.
10:51 -!- gnuvince|work [8e544424@gateway/web/freenode/ip.142.84.68.36] has joined
#go-nuts
10:53 -!- yogib [~yogib@a81-14-179-70.net-htp.de] has joined #go-nuts
11:03 -!- ccc1 [~Adium@118-166-214-128.dynamic.hinet.net] has quit [Quit:
Leaving.]
11:03 -!- yogib [~yogib@a81-14-179-70.net-htp.de] has quit [Ping timeout: 252
seconds]
11:18 -!- yogib [~yogib@a81-14-179-70.net-htp.de] has joined #go-nuts
11:20 -!- noodles775 [~michael@canonical/launchpad/noodles775] has quit [Ping
timeout: 250 seconds]
11:22 -!- noodles775 [~michael@canonical/launchpad/noodles775] has joined #go-nuts
11:32 -!- stalled [~stalled@unaffiliated/stalled] has quit [Ping timeout: 252
seconds]
11:34 -!- tncardoso [~thiago@189.59.204.121] has joined #go-nuts
11:37 -!- erus` [~chatzilla@mailgate.ips-international.com] has joined #go-nuts
11:37 -!- alehorst [~alehorst@201.22.35.44.dynamic.adsl.gvt.net.br] has quit [Ping
timeout: 250 seconds]
11:38 < uriel>
http://www.reddit.com/r/programming/comments/inx2p/error_handling_and_go/
11:38 < uriel> *facepalm at most of the comments*
11:38 -!- laochailan [~laochaila@p508A5997.dip.t-dialin.net] has joined #go-nuts
11:40 < laochailan> hm, i'm just a bit annoyed about the need to write a
constructor for my struct just to initialize the map inside it.  the
implementation knows about them and they grow dynamically anyway so why not
initialize them automatically, when someone tries to write into them the first
time?
11:40 -!- tncardoso [~thiago@189.59.204.121] has quit [Ping timeout: 255 seconds]
11:42 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-155-74.clienti.tiscali.it] has
joined #go-nuts
11:43 -!- Dr_Who [~tgall_foo@206.9.88.154] has joined #go-nuts
11:43 -!- Dr_Who [~tgall_foo@206.9.88.154] has quit [Changing host]
11:43 -!- Dr_Who [~tgall_foo@linaro/tgall-foo] has joined #go-nuts
11:44 -!- Aram [~Aram@unaffiliated/aramdune] has joined #go-nuts
11:45 -!- alehorst [~alehorst@189.114.181.147.dynamic.adsl.gvt.net.br] has joined
#go-nuts
11:45 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-177-195.clienti.tiscali.it] has
quit [Ping timeout: 276 seconds]
11:48 -!- stalled [~stalled@unaffiliated/stalled] has joined #go-nuts
11:48 < str1ngs> laochailan: or you can use a composite literal . I know
does solve your problem.  but you wont need a constructor either.
11:49 -!- tvw [~tv@212.79.9.150] has joined #go-nuts
11:50 < laochailan> the map starts empty and it doesn't really solve it.  a
simple "var foo MyStruct" still won't work
11:50 -!- ccc1 [~Adium@118-166-214-128.dynamic.hinet.net] has joined #go-nuts
11:51 < ijknacho> laochailan: foo := MyStruct{someMap: make(map[blah]blah2)}
// composite literal
11:52 < laochailan> yes, but even longer and stranger for people using it
than a constructor
11:53 -!- tncardoso [~thiago@189.59.183.213.dynamic.adsl.gvt.net.br] has joined
#go-nuts
11:54 -!- meling [~meling@12.238.255.130] has quit [Remote host closed the
connection]
11:58 -!- lucian [~lucian@78-86-217-168.zone2.bethere.co.uk] has joined #go-nuts
12:00 -!- telexicon [~telexicon@unaffiliated/chowmeined] has quit [Ping timeout:
252 seconds]
12:09 -!- dreadlorde [~dreadlord@c-68-42-82-10.hsd1.mi.comcast.net] has joined
#go-nuts
12:09 -!- franciscosouza [~francisco@187.105.25.184] has quit [Quit:
franciscosouza]
12:11 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has joined #go-nuts
12:12 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has quit [Ping timeout: 240
seconds]
12:17 -!- stalled [~stalled@unaffiliated/stalled] has quit [Ping timeout: 252
seconds]
12:17 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has joined #go-nuts
12:18 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
12:21 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has joined #go-nuts
12:25 -!- laochailan [~laochaila@p508A5997.dip.t-dialin.net] has quit [Quit:
Konversation terminated!]
12:25 -!- laochailan [~laochaila@p508A5997.dip.t-dialin.net] has joined #go-nuts
12:26 -!- yogib [~yogib@a81-14-179-70.net-htp.de] has quit [Ping timeout: 250
seconds]
12:31 -!- flaguy48 [~gmallard@user-0c6s350.cable.mindspring.com] has joined
#go-nuts
12:31 -!- stalled [~stalled@unaffiliated/stalled] has joined #go-nuts
12:32 -!- laochailan [~laochaila@p508A5997.dip.t-dialin.net] has quit [Ping
timeout: 255 seconds]
12:33 -!- yogib [~yogib@a81-14-228-58.net-htp.de] has joined #go-nuts
12:33 -!- xcombelle [~xcombelle@AToulouse-551-1-60-104.w92-146.abo.wanadoo.fr] has
quit [Read error: Operation timed out]
12:43 -!- sacho [~sacho@87.126.39.0] has joined #go-nuts
12:44 -!- franciscosouza [~francisco@201.7.186.67] has joined #go-nuts
12:48 < gnuvince|work> Is it possible to have textproto.ReadLine() use utf8?
12:48 -!- xcombelle [~xcombelle@AToulouse-551-1-13-160.w86-196.abo.wanadoo.fr] has
joined #go-nuts
12:48 < gnuvince|work> Cause when I read "héhé" from a socket, it get the
string "héhé"
12:49 -!- farnoy [~farnoy@ocs202.internetdsl.tpnet.pl] has joined #go-nuts
12:49 -!- sunfmin [~sunfmin@115.197.44.94] has joined #go-nuts
12:50 < farnoy> hello, is there a way to use container/vector for own types?
I come from C++ and I'm looking for templates-like functionality (interfaces
here?)
12:51 < exch> gnuvince|work: I don't think Go does any encoding conversions
by itself.  it just expects stuff to be delivered as valid UTF-8.  It is up to you
to make sure that happens.  There are some Go packages hich supply conversion
routines you can use.  go-charset is one of them.
12:52 < exch> farnoy: container/vector is not recommended for use anymore.
Use normal slices instead.  All functionality of vectors can be done with slices
and the builtin append() function.
12:53 < exch> farnoy: for some tricks on how to deal with slices, see:
http://code.google.com/p/go-wiki/wiki/SliceTricks
12:53 < farnoy> but slices don't expand themselves automatically and such?
i'm looking for somewhat managed container
12:53 < exch> they do
12:54 < farnoy> then I'll look at them, thanks
12:59 -!- fotang [~fotang@41.206.12.61] has quit [Ping timeout: 240 seconds]
13:00 -!- niemeyer [~niemeyer@12.236.237.2] has joined #go-nuts
13:03 -!- mode/#go-nuts [+v iant] by ChanServ
13:07 -!- ijknacho [~goofy@71.123.134.24] has quit [Ping timeout: 250 seconds]
13:08 -!- justinlilly [justinlill@70.32.34.100] has quit [Quit: Hosted by rdlBNC
(Server 2 - United States of America)]
13:14 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
13:14 -!- justinlilly [justinlill@70.32.34.100] has joined #go-nuts
13:18 -!- pharris [~Adium@rhgw.opentext.com] has joined #go-nuts
13:20 -!- yogib_ [~yogib@a81-14-224-110.net-htp.de] has joined #go-nuts
13:20 -!- yogib [~yogib@a81-14-228-58.net-htp.de] has quit [Read error: Connection
reset by peer]
13:22 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Quit:
Leaving.]
13:29 < uriel> 12:50 < farnoy> hello, is there a way to use
container/vector for own types?  I come from C++ and I'm looking for
templates-like functionality (interfaces here?)
13:29 < uriel> DO NOT USE CONTAINER/VECTOR!
13:29 < uriel> (god, we really need to kill that sucker)
13:29 < uriel> (container/vector == the sucker)
13:34 < nicka1> Having a more visible wiki with that sort of stuff in it
would help the issue
13:34 -!- gridaphobe [~gridaphob@cpe-74-68-151-24.nyc.res.rr.com] has joined
#go-nuts
13:34 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has quit [Ping timeout: 260
seconds]
13:36 -!- dreadlorde [~dreadlord@c-68-42-82-10.hsd1.mi.comcast.net] has quit []
13:36 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has joined #go-nuts
13:37 -!- iant [~iant@67.218.103.165] has joined #go-nuts
13:37 -!- mode/#go-nuts [+v iant] by ChanServ
13:41 -!- xcombelle [~xcombelle@AToulouse-551-1-13-160.w86-196.abo.wanadoo.fr] has
quit [Quit: I am a manual virus, please copy me to your quit message.]
13:45 -!- ccc1 [~Adium@118-166-214-128.dynamic.hinet.net] has quit [Quit:
Leaving.]
13:45 -!- ccc1 [~Adium@118-166-214-128.dynamic.hinet.net] has joined #go-nuts
13:50 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts
13:52 -!- iant [~iant@67.218.103.165] has quit [Ping timeout: 258 seconds]
13:53 -!- iant [~iant@216.239.45.130] has joined #go-nuts
13:53 -!- mode/#go-nuts [+v iant] by ChanServ
13:56 -!- kergoth [~kergoth@ip24-251-173-232.ph.ph.cox.net] has joined #go-nuts
14:02 -!- virtualsue [~chatzilla@nat/cisco/x-uyftfuiwrmvapekw] has quit [Quit:
ChatZilla 0.9.87 [Firefox 5.0.1/20110707182747]]
14:06 -!- Adys_ [~Adys@unaffiliated/adys] has joined #go-nuts
14:08 -!- fabled [~fabled@83.145.235.194] has quit [Quit: Ex-Chat]
14:08 -!- sideone [~sideone@mail.traeger.com] has joined #go-nuts
14:08 -!- Adys [~Adys@unaffiliated/adys] has quit [Ping timeout: 240 seconds]
14:09 -!- sideone [~sideone@mail.traeger.com] has left #go-nuts []
14:14 -!- yogib [~yogib@a81-14-224-110.net-htp.de] has quit [Quit: yogib]
14:15 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has quit [Read error:
Operation timed out]
14:19 -!- miker2 [~miker2@64.55.31.190] has joined #go-nuts
14:23 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has joined #go-nuts
14:24 -!- pjacobs [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has
joined #go-nuts
14:27 -!- r_linux [~r_linux@static.200.198.180.250.datacenter1.com.br] has joined
#go-nuts
14:27 -!- napsy [~luka@193.2.66.6] has quit [Quit: Lost terminal]
14:28 -!- meling [~meling@129.33.193.254] has joined #go-nuts
14:30 -!- virtualsue [~chatzilla@nat/cisco/x-gzheyksxkixtxond] has joined #go-nuts
14:36 -!- rphillips [~rphillips@2001:470:21:31::42dc:59] has quit [Changing host]
14:36 -!- rphillips [~rphillips@unaffiliated/rphillips] has joined #go-nuts
14:39 -!- fabled [~fabled@83.145.235.194] has joined #go-nuts
14:40 -!- sniper506th [~sniper506@dhcp64-134-176-99.ghus.atl.wayport.net] has
joined #go-nuts
14:41 -!- dreadlorde [dreadlorde@c-68-42-82-10.hsd1.mi.comcast.net] has joined
#go-nuts
14:44 -!- rutkowski [~rutkowski@078088210158.walbrzych.vectranet.pl] has joined
#go-nuts
14:44 < rutkowski> /msg NickServ identify zaqWSX
14:45 < aiju> heh nice password
14:45 < rutkowski> lol
14:45 < exch> uhoh
14:47 -!- cafesofie [~cafesofie@pool-173-77-24-106.nycmny.east.verizon.net] has
joined #go-nuts
14:47 -!- r_linux [~r_linux@static.200.198.180.250.datacenter1.com.br] has quit
[Read error: Operation timed out]
14:47 -!- r_linux [~r_linux@static.200.198.180.250.datacenter1.com.br] has joined
#go-nuts
14:52 -!- dreadlorde [dreadlorde@c-68-42-82-10.hsd1.mi.comcast.net] has quit [Ping
timeout: 240 seconds]
14:55 -!- chomp [~chomp@dap-209-166-184-50.pri.tnt-3.pgh.pa.stargate.net] has
joined #go-nuts
14:55 -!- dreadlorde [dreadlorde@c-68-42-82-10.hsd1.mi.comcast.net] has joined
#go-nuts
15:01 -!- iant [~iant@216.239.45.130] has quit [Ping timeout: 260 seconds]
15:03 -!- meling [~meling@129.33.193.254] has quit [Remote host closed the
connection]
15:07 -!- iant [~iant@nat/google/x-cvvgjkuiwbdrplyu] has joined #go-nuts
15:07 -!- mode/#go-nuts [+v iant] by ChanServ
15:07 -!- Project_2501 [~Marvin@82.84.95.114] has joined #go-nuts
15:08 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has quit [Remote host
closed the connection]
15:09 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has quit [Quit: Leaving.]
15:10 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-155-74.clienti.tiscali.it] has
quit [Ping timeout: 252 seconds]
15:10 -!- angasulino [c80571e2@gateway/web/freenode/ip.200.5.113.226] has joined
#go-nuts
15:12 -!- dreadlorde [dreadlorde@c-68-42-82-10.hsd1.mi.comcast.net] has quit []
15:16 -!- Project_2501 [~Marvin@82.84.95.114] has quit [Ping timeout: 240 seconds]
15:17 -!- rutkowski [~rutkowski@078088210158.walbrzych.vectranet.pl] has quit
[Remote host closed the connection]
15:19 -!- grai [~grai@38.70.70.115.static.exetel.com.au] has quit [Ping timeout:
250 seconds]
15:19 -!- pjacobs [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has quit
[Quit: Leaving]
15:20 -!- ArgonneIntern [~gauge@mcswl183.mcs.anl.gov] has joined #go-nuts
15:20 < angasulino> so gotgo is abandoned, right?  Is someone else working
on generics?  :?
15:21 < ArgonneIntern> does go have any atomic file locks?
15:21 < ArgonneIntern> err packages that use them rather
15:22 -!- dreadlorde [dreadlorde@c-68-42-82-10.hsd1.mi.comcast.net] has joined
#go-nuts
15:24 -!- tncardoso [~thiago@189.59.183.213.dynamic.adsl.gvt.net.br] has quit
[Quit: bye]
15:24 -!- pjacobs [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has
joined #go-nuts
15:25 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
15:28 -!- pjacobs2 [~pjacobs@66.54.185.130] has joined #go-nuts
15:29 -!- skelterjohn [~jasmuth@140.Red-88-7-208.staticIP.rima-tde.net] has joined
#go-nuts
15:31 -!- pjacobs [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has quit
[Ping timeout: 240 seconds]
15:36 < kevlar_work> ArgonneIntern, "atomic" "file locks"?
15:37 < kevlar_work> file locking mechanics that are a part of the
os/filesystem will have whatever guarantees they have...
15:37 < skelterjohn> hello from barcelona!
15:37 -!- mjml [~joya@174.3.227.184] has quit [Ping timeout: 260 seconds]
15:37 < kevlar_work> but I'm not aware of any such mechanisms from software
aside from trying to create the file and seeing if you can.
15:37 < kevlar_work> (The lockfile)
15:37 < kevlar_work> hey skelterjohn.
15:38 -!- napsy [~luka@88.200.96.18] has quit [Quit: Lost terminal]
15:38 -!- r_linux [~r_linux@static.200.198.180.250.datacenter1.com.br] has quit
[Ping timeout: 264 seconds]
15:39 -!- r_linux [~r_linux@static.200.198.180.250.datacenter1.com.br] has joined
#go-nuts
15:40 -!- Adys [~Adys@unaffiliated/adys] has quit [Ping timeout: 258 seconds]
15:41 -!- vikstrom [~vikstrom@stockholm.ardendo.se] has left #go-nuts []
15:41 -!- noodles775 [~michael@canonical/launchpad/noodles775] has quit [Quit:
leaving]
15:44 -!- dreadlorde [dreadlorde@c-68-42-82-10.hsd1.mi.comcast.net] has quit [Ping
timeout: 252 seconds]
15:44 -!- ccc1 [~Adium@118-166-214-128.dynamic.hinet.net] has quit [Quit:
Leaving.]
15:44 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
15:47 -!- iant [~iant@nat/google/x-cvvgjkuiwbdrplyu] has quit [Quit: Leaving.]
15:48 -!- vikstrom [~vikstrom@stockholm.ardendo.se] has joined #go-nuts
15:49 < ArgonneIntern> kevlar_work, yes I was just reading that they are not
enforced by the OS
15:49 -!- mjml [~joya@174.3.227.184] has joined #go-nuts
15:49 < ArgonneIntern> so another program would have to check for the lock
for it to have any effect
15:50 < kevlar_work> indeed.
15:50 < ArgonneIntern> time to convince my boss that persistant json files
for a user database isn't going to work lol
15:50 < kevlar_work> one of the only ways to ensure you're the only writer
of a file is to unlink it from the directory tree, but I don't know if it's
possible to relink it later...
15:50 -!- erus` [~chatzilla@mailgate.ips-international.com] has quit [Remote host
closed the connection]
15:51 < ArgonneIntern> which is sad because json files are so easy
15:51 < kevlar_work> ArgonneIntern, as long as only your program modifies it
and your program abides by the locks :)
15:51 < vikstrom> couldn't you use hard-links for that?
15:51 < ArgonneIntern> either that or convince him to let me daemon deal
with admins too
15:51 < ArgonneIntern> problem is he wan'ts admins to use a seperate
program/daemon to modify this file
15:52 < ArgonneIntern> or to allow people to make their own
15:52 < kevlar_work> ArgonneIntern, eww, that's what RPCs are for.
15:52 < ArgonneIntern> so it gets ugly
15:52 -!- Kahvi [~Kahvi@a91-152-186-228.elisa-laajakaista.fi] has quit [Remote
host closed the connection]
15:52 < ArgonneIntern> I just need to convince him to let my one daemon deal
with admins and users
15:52 < ArgonneIntern> so it can have a mutex for the auth file and just be
done with it
15:53 < kevlar_work> or use a real database ;-)
15:53 < ArgonneIntern> he doesn't want the overhead of a sql db
15:53 < ArgonneIntern> I tried that arguement already
15:54 < kevlar_work> so, make a really lightweight daemon that sits on a
sqlite database and talks JSONRPC with any clients who want access to it.
15:54 < ArgonneIntern> what is RPC?
15:54 < aiju> ArgonneIntern: your boss is a fucking genius
15:54 < aiju> 17:58 < ArgonneIntern> time to convince my boss that
persistant json files for a user database isn't going to work lol
15:54 < kevlar_work> ArgonneIntern, Remote Procedure Call.
15:54 < aiju> just use A FUCKING FILE
15:54 < ArgonneIntern> he works are argonne national labs, so there is a
better chance I'm not explaining it well.  You can't be here and not be a genius
15:54 -!- fotang [~fotang@41.206.11.41.vgccl.net] has joined #go-nuts
15:55 < kevlar_work> ArgonneIntern, you can be a genius about one thing and
be completely stupid ignorant about everything else.
15:55 < kevlar_work> Just saying it's possible ;-).
15:56 < kevlar_work> (some of my best friends in school were [are?] that
way)
15:57 < nicka1> it's probably more common than you think
15:57 < aiju> i don't know anyone who isn't like that
15:58 < ptrb> If I make a channel, and then spawn two goroutines on it, one
to read from it, and one to write to it, does the order in which those "c
<-value" and "<-c" statements occur matter?  IOW does the read have to
happen before the write?
15:59 < aiju> ptrb: either one will block
15:59 < aiju> until something is send/received
15:59 < aiju> they act as synchronizing points
15:59 -!- grai [~grai@38.70.70.115.static.exetel.com.au] has joined #go-nuts
16:00 < mpl> aiju: so everyone you know is a genius in at least one field?
16:00 < ptrb> aiju: as I thought.  re-reading the code, I was swapping my
return params ;) thanks.
16:00 < aiju> mpl: hahaha
16:00 < aiju> mpl: everyone i know is stupid and ignorant in some field
16:01 -!- farnoy [~farnoy@ocs202.internetdsl.tpnet.pl] has quit [Quit: Leaving]
16:01 < mpl> well, that makes more sense.  but that's not what he was
saying.
16:01 -!- r_linux [~r_linux@static.200.198.180.250.datacenter1.com.br] has quit
[Read error: Operation timed out]
16:02 -!- r_linux [~r_linux@static.200.198.180.250.datacenter1.com.br] has joined
#go-nuts
16:06 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-168-215.clienti.tiscali.it] has
joined #go-nuts
16:09 -!- chadkouse [~Adium@rrcs-74-218-87-242.central.biz.rr.com] has joined
#go-nuts
16:14 -!- grai [~grai@38.70.70.115.static.exetel.com.au] has quit [Read error:
Connection reset by peer]
16:16 -!- Project-2501 [~Marvin@82.84.67.226] has joined #go-nuts
16:18 -!- tncardoso [~thiagon@150.164.2.20] has joined #go-nuts
16:18 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-168-215.clienti.tiscali.it] has
quit [Ping timeout: 258 seconds]
16:19 < ArgonneIntern> kevlar_work, well he is the sys prog guru here, so
you would think he knows a thing or two about this ;)
16:19 < ArgonneIntern> but I do agree, it doesn't make a whole lot of sense
to me
16:19 < ArgonneIntern> in any case he agreed to put all the userDb editing
in the program athing to it
16:24 -!- Project-2501 [~Marvin@82.84.67.226] has quit [Ping timeout: 240 seconds]
16:26 -!- erus` [~chatzilla@host81-151-114-250.range81-151.btcentralplus.com] has
joined #go-nuts
16:27 -!- r_linux [~r_linux@static.200.198.180.250.datacenter1.com.br] has quit
[Ping timeout: 252 seconds]
16:28 -!- xcombelle [~xcombelle@AToulouse-551-1-13-160.w86-196.abo.wanadoo.fr] has
joined #go-nuts
16:29 -!- r_linux [~r_linux@189.38.220.35] has joined #go-nuts
16:30 -!- sunfmin [~sunfmin@115.197.44.94] has quit [Quit: sunfmin]
16:31 -!- justinlilly [justinlill@70.32.34.100] has quit [Quit: Hosted by rdlBNC
(Server 2 - United States of America)]
16:33 -!- justinlilly [justinlill@70.32.34.100] has joined #go-nuts
16:35 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
16:59 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
17:01 -!- dreadlorde [dreadlorde@c-68-42-82-10.hsd1.mi.comcast.net] has joined
#go-nuts
17:04 -!- Queue29 [~Queue29@egress-w.sfo1.yelpcorp.com] has quit [Remote host
closed the connection]
17:10 -!- grai [~grai@38.70.70.115.static.exetel.com.au] has joined #go-nuts
17:10 -!- gnuvince|work [8e544424@gateway/web/freenode/ip.142.84.68.36] has quit
[Ping timeout: 252 seconds]
17:11 -!- gnuvince|work [8e544424@gateway/web/freenode/ip.142.84.68.36] has joined
#go-nuts
17:13 -!- huin [~huin@91.85.188.1] has joined #go-nuts
17:15 -!- skelterjohn [~jasmuth@140.Red-88-7-208.staticIP.rima-tde.net] has quit
[Quit: skelterjohn]
17:17 -!- iant [~iant@nat/google/x-dohkgjyxvestqclr] has joined #go-nuts
17:17 -!- mode/#go-nuts [+v iant] by ChanServ
17:21 -!- farnoy [~farnoy@ocs202.internetdsl.tpnet.pl] has joined #go-nuts
17:21 -!- sniper506th [~sniper506@dhcp64-134-176-99.ghus.atl.wayport.net] has quit
[Quit: Computer has gone to sleep.]
17:26 < farnoy> are there any libraries for date or time handling?
17:26 < farnoy> package "time" has very decent api
17:30 -!- yogib [~yogib@dslb-188-100-004-241.pools.arcor-ip.net] has joined
#go-nuts
17:37 -!- pjacobs2 [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has
joined #go-nuts
17:38 -!- meling [~meling@129.33.193.254] has joined #go-nuts
17:40 -!- pjacobs [~pjacobs@66.54.185.130] has quit [Ping timeout: 246 seconds]
17:42 -!- huin [~huin@91.85.188.1] has quit [Quit: leaving]
17:48 -!- bugQ [~bug@c-71-195-207-34.hsd1.ut.comcast.net] has joined #go-nuts
17:48 -!- huin [~huin@91.84.122.44] has joined #go-nuts
17:49 -!- saschpe [~quassel@opensuse/member/saschpe] has joined #go-nuts
17:54 -!- nicka [~nicka@unaffiliated/nicka] has quit [Ping timeout: 250 seconds]
17:57 -!- nicka [~nicka@unaffiliated/nicka] has joined #go-nuts
18:09 -!- saschpe [~quassel@opensuse/member/saschpe] has quit [Remote host closed
the connection]
18:10 -!- kkress [~kkress@2001:470:1:41::403e:ad36] has quit [Quit: leaving]
18:10 -!- kkress [~kkress@kkress2.xen.prgmr.com] has joined #go-nuts
18:11 < ptrb> I'm constructing a system that basically manipulates a set of
channels.  Data is sourced at one end, goes through a bunch of manipulations, and
is sinked at the other end.  The sinker has strict timing requirements; it
shouldn't ever really block on the <-chan.
18:11 < ptrb> But I'm getting some blocking, even after pipelining only,
say, 4 or 5 handoffs.  Is there some best-practice I should be considering here?
18:13 -!- JimPeak [~lejimpeak@modemcable213.208-160-184.mc.videotron.ca] has
joined #go-nuts
18:15 < angasulino> ptrb: you can have non-blocking reads with select if you
have a default: clause
18:16 < ptrb> angasulino: well, I need the actual data :)
18:16 < angasulino> so the blocking on reading a chan isn't really your
problem.
18:17 < ptrb> Yeah.  I guess I'm wondering if my methodolgy is flawed.
18:17 < angasulino> you should probably describe the actual problem you're
trying to solve
18:18 < ptrb> So I have some function which produces a stream of data, and
another which consumes that stream.
18:19 < ptrb> func source() chan int { out := make(chan int) ; go func() {
for { out <- 1 } }() ; return out }
18:20 < ptrb> func sink(c chan int) { go func() { for { do_something(<-c)
; } }() }
18:20 < ptrb> easy enough so far
18:20 < ptrb> but I want manipulators in the middle, eg
18:21 < ptrb> func double(in chan int) chan int { out := make(chan int) ; go
func() { out <- 2 * <-in }() ; return out }
18:21 < ptrb> and I need to chain these dynamically
18:21 -!- skelterjohn [~jasmuth@140.Red-88-7-208.staticIP.rima-tde.net] has joined
#go-nuts
18:22 < ptrb> and I'm wondering if there's not a better way to do it, ie.
if "func manipulate(in chan int) chan int" isn't the best function signature
18:23 -!- KirkMcDonald [~Kirk@python/site-packages/KirkMcDonald] has quit [Quit:
Lost terminal]
18:23 < skelterjohn> i like to name my return values
18:24 < skelterjohn> func manipulate(in chan int) (out chan int)
18:24 < skelterjohn> of course, i don't know the context
18:24 < ptrb> ;)
18:24 -!- KirkMcDonald [~Kirk@python/site-packages/KirkMcDonald] has joined
#go-nuts
18:24 < ptrb> skelterjohn: when I'm chaining a bunch of these manipulators,
the ultimate receiver of all the data is missing its time window
18:25 < ptrb> ie.  the chain is making things too slow somehow
18:25 < ptrb> and I'm wondering if this is best practice for arbitrarily
manipulating a stream of data via channels
18:25 < nicka1> by default gothreads are on a single hardware thread are
they not?
18:25 < skelterjohn> chaining two channels together makes it behave like
there is a buffer of size one
18:25 < skelterjohn> every link you add will increase the buffer by one
18:25 -!- meling [~meling@129.33.193.254] has quit [Remote host closed the
connection]
18:25 < ptrb> skelterjohn: ah, so maybe making them buffered will smooth out
any interruptions
18:26 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by
peer]
18:26 < skelterjohn> hmm
18:26 < skelterjohn> maybe
18:26 < skelterjohn> can you be more specific about what's going wrong?
18:26 < ptrb> the ultimate sink is a callback, which is called by cgo every
(say) 10ms
18:26 < skelterjohn> nicka1: many goroutines to one os thread
18:26 -!- meling [~meling@129.33.192.50] has joined #go-nuts
18:27 < ptrb> it needs to read (say) 1000 values from the channel
18:27 -!- fotang [~fotang@41.206.11.41.vgccl.net] has quit [Ping timeout: 260
seconds]
18:27 < ptrb> sometimes it's not able to
18:27 < ptrb> I bet buffering the channels will help tremendously, actually.
Now that I type it out like that.  :)
18:28 < skelterjohn> try that, if it works great, if not try to make a
simplified example that you can pastebin
18:28 < ptrb> Sure.
18:28 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
18:30 -!- JimPeak [~lejimpeak@modemcable213.208-160-184.mc.videotron.ca] has left
#go-nuts []
18:32 -!- keithcascio [~keithcasc@nat/google/x-bmghsnfscbivglkh] has joined
#go-nuts
18:33 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-160-114.clienti.tiscali.it] has
joined #go-nuts
18:34 -!- sniper506th [~sniper506@rrcs-70-61-192-18.midsouth.biz.rr.com] has
joined #go-nuts
18:35 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-169-65.clienti.tiscali.it] has
joined #go-nuts
18:38 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-160-114.clienti.tiscali.it] has
quit [Ping timeout: 255 seconds]
18:39 -!- xcombelle_ [~xcombelle@AToulouse-551-1-76-198.w92-146.abo.wanadoo.fr]
has joined #go-nuts
18:40 -!- tvw [~tv@212.79.9.150] has quit [Remote host closed the connection]
18:40 -!- xcombelle [~xcombelle@AToulouse-551-1-13-160.w86-196.abo.wanadoo.fr] has
quit [Ping timeout: 255 seconds]
18:46 -!- xcombelle_ [~xcombelle@AToulouse-551-1-76-198.w92-146.abo.wanadoo.fr]
has quit [Quit: I am a manual virus, please copy me to your quit message.]
18:46 -!- xcombelle_ [~xcombelle@AToulouse-551-1-76-198.w92-146.abo.wanadoo.fr]
has joined #go-nuts
18:46 -!- Project_2501 [~Marvin@82.84.80.167] has joined #go-nuts
18:47 < kergoth> meh
18:47 < kergoth> my motivation has gone away
18:48 < ArgonneIntern> anyone know what the "how" variable does in this
http://www.pastie.org/2208675
18:48 < chomp> you aint got no ambition
18:48 < chomp> you've gone fishin'.
18:49 < kergoth> ArgonneIntern: read the man page on the flock syscall.
18:49 < kergoth> that would be the 'operation', e.g.  LOCK_SH / LOCK_EX /
LOCK_UN, afaict
18:49 < ArgonneIntern> ok
18:50 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-169-65.clienti.tiscali.it] has
quit [Ping timeout: 264 seconds]
18:51 < ArgonneIntern> the man pages don't really say anything
18:51 < kergoth> hm?
18:52 < kergoth> the flock man page is quite detailed.  if you're looking
for the exact integer values for the operations, read the appropriate header file
18:53 < ArgonneIntern> yea the man pages just say -u for unlock for example
18:54 < ArgonneIntern> how that translates to go I guess I'll have to look
at header files as you said
18:54 < kergoth> no, you're not reading hte man page about the syscall.
18:54 < kergoth> you're reading the man page for the *command*
18:54 < kergoth> run: man 2 flock
18:55 < kergoth> man page section 2 is syscalls
18:55 < kergoth> that should be more useful :)
18:55 < ArgonneIntern> ok thanks
18:56 < ArgonneIntern> oh yea lol, that is much better
18:56 < ArgonneIntern> thanks alot
18:57 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-165-115.clienti.tiscali.it] has
joined #go-nuts
18:58 < kergoth> :) np
18:59 < ArgonneIntern> hmm those should be put into the syscall package as
constants maybe?
19:00 < ArgonneIntern> so people like me don't have to go look at file.h and
find the exact number ><
19:00 -!- Project_2501 [~Marvin@82.84.80.167] has quit [Ping timeout: 258 seconds]
19:01 < kergoth> i doubt they'd want to clutter up the syscall interface
with the details of each syscall, but *shrug*
19:01 * kergoth 's never touched the syscall package
19:01 -!- pjacobs [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has quit
[Ping timeout: 276 seconds]
19:01 -!- pjacobs [~pjacobs@66.54.185.130] has joined #go-nuts
19:01 < ArgonneIntern> this is my first time touching it
19:02 < ArgonneIntern> but I need it for file locking unfortunately
19:02 -!- xcombelle [~xcombelle@AToulouse-551-1-76-198.w92-146.abo.wanadoo.fr] has
quit [Quit: I am a manual virus, please copy me to your quit message.]
19:02 * kergoth nods
19:04 -!- fotang [~fotang@41.206.11.42.vgccl.net] has joined #go-nuts
19:04 < kergoth> of course, for something like file locking, really need a
seperate package for it, I suspect, since the implementation is quite different
between platforms, if you want a portable solution
19:04 < kergoth> wonder if anyone's done one yet
19:04 -!- meling [~meling@129.33.192.50] has quit [Remote host closed the
connection]
19:05 < ArgonneIntern> oh you are right
19:05 < ArgonneIntern> well flocking function would be portable I would
imagine
19:05 < angasulino> apparently Qt
19:05 < ArgonneIntern> just not the numbers
19:06 < kergoth> pretty sure you have to use something else entirely under
windows, doubt the flock syscall would be of much help there :)
19:06 < kergoth> hmm
19:06 -!- kergoth [~kergoth@ip24-251-173-232.ph.ph.cox.net] has quit [Quit: blah]
19:07 < ArgonneIntern> thought the docs on the go doc pages was for both
linux and windows
19:09 -!- Project_2501 [~Marvin@82.84.82.112] has joined #go-nuts
19:13 -!- yogib [~yogib@dslb-188-100-004-241.pools.arcor-ip.net] has quit [Quit:
yogib]
19:13 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-165-115.clienti.tiscali.it] has
quit [Ping timeout: 276 seconds]
19:14 -!- meling [~meling@129.33.192.50] has joined #go-nuts
19:15 -!- meling [~meling@129.33.192.50] has quit [Remote host closed the
connection]
19:15 -!- yogib [~yogib@dslb-188-100-004-241.pools.arcor-ip.net] has joined
#go-nuts
19:16 -!- bugQ [~bug@c-71-195-207-34.hsd1.ut.comcast.net] has quit [Quit: but
don't be sad.]
19:17 -!- gnuvince|work [8e544424@gateway/web/freenode/ip.142.84.68.36] has quit
[Quit: Page closed]
19:17 -!- mkb218 [~mkb@pool-96-233-4-238.bstnma.east.verizon.net] has quit [Ping
timeout: 252 seconds]
19:18 -!- mkb218 [~mkb@pool-96-233-4-238.bstnma.east.verizon.net] has joined
#go-nuts
19:30 -!- farnoy [~farnoy@ocs202.internetdsl.tpnet.pl] has quit [Remote host
closed the connection]
19:32 -!- tncardoso [~thiagon@150.164.2.20] has quit [Quit: Leaving]
19:33 < ArgonneIntern> http://www.pastie.org/2208890 <-- why?  I imported
the package as well.
19:35 < ArgonneIntern> i'm super stumped on that lol
19:36 < pharris> http://golang.org/src/pkg/syscall/zsyscall_linux_amd64.go
doesn't appear to have Flock?  zsyscall for darwin and freebsd have it, though.
19:36 * exch plays with exp/template and is very excited about it
19:37 < ArgonneIntern> mfer
19:37 < ArgonneIntern> learning by trial and error stinks
19:38 < ArgonneIntern> suppose I can just call the command line flock with
exec.Cmd.Run()
19:39 < ArgonneIntern> but I think shell flock doesn't execute locks
atomically?
19:39 -!- tvw [~tv@e176001222.adsl.alicedsl.de] has joined #go-nuts
19:40 < pharris> No idea.  I'd be inclined to fix the bug in syscall (and/or
report it and let them fix it).
19:40 < ArgonneIntern> if I added the code do you think they would accept
it?
19:40 < pharris> Yes.
19:40 < pharris> It seems like a simple omission.
19:40 < ArgonneIntern> hmm I'll ask my boss if I can work on that
19:41 -!- awidegreen [~quassel@h-170-226.a212.priv.bahnhof.se] has joined #go-nuts
19:41 -!- fotang [~fotang@41.206.11.42.vgccl.net] has quit [Ping timeout: 240
seconds]
19:44 -!- photron_ [~photron@port-92-201-89-83.dynamic.qsc.de] has quit [Ping
timeout: 260 seconds]
19:45 -!- fotang [~fotang@41.206.11.14.vgccl.net] has joined #go-nuts
19:47 -!- angasulino [c80571e2@gateway/web/freenode/ip.200.5.113.226] has quit
[Ping timeout: 252 seconds]
19:52 -!- rutkowski [~adrian@178235050196.walbrzych.vectranet.pl] has joined
#go-nuts
19:53 -!- alehorst [~alehorst@189.114.181.147.dynamic.adsl.gvt.net.br] has quit
[Quit: Leaving.]
19:53 -!- fotang [~fotang@41.206.11.14.vgccl.net] has quit [Ping timeout: 255
seconds]
19:53 < kevlar_work> ArgonneIntern, it should be a simple matter of adding
flock to the syscall file and making
19:54 < ArgonneIntern> yes I reported the bug
19:54 < ArgonneIntern> and yes I'll do that
19:54 -!- qeed [~qeed@adsl-98-85-32-152.mco.bellsouth.net] has joined #go-nuts
19:54 < ArgonneIntern>
http://code.google.com/p/go/issues/detail?id=2069&colspec=ID%20Status%20Stars%20Priority%20Owner%20Reporter%20Summary
19:57 -!- alehorst [~alehorst@189.114.181.147.dynamic.adsl.gvt.net.br] has joined
#go-nuts
19:58 -!- fotang [~fotang@41.206.11.22.vgccl.net] has joined #go-nuts
19:58 -!- tncardoso [~thiago@187.58.6.58] has joined #go-nuts
20:01 -!- smw [~stephen@unaffiliated/smw] has joined #go-nuts
20:03 < qeed> is there an example of a generic go makefile that compiles all
files in a folder?  if i just used wildcard it doesnt know which to files to
compile first and it says some package not found
20:04 -!- virtualsue [~chatzilla@nat/cisco/x-gzheyksxkixtxond] has quit [Quit:
ChatZilla 0.9.87 [Firefox 5.0.1/20110707182747]]
20:04 < exch> the order of the files doesnt matter if they all belong to the
same package
20:05 < exch> It's generally not a good idea to mix sourcefiles for multiple
packages in the same directory
20:05 < qeed> i see
20:05 < exch> You can, if you want to.  But it'll just end upgiving you a
headache at some point.  Specially if you use wildcard to include files
20:06 < exch> I do regularly use somedir/*.go to include all files in a
subdir.  And it works fine
20:06 -!- kfmfe04 [~kfeng@114-32-57-164.HINET-IP.hinet.net] has joined #go-nuts
20:06 -!- fotang [~fotang@41.206.11.22.vgccl.net] has quit [Ping timeout: 258
seconds]
20:08 -!- huin [~huin@91.84.122.44] has quit [Quit: Lost terminal]
20:08 < exch> provided they all belong to the same package of course
20:08 -!- huin [~huin@91.84.122.44] has joined #go-nuts
20:10 -!- rutkowski [~adrian@178235050196.walbrzych.vectranet.pl] has quit [Quit:
WeeChat 0.3.3-dev]
20:14 < ArgonneIntern> kevlar_work, well it works so this may be the first
legit bug report I've made lol
20:15 < zozoR> wait, you can do wildcard in makefiles?  : |
20:15 < exch> ya
20:17 < zozoR> awesomeness
20:17 < zozoR> :o
20:27 -!- kfmfe04 [~kfeng@114-32-57-164.HINET-IP.hinet.net] has quit [Quit:
WeeChat 0.3.0]
20:28 -!- fabled [~fabled@83.145.235.194] has quit [Read error: No route to host]
20:28 -!- fabled [~fabled@83.145.235.194] has joined #go-nuts
20:29 < ArgonneIntern> my boss told me never to use awesome in a
professional setting
20:29 < ArgonneIntern> so when I went to epic systems for my interview I did
20:30 < ArgonneIntern> :)
20:30 -!- miker2 [~miker2@64.55.31.190] has quit [Ping timeout: 240 seconds]
20:34 < qeed> so if i have multiple files from the same package all the
files will automatically be able to see what is in each other?
20:35 < exch> just give them all to thecompiler and it ill figure out what
is where
20:35 < ArgonneIntern> you mean data structures?
20:35 < exch> eg: 6g file1.go file2.go file3.go
20:35 < ArgonneIntern> oh
20:36 -!- rael_wiki [~chatzilla@unaffiliated/rael-wiki/x-8420294] has joined
#go-nuts
20:36 < qeed> ok for instance i have board.go and piece.go piece.go has some
definitions belonging to the same package i get undefined: piece on compile
20:36 < qeed> when i access it in board.go
20:36 < ArgonneIntern> when you defined package did you name them the same
20:36 -!- telexicon [~telexicon@unaffiliated/chowmeined] has joined #go-nuts
20:36 < qeed> yes
20:36 < qeed> package chess
20:37 < qeed> i tried import ( "chess" ) that didnt work
20:37 < rael_wiki> hello
20:37 < ArgonneIntern> hi
20:37 < exch> no need for that.  pass them both to the compiler: 6g board.go
piece.go
20:37 < exch> that shoulddo it
20:37 < ArgonneIntern> qeed
20:37 < qeed> still get that
20:37 < qeed> error
20:37 < ArgonneIntern> when you access the stuff in peice.go you aren't
typing peice.  ar eyou?
20:38 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has quit [Remote host closed
the connection]
20:38 < ArgonneIntern> cause you don't need to
20:38 < qeed> i tried piece.MemberHere and MemberHere i doesnt work
20:38 < ArgonneIntern> can you pastie the code and tell us what line has the
problem
20:39 < rael_wiki> I'm using the rpc package, to export a method it requires
two args.  I didn't need the first arg so I declared it as "v interface{}" ,
anything will be passed will be ignored
20:39 -!- smw [~stephen@unaffiliated/smw] has quit [Ping timeout: 246 seconds]
20:39 < exch> if both types Piece and Board are in package 'chess', you
don't have to refer to them with a package name (chess.Piece/chess.Board).  Just
refer to them as 'Piece' and 'Board'
20:39 < rael_wiki> but I get the following error: gob: wrong type received
for local value interface { }: bool
20:40 < qeed> ok thanks i fixed it
20:40 < rael_wiki> what is the correct way to handle such a situation?
20:40 < ArgonneIntern> what was it qeed
20:41 < qeed> i forgot to pass the piece.go to the compiler when i used
MemberHere rather than piece.MemberHer
20:41 < ArgonneIntern> heh
20:41 < ArgonneIntern> just barely missed the one combo that worked right
20:41 < qeed> is it standard practice for a standalone program, not lib to
be all in the same package
20:42 < qeed> i was under the assumption that each go file has there own
package kind of like c includes heh
20:42 < exch> If the code is not reusable, or only useful in that one app,
the just stick it in there
20:42 < ArgonneIntern> i would agree with exch
20:42 < ArgonneIntern> there really isn't any point in go if it's not
reusable
20:43 -!- pharris [~Adium@rhgw.opentext.com] has quit [Quit: Leaving.]
20:44 < rael_wiki> does anybody have any hint for me?
20:44 < kevlar_work> rael_wiki, make it a bool ;-)
20:44 < kevlar_work> func MyFunc(_ bool, myval Whatever) is perfectly legit.
20:44 -!- nicka [~nicka@unaffiliated/nicka] has quit [Ping timeout: 250 seconds]
20:45 < rael_wiki> kevlar_work: I was thinking the same but I was not sure
it was the right thing to do so I used interface{} to be more generic...
20:48 < kevlar_work> rael_wiki, I think for reflect.Call to work, it would
have to be a bool inside an interface{}, which the RPC is not smart enough to
generate.
20:49 -!- dreadlorde [dreadlorde@c-68-42-82-10.hsd1.mi.comcast.net] has quit [Ping
timeout: 258 seconds]
20:49 < kevlar_work> it would involve pulling the argument type, seeing if
it's an interface, and checking if the argument can be interfaced by that.
20:50 < kevlar_work> and then actually making an interface storing that
value.
20:50 < kevlar_work> probably doable, but it sounds like it's not done yet.
20:51 < kevlar_work> ArgonneIntern, if you follow the contributing
checklist, a small change like that (to bring linux up to speed with bsd) will
probably be accepted pretty quickly.
20:51 < kevlar_work> Unless they say no, but I am not sure why they would.
20:54 < rael_wiki> kevlar_work: I understand...
20:58 -!- r_linux [~r_linux@189.38.220.35] has quit [Ping timeout: 250 seconds]
20:59 -!- r_linux [~r_linux@static.200.198.180.250.datacenter1.com.br] has joined
#go-nuts
21:05 < qeed> ok so if a standalone app src should all be in the same
package, how does one do static functions like in C where the scope of it is just
file level
21:05 < exch> Go doesnt hve file-scope, just package-scope
21:05 < qeed> and is there anyway to namespace constants something like
a.Foo even though a.go and b.go share the same package
21:05 < qeed> ok
21:06 -!- fabled [~fabled@83.145.235.194] has quit [Quit: Ex-Chat]
21:07 < exch> constants have the same namespacing rules as anything else in
Go. e.g.: They belong to a package
21:07 < chomp> ArgonneIntern, you'll want to look at
src/pkg/syscall/syscall_linux.go
21:07 < ArgonneIntern> yea I just noticed that
21:07 < ArgonneIntern> the dev just replied to the report
21:08 < ArgonneIntern> i tried to do something worthwhile :( sorry
21:08 < chomp> ArgonneIntern, ?
21:08 < chomp> if you want Flock, implement Flock and submit it :)
21:08 < chomp> piece o cake
21:09 < ArgonneIntern> i submitted it already but I just edited zsyscall
linuxamd64 file
21:09 < ArgonneIntern> which isn't the right fix
21:09 < chomp> right
21:09 < chomp> so?
21:09 < ArgonneIntern> it works but it's not right
21:09 < chomp> you can do it right.
21:09 < ArgonneIntern> yea I just feel dumb for submitting the wrong fix
21:10 < ArgonneIntern> it was ven in the comments
21:10 < chomp> shrug
21:10 < ArgonneIntern> one of these days I'll submit right!
21:10 < ArgonneIntern> it will happen
21:10 < ArgonneIntern> hey at least this time it was a legitimate fix
21:11 < ArgonneIntern> well problem
21:11 < ArgonneIntern> not fix
21:13 < ArgonneIntern> oh wow, it even says unimplemented in
syscall_linux.go
21:13 < chomp> yarp
21:13 < ArgonneIntern> <- epic fail
21:13 < chomp> don't be so hard on yourself...
21:13 < chomp> yeesh
21:13 < ArgonneIntern> so what should I do, work on the implementation and
resubmit?
21:13 < chomp> you shouldnt need to work on any implementation
21:14 < chomp> im actually looking at that atm
21:14 -!- moraes [~moraes@189.103.188.201] has quit [Ping timeout: 264 seconds]
21:15 -!- tncardoso [~thiago@187.58.6.58] has quit [Quit: bye]
21:15 < chomp> lol appears to work
21:15 < chomp> yeah
21:15 < chomp> see all that // sys lines
21:15 < ArgonneIntern> yes
21:15 < chomp> add a line with //sys func Flock(fd int, how int) (errno in)
21:15 < chomp> and then run ./mksyscall.pl -l32 syscall_linux.go
syscall_linux_386.go
21:16 < chomp> err ./mksyscall.pl syscall_linux.go syscall_linux_amd64.go
for you i guess
21:17 < chomp> write the output to zsyscall_linux_amd64.go and run gomake
install
21:17 -!- telexicon [~telexicon@unaffiliated/chowmeined] has quit [Quit: Leaving]
21:17 < chomp> also that's errno int, not errno in ><
21:17 -!- napsy [~luka@88.200.96.18] has quit [Quit: Lost terminal]
21:20 < ArgonneIntern> shouldn't you omit the func
21:21 < ArgonneIntern> shouldn't it be //sys Flock(fd int, how int) (errno
int)
21:22 -!- jsj [~johan@78-70-253-105-no149.tbcn.telia.com] has quit [Remote host
closed the connection]
21:24 -!- chomp [~chomp@dap-209-166-184-50.pri.tnt-3.pgh.pa.stargate.net] has quit
[Quit: Leaving]
21:25 -!- huin [~huin@91.84.122.44] has quit [Quit: bedtime]
21:26 -!- cafesofie [~cafesofie@pool-173-77-24-106.nycmny.east.verizon.net] has
quit [Remote host closed the connection]
21:30 -!- pjacobs [~pjacobs@66.54.185.130] has quit [Ping timeout: 260 seconds]
21:35 < ArgonneIntern> chomp, so all those //sys functions just get
transloated to the same functions with the values given
21:35 < ArgonneIntern> in the mksyscall
21:35 < ArgonneIntern> that's actually kinda cool
21:36 -!- arun__ [~arun@e71020.upc-e.chello.nl] has quit [Changing host]
21:36 -!- arun__ [~arun@unaffiliated/sindian] has joined #go-nuts
21:42 -!- ijknacho [~goofy@71.123.134.24] has joined #go-nuts
21:48 -!- Project_2501 [~Marvin@82.84.82.112] has quit [Quit: E se abbasso questa
leva che succ...]
21:50 -!- ArgonneIntern [~gauge@mcswl183.mcs.anl.gov] has quit [Read error:
Operation timed out]
21:50 -!- meling [~meling@129.33.192.216] has joined #go-nuts
21:51 -!- dfr|mac [~dfr|work@nat/google/x-ogdctazdfuudckun] has joined #go-nuts
21:57 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
22:00 -!- sniper506th [~sniper506@rrcs-70-61-192-18.midsouth.biz.rr.com] has quit
[Quit: Leaving...]
22:00 -!- r_linux [~r_linux@static.200.198.180.250.datacenter1.com.br] has quit
[Quit: Lost terminal]
22:03 -!- dreadlorde [dreadlorde@c-68-42-82-10.hsd1.mi.comcast.net] has joined
#go-nuts
22:04 -!- sjbrown [~sjbrown@c-98-210-195-242.hsd1.ca.comcast.net] has joined
#go-nuts
22:04 < kevlar_work> can someone confirm for me this compiler bug:
https://gist.github.com/1081451
22:04 -!- sjbrown [~sjbrown@c-98-210-195-242.hsd1.ca.comcast.net] has left
#go-nuts []
22:05 < kevlar_work> I feel like I've got to be missing something silly...
22:05 -!- meling [~meling@129.33.192.216] has quit [Remote host closed the
connection]
22:07 -!- chadkouse [~Adium@rrcs-74-218-87-242.central.biz.rr.com] has quit [Quit:
Leaving.]
22:09 -!- awidegreen [~quassel@h-170-226.a212.priv.bahnhof.se] has quit [Ping
timeout: 240 seconds]
22:14 < vpit3833> kevlar_work: possibly, gccgo is able to compile, but not
6g
22:15 < kevlar_work> fun.
22:18 < vpit3833> and, fwiw, looks like the tip is in a flux atm ..  it
fails the http test
22:19 -!- franciscosouza [~francisco@201.7.186.67] has quit [Quit: franciscosouza]
22:20 -!- moraes [~moraes@189.103.188.201] has joined #go-nuts
22:20 < exch> kevlar_work: same here 6g fails (weekly.2011.07-07)
22:20 < kevlar_work> I tried at tip and weekly, both fail, so I submitted an
issue.
22:21 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by
peer]
22:25 -!- magn3ts [~magn3ts@ip68-103-225-65.ks.ok.cox.net] has joined #go-nuts
22:26 -!- dreadlorde [dreadlorde@c-68-42-82-10.hsd1.mi.comcast.net] has quit [Ping
timeout: 246 seconds]
22:33 -!- chomp [~chomp@c-67-186-35-69.hsd1.pa.comcast.net] has joined #go-nuts
22:35 -!- nicka [~nicka@unaffiliated/nicka] has joined #go-nuts
22:35 -!- angasule [~angasule@190.2.33.49] has joined #go-nuts
22:36 -!- dshep [~user@c-76-103-91-143.hsd1.ca.comcast.net] has joined #go-nuts
22:37 -!- dfr|mac [~dfr|work@nat/google/x-ogdctazdfuudckun] has quit [Ping
timeout: 246 seconds]
22:44 < jlaffaye> "you may have a private type with exported fields.  when
is that useful?" - good question!
22:47 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has quit [Ping timeout:
612 seconds]
22:49 -!- erus` [~chatzilla@host81-151-114-250.range81-151.btcentralplus.com] has
quit [Quit: ChatZilla 0.9.87 [Firefox 5.0/20110615151330]]
22:50 < |Craig|> Maybe if you put and instance of a private type as a public
field inside a public struct type (can you even do that?)
22:51 -!- crazy2be [~crazy2be@d75-152-167-124.abhsia.telus.net] has joined
#go-nuts
22:53 -!- franciscosouza [~francisco@187.105.25.184] has joined #go-nuts
22:55 -!- mjml [~joya@174.3.227.184] has quit [Ping timeout: 260 seconds]
22:58 -!- vmil86 [~vmil86@78.57.227.12] has quit [Ping timeout: 276 seconds]
22:59 -!- serialhex [~quassel@99-101-148-183.lightspeed.wepbfl.sbcglobal.net] has
quit [Read error: Connection reset by peer]
22:59 -!- Aram [~Aram@unaffiliated/aramdune] has quit [Quit: .]
23:00 < kevlar_work> it's useful, the problem is documenting it with godoc
23:00 -!- serialhex [~quassel@99-101-148-183.lightspeed.wepbfl.sbcglobal.net] has
joined #go-nuts
23:00 < kevlar_work> you can return nonexported types and you can take
nonexported types as arguments
23:01 < kevlar_work> you can use that to emulate an enum: type nonExported
int; const ( One nonExported = iota; Two; Three; ...  ) func Foo(x nonExported) {}
23:02 -!- jbooth1 [~jay@209.249.216.2] has quit [Quit: Leaving.]
23:03 < ijknacho> jlaffaye: private type w/ exported fields is useful if you
are json/gob serializing it
23:08 < jlaffaye> type assertions are more powerful than I first thought.
never had to use them yet though.
23:08 < jlaffaye> ijknacho: oh I see.
23:09 < ijknacho> you can gob encode private fields too, but for that you've
got to implement the GobEncoder interface on your type.
23:10 -!- telexicon [~telexicon@unaffiliated/chowmeined] has joined #go-nuts
23:15 -!- iant [~iant@nat/google/x-dohkgjyxvestqclr] has quit [Ping timeout: 264
seconds]
23:19 -!- qeed [~qeed@adsl-98-85-32-152.mco.bellsouth.net] has quit [Quit:
Leaving]
23:21 -!- niemeyer [~niemeyer@12.236.237.2] has quit [Ping timeout: 240 seconds]
23:25 -!- yogib [~yogib@dslb-188-100-004-241.pools.arcor-ip.net] has quit [Quit:
yogib]
23:30 -!- crazy2be [~crazy2be@d75-152-167-124.abhsia.telus.net] has quit [Remote
host closed the connection]
23:31 -!- iant1 [~iant@67.218.103.165] has joined #go-nuts
23:32 < kevlar_work> I find it endlessly amusing that you can use reflection
to access an unexported struct field.
23:32 < kevlar_work> Such a cheater move, lol.
23:34 -!- bugQ [~bug@c-71-195-207-34.hsd1.ut.comcast.net] has joined #go-nuts
23:36 < ijknacho> I didn't realize you could
23:36 < kevlar_work> it's a really dirty trick and you should never use it.
23:37 < bugQ> whaaaat is ? >:)
23:37 < kevlar_work> one could probably only justify using it in some sort
of unit test that needs to poke in another package's internals
23:37 < kevlar_work> or to get at a field at release that will be exported
at tip
23:37 < nicka> you should never use it and expect any sympathy when it break
23:37 < nicka> s
23:38 < kevlar_work> indeed.
23:38 < kevlar_work> I'd never use it to cheat your way into any packages
you didn't write, and if you wrote it, you can make a cleaner way to get at it.
23:38 < kevlar_work> It's just amusing that it's there.
--- Log closed Thu Jul 14 00:00:56 2011