--- Log opened Tue Sep 21 00:00:07 2010 00:04 -!- jmettraux [~jmettraux@211.19.55.177] has joined #go-nuts 00:06 -!- ExtraSpice [~XtraSpice@88.118.34.223] has quit [Remote host closed the connection] 00:11 -!- Guest99575 [~eric@WL-202-181.CINE.HMC.Edu] has quit [Ping timeout: 265 seconds] 00:36 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 276 seconds] 00:50 -!- kanru [~kanru@118-160-164-43.dynamic.hinet.net] has quit [Ping timeout: 240 seconds] 00:59 -!- Tv1 [~tv@gige.bur.digisynd.com] has quit [Ping timeout: 272 seconds] 01:06 -!- Guest99575 [~eric@WL-202-181.CINE.HMC.Edu] has joined #go-nuts 01:08 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 01:23 -!- jdp [gu@24.238.32.162.res-cmts.segr.ptd.net] has joined #go-nuts 01:25 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts 01:26 -!- Bombe [~droden@freenet/developer/Bombe] has quit [Excess Flood] 01:26 -!- joc1985 [~jose@c-66-177-224-230.hsd1.fl.comcast.net] has joined #go-nuts 01:26 -!- Bombe [~droden@weltgehirnmaschine.de] has joined #go-nuts 01:26 < joc1985> hi 01:27 < joc1985> I have the following signature MatrixMultiply(data *MatrixData, reply *[][]int) 01:27 < joc1985> When I try to call *reply[data.Start][j] += data.Matrix1[data.Start][k] * data.Matrix2[k][j] 01:27 < joc1985> I get invalid operation: reply[data.Start] (index of type *[][]int) 01:28 < joc1985> why isn't it letting me assign to the slice? 01:30 < joc1985> anyone have the slightest idea? 01:31 < Eridius> joc1985: maybe you want (*reply)[data.Start][j]? 01:32 < joc1985> awesome Thanks Eridius 01:37 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 01:55 -!- nictuku [~nictuku@cetico.org] has quit [Ping timeout: 272 seconds] 01:58 -!- jA_cOp__ [~yakobu@ti0043a380-1568.bb.online.no] has joined #go-nuts 01:58 -!- major_majors [~major_maj@173-10-44-57-Michigan.hfc.comcastbusiness.net] has joined #go-nuts 01:59 -!- major_majors [~major_maj@173-10-44-57-Michigan.hfc.comcastbusiness.net] has quit [Read error: Connection reset by peer] 02:00 -!- major_majors [~major_maj@173-10-44-57-Michigan.hfc.comcastbusiness.net] has joined #go-nuts 02:01 -!- artefon [~thiago@189.107.174.190] has quit [Quit: bye] 02:01 -!- mbohun [~mbohun@eth649.act.adsl.internode.on.net] has joined #go-nuts 02:01 -!- jA_cOp_ [~yakobu@unaffiliated/ja-cop/x-9478493] has quit [Ping timeout: 240 seconds] 02:02 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has quit [Ping timeout: 240 seconds] 02:03 -!- mbohun [~mbohun@eth649.act.adsl.internode.on.net] has quit [Client Quit] 02:13 -!- jhawk28 [~jhawk28@user-142gfte.cable.mindspring.com] has quit [Remote host closed the connection] 02:18 -!- mbohun [~mbohun@eth649.act.adsl.internode.on.net] has joined #go-nuts 02:24 -!- jA_cOp__ [~yakobu@ti0043a380-1568.bb.online.no] has quit [Read error: Connection reset by peer] 02:25 -!- jA_cOp__ [~yakobu@ti0043a380-1568.bb.online.no] has joined #go-nuts 02:25 -!- Tv [~tv@cpe-76-168-227-45.socal.res.rr.com] has joined #go-nuts 02:25 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit: Leaving] 02:29 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined #go-nuts 02:30 -!- jA_cOp__ [~yakobu@ti0043a380-1568.bb.online.no] has quit [Read error: Connection reset by peer] 02:30 -!- jA_cOp__ [~yakobu@ti0043a380-1568.bb.online.no] has joined #go-nuts 02:34 -!- eikenberry [~jae@ivanova.zhar.net] has joined #go-nuts 02:37 -!- joc1985 [~jose@c-66-177-224-230.hsd1.fl.comcast.net] has quit [Quit: Leaving] 02:43 -!- XenoPhoenix [xenophoeni@silenceisdefeat.com] has joined #go-nuts 02:53 -!- jA_cOp__ [~yakobu@ti0043a380-1568.bb.online.no] has quit [Read error: Connection reset by peer] 02:53 -!- jA_cOp__ [~yakobu@ti0043a380-1568.bb.online.no] has joined #go-nuts 02:58 -!- yasith [~yasith@112.135.69.246] has quit [Ping timeout: 252 seconds] 03:01 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 276 seconds] 03:03 -!- emmanueloga [~emmanuelo@190.244.14.111] has quit [Ping timeout: 240 seconds] 03:08 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts 03:11 -!- MorningSon [~MorningSo@cpe-72-177-219-41.satx.res.rr.com] has quit [Quit: WeeChat 0.3.0] 03:17 < nsf> yay! closed all known issues for gocode 03:19 < nsf> or should I say documented issues, I know few more :(( 03:23 -!- wayaku [~wayaku@113.68.53.246] has joined #go-nuts 03:29 -!- piyushmishra [~piyushmis@117.200.227.155] has joined #go-nuts 03:36 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 252 seconds] 03:44 -!- jessta_ [~jessta@124-148-160-141.dyn.iinet.net.au] has quit [Ping timeout: 240 seconds] 03:46 -!- segy [~segfault@mail.hasno.info] has joined #go-nuts 03:46 -!- segy [~segfault@mail.hasno.info] has quit [Changing host] 03:46 -!- segy [~segfault@pdpc/supporter/active/segy] has joined #go-nuts 03:46 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has quit [Ping timeout: 252 seconds] 03:49 -!- wayaku [~wayaku@113.68.53.246] has quit [Read error: Connection reset by peer] 03:51 -!- nictuku [~nictuku@cetico.org] has joined #go-nuts 03:52 -!- Malatesa [~Malatessa@c-98-239-65-125.hsd1.ca.comcast.net] has joined #go-nuts 03:56 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has joined #go-nuts 03:58 -!- emmanueloga [~emmanuelo@190.244.14.111] has joined #go-nuts 03:58 -!- major_majors [~major_maj@173-10-44-57-Michigan.hfc.comcastbusiness.net] has quit [Quit: major_majors] 04:04 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit: This computer has gone to sleep] 04:11 -!- wobsite [~wobsite@68-112-244-225.dhcp.oxfr.ma.charter.com] has joined #go-nuts 04:22 -!- dj2 [~dj2@CPE001f5b35feb4-CM0014048e0344.cpe.net.cable.rogers.com] has quit [Quit: dj2] 04:23 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has quit [Ping timeout: 252 seconds] 04:28 -!- emmanueloga [~emmanuelo@190.244.14.111] has quit [Ping timeout: 272 seconds] 04:32 -!- vpit3833 [~user@d110-33-197-106.mas801.nsw.optusnet.com.au] has left #go-nuts ["ERC Version 5.3 (IRC client for Emacs)"] 04:34 -!- Malatesa [~Malatessa@c-98-239-65-125.hsd1.ca.comcast.net] has quit [Remote host closed the connection] 04:35 -!- fabled [~fabled@letku109.adsl.netsonic.fi] has joined #go-nuts 04:37 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 04:41 -!- jessta [~jessta@124-168-75-122.dyn.iinet.net.au] has joined #go-nuts 04:42 -!- mikespook [~mikespook@219.137.72.208] has joined #go-nuts 04:55 -!- Guest99575 [~eric@WL-202-181.CINE.HMC.Edu] has quit [Ping timeout: 264 seconds] 04:57 -!- lmoura_ [~lauromour@186.212.116.134] has joined #go-nuts 04:59 -!- lmoura [~lauromour@187.59.240.56] has quit [Ping timeout: 245 seconds] 05:00 -!- scm [justme@d071006.adsl.hansenet.de] has quit [Read error: Operation timed out] 05:02 -!- scm [justme@d057203.adsl.hansenet.de] has joined #go-nuts 05:04 -!- Adys [~Adys@unaffiliated/adys] has quit [Remote host closed the connection] 05:05 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 05:13 -!- fabled [~fabled@letku109.adsl.netsonic.fi] has quit [Ping timeout: 265 seconds] 05:16 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has joined #go-nuts 05:18 -!- iant [~iant@216.239.45.130] has quit [Ping timeout: 252 seconds] 05:19 -!- ssjones [~ssjones@67-61-100-203.cpe.cableone.net] has quit [Read error: Connection reset by peer] 05:25 -!- piyushmishra [~piyushmis@117.200.227.155] has quit [Ping timeout: 276 seconds] 05:25 -!- fabled [~fabled@letku109.adsl.netsonic.fi] has joined #go-nuts 05:27 -!- awidegreen [~quassel@62.176.237.78] has joined #go-nuts 05:27 -!- ssjones [~ssjones@67-61-100-203.cpe.cableone.net] has joined #go-nuts 05:36 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts 05:36 -!- mode/#go-nuts [+v iant] by ChanServ 05:37 -!- wobsite [~wobsite@68-112-244-225.dhcp.oxfr.ma.charter.com] has quit [Quit: Leaving] 05:41 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has quit [Ping timeout: 276 seconds] 05:44 -!- enferex [~enferex@users.757.org] has quit [Ping timeout: 245 seconds] 05:46 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Read error: Operation timed out] 05:47 -!- jhh [~jhh@f049136188.adsl.alicedsl.de] has joined #go-nuts 05:56 -!- emmanueloga [~emmanuelo@190.244.14.111] has joined #go-nuts 06:05 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts 06:10 -!- emmanueloga [~emmanuelo@190.244.14.111] has quit [Ping timeout: 252 seconds] 06:10 -!- tsdh [~user@tsdh.uni-koblenz.de] has joined #go-nuts 06:14 -!- enherit [~enherit@71-83-188-75.dhcp.lnbh.ca.charter.com] has joined #go-nuts 06:20 < plexdev> http://is.gd/fkI4V by [Nigel Tao] in go/src/pkg/exp/nacl/av/ -- exp/nacl/av: update color to max out at 1<<16-1 instead of 1<<32-1. 06:22 -!- aho [~nya@fuld-4d00d3ca.pool.mediaWays.net] has joined #go-nuts 06:25 -!- tsdh [~user@tsdh.uni-koblenz.de] has quit [Quit: Goodbye guys!] 06:37 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 240 seconds] 06:38 -!- fejjerai [~quassel@kde/amarok/mitchell] has quit [Ping timeout: 240 seconds] 06:39 -!- ucasano [~ucasano@host153-182-static.227-95-b.business.telecomitalia.it] has joined #go-nuts 06:41 -!- jefferai [~quassel@kde/amarok/mitchell] has joined #go-nuts 06:46 -!- wrtp [~rog@92.17.3.223] has joined #go-nuts 06:47 -!- emmanueloga [~emmanuelo@190.244.14.111] has joined #go-nuts 06:48 -!- Guest99575 [~eric@WL-202-181.CINE.HMC.Edu] has joined #go-nuts 06:48 -!- mikespook [~mikespook@219.137.72.208] has quit [Read error: Connection reset by peer] 06:49 -!- mikespook [~mikespook@219.137.72.208] has joined #go-nuts 06:51 -!- tsdh [~user@tsdh.uni-koblenz.de] has joined #go-nuts 06:52 < plexdev> http://is.gd/fkKpp by [Alex Brainman] in go/src/ -- env.bash: fix building in directory with spaces in the path. 06:53 -!- jhh [~jhh@f049136188.adsl.alicedsl.de] has quit [Quit: jhh] 06:56 -!- lmoura_ [~lauromour@186.212.116.134] has quit [Read error: Connection reset by peer] 06:59 -!- piyushmishra [~piyushmis@117.200.231.83] has joined #go-nuts 07:00 -!- lmoura_ [~lauromour@187.58.102.3] has joined #go-nuts 07:00 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Quit: slashus2] 07:02 -!- mbohun [~mbohun@eth649.act.adsl.internode.on.net] has quit [Quit: Leaving] 07:03 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 07:11 -!- lmoura_ [~lauromour@187.58.102.3] has quit [Ping timeout: 255 seconds] 07:13 -!- ikaros [~ikaros@2001:41b8:9bf:fe04:d08f:a4ff:fe04:474c] has joined #go-nuts 07:20 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-172-36.clienti.tiscali.it] has joined #go-nuts 07:20 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has quit [Quit: Morten. Desu~] 07:24 -!- tvw [~tv@e176007057.adsl.alicedsl.de] has joined #go-nuts 07:25 -!- lmoura_ [~lauromour@187.58.102.201] has joined #go-nuts 07:31 -!- Guest99575 [~eric@WL-202-181.CINE.HMC.Edu] has quit [Ping timeout: 276 seconds] 07:40 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts 07:45 -!- ikaros [~ikaros@2001:41b8:9bf:fe04:d08f:a4ff:fe04:474c] has quit [Quit: Leave the magic to Houdini] 07:45 -!- eric [~eric@WL-202-181.CINE.HMC.Edu] has joined #go-nuts 07:46 -!- ncopa [~ncopa@180.40.189.109.customer.cdi.no] has joined #go-nuts 07:47 -!- ikaros [~ikaros@188.107.211.152] has joined #go-nuts 07:47 -!- npe [~npe@195.207.5.2] has joined #go-nuts 07:50 -!- dju [dju@fsf/member/dju] has joined #go-nuts 07:51 -!- enferex [~enferex@users.757.org] has joined #go-nuts 07:52 -!- Guest31934 [~eric@WL-202-181.CINE.HMC.Edu] has quit [Ping timeout: 265 seconds] 07:57 < ncopa> hi 07:57 < ncopa> is there support for Go in gcc-4.5? 07:58 -!- enherit [~enherit@71-83-188-75.dhcp.lnbh.ca.charter.com] has quit [Quit: leaving] 07:59 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has joined #go-nuts 08:01 -!- ikaros [~ikaros@188.107.211.152] has quit [Ping timeout: 240 seconds] 08:02 -!- ikaros [~ikaros@188.107.211.152] has joined #go-nuts 08:02 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 276 seconds] 08:04 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Quit: slashus2] 08:06 < tux21b> hmm, assuming I have a type "Literal struct { Value interface {}}" (which should pack any kind of literal value, eg. integers, strings, etc). Is it possible to avoid the struct with a single value only? 08:07 < tux21b> "type Literal interface {}" isn't working, since it defines an interface and not an "any type" 08:08 -!- enferex [~enferex@users.757.org] has quit [Ping timeout: 252 seconds] 08:13 -!- Guest31934 [~eric@WL-202-181.CINE.HMC.Edu] has joined #go-nuts 08:16 -!- ncopa [~ncopa@180.40.189.109.customer.cdi.no] has quit [Quit: Ex-Chat] 08:20 -!- peterdn [~peterdn@host81-159-106-59.range81-159.btcentralplus.com] has joined #go-nuts 08:23 -!- mikespook1 [~mikespook@219.137.74.182] has joined #go-nuts 08:23 -!- jhh [~jhh@f049136188.adsl.alicedsl.de] has joined #go-nuts 08:24 -!- mikespook [~mikespook@219.137.72.208] has quit [Ping timeout: 240 seconds] 08:24 -!- npe [~npe@195.207.5.2] has quit [Quit: npe] 08:24 < wrtp> tux21b: i'm not sure i understand the question. 08:24 < wrtp> what do you mean be "avoid the struct"? 08:24 < wrtp> s/be/by/ 08:24 < nsf> tux21b: I think interface is not just an interface it's a value also 08:25 < nsf> see package "reflect" it has some usages of the interface as a value 08:25 < tux21b> wrtp: assuming I have "type IntLiteral { Value int }". Then i can simplify the type to "type IntLiteral int". 08:26 -!- jmettraux [~jmettraux@211.19.55.177] has quit [Remote host closed the connection] 08:26 < nsf> for example reflect.*Value types has method "Interface" which returns interface as a value :) 08:26 < wrtp> tux21b: why bother defining a different type each time? 08:26 < wrtp> tux21b: just use interface{} 08:26 < wrtp> then: var intLiteral interface{} = 99 08:27 < tux21b> the thing is i am writing some kind of AST for an interpreter. with an Node interface which has an Accept(visitor) method. (visitor pattern) 08:27 < wrtp> ok, that's fine 08:28 -!- enferex [~enferex@users.757.org] has joined #go-nuts 08:28 < wrtp> if you have type IntLiteral int; then you can define an Accept method on IntLiteral if you want 08:28 < tux21b> Literals are some kind of Node, so I need a "func (l Literal) Accept(visitor Visitor)" method to be a valid Node 08:28 < tux21b> exactly 08:28 < wrtp> so what's the problem? 08:29 < tux21b> but when I have a general type »type Literal interface {}«, then I can't define an Accept method anymore 08:29 < wrtp> in that case, just define a struct as you had earlier 08:29 < tux21b> »type Literal struct { Value interface{} }« on the other hand is working 08:30 < wrtp> you can't define new methods on interface types 08:30 < tux21b> yes, i am just interested if it's possible to define an actual type for interface {} :) 08:30 < wrtp> you can, but you can't define new methods on it 08:31 < wrtp> see http://golang.org/doc/go_spec.html#Method_declarations 08:31 < tux21b> hmm, I don't like that. Now I've to write .Value all the time 08:31 < wrtp> make it .V and it's not so bad 08:32 < wrtp> "The base type must not be a pointer or interface type and must be declared in the same package as the method." 08:32 < wrtp> BTW putting it in a struct means you can also add extra info if you want (for instance source location of the literal) 08:34 < tux21b> yeah, I probably need a struct anyway (at a later stage), but imho is the language/syntax not working as expected 08:35 -!- tvw [~tv@e176007057.adsl.alicedsl.de] has quit [Read error: Connection reset by peer] 08:36 < tux21b> on the one side, it creates new types which consists of an existing one, on the other hand it declares interfaces, instead of a type which consists of an interface 08:36 < wrtp> tux21b: there's a good reason for not letting methods be defined on interface types. 08:36 < tux21b> what do you think? regardless of the actual problem ;) 08:36 -!- enferex [~enferex@users.757.org] has quit [Ping timeout: 240 seconds] 08:37 < wrtp> tux21b: what would the method set of the resulting type be? 08:38 -!- enferex [~enferex@users.757.org] has joined #go-nuts 08:39 < tux21b> the fact is, i don't want the new type to be an interface at all. I just want a regular type, which can take "any object". (bypassing the typechecking of Go *g*) 08:41 < Namegduf> That doesn't make sense. 08:41 < Namegduf> A type is two things: 08:41 < Namegduf> 1) A sized block of memory. 08:41 < Namegduf> 2) A convention for interpreting and using said block. 08:42 < Namegduf> You can have a type that can point to any other type; interface{} does this. But you can't have a variable to which you can assign any type, because types are different sizes. 08:43 < tux21b> ah, ok. that's a good explanation 08:45 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 08:45 < tux21b> ok, thank you both, at least I am now understanding why I can't do what i want :) 08:46 -!- DerHorst [~Horst@e176104008.adsl.alicedsl.de] has joined #go-nuts 08:54 -!- virtualsue [~chatzilla@nat/cisco/x-seexzxchmhqqyuth] has joined #go-nuts 08:54 -!- virtualsue [~chatzilla@nat/cisco/x-seexzxchmhqqyuth] has quit [Client Quit] 08:55 -!- virtualsue [~chatzilla@nat/cisco/x-iwcnngsdlgcgirxd] has joined #go-nuts 08:57 < wrtp> Namegduf: yeah, and languages that allow this have the same size for every type. 08:59 < Namegduf> wrtp: Well, Python does it by having every variable be a reference. 08:59 < Namegduf> And all references are the same size. 08:59 < wrtp> Namegduf: i'm not sure ints are references in python 08:59 < Namegduf> wrtp: Python doesn't have ints. 09:00 < Namegduf> Well, not as an explicit, declared type. 09:00 < wrtp> if i say x = 56, does it do an allocation? 09:00 < Namegduf> I am not familiar with the implementation of Python sufficiently to answer. 09:00 < wrtp> i think it probably uses tagged pointers like most dynamic languages 09:01 < wrtp> i.e. a few bits of the reference are reserved to specify common types (like small integers) 09:01 < Namegduf> That'd be possible. 09:02 -!- piyushmishra [~piyushmis@117.200.231.83] has quit [Ping timeout: 265 seconds] 09:02 < wrtp> so in fact not all types are references... 09:02 < Namegduf> Congratulations, point made, you know more about the innards of Python than me. 09:03 -!- Guest31934 [~eric@WL-202-181.CINE.HMC.Edu] has quit [Ping timeout: 240 seconds] 09:04 < Namegduf> But, yeah, languages that allow that play games to allow it. 09:07 < wrtp> actually, it looks like i'm wrong: http://evanjones.ca/python-memory.html 09:07 < wrtp> but there you go 09:08 < wrtp> don't use python if you want efficiency :-) 09:11 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has joined #go-nuts 09:16 -!- piyushmishra [~piyushmis@117.200.225.24] has joined #go-nuts 09:18 -!- photron [~photron@port-92-201-178-153.dynamic.qsc.de] has joined #go-nuts 09:27 -!- DJCapelis [~djc@blender/coder/DJCapelis] has quit [Ping timeout: 265 seconds] 09:28 -!- cw [~cw@parsec.stupidest.org] has quit [Ping timeout: 276 seconds] 09:29 -!- cw [~cw@parsec.stupidest.org] has joined #go-nuts 09:29 -!- DJCapelis [~djc@capelis.dj] has joined #go-nuts 09:29 -!- DJCapelis [~djc@capelis.dj] has quit [Changing host] 09:29 -!- DJCapelis [~djc@blender/coder/DJCapelis] has joined #go-nuts 09:36 -!- janm [~jmalonzo@ppp121-44-197-58.lns20.syd7.internode.on.net] has joined #go-nuts 09:39 -!- mikespook1 [~mikespook@219.137.74.182] has quit [Quit: Leaving.] 09:39 -!- piyushmishra [~piyushmis@117.200.225.24] has quit [Read error: Connection reset by peer] 09:42 -!- melba [~a@unaffiliated/lazz0] has joined #go-nuts 09:45 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 255 seconds] 09:46 -!- ExtraSpice [~XtraSpice@88.118.34.223] has joined #go-nuts 09:53 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 09:56 -!- piyushmishra [~piyushmis@117.200.227.227] has joined #go-nuts 10:00 -!- tvw [~tv@212.79.9.150] has joined #go-nuts 10:03 -!- melba [~a@unaffiliated/lazz0] has quit [Read error: Connection reset by peer] 10:04 -!- melba [~a@unaffiliated/lazz0] has joined #go-nuts 10:11 -!- femtoo [~femto@95-89-248-241-dynip.superkabel.de] has joined #go-nuts 10:15 -!- dju [dju@fsf/member/dju] has quit [Ping timeout: 265 seconds] 10:18 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has quit [Quit: Leaving] 10:19 -!- dju [dju@fsf/member/dju] has joined #go-nuts 10:28 -!- piyushmishra [~piyushmis@117.200.227.227] has quit [Read error: Connection reset by peer] 10:40 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Ping timeout: 240 seconds] 10:41 < plexdev> http://is.gd/fl2P6 by [Andrew Gerrand] in go/misc/dashboard/builder/ -- misc/dashboard/builder: fixes and improvements 10:45 -!- piyushmishra [~piyushmis@117.200.229.177] has joined #go-nuts 10:55 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has joined #go-nuts 11:00 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 11:07 -!- wrtp [~rog@92.17.3.223] has quit [Ping timeout: 272 seconds] 11:12 -!- wrtp [~rog@92.17.3.223] has joined #go-nuts 11:14 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has quit [Ping timeout: 255 seconds] 11:16 -!- piyushmishra [~piyushmis@117.200.229.177] has quit [Ping timeout: 264 seconds] 11:21 -!- Yappochan_ [~yappo@221x243x122x124.ap221.ftth.ucom.ne.jp] has quit [Ping timeout: 245 seconds] 11:21 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has joined #go-nuts 11:26 -!- jmettraux [~jmettraux@PPPbm5391.kanagawa-ip.dti.ne.jp] has joined #go-nuts 11:29 -!- piyushmishra [~piyushmis@117.200.229.175] has joined #go-nuts 11:29 < plexdev> http://is.gd/fl6Ft by [Rob Pike] in go/src/pkg/regexp/ -- regexp: delete Iter methods 11:34 < theshish> I think all the integers in Python less than ~110 are preallocated and refer to the same objects every time they're used 11:36 < theshish> oh, it's somewhere between 200 and 300 11:36 < theshish> you can test with something like "200 is 20 * 10", which is true, while "300 is 30 * 10" is false 11:38 < nsf> 256? 11:38 < nsf> btw, interesting article 11:38 -!- virtualsue [~chatzilla@nat/cisco/x-iwcnngsdlgcgirxd] has quit [Ping timeout: 240 seconds] 11:38 < nsf> Go isn't far from that if I understand it correctly 11:39 < nsf> which is sad 11:39 < theshish> yeah, looks like 256. Though I don't remember it being that last I checked 11:39 < nsf> 256 makes sense because you can process 1-byte stuff faster 11:40 < Namegduf> nsf: At least Go has a stack. 11:40 < Boney> that only makes sense if your objects are heavy. 11:40 < Boney> all the Go metrials I've read/seen in seminars say that objects are much ligher waight. 11:40 < Boney> so it doesn't make sense to do it that way. 11:41 < nsf> Namegduf: which you can't even use, because of escape analysis 11:41 < Boney> (it does make sesne for python). 11:41 < nsf> one function and you have no stack anymore 11:41 < nsf> :( 11:41 < Namegduf> I'm hoping that gets improved. 11:41 < nsf> me too 11:41 < Namegduf> It seems doable. 11:41 -!- aho [~nya@fuld-4d00d3ca.pool.mediaWays.net] has quit [Ping timeout: 252 seconds] 11:44 -!- aho [~nya@fuld-4d00d4b3.pool.mediaWays.net] has joined #go-nuts 11:49 -!- piyushmishra [~piyushmis@117.200.229.175] has quit [Ping timeout: 272 seconds] 11:59 -!- piyushmishra [~piyushmis@117.200.230.107] has joined #go-nuts 12:07 < wrtp> nsf: i'm not sure that's true. it's closures, not functions, and it only applies when you take the address of a variable, and then only to the variables that have their address taken. 12:08 < Namegduf> wrtp: The problem is that if Go passes a variable to another function, it can't guarantee THAT function doesn't use it in a closure. 12:09 < Namegduf> Or store the value somewhere. 12:09 < Namegduf> Er, or take the address of the value and store the address somewhere. 12:10 < wrtp> Namegduf: that only applies if you take the address of the variable 12:10 < Namegduf> Hmm, true. That precludes most use of methods, though. 12:15 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has joined #go-nuts 12:18 -!- manual [~a@unaffiliated/lazz0] has joined #go-nuts 12:21 -!- melba [~a@unaffiliated/lazz0] has quit [Ping timeout: 255 seconds] 12:21 < nsf> methods and slices and maps, etc 12:21 < nsf> tons of use cases 12:23 -!- tasosos [~tasosos@178.128.158.237.dsl.dyn.forthnet.gr] has quit [Remote host closed the connection] 12:24 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 265 seconds] 12:26 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts 12:30 < wrtp> nsf: i don't undertand. if you do a method on an object in a slice, the slice is heap allocated anyway so it doesn't affect anything 12:31 < wrtp> though in general i agree that it would be great if gc could to interprocedural escape analysis 12:31 < wrtp> i think it might come when they do inlining 12:31 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-172-36.clienti.tiscali.it] has quit [Quit: E se abbasso questa leva che succ...] 12:32 < Namegduf> wrtp: If you do a method which mutates something at all, then the method works as a function which gets passed a pointer to the variable it's operating on. 12:32 < Namegduf> This counts as taking the address of said variable. 12:32 < nsf> wrtp: yes, but the slice is a pointer to an array 12:33 < nsf> and you can't really allocate an array on the stack and get a slice to it 12:33 < nsf> because it is considered as escape 12:34 < wrtp> sure. 12:34 < wrtp> same thing applies to closures that are only called within the call frame. they shouldn't need a heap allocation. 12:34 < nsf> true 12:34 < Namegduf> Unless the closure itself constructs a closure 12:35 < wrtp> (of course, some architectures might object to putting code on the stack) 12:35 < Namegduf> I do not believe closures involve putting code on the stack. 12:35 < Namegduf> Or, rather, putting code anywhere. 12:35 < wrtp> Namegduf: i don't think that should be a problem, unless the closure's closure escapes 12:35 < wrtp> Namegduf: they do in go 12:35 < Namegduf> They do? 12:35 < Namegduf> I thought it simply put a block of variables somewhere. 12:36 < wrtp> Namegduf: because a closure call is just like a regular function call 12:36 < wrtp> Namegduf: so there's nowhere to hang that block of variables off except the adress of the function 12:36 < Namegduf> Why would that involve putting the code on the stack? 12:36 < Namegduf> Go isn't interpreted. 12:36 < Namegduf> The closure is compiled at compiletime. 12:36 < wrtp> currently it puts code in the heap 12:37 < wrtp> Namegduf: the body of the closure is, but the runtime computes some code that calls the closure with its closed-over variables. 12:37 < wrtp> that code is generated at runtime 12:37 < Namegduf> Huh. 12:38 < Namegduf> I don't understand why the closure isn't just created as a function with an additional parameter which points to wherever said closed-over variables are allocated. 12:38 < wrtp> for example see: $GOROOT/src/pkg/runtime/386/closure.c 12:38 < wrtp> how would the caller of the closure know what to pass as that additional parameter? 12:39 < Namegduf> Hmm, good point, the closure has to be usable with the same calling convention for its remaining parameters as the rest. 12:40 < Namegduf> *as non-closures 12:40 < wrtp> yup 12:41 -!- manual [~a@unaffiliated/lazz0] has quit [Read error: No route to host] 12:41 < wrtp> another approach would be to make every function pointer a pair of (context, code-pointer) 12:41 -!- manual [~a@85.11.190.15] has joined #go-nuts 12:41 -!- manual [~a@85.11.190.15] has quit [Changing host] 12:41 -!- manual [~a@unaffiliated/lazz0] has joined #go-nuts 12:41 < wrtp> but that means all normal functions pay the closure price 12:42 < wrtp> (when called through a function pointer or as an interface method) 12:43 -!- manual [~a@unaffiliated/lazz0] has quit [Client Quit] 12:44 -!- photron [~photron@port-92-201-178-153.dynamic.qsc.de] has quit [Ping timeout: 276 seconds] 12:46 < nickaugust> when do closures occur in go? function within a function? 12:46 < wrtp> nickaugust: function literals 12:47 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has quit [Quit: Leaving] 12:47 < wrtp> e.g. func Foo() {f := func(){fmt.Printf("in a closure now")}; f()} 12:48 < nickaugust> interesting. i didnt know go had function literals 12:48 < nickaugust> is that the same as lambda functions? 12:50 -!- wrtp_ [~rog@92.17.3.223] has joined #go-nuts 12:50 -!- wrtp [~rog@92.17.3.223] has quit [Read error: Connection reset by peer] 12:50 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has quit [Quit: Ex-Chat] 12:50 < wrtp> nickaugust: yup 12:50 < wrtp> they're used quite a bit 12:51 < nickaugust> wrtp: i'll start using them today :) 12:52 < wrtp> nickaugust: i think you should :-) 12:52 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has joined #go-nuts 12:55 < nickaugust> well that works pretty nice :) thanks wrtp 12:56 < wrtp> np 12:57 < wrtp> PS it's worth having a good read of the language spec. there a lots of little things which work pretty nice that aren't immediately evident. 12:59 < nickaugust> yeah i read it once but i should do it again now that i have a feel for the language. so i can see the variables from the outside function but not the vars inside the function literal from the outside? 13:00 -!- nbjoerg [~joerg@netbsd/developer/joerg] has quit [Ping timeout: 240 seconds] 13:01 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has joined #go-nuts 13:01 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has quit [Remote host closed the connection] 13:01 < wrtp> nickaugust: yes, that's right. standard lexical scoping rules. 13:02 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has joined #go-nuts 13:03 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined #go-nuts 13:03 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 255 seconds] 13:05 -!- ikaros [~ikaros@188.107.211.152] has quit [Ping timeout: 240 seconds] 13:05 -!- ikaros [~ikaros@188.107.211.152] has joined #go-nuts 13:09 -!- nbjoerg [~joerg@netbsd/developer/joerg] has joined #go-nuts 13:10 -!- kanru [~kanru@61-228-151-153.dynamic.hinet.net] has joined #go-nuts 13:12 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Quit: Leaving.] 13:13 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 13:15 -!- dju [dju@fsf/member/dju] has quit [Ping timeout: 255 seconds] 13:17 -!- dju [dju@fsf/member/dju] has joined #go-nuts 13:20 -!- niemeyer [~niemeyer@189.96.244.198] has joined #go-nuts 13:25 -!- ako [~nya@fuld-4d00d23f.pool.mediaWays.net] has joined #go-nuts 13:27 -!- aho [~nya@fuld-4d00d4b3.pool.mediaWays.net] has quit [Ping timeout: 252 seconds] 13:31 -!- wrtp [~rog@92.17.3.223] has quit [Quit: wrtp] 13:31 -!- wrtp [~rog@92.17.3.223] has joined #go-nuts 13:37 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit: This computer has gone to sleep] 13:40 -!- Shyde [~shyde@HSI-KBW-078-043-070-132.hsi4.kabel-badenwuerttemberg.de] has joined #go-nuts 13:42 -!- iant [~iant@67.218.105.33] has joined #go-nuts 13:42 -!- mode/#go-nuts [+v iant] by ChanServ 13:48 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3] 13:48 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has joined #go-nuts 13:54 -!- snearch [~snearch@f053010246.adsl.alicedsl.de] has joined #go-nuts 13:55 -!- ikaros [~ikaros@188.107.211.152] has quit [Quit: Leave the magic to Houdini] 13:57 -!- dj2 [~dj2@216.16.242.254] has joined #go-nuts 13:57 -!- major_majors [~major_maj@c-68-40-195-246.hsd1.mi.comcast.net] has joined #go-nuts 13:57 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 13:59 -!- dju [dju@fsf/member/dju] has quit [Ping timeout: 264 seconds] 14:02 < plexdev> http://is.gd/fljg2 by [Ian Lance Taylor] in go/src/pkg/syscall/ -- syscall: Use vsyscall for syscall.Gettimeofday and .Time on linux amd64. 14:06 -!- jmettraux [~jmettraux@PPPbm5391.kanagawa-ip.dti.ne.jp] has quit [Remote host closed the connection] 14:09 -!- dju [dju@fsf/member/dju] has joined #go-nuts 14:17 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 272 seconds] 14:22 -!- ikaros [~ikaros@188.107.211.152] has joined #go-nuts 14:26 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Read error: Connection reset by peer] 14:31 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has quit [Ping timeout: 252 seconds] 14:32 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has joined #go-nuts 14:32 -!- ExtraSpice [~XtraSpice@88.118.34.223] has quit [Quit: Leaving] 14:33 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 14:35 -!- skejoe [~skejoe@188.114.142.231] has joined #go-nuts 14:43 -!- tasosos [~tasosos@178.128.158.237.dsl.dyn.forthnet.gr] has joined #go-nuts 14:44 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts 14:56 -!- Venom_X [~pjacobs@74.61.90.217] has joined #go-nuts 15:06 -!- iant [~iant@67.218.105.33] has quit [Quit: Leaving.] 15:07 -!- ucasano [~ucasano@host153-182-static.227-95-b.business.telecomitalia.it] has quit [Quit: ucasano] 15:07 -!- femtoo [~femto@95-89-248-241-dynip.superkabel.de] has quit [Read error: Connection reset by peer] 15:08 -!- femtoo [~femto@95-89-248-241-dynip.superkabel.de] has joined #go-nuts 15:08 -!- ikaros [~ikaros@188.107.211.152] has quit [Quit: Leave the magic to Houdini] 15:14 -!- ikaros [~ikaros@2001:41b8:9bf:fe04:87:37ff:fe38:a03e] has joined #go-nuts 15:17 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 15:18 -!- iant [~iant@nat/google/x-ymfjytayhwhykrpu] has joined #go-nuts 15:18 -!- mode/#go-nuts [+v iant] by ChanServ 15:20 -!- plainhao [~plainhao@mail.xbiotica.com] has joined #go-nuts 15:20 -!- ExtraSpice [~XtraSpice@88.118.34.223] has joined #go-nuts 15:21 -!- ukai [~ukai@nat/google/x-odqipmqtyzlaokmy] has quit [Ping timeout: 265 seconds] 15:22 < gmilleramilar> what's the best way to export a func that takes a string to c? should it take a regular "go" string as a parameter or something else? 15:22 -!- ukai [~ukai@nat/google/x-bbmmjtksqfiwhbyj] has joined #go-nuts 15:24 < exch> a regular go string. the function should convert to/from Cstring internally 15:25 < exch> packages that import your C bindings don't have acces to the 'C' bits 15:27 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has quit [Quit: Leaving] 15:28 < gmilleramilar> when I call it from C, how do I convert a ""-string into a go string? 15:29 < exch> mycstr := C.Cstring("yay"); mygostr := C.GoString(mycstr); C.free(unsafe.Pointer(&mycstr)) 15:30 < exch> 'mycstr' is of type *C.char 15:30 < gmilleramilar> that's on the go side right? 15:30 < exch> yes 15:30 < gmilleramilar> I'm talking about exporting the func and calling it from C 15:31 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has left #go-nuts [] 15:31 < gmilleramilar> so on the go side I have //export CVisibleFunc 15:31 < gmilleramilar> func CVisibleFunc(s string) ... 15:32 < exch> Not sure. I never tried that. Either there is some cgo-specific header you can include which defines the Cstring() and Gostring() functions, or define the funciton on the Go side to take *C.char instead of a regular Go string 15:32 < gmilleramilar> yeah, I was wondering if there was a preferred method. 15:32 < gmilleramilar> will try the *C.char. thx 15:34 -!- Shyde [~shyde@HSI-KBW-078-043-070-132.hsi4.kabel-badenwuerttemberg.de] has quit [Quit: Shyde] 15:36 -!- jhh [~jhh@f049136188.adsl.alicedsl.de] has quit [Quit: jhh] 15:36 -!- janm [~jmalonzo@ppp121-44-197-58.lns20.syd7.internode.on.net] has quit [Ping timeout: 252 seconds] 15:41 -!- jhh [~jhh@f049136188.adsl.alicedsl.de] has joined #go-nuts 15:45 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has joined #go-nuts 15:46 -!- tsdh [~user@tsdh.uni-koblenz.de] has quit [Quit: Goodbye guys!] 15:47 -!- Tv [~tv@cpe-76-168-227-45.socal.res.rr.com] has quit [Ping timeout: 276 seconds] 15:48 -!- niemeyer [~niemeyer@189.96.244.198] has quit [Ping timeout: 264 seconds] 15:49 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has quit [Ping timeout: 240 seconds] 15:50 -!- joc1985 [~jose@216.64.28.214] has joined #go-nuts 15:50 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has joined #go-nuts 15:51 < joc1985> I have the following make file 15:51 < joc1985> include $(GOROOT)/src/Make.inc 15:51 < joc1985> TARG=jose/prj_driver 15:51 < joc1985> GOFILES=\ 15:51 < joc1985> server/server.go\ 15:51 < joc1985> prj1_driver.go\ 15:51 < joc1985> include $(GOROOT)/src/Make. 15:51 < joc1985> package server; expected main amongst others 15:51 < joc1985> server is just a package wth some functinos in it but no main 15:52 < joc1985> i am including it in prj1_driver 15:52 < joc1985> any clue how to make this work (no pun intended) 15:54 < exch> the last line should have '.pkg' as the extension for the Make file you include 15:54 < joc1985> it does 15:54 < exch> also, since 'prj1_driver.go\' ends with a line-continuation character '\', you should probably ad a newline between that line and the last include 15:54 < joc1985> didn't copy right 15:54 < exch> ah 15:55 < exch> both of those go files should also have the same package name 15:55 -!- janm [~jmalonzo@ppp121-44-197-58.lns20.syd7.internode.on.net] has joined #go-nuts 15:55 < exch> you don't have to include it in prj1_driver 15:55 < joc1985> well server.go its a different package that I need to use inside of prj_driver (its used in other programs too) 15:56 -!- hackenporsche [~hagbard@dslb-084-058-106-077.pools.arcor-ip.net] has joined #go-nuts 15:56 < exch> then you need to compile it independantly 15:56 < exch> eg: a separate makefile for the server package content 15:57 < joc1985> oh I see 15:57 < joc1985> thank you! :-D 15:57 < exch> np :) 15:57 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts 15:57 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has joined #go-nuts 15:57 -!- dju [dju@fsf/member/dju] has quit [Read error: Connection reset by peer] 15:58 -!- jdp [gu@24.238.32.162.res-cmts.segr.ptd.net] has quit [] 15:58 -!- dju_ [dju@fsf/member/dju] has joined #go-nuts 15:59 -!- hackenporsche [~hagbard@dslb-084-058-106-077.pools.arcor-ip.net] has quit [Client Quit] 15:59 -!- hackenporsche [~hagbard@dslb-084-058-106-077.pools.arcor-ip.net] has joined #go-nuts 15:59 -!- boscop_ [~boscop@f055115022.adsl.alicedsl.de] has joined #go-nuts 16:00 -!- boscop [~boscop@f055165239.adsl.alicedsl.de] has quit [Ping timeout: 276 seconds] 16:00 < exch> joc1985: this video should give you a good idea of how it's supposed to work http://www.youtube.com/watch?v=jDWBJOXs_iI&feature=related 16:01 < joc1985> aweomse! 16:01 < joc1985> *awesome! thanks 16:02 -!- niemeyer [~niemeyer@187.23.154.182] has joined #go-nuts 16:04 -!- hackenporsche [~hagbard@dslb-084-058-106-077.pools.arcor-ip.net] has quit [Client Quit] 16:04 -!- sin3141592 [~hagbard@dslb-084-058-106-077.pools.arcor-ip.net] has joined #go-nuts 16:06 -!- sukuri [~travis@132.170.135.255] has joined #go-nuts 16:07 -!- ako [~nya@fuld-4d00d23f.pool.mediaWays.net] has quit [Ping timeout: 252 seconds] 16:07 -!- sin3141592 [~hagbard@dslb-084-058-106-077.pools.arcor-ip.net] has quit [Remote host closed the connection] 16:10 -!- sin3141592 [~hagbard@dslb-084-058-106-077.pools.arcor-ip.net] has joined #go-nuts 16:10 < sin3141592> Is there a function that simply reads a line from stdin? 16:10 -!- Tv [~tv@gige.bur.digisynd.com] has joined #go-nuts 16:12 < homa_rano> fmt.Scanln reads a line, and interprets it 16:12 -!- Venom_X [~pjacobs@74.61.90.217] has quit [Quit: Venom_X] 16:13 -!- Venom_X [~pjacobs@66.54.185.131] has joined #go-nuts 16:14 < sin3141592> So, is the following the way to go? n, err := fmt.Scanln("%s", line) 16:14 < sin3141592> Is that good practice? 16:15 -!- napsy [~luka@88.200.96.18] has quit [Read error: Operation timed out] 16:15 < homa_rano> I feel like there's another more direct way, but I can't remember what it is 16:15 < joc1985> inputReader = bufio.NewReader(cmd.Stdout) 16:15 < joc1985> input, _ = inputReader.ReadString('\n') 16:16 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has quit [Ping timeout: 252 seconds] 16:16 < exch> no need for the "%s" bit. Scanln() takes pointers to variables you want to fill 16:16 < exch> var line string; n, err := fmt.Scanln(&line) 16:16 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has joined #go-nuts 16:17 < sin3141592> Thank you very much. 16:18 < joc1985> thank you exch that video helped a lot, is there a way to make a make file that will produce x.out (executable) in the local directory? 16:18 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 16:19 < exch> the standard makefile will do that. the TARG variable will be the name of the executable 16:21 < joc1985> if I do make install its drops it in my go/pkg/ installation 16:21 -!- Fish [~Fish@9fans.fr] has joined #go-nuts 16:21 < joc1985> and if not it buts it in a _obj folder 16:21 -!- Guest31934 [~eric@2001:1878:300:a:215:afff:fece:c1fc] has joined #go-nuts 16:21 < exch> yup. the install bit is needed if you want other code to find the package. Unless you explicitely specify the relative path to that _obj folder in the import statement 16:22 < joc1985> cool, it seems like the .a file it generates is not excecutable, any way to tell make to do that? 16:22 -!- skejoe [~skejoe@188.114.142.231] has quit [Quit: leaving] 16:22 < Namegduf> You need to use the makefile for programs, not for packages. 16:22 < Namegduf> A .a is a library. 16:22 < joc1985> taht's what I thought, where is that make file located? 16:23 < joc1985> I utterly suck a make files :( 16:24 < exch> a package makefile has 'include $(GOROOT)/src/Make.pkg' as the last line. A executable has 'include $(GOROOT)/src/Make.cmd'. (Note the different Make extension). that's all :) 16:24 < exch> those includes will take care of the rets for you 16:24 < joc1985> fantastic! 16:25 < exch> This may be helpful to: http://github.com/jteeuwen/go-example-multipkg 16:26 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts 16:28 < Namegduf> I didn't find the default makefiles very good for a large project, but it's easy to include some of the base stuff and write your own. 16:29 < exch> It's a shame you can't really overwrite the existing install rule for some reason. If I specify my own , both the original and the new one are executed. Which kind of defeats the purpose of installing packages in a local dir instead of the go pkg directory 16:30 < exch> I'm probably just missing something though 16:30 < Namegduf> I also had trouble figuring out how to assemble a larger project which properly handled dependencies using the default makefiles, but that might just have been my lack of proficiency with Make. 16:32 < Namegduf> The problem is that even if you do a complete rebuild anyway, if they aren't built in dependency order, they'll try to build against the old versions of the package still in $GOROOT 16:32 < exch> yup 16:32 < Namegduf> Which results in type errors. 16:32 < exch> It kinda forces you to do a make clean before every build 16:33 < Namegduf> While it was fairly easy to simply make each package a target depending on all its files and the other packages it uses. 16:33 * Namegduf even wildcarded it, so the build simply includes "All .go files in the package's directory" 16:33 < Namegduf> And let Make do it all right. 16:34 < Namegduf> I wish Go had a dedicated build tool, really, though. 16:34 < Namegduf> The import paths provide data which could generate the dependencies for building automatically. 16:35 < tux21b> my project isn't that big right now, but i've solved all my problems related to outdated builds by sorting the filenames in GOFILES correctly.... 16:35 < exch> There's a few out there, but I'm not eager to use them. Even my own build tools. They just add another dependency to the project 16:35 < Namegduf> tux21b: I have multiple packages, so that's not applicable. 16:35 < Namegduf> exch: That's the problem of leaving such to the community, I think. 16:36 < exch> My own tool uses the go/parser and go/ast stuff to process the import statements and sort files/packages that way. Including build dependencies 16:36 < tux21b> Namegduf: ok, haven't tried that yet, but it at least works for single packages :) 16:37 -!- saati [~bjb@marvin.harmless.hu] has joined #go-nuts 16:42 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has quit [Ping timeout: 272 seconds] 16:42 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has joined #go-nuts 16:43 -!- Guest31934 [~eric@2001:1878:300:a:215:afff:fece:c1fc] has quit [Read error: Operation timed out] 16:52 -!- dju [dju@fsf/member/dju] has joined #go-nuts 16:52 -!- dju_ [dju@fsf/member/dju] has quit [Ping timeout: 240 seconds] 16:53 -!- fabled [~fabled@letku109.adsl.netsonic.fi] has quit [Quit: Ex-Chat] 16:55 -!- sukuri [~travis@132.170.135.255] has quit [Ping timeout: 252 seconds] 16:57 -!- dju [dju@fsf/member/dju] has quit [Ping timeout: 264 seconds] 16:58 -!- dju [dju@fsf/member/dju] has joined #go-nuts 16:59 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has quit [Read error: Operation timed out] 17:01 < joc1985> so there is no way to override the install? 17:02 < exch> You can add your own rule, but the original copy will still be performed. The only solution I found is to add a new rule with a different name. something like 'inst'. and then just call 'make inst' instead of 'make install' 17:02 < exch> hardly ideal though 17:03 < nsf> or you can make a makefile that calls other makefile 17:03 < nsf> and override everything you need 17:03 < joc1985> i see 17:03 < joc1985> Thanks! 17:06 -!- aho [~nya@fuld-4d00d159.pool.mediaWays.net] has joined #go-nuts 17:08 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has quit [Ping timeout: 255 seconds] 17:09 -!- [Pete_27] [~noname@110.174.103.31] has joined #go-nuts 17:09 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3] 17:11 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has quit [Quit: Ex-Chat] 17:12 -!- artefon [~thiagon@150.164.2.20] has joined #go-nuts 17:13 -!- sukuri [~travis@132.170.135.255] has joined #go-nuts 17:18 -!- ikaros [~ikaros@2001:41b8:9bf:fe04:87:37ff:fe38:a03e] has quit [Quit: Leave the magic to Houdini] 17:22 -!- sukuri [~travis@132.170.135.255] has quit [Quit: Leaving.] 17:22 -!- sukuri [~travis@132.170.135.255] has joined #go-nuts 17:26 -!- sukuri [~travis@132.170.135.255] has quit [Ping timeout: 252 seconds] 17:27 -!- niemeyer_ [~niemeyer@189.96.244.198] has joined #go-nuts 17:27 -!- Fish [~Fish@9fans.fr] has quit [Remote host closed the connection] 17:29 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts 17:31 -!- niemeyer [~niemeyer@187.23.154.182] has quit [Ping timeout: 264 seconds] 17:32 -!- dju [dju@fsf/member/dju] has quit [Ping timeout: 252 seconds] 17:33 -!- sukuri [~travis@132.170.135.255] has joined #go-nuts 17:35 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has joined #go-nuts 17:36 -!- [Pete_27] [~noname@110.174.103.31] has quit [Ping timeout: 272 seconds] 17:36 -!- dju [dju@fsf/member/dju] has joined #go-nuts 17:37 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has joined #go-nuts 17:38 -!- eric [~eric@2001:1878:300:a:215:afff:fece:c1fc] has joined #go-nuts 17:39 -!- kanru [~kanru@61-228-151-153.dynamic.hinet.net] has quit [Ping timeout: 272 seconds] 17:41 -!- dju [dju@fsf/member/dju] has quit [Ping timeout: 240 seconds] 17:42 -!- dju [dju@fsf/member/dju] has joined #go-nuts 17:51 -!- janm [~jmalonzo@ppp121-44-197-58.lns20.syd7.internode.on.net] has quit [Ping timeout: 240 seconds] 17:52 -!- sukuri [~travis@132.170.135.255] has quit [Quit: Leaving.] 17:53 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has quit [Ping timeout: 265 seconds] 17:55 -!- Guest82356 [~eric@2001:1878:300:a:215:afff:fece:c1fc] has quit [Read error: Operation timed out] 18:04 -!- janm [~jmalonzo@ppp121-44-197-58.lns20.syd7.internode.on.net] has joined #go-nuts 18:09 -!- photron [~photron@port-92-201-178-153.dynamic.qsc.de] has joined #go-nuts 18:12 -!- piyushmishra [~piyushmis@117.200.230.107] has quit [Quit: Leaving.] 18:12 -!- piyushmishra [~piyushmis@117.200.230.107] has joined #go-nuts 18:14 -!- wrtp [~rog@92.17.3.223] has quit [Quit: wrtp] 18:34 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has quit [Read error: Connection reset by peer] 18:37 -!- Fish [~Fish@9fans.fr] has joined #go-nuts 18:41 -!- piyushmishra [~piyushmis@117.200.230.107] has quit [Ping timeout: 240 seconds] 18:44 -!- wrtp [~rog@92.17.3.223] has joined #go-nuts 18:46 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has joined #go-nuts 18:49 -!- wrtp [~rog@92.17.3.223] has quit [Client Quit] 18:56 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Quit: slashus2] 18:58 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts 18:59 -!- janm [~jmalonzo@ppp121-44-197-58.lns20.syd7.internode.on.net] has quit [Ping timeout: 272 seconds] 19:00 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Client Quit] 19:01 -!- sukuri [~travis@132.170.135.255] has joined #go-nuts 19:18 -!- janm [~jmalonzo@ppp121-44-197-58.lns20.syd7.internode.on.net] has joined #go-nuts 19:21 -!- virtualsue [~chatzilla@nat/cisco/x-cmizzsazxmkrpuzl] has joined #go-nuts 19:32 -!- janm [~jmalonzo@ppp121-44-197-58.lns20.syd7.internode.on.net] has quit [Ping timeout: 240 seconds] 19:35 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts 19:37 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts 19:42 -!- femtoo [~femto@95-89-248-241-dynip.superkabel.de] has quit [Quit: Leaving] 20:00 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has quit [Quit: skelterjohn] 20:04 -!- artefon [~thiagon@150.164.2.20] has quit [Quit: Leaving] 20:14 -!- joc1985 [~jose@216.64.28.214] has quit [Quit: Leaving] 20:15 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has quit [Quit: Morten. Desu~] 20:17 -!- kingfishr [~kingfishr@c-24-130-147-77.hsd1.ca.comcast.net] has quit [Read error: Operation timed out] 20:18 -!- kingfishr [~kingfishr@c-24-130-147-77.hsd1.ca.comcast.net] has joined #go-nuts 20:21 -!- sukuri [~travis@132.170.135.255] has quit [Ping timeout: 252 seconds] 20:24 -!- awidegreen [~quassel@62.176.237.78] has quit [Remote host closed the connection] 20:26 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 276 seconds] 20:32 -!- sukuri [~travis@132.170.135.255] has joined #go-nuts 20:34 -!- janm [~jmalonzo@ppp121-44-197-58.lns20.syd7.internode.on.net] has joined #go-nuts 20:36 -!- jhawk28 [~jhawk28@user-142gfte.cable.mindspring.com] has joined #go-nuts 20:42 -!- artefon [~thiago@189.107.182.206] has joined #go-nuts 20:46 -!- tvw [~tv@212.79.9.150] has quit [Remote host closed the connection] 20:50 -!- exch [~exch@h144170.upc-h.chello.nl] has quit [Ping timeout: 272 seconds] 20:55 -!- exch [~exch@h144170.upc-h.chello.nl] has joined #go-nuts 20:59 -!- snearch [~snearch@f053010246.adsl.alicedsl.de] has quit [Quit: Verlassend] 21:04 -!- virtualsue [~chatzilla@nat/cisco/x-cmizzsazxmkrpuzl] has quit [Ping timeout: 252 seconds] 21:08 -!- dj2 [~dj2@216.16.242.254] has quit [Quit: dj2] 21:12 -!- ssjones [~ssjones@67-61-100-203.cpe.cableone.net] has quit [Read error: Connection reset by peer] 21:19 -!- ssjones [~ssjones@67-61-100-203.cpe.cableone.net] has joined #go-nuts 21:22 -!- jhh [~jhh@f049136188.adsl.alicedsl.de] has quit [Quit: jhh] 21:27 -!- exch [~exch@h144170.upc-h.chello.nl] has quit [Ping timeout: 276 seconds] 21:27 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 21:27 -!- exch [~exch@h144170.upc-h.chello.nl] has joined #go-nuts 21:27 -!- Fish [~Fish@9fans.fr] has quit [Remote host closed the connection] 21:35 -!- exch [~exch@h144170.upc-h.chello.nl] has quit [Ping timeout: 272 seconds] 21:36 -!- exch [~exch@h144170.upc-h.chello.nl] has joined #go-nuts 21:36 -!- dacc [~Adium@D-128-95-10-189.dhcp4.washington.edu] has joined #go-nuts 21:39 -!- sukuri [~travis@132.170.135.255] has quit [Quit: Leaving.] 21:46 -!- wrtp [~rog@92.17.3.223] has joined #go-nuts 21:47 < mpl> anyone familiar with go-gtk or even gtk? 21:48 < mpl> trying to figure out what's the best way to replace an image with another in a box. 21:55 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has joined #go-nuts 21:57 -!- tav_ [~tav@2001:0:53aa:64c:0:3ffa:a3f8:9e09] has joined #go-nuts 21:57 -!- LionMadeOfLions [~LionMadeO@70.114.156.242] has joined #go-nuts 21:57 -!- niemeyer_ [~niemeyer@189.96.244.198] has quit [Ping timeout: 240 seconds] 21:58 -!- tav [~tav@2001:0:53aa:64c:0:3ffa:a3f8:6ff0] has quit [Read error: Operation timed out] 21:59 -!- ukai [~ukai@nat/google/x-bbmmjtksqfiwhbyj] has quit [Ping timeout: 252 seconds] 22:00 -!- welterde [~welterde@2001:470:1f0b:592:10:1:1:0] has quit [Read error: Connection refused] 22:00 -!- Xenith [~xenith@2001:470:1:9:8002::1] has quit [Read error: Connection refused] 22:00 -!- Xenith [~xenith@2001:470:1:9:8002::1] has joined #go-nuts 22:01 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit: Verlassend] 22:01 -!- ukai [~ukai@nat/google/x-vfuwytcvnyndpqae] has joined #go-nuts 22:02 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has quit [Ping timeout: 276 seconds] 22:02 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has joined #go-nuts 22:08 -!- exch [~exch@h144170.upc-h.chello.nl] has quit [Ping timeout: 252 seconds] 22:10 -!- saati [~bjb@marvin.harmless.hu] has quit [Remote host closed the connection] 22:10 -!- saati [~bjb@marvin.harmless.hu] has joined #go-nuts 22:12 -!- skelterjohn [~jasmuth@c-76-124-23-156.hsd1.nj.comcast.net] has joined #go-nuts 22:12 -!- janm [~jmalonzo@ppp121-44-197-58.lns20.syd7.internode.on.net] has quit [Quit: Lost terminal] 22:12 -!- wrtp [~rog@92.17.3.223] has quit [Quit: wrtp] 22:15 -!- photron [~photron@port-92-201-178-153.dynamic.qsc.de] has quit [Ping timeout: 264 seconds] 22:18 -!- skelterjohn_ [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined #go-nuts 22:18 -!- skelterjohn [~jasmuth@c-76-124-23-156.hsd1.nj.comcast.net] has quit [Ping timeout: 252 seconds] 22:19 -!- exch [~exch@h144170.upc-h.chello.nl] has joined #go-nuts 22:19 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by peer] 22:20 -!- exch [~exch@h144170.upc-h.chello.nl] has quit [Read error: Connection reset by peer] 22:20 -!- dju [dju@fsf/member/dju] has quit [Ping timeout: 240 seconds] 22:21 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Quit: slashus2] 22:26 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has quit [Quit: leaving] 22:26 -!- DerHorst [~Horst@e176104008.adsl.alicedsl.de] has quit [Remote host closed the connection] 22:27 -!- luruke [~luruke@151.53.42.188] has joined #go-nuts 22:31 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Ping timeout: 240 seconds] 22:35 -!- wrtp [~rog@92.17.3.223] has joined #go-nuts 22:35 -!- dju [dju@fsf/member/dju] has joined #go-nuts 22:39 -!- wrtp [~rog@92.17.3.223] has quit [Client Quit] 22:41 -!- jhawk28 [~jhawk28@user-142gfte.cable.mindspring.com] has quit [Ping timeout: 265 seconds] 22:41 -!- nictuku [~nictuku@cetico.org] has quit [Ping timeout: 276 seconds] 22:49 -!- tvw [~tv@e176007057.adsl.alicedsl.de] has joined #go-nuts 22:54 -!- exch [~exch@h144170.upc-h.chello.nl] has joined #go-nuts 23:02 -!- LionMadeOfLions [~LionMadeO@70.114.156.242] has left #go-nuts ["WeeChat 0.3.1.1"] 23:05 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined #go-nuts 23:07 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-172-36.clienti.tiscali.it] has joined #go-nuts 23:12 -!- enherit [~enherit@cpe-98-149-170-48.socal.res.rr.com] has joined #go-nuts 23:20 -!- Project-2501 [~Marvin@82.84.66.105] has joined #go-nuts 23:20 -!- major_majors [~major_maj@c-68-40-195-246.hsd1.mi.comcast.net] has quit [Quit: major_majors] 23:21 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-172-36.clienti.tiscali.it] has quit [Ping timeout: 276 seconds] 23:24 -!- enherit [~enherit@cpe-98-149-170-48.socal.res.rr.com] has quit [Quit: Lost terminal] 23:26 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 252 seconds] 23:27 -!- iant [~iant@nat/google/x-ymfjytayhwhykrpu] has quit [Ping timeout: 276 seconds] 23:29 -!- boscop__ [~boscop@f055115022.adsl.alicedsl.de] has joined #go-nuts 23:31 -!- enherit [~enherit@cpe-98-149-170-48.socal.res.rr.com] has joined #go-nuts 23:32 -!- boscop_ [~boscop@f055115022.adsl.alicedsl.de] has quit [Ping timeout: 272 seconds] 23:33 -!- iant [~iant@67.218.105.33] has joined #go-nuts 23:33 -!- mode/#go-nuts [+v iant] by ChanServ 23:35 -!- enherit [~enherit@cpe-98-149-170-48.socal.res.rr.com] has quit [Client Quit] 23:38 -!- jmettraux [~jmettraux@211.19.55.177] has joined #go-nuts 23:40 -!- exch [~exch@h144170.upc-h.chello.nl] has quit [Ping timeout: 252 seconds] 23:41 -!- exch [~exch@h144170.upc-h.chello.nl] has joined #go-nuts 23:42 -!- luruke [~luruke@151.53.42.188] has quit [Quit: Leaving] 23:44 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts 23:46 -!- kanru [~kanru@61-228-151-153.dynamic.hinet.net] has joined #go-nuts 23:50 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 23:53 -!- tvw [~tv@e176007057.adsl.alicedsl.de] has quit [Remote host closed the connection] 23:55 -!- exch [~exch@h144170.upc-h.chello.nl] has quit [Ping timeout: 240 seconds] 23:59 -!- Guest82356 [~eric@WL-202-181.CINE.HMC.Edu] has joined #go-nuts --- Log closed Wed Sep 22 00:00:07 2010