--- Log opened Mon Mar 21 00:00:50 2011 00:11 -!- arun_ [~arun@pool-108-18-145-233.washdc.fios.verizon.net] has joined #go-nuts 00:11 -!- arun_ [~arun@pool-108-18-145-233.washdc.fios.verizon.net] has quit [Changing host] 00:11 -!- arun_ [~arun@unaffiliated/sindian] has joined #go-nuts 00:17 -!- arun_ [~arun@unaffiliated/sindian] has quit [Read error: Connection reset by peer] 00:17 -!- rtharper [~tomh@unaffiliated/sioraiocht] has quit [Remote host closed the connection] 00:20 -!- Scorchin [~Scorchin@host109-156-216-72.range109-156.btcentralplus.com] has quit [Quit: Scorchin] 00:21 -!- arun_ [~arun@unaffiliated/sindian] has joined #go-nuts 00:26 < plexdev> http://is.gd/VQhjlD by [Andrew Gerrand] in go/src/pkg/path/filepath/ -- path/filepath: fix TestEvalSymlinks when run under symlinked GOROOT 00:27 -!- rtharper [~tomh@unaffiliated/sioraiocht] has joined #go-nuts 00:29 < str1ngs> ++ gcc 00:33:35 and go 40s 00:30 -!- rtharper [~tomh@unaffiliated/sioraiocht] has quit [Remote host closed the connection] 00:34 < skelterjohn> what is that 00:35 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 255 seconds] 00:36 < str1ngs> output of my build system after building gcc 00:36 < skelterjohn> it took longer to build go than gcc? 00:37 < str1ngs> 33 minutes to build gcc barebones 00:37 < str1ngs> go takes 40s 00:37 < skelterjohn> oh minutes 00:37 < skelterjohn> one thing to remember 00:37 < skelterjohn> is that go can compile only one language 00:37 < str1ngs> this is a barebones gcc not libs even :P 00:37 < skelterjohn> gc, i mean 00:38 < skelterjohn> gcc does a lot of stuff 00:38 < str1ngs> I'm not knocking gcc just a pain to build 00:39 < str1ngs> anyways when I"m done I'll be able to produce a system agnostic go toolchain including gccgo .. hopefully 00:39 < str1ngs> gccgo might not be that easy 00:40 < str1ngs> what that means is you can download a binary packaget with gcc gccgo with make etc. and get going 01:01 -!- nixness [~dsc@89.211.216.193] has joined #go-nuts 01:02 -!- wtfness [~dsc@178.152.88.15] has quit [Ping timeout: 255 seconds] 01:03 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.4] 01:05 < skelterjohn> how do i switch from tip to weekly? 01:06 < skelterjohn> nvm i think i figured it out - (hg up -r weekly) 01:11 -!- saturnfive [~saturnfiv@210.74.155.131] has joined #go-nuts 01:39 < steven> --prefix is awesome 01:40 * steven just installed 2 different postgres's, one for work and one for testing the Go postgres package ;) 01:40 < steven> er, :) 01:41 -!- Emmental [~Emmental@c-69-136-240-113.hsd1.nj.comcast.net] has joined #go-nuts 01:43 -!- Emmental [~Emmental@c-69-136-240-113.hsd1.nj.comcast.net] has quit [Client Quit] 01:43 -!- Emmental [~Emmental@c-69-136-240-113.hsd1.nj.comcast.net] has joined #go-nuts 01:46 < str1ngs> --config-cache is good to :P 01:46 < str1ngs> not for one shots but for rebuilds atleast 01:48 -!- Emmental [~Emmental@c-69-136-240-113.hsd1.nj.comcast.net] has quit [Quit: ChatZilla 0.9.86.1 [Firefox 3.6.15/20110303170601]] 02:13 -!- Emmental [4588f071@gateway/web/freenode/ip.69.136.240.113] has joined #go-nuts 02:14 -!- Tuller [~tuller@c-69-143-52-174.hsd1.va.comcast.net] has quit [Quit: muffins] 02:15 < Emmental> Go is cool. I started learning it a couple of days ago, and I have a small program working already. 02:16 < steven> oh? nice. 02:16 < steven> Emmental: sweet, whats it do? 02:16 < Emmental> Fetches some data over http, does some analysis. I have a few questions. 02:18 < steven> cool 02:18 < steven> shoot 02:19 < Emmental> out of 4 different sqlite bindings, what do I miss out on if I just go with Russ Cox's one? 02:19 < steven> i just went with russ's when i made gorm 02:19 < steven> which you may find useful, but probably not yet 02:19 < steven> its in development 02:19 < steven> https://github.com/sdegutis/gorm 02:22 < Emmental> sweet, gorm is basically what I needed 02:27 < |Craig|> steven: that looks pretty handy. Looks like what I'll want for my game server. I'll keep an eye on it. Thanks. 02:27 -!- Emmental [4588f071@gateway/web/freenode/ip.69.136.240.113] has quit [Quit: Page closed] 02:33 < str1ngs> steven: gorm is going to be for your web framework? 02:37 -!- matti__ [~mumboww@c-24-6-22-101.hsd1.ca.comcast.net] has joined #go-nuts 02:37 -!- matti_ [~mumboww@c-24-6-22-101.hsd1.ca.comcast.net] has quit [Read error: Connection reset by peer] 02:38 -!- aho [~nya@fuld-590c61fa.pool.mediaWays.net] has quit [Quit: EXEC_over.METHOD_SUBLIMATION] 02:40 < steven> str1ngs: yep 02:41 < steven> |Craig|: thanks :) 02:45 < skelterjohn> steven: my paper deadline has passed - i'd like to hear a bit about what you plan for your framework 02:46 < steven> skelterjohn: perhaps it should be a mailing list thing instead? 02:46 < skelterjohn> that's up to you 02:46 < steven> although im afraid of sounding stupid by posting on there, perhaps someone already thought of this and ill get a big fat "if you would have searched the ML you would have seen this has already been done you idiot" in response 02:47 < skelterjohn> some MLs are like that 02:47 < skelterjohn> i haven't noticed gonuts to be like that 02:47 <@adg> have you searched the mailing list? 02:47 <@adg> if you have, and haven't found anything, then nobody can say that ;) 02:48 < steven> adg: im not sure what to search for honestly 02:48 < steven> on a related note: i suck at figuring out a good google search phrase when im stuck on whatever 02:48 <@adg> orm, template, rails, framework 02:48 <@adg> that kind of thing 02:49 < steven> hmm yeah 02:49 < steven> adg++ 02:50 < skelterjohn> is there a way to switch the branch of one directory in a hg checkout? 02:50 < skelterjohn> i want to move the http package back to release, but leave everything else the way it is 02:56 -!- nettok [~quassel@200.119.153.228] has quit [Ping timeout: 260 seconds] 03:03 < |Craig|> skelterjohn: checkout release, then checkout http from your old branch perhaps? I don't really know anything about hg 03:03 < skelterjohn> i switched to release, rebuilt http, and switched back to tip 03:03 < skelterjohn> because not being tip broke other stuff 03:04 < skelterjohn> i should probably stick to weekly or something 03:08 -!- segy [~segfault@pdpc/supporter/active/segy] has quit [Quit: leaving] 03:08 < str1ngs> steven: nice. sorry delayed 03:11 < str1ngs> I need a native go http dowloader and a native go archive decompresser bzip gzip . I know go has most of it but I need to put it all together 03:11 < str1ngs> and a gpg sig verifier 03:12 < str1ngs> well openpgp rather 03:14 < plexdev> http://is.gd/5Avebb by [Gustavo Niemeyer] in go/src/pkg/rpc/ -- rpc: increase server_test timeout 03:20 -!- shvntr [~shvntr@116.26.128.150] has joined #go-nuts 03:27 -!- segy [~segfault@mail.hasno.info] has joined #go-nuts 03:27 -!- segy [~segfault@mail.hasno.info] has quit [Changing host] 03:27 -!- segy [~segfault@pdpc/supporter/active/segy] has joined #go-nuts 03:31 < plexdev> http://is.gd/BUs1Gx by [Andrew Gerrand] in go/src/cmd/goinstall/ -- goinstall: add -clean flag to docs 03:31 < plexdev> http://is.gd/S4yDnz by [Gustavo Niemeyer] in go/src/ -- build: reenable clean.bash without gomake 03:45 -!- exch [~exch@h78233.upc-h.chello.nl] has quit [Ping timeout: 250 seconds] 03:57 -!- MizardX [MizardX@unaffiliated/mizardx] has quit [Quit: Will the electric sheep fly this time?] 04:01 -!- gogogrrl [~max@p5DE8CD7B.dip.t-dialin.net] has quit [Ping timeout: 240 seconds] 04:02 -!- gogogrrl [~max@p5DE8F5C0.dip.t-dialin.net] has joined #go-nuts 04:05 -!- shvntr [~shvntr@116.26.128.150] has quit [Quit: leaving] 04:13 -!- shvntr [~shvntr@116.26.128.150] has joined #go-nuts 04:13 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 246 seconds] 04:19 -!- exch [~exch@h78233.upc-h.chello.nl] has joined #go-nuts 04:24 < steven> i like Go a lot, but its concurrency support is more limited than id like. :'( 04:24 -!- Xenith [~xenith@xenith.org] has quit [Quit: leaving] 04:25 -!- edsrzf [~chickench@122-61-221-144.jetstream.xtra.co.nz] has joined #go-nuts 04:26 < dfc> steven: what do you find limiting ? 04:31 -!- Xenith [~xenith@xenith.org] has joined #go-nuts 04:39 < steven> i cant split off another thread at will 04:39 < steven> goroutines are only executed when another goroutine calls a blocking system call 04:39 < steven> which means i cant do an actually-threaded implementation of quicksort, for example 04:39 < steven> re dfc 04:40 < dfc> fair enough 04:40 < steven> unless of course i force that implementation to fetch its data-to-be-sorted from http 04:40 < steven> ;) 04:41 <@adg> steven: or set GOMAXPROCS > 0 04:41 <@adg> s/0/1/ 04:42 -!- shvntr [~shvntr@116.26.128.150] has quit [Ping timeout: 246 seconds] 04:53 < crazy2be> night all 04:54 -!- crazy2be [~crazy2be@S01060012171a573b.cg.shawcable.net] has quit [Remote host closed the connection] 05:09 -!- slashus2 [~slashus2@74-141-110-130.dhcp.insightbb.com] has joined #go-nuts 05:09 -!- slashus2 [~slashus2@74-141-110-130.dhcp.insightbb.com] has quit [Remote host closed the connection] 05:21 -!- zozoR [~Morten@56344966.rev.stofanet.dk] has joined #go-nuts 05:31 -!- arun_ [~arun@unaffiliated/sindian] has quit [Ping timeout: 255 seconds] 05:45 -!- fabled [~fabled@mail.fi.jw.org] has joined #go-nuts 05:48 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-150-86.clienti.tiscali.it] has joined #go-nuts 05:56 -!- arun_ [~arun@unaffiliated/sindian] has joined #go-nuts 06:02 -!- Natch [~natch@c-6dcde155.25-4-64736c10.cust.bredbandsbolaget.se] has joined #go-nuts 06:03 -!- Natch| [~natch@c-6dcde155.25-4-64736c10.cust.bredbandsbolaget.se] has quit [Ping timeout: 264 seconds] 06:04 -!- itrekkie [~itrekkie@ip72-201-208-165.ph.ph.cox.net] has joined #go-nuts 06:13 -!- Project-2501 [~Marvin@82.84.70.147] has joined #go-nuts 06:16 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-150-86.clienti.tiscali.it] has quit [Ping timeout: 250 seconds] 06:18 -!- zozoR [~Morten@56344966.rev.stofanet.dk] has quit [Remote host closed the connection] 06:29 < pingveno> I'm looking at writing something to create the beginnings of an Arch Linux package based on goinstall. What is the best way to deal with installing into the package build directory? 06:30 < pingveno> The package build directory being the place where files go that will later be tarred together. 06:31 < KirkMcDonald> pingveno: It might be simplest just to put it under opt or something. 06:32 < KirkMcDonald> But I know nothing about Arch's package manager. 06:33 < pingveno> An example on how it's done: http://aur.archlinux.org/packages/python2-blist/PKGBUILD 06:34 < pingveno> build() {...} is the important part. 06:35 < pingveno> So with Python's setuptools system, the Arch system tells it to install into $pkgdir 06:35 < pingveno> it = "python2 setup.py install" 06:39 < KirkMcDonald> The trouble is that, as far as I can tell, Go doesn't play that nicely with being installed under a prefix. 06:39 < KirkMcDonald> Though you can arrange things so that it works. 06:39 < KirkMcDonald> But you have to wrangle the environment variables somehow. 06:40 < pingveno> Oh, the joys of environmental variables... 06:40 < pingveno> I'll do some more work on it... later... 06:41 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has quit [Ping timeout: 276 seconds] 06:45 -!- arun_ [~arun@unaffiliated/sindian] has quit [Ping timeout: 255 seconds] 06:46 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has joined #go-nuts 06:47 < str1ngs> pingveno: I already have something like that. its more detailed then that 06:47 < str1ngs> pingveno: not as redundant as PKGBUILD's either 06:49 < str1ngs> pingveno: https://github.com/str1ngs/via is the WIP and not the latest code. 06:50 -!- dfc [~dfc@sydfibre2.atlassian.com] has quit [Ping timeout: 260 seconds] 06:51 < str1ngs> pingveno: it needs a native downloader, decompessor and pgp sig checker. also I expect the meta data format to change. 06:51 < str1ngs> pingveno: wait that's not what you want 06:52 < str1ngs> pingveno: first they need to get the actual go PKGBUILD sorted out 06:52 < str1ngs> right now godoc doesnt even work nvm goinstall 06:58 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 07:01 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 07:05 -!- cniekel [~cniekel@c-82-192-241-30.customer.ggaweb.ch] has quit [Read error: Operation timed out] 07:11 -!- skejoe [~skejoe@188.114.142.162] has joined #go-nuts 07:26 < pingveno> str1ngs: So don't bother, as there are already other people sorting it out? 07:28 < str1ngs> pingveno: no bother. but start with the go PKGBUILD 07:29 < str1ngs> pingveno: get godoc and goinstall working there then post to the go-nuts group about what the FHS. I think there are some deb's on launchpad see how they handle FHS 07:29 < str1ngs> FHS should look like* 07:35 < pingveno> str1ngs: k, thanks 07:36 < str1ngs> pingveno: sorry I got side tracked there had something on my mind and didnt read your quest properly 07:36 < str1ngs> question* 07:36 < pingveno> ah 07:36 < str1ngs> so you got a long winded something totally not related to what you needed 07:36 -!- TheSeeker [~n@99-153-250-110.lightspeed.irvnca.sbcglobal.net] has quit [Ping timeout: 250 seconds] 07:37 < str1ngs> pingveno: but do post to the go-nut group because it would be good to see what others are using for FHS. that info be hand for me 07:37 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|] 07:37 < pingveno> I'm trying to figure out what FHS means. 07:38 < str1ngs> filesystem hiearchy standard 07:39 < str1ngs> how you lay your files out on the system 07:39 < pingveno> ah 07:39 < str1ngs> each distro can do what they want. but most try to keep to FHS where they can 07:40 < pingveno> I want to keep as close to what other people do as possible. 07:40 < str1ngs> there is abit of POSIX involved to BSD and such act somewhat the same 07:41 -!- TheSeeker [~n@99-153-250-110.lightspeed.irvnca.sbcglobal.net] has joined #go-nuts 07:41 < str1ngs> pingveno: post to the ML. because I know there is some other with packages on launchpad etc. 07:43 < pingveno> Tragically, this goes back burner until Wednesday evening. 07:43 < str1ngs> pingveno: ok maybe I'll post something then. 07:44 < pingveno> Don't worry too much about it for now. As I said, it goes backburner for me. 07:45 < str1ngs> it's ok I kinda was putting in on back burner to. 07:45 < pingveno> Ah, but it was already in a pot? 07:45 < str1ngs> ya of old kraft cheese and mac :P 07:46 < pingveno> Well... I need to get to sleep. I'll mull this over later. 07:46 < pingveno> good night 07:46 < str1ngs> take care 07:55 -!- piranha [~piranha@5ED42E59.cm-7-5a.dynamic.ziggo.nl] has joined #go-nuts 07:56 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts 08:00 -!- rtharper [~tomh@unaffiliated/sioraiocht] has joined #go-nuts 08:00 -!- SecretAgent [sa@28.158.143.98.nitemare.name] has quit [Read error: Operation timed out] 08:00 -!- SecretAgent [sa@28.158.143.98.nitemare.name] has joined #go-nuts 08:02 -!- itrekkie [~itrekkie@ip72-201-208-165.ph.ph.cox.net] has quit [Ping timeout: 252 seconds] 08:06 -!- creack [~charme_g@163.5.84.202] has quit [Read error: Connection reset by peer] 08:16 -!- rtharper [~tomh@unaffiliated/sioraiocht] has quit [Remote host closed the connection] 08:43 -!- ronnyy [~quassel@p4FF1C680.dip0.t-ipconnect.de] has joined #go-nuts 08:49 -!- edsrzf [~chickench@122-61-221-144.jetstream.xtra.co.nz] has quit [Remote host closed the connection] 08:50 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 09:05 -!- zimsim [~simon@87.72.77.195] has joined #go-nuts 09:52 -!- ronnyy [~quassel@p4FF1C680.dip0.t-ipconnect.de] has quit [Remote host closed the connection] 09:54 -!- arvindht [c2ed8e11@gateway/web/freenode/ip.194.237.142.17] has joined #go-nuts 10:03 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has joined #go-nuts 10:03 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has left #go-nuts [] 10:29 -!- skejoe [~skejoe@188.114.142.162] has quit [Quit: Lost terminal] 10:30 -!- jokoon [~jorinovsk@LMontsouris-156-26-32-176.w80-14.abo.wanadoo.fr] has joined #go-nuts 10:35 -!- petrux [~petrux@host16-224-static.53-82-b.business.telecomitalia.it] has joined #go-nuts 10:45 -!- saturnfive [~saturnfiv@210.74.155.131] has quit [Read error: Connection reset by peer] 10:50 -!- shvntr [~shvntr@116.26.128.150] has joined #go-nuts 11:05 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.4] 11:15 -!- saturnfive [~saturnfiv@113.135.122.51] has joined #go-nuts 11:21 -!- saturnfive [~saturnfiv@113.135.122.51] has left #go-nuts [] 11:26 -!- rtharper [~tomh@unaffiliated/sioraiocht] has joined #go-nuts 11:27 < xyproto> I suspect that a function in a Go Package has changed since list time I used it. Is there a way to see the latest changes for a package (like the "os" package)? I looked at the changelog on the front page of golang.org, but could not find a way to see the changes for just one package. 11:28 -!- foocraft [~dsc@89.211.216.193] has quit [Ping timeout: 255 seconds] 11:31 -!- foocraft [~dsc@178.152.67.119] has joined #go-nuts 11:31 < jnwhiteh> xyproto: you can also look at the source and see what has changed 11:31 < jnwhiteh> https://github.com/tav/go/commits/master/src/pkg/os 11:32 < xyproto> jnwhiteh: ah, true. thanks 11:32 < jnwhiteh> alternatively, use gofix =) 11:32 < jnwhiteh> if its a recent change 11:35 < xyproto> jnwhiteh: Now I understand my confusion. The latest changes in the link you give me, does not correspond to the source that appears in the package documentation. Try clicking "StartProcess" here: http://golang.org/pkg/os/#Process.StartProcess 11:35 < jnwhiteh> well what release are you using 11:35 < jnwhiteh> thats the first question =) 11:36 < xyproto> jnwhiteh: the latest one, from mercurial 11:36 < xyproto> jnwhiteh: to the best of my ability (it can be hard to keep up ;) ) 11:36 < jnwhiteh> as in tip, or latest release? 11:36 < jnwhiteh> well it matters, as golang.org only shows the latest *release* 11:36 < jnwhiteh> not the latest changeset 11:37 < jnwhiteh> it appears this is what is on the website 11:37 < jnwhiteh> https://github.com/tav/go/commits/weekly.2011-03-07?path%5B%5D=src&path%5B%5D=pkg&path%5B%5D=os 11:38 -!- artefon [~thiago@dhcp19.usuarios.dcc.ufmg.br] has joined #go-nuts 11:43 < skelterjohn> StartProcess changed 11:43 < skelterjohn> ye 11:43 < skelterjohn> s 11:47 < xyproto> jnwhiteh: I see. I guess I want to use the latest release, but have ended up with using the latest tip, so that I can report bugs if they should appear. 11:47 < jnwhiteh> http://gonuts.org/ has the documentation on tip 11:47 < jnwhiteh> or you can use godoc to spawn your own http server/view the docs 11:47 < jnwhiteh> then you have the docs for teh version you're using =) 11:48 < xyproto> nice, thanks :) 12:09 -!- virtualsue [~chatzilla@nat/cisco/x-hysoxphksopxrwxz] has joined #go-nuts 12:15 -!- plexdev [~plexdev@arthur.espians.com] has quit [Ping timeout: 276 seconds] 12:16 -!- plexdev [~plexdev@arthur.espians.com] has joined #go-nuts 12:17 -!- chaos95 [chaos95@mafianode.com] has quit [Ping timeout: 276 seconds] 12:17 -!- Namegduf [~namegduf@eu.beshir.org] has quit [Ping timeout: 276 seconds] 12:17 -!- Namegduf [~namegduf@eu.beshir.org] has joined #go-nuts 12:18 -!- chaos95 [chaos95@mafianode.com] has joined #go-nuts 12:28 -!- femtoo [~femto@95-89-249-242-dynip.superkabel.de] has joined #go-nuts 12:30 -!- arvindht [c2ed8e11@gateway/web/freenode/ip.194.237.142.17] has left #go-nuts [] 12:32 -!- boscop [~boscop@f055106185.adsl.alicedsl.de] has joined #go-nuts 12:37 -!- nixness [~dsc@178.152.67.119] has joined #go-nuts 12:44 -!- femtoo [~femto@95-89-249-242-dynip.superkabel.de] has quit [Ping timeout: 255 seconds] 12:47 -!- jgonzalez [~jgonzalez@173-14-137-134-NewEngland.hfc.comcastbusiness.net] has joined #go-nuts 12:58 -!- niemeyer [~niemeyer@201-66-179-18.pltce701.dsl.brasiltelecom.net.br] has joined #go-nuts 13:05 < xyproto> I'm trying to follow the tutorial at http://cheesesun.blogspot.com/2009/12/basic-cgo.html, in order to learn how to call C-functions from Go. After finding a workaround for why the Makefile didn't work, I've stranded at this error: _obj/_cgo_gotypes.go:59: invalid recursive type _Ctypedef_WINDOW 13:06 < xyproto> What could it be? 13:13 < niemeyer> xyproto: This happens when the definition of a type depends on itself 13:13 < niemeyer> xyproto: Can you please paste the .h somewhere? 13:17 < xyproto> niemeyer: yes, here's _cgo_export.h: http://pastebin.com/pr9hTKSN 13:18 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 13:24 < niemeyer> xyproto: Checking 13:24 < xyproto> niemeyer: ok, thanks 13:24 < niemeyer> xyproto: Erm, no, sorry 13:24 < niemeyer> xyproto: I meant the .h which contains the type cgo is refusing to parse 13:25 < xyproto> niemeyer: there is only one .h file in my "ctest" directory and ctest/_obj 13:26 < niemeyer> xyproto: Where is the "WINDOW" type being defined? 13:26 -!- shvntr [~shvntr@116.26.128.150] has quit [Quit: leaving] 13:26 < niemeyer> xyproto: I see.. 13:26 < xyproto> 0 _obj/gocurses.cgo2.c 45 const WINDOW* r; 13:27 < niemeyer> xyproto: I figure from the blog post.. 13:27 < niemeyer> xyproto: It's not there, it's inside ncurses 13:27 < niemeyer> ncurses.h, more specifically 13:27 < niemeyer> xyproto: Are you interested in ncurses, or are you just following the example? 13:27 < xyproto> niemeyer: here is _obj/_cgo_gotypes.go as well: http://pastebin.com/gYpe65Ti 13:28 < xyproto> Usually, I'm interested in ncurses as well. But, for this particular case, I'm just trying to follow the example. :) 13:28 < xyproto> printf("cheesedoodles\n") called from Go would be enough :) 13:33 -!- pharris [~Adium@rhgw.opentext.com] has joined #go-nuts 13:34 < niemeyer> xyproto: Cool, so don't really worry about this issue 13:34 < niemeyer> xyproto: This is a problem which must be looked at, but unrelated to your case 13:35 < niemeyer> xyproto: To test printf, use 13:35 < niemeyer> / #include <stdio.h> 13:35 < niemeyer> Sorry 13:36 < niemeyer> / #include <stdio.h> 13:36 < niemeyer> // #include <stdio.h> 13:36 < niemeyer> import "C" 13:36 < niemeyer> and then 13:36 < niemeyer> C.printf("Hello world\n") 13:36 < niemeyer> within main 13:36 < niemeyer> xyproto: Just that should work 13:37 < niemeyer> xyproto: Remove CGO_LDFLAGS from your Makefile too 13:38 < xyproto> niemeyer: great, thanks! I'll try that. 13:38 < niemeyer> xyproto: No problem 13:38 -!- rbraley [~rbraley@114.246.166.217] has joined #go-nuts 13:45 -!- artefon [~thiago@dhcp19.usuarios.dcc.ufmg.br] has quit [Quit: bye] 13:45 -!- artefon [~thiago@dhcp19.usuarios.dcc.ufmg.br] has joined #go-nuts 13:47 -!- gmilleramilar [~gmiller@pool-74-101-133-165.nycmny.fios.verizon.net] has quit [Ping timeout: 260 seconds] 13:52 -!- jjames [~user@li112-65.members.linode.com] has left #go-nuts ["ERC Version 5.3 (IRC client for Emacs)"] 13:52 < steven> adg: ive done that, it doesnt help. it still only uses one of my processors (i have 4) 13:57 < xyproto> niemeyer: I have main.go http://pastebin.com/ay8TZveC and Makefile http://pastebin.com/KBVQcnMx . Does these two work for you? Here, I get a message I've never seen before: "unexpected type: ..." 13:57 -!- zozoR [~Morten@56344966.rev.stofanet.dk] has joined #go-nuts 13:58 < xyproto> Also, how come this is 0? x := 1.0; fmt.Println(math.Sin(x) * math.Sin(x) + math.Cos(x) * math.Cos(x)) 13:58 < xyproto> typo, meant this: x := 1.0; fmt.Println(int(math.Sin(x) * math.Sin(x) + math.Cos(x) * math.Cos(x))) 13:58 < xyproto> sin²x+cos²x is supposed to be 1, always 14:01 < nsf> http://pastie.org/1695942 14:01 < nsf> works for me 14:02 < skelterjohn> xyproto: it's possible it is 1-1e-10 or something 14:02 < skelterjohn> floating point arithmetic is approximate 14:03 < xyproto> nsf: strange, I did a copy paste of that program, and here it's 0 14:03 < steven> how do you disable certain packages like goplay does? 14:04 < xyproto> skelterjohn: true. The float64 value of the same expression is close to 1. I think it's int() that is surprising. I could not find a math.Round() function either. How can I make it go from 0.9999... to 1? 14:04 < xyproto> s/go from/convert/ 14:04 < skelterjohn> int(x+.5) 14:04 < skelterjohn> will round 14:04 < xyproto> skelterjohn: ah, the old +.5 trick ;) thanks 14:05 < exch> Presumably something really obvious is going on here, but I'm not sure I get it. http://pastie.org/1695964 14:05 < exch> the a < b check on line 24 fails when both are 0.1 14:06 < exch> I would guess that, since amount is the result of a calculation, it isn't exactly 0.1. Strangely, it works properly when you input '0.17' to the routine instead of '0.16' 14:07 < steven> i cant find anything on the mailing list about how to disable system calls when compiling go 14:07 < steven> snap. 14:08 < skelterjohn> it is impossible for a floating point to be exactly 0.1 14:09 < exch> mm 14:09 < skelterjohn> it needs to be some combination of powers of 2 14:09 < skelterjohn> otherwise you don't have it exactly 14:09 < exch> So it's just a fluke then that 0.17 as input works 14:09 < skelterjohn> yes 14:09 < exch> righty 14:10 < skelterjohn> well, i haven't examined your source 14:11 < skelterjohn> for that app i'd suggest counting in cents rather than dollars :) 14:11 < exch> yea I figured as much 14:13 -!- saturnfive [~saturnfiv@117.32.175.230] has joined #go-nuts 14:13 < exch> yup, that solves it alright 14:13 -!- shvntr [~shvntr@116.26.128.150] has joined #go-nuts 14:13 < exch> damn floats 14:14 -!- saturnfive [~saturnfiv@117.32.175.230] has left #go-nuts [] 14:15 < skelterjohn> i am surprised the remainder was so large, though 14:15 < skelterjohn> i wonder if you could use float64 to fix it, too 14:17 < exch> result is the same for float64 14:18 -!- sauerbraten [~sauerbrat@p508CD7AD.dip.t-dialin.net] has joined #go-nuts 14:18 -!- shvntr [~shvntr@116.26.128.150] has quit [Quit: leaving] 14:20 < steven> guys, 14:20 < steven> http://mikeash.com/pyblog/friday-qa-2011-01-04-practical-floating-point.html 14:22 < nsf> floating point number representation is weird 14:22 < nsf> but works, whatever.. 14:22 < steven> i like to avoid it. 14:22 < nsf> I can't, my main area of interest is game programming :) 14:23 < nsf> the funnies part starts when it comes to network programming 14:23 < nsf> and crossplatform determinism is a requirement 14:23 < nsf> funniest* 14:24 < nsf> in general it's all like the guys says.. there is a standard bla bla 14:24 -!- adu [~ajr@softbank220043139062.bbtec.net] has joined #go-nuts 14:24 < nsf> but in practice 14:26 -!- skelterjohn [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has quit [Quit: skelterjohn] 14:26 < nsf> although, I've heard gcc's -mfpmath=sse helps a lot 14:27 -!- Venom_X [~pjacobs@66.54.185.133] has joined #go-nuts 14:29 -!- adu [~ajr@softbank220043139062.bbtec.net] has quit [Quit: adu] 14:30 < steven> on that note, 14:31 < steven> is there a way to compile Go with certain system calls disabled? 14:31 < steven> ie, like http://golang.org/doc/playground.html does? 14:33 -!- Fish [~Fish@exo3753.pck.nerim.net] has quit [Quit: So Long, and Thanks for All the Fish] 14:34 < xyproto> Is there something like this for Go? http://docs.python.org/library/fractions.html 14:36 -!- adu [~ajr@softbank220043139062.bbtec.net] has joined #go-nuts 14:36 < plexdev> http://is.gd/5PBaZm by [Gustavo Niemeyer] in go/src/pkg/exec/ -- exec: document dir option for Run 14:38 < steven> niemeyer: whats the diff between arg and param? 14:38 < niemeyer> steven: None, in that regard 14:38 -!- Fish [~Fish@exo3753.pck.nerim.net] has joined #go-nuts 14:39 < niemeyer> steven: Consistency was the only reason it was changed 14:39 < steven> ah 14:45 -!- adu [~ajr@softbank220043139062.bbtec.net] has quit [Quit: adu] 14:53 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts 14:57 -!- mattn_jp [~mattn@112-68-52-24f1.hyg1.eonet.ne.jp] has joined #go-nuts 14:58 -!- monokrome [~monokrome@174.129.14.230] has joined #go-nuts 14:58 < monokrome> hello 14:59 < monokrome> Does anyone know why this might occur? http://paste.pocoo.org/show/357151/ 15:00 < pharris> monokrome: Old version of go installed, maybe. filepath was only added a release or two ago. 15:00 < monokrome> The library that I am trying to build seems to not tell me all of it's dependancies :) 15:00 < monokrome> oh okay 15:01 < monokrome> How can I see what version I have? 15:02 < exch> monokrome: go into $GOROOT and type hg indentify 15:02 < xyproto> monokrome: 6g -v may also be helpful 15:02 < exch> or that 15:02 < monokrome> $GOROOT isn't a mercurial repository 15:03 < monokrome> 6g version release.2011-02-15 7463 15:03 < xyproto> monokrome: if you installed Go from the go-hg package on Arch Linux, try: pacman -Qi go-hg | grep Version 15:03 < monokrome> I just used the go package 15:04 < monokrome> http://paste.pocoo.org/show/357159/ 15:04 < xyproto> monokrome: go changes so fast, that I was unable to keep up with everything without using the go-hg package 15:04 < exch> my current version is weekly/weekly.2011-03-15 15:04 < xyproto> monokrome: both for being able to report bugs and for trying random packages 15:04 < monokrome> pacman says there's no go-hg package :( 15:05 < xyproto> monokrome: it's in AUR 15:05 < monokrome> Oh 15:05 < xyproto> http://aur.archlinux.org/packages.php?ID=33695 15:05 * monokrome doesn't use AUR :/ 15:05 < xyproto> funny that you're on Arch, btw, I just assumed you would be :) 15:05 < monokrome> Maybe I should 15:05 -!- emjayess [~emjayess@pix1.i29.net] has joined #go-nuts 15:06 < xyproto> monokrome: if you use the "cower" tool, you can do: "cower -d go-hg; cd go-hg; makepkg; sudo pacman -U go-hg[...]" 15:06 < monokrome> xyproto: What is the cower tool? 15:06 < xyproto> monokrome: it's a nice way to access AUR in a more controlled way, if AUR seems scary 15:06 -!- skelterjohn [~jasmuth@lawn-gw.rutgers.edu] has joined #go-nuts 15:07 < xyproto> monokrome: https://wiki.archlinux.org/index.php/AUR_Helpers#cower 15:07 < monokrome> xyproto: I guess that I need to learn how to set up AUR first :) 15:07 < xyproto> monokrome: of course, it's not so fancy as yaourt, where loads of packages can be installed without confirmation with a single command. But, it's more scary. 15:07 < xyproto> (yaourt) 15:08 < xyproto> (Since all AUR packages are user-submitted). 15:08 < xyproto> monokrome: you don't need to set it up, you just need an AUR helper. It's also possible to download a PKGBUILD text file manually, and just run "makepkg" in the same directory. 15:09 < xyproto> It's just a fancy framework for text-files, really. 15:09 < monokrome> xyproto: Yeah, figured it out. I guess it just generates pacman packages? 15:09 < xyproto> yes 15:09 < monokrome> Cool :) 15:09 < xyproto> yeah :) 15:09 * monokrome has been building/installing everything manually :O 15:10 < xyproto> If you install go-hg, mind that you probably have to run /etc/profile.d/go.sh manually (or log out and in again) 15:10 < xyproto> to get GOROOT and friends 15:10 < monokrome> yeah 15:10 < monokrome> and I have to set GOARCH 15:10 < monokrome> because I don't think it's there by default :( 15:11 < xyproto> yes. I commented on the go-hg package today, asking the author to add GOARCH. 15:12 < xyproto> I see now that he's answered too. He doesn't think it's needed anymore, as "OROOT is the only thing 15:12 < xyproto> that needs to be set to build packages with default 15:12 < xyproto> makefiles." 15:12 < xyproto> *GOROOT 15:12 < monokrome> :( 15:12 < xyproto> So, if he's right, GOARCH isn't needed anymore (?) 15:13 < monokrome> Well, this library was pretty mad without it! :) 15:13 < monokrome> ack 15:13 < monokrome> It didn't set up GOBIN either? 15:13 < steven> where do you guys put $GOROOT ? 15:13 < steven> i have it = $HOME/.go 15:14 < xyproto> steven: /opt/go here 15:15 < xyproto> monokrome: no, unfortunately not. However, it's easy to add to go.sh... 15:16 < monokrome> Hmm 15:16 -!- tvw [~tv@212.79.9.150] has joined #go-nuts 15:16 < monokrome> What is GOOS supposed to be set to? 15:16 < monokrome> linux? 15:17 < xyproto> monokrome: yes 15:17 < xyproto> monokrome: I found this http://golang.org/doc/install.html#environment 15:18 < monokrome> godag builds now :D 15:18 < skelterjohn> godag :\ 15:19 * monokrome doesn't know if it's good or bad... but this app requires I use it to build. 15:19 -!- shakesoda [~colby@c-67-168-136-89.hsd1.wa.comcast.net] has quit [Quit: shakesoda] 15:19 < skelterjohn> what app? 15:19 < xyproto> monokrome: I'm glad it works for you :) 15:19 < monokrome> https://github.com/archwyrm/ghack 15:21 < steven> xyproto: system-wide install? 15:21 -!- ronnyy [~quassel@p4FF1C680.dip0.t-ipconnect.de] has joined #go-nuts 15:22 < skelterjohn> monokrome: not sure how protocol is supposed to be built in that project 15:22 -!- Venom_X [~pjacobs@66.54.185.133] has quit [Quit: Venom_X] 15:22 < monokrome> skelterjohn: Sorry, what? 15:22 < skelterjohn> ghack 15:22 < skelterjohn> i can't figure out how to build it 15:23 < monokrome> w/ godag 15:23 < skelterjohn> besides godag 15:23 < skelterjohn> i don't see where the protocol package is 15:23 < skelterjohn> i see protocol/protocol.proto 15:23 < skelterjohn> but i don't know what a .proto file is 15:23 < skelterjohn> it looks like go source, but it doesn't compile 15:24 < skelterjohn> oh it's a protobuf thing 15:24 < skelterjohn> ok 15:24 < monokrome> http://code.google.com/apis/protocolbuffers/ 15:24 < skelterjohn> that's what i get for not reading the readme 15:24 < monokrome> hehe 15:28 -!- hypertux [~hypertux@vps1.joelegasse.com] has joined #go-nuts 15:29 < skelterjohn> well, if the authors of ghack had used gb instead of godag, they would have been able to auto-generate makefiles and avoid the build tool dependence O:-) 15:30 < skelterjohn> weird that a hack impl would have a protobuf dep, though... 15:30 < skelterjohn> i wonder why 15:30 < monokrome> Probably :) 15:31 < monokrome> a hack impl? 15:31 < skelterjohn> ghack... 15:31 < monokrome> What is a hack impl? 15:31 < skelterjohn> the game hac 15:31 < skelterjohn> k 15:31 < skelterjohn> it has been implemented many times 15:31 < monokrome> I don't think that this is that game. 15:32 < skelterjohn> oh i read the readme too quickly 15:32 < monokrome> Indeed. 15:32 < skelterjohn> they shouldn't call it hack :\ 15:32 < monokrome> They've talked about a name change. This is a project inherited from another team and being rewritten, really. 15:37 -!- piranha [~piranha@5ED42E59.cm-7-5a.dynamic.ziggo.nl] has quit [Quit: Computer has gone to sleep.] 15:40 -!- piranha [~piranha@5ED42E59.cm-7-5a.dynamic.ziggo.nl] has joined #go-nuts 15:40 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Read error: Operation timed out] 15:40 -!- piranha [~piranha@5ED42E59.cm-7-5a.dynamic.ziggo.nl] has quit [Client Quit] 15:42 -!- iant [~iant@216.239.45.130] has joined #go-nuts 15:42 -!- mode/#go-nuts [+v iant] by ChanServ 15:43 -!- jyxent [~jyxent@129.128.191.96] has quit [Ping timeout: 250 seconds] 15:43 -!- karpar [~user@112.96.225.26] has joined #go-nuts 15:45 -!- jyxent [~jyxent@129.128.191.96] has joined #go-nuts 15:46 -!- jokooon [~jorinovsk@LMontsouris-156-26-32-176.w80-14.abo.wanadoo.fr] has joined #go-nuts 15:46 < str1ngs> xyproto: cower > yaourt 15:48 < xyproto> str1ngs: I agree. :) yaourt can be handy for installing packages you are familiar with that has a lot of dependencies, though 15:48 -!- jokoon [~jorinovsk@LMontsouris-156-26-32-176.w80-14.abo.wanadoo.fr] has quit [Ping timeout: 250 seconds] 15:48 < str1ngs> xyproto: cower -dd 15:49 < xyproto> str1ngs: good point, but still, with yaourt you can install them all with one command, no questions asked. Of course, it's only sane to use that with packages you are familiar with. 15:49 < str1ngs> yes but due to the nature of aur that is a good thing. 15:50 < str1ngs> I rather use makepkg by hand if I need to verify the PKGBUILD's 15:50 -!- tonnerre1 [~tonnerre@ec2-79-125-90-109.eu-west-1.compute.amazonaws.com] has joined #go-nuts 15:51 < str1ngs> it only gets crazy when you deal with a haskell package though :P 15:51 < xyproto> str1ngs: you still have to do the work of actually verifying everything, for both yaourt and cower, to be safe. And with yaourt, you are asked to edit each and every PKGBUILD unless you provide --noconfirm 15:52 < xyproto> str1ngs: yeah, haskell packages, that's another thing. I truly wish there was a system-wide database that had a list of all functions for all libraries installed, including a checksum of the sourcecode for each and every function. That way, applications could depend on function signatures + checsums instead of the fallible library version numbers. 15:52 < str1ngs> xyproto: yes but.. with cower I get to keep all the PKGBUILD in a place of my choosing 15:53 < str1ngs> xyproto: with linux best you can do is /usr/include. the dependancy hell is not going away antime soon. one of the appeals for Go 15:54 < xyproto> str1ngs: you can choose a directory for yaourt to store PKGBUILDs as well, though 15:54 < xyproto> str1ngs: also, I think one can do better than /usr/include. I'm a slight optimist. :) 15:55 < str1ngs> xyproto: I agree it can be better. you should have seen the days before yum, apt and pacman :P 15:56 < xyproto> str1ngs: ;) 15:57 < str1ngs> xyproto: -dev packages can drive you crazy do. it use to be twice has hard to find those package pre yum though 15:58 < xyproto> str1ngs: agree 15:58 -!- rlab_ [~Miranda@91.200.158.34] has joined #go-nuts 15:58 < xyproto> gtg, talk to you later :) 15:59 -!- jokoon [~jorinovsk@LMontsouris-156-26-32-176.w80-14.abo.wanadoo.fr] has quit [Quit: Quitte] 16:00 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 250 seconds] 16:02 -!- rtharper [~tomh@unaffiliated/sioraiocht] has quit [Ping timeout: 264 seconds] 16:02 -!- cmccabe [~cmccabe@c-24-23-254-199.hsd1.ca.comcast.net] has joined #go-nuts 16:09 < str1ngs> xyproto: I think we need a Go aur helper :P. I already started some work on bindings for libalpm 16:12 < nsf> one more aur helper? 16:12 < nsf> what's wrong with clyde? 16:15 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.4] 16:15 < str1ngs> its C! and the maintainer is crazy :P j/k 16:16 -!- karpar [~user@112.96.225.26] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 16:16 -!- tonnerre1 [~tonnerre@ec2-79-125-90-109.eu-west-1.compute.amazonaws.com] has quit [Quit: WeeChat 0.3.1.1] 16:16 -!- iTonnerre [~tonnerre@ec2-79-125-90-109.eu-west-1.compute.amazonaws.com] has joined #go-nuts 16:20 -!- femtoo [~femto@95-89-249-242-dynip.superkabel.de] has joined #go-nuts 16:20 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has quit [Quit: Leaving.] 16:22 -!- arun_ [~arun@unaffiliated/sindian] has joined #go-nuts 16:22 -!- awidegreen [~quassel@c-eacae555.08-2-73746f39.cust.bredbandsbolaget.se] has joined #go-nuts 16:23 -!- piranha [~piranha@5ED43A0B.cm-7-5a.dynamic.ziggo.nl] has joined #go-nuts 16:27 < pingveno> str1ngs: I think I"m going to back out of the FHS thing. TBH, I don't really have enough knowledge of Go or packaging to be able to discuss things intelligently 16:28 < pingveno> I also don't really have the time... 16:38 < str1ngs> pingveno: I hear ya. I'll try to look at that go PKGBUILD then 16:38 -!- Project-2501 [~Marvin@82.84.70.147] has quit [Read error: Connection reset by peer] 16:39 -!- arun_ [~arun@unaffiliated/sindian] has quit [Read error: Connection reset by peer] 16:39 < str1ngs> pingveno: mean time I suggest using the official install method with ~/go 16:45 < pingveno> str1ngs: That's the other problem. I'm not actually using Go at the moment, so I can't get much practice :( 16:47 < str1ngs> pingveno: oh? just to busy? 16:48 < pingveno> school 16:48 -!- arun_ [~arun@pool-108-18-145-233.washdc.fios.verizon.net] has joined #go-nuts 16:48 -!- arun_ [~arun@pool-108-18-145-233.washdc.fios.verizon.net] has quit [Changing host] 16:48 -!- arun_ [~arun@unaffiliated/sindian] has joined #go-nuts 16:48 < skelterjohn> don't let school get in the way of what's important 16:49 < str1ngs> pingveno: there is also go-hg in aur but I havent lookt at it for awhile. it was pretty well maintained last I looked at it though 16:49 -!- saschpe [~quassel@opensuse/member/saschpe] has joined #go-nuts 17:02 < str1ngs> pingveno: ya I'm looking at the go-hg. its using /opt which for right now might be the best solution 17:05 < str1ngs> pingveno: so if say you wanted to make a goinstall derived package. use something like go-hg as dependancy. but because its in /opt. for cmd packages it would still have dependancy on go-hg even though in reality its only a make depend. 17:06 < str1ngs> pingveno: then you need figure out how to pass DESTDIR as $pkgdir DESTDIR is not a goterm. I would imagine it can handle something like that worst case you use install 17:08 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts 17:19 -!- dario [~dario@domina.zerties.org] has joined #go-nuts 17:23 -!- plainhao [~plainhao@208.75.85.237] has joined #go-nuts 17:23 -!- adu [~ajr@softbank220043139062.bbtec.net] has joined #go-nuts 17:26 -!- rtharper [~tomh@unaffiliated/sioraiocht] has joined #go-nuts 17:27 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 17:32 < steven> skelterjohn: amen to that! 17:32 < skelterjohn> what'd i say 17:32 < skelterjohn> oh 17:32 < skelterjohn> yeah 17:32 < steven> that we should not let school get in the way of whats important: 17:32 < steven> Jesus! 17:33 < skelterjohn> ok 17:34 < steven> do you happen to know of a way to compile Go to disallow system-level operations? 17:34 < steven> im trying to reproduce http://golang.org/doc/playground.html in a safe manner. 17:35 < skelterjohn> you can't - you can just remove all syscalls from libraries 17:35 < skelterjohn> but people can still bring in their own .s files 17:35 < skelterjohn> and call them anywya 17:35 < skelterjohn> that being said, i don't know exactly what they did for the playground 17:37 < xyproto> is using gofmt with any particular settings the "blessed" way of formatting source code? 17:38 < skelterjohn> the setting i use is -F 17:39 < skelterjohn> i mean -W 17:39 < skelterjohn> i mean -w 17:39 < skelterjohn> :) 17:39 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:b160:6897:5f18:8201] has joined #go-nuts 17:40 < xyproto> skelterjohn: to modify the file "in place"? I see. :) 17:40 -!- keithcascio [~keithcasc@nat/google/x-ivgngxdihcgounln] has joined #go-nuts 17:42 < steven> i just do gofmt -w 17:42 < steven> yeah 17:42 < steven> theres a textmate keyboard shortcut to do it in your open file 17:42 < steven> handy. 17:42 < skelterjohn> well, what i actually use is gb -F 17:42 < skelterjohn> but that's another issue 17:43 < xyproto> What are the requirements for a go-application to be ultimately "blessed"? Source code formatted with gofmt, tests in *_test files, Makefiles that include the Go makefiles, godoc? what else? 17:43 < skelterjohn> depends on what you mean by "blessed" 17:43 < skelterjohn> blessed by whom? for what? 17:44 < xyproto> By the Go-crowd. For showoff-purposes. :P 17:44 < skelterjohn> then don't worry about it, because no one cares :) 17:44 < skelterjohn> but if you want to get something into the core, standards are higher 17:44 < xyproto> Okay, okay. By the strictest, most fanatic Go-programmer on earth? 17:44 < xyproto> Or the core-standards, yes. 17:44 < skelterjohn> *shrug* no idea. i don't have anything in the core. 17:44 -!- gr0gmint [~quassel@87.61.162.99] has joined #go-nuts 17:45 < xyproto> ok :) 17:45 < skelterjohn> what are you making? 17:45 < xyproto> I wondered, because I've written a little utility in Go. The purpose is not the point, but I'm trying to polish everything as much as possible. 17:45 < xyproto> *the purpose of the utility 17:46 < xyproto> I wanted to learn the full-cycle process, from coding to a little Arch package, before creating anything larger 17:46 < xyproto> addinclude.roboticoverlords.org 17:46 < xyproto> I realised today that I should use gofmt, the fancy *_tests and perhaps also godoc. 17:47 < skelterjohn> godoc is just commenting your code well 17:47 < skelterjohn> gofmt should be run, yes 17:47 < skelterjohn> and if it makes sense, tests are good 17:48 < xyproto> yes, I agree 17:54 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Read error: Operation timed out] 17:56 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts 17:56 -!- rtharper [~tomh@unaffiliated/sioraiocht] has quit [Remote host closed the connection] 17:59 -!- gr0gmint [~quassel@87.61.162.99] has quit [Remote host closed the connection] 18:05 -!- eaburns [~eaburns@c-24-62-248-129.hsd1.nh.comcast.net] has joined #go-nuts 18:05 < eaburns> hello 18:06 < eaburns> I am curious about the append() function for slices. If I append 1 element at-a-time, when it comes time to grow the array that is backing the slice will the capacity grow by only 1 or will it grow by doubling? 18:06 -!- artefon [~thiago@dhcp19.usuarios.dcc.ufmg.br] has quit [Quit: bye] 18:08 < skelterjohn> doubling 18:09 < hypertux> eaburns, the only thing the language spec says is that it will allocate a "sufficiently large slice" 18:09 < hypertux> but in practice, it's usually doubling 18:09 < eaburns> thanks 18:10 < skelterjohn> and if you examine the implementation, go does this by doubling 18:11 < eaburns> I guess that I am trying to decide when to use a slice and when I should use containers/vector. Is the advantage of the vector just that it provides a slightly higher-level set of functions? 18:11 -!- sauerbraten [~sauerbrat@p508CD7AD.dip.t-dialin.net] has quit [Quit: Leaving] 18:11 < skelterjohn> you should just use slice 18:11 < pharris> eaburns: containers/vector mostly dates back to the dark ages when we didn't have append() yet. 18:11 < skelterjohn> containers/vector was an experiment that never really caught on 18:11 -!- sauerbraten [~sauerbrat@p508CD7AD.dip.t-dialin.net] has joined #go-nuts 18:11 < exch> they should be removed from the libs tbh 18:12 < eaburns> OK, then I am glad that I asked. 18:12 < eaburns> thanks a lot 18:16 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has joined #go-nuts 18:17 < eaburns> now I am wondering, are there any other packages like vector that I should avoid? 18:17 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has left #go-nuts [] 18:19 < skelterjohn> the vector stuff works perfectly well 18:19 < skelterjohn> it just has dubious value 18:20 < eaburns> sure but I guess that I would like to avoid packages with dubious value. Especially if there is an alternative convension like slices/append() 18:22 < eaburns> I guess that I shouldn't really worry about it :) 18:23 < skelterjohn> :) 18:24 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts 18:26 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has joined #go-nuts 18:26 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has left #go-nuts [] 18:26 -!- eaburns [~eaburns@c-24-62-248-129.hsd1.nh.comcast.net] has left #go-nuts [] 18:28 -!- adu [~ajr@softbank220043139062.bbtec.net] has quit [Quit: adu] 18:31 -!- adu [~ajr@softbank220043139062.bbtec.net] has joined #go-nuts 18:33 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has joined #go-nuts 18:33 -!- sauerbraten [~sauerbrat@p508CD7AD.dip.t-dialin.net] has quit [Remote host closed the connection] 18:39 -!- jyxent [~jyxent@129.128.191.96] has quit [Ping timeout: 248 seconds] 18:43 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has joined #go-nuts 18:43 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has left #go-nuts [] 18:43 -!- aho [~nya@fuld-590c7f95.pool.mediaWays.net] has joined #go-nuts 18:46 -!- Fish- [~Fish@9fans.fr] has joined #go-nuts 18:47 -!- petrux [~petrux@host16-224-static.53-82-b.business.telecomitalia.it] has quit [Read error: Connection reset by peer] 18:48 -!- tensai_cirno [~cirno@80.250.216.102] has joined #go-nuts 18:50 -!- eaburns [~eaburns@c-24-62-248-129.hsd1.nh.comcast.net] has joined #go-nuts 18:55 -!- tensorpudding [~user@99.148.205.193] has joined #go-nuts 18:57 -!- m4dh4tt3r [~Adium@c-69-181-223-245.hsd1.ca.comcast.net] has joined #go-nuts 18:57 -!- rtharper [~tomh@unaffiliated/sioraiocht] has joined #go-nuts 18:58 < steven> when did we get append() ? 18:58 < steven> i thought that was always there 18:58 -!- tensai_cirno [~cirno@80.250.216.102] has quit [Quit: Leaving] 18:59 < skelterjohn> 4 months ago, or so? 18:59 < KirkMcDonald> I was pleased to see it added. 19:00 < KirkMcDonald> So I don't have to keep writing all of my own append functions. 19:00 -!- artefon [~thiago@189.59.196.88] has joined #go-nuts 19:04 < steven> wheres its src? 19:05 <+iant> steven: it boils down to appendslice1 in src/pkg/runtime/slice.c 19:09 < steven> ah nice 19:10 -!- jyxent [~jyxent@129.128.191.96] has joined #go-nuts 19:15 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has quit [Remote host closed the connection] 19:18 -!- virtualsue [~chatzilla@nat/cisco/x-hysoxphksopxrwxz] has quit [Ping timeout: 264 seconds] 19:24 < steven> iant++ 19:27 -!- fabled [~fabled@mail.fi.jw.org] has quit [Quit: Ex-Chat] 19:31 -!- tvw [~tv@212.79.9.150] has quit [Remote host closed the connection] 19:34 -!- lmoura [~lauromour@186.215.206.130] has quit [Ping timeout: 240 seconds] 19:35 -!- eaburns [~eaburns@c-24-62-248-129.hsd1.nh.comcast.net] has left #go-nuts [] 19:35 -!- lmoura [~lauromour@187.58.111.21] has joined #go-nuts 19:46 -!- jbooth1 [~jay@209.249.216.2] has quit [Quit: Leaving.] 19:48 -!- dju__ [dju@fsf/member/dju] has joined #go-nuts 19:50 -!- jbooth1 [~jay@209.249.216.2] has joined #go-nuts 19:51 -!- dju_ [dju@fsf/member/dju] has quit [Ping timeout: 246 seconds] 19:59 -!- lmoura [~lauromour@187.58.111.21] has quit [Ping timeout: 252 seconds] 20:01 -!- wrtp [~rog@92.17.17.88] has joined #go-nuts 20:01 -!- lmoura [~lauromour@187.58.111.21] has joined #go-nuts 20:02 -!- lmoura [~lauromour@187.58.111.21] has quit [Remote host closed the connection] 20:12 < plexdev> http://is.gd/FewQZf by [Rob Pike] in go/src/pkg/syscall/ -- syscall: rename from .sh to .pl, because these files are in Perl. 20:12 -!- ako [~nya@fuld-590c62a4.pool.mediaWays.net] has joined #go-nuts 20:12 < skelterjohn> i want to do the equiv of passing a func(io.Writer) as a parameter to template.Template.Execute 20:13 < skelterjohn> but, that just prints out a hex number 20:13 < skelterjohn> so i'm guessing its the address 20:13 < skelterjohn> anyone know what could work? 20:14 -!- Natch| [~natch@c-6dcde155.25-4-64736c10.cust.bredbandsbolaget.se] has quit [Quit: /(bb|[^b]{2})/] 20:15 -!- rtharper [~tomh@unaffiliated/sioraiocht] has quit [Remote host closed the connection] 20:15 -!- aho [~nya@fuld-590c7f95.pool.mediaWays.net] has quit [Ping timeout: 248 seconds] 20:15 -!- rtharper [~tomh@unaffiliated/sioraiocht] has joined #go-nuts 20:17 < skelterjohn> inspecting the template source, it doesn't seem to be possible 20:21 -!- Natch| [~natch@c-6dcde155.25-4-64736c10.cust.bredbandsbolaget.se] has joined #go-nuts 20:38 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Ping timeout: 252 seconds] 20:40 -!- rlab_ [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org] 20:43 -!- Scorchin [~Scorchin@host109-157-104-50.range109-157.btcentralplus.com] has joined #go-nuts 20:43 -!- tensai_cirno [~cirno@77.232.15.216] has joined #go-nuts 20:44 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts 20:50 -!- pharris [~Adium@rhgw.opentext.com] has quit [Quit: Leaving.] 20:53 < kamaji> Is the default value for a map of pointers nil? 20:54 < skelterjohn> default value for the map or for the map values? 20:55 < skelterjohn> and, default value for anything is nil 20:55 < skelterjohn> including a map, and its values 20:56 < KirkMcDonald> Not for *anything*.... 20:56 < KirkMcDonald> Strings, numbers... 20:56 < skelterjohn> nil value for string is an empty string 20:56 < skelterjohn> nil value for a number is 0 20:56 < skelterjohn> maybe i'm using the word nil wrong 20:57 < skelterjohn> i should say, nil is the zero-value for a pointer 20:57 < skelterjohn> and the default for a map value is whatever its zero-value is 20:57 -!- mattn_jp [~mattn@112-68-52-24f1.hyg1.eonet.ne.jp] has quit [Quit: Ex-Chat] 20:58 < plexdev> http://is.gd/Gjkt5B by [Rob Pike] in go/src/pkg/time/ -- time: give a helpful message when we can't set the time zone for testing. 20:58 -!- skelterjohn [~jasmuth@lawn-gw.rutgers.edu] has quit [Quit: skelterjohn] 20:58 < kamaji> I just meant the pointers in the map 20:59 -!- lmoura [~lauromour@187.58.111.21] has joined #go-nuts 21:00 -!- saschpe [~quassel@opensuse/member/saschpe] has quit [Read error: Connection reset by peer] 21:00 -!- itrekkie [~itrekkie@ip72-201-208-165.ph.ph.cox.net] has joined #go-nuts 21:04 -!- femtoo [~femto@95-89-249-242-dynip.superkabel.de] has quit [Ping timeout: 248 seconds] 21:11 -!- elwiss [~lou@bas3-quebec09-1176416150.dsl.bell.ca] has joined #go-nuts 21:13 < elwiss> Hi, I need to do some operation with multiple goroutine ( vectorial product ). I know how to implement the thing but I dont know how to collect/add the final result. Any Idea ? 21:18 -!- elwiss [~lou@bas3-quebec09-1176416150.dsl.bell.ca] has quit [Quit: Leaving] 21:24 -!- gr0gmint [~quassel@87.61.162.99] has joined #go-nuts 21:29 -!- piranha [~piranha@5ED43A0B.cm-7-5a.dynamic.ziggo.nl] has quit [Remote host closed the connection] 21:31 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:b160:6897:5f18:8201] has quit [Quit: Leaving.] 21:42 -!- niemeyer [~niemeyer@201-66-179-18.pltce701.dsl.brasiltelecom.net.br] has quit [Remote host closed the connection] 21:42 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Ping timeout: 255 seconds] 21:43 -!- niemeyer [~niemeyer@201-66-179-18.pltce701.dsl.brasiltelecom.net.br] has joined #go-nuts 21:44 -!- zozoR [~Morten@56344966.rev.stofanet.dk] has quit [Remote host closed the connection] 21:45 -!- niemeyer [~niemeyer@201-66-179-18.pltce701.dsl.brasiltelecom.net.br] has quit [Remote host closed the connection] 21:45 -!- gr0gmint [~quassel@87.61.162.99] has quit [Read error: Connection reset by peer] 21:45 < plexdev> http://is.gd/sodsWo by [Brad Fitzpatrick] in go/src/pkg/http/cgi/ -- cgi: extra failure debugging in host_test 21:45 -!- niemeyer [~niemeyer@201-66-179-18.pltce701.dsl.brasiltelecom.net.br] has joined #go-nuts 21:47 -!- awidegreen [~quassel@c-eacae555.08-2-73746f39.cust.bredbandsbolaget.se] has quit [Read error: Connection reset by peer] 21:49 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts 21:53 -!- Venom_X [~pjacobs@66.54.185.133] has joined #go-nuts 21:55 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Ping timeout: 252 seconds] 21:57 -!- dju_ [dju@fsf/member/dju] has joined #go-nuts 21:58 -!- niemeyer [~niemeyer@201-66-179-18.pltce701.dsl.brasiltelecom.net.br] has quit [Remote host closed the connection] 21:58 -!- niemeyer [~niemeyer@201-66-179-18.pltce701.dsl.brasiltelecom.net.br] has joined #go-nuts 22:00 -!- dju__ [dju@fsf/member/dju] has quit [Ping timeout: 252 seconds] 22:00 -!- niemeyer [~niemeyer@201-66-179-18.pltce701.dsl.brasiltelecom.net.br] has quit [Remote host closed the connection] 22:01 -!- niemeyer [~niemeyer@201-66-179-18.pltce701.dsl.brasiltelecom.net.br] has joined #go-nuts 22:01 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts 22:04 -!- niemeyer [~niemeyer@201-66-179-18.pltce701.dsl.brasiltelecom.net.br] has quit [Remote host closed the connection] 22:04 -!- artefon [~thiago@189.59.196.88] has quit [Quit: bye] 22:04 -!- niemeyer [~niemeyer@201-66-179-18.pltce701.dsl.brasiltelecom.net.br] has joined #go-nuts 22:05 -!- niemeyer [~niemeyer@201-66-179-18.pltce701.dsl.brasiltelecom.net.br] has quit [Remote host closed the connection] 22:06 -!- niemeyer [~niemeyer@201-66-179-18.pltce701.dsl.brasiltelecom.net.br] has joined #go-nuts 22:07 -!- niemeyer [~niemeyer@201-66-179-18.pltce701.dsl.brasiltelecom.net.br] has quit [Remote host closed the connection] 22:08 -!- niemeyer [~niemeyer@201-66-179-18.pltce701.dsl.brasiltelecom.net.br] has joined #go-nuts 22:21 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Ping timeout: 240 seconds] 22:28 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts 22:30 -!- skelterjohn [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has joined #go-nuts 22:32 -!- chomp [~ken@c-71-206-216-232.hsd1.pa.comcast.net] has joined #go-nuts 22:34 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit: Verlassend] 22:35 -!- niemeyer [~niemeyer@201-66-179-18.pltce701.dsl.brasiltelecom.net.br] has quit [Ping timeout: 252 seconds] 22:36 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Ping timeout: 246 seconds] 22:38 -!- i__ [~none@69.164.206.224] has quit [Changing host] 22:38 -!- i__ [~none@unaffiliated/i--/x-3618442] has joined #go-nuts 22:44 -!- Fish- [~Fish@9fans.fr] has quit [Quit: So Long, and Thanks for All the Fish] 22:49 -!- wrtp [~rog@92.17.17.88] has quit [Quit: wrtp] 22:55 -!- Tuller [~tuller@c-69-143-52-174.hsd1.va.comcast.net] has joined #go-nuts 23:10 -!- jbooth1 [~jay@209.249.216.2] has quit [Quit: Leaving.] 23:12 -!- dfc [~dfc@sydfibre2.atlassian.com] has joined #go-nuts 23:14 -!- rtharper [~tomh@unaffiliated/sioraiocht] has quit [Read error: Connection reset by peer] 23:15 -!- ronnyy [~quassel@p4FF1C680.dip0.t-ipconnect.de] has quit [Remote host closed the connection] 23:28 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts 23:32 -!- boscop [~boscop@f055106185.adsl.alicedsl.de] has quit [Ping timeout: 240 seconds] 23:36 -!- Venom_X [~pjacobs@66.54.185.133] has quit [Quit: Venom_X] 23:37 -!- iant [~iant@216.239.45.130] has quit [Quit: Leaving.] 23:41 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts 23:41 -!- gid [~gid@220-253-20-152.VIC.netspace.net.au] has quit [Quit: Leaving.] 23:59 -!- aho [~nya@fuld-590c6476.pool.mediaWays.net] has joined #go-nuts 23:59 -!- jgonzalez [~jgonzalez@173-14-137-134-NewEngland.hfc.comcastbusiness.net] has quit [Ping timeout: 255 seconds] 23:59 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.4] --- Log closed Tue Mar 22 00:00:50 2011