--- Log opened Wed Sep 22 00:00:07 2010 00:01 -!- exch [~exch@h144170.upc-h.chello.nl] has joined #go-nuts 00:03 -!- Project-2501 [~Marvin@82.84.66.105] has quit [Quit: E se abbasso questa leva che succ...] 00:04 -!- Guest82356 [~eric@WL-202-181.CINE.HMC.Edu] has quit [Ping timeout: 264 seconds] 00:05 -!- gonsalu [~gonsalu@static.238.120.46.78.clients.your-server.de] has quit [Ping timeout: 245 seconds] 00:07 -!- dj2 [~dj2@CPE001f5b35feb4-CM0014048e0344.cpe.net.cable.rogers.com] has joined #go-nuts 00:08 -!- ExtraSpice [~XtraSpice@88.118.34.223] has quit [Ping timeout: 240 seconds] 00:11 -!- Guest82356 [~eric@WL-202-181.CINE.HMC.Edu] has joined #go-nuts 00:12 -!- welterde [~welterde@not.welterde.de] has joined #go-nuts 00:13 -!- jhseu [~jhseu@nat/google/x-wyksuomvrbxarbje] has joined #go-nuts 00:15 -!- gonsalu [~gonsalu@static.238.120.46.78.clients.your-server.de] has joined #go-nuts 00:16 -!- Tv [~tv@gige.bur.digisynd.com] has quit [Ping timeout: 276 seconds] 00:20 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has joined #go-nuts 00:21 -!- Guest82356 [~eric@WL-202-181.CINE.HMC.Edu] has quit [Ping timeout: 272 seconds] 00:24 -!- mbohun [~mbohun@eth649.act.adsl.internode.on.net] has joined #go-nuts 00:26 -!- mbohun [~mbohun@eth649.act.adsl.internode.on.net] has quit [Client Quit] 00:26 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has joined #go-nuts 00:29 -!- major_majors [~major_maj@173-10-44-57-Michigan.hfc.comcastbusiness.net] has joined #go-nuts 00:29 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has quit [Ping timeout: 272 seconds] 00:29 -!- major_majors [~major_maj@173-10-44-57-Michigan.hfc.comcastbusiness.net] has quit [Read error: Connection reset by peer] 00:30 -!- major_majors [~major_maj@173-10-44-57-Michigan.hfc.comcastbusiness.net] has joined #go-nuts 00:33 -!- peterdn [~peterdn@host81-159-106-59.range81-159.btcentralplus.com] has quit [Read error: Connection reset by peer] 00:34 -!- iant [~iant@67.218.105.33] has quit [Quit: Leaving.] 00:37 -!- nictuku [~nictuku@cetico.org] has joined #go-nuts 00:38 -!- gregc [~gregc@c-69-138-148-85.hsd1.tn.comcast.net] has joined #go-nuts 00:39 -!- jhawk28 [~jhawk28@user-142gfte.cable.mindspring.com] has joined #go-nuts 00:40 -!- jhawk28_ [~jhawk28@user-142gfte.cable.mindspring.com] has joined #go-nuts 00:40 -!- jhawk28 [~jhawk28@user-142gfte.cable.mindspring.com] has quit [Read error: Connection reset by peer] 00:40 -!- major_majors [~major_maj@173-10-44-57-Michigan.hfc.comcastbusiness.net] has quit [Quit: major_majors] 00:42 -!- exch [~exch@h144170.upc-h.chello.nl] has quit [Ping timeout: 240 seconds] 00:47 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts 00:53 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 252 seconds] 00:53 < plexdev> http://is.gd/fmcqS by [Andrew Gerrand] in 2 subdirs of go/ -- doc: variable-width layout 00:56 -!- jhawk28_ [~jhawk28@user-142gfte.cable.mindspring.com] has quit [Read error: Connection reset by peer] 00:56 -!- major_majors [~major_maj@173-10-44-57-Michigan.hfc.comcastbusiness.net] has joined #go-nuts 00:57 -!- jhawk28 [~jhawk28@user-142gfte.cable.mindspring.com] has joined #go-nuts 00:58 < gregc> My Go program has a memory leak, but I can't figure out what is causing it... 00:59 < gregc> I can use 6prof to see which functions are hogging compute time... (and I recently figured out how to have pprof output nice looking graphviz graphs.) 01:00 < gregc> But I don't know how to find the memory leak. 01:00 < gregc> I don't know much about GDB, but it seems like it might be useful... Is it possible to use GDB with Go? 01:01 < jhawk28> found this tshirt at Target today... http://photos.fosterj.com/Children/Caleb/13839580_bXCdy#1017353254 01:01 -!- tux21b [~christoph@90.146.60.30] has quit [Ping timeout: 240 seconds] 01:01 < jhawk28> I couldn't resist 01:01 < gregc> That's fun. You bought it then? 01:01 < jhawk28> of course 01:03 < jhawk28> gregc: I think gdb works if you compile with gccgo 01:06 < jhawk28> http://golang.org/doc/gccgo_install.html#Debugging 01:09 < gregc> Okay, I will try using gccgo sometime then. Thanks! 01:10 < jhawk28> not sure, but can you use http://golang.org/pkg/runtime/pprof/ 01:17 < gregc> Cool, I will try that too, thanks! 01:18 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 01:26 -!- Bombe [~droden@weltgehirnmaschine.de] has quit [Changing host] 01:26 -!- Bombe [~droden@freenet/developer/Bombe] has joined #go-nuts 01:38 < enferex> why hello jhawk28 01:38 -!- artefon [~thiago@189.107.182.206] has quit [Remote host closed the connection] 01:40 < jhawk28> hey enferex 01:41 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Quit: slashus2] 01:46 -!- Tv [~tv@76.168.227.45] has joined #go-nuts 01:48 -!- jA_cOp__ [~yakobu@ti0043a380-1568.bb.online.no] has quit [Read error: Connection reset by peer] 01:48 -!- jA_cOp__ [~yakobu@ti0043a380-1568.bb.online.no] has joined #go-nuts 01:51 < gregc> Okay... so I threw a call to pprof.WriteHeapSize(file) into my program, and I can look at the resulting files with pprof.. 01:52 < gregc> But they say that the whole heap is 140 Mb 01:52 < gregc> And I know exactly where 100 Mb is coming from. (A transposition table.) 01:52 < gregc> And the other 40 Mb seems reasonable for the rest of the program to be using. 01:53 < gregc> But, the System Monitor says that my process is using up 350 Mb!!!! 01:53 < gregc> So... I don't know what is happening to those other 200 Mb. 01:55 < gregc> This is kind of frustrating... 01:55 < plexdev> http://is.gd/fmgdX by [Andrew Gerrand] in go/misc/dashboard/builder/ -- misc/dashboard/builder: fix bug that caused old revisions to be rebuilt 01:57 < Tv> gregc: there's other kinds of "using memory" than heap -- maybe it's mmaped libraries 01:58 < gregc> Hmm, what are mmaped libraries? 01:59 < enferex> gregc: memory-mapped into the heap 02:00 < enferex> meaning tha the library is resident in memory and does not have to be plucked from disk (well unless its being swapped) 02:00 < gregc> Okay. I don't think I'm using any library that is out of the ordinary though. 02:01 < Tv> ordinary libraries are mmapped ;) 02:02 < Tv> you need to understand what your "System Monitor" is telling you, to make progress 02:03 < gregc> (It's just the default Ubuntu Gnome system monitor.) 02:07 -!- jhawk28 [~jhawk28@user-142gfte.cable.mindspring.com] has quit [Remote host closed the connection] 02:08 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Read error: Operation timed out] 02:09 < gregc> thanks for the help jhawk28, enferex and Tv 02:09 < gregc> i'll worry about this another time 02:09 < gregc> it's bedtime for me :) 02:09 -!- gregc [~gregc@c-69-138-148-85.hsd1.tn.comcast.net] has quit [Quit: Leaving] 02:11 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has joined #go-nuts 02:13 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts 02:19 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts 02:19 -!- mode/#go-nuts [+v iant] by ChanServ 02:20 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 272 seconds] 02:28 < plexdev> http://is.gd/fmiAB by [Nigel Tao] in 2 subdirs of go/src/pkg/exp/ -- exp/4s, exp/nacl/av: sync to recent exp/draw changes. 02:43 -!- plainhao [~plainhao@mail.xbiotica.com] has quit [Quit: plainhao] 02:44 < plexdev> http://is.gd/fmjsK by [Russ Cox] in 3 subdirs of go/ -- cgo: bug fixes 02:45 < plexdev> http://is.gd/fmjsO by [Russ Cox] in 2 subdirs of go/ -- build: fixes for native arm build 02:45 < enferex> Im looking more into go, specifically the basic escape analysis used. I know a basic form exists, you can return an address of a stack/local variable. Ive browsed walk.c for the garbage collector. But aside from that, wouldn't there be a separate escape analysis performed at compile-time? 02:46 < Namegduf> enferex: The escape analysis at prsent is "do you take the address of the variable" 02:46 < Namegduf> If you do, it is allocated on the stack. 02:46 < Namegduf> Er, heap. 02:49 < enferex> Namegduf: thank you 02:49 < enferex> Namegduf: Where would this be located in the source tree? 02:49 < Namegduf> I'm afraid I don't know. 02:50 < enferex> thank you 02:50 < enferex> i think gc/walk.c is the spot 02:51 -!- tav [~tav@2001:0:53aa:64c:0:3ffa:a3f8:9e09] has quit [Ping timeout: 272 seconds] 02:54 -!- tav [~tav@2001:0:53aa:64c:0:3ffa:a3f8:bb3e] has joined #go-nuts 02:54 -!- ako [~nya@fuld-4d00d47d.pool.mediaWays.net] has joined #go-nuts 02:56 -!- jA_cOp__ [~yakobu@ti0043a380-1568.bb.online.no] has quit [Read error: Connection reset by peer] 02:56 -!- dju_ [dju@fsf/member/dju] has joined #go-nuts 02:57 -!- dju [dju@fsf/member/dju] has quit [Ping timeout: 272 seconds] 02:57 -!- aho [~nya@fuld-4d00d159.pool.mediaWays.net] has quit [Ping timeout: 252 seconds] 02:57 -!- jA_cOp__ [~yakobu@ti0043a380-1568.bb.online.no] has joined #go-nuts 03:00 -!- dj2 [~dj2@CPE001f5b35feb4-CM0014048e0344.cpe.net.cable.rogers.com] has left #go-nuts [] 03:00 -!- dj2 [~dj2@CPE001f5b35feb4-CM0014048e0344.cpe.net.cable.rogers.com] has joined #go-nuts 03:01 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 276 seconds] 03:01 < plexdev> http://is.gd/fmknH by [Roger Peppe] in go/src/pkg/strings/ -- strings: fix minor bug in LastIndexFunc 03:09 -!- ako [~nya@fuld-4d00d47d.pool.mediaWays.net] has quit [Ping timeout: 252 seconds] 03:20 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 03:24 -!- aho [~nya@fuld-4d00d57a.pool.mediaWays.net] has joined #go-nuts 03:37 -!- dju_ [dju@fsf/member/dju] has quit [Ping timeout: 252 seconds] 03:37 -!- boscop_ [~boscop@f055115022.adsl.alicedsl.de] has joined #go-nuts 03:39 -!- boscop__ [~boscop@f055115022.adsl.alicedsl.de] has quit [Ping timeout: 240 seconds] 03:40 -!- dju [dju@fsf/member/dju] has joined #go-nuts 03:43 -!- major_majors [~major_maj@173-10-44-57-Michigan.hfc.comcastbusiness.net] has quit [Quit: major_majors] 03:45 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit: This computer has gone to sleep] 03:53 -!- sin3141592 [~hagbard@dslb-084-058-106-077.pools.arcor-ip.net] has quit [Ping timeout: 252 seconds] 03:58 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has quit [Ping timeout: 264 seconds] 04:19 -!- Venom_bbl [~pjacobs@66.54.185.131] has quit [Quit: Venom_bbl] 04:25 -!- aho [~nya@fuld-4d00d57a.pool.mediaWays.net] has quit [Quit: EXEC_over.METHOD_SUBLIMATION] 04:29 -!- dj2 [~dj2@CPE001f5b35feb4-CM0014048e0344.cpe.net.cable.rogers.com] has quit [Quit: dj2] 04:30 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has quit [Ping timeout: 252 seconds] 04:31 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has joined #go-nuts 04:39 -!- piyushmishra [~piyushmis@117.200.230.107] has joined #go-nuts 04:41 -!- dju [dju@fsf/member/dju] has quit [Read error: Connection reset by peer] 04:42 -!- dju [dju@fsf/member/dju] has joined #go-nuts 04:46 -!- dju_ [dju@fsf/member/dju] has joined #go-nuts 04:46 -!- dju [dju@fsf/member/dju] has quit [Read error: Connection reset by peer] 04:53 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has joined #go-nuts 05:01 -!- scm [justme@d057203.adsl.hansenet.de] has quit [Ping timeout: 276 seconds] 05:03 -!- scm [justme@d070205.adsl.hansenet.de] has joined #go-nuts 05:05 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 05:17 -!- dju [dju@fsf/member/dju] has joined #go-nuts 05:18 -!- dju_ [dju@fsf/member/dju] has quit [Read error: Connection reset by peer] 05:19 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 264 seconds] 05:22 < plexdev> http://is.gd/fmrP3 by [Andrew Gerrand] in go/misc/dashboard/builder/ -- misc/dashboard/builder: -cmd for user-specified build command 05:31 -!- dacc [~Adium@D-128-95-10-189.dhcp4.washington.edu] has left #go-nuts [] 05:32 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has quit [Quit: Morten. Desu~] 05:35 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has joined #go-nuts 05:36 -!- piyushmishra [~piyushmis@117.200.230.107] has quit [Ping timeout: 272 seconds] 05:39 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has quit [Remote host closed the connection] 05:39 < plexdev> http://is.gd/fmsL7 by [Russ Cox] in 4 subdirs of go/ -- build: make all.bash run on Ubuntu ARM 05:39 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has joined #go-nuts 05:47 -!- jhh [~jhh@g228200103.adsl.alicedsl.de] has joined #go-nuts 05:48 -!- ShadowIce [~pyoro@HSI-KBW-109-193-120-162.hsi7.kabel-badenwuerttemberg.de] has joined #go-nuts 05:48 -!- ShadowIce [~pyoro@HSI-KBW-109-193-120-162.hsi7.kabel-badenwuerttemberg.de] has quit [Changing host] 05:48 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts 05:49 -!- tvw [~tv@e176001035.adsl.alicedsl.de] has joined #go-nuts 05:55 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has quit [Ping timeout: 252 seconds] 06:04 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Remote host closed the connection] 06:05 -!- piyushmishra [~piyushmis@117.200.226.115] has joined #go-nuts 06:06 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts 06:11 < plexdev> http://is.gd/fmuBk by [Anthony Martin] in go/src/pkg/fmt/ -- fmt: support '*' for width or precision 06:20 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 06:28 < plexdev> http://is.gd/fmvvL by [Robert Griesemer] in 2 subdirs of go/src/pkg/ -- suffixarray: a package for creating suffixarray-based indexes 06:28 < plexdev> http://is.gd/fmvvT by [Andrew Gerrand] in go/src/pkg/http/ -- http: escape _all_ reserved characters as per the RFC 06:29 -!- ssjones [~ssjones@67-61-100-203.cpe.cableone.net] has quit [Read error: Connection reset by peer] 06:32 -!- piyushmishra [~piyushmis@117.200.226.115] has quit [Ping timeout: 240 seconds] 06:34 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Ping timeout: 240 seconds] 06:42 -!- ssjones [~ssjones@67-61-100-203.cpe.cableone.net] has joined #go-nuts 06:46 -!- piyushmishra [~piyushmis@117.200.230.0] has joined #go-nuts 06:52 -!- piyushmishra [~piyushmis@117.200.230.0] has quit [Ping timeout: 240 seconds] 06:56 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts 06:57 -!- synth [~cb@obfuscated.us] has quit [Ping timeout: 264 seconds] 06:58 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has joined #go-nuts 06:59 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts 07:00 < plexdev> http://is.gd/fmxlJ by [Andrew Gerrand] in go/src/pkg/http/ -- http: don't always escape all reserved chars (fix build) 07:13 -!- piyushmishra [~piyushmis@117.200.230.37] has joined #go-nuts 07:17 -!- piyushmishra [~piyushmis@117.200.230.37] has quit [Ping timeout: 240 seconds] 07:18 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has quit [Quit: Morten. Desu~] 07:22 -!- ucasano [~ucasano@151.12.47.139] has joined #go-nuts 07:22 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has quit [Ping timeout: 272 seconds] 07:27 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has joined #go-nuts 07:37 -!- jmettraux [~jmettraux@211.19.55.177] has quit [Remote host closed the connection] 07:38 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Read error: Connection reset by peer] 07:41 -!- piyushmishra [~piyushmis@117.200.225.142] has joined #go-nuts 07:48 -!- DerHorst [~Horst@e176103061.adsl.alicedsl.de] has joined #go-nuts 07:52 -!- piyushmishra [~piyushmis@117.200.225.142] has quit [Quit: Leaving.] 07:52 -!- piyushmishra [~piyushmis@117.200.225.142] has joined #go-nuts 07:56 -!- photron [~photron@port-92-201-17-202.dynamic.qsc.de] has joined #go-nuts 08:02 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 08:07 -!- xb95 [~weechat@dreamwidth/staff/mark] has quit [Ping timeout: 245 seconds] 08:08 -!- xb95 [~weechat@xb95.com] has joined #go-nuts 08:12 < enferex> Question about the plan9 compiler object file. What format is it in. Is there any any doc explaining the format of this file, alternatively I have been investigting how the object file is produced, e.g. src/cmd/gc/obj.c 08:12 -!- sacho [~sacho@213.91.244.15] has joined #go-nuts 08:14 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Quit: slashus2] 08:22 -!- Fish9 [~Fish@86.65.182.207] has quit [Remote host closed the connection] 08:23 -!- jA_cOp__ [~yakobu@ti0043a380-1568.bb.online.no] has quit [Quit: Leaving] 08:25 -!- virtualsue [~chatzilla@nat/cisco/x-drikdnmtpqldtpib] has joined #go-nuts 08:26 -!- piyushmishra [~piyushmis@117.200.225.142] has quit [Ping timeout: 272 seconds] 08:27 -!- Fish9 [~Fish@86.65.182.207] has joined #go-nuts 08:32 -!- dju [dju@fsf/member/dju] has quit [Read error: Connection reset by peer] 08:32 -!- dju_ [dju@fsf/member/dju] has joined #go-nuts 08:36 -!- ucasano [~ucasano@151.12.47.139] has quit [Quit: ucasano] 08:37 -!- ucasano [~ucasano@151.12.47.139] has joined #go-nuts 08:39 -!- piyushmishra [~piyushmis@117.200.224.69] has joined #go-nuts 08:43 -!- enferex [~enferex@users.757.org] has quit [Quit: Changing server] 08:46 -!- enferex [~enferex@users.757.org] has joined #go-nuts 08:46 -!- piyushmishra [~piyushmis@117.200.224.69] has quit [Read error: Connection reset by peer] 08:51 -!- ikaros [~ikaros@dslb-094-219-213-123.pools.arcor-ip.net] has joined #go-nuts 09:02 -!- piyushmishra [~piyushmis@117.200.224.179] has joined #go-nuts 09:03 * nsf updated the README for gocode, now with bells and whistles: http://github.com/nsf/gocode/blob/master/README.md 09:03 < nsf> :P 09:05 -!- dju_ [dju@fsf/member/dju] has quit [Ping timeout: 265 seconds] 09:08 -!- ExtraSpice [~XtraSpice@88.118.34.223] has joined #go-nuts 09:11 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has joined #go-nuts 09:12 -!- virtualsue [~chatzilla@nat/cisco/x-drikdnmtpqldtpib] has quit [Ping timeout: 252 seconds] 09:16 -!- ikaros [~ikaros@dslb-094-219-213-123.pools.arcor-ip.net] has quit [Quit: Leave the magic to Houdini] 09:16 -!- dju [dju@fsf/member/dju] has joined #go-nuts 09:16 -!- ikaros [~ikaros@2001:41b8:9bf:fe04:34ca:faff:fec5:3841] has joined #go-nuts 09:17 -!- Project_2501 [~Marvin@82.84.66.105] has joined #go-nuts 09:19 -!- piyushmishra [~piyushmis@117.200.224.179] has quit [Quit: Leaving.] 09:21 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 264 seconds] 09:22 -!- piyushmishra [~piyushmis@117.200.224.179] has joined #go-nuts 09:24 -!- piyushmishra [~piyushmis@117.200.224.179] has quit [Read error: Connection reset by peer] 09:26 -!- piyushmishra [~piyushmis@117.200.226.161] has joined #go-nuts 09:33 -!- tux21b [~christoph@90.146.60.30] has joined #go-nuts 09:34 < tux21b> hi again :) 09:34 < tux21b> is it already possible to compile go sources inside of go? 09:35 < tux21b> e.g. some kind of go.Compile(source) function? :) 09:36 < Tonnerre> .oO(Gompiler) 09:37 < tux21b> »gompiler« sounds create, but that term isn't indexed by google right now. was it just a brilliant idea of you? :) 09:38 -!- ukai [~ukai@nat/google/x-vfuwytcvnyndpqae] has quit [Ping timeout: 265 seconds] 09:38 < Tonnerre> Precisely 09:38 < nsf> gompiler.. I like it 09:39 < nsf> tux21b: no, it's not possible currently 09:39 < nsf> and probably will never be 09:39 < Tonnerre> I guess with the llvm implementation that goal gets closer 09:39 < tux21b> because dynamic loading isn't possible right now too? 09:39 < Tonnerre> nsf, sure? 09:39 < nsf> Tonnerre: I think so 09:40 < Tonnerre> I would have thought it's sufficiently simple to abuse llvm 09:40 < nsf> tux21b: well, everything is possible, but there is nothing usable yet 09:40 < nsf> except the gccgo 09:40 < nsf> it is able to use .so 09:41 < tux21b> so, as soon as there is dynamic loading (in 6g) and an go binding for 6g it will be possible, won't it? 09:41 < nsf> no 09:41 < nsf> in order to compile go code on the fly you need to have: 09:42 < nsf> a) the compiler built-in 09:42 < nsf> b) the access to the standard library 09:42 < nsf> Go is not a python or ruby or even java/.NET 09:42 < nsf> it's a compiled language 09:43 < tux21b> i know, but i would like to have a compiled language which is behaving like Python :D 09:43 < Tonnerre> Well but maybe with llvm and compiling to an anonymous function… 09:43 < nsf> which means that the runtime is so tiny that it fits inside each executable 09:43 < nsf> tux21b: "behaving like Python" is too abstract 09:43 < nsf> in a wide sense in means being slow also 09:43 < Tonnerre> I wouldn't want Go to behave like Python ;) 09:43 < Namegduf> You want to have a compiled language which isn't compiled? 09:44 < Tonnerre> nsf, and inconsistent 09:44 < tux21b> i know, i just would like to be able to compile on the fly 09:44 < nsf> it* 09:44 < Namegduf> You want a compiled language which lets you add code on the fly. 09:44 < Namegduf> Not a JITed language, but a true compiled language? 09:44 < Namegduf> That's... well, a tall order. 09:45 < Namegduf> And not something you can straightforwardly do in an equivalent fashion to non-compiled languages. 09:45 < Tonnerre> Namegduf, well, I think that it would be possible with an (external) llvm to compile a go object and load it and run a function from it 09:46 < Namegduf> Yeah. 09:46 < tux21b> but i don't see the problem. assuming i've a string with a source, then i might be able to invoke 6g (e.g. with popen, as long as there are no bindings) to create a module 09:46 < nsf> tux21b: that will be possible 09:46 < tux21b> and after that, assuming that go will support dynamic loading once, i might be able to load it 09:47 < nsf> but it adds requirement for users of your application 09:47 < nsf> of having Go compiler environment installed 09:47 < tux21b> but it would be possible, wouldn't it? (assuming the dynamic loading part) 09:47 < nsf> yes 09:48 < tux21b> and instead of "Popen" there might be once a 6g package with a Compile function and probably a CompileAndLoad() 09:48 < tux21b> which would be exactly what i want :D 09:48 < nsf> I don't think so 09:49 < nsf> well, techinally nothing stops you from writing one 09:49 < nsf> but I don't think that go devs will do that 09:50 < nsf> maybe I'm wrong 09:50 < tux21b> let's see. you can never know ;) 09:50 < nsf> true 09:53 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3] 09:58 -!- peterdn [~peterdn@host81-159-106-59.range81-159.btcentralplus.com] has joined #go-nuts 09:58 -!- wrtp [~rog@92.17.36.40] has joined #go-nuts 09:59 -!- photron [~photron@port-92-201-17-202.dynamic.qsc.de] has quit [Ping timeout: 240 seconds] 09:59 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts 10:01 -!- tsdh [~user@tsdh.uni-koblenz.de] has joined #go-nuts 10:04 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 10:04 -!- ukai [~ukai@nat/google/x-fnmoyqqbagltusyv] has joined #go-nuts 10:25 -!- awidegreen [~quassel@62.176.237.78] has joined #go-nuts 10:30 -!- exch [~exch@h144170.upc-h.chello.nl] has joined #go-nuts 10:36 -!- atsampson [~ats@94-194-126-16.zone8.bethere.co.uk] has quit [Quit: Reconnecting] 10:36 -!- atsampson [~ats@94-194-126-16.zone8.bethere.co.uk] has joined #go-nuts 10:50 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 10:51 -!- piyushmishra [~piyushmis@117.200.226.161] has quit [Quit: Leaving.] 10:54 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has quit [Quit: Leaving] 11:04 -!- napsy [~luka@88.200.96.18] has quit [Read error: Operation timed out] 11:14 -!- prntscr [~prn@unaffiliated/prn] has joined #go-nuts 11:15 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has joined #go-nuts 11:16 -!- Cricket [~gallo@shellium/member/titan] has joined #go-nuts 11:28 -!- prntscr [~prn@unaffiliated/prn] has left #go-nuts ["Leaving"] 11:28 -!- tvw [~tv@e176001035.adsl.alicedsl.de] has quit [Remote host closed the connection] 11:41 -!- artefon [~thiago@189.107.182.206] has joined #go-nuts 11:46 -!- navigator [~navigator@p54896ED1.dip.t-dialin.net] has joined #go-nuts 11:47 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has quit [Quit: Leaving] 11:52 -!- snearch [~snearch@f053002205.adsl.alicedsl.de] has joined #go-nuts 11:55 -!- skejoe [~skejoe@188.114.142.231] has joined #go-nuts 11:57 -!- ExtraSpice [~XtraSpice@88.118.34.223] has quit [Quit: Leaving] 12:06 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 12:09 -!- mattn_jp [~mattn_jp@180-144-149-93f1.hyg1.eonet.ne.jp] has joined #go-nuts 12:09 -!- Cricket [~gallo@shellium/member/titan] has quit [Quit: Leaving] 12:12 -!- tvw [~tv@212.79.9.150] has joined #go-nuts 12:14 -!- ExtraSpice [~XtraSpice@88.118.34.223] has joined #go-nuts 12:20 -!- melba [~a@85.11.190.15] has joined #go-nuts 12:20 -!- melba [~a@85.11.190.15] has quit [Changing host] 12:20 -!- melba [~a@unaffiliated/lazz0] has joined #go-nuts 12:22 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by peer] 12:31 -!- HollyRain [~HollyRain@87.223.116.212] has joined #go-nuts 12:32 -!- tsdh [~user@tsdh.uni-koblenz.de] has quit [Quit: Goodbye guys!] 12:33 < HollyRain> hi! which is the best way to get the first line of a file (and, in my case, the only one)? file.Read or bufio? 12:34 < nsf> I think bufio 12:34 < HollyRain> ok, thx 12:34 < nsf> and if you know that this is a shebang line for example 12:34 < nsf> which usually has more or less the same size 12:35 < nsf> you can tweak internal buffer size for bufio reader 12:35 < nsf> but that's an extreme 12:35 < nsf> you don't need that probably :) 12:35 -!- Shyde [~shyde@HSI-KBW-078-043-070-132.hsi4.kabel-badenwuerttemberg.de] has joined #go-nuts 12:36 < HollyRain> not, at least not by now but it's god to know it 12:37 < enferex> I cannot seem to find a format specification for the PLan9 object files, that the gc produces. Any hints? 12:37 < nsf> enferex: have you asked on the ML? 12:38 < enferex> No I have not. 12:38 < enferex> Probably a good idea ;) 12:38 < nsf> you should try that :) 12:47 -!- melba [~a@unaffiliated/lazz0] has quit [Ping timeout: 265 seconds] 12:47 -!- niemeyer [~niemeyer@187.23.154.182] has joined #go-nuts 12:50 -!- plainhao [~plainhao@mail.xbiotica.com] has joined #go-nuts 12:51 -!- skejoe [~skejoe@188.114.142.231] has quit [Quit: leaving] 12:52 -!- snearch [~snearch@f053002205.adsl.alicedsl.de] has quit [Quit: Verlassend] 12:56 -!- HollyRain [~HollyRain@87.223.116.212] has left #go-nuts [] 12:59 -!- niemeyer_ [~niemeyer@189.27.137.230.dynamic.adsl.gvt.net.br] has joined #go-nuts 13:00 < nsf> hehe, I don't use goinstall and because of that I have to fix others people code, because they use weird import specs with websites in their names 13:00 < nsf> :\ 13:02 -!- niemeyer [~niemeyer@187.23.154.182] has quit [Ping timeout: 240 seconds] 13:02 < Boney> j/win 1 13:02 < Boney> err. 13:05 < skelterjohn> nsf: I use goinstall, but also the packages I create have the goinstall import as their target 13:05 -!- aho [~nya@fuld-4d00d57a.pool.mediaWays.net] has joined #go-nuts 13:05 < skelterjohn> so it's consistent whether you install it with goinstall or make install 13:06 < nsf> yes, but I don't like these ugly names 13:06 < nsf> because I can't remember them 13:06 < skelterjohn> i do a lot of copy/paste, it's true 13:06 < nsf> of course I can add another autocompletion feature for the gocode 13:06 < nsf> but I don't think it's a good idea :) 13:07 < skelterjohn> i think having it be able to auto-complete imports you've typed in the past is a fine idea 13:08 < nsf> I'm thinking about scanning current directory and go std lib dir 13:08 < nsf> and that's not really a problem 13:08 < nsf> the main problem is a context detection 13:09 < nsf> I need to detect somehow that the user's cursor is inside the import statement 13:09 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined #go-nuts 13:09 < skelterjohn> right - that's why i said ones you've typed in the past 13:09 < skelterjohn> rather than just ones that are available 13:09 < skelterjohn> oh, i didn't understand you 13:09 < nsf> and he/she wants the autocompletion for that 13:09 -!- artefon [~thiago@189.107.182.206] has quit [Ping timeout: 252 seconds] 13:09 -!- artefon [~thiago@189.107.166.24] has joined #go-nuts 13:09 < skelterjohn> why is that a hard problem? 13:09 < nsf> I think that's the most tricky part for autocompletion 13:10 < nsf> detecting a context and converting a broken source code to the correctly parseable 13:10 < skelterjohn> why is it harder than similar things you've already done? 13:10 < nsf> skelterjohn: because things I've done are stupid :) 13:10 < nsf> it's very easy to break it 13:10 < skelterjohn> :) 13:11 < nsf> for example something like: 'myObject .method().' 13:11 < nsf> will not work 13:11 < nsf> because of the space in the middle 13:12 < nsf> current context detection is very naive 13:12 -!- melba [melba@unaffiliated/lazz0] has joined #go-nuts 13:12 -!- melba [melba@unaffiliated/lazz0] has quit [Client Quit] 13:12 < nsf> I think I need to improve it somehow 13:13 < nsf> well, in a perfect sense I need to implement tokenizer that works backwards :) 13:13 < skelterjohn> lol 13:13 < skelterjohn> not sure what that means 13:13 < skelterjohn> but it sounds appropriate 13:13 < nsf> go/scanner 13:13 < nsf> but works backwards 13:14 < skelterjohn> i understood the words 13:14 < nsf> I don't even know is it possible or not :) 13:14 < skelterjohn> just not the meaning 13:14 < nsf> well, token definition is described in terms of regular expressions usually 13:14 < nsf> it it's possible to make a reverse regular expression 13:15 < nsf> then I think it's possible to implement tokenizer that works backwards :) 13:15 < exch> I presume you mean it tokenizes the code from the cursor position (or at least the nearest word/token boundary to that) and then back to the start of the code until you find something you can use? 13:15 < nsf> yes 13:15 < nsf> the problem with go, that it also uses ';' insertion 13:15 < nsf> it can be a problem 13:16 < nsf> I think I will have to improvise somehow 13:16 < nsf> like finding a good point 13:16 < nsf> and tokenizing in a usual way 13:16 < nsf> and then processing tokens in a reverse direction 13:17 < exch> hmm 13:17 < nsf> maybe the beginning of the line is good for a role of that point 13:18 < wrtp> nsf: that's exactly what i was going to suggest... 13:18 < nsf> :) 13:18 < wrtp> or maybe the beginning of the nearest braced-block 13:18 < nsf> yep 13:18 < nsf> that's true too 13:18 < nsf> in fact what I need is a symbol 13:18 < nsf> that can't be a part of the expression 13:19 < nsf> and "expression" in slightly different sense 13:19 -!- synth [~cb@obfuscated.us] has joined #go-nuts 13:19 < nsf> for example: a = b.myField + c.myField. 13:19 < wrtp> life becomes easier if the source code is parseable in its entirety 13:19 < nsf> here the symbol is '+' 13:20 < nsf> because I will work only with 'c.myField.' expression 13:20 -!- nictuku [~nictuku@cetico.org] has quit [Ping timeout: 252 seconds] 13:20 < nsf> nope, I guess the backwards thing is a better idea 13:20 < wrtp> yes, that'll work because go subexpressions are independent of the enclosing expression... i think 13:21 < wrtp> rather than write a backwards parser, you could just scan backwards, doing a forwards scan each time, until the parse tree holds the point you're interested in 13:21 < nsf> you see, currently I'm following simple scheme: if I see ')' I'm skipping to the corresponding '(', the same for '['.. other valid entities are an identifier and a dot ('.') 13:21 < nsf> and that's basically it 13:22 < nsf> all I need to do 13:22 < nsf> is to add a space skipper here 13:22 < nsf> in order to be able to process things like 'c .myField().' 13:22 < nsf> but I have to be careful on the other hand 13:22 < nsf> 'c c.MyField().' 13:23 < nsf> ugh.. so.. yeah 13:23 < nsf> I should take the tokens-based approach 13:23 < nsf> and be a bit smarter 13:23 < wrtp> i don't think you have to be so clever... 13:23 < nsf> yes, there is not so many cases 13:23 < nsf> are* 13:23 < wrtp> just use the existing parser, but start it from successively earlier positions in the source code 13:24 < nsf> hm.. 13:24 < nsf> probably a good idea too 13:24 < wrtp> it's O(n^2) but n will be small 13:24 < wrtp> then you don't have to update your code when the parser changes 13:24 < nsf> but that's the part of the problem 13:24 < nsf> the other major issue that bothers me 13:24 < nsf> is converting broken code to a correctly parseable code 13:25 < nsf> it gives a lot of errors in gocode 13:25 < exch> you have to understand what exactly is broken 13:25 < wrtp> the parser does quite a good job in general, i found 13:25 < nsf> or should I say absence of that 13:25 < nsf> wrtp: yes 13:25 < nsf> but sometimes it's even critical 13:25 < nsf> e.g. throws gocode to a panic :) 13:25 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Quit: Leaving.] 13:26 < nsf> I have no idea how can I improve that in a smart way 13:26 -!- nictuku [~nictuku@cetico.org] has joined #go-nuts 13:26 < nsf> exch: true 13:27 < nsf> and that's a big problem 13:27 < nsf> hehe, or I can say "sorry" and leave it all as it is 13:27 < nsf> :D 13:28 < exch> :P 13:31 < nsf> context-sensitive autocompletion is an interesting area, but imho it's like modern games' graphics.. full of hacks.. god, I hate hacks.. hack is an opposite of beauty >_< 13:39 -!- sacho [~sacho@213.91.244.15] has quit [Quit: Ex-Chat] 13:40 -!- nictuku [~nictuku@cetico.org] has quit [Ping timeout: 265 seconds] 13:41 -!- iant [~iant@67.218.105.33] has joined #go-nuts 13:41 -!- mode/#go-nuts [+v iant] by ChanServ 13:42 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit [Quit: skelterjohn] 13:42 -!- mattn_jp [~mattn_jp@180-144-149-93f1.hyg1.eonet.ne.jp] has left #go-nuts [] 13:43 < wrtp> call it "heuristic" and it might sound better to you :-) 13:45 < nsf> well, I think about autocompletion that way in general.. if it works - good, if not - well.. fine 13:45 < nsf> no one dies 13:45 < nsf> or did you mean the "hack" thing? 13:46 < wrtp> yeah, i meant the hack thing 13:46 < nsf> nah.. hacks are hacks 13:46 < nsf> they are bad 13:46 < nsf> context doesn't matter :) 13:48 < wrtp> if you've got an impossible problem (and yours is, in general, i think) then hacks/heuristics are the only way out 13:48 < nsf> true 13:51 -!- femtoo [~femto@95-89-248-241-dynip.superkabel.de] has joined #go-nuts 13:53 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit: This computer has gone to sleep] 13:53 -!- aho [~nya@fuld-4d00d57a.pool.mediaWays.net] has quit [Quit: EXEC_over.METHOD_SUBLIMATION] 13:53 < wrtp> anyway, as you say, best effort is good enough. it's like search. 13:56 < nsf> personally I like the way it is 13:56 < nsf> and I haven't heard any rants regarding gocode 13:56 < nsf> two options are possible 13:56 < nsf> 1. it's good enough for others too 13:56 < nsf> 2. no one uses it :D 13:57 < nsf> I tend to think 2 is more likely the variant 13:57 < nsf> but also I think I'm wrong 13:57 < nsf> hehe 13:58 < nsf> we'll see, after all go user base is relatively small 13:58 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3] 14:01 -!- nsf [c340cb02@gateway/web/freenode/ip.195.64.203.2] has joined #go-nuts 14:03 -!- napsy [~luka@88.200.96.18] has quit [Read error: Operation timed out] 14:04 < tux21b> Can somebody help using path.Walk and/or channel handling please? The last error message is never shown... http://paste.pocoo.org/show/265738/ 14:06 < nsf> tux21b: well, it's obvious 14:06 < nsf> you have to wait for all goroutines 14:06 < tux21b> ah ok 14:06 -!- iant [~iant@67.218.105.33] has quit [Ping timeout: 240 seconds] 14:06 < nsf> therefore using some kind of a primitive channel-based sync is a good idea 14:06 < nsf> like: 14:06 < tux21b> is there a easier way in this particular example (= just outputting the error to stderr?) 14:06 < nsf> done := make(chan bool) 14:07 < nsf> and in each go func(): 14:07 < nsf> done <- true 14:07 < tux21b> yes, i got it 14:07 < nsf> and then loop again over args 14:07 < nsf> with: 14:07 < nsf> <-done 14:07 -!- iant [~iant@216.239.45.130] has joined #go-nuts 14:07 -!- mode/#go-nuts [+v iant] by ChanServ 14:07 < nsf> that is a good way to wait for all goroutines 14:08 < tux21b> i think it's quite a lot to write for just outputting an error. a lambda routine would have been much shorter... 14:09 < nsf> go uses cooperative scheduling 14:09 < nsf> your last goroutine never gets executed 14:09 < nsf> because scheduler runs on "go" statements 14:09 < nsf> as well as few other statements, but you don't have any of them 14:09 -!- dj2 [~dj2@216.16.242.254] has joined #go-nuts 14:10 < tux21b> yes, i got it, but actually i don't really need goroutines for just outputting an error to stdout... 14:10 < nsf> yes you don't 14:10 < tux21b> at least i would't, but the api forces me... 14:11 < nsf> path.Walk interface seems weird to me 14:11 < nsf> yes 14:12 < nsf> trying to stick the concurrency approach in every hole probably isn't a good idea :) 14:13 < nsf> but maybe it makes sense here, I don't know 14:14 < tux21b> assuming the API wants a callback func, then i would still be able to setup an channel and send the error to this channel inside the lambda 14:19 < tux21b> haha, guess what. path.Walk isn't closing the error channel, so "done <- true" gets never send 14:19 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts 14:20 -!- Venom_X [~pjacobs@74.61.90.217] has joined #go-nuts 14:21 < tux21b> ah, but i can close it :D 14:23 < tux21b> channels in such simple APIs are great. 11 loc for a simple api call to path.Walk 14:24 -!- Shyde [~shyde@HSI-KBW-078-043-070-132.hsi4.kabel-badenwuerttemberg.de] has quit [Quit: Shyde] 14:25 -!- Venom_X [~pjacobs@74.61.90.217] has quit [Quit: Venom_X] 14:26 -!- Venom_X [~pjacobs@66.54.185.131] has joined #go-nuts 14:30 -!- sin3141592 [~hagbard@dslb-084-058-170-143.pools.arcor-ip.net] has joined #go-nuts 14:35 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 14:38 < jnwhiteh> tux21b: why do you need 11 lines of code for it? 14:38 < jnwhiteh> care to paste it for us? 14:38 < tux21b> sure, here it is: http://paste.pocoo.org/show/265759/ 14:40 < tux21b> I'm currently writing a message on the go-nuts ML, so if you don't know something easier, i will post it ;) 14:40 < jnwhiteh> one sec 14:42 -!- eliteSchaf [~sinz@62-47-254-164.adsl.highway.telekom.at] has joined #go-nuts 14:43 < eliteSchaf> hey guys 14:43 < eliteSchaf> is it possible to add a new entry to a map like this "map[key] = value"?? 14:43 < jnwhiteh> eliteSchaf: should be, yes! 14:43 <+iant> yes 14:44 < jnwhiteh> tux21b: I'd do something like this: http://paste.pocoo.org/show/265762/ 14:44 < jnwhiteh> unless you mean to have pseudo-concurrency in the way the errors were decoupled from the walk 14:45 < tux21b> but then the errors are printed after the execution. and actually what i am really trying to do is to start parsing/compiling etc all files recursively in those directories 14:46 < jnwhiteh> alright, one sec. 14:46 < tux21b> and if that takes some time, the user has to wait quite long to see that something is missing 14:47 < eliteSchaf> jnwhiteh, well i've got a struct which contains a map. i create a new struct with new() and then try to add data to the map, but i get "runtime error: invalid memory address or nil pointer dereference" 14:48 < eliteSchaf> do i have to initialize the map by myself? 14:48 < jnwhiteh> tux21b: that's a bit more difficult, and its your use case not the API that's making it complicated =) 14:48 < jnwhiteh> and what you have is close, although I'd probably have separate error sinks 14:51 < tux21b> jnwhiteh: imho a callback (+ lambda expression) or visitor.Error method would be better. And if i really want, i will still be able to send those errors to channels inside the callbacks 14:51 < jnwhiteh> those are definitely suggestions that could be made to improve the path.Walk function 14:52 < jnwhiteh> especially if the visitor.Error has a way to abort the walk 14:54 -!- nighty^ [~nighty@x122091.ppp.asahi-net.or.jp] has quit [Remote host closed the connection] 14:54 <+iant> eliteSchaf: you have to make the map 14:54 <+iant> eliteSchaf: maps start out as nil 14:54 < jnwhiteh> iant: eliteSchaf: sorry, got distracted for a moment =) 14:54 < eliteSchaf> iant, alright thanks 14:58 -!- skelterjohn [~jasmuth@dsl092-234-022.phl1.dsl.speakeasy.net] has joined #go-nuts 14:59 -!- skelterjohn [~jasmuth@dsl092-234-022.phl1.dsl.speakeasy.net] has quit [Client Quit] 15:00 -!- Paradox924X [~Paradox92@vaserv/irc/founder] has quit [Ping timeout: 240 seconds] 15:01 -!- skelterjohn [~jasmuth@dsl092-234-022.phl1.dsl.speakeasy.net] has joined #go-nuts 15:01 -!- skelterjohn [~jasmuth@dsl092-234-022.phl1.dsl.speakeasy.net] has quit [Client Quit] 15:03 -!- sacho [~sacho@95-42-120-25.btc-net.bg] has joined #go-nuts 15:04 -!- iant [~iant@216.239.45.130] has quit [Read error: Connection reset by peer] 15:04 -!- nighty^ [~nighty@x122091.ppp.asahi-net.or.jp] has joined #go-nuts 15:05 -!- artefon [~thiago@189.107.166.24] has quit [Read error: Connection reset by peer] 15:05 -!- kanru [~kanru@61-228-151-153.dynamic.hinet.net] has quit [Quit: WeeChat 0.3.2] 15:06 -!- artefon [~thiago@189.107.173.31] has joined #go-nuts 15:06 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 15:09 -!- Paradox924X [~Paradox92@c-68-35-229-34.hsd1.fl.comcast.net] has joined #go-nuts 15:10 -!- artefon [~thiago@189.107.173.31] has quit [Remote host closed the connection] 15:11 -!- nsf [c340cb02@gateway/web/freenode/ip.195.64.203.2] has quit [Quit: Page closed] 15:12 -!- eliteSchaf [~sinz@62-47-254-164.adsl.highway.telekom.at] has quit [Quit: Ex-Chat] 15:13 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 15:14 -!- iant [~iant@nat/google/x-neuigdxnjaluorgw] has joined #go-nuts 15:14 -!- mode/#go-nuts [+v iant] by ChanServ 15:17 -!- ssjones [~ssjones@67-61-100-203.cpe.cableone.net] has quit [Read error: Connection reset by peer] 15:19 -!- Paradox924X [~Paradox92@c-68-35-229-34.hsd1.fl.comcast.net] has quit [Changing host] 15:19 -!- Paradox924X [~Paradox92@vaserv/irc/founder] has joined #go-nuts 15:21 -!- ssjones [~ssjones@67-61-100-203.cpe.cableone.net] has joined #go-nuts 15:22 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has quit [Quit: Leaving.] 15:27 -!- TekNoir [~TekNoir@adsl-249-200-97.bna.bellsouth.net] has joined #go-nuts 15:27 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has joined #go-nuts 15:37 -!- nictuku [~nictuku@cetico.org] has joined #go-nuts 15:41 -!- artefon [~thiagon@150.164.2.20] has joined #go-nuts 15:43 -!- TekNoir [~TekNoir@adsl-249-200-97.bna.bellsouth.net] has quit [Quit: Quitting] 15:45 -!- femtoo [~femto@95-89-248-241-dynip.superkabel.de] has quit [Quit: Leaving] 15:49 -!- ucasano_ [~ucasano@151.12.47.139] has joined #go-nuts 15:49 -!- napsy [~luka@88.200.96.18] has quit [Quit: Lost terminal] 15:49 -!- ucasano [~ucasano@151.12.47.139] has quit [Ping timeout: 265 seconds] 15:51 -!- ucasano [~ucasano@151.12.47.139] has quit [Client Quit] 15:52 -!- enferex [~enferex@users.757.org] has quit [Ping timeout: 265 seconds] 15:54 -!- enferex [~enferex@users.757.org] has joined #go-nuts 16:00 -!- enferex [~enferex@users.757.org] has quit [Ping timeout: 272 seconds] 16:01 -!- boscop [~boscop@f055162221.adsl.alicedsl.de] has joined #go-nuts 16:02 -!- boscop_ [~boscop@f055115022.adsl.alicedsl.de] has quit [Ping timeout: 240 seconds] 16:05 -!- Tv [~tv@76.168.227.45] has quit [Ping timeout: 265 seconds] 16:06 -!- cacs [556b17d9@gateway/web/freenode/ip.85.107.23.217] has joined #go-nuts 16:07 -!- enferex [~enferex@users.757.org] has joined #go-nuts 16:08 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has joined #go-nuts 16:11 -!- dj2_ [~dj2@216.16.242.254] has joined #go-nuts 16:14 -!- dj2 [~dj2@216.16.242.254] has quit [Ping timeout: 240 seconds] 16:17 -!- lmoura_ [~lauromour@187.58.102.201] has quit [Read error: Connection reset by peer] 16:17 -!- leczb [~leczb@nat/google/x-gpnnzmclvtuvtuow] has joined #go-nuts 16:18 -!- lmoura_ [~lauromour@187.58.110.242] has joined #go-nuts 16:19 -!- skelterjohn [~jasmuth@dsl092-234-022.phl1.dsl.speakeasy.net] has joined #go-nuts 16:21 -!- SRabbelier [~SRabbelie@ip138-114-211-87.adsl2.static.versatel.nl] has joined #go-nuts 16:24 -!- skelterjohn [~jasmuth@dsl092-234-022.phl1.dsl.speakeasy.net] has quit [Quit: skelterjohn] 16:27 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has joined #go-nuts 16:28 -!- cacs [556b17d9@gateway/web/freenode/ip.85.107.23.217] has quit [Quit: Page closed] 16:29 -!- Tv [~tv@gige.bur.digisynd.com] has joined #go-nuts 16:36 -!- lmoura_ [~lauromour@187.58.110.242] has quit [Read error: Connection reset by peer] 16:40 -!- lmoura_ [~lauromour@187.59.125.211] has joined #go-nuts 16:41 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has quit [Quit: Ex-Chat] 16:45 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has quit [Ping timeout: 265 seconds] 16:52 -!- niemeyer_ [~niemeyer@189.27.137.230.dynamic.adsl.gvt.net.br] has quit [Ping timeout: 255 seconds] 16:54 < nickaugust> i see a built in command lookup(data, elem) being used in template that takes data as either struct or map and and element name elem as a string and returns the value of that field name in the map/struct. id like to use lookup() but i dont see it documented anywhere so is it safe to use? 16:58 < nickaugust> iant: you around? ^^ 16:58 < exch> it's not a builtin 16:59 < exch> it's defined in template.go 16:59 < exch> func lookup(v reflect.Value, name string) reflect.Value 17:00 < nickaugust> exch: oh i searched for it... ah wait you're right! nevermind! 17:01 < nickaugust> exch: thx 17:01 < exch> np 17:01 < exch> grep ftw :) 17:01 -!- ronnyy [~quassel@p4FF1DF94.dip.t-dialin.net] has joined #go-nuts 17:02 < nickaugust> exch: i guess my sam regex skills arent up to par with your greping :) 17:04 < nickaugust> this reflect stuff is making my head hurt 17:04 -!- niemeyer_ [~niemeyer@189.27.130.87.dynamic.adsl.gvt.net.br] has joined #go-nuts 17:07 < wrtp> nickaugust: it's not too bad once you've got your head around it, but it's nicer if you can avoid it. 17:09 -!- niemeyer__ [~niemeyer@189.27.130.87.dynamic.adsl.gvt.net.br] has joined #go-nuts 17:11 -!- niemeyer_ [~niemeyer@189.27.130.87.dynamic.adsl.gvt.net.br] has quit [Read error: Operation timed out] 17:11 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3] 17:13 -!- wrtp [~rog@92.17.36.40] has quit [Quit: wrtp] 17:14 -!- ikaros [~ikaros@2001:41b8:9bf:fe04:34ca:faff:fec5:3841] has quit [Quit: Leave the magic to Houdini] 17:15 -!- ikaros [~ikaros@dslb-094-219-213-123.pools.arcor-ip.net] has joined #go-nuts 17:18 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has quit [Ping timeout: 265 seconds] 17:21 -!- tvw [~tv@212.79.9.150] has quit [Remote host closed the connection] 17:34 -!- skejoe [~skejoe@188.114.142.231] has joined #go-nuts 17:35 -!- skelterjohn [~jasmuth@c-71-230-156-50.hsd1.nj.comcast.net] has joined #go-nuts 17:41 -!- femtoo [~femto@95-89-248-241-dynip.superkabel.de] has joined #go-nuts 17:42 -!- kkress [~kkress@c-65-49-35-49.tilenetworks.com] has quit [Ping timeout: 276 seconds] 17:52 -!- artefon [~thiagon@150.164.2.20] has quit [Quit: Leaving] 17:58 -!- tux21b [~christoph@90.146.60.30] has quit [Ping timeout: 272 seconds] 17:58 -!- tvw [~tv@e176001035.adsl.alicedsl.de] has joined #go-nuts 18:06 -!- Fish [~Fish@9fans.fr] has joined #go-nuts 18:08 < exch> A question about 'best practise'.. I wish to cut arbitrary chunks of data from a file. Presumably this would entail reading all the needed bits into a buffer, truncate it to 0 and the spit out those needed bits. But that means loading almost the entire file into memory.. When files range from 2MB to 25MB a piece, that'll pack quite a punch 18:09 < exch> Would be it more acceptable to create a copy of the file on the drive, truncate the original and then stream the needed bits from the copy to the original? 18:10 -!- photron [~photron@port-92-201-17-202.dynamic.qsc.de] has joined #go-nuts 18:11 < exch> actually, never mind 18:12 < exch> I can just do it in the file itself >< 18:12 < exch> I think 18:13 -!- tux21b [~christoph@90.146.60.30] has joined #go-nuts 18:14 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts 18:16 -!- Fish- [~Fish@9fans.fr] has joined #go-nuts 18:16 -!- Fish [~Fish@9fans.fr] has quit [Read error: Connection reset by peer] 18:23 < plexdev> http://is.gd/fnqM3 by [Robert Griesemer] in go/src/pkg/index/suffixarray/ -- suffixarray: cleanup per suggestion from Roger Peppe 18:29 -!- Fish- [~Fish@9fans.fr] has quit [Remote host closed the connection] 18:29 -!- Fish [~Fish@9fans.fr] has joined #go-nuts 18:31 -!- enherit [~enherit@cpe-98-149-170-48.socal.res.rr.com] has joined #go-nuts 18:32 -!- niemeyer__ [~niemeyer@189.27.130.87.dynamic.adsl.gvt.net.br] has quit [Quit: Leaving] 18:36 -!- Venom_X_ [~pjacobs@74.61.90.217] has joined #go-nuts 18:36 -!- Venom_X_ [~pjacobs@74.61.90.217] has quit [Client Quit] 18:37 -!- Venom_X_ [~pjacobs@74.61.90.217] has joined #go-nuts 18:38 -!- Venom_X [~pjacobs@66.54.185.131] has quit [Ping timeout: 252 seconds] 18:43 -!- skelterjohn [~jasmuth@c-71-230-156-50.hsd1.nj.comcast.net] has quit [Quit: skelterjohn] 18:44 -!- skelterjohn [~jasmuth@c-71-230-156-50.hsd1.nj.comcast.net] has joined #go-nuts 18:44 -!- skelterjohn [~jasmuth@c-71-230-156-50.hsd1.nj.comcast.net] has quit [Client Quit] 18:48 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Quit: slashus2] 18:50 <+iant> nickaugust: still looking for me? 18:51 -!- virtualsue [~chatzilla@nat/cisco/x-dzgnpnhsqbjadknp] has joined #go-nuts 18:55 -!- kkress [~kkress@c-65-49-35-49.tilenetworks.com] has joined #go-nuts 18:56 -!- skelterjohn [~jasmuth@tvwna-ip-b-154.princeton.org] has joined #go-nuts 18:57 -!- skelterjohn [~jasmuth@tvwna-ip-b-154.princeton.org] has quit [Client Quit] 18:58 -!- piyushmishra [~piyushmis@117.200.226.188] has joined #go-nuts 19:11 -!- piyushmishra [~piyushmis@117.200.226.188] has quit [Quit: Leaving.] 19:15 -!- piyushmishra [~piyushmis@117.200.226.188] has joined #go-nuts 19:21 < nickaugust> iant: nope got it. thanks :) I do have a new question about the reflect package. Is it not possible to take a reflect.Value and do a reflect.StructValue type assertion on it? I'm getting this error: "impossible type assertion: r (type reflect.Value) cannot have dynamic type reflect.StructValue (missing Addr method)" but the reflect.Value should have the Addr method i thought.. it was returned 19:21 < nickaugust> from reflect.SliceValue.Elem()... 19:21 -!- plainhao [~plainhao@mail.xbiotica.com] has quit [Quit: plainhao] 19:21 < exch> try *reflect.StructValue 19:22 < nickaugust> exch: ill try that thanks 19:24 -!- femtoo [~femto@95-89-248-241-dynip.superkabel.de] has quit [Quit: Leaving] 19:24 < nickaugust> works. thanks! 19:24 < nickaugust> i swear i can never tell when I need a * or not 19:24 -!- luruke [~luruke@151.53.42.188] has joined #go-nuts 19:25 < nickaugust> because inside an array of structs they are pointers not actually the structs themselves i assume 19:28 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts 19:42 -!- piyushmishra [~piyushmis@117.200.226.188] has quit [Quit: Leaving.] 20:05 -!- itrekkie [~itrekkie@ip72-200-111-9.tc.ph.cox.net] has joined #go-nuts 20:10 -!- virtualsue [~chatzilla@nat/cisco/x-dzgnpnhsqbjadknp] has quit [Ping timeout: 240 seconds] 20:13 -!- skejoe [~skejoe@188.114.142.231] has quit [Quit: Lost terminal] 20:15 -!- pjz [~pj@place.org] has left #go-nuts [] 20:17 -!- virtualsue [~chatzilla@nat/cisco/x-npwarixjmaujpaum] has joined #go-nuts 20:17 -!- Fish9 [~Fish@86.65.182.207] has quit [Read error: Operation timed out] 20:19 -!- Fish9 [~Fish@86.65.182.207] has joined #go-nuts 20:19 -!- artefon [~thiago@189.107.212.113] has joined #go-nuts 20:22 -!- acts_as [~acts_as@208.236.105.27] has quit [Quit: acts_as] 20:25 -!- luruke [~luruke@151.53.42.188] has quit [Quit: Leaving] 20:25 -!- kkress [~kkress@c-65-49-35-49.tilenetworks.com] has quit [Ping timeout: 240 seconds] 20:28 -!- jhh [~jhh@g228200103.adsl.alicedsl.de] has quit [Remote host closed the connection] 20:28 -!- jhh [~jhh@4-091.vpn.RWTH-Aachen.DE] has joined #go-nuts 20:37 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Remote host closed the connection] 20:38 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts 20:40 < nickaugust> impossible type assertion: r.*StructValue??FieldByName(field) (type reflect.Value) cannot have dynamic type reflect.StringValue (missing Addr method) 20:40 < nickaugust> what am i doing wrong now? 20:40 < nickaugust> same thing i think... ugh 20:42 < nickaugust> cannot convert (r.*StructValue??FieldByName(field)).(*reflect.StringValue) (type *reflect.StringValue) to type string 20:42 <+iant> that is a strange error message 20:43 < nickaugust> hehe :) 20:43 < nickaugust> this reflect stuff is really tough 20:43 < nickaugust> why cant I just do a type assertion and then use them as regular objects? 20:43 <+iant> given a *reflect.StringValue, you can get the string by calling the Get() method 20:44 < nickaugust> ah, sweet. thanks iant 20:44 <+iant> you can't use them as regular objects because they aren't regular objects, they are more like references to regular objects 20:46 -!- ikaros [~ikaros@dslb-094-219-213-123.pools.arcor-ip.net] has quit [Quit: Leave the magic to Houdini] 21:02 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has joined #go-nuts 21:05 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Read error: Connection reset by peer] 21:06 -!- Sh4pe [~Sh4pe@dslb-088-064-177-133.pools.arcor-ip.net] has joined #go-nuts 21:07 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts 21:07 -!- enherit [~enherit@cpe-98-149-170-48.socal.res.rr.com] has quit [Quit: Lost terminal] 21:09 -!- dj2 [~dj2@216.16.242.254] has quit [Quit: dj2] 21:10 -!- fejjerai [~quassel@kde/amarok/mitchell] has quit [Remote host closed the connection] 21:10 -!- fejjerai [quassel@kde/amarok/mitchell] has joined #go-nuts 21:11 < plexdev> http://is.gd/fnKgY by [Robert Griesemer] in 4 subdirs of go/src/pkg/go/ -- gofmt: support for ... after actual arguments 21:11 -!- ronnyy [~quassel@p4FF1DF94.dip.t-dialin.net] has quit [Remote host closed the connection] 21:12 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts 21:17 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit: Verlassend] 21:17 -!- acts_as [~acts_as@208.236.105.27] has joined #go-nuts 21:18 -!- Project_2501 [~Marvin@82.84.66.105] has quit [Quit: E se abbasso questa leva che succ...] 21:22 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 276 seconds] 21:26 -!- Fish [~Fish@9fans.fr] has quit [Remote host closed the connection] 21:28 < plexdev> http://is.gd/fnLAS by [Ian Lance Taylor] in go/src/pkg/http/ -- http: Change redirect test URL, as the old one now fails. 21:28 < plexdev> http://is.gd/fnLB0 by [Russ Cox] in go/test/ -- build: add missing files for arm changes 21:34 -!- awidegreen [~quassel@62.176.237.78] has quit [Remote host closed the connection] 21:38 -!- virtualsue [~chatzilla@nat/cisco/x-npwarixjmaujpaum] has quit [Ping timeout: 265 seconds] 21:51 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by peer] 21:53 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has joined #go-nuts 21:54 -!- jhh [~jhh@4-091.vpn.RWTH-Aachen.DE] has quit [Quit: jhh] 21:57 -!- itrekkie [~itrekkie@ip72-200-111-9.tc.ph.cox.net] has quit [Quit: itrekkie] 22:05 -!- kkress [~kkress@c-65-49-35-49.tilenetworks.com] has joined #go-nuts 22:06 -!- scm [justme@d070205.adsl.hansenet.de] has quit [Read error: Operation timed out] 22:15 -!- scm [justme@d056095.adsl.hansenet.de] has joined #go-nuts 22:17 -!- Sh4pe [~Sh4pe@dslb-088-064-177-133.pools.arcor-ip.net] has quit [Quit: Sh4pe] 22:27 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has quit [Read error: Connection reset by peer] 22:28 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts 22:29 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Ping timeout: 276 seconds] 22:29 -!- Venom_X [~pjacobs@74.61.90.217] has quit [Ping timeout: 264 seconds] 22:35 -!- Venom_X [~pjacobs@74.61.90.217] has joined #go-nuts 22:43 -!- Venom_X [~pjacobs@74.61.90.217] has quit [Quit: Venom_X] 22:43 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has quit [Quit: skelterjohn] 22:45 -!- photron [~photron@port-92-201-17-202.dynamic.qsc.de] has quit [Ping timeout: 264 seconds] 22:50 -!- jcao2191 [~Jimmy_Cao@pool-173-74-61-111.dllstx.fios.verizon.net] has joined #go-nuts 22:50 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has quit [Disconnected by services] 22:50 -!- jcao2191 [~Jimmy_Cao@pool-173-74-61-111.dllstx.fios.verizon.net] has left #go-nuts [] 22:51 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has quit [Quit: Leaving] 22:57 -!- Venom_X [~pjacobs@74.61.90.217] has joined #go-nuts 23:02 -!- bmizerany [~bmizerany@208.66.27.62] has joined #go-nuts 23:02 -!- Venom_X [~pjacobs@74.61.90.217] has quit [Quit: Venom_X] 23:05 -!- _Horst_ [~Horst@e176100017.adsl.alicedsl.de] has joined #go-nuts 23:07 -!- jessta [~jessta@124-168-75-122.dyn.iinet.net.au] has quit [Ping timeout: 252 seconds] 23:08 -!- emmanueloga [~emmanuelo@190.244.14.111] has quit [Ping timeout: 240 seconds] 23:08 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined #go-nuts 23:08 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts 23:09 -!- DerHorst [~Horst@e176103061.adsl.alicedsl.de] has quit [Ping timeout: 252 seconds] 23:11 -!- emmanueloga [~emmanuelo@190.244.14.111] has joined #go-nuts 23:13 -!- enferex [~enferex@users.757.org] has quit [Ping timeout: 240 seconds] 23:18 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has joined #go-nuts 23:19 -!- dj2 [~dj2@CPE001f5b35feb4-CM0014048e0344.cpe.net.cable.rogers.com] has joined #go-nuts 23:19 -!- tvw [~tv@e176001035.adsl.alicedsl.de] has quit [Remote host closed the connection] 23:20 -!- jcao219_ [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has joined #go-nuts 23:21 -!- enferex [~enferex@users.757.org] has joined #go-nuts 23:22 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has quit [Read error: Connection reset by peer] 23:23 -!- iant [~iant@nat/google/x-neuigdxnjaluorgw] has quit [Read error: Operation timed out] 23:27 -!- tux21b [~christoph@90.146.60.30] has quit [Ping timeout: 240 seconds] 23:28 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Quit: Leaving] 23:30 -!- sin3141592 [~hagbard@dslb-084-058-170-143.pools.arcor-ip.net] has quit [Ping timeout: 252 seconds] 23:33 -!- iant [~iant@nat/google/x-xcxxrdqpzhtbtcrw] has joined #go-nuts 23:33 -!- mode/#go-nuts [+v iant] by ChanServ 23:36 -!- iant1 [~iant@67.218.105.89] has joined #go-nuts 23:37 -!- araujo [~araujo@190.199.102.96] has joined #go-nuts 23:37 -!- araujo [~araujo@190.199.102.96] has quit [Changing host] 23:37 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts 23:39 -!- iant [~iant@nat/google/x-xcxxrdqpzhtbtcrw] has quit [Ping timeout: 252 seconds] 23:39 -!- iant1 [~iant@67.218.105.89] has quit [Client Quit] 23:40 -!- iant [~iant@67.218.105.89] has joined #go-nuts 23:40 -!- mode/#go-nuts [+v iant] by ChanServ 23:44 -!- sin3141592 [~hagbard@dslb-084-058-177-077.pools.arcor-ip.net] has joined #go-nuts 23:51 -!- jessta [~jessta@124-168-75-122.dyn.iinet.net.au] has joined #go-nuts 23:57 -!- ExtraSpice [~XtraSpice@88.118.34.223] has quit [Ping timeout: 240 seconds] --- Log closed Thu Sep 23 00:00:07 2010