--- Log opened Mon Jan 04 00:00:22 2010 --- Day changed Mon Jan 04 2010 00:00 -!- Will_D [n=Will@c-67-171-24-136.hsd1.wa.comcast.net] has quit [Read error: 60 (Operation timed out)] 00:00 -!- straszheim [n=troy@flourine.resophonic.com] has joined #go-nuts 00:00 -!- nf [n=nf@124-168-153-30.dyn.iinet.net.au] has quit [Client Quit] 00:01 -!- nf [n=nf@124-168-153-30.dyn.iinet.net.au] has joined #go-nuts 00:03 -!- Sungem [i=ss@118-160-169-191.dynamic.hinet.net] has joined #go-nuts 00:03 < rah_> blind leading the blind, but from what ive seen, yes 00:06 < jessesanford> haha thank you much 00:06 < jessesanford> i just answered all my questions 00:06 < jessesanford> very newb and i appreciate your patience 00:07 < goplexian> I need a go/ast guru 00:08 < goplexian> I've parsed in a go file, and I'm ranging over the top level decl's and I would like to print the line that each decl appears on in the original source, for example a decl would be "main" and the line it appears on would be "fun main() {" ..any suggestions? 00:09 < rah_> hmm... 00:10 < rah_> does Pos() give you a source position? 00:13 < goplexian> rah_: hmm let me try that I've just been using token.Position 00:14 < rah_> i think Pos() returns a token.Position, so not sure if it'll buy you anything more than what you have.. 00:15 < goplexian> Pos() returns the line number and the name of the source file 00:15 < rah_> is that what you were looking for? 00:16 < goplexian> kind of, see I'm not opening the file for reading I'm just using go/parser, so I only have the info that the parser gives me and I'm trying to get it to give me the information which is on that line number 00:16 < goplexian> it gives me the name of the decl but not the entire line 00:16 < rah_> ah, i see 00:17 < rah_> you may just have to bust open the file and return that line number 00:17 < rah_> if that is an option 00:17 < goplexian> yeah i was thinking I might have to do that, but seems a waste to parse a file and then have to open it and read it again anyway 00:18 < rah_> true 00:18 < goplexian> I know the info is there >.> 00:18 -!- sinuhe [n=user@kaptah.deevans.net] has quit ["ERC Version 5.3 (IRC client for Emacs)"] 00:19 -!- encolpe [n=encolpe@gai69-3-82-235-15-3.fbx.proxad.net] has quit ["Leaving"] 00:21 -!- sinuhe [n=user@kaptah.deevans.net] has joined #go-nuts 00:21 -!- nf [n=nf@124-168-153-30.dyn.iinet.net.au] has quit ["received SIGHEIL"] 00:22 -!- nf [n=nf@124-168-153-30.dyn.iinet.net.au] has joined #go-nuts 00:23 -!- nf [n=nf@124-168-153-30.dyn.iinet.net.au] has quit [Client Quit] 00:23 -!- nf [n=nf@124-168-153-30.dyn.iinet.net.au] has joined #go-nuts 00:23 -!- nf [n=nf@124-168-153-30.dyn.iinet.net.au] has quit [Client Quit] 00:23 -!- nf [n=nf@124-168-153-30.dyn.iinet.net.au] has joined #go-nuts 00:24 < rah_> hm, i'm not sure how to get at it, if it's there... 00:25 < goplexian> hmm 00:36 < jessesanford> ok i have another pointer question 00:36 < jessesanford> ;) 00:37 < jessesanford> if I am creating a static method to simply compare two integers 00:37 < jessesanford> and I have created a type called namelength based on int 00:37 < jessesanford> type namelenth int 00:38 < jessesanford> would this be appropriate? 00:38 < jessesanford> func (first_int *namelength) NumCommonFactors(second_int *int) int { 00:41 -!- nf [n=nf@124-168-153-30.dyn.iinet.net.au] has quit ["received SIGHEIL"] 00:42 -!- nf [n=nf@124-168-153-30.dyn.iinet.net.au] has joined #go-nuts 00:43 -!- jA_cOp [n=yakobu@unaffiliated/ja-cop/x-9478493] has quit ["Leaving"] 00:43 < rah_> what does NumCommonFactors do? 00:43 < jessesanford> it just figures out the number of common factors between two integers 00:43 -!- kota1111 [n=kota1111@gw2.kbmj.jp] has joined #go-nuts 00:44 < jessesanford> i am just playing around i have two lists of names 00:44 < rah_> ahh 00:44 < rah_> i'd think just make a NumCommonFactors(first int, second int) int? 00:44 < jessesanford> i want to extend the string object so that it can compute the number of common factors between the current (this) instances length and any other strings length 00:45 < jessesanford> so i can ask my new string object 00:45 < rah_> ah 00:45 < jessesanford> what is the number of common factors you have with "blah" 00:45 < rah_> so common factors on strings would be substrings that both contain? 00:46 < jessesanford> sure its more the mathematical equivalent but thats kind of the idea 00:46 -!- raichoo1 [n=raichoo@i577B91E7.versanet.de] has joined #go-nuts 00:46 < jessesanford> should i paste the buffer here 00:46 < rah_> or pastebin.com 00:46 < goplexian> no paste it to a website 00:47 < jessesanford> ok 00:47 < jessesanford> http://pastebin.com/d5011db6d 00:48 < jessesanford> it really could just take in two integers i am only trying to attach it to string objects 00:48 < jessesanford> and it could be a static library function 00:48 < jessesanford> like i said this is just for fun 00:48 < rah_> gotcha 00:49 < rah_> i'd say the more general you can make it, the better chance you can reuse it in the future 00:49 < rah_> so if you can get away with just ints, i would :) 00:49 < jessesanford> yeah but i wont... this is all throw away ;) 00:49 < rah_> haha 00:49 < jessesanford> i want to play with the mixin esque features 00:49 < jessesanford> of the language 00:49 < rah_> i gotcha 00:49 < jessesanford> and overriding strings and creating new methods for them is interesting 00:50 < rah_> i'd say in that case just experiment and try lots of wacky stuff :) 00:50 < goplexian> I prefer adding funcs to structs, not to generic types like ints 00:50 < jessesanford> yeah i agree.. i would never do this in the real world... its just interesting that it can be done 00:51 < jessesanford> so anyway this function is on ints not on strings 00:51 < jessesanford> and it takes itself and another integer and divides them by every number less than the smallest of the two. figures out how many divisors they have in common 00:51 < jessesanford> that create whole numbers 00:52 < jessesanford> i cant see any reason why not to just operate on the pointers to the original ints 00:52 < jessesanford> it doesnt actually change their values 00:53 -!- monteslu [n=monteslu@68.109.171.127] has quit [Read error: 110 (Connection timed out)] 00:53 < jessesanford> but i am new to the idea of pointers etc and so i am not sure i can compare them with operators like > and < wouldnt that be comparing their addresses in memory 00:54 < jessesanford> and if so i would in essence be comparing the wrong values and essentially dividing memory locations 00:54 < jessesanford> as you can see i don't have strong foundation in systems languages 00:55 < jessesanford> func (first_int *namelength) NumCommonFactors(second_int *int) int { 00:55 < jessesanford> if first_int <= 0 || second_int <= 0 { 00:56 < jessesanford> or in the above two lines does first_int actually resolve to the value of the int that the pointer references? in which case the comparison to 0 would be correct? 00:56 -!- rah_ [n=robh@75.46.213.219] has quit [] 00:57 -!- triplez [n=triplez@cm52.sigma225.maxonline.com.sg] has quit [] 00:57 -!- Ortzman [n=ortzinat@cpe-065-191-006-129.nc.res.rr.com] has joined #go-nuts 01:00 < jessesanford> this is the ultimate goal 01:00 < jessesanford> len(pa.A.Advertiser_name).(namelength).NumCommonFactors(len(pa.P.Person_name)) 01:00 < jessesanford> and i think i just answered my own question 01:01 < jessesanford> because len is going to return an integer value... not a pointer 01:02 -!- Olathe [n=Olathe@173-19-108-228.client.mchsi.com] has joined #go-nuts 01:03 < jessesanford> unless i can do this? &len(pa.A.Advertiser_name).(namelength).NumCommonFactors(len(pa.P.Person_name)) 01:03 -!- raichoo [n=raichoo@i577B91E7.versanet.de] has quit [Read error: 110 (Connection timed out)] 01:11 -!- Ortzinator [n=ortzinat@unaffiliated/ortzinator] has quit [Read error: 113 (No route to host)] 01:13 -!- dju_ [i=dju@89-158-236-229.rev.dartybox.com] has joined #go-nuts 01:18 -!- mnky [n=mcfyang@pool-70-23-243-215.ny325.east.verizon.net] has quit ["Leaving."] 01:27 -!- xorl [n=xorl@xorl.xen.prgmr.com] has joined #go-nuts 01:28 -!- osmosis [n=steven@m290e36d0.tmodns.net] has quit ["Ex-Chat"] 01:29 -!- dju [i=dju@89-158-236-229.rev.dartybox.com] has quit [Success] 01:34 -!- blackmagik [n=blackmag@unaffiliated/blackmagik] has quit ["Leaving"] 01:34 -!- blackmagik [n=blackmag@unaffiliated/blackmagik] has joined #go-nuts 01:35 -!- triplez [n=triplez@bb116-14-64-130.singnet.com.sg] has joined #go-nuts 01:37 -!- keeto [n=keeto@121.54.92.149] has quit [Read error: 54 (Connection reset by peer)] 01:37 -!- keeto [n=keeto@121.54.92.149] has joined #go-nuts 01:38 -!- keeto [n=keeto@121.54.92.149] has quit [Read error: 113 (No route to host)] 01:39 -!- keeto [n=keeto@121.54.92.149] has joined #go-nuts 01:40 -!- fifoman [n=fifoman@p4FCC33BB.dip.t-dialin.net] has quit [Read error: 60 (Operation timed out)] 01:41 -!- keeto [n=keeto@121.54.92.149] has quit [Read error: 104 (Connection reset by peer)] 01:42 -!- keeto_ [n=keeto@121.54.92.149] has joined #go-nuts 01:43 -!- scarabx_ [n=scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined #go-nuts 01:44 -!- triplez_ [n=triplez@bb116-14-64-130.singnet.com.sg] has joined #go-nuts 01:46 -!- kanru [n=kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts 01:49 -!- keeto [n=keeto@121.54.92.149] has quit [Read error: 113 (No route to host)] 01:50 -!- keeto [n=keeto@121.54.92.149] has joined #go-nuts 01:52 -!- hd_ [n=hd_@253.176.233.220.static.exetel.com.au] has joined #go-nuts 01:53 -!- nu-eve [n=chatzill@89.130.223.225] has joined #go-nuts 01:53 -!- scarabx__ [n=scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Read error: 110 (Connection timed out)] 02:02 -!- triplez [n=triplez@bb116-14-64-130.singnet.com.sg] has quit [Read error: 113 (No route to host)] 02:05 -!- keeto [n=keeto@121.54.92.149] has quit [Read error: 113 (No route to host)] 02:06 -!- dju_ [i=dju@89-158-236-229.rev.dartybox.com] has quit [Read error: 60 (Operation timed out)] 02:06 -!- keeto [n=keeto@121.54.92.149] has joined #go-nuts 02:07 -!- keeto [n=keeto@121.54.92.149] has quit [Read error: 104 (Connection reset by peer)] 02:07 -!- keeto [n=keeto@121.54.92.149] has joined #go-nuts 02:07 < goplexian> I forget which channel includes the go eval robot, does anyone know off hand? 02:07 < goplexian> irc channel i mean 02:10 < XenoPhoenix> goplexian: if you do fine out let me know that could be quite handy :) 02:11 < goplexian> yeah it is, there was only i think 10 people there last time, so I guess it might be gone, not sure 02:15 -!- Fl1pFl0p [n=FlipFlop@ip68-8-225-187.sd.sd.cox.net] has joined #go-nuts 02:19 -!- napsy [n=luka@88.200.96.14] has quit [Read error: 110 (Connection timed out)] 02:20 -!- dju [i=dju@89-158-236-229.rev.dartybox.com] has joined #go-nuts 02:21 -!- elmar_ [n=elmar@dslb-188-097-064-205.pools.arcor-ip.net] has quit [Remote closed the connection] 02:22 < goplexian> how does bytes.map work, can anyone give me a quick example? 02:24 -!- scarabx_ [n=scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit ["This computer has gone to sleep"] 02:24 -!- JSharpe [n=jamie@5ad9394c.bb.sky.com] has quit [Read error: 104 (Connection reset by peer)] 02:24 -!- JSharpe [n=jamie@5ad9394c.bb.sky.com] has joined #go-nuts 02:28 -!- dju_ [i=dju@89-158-236-229.rev.dartybox.com] has joined #go-nuts 02:30 -!- dju__ [i=dju@89-158-236-229.rev.dartybox.com] has joined #go-nuts 02:40 -!- dju_ [i=dju@89-158-236-229.rev.dartybox.com] has quit [Read error: 60 (Operation timed out)] 02:42 -!- kanru [n=kanru@61-30-10-70.static.tfn.net.tw] has quit [Read error: 110 (Connection timed out)] 02:43 < goplexian> so quiet... 02:44 < jackman> indeed 02:44 < goplexian> hey jackman! 02:44 < jackman> hey! 02:44 < jackman> what's up? 02:44 < goplexian> meh nothin much 02:44 < jackman> i've been monitor, but ihaven't been able to contribute much. 02:44 < jackman> *monitoring 02:45 -!- pjm0616 [n=user@61.250.113.98] has quit [Read error: 113 (No route to host)] 02:46 -!- kanru [n=kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts 02:49 -!- dju [i=dju@89-158-236-229.rev.dartybox.com] has quit [Connection timed out] 02:51 -!- Xera` [n=brit@87-194-208-246.bethere.co.uk] has joined #go-nuts 02:53 -!- Xera^ [n=brit@87-194-208-246.bethere.co.uk] has quit [Read error: 60 (Operation timed out)] 03:03 -!- aho [n=nya@f051018179.adsl.alicedsl.de] has quit ["EXEC_over.METHOD_SUBLIMATION"] 03:08 -!- scm_ [i=justme@c155021.adsl.hansenet.de] has joined #go-nuts 03:08 -!- sinuhe [n=user@kaptah.deevans.net] has quit ["ERC Version 5.3 (IRC client for Emacs)"] 03:10 -!- dju [n=dju@89-158-236-229.rev.dartybox.com] has joined #go-nuts 03:15 -!- nu-eve [n=chatzill@89.130.223.225] has quit [Read error: 110 (Connection timed out)] 03:16 -!- Olathe [n=Olathe@173-19-108-228.client.mchsi.com] has left #go-nuts [] 03:19 -!- sinuhe [n=user@kaptah.deevans.net] has joined #go-nuts 03:21 -!- path[l] [i=UPP@120.138.102.34] has quit [] 03:21 -!- path[l] [i=UPP@120.138.102.34] has joined #go-nuts 03:23 -!- scm [i=justme@c222165.adsl.hansenet.de] has quit [Read error: 110 (Connection timed out)] 03:38 -!- Sungem [i=ss@118-160-169-191.dynamic.hinet.net] has quit [Client Quit] 03:39 -!- dju__ [i=dju@89-158-236-229.rev.dartybox.com] has quit [Read error: 110 (Connection timed out)] 03:40 -!- fifoman [n=fifoman@p4FCC6270.dip.t-dialin.net] has joined #go-nuts 03:41 -!- bossman_mi [n=todd@97-84-0-169.dhcp.aldl.mi.charter.com] has joined #go-nuts 03:41 -!- lotrpy [n=lotrpy@202.38.97.230] has joined #go-nuts 03:41 -!- SIGSEGV [n=user@61.250.113.98] has joined #go-nuts 03:42 -!- lotrpy [n=lotrpy@202.38.97.230] has quit [Client Quit] 03:42 -!- lotrpy [n=lotrpy@202.38.97.230] has joined #go-nuts 03:43 -!- ephemere [n=todd@97-84-0-169.dhcp.aldl.mi.charter.com] has quit [Read error: 110 (Connection timed out)] 03:57 -!- Amaranth [n=travis@ubuntu/member/Amaranth] has quit [Read error: 104 (Connection reset by peer)] 04:05 -!- StDan [n=danielb@124-197-59-227.callplus.net.nz] has joined #go-nuts 04:11 -!- nigwil [n=chatzill@berkner.ccamlr.org] has quit ["ChatZilla 0.9.86 [Firefox 3.5.6/20091201220228]"] 04:15 -!- Amaranth_ [n=travis@ubuntu/member/Amaranth] has joined #go-nuts 04:17 < goplexian> jackman: ping 04:22 -!- Amaranth__ [n=travis@97-114-244-67.sxcy.qwest.net] has joined #go-nuts 04:27 -!- nullpo [n=nullpo@221x252x46x83.ap221.ftth.ucom.ne.jp] has joined #go-nuts 04:27 -!- JC_ [n=JC@ip68-224-97-4.lv.lv.cox.net] has joined #go-nuts 04:30 -!- JSharpe2 [n=jamie@5ad93972.bb.sky.com] has joined #go-nuts 04:31 -!- JC_ [n=JC@ip68-224-97-4.lv.lv.cox.net] has left #go-nuts [] 04:35 -!- Amaranth__ [n=travis@97-114-244-67.sxcy.qwest.net] has quit [Read error: 60 (Operation timed out)] 04:37 -!- raichoo1 [n=raichoo@i577B91E7.versanet.de] has left #go-nuts [] 04:38 -!- dju [n=dju@89-158-236-229.rev.dartybox.com] has quit [Read error: 60 (Operation timed out)] 04:39 -!- dju [i=dju@89-158-236-229.rev.dartybox.com] has joined #go-nuts 04:40 -!- Amaranth__ [n=travis@97-114-244-67.sxcy.qwest.net] has joined #go-nuts 04:42 -!- illya77 [n=illya77@46-124-133-95.pool.ukrtel.net] has joined #go-nuts 04:44 -!- Amaranth_ [n=travis@ubuntu/member/Amaranth] has quit [Read error: 110 (Connection timed out)] 04:47 -!- selby_fiedler [n=selby_fi@c-76-106-49-240.hsd1.va.comcast.net] has quit ["leaving"] 04:47 -!- selby_fiedler [n=selby_fi@c-76-106-49-240.hsd1.va.comcast.net] has joined #go-nuts 04:49 -!- skyyy [i=skyyy@res55551479.rh.rit.edu] has quit [Client Quit] 04:49 -!- JSharpe [n=jamie@5ad9394c.bb.sky.com] has quit [Read error: 110 (Connection timed out)] 04:56 -!- osmosis [n=steven@m210e36d0.tmodns.net] has joined #go-nuts 04:57 -!- osmosis [n=steven@m210e36d0.tmodns.net] has quit [Read error: 54 (Connection reset by peer)] 04:57 -!- osmosis [n=steven@m210e36d0.tmodns.net] has joined #go-nuts 05:03 -!- osmosis [n=steven@m210e36d0.tmodns.net] has quit ["Ex-Chat"] 05:03 -!- osmosis [n=steven@m210e36d0.tmodns.net] has joined #go-nuts 05:07 -!- jessesanford [n=jessesan@173.77.177.230] has quit [] 05:08 -!- JSharpe2 [n=jamie@5ad93972.bb.sky.com] has quit [Read error: 104 (Connection reset by peer)] 05:08 -!- JSharpe [n=jamie@5ad93972.bb.sky.com] has joined #go-nuts 05:09 -!- osmosis_ [n=steven@m700e36d0.tmodns.net] has joined #go-nuts 05:13 -!- niekie [i=quasselc@CAcert/Assurer/niekie] has quit [Excess Flood] 05:13 -!- niekie [i=quasselc@CAcert/Assurer/niekie] has joined #go-nuts 05:14 -!- osmosis [n=steven@m210e36d0.tmodns.net] has quit [Read error: 60 (Operation timed out)] 05:16 -!- illya77 [n=illya77@46-124-133-95.pool.ukrtel.net] has quit [Read error: 54 (Connection reset by peer)] 05:21 -!- tar_ [n=tom@cpe-24-210-143-83.woh.res.rr.com] has joined #go-nuts 05:31 -!- selby_fiedler [n=selby_fi@c-76-106-49-240.hsd1.va.comcast.net] has quit [Read error: 110 (Connection timed out)] 05:32 -!- Innominate [n=sirrobin@cpe-069-134-170-056.nc.res.rr.com] has quit [Read error: 60 (Operation timed out)] 05:33 -!- SoniaKeys [n=soniakey@c-76-118-178-209.hsd1.ma.comcast.net] has joined #go-nuts 05:37 -!- Maddi [i=wuehlmau@free-shell.eu] has joined #go-nuts 05:43 -!- hd_ [n=hd_@253.176.233.220.static.exetel.com.au] has quit ["Nettalk6 - www.ntalk.de"] 05:44 -!- osmosis_ [n=steven@m700e36d0.tmodns.net] has quit ["Ex-Chat"] 05:44 -!- lotrpy [n=lotrpy@202.38.97.230] has quit [] 05:45 -!- Kniht [n=kniht@c-68-58-17-177.hsd1.in.comcast.net] has quit [Read error: 110 (Connection timed out)] 05:49 -!- amacleod [n=amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has joined #go-nuts 05:53 -!- sinuhe [n=user@kaptah.deevans.net] has quit ["ERC Version 5.3 (IRC client for Emacs)"] 05:56 -!- Innominate [n=sirrobin@cpe-069-134-170-056.nc.res.rr.com] has joined #go-nuts 05:58 -!- iwikiwi [n=iwikiwi@202.3.77.129] has joined #go-nuts 06:06 -!- Xeon_ [n=chatzill@202.158.165.178] has quit [Remote closed the connection] 06:09 -!- amacleod [n=amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has quit [Read error: 110 (Connection timed out)] 06:19 -!- kanru [n=kanru@61-30-10-70.static.tfn.net.tw] has quit ["WeeChat 0.3.1-dev"] 06:20 -!- kanru [n=kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts 06:22 -!- goplexian [n=user@d154-20-0-9.bchsia.telus.net] has quit [Remote closed the connection] 06:25 -!- path[l] [i=UPP@120.138.102.34] has quit [] 06:43 -!- SoniaKeys [n=soniakey@c-76-118-178-209.hsd1.ma.comcast.net] has quit [] 06:54 -!- bossman_mi [n=todd@97-84-0-169.dhcp.aldl.mi.charter.com] has quit ["Leaving"] 06:54 -!- r2p2 [n=billy@v32671.1blu.de] has joined #go-nuts 06:54 -!- keeto [n=keeto@121.54.92.149] has quit ["http://keetology.com/"] 06:57 -!- path[l] [n=path@59.162.86.164] has joined #go-nuts 07:06 -!- reubens [n=reubens@c-66-235-53-139.sea.wa.customer.broadstripe.net] has joined #go-nuts 07:14 -!- keeto [n=keeto@121.54.92.149] has joined #go-nuts 07:15 -!- iwikiwi [n=iwikiwi@202.3.77.129] has quit ["Computer has gone to sleep"] 07:16 -!- keeto [n=keeto@121.54.92.149] has quit [Read error: 104 (Connection reset by peer)] 07:16 -!- napsy [n=luka@88.200.96.14] has joined #go-nuts 07:17 -!- itrekkie [n=itrekkie@ip98-165-246-56.ph.ph.cox.net] has quit [] 07:17 -!- osmosis [n=steven@c-67-171-141-40.hsd1.md.comcast.net] has joined #go-nuts 07:20 -!- osmosis [n=steven@c-67-171-141-40.hsd1.md.comcast.net] has quit [Client Quit] 07:22 -!- napsy [n=luka@88.200.96.14] has quit ["Lost terminal"] 07:24 -!- trevor [n=trevor@70.143.46.188] has joined #go-nuts 07:27 -!- keeto [n=keeto@121.54.92.149] has joined #go-nuts 07:28 < trevor> Hi, I'm new to Go and afraid I'm doing something dumb. http://gist.github.com/268383 The code is at top and the error at bottom 07:28 < trevor> I'm not sure if I'm using slices/arrays wrong, or using the net pkg wrong 07:29 < quag> hi trevor 07:29 < trevor> hey quag 07:30 < trevor> Trying to pick Go up. Not going so well right now :) 07:31 < quag> trevor: the new([50]byte), I think that should be make([]byte, 50) 07:33 < anticw> it depends what you mean 07:33 < trevor> Hmm, I thought make just made a slice. Would that also give me 50 bytes to store things in? 07:33 < anticw> do you wan a slice or an array? 07:33 < quag> trevor: actually, that code doesn't segfault for me 07:34 < trevor> anticw: I just want to print out the first thing a tcp connection writes into my server 07:34 < trevor> I'm not sure about the go specifics yet 07:34 -!- Cyanure [n=cyanure@81-65-189-254.rev.numericable.fr] has joined #go-nuts 07:34 < anticw> trevor: it should work either way 07:34 < trevor> quag: Hmm, so maybe the error is in the net pkg's osx implementation? 07:35 < trevor> quag: Still on linux, I'm assuming? 07:35 < quag> trevor: this test is on osx 07:35 < quag> :) 07:35 < anticw> trevor: you don't need [0:49 07:35 < anticw> trevor: you don't need [0:49] 07:36 < trevor> anticw: I think I put that there because I thought just b[] was causing the seg fault 07:36 < anticw> Read(b) will work 07:37 < trevor> I get a segfault still :\ 07:37 < anticw> that stack trace looks odd 07:37 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has joined #go-nuts 07:37 < anticw> this is os x 32-bit? 07:37 < anticw> oh, 64-bit 07:37 < trevor> I'm building with 6g 07:38 < trevor> The docs said that was the most stable or something 07:38 < anticw> it should be fine 07:40 < anticw> trevor: print the errors out 07:40 < anticw> where you have foo, _ := .... 07:40 < anticw> you might be getting and error (ie. can't listen) 07:40 < trevor> Oh, good thinking 07:41 * quag waits to be told what the error is :) 07:43 -!- reubens [n=reubens@c-66-235-53-139.sea.wa.customer.broadstripe.net] has quit [Client Quit] 07:44 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has quit [Excess Flood] 07:44 < trevor> "e1: lookup localhost.: no such host" 07:44 < trevor> Why in the world wouldn't I have a localhost 07:44 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has joined #go-nuts 07:44 < trevor> let me try 127.0.0.1 07:44 < anticw> trevor: ok, known issue ... i have a patch for that 07:44 < trevor> Well that worked 07:44 < trevor> heh 07:44 < anticw> http://codereview.appspot.com/181063/show 07:45 < anticw> grab the patch from that and you should be fine 07:45 < anticw> http://codereview.appspot.com/download/issue181063_8.diff 07:45 < anticw> that 07:45 -!- r2p2 [n=billy@v32671.1blu.de] has left #go-nuts [] 07:45 -!- trickie [n=trickie@94.100.112.225] has joined #go-nuts 07:45 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has quit [Excess Flood] 07:45 < quag> anticw saves the day :) 07:45 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has joined #go-nuts 07:45 < trevor> sure does 07:46 -!- reubens [n=reubens@c-66-235-53-139.sea.wa.customer.broadstripe.net] has joined #go-nuts 07:46 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has quit [Excess Flood] 07:46 < anticw> i have an updated patch actually, but it's not important right now... the issue got somewhat side-tracked and confused by nss comments and also caching ideas and some other noise, but that as-is will work for you 07:46 < trevor> anticw: Thanks :) 07:46 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has joined #go-nuts 07:46 < anticw> np 07:47 < Claviceps> www.ps4insider.com 07:48 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has quit [Excess Flood] 07:48 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has joined #go-nuts 07:52 -!- Cyanure [n=cyanure@81-65-189-254.rev.numericable.fr] has quit [Connection timed out] 07:53 -!- napsy [n=napsy@193.2.66.101] has joined #go-nuts 07:55 -!- r2p2 [n=billy@v32671.1blu.de] has joined #go-nuts 07:58 -!- codedread [i=180dd699@gateway/web/freenode/x-wpiauztqudimnprq] has joined #go-nuts 07:58 -!- codedread [i=180dd699@gateway/web/freenode/x-wpiauztqudimnprq] has left #go-nuts [] 07:58 -!- defectiv [n=clays@c-24-5-65-40.hsd1.ca.comcast.net] has quit ["This computer has gone to sleep"] 07:59 -!- trevor [n=trevor@70.143.46.188] has quit [] 08:02 -!- amorpisseur [n=analogue@toulouse.jfg-networks.net] has joined #go-nuts 08:07 -!- reubens [n=reubens@c-66-235-53-139.sea.wa.customer.broadstripe.net] has quit [Client Quit] 08:08 -!- General13372 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has joined #go-nuts 08:22 -!- alc [n=alc@114.245.255.238] has joined #go-nuts 08:24 -!- ShadowIce [n=pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts 08:26 -!- General1337 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit [Read error: 110 (Connection timed out)] 08:26 < napsy> Hello. I have a strange problem when going through the DOM tree. There are elements that are mission some attributes that are given in the HTML documents. For example I canot find my custom attrbute my_attr="some_value" inside the <img> tag. Any idea why this is happening? 08:27 < napsy> *missions 08:27 < napsy> *missing 08:30 -!- johan-s [n=johan@106.80-203-21.nextgentel.com] has joined #go-nuts 08:34 -!- Demp_ [n=Demp@bzq-79-182-79-199.red.bezeqint.net] has quit [Excess Flood] 08:35 -!- Demp [n=Demp@bzq-79-182-79-199.red.bezeqint.net] has joined #go-nuts 08:37 -!- Demp [n=Demp@bzq-79-182-79-199.red.bezeqint.net] has quit [Excess Flood] 08:37 -!- Demp [n=Demp@bzq-79-182-79-199.red.bezeqint.net] has joined #go-nuts 08:38 -!- Demp [n=Demp@bzq-79-182-79-199.red.bezeqint.net] has quit [Excess Flood] 08:38 -!- Demp [n=Demp@bzq-79-182-79-199.red.bezeqint.net] has joined #go-nuts 08:44 -!- Fl1pFl0p [n=FlipFlop@ip68-8-225-187.sd.sd.cox.net] has quit [Client Quit] 08:44 -!- hmmmm [n=asdf@pool-72-79-133-142.sctnpa.east.verizon.net] has quit ["Leaving"] 08:50 -!- Fish-Work [n=Fish@86.65.182.194] has joined #go-nuts 08:55 -!- frm [n=firman@125.164.19.249] has joined #go-nuts 08:56 -!- p0g0__ [n=pogo@unaffiliated/p0g0] has quit [Read error: 110 (Connection timed out)] 08:57 -!- p0g0__ [n=pogo@unaffiliated/p0g0] has joined #go-nuts 08:57 -!- sowa [n=sowa@85.214.104.79] has joined #go-nuts 09:00 -!- kashia_ [n=Kashia@p54AB591E.dip.t-dialin.net] has joined #go-nuts 09:00 -!- gnibbler [n=duckman@203-217-94-6.dyn.iinet.net.au] has quit [Read error: 60 (Operation timed out)] 09:02 -!- gnibbler [n=duckman@203-217-92-223.dyn.iinet.net.au] has joined #go-nuts 09:07 -!- Kashia [n=Kashia@p54AB537A.dip.t-dialin.net] has quit [Read error: 110 (Connection timed out)] 09:07 -!- gnuvince [n=vince@72.0.201.143] has quit [Remote closed the connection] 09:08 -!- gnuvince [n=vince@72.0.219.174] has joined #go-nuts 09:11 -!- crashR [n=crasher@codextreme.pck.nerim.net] has joined #go-nuts 09:21 -!- frm [n=firman@125.164.19.249] has quit ["Leaving"] 09:43 -!- callidus [n=quassel@cpc2-newc1-0-0-cust1524.gate.cable.virginmedia.com] has joined #go-nuts 09:55 -!- ikke [n=ikkibr@unaffiliated/ikkebr] has joined #go-nuts 09:58 -!- kleinchris [n=kleinchr@project-ajax.de] has quit [No route to host] 10:02 -!- kanru [n=kanru@61-30-10-70.static.tfn.net.tw] has quit [Success] 10:05 -!- kanru [n=kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts 10:10 -!- iwikiwi [n=iwikiwi@202.3.77.129] has joined #go-nuts 10:10 -!- kota1111 [n=kota1111@gw2.kbmj.jp] has quit ["Leaving..."] 10:11 -!- b00m_chef [n=watr@host-212-68-232-232.brutele.be] has joined #go-nuts 10:15 -!- crashR [n=crasher@codextreme.pck.nerim.net] has quit ["Leaving."] 10:18 -!- triplez [n=triplez@bb116-14-64-130.singnet.com.sg] has quit [] 10:20 -!- iwikiwi [n=iwikiwi@202.3.77.129] has quit ["I ascend to reality!"] 10:20 -!- tomestla [n=tom@87.100.115.249] has joined #go-nuts 10:29 -!- blabla [i=amz@serv4u.pl] has quit [Read error: 54 (Connection reset by peer)] 10:34 -!- r2p2 [n=billy@v32671.1blu.de] has left #go-nuts [] 10:34 -!- afurlan [n=afurlan@scorpion.mps.com.br] has joined #go-nuts 10:37 -!- AmirMohammad [n=amir@unaffiliated/gluegadget] has joined #go-nuts 10:40 -!- blackmagik [n=blackmag@unaffiliated/blackmagik] has quit [Remote closed the connection] 10:43 -!- iwikiwi [n=iwikiwi@202.3.77.129] has joined #go-nuts 10:46 -!- triplez [n=triplez@cm52.sigma225.maxonline.com.sg] has joined #go-nuts 10:49 -!- triplez_ [n=triplez@cm52.sigma225.maxonline.com.sg] has joined #go-nuts 10:52 -!- kanru [n=kanru@61-30-10-70.static.tfn.net.tw] has quit ["WeeChat 0.3.1-dev"] 10:53 -!- Xera` [n=brit@87-194-208-246.bethere.co.uk] has quit ["( www.nnscript.com :: NoNameScript 4.21 :: www.esnation.com )"] 10:57 -!- Associat0r [n=Associat@h163153.upc-h.chello.nl] has quit [] 10:58 -!- blabla [i=amz@serv4u.pl] has joined #go-nuts 11:00 -!- Macpunk [n=macpunk@cpe-72-177-27-209.austin.res.rr.com] has joined #go-nuts 11:04 -!- iwikiwi [n=iwikiwi@202.3.77.129] has quit ["I ascend to reality!"] 11:05 -!- triplez [n=triplez@cm52.sigma225.maxonline.com.sg] has quit [Read error: 110 (Connection timed out)] 11:10 -!- gnibbler_ [n=duckman@124-168-12-88.dyn.iinet.net.au] has joined #go-nuts 11:11 -!- vizzord [n=exn@195.49.206.202] has joined #go-nuts 11:11 -!- r2p2 [n=billy@v32671.1blu.de] has joined #go-nuts 11:14 -!- b00m_chef [n=watr@host-212-68-232-232.brutele.be] has quit [Success] 11:20 -!- gnibbler [n=duckman@203-217-92-223.dyn.iinet.net.au] has quit [Read error: 101 (Network is unreachable)] 11:21 -!- Fish-Work [n=Fish@86.65.182.194] has quit [Read error: 54 (Connection reset by peer)] 11:23 -!- Fish-Work [n=Fish@86.65.182.194] has joined #go-nuts 11:27 -!- keeto [n=keeto@121.54.92.149] has quit ["http://keetology.com/"] 11:42 -!- Fish-Work [n=Fish@86.65.182.194] has quit [Read error: 54 (Connection reset by peer)] 11:43 -!- Fish-Work [n=Fish@86.65.182.194] has joined #go-nuts 11:44 -!- slashus2 [n=slashus2@74-137-26-8.dhcp.insightbb.com] has quit [] 11:49 -!- alc [n=alc@114.245.255.238] has quit ["Leaving..."] 11:51 -!- blabla [i=amz@serv4u.pl] has quit [Read error: 104 (Connection reset by peer)] 11:52 -!- selby_fiedler [n=selby_fi@c-76-106-49-240.hsd1.va.comcast.net] has joined #go-nuts 11:53 -!- grizzlysmit [n=grizzlys@123-243-91-241.tpgi.com.au] has joined #go-nuts 11:54 -!- grizzlysmit [n=grizzlys@123-243-91-241.tpgi.com.au] has left #go-nuts [] 11:55 -!- tomestla [n=tom@87.100.115.249] has quit ["Leaving."] 11:56 -!- blabla [i=amz@serv4u.pl] has joined #go-nuts 11:56 -!- triplez_ [n=triplez@124.155.195.6] has joined #go-nuts 11:57 -!- tomestla [n=tom@87.100.115.249] has joined #go-nuts 11:58 -!- triplez_ [n=triplez@124.155.195.6] has quit [Client Quit] 11:58 -!- r2p2 [n=billy@v32671.1blu.de] has left #go-nuts [] 11:59 -!- r2p2 [n=billy@v32671.1blu.de] has joined #go-nuts 12:04 -!- triplez [n=triplez@cm52.sigma225.maxonline.com.sg] has quit [Read error: 104 (Connection reset by peer)] 12:04 -!- alc [n=alc@222.128.151.20] has joined #go-nuts 12:08 -!- alc [n=alc@222.128.151.20] has quit [Client Quit] 12:25 -!- plainhao [n=plainhao@mail.xbiotica.com] has joined #go-nuts 12:25 -!- keeto [n=keeto@121.54.92.149] has joined #go-nuts 12:26 -!- kleinchris [n=kleinchr@project-ajax.de] has joined #go-nuts 12:28 -!- slashus2 [n=slashus2@74-137-26-8.dhcp.insightbb.com] has joined #go-nuts 12:33 -!- Fish-Work [n=Fish@86.65.182.194] has quit [Read error: 104 (Connection reset by peer)] 12:34 -!- Fish-Work [n=Fish@86.65.182.194] has joined #go-nuts 12:45 -!- kanru [n=kanru@61-228-164-154.dynamic.hinet.net] has joined #go-nuts 12:46 -!- rrr [i=rrr@gateway/gpg-tor/key-0x9230E18F] has quit [Remote closed the connection] 12:53 -!- Macpunk [n=macpunk@cpe-72-177-27-209.austin.res.rr.com] has quit ["Leaving"] 12:54 -!- Fish-Work [n=Fish@86.65.182.194] has quit [Read error: 104 (Connection reset by peer)] 12:56 -!- Fish-Work [n=Fish@86.65.182.194] has joined #go-nuts 13:11 -!- mertimor [n=meowtime@vpn-ce242035.extern.uni-duisburg-essen.de] has joined #go-nuts 13:12 -!- mertimor [n=meowtime@vpn-ce242035.extern.uni-duisburg-essen.de] has quit [Client Quit] 13:16 -!- Fish-Work [n=Fish@86.65.182.194] has quit [Read error: 104 (Connection reset by peer)] 13:17 -!- Fish-Work [n=Fish@86.65.182.194] has joined #go-nuts 13:27 -!- jA_cOp [n=yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts 13:32 -!- r2p2 [n=billy@v32671.1blu.de] has left #go-nuts [] 13:36 -!- Fish-Work [n=Fish@86.65.182.194] has quit [Dead socket] 13:37 -!- Fish-Work [n=Fish@86.65.182.194] has joined #go-nuts 13:40 -!- r2p2 [n=billy@v32671.1blu.de] has joined #go-nuts 13:45 -!- Fish-Work [n=Fish@86.65.182.194] has quit [Read error: 104 (Connection reset by peer)] 13:45 -!- Fish-Work [n=Fish@194.182.65-86.rev.gaoland.net] has joined #go-nuts 13:46 -!- hcatlin [n=hcatlin@pdpc/supporter/professional/hcatlin] has joined #go-nuts 13:47 -!- cmarcelo [n=cmarcelo@200.184.118.130] has joined #go-nuts 13:47 < sowa> Anyone gone nuts yet? 13:55 -!- slashus2 [n=slashus2@74-137-26-8.dhcp.insightbb.com] has quit [] 14:02 -!- gracchus [n=jesse@207-229-149-97.c3-0.stk-ubr1.chi-stk.il.cable.rcn.com] has joined #go-nuts 14:04 -!- Olathe [n=Olathe@173-19-108-228.client.mchsi.com] has joined #go-nuts 14:07 -!- scarabx [n=scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined #go-nuts 14:13 -!- raichoo [n=raichoo@i577B8995.versanet.de] has joined #go-nuts 14:14 -!- lmoura [n=lauromou@200.184.118.130] has joined #go-nuts 14:17 -!- Kniht [n=kniht@c-68-58-17-177.hsd1.in.comcast.net] has joined #go-nuts 14:17 -!- alc [n=alc@114.245.248.149] has joined #go-nuts 14:20 -!- Netsplit kornbluth.freenode.net <-> irc.freenode.net quits: cw, atsampson, garbeam_, kimelto, apexo, nictuku, vhold, luca__, mpl, fluffle, (+10 more, use /NETSPLIT to show all of them) 14:20 -!- akher0n [n=akheron@lilja.asteriski.fi] has joined #go-nuts 14:20 -!- garbeam [n=arg@212.13.194.175.rev.bitfolk.com] has joined #go-nuts 14:20 -!- fluffle [n=camelid@s.pl0rt.org] has joined #go-nuts 14:20 -!- kevinwatt [i=kevin@59-125-147-75.HINET-IP.hinet.net] has joined #go-nuts 14:20 -!- Netsplit over, joins: cw 14:20 -!- Netsplit over, joins: rbancroft, deufrai 14:20 -!- danderson [n=dave@91.121.172.158] has joined #go-nuts 14:20 -!- Netsplit over, joins: vegai 14:20 -!- rup [i=Rupert@78.159.100.189] has joined #go-nuts 14:20 -!- dj_ryan [n=ryan@67.160.202.4] has joined #go-nuts 14:20 -!- Netsplit over, joins: atsampson 14:20 -!- mode/#go-nuts [+v danderson] by ChanServ 14:20 -!- mpl [n=mpl@213.251.175.204] has joined #go-nuts 14:20 -!- vhold [n=vhold@67.114.158.146] has joined #go-nuts 14:20 -!- apexo [n=apexo@85.214.63.100] has joined #go-nuts 14:20 -!- mitsuhiko_ [n=mitsuhik@hammett.srv.pocoo.org] has joined #go-nuts 14:20 -!- nictuku [n=nnnnictu@cetico.org] has joined #go-nuts 14:21 -!- Netsplit over, joins: u4ia 14:21 -!- luca__ [n=luca@host29.190-230-2.telecom.net.ar] has joined #go-nuts 14:22 -!- Fish-Work [n=Fish@194.182.65-86.rev.gaoland.net] has quit [Read error: 104 (Connection reset by peer)] 14:22 -!- lancy_ [n=nullpo@221x252x46x83.ap221.ftth.ucom.ne.jp] has quit [Read error: 110 (Connection timed out)] 14:22 -!- General13372 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit [Read error: 54 (Connection reset by peer)] 14:22 -!- General1337 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has joined #go-nuts 14:23 -!- Fish-Work [n=Fish@86.65.182.194] has joined #go-nuts 14:27 -!- triplez [n=triplez@cm52.sigma225.maxonline.com.sg] has joined #go-nuts 14:30 -!- kimelto [n=kimelto@boulz.org] has joined #go-nuts 14:31 -!- fhs [n=fhs@pool-72-89-203-117.nycmny.east.verizon.net] has quit ["leaving"] 14:35 -!- scarabx [n=scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit ["This computer has gone to sleep"] 14:40 -!- Kniht [n=kniht@c-68-58-17-177.hsd1.in.comcast.net] has quit [Read error: 110 (Connection timed out)] 14:43 -!- chachan [n=chachan@190.78.181.224] has joined #go-nuts 14:51 -!- codedread [i=180dd699@gateway/web/freenode/x-otktjalettjbjtaz] has joined #go-nuts 14:51 -!- codedread [i=180dd699@gateway/web/freenode/x-otktjalettjbjtaz] has left #go-nuts [] 14:55 -!- DerHorst [n=Horst@e176121005.adsl.alicedsl.de] has joined #go-nuts 14:55 -!- r2p2 [n=billy@v32671.1blu.de] has left #go-nuts [] 15:02 -!- mfoemmel [n=mfoemmel@chml01.drwholdings.com] has joined #go-nuts 15:04 < clip9> napsy: you can't use custom attributes like that. 15:04 < clip9> or at all in html. 15:05 -!- alc [n=alc@114.245.248.149] has quit [] 15:07 -!- napsy [n=napsy@193.2.66.101] has quit ["leaving"] 15:08 -!- Fish-Work [n=Fish@86.65.182.194] has quit [Read error: 54 (Connection reset by peer)] 15:09 -!- clip9 [n=tj@12.81-166-62.customer.lyse.net] has left #go-nuts [] 15:09 -!- clip9 [n=tj@12.81-166-62.customer.lyse.net] has joined #go-nuts 15:09 -!- Fish-Work [n=Fish@86.65.182.194] has joined #go-nuts 15:13 -!- kanru [n=kanru@61-228-164-154.dynamic.hinet.net] has quit ["WeeChat 0.3.1-dev"] 15:14 -!- oal [n=olav@5.79-160-122.customer.lyse.net] has joined #go-nuts 15:17 -!- mjburgess [n=michael@m1.mjburgess.co.uk] has quit [SendQ exceeded] 15:17 -!- mjburgess [n=michael@m1.mjburgess.co.uk] has joined #go-nuts 15:19 -!- Kniht [n=kniht@c-68-58-17-177.hsd1.in.comcast.net] has joined #go-nuts 15:21 -!- AmirMohammad [n=amir@unaffiliated/gluegadget] has quit ["leaving"] 15:23 -!- p4p4 [n=P4p4@24.106.113.82.net.de.o2.com] has joined #go-nuts 15:29 -!- Fish-Work [n=Fish@86.65.182.194] has quit [Read error: 54 (Connection reset by peer)] 15:30 -!- Fish-Work [n=Fish@86.65.182.194] has joined #go-nuts 15:30 -!- rrr [i=rrr@gateway/gpg-tor/key-0x9230E18F] has joined #go-nuts 15:30 -!- p4p4 [n=P4p4@24.106.113.82.net.de.o2.com] has quit [Client Quit] 15:32 -!- plainhao [n=plainhao@mail.xbiotica.com] has quit [] 15:46 -!- elmar_ [n=elmar@188.107.222.242] has joined #go-nuts 15:50 -!- KiNgMaR [n=ingmar@2001:41d0:2:7518:1:3:3:7] has quit ["ZNC - http://znc.sourceforge.net"] 15:50 -!- KiNgMaR [n=ingmar@2001:41d0:2:7518:1:3:3:7] has joined #go-nuts 15:55 -!- illya77 [n=illya77@177-110-133-95.pool.ukrtel.net] has joined #go-nuts 15:55 -!- rog [n=rog@78.148.84.113] has joined #go-nuts 15:57 -!- nathanielk [n=quassel@frigga.summersault.com] has quit [Remote closed the connection] 15:59 -!- rrr [i=rrr@gateway/gpg-tor/key-0x9230E18F] has quit [Remote closed the connection] 16:00 -!- callidus [n=quassel@cpc2-newc1-0-0-cust1524.gate.cable.virginmedia.com] has quit ["No Ping reply in 90 seconds."] 16:00 -!- callidus [n=quassel@cpc2-newc1-0-0-cust1524.gate.cable.virginmedia.com] has joined #go-nuts 16:02 -!- rrr [i=rrr@gateway/gpg-tor/key-0x9230E18F] has joined #go-nuts 16:05 -!- Fish-Work [n=Fish@86.65.182.194] has quit [Read error: 104 (Connection reset by peer)] 16:05 -!- nathanielk [n=quassel@frigga.summersault.com] has joined #go-nuts 16:05 -!- Fish-Work [n=Fish@86.65.182.194] has joined #go-nuts 16:09 -!- decriptor [n=decripto@137.65.133.6] has joined #go-nuts 16:10 -!- johan-s [n=johan@106.80-203-21.nextgentel.com] has quit ["awaaaay"] 16:11 -!- defectiv [n=clays@c-24-5-65-40.hsd1.ca.comcast.net] has joined #go-nuts 16:11 -!- defectiv [n=clays@c-24-5-65-40.hsd1.ca.comcast.net] has quit [Client Quit] 16:13 -!- amacleod [n=amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has joined #go-nuts 16:14 -!- hcatlin [n=hcatlin@pdpc/supporter/professional/hcatlin] has quit [] 16:14 -!- smooge [n=smooge@int.smoogespace.com] has joined #go-nuts 16:22 -!- murodese [n=James@203-59-16-119.dyn.iinet.net.au] has joined #go-nuts 16:23 -!- r2p2 [n=billy@v32671.1blu.de] has joined #go-nuts 16:26 -!- chickamade [n=chickama@222.254.0.77] has joined #go-nuts 16:29 -!- path[l] [n=path@59.162.86.164] has quit [] 16:35 < taruti> is it possible to refer to C size_t type in a portable way from Go? 16:39 -!- Cyanure [n=cyanure@81-65-189-254.rev.numericable.fr] has joined #go-nuts 16:40 < dho> You're using cgo? 16:46 < taruti> dho: no, plain go. 16:46 < taruti> dho: trying to write a wrapper for a new syscall. 16:46 -!- trickie [n=trickie@94.100.112.225] has quit [Read error: 113 (No route to host)] 16:46 -!- WalterMundt [n=waltermu@twiki/developer/EtherMage] has joined #go-nuts 16:47 -!- sowa [n=sowa@85.214.104.79] has quit ["Lost terminal"] 16:48 < dho> oh, the ioctl with NIOFREAD? 16:49 < taruti> dho: writev 16:49 < dho> ok 16:50 < taruti> and thus I need type iovec struct { iov_base *byte; iov_len like_c_size_t } 16:51 < dho> well, writev returns ssize_t too 16:51 < dho> in any case, those are either int64 or uint64 16:51 < dho> for ssize_t or size_t respectively 16:51 < dho> and if you need the iovec struct, you shouldn't wrap it manually 16:52 < dho> you should pull it from the header files that are generated with godefs in the syscall package 16:52 < dho> types_$GOOS.c 16:52 < dho> you would want something like: 16:52 < dho> typedef struct iovec $Iovec; 16:53 < chickamade> was there any improvement made on the scheduler since the first release? 16:53 < dho> No, there has been no significant work on the scheduler 16:54 < chickamade> b/c I just revisted a program I wrote and it is running 150% faster :) 16:54 < taruti> dho: ok, haven't used godefs much, will try to learn that. 16:54 < chickamade> which is lovely 16:54 < dho> taruti: There's not really that much to do 16:55 < dho> taruti: the tough part will be you getting a linux / darwin / freebsd machine 16:55 < dho> :) 16:55 < chickamade> that's very interesting 16:55 < chickamade> well something has improved 16:56 -!- Cyanure [n=cyanure@81-65-189-254.rev.numericable.fr] has quit [Read error: 54 (Connection reset by peer)] 16:56 -!- Cyanure [n=cyanure@81-65-189-254.rev.numericable.fr] has joined #go-nuts 16:56 < dho> There have been some optimizations in the 6g compiler toolchain and some work on memory allocation and garbage collection, as well as some performance improvements for channels by removing a BGL for channels 16:56 < dho> taruti: the input for godefs is just straight C 16:57 < chickamade> dho: BGL = some kind of lock? 16:57 < rog> " 16:57 < chickamade> that would explain it 16:57 < rog> "big global lock" 16:57 < dho> yes, a `big giant lock' 16:57 < dho> or that 16:57 < chickamade> really 16:57 < dho> yeah 16:57 < chickamade> what does it do? 16:57 < dho> synchronizes communication between channels 16:57 < chickamade> (I'm having GIL nightmare) 16:58 < dho> GIL is python's term for bgl, indeed 16:59 < dho> taruti: I've worked with the syscall package somewhat extensively (for the freebsd port) so if you have any questions feel free to ask 17:00 < chickamade> It makes sense to have a global lock for every channel, but why is this called *BIG*? 17:00 < dho> Because it's effectively `fat' 17:01 < chickamade> lol 17:01 < dho> it `consumes' every resource that depends on it 17:01 < chickamade> but it's gone now? 17:01 < dho> so if you have a lock around an entire subsystem (or system in general for the case of e.g. freebsd 5, or python), it's `big' 17:02 < dho> sometimes a big lock is what you need, usually more finer-grained locks are better 17:02 < dho> However, if you have too many, you spend a lot of time locking / unlocking tons of data structures 17:02 < dho> so it's sort of a `try it and see' sort of trade-off 17:02 < dho> but yes, that code was committed before one of the last two releases 17:03 -!- cmarcelo [n=cmarcelo@enlightenment/developer/cmarcelo] has quit ["leaving"] 17:05 < chickamade> how come I can't grep anything like BGL, [Gg]lobal.[Ll]ock from the source tree 17:05 < dho> it's a generic term 17:06 < chickamade> ic 17:07 < dho> i think iant did that work 17:07 < dho> hm, no was agl 17:08 < dho> http://codereview.appspot.com/166043 17:08 < chickamade> thanks 17:09 < chickamade> I was looking for that 17:09 < chickamade> who is agl, btw? 17:10 < dho> adam langley 17:11 -!- cmarcelo [n=cmarcelo@200.184.118.130] has joined #go-nuts 17:12 -!- Fl1pFl0p [n=FlipFlop@ip68-8-225-187.sd.sd.cox.net] has joined #go-nuts 17:13 -!- sinuhe [n=user@kaptah.deevans.net] has joined #go-nuts 17:15 -!- jessta [n=jessta@64.62.231.205] has joined #go-nuts 17:19 -!- hcatlin [n=hcatlin@pdpc/supporter/professional/hcatlin] has joined #go-nuts 17:19 -!- Elfix [i=elfix@wikipedia/elfix] has quit [Remote closed the connection] 17:20 -!- Fl1pFl0p [n=FlipFlop@ip68-8-225-187.sd.sd.cox.net] has quit [Client Quit] 17:24 -!- vizzord [n=exn@195.49.206.202] has quit ["see you"] 17:25 -!- difekta [n=clays@75.101.111.19] has joined #go-nuts 17:31 -!- Fish-Work [n=Fish@86.65.182.194] has quit [Read error: 104 (Connection reset by peer)] 17:32 -!- pshahmumbai [n=prashant@59.164.24.2] has joined #go-nuts 17:32 -!- Fish-Work [n=Fish@86.65.182.194] has joined #go-nuts 17:35 -!- jA_cOp [n=yakobu@unaffiliated/ja-cop/x-9478493] has quit ["Leaving"] 17:38 -!- difekta [n=clays@75.101.111.19] has quit ["This computer has gone to sleep"] 17:38 -!- difekta [n=clays@75.101.111.19] has joined #go-nuts 17:39 -!- deso [n=deso@x0561a.wh30.tu-dresden.de] has joined #go-nuts 17:39 -!- difekta [n=clays@75.101.111.19] has quit [Client Quit] 17:42 -!- snearch [n=olaf@g225048113.adsl.alicedsl.de] has joined #go-nuts 17:43 -!- iwikiwi [n=iwikiwi@202.3.77.160] has joined #go-nuts 17:43 -!- hcatlin [n=hcatlin@pdpc/supporter/professional/hcatlin] has quit [] 17:43 -!- jA_cOp [n=yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts 17:46 -!- trevor [n=trevor@adsl-70-143-46-188.dsl.tul2ok.sbcglobal.net] has joined #go-nuts 17:46 -!- trevor [n=trevor@adsl-70-143-46-188.dsl.tul2ok.sbcglobal.net] has quit [Client Quit] 17:52 -!- slashus2 [n=slashus2@74-137-26-8.dhcp.insightbb.com] has joined #go-nuts 17:56 -!- illya77 [n=illya77@177-110-133-95.pool.ukrtel.net] has quit [Read error: 110 (Connection timed out)] 17:58 -!- decriptor [n=decripto@137.65.133.6] has left #go-nuts ["Ex-Chat"] 18:01 -!- slashus2 [n=slashus2@74-137-26-8.dhcp.insightbb.com] has quit [Read error: 60 (Operation timed out)] 18:02 -!- slashus2 [n=slashus2@74-137-26-8.dhcp.insightbb.com] has joined #go-nuts 18:07 -!- gracchus [n=jesse@207-229-149-97.c3-0.stk-ubr1.chi-stk.il.cable.rcn.com] has quit [Read error: 113 (No route to host)] 18:11 -!- Fl1pFl0p [n=FlipFlop@ip68-8-225-187.sd.sd.cox.net] has joined #go-nuts 18:12 -!- Fish-Work [n=Fish@86.65.182.194] has quit [Read error: 104 (Connection reset by peer)] 18:12 -!- Venom_X [n=pjacobs@c-76-31-231-95.hsd1.tx.comcast.net] has joined #go-nuts 18:13 -!- Method [n=Method@nat-3-135.snu.edu] has joined #go-nuts 18:13 -!- Fish-Work [n=Fish@86.65.182.194] has joined #go-nuts 18:17 -!- gracchus [n=jesse@207-229-149-97.c3-0.stk-ubr1.chi-stk.il.cable.rcn.com] has joined #go-nuts 18:17 -!- Xera^ [n=brit@87-194-208-246.bethere.co.uk] has joined #go-nuts 18:27 -!- iwikiwi [n=iwikiwi@202.3.77.160] has quit ["I ascend to reality!"] 18:28 -!- pshahmumbai [n=prashant@59.164.24.2] has quit ["Ex-Chat"] 18:29 -!- smooge [n=smooge@int.smoogespace.com] has quit ["-ENOBRAIN"] 18:30 -!- smooge [n=smooge@int.smoogespace.com] has joined #go-nuts 18:33 -!- Xera^ [n=brit@87-194-208-246.bethere.co.uk] has quit [Read error: 104 (Connection reset by peer)] 18:33 -!- Xera^ [n=brit@87-194-208-246.bethere.co.uk] has joined #go-nuts 18:37 -!- Daminvar [n=Daminvar@129.21.121.159] has quit ["Leaving"] 18:39 -!- me___ [n=me@c-68-55-179-48.hsd1.md.comcast.net] has quit [Read error: 113 (No route to host)] 18:39 -!- rog [n=rog@78.148.84.113] has quit [] 18:40 -!- blackmagik [n=blackmag@173.45.224.239] has joined #go-nuts 18:44 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has quit [Excess Flood] 18:44 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has joined #go-nuts 18:44 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has quit [Excess Flood] 18:45 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has joined #go-nuts 18:45 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has quit [Excess Flood] 18:45 < plexdev> http://is.gd/5M6ZU by [Roger Peppe] in go/src/pkg/go/ast/ -- Allow a nil Ident to print without crashing. 18:45 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has joined #go-nuts 18:47 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has quit [Excess Flood] 18:47 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has joined #go-nuts 18:47 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has quit [Excess Flood] 18:48 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has joined #go-nuts 18:52 -!- gasreaa [n=atwong@nat/slide/x-rdblxqmjszmrxesk] has joined #go-nuts 18:53 -!- gasreaa [n=atwong@nat/slide/x-rdblxqmjszmrxesk] has left #go-nuts [] 18:56 -!- reppie [i=refugee@elvis.mu.org] has quit [Read error: 110 (Connection timed out)] 18:56 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has quit [Excess Flood] 18:57 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has joined #go-nuts 18:57 -!- mejja [n=user@c-49b6e555.023-82-73746f38.cust.bredbandsbolaget.se] has joined #go-nuts 18:58 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has quit [Excess Flood] 18:58 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has joined #go-nuts 18:58 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has quit [Excess Flood] 18:59 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has joined #go-nuts 19:01 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has quit [Excess Flood] 19:02 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has joined #go-nuts 19:04 -!- gkmngrgn [n=gkmngrgn@78.183.62.179] has joined #go-nuts 19:04 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has quit [Excess Flood] 19:04 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has joined #go-nuts 19:05 -!- Cyanure [n=cyanure@81-65-189-254.rev.numericable.fr] has quit [Read error: 110 (Connection timed out)] 19:13 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has quit [Excess Flood] 19:14 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has joined #go-nuts 19:14 -!- rog [n=rog@78.148.84.113] has joined #go-nuts 19:15 -!- callidus [n=quassel@cpc2-newc1-0-0-cust1524.gate.cable.virginmedia.com] has quit [Read error: 60 (Operation timed out)] 19:18 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has quit [Excess Flood] 19:18 -!- chickamade [n=chickama@222.254.0.77] has quit ["Leaving"] 19:18 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has joined #go-nuts 19:20 -!- asyncster [n=asyncste@206.169.213.106] has joined #go-nuts 19:23 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has quit [Excess Flood] 19:24 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has joined #go-nuts 19:26 -!- carllerche [n=carllerc@enginey-9.border1.sfo002.pnap.net] has joined #go-nuts 19:26 -!- stevenyvr [n=schan@76-10-184-108.dsl.teksavvy.com] has joined #go-nuts 19:33 -!- x10 [n=x10@client-82-199-202-5.speedy.sellinet.net] has joined #go-nuts 19:33 < x10> Hi, guys 19:33 -!- gracchus [n=jesse@207-229-149-97.c3-0.stk-ubr1.chi-stk.il.cable.rcn.com] has quit ["Leaving."] 19:34 < x10> Can someone point me to a list of libraries available? 19:34 < x10> I want to make a primitive web site 19:35 < ShadowIce> x10: http://go-lang.cat-v.org/ 19:35 < x10> Thanks :) 19:36 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has quit [Excess Flood] 19:36 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has joined #go-nuts 19:40 < Olathe> If I do a := true on a line before a for statement, I get an error. If I put a := true; it works. Why ? 19:40 < dho> huh? 19:40 < dho> a := true or a ``:= true'' 19:40 < Olathe> The first 19:41 < dho> can you paste context? 19:41 < Olathe> Maybe x := true is clearer 19:41 < dho> yeah, sorry 19:41 < dho> ambiguity-- 19:42 < Olathe> http://pastebin.com/d307ac172 19:42 < Olathe> The first one fails, the second compiles 19:43 -!- asyncster [n=asyncste@206.169.213.106] has quit [] 19:43 < Olathe> Bah. 19:43 < dho> the former works fine for me 19:44 < Olathe> Hmm... 19:44 < dho> http://pastebin.com/d602cd85b 19:44 < dho> compiles great 19:44 < Olathe> Must be this evil Windows binary. 19:44 < dho> oh, you're using hectorchu's windows port? 19:44 < Olathe> Yeah. 19:44 < dho> The current state of that is `waiting to get merged into the mainline' 19:45 < Olathe> Ahh, OK 19:45 < dho> I'm not sure it has all the most recent changes, so he may not have bothered with the semicolon change 19:45 < Olathe> Oh, OK 19:45 < dho> since that's not really a platform-specific anything that he'd have needed to worry about 19:45 < Olathe> Hmm... 19:45 < Olathe> I hope that gets integrated soon, then. 19:46 < dho> it's getting there 19:46 -!- me__ [n=me@c-68-55-179-48.hsd1.md.comcast.net] has joined #go-nuts 19:46 < dho> http://codereview.appspot.com/176066 19:46 < dho> hey me__ 19:47 < Olathe> Ahh, thanks :) 19:47 < dho> no problem 19:48 < x10> hey, I have a weird "import" bug 19:48 < x10> has someone seen this before? 19:49 < dho> seen what 19:49 < x10> fatal error: can't find import: bytesbufioencoding/binaryfmtiolognetos 19:49 < dho> ah 19:49 < x10> It merges all the imports into one 19:49 < dho> paste code? 19:49 < x10> (I'm on Linux) 19:49 < x10> import ( 19:49 < x10> "bytes" 19:49 < x10> "bufio" 19:49 < x10> "encoding/binary" 19:49 < x10> "fmt" 19:49 < x10> "io" 19:49 < x10> "log" 19:49 < x10> "net" 19:49 < x10> "os" 19:49 < x10> ) 19:49 < x10> is it some \r\n thing? 19:50 < dho> don't believe so 19:50 < dho> any way you can make the package available? 19:50 < dho> (A simple test of that succeeds for me) 19:50 < x10> what do you mean? 19:50 < x10> oh, sorry 19:50 < x10> http://github.com/hoisie/web.go# 19:50 < Gracenotes> x10: try semicolons 19:50 < dho> alright 19:51 < Gracenotes> consecutive string literals are combined 19:51 < Gracenotes> otherwise 19:51 < x10> uhhh 19:51 < x10> So...why has this been released, then? 19:51 < dho> er 19:51 < x10> I mean, the guy surely knows that... 19:51 < dho> x10: what version of go are you using? 19:51 < dho> Gracenotes: that's again pre-semicolon-change 19:52 < x10> I'm using the day-1 version 19:52 < dho> x10: update 19:52 < x10> ok 19:52 < dho> :) 19:52 < x10> Is there an easy way? 19:52 < x10> like apt-get update 19:52 < x10> (obviously not *exactly* apt-get update) 19:52 < dho> I'm assuming you built it from mercurial? 19:52 < Gracenotes> dho: hm. Just my intuition about what'd cause it to break 19:52 < x10> as per the tutorial, yes 19:52 < Gracenotes> yeah, consecutive string literals had been removed, huh 19:53 < dho> x10: go into that directory and run hg pull -u 19:53 < Gracenotes> I had to update my own app to fix it. 19:53 < Gracenotes> what's the problem with them? 19:53 < dho> Gracenotes: it breaks an import clause like that :) 19:53 < x10> That's it? Wow :) 19:53 < dho> x10: well and then re-build :) 19:54 -!- Cyanure [n=cyanure@81-65-189-254.rev.numericable.fr] has joined #go-nuts 19:54 < Gracenotes> dho: meh. I liked them. now my code is littered with +s everywhere 19:55 < Gracenotes> not as good to make many changes/features where only one use case is considered, to the detriment of others 19:56 -!- StDan [n=danielb@124-197-59-227.callplus.net.nz] has quit [Remote closed the connection] 19:56 < Gracenotes> anyhow, overreacty rant 19:56 < dho> x10: actually, there's a section in the golang.org/doc/install.html that says `keeping up with releases' 19:57 -!- iwikiwi [n=iwikiwi@202.3.77.160] has joined #go-nuts 19:57 < dho> just follow that; it should get you what you want :) 19:58 -!- Venom_X [n=pjacobs@c-76-31-231-95.hsd1.tx.comcast.net] has quit [] 19:59 -!- reppie [i=refugee@elvis.mu.org] has joined #go-nuts 20:00 < dho> hey reppje 20:00 -!- jA_cOp [n=yakobu@unaffiliated/ja-cop/x-9478493] has quit [Read error: 104 (Connection reset by peer)] 20:01 -!- gkmngrgn [n=gkmngrgn@unaffiliated/gkmngrgn] has quit [Read error: 104 (Connection reset by peer)] 20:04 -!- gkmngrgn [n=gkmngrgn@unaffiliated/gkmngrgn] has joined #go-nuts 20:07 -!- jA_cOp [n=yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts 20:08 -!- General13372 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has joined #go-nuts 20:11 -!- afurlan [n=afurlan@scorpion.mps.com.br] has quit [Remote closed the connection] 20:12 -!- Cyanure [n=cyanure@81-65-189-254.rev.numericable.fr] has quit [Connection timed out] 20:13 -!- afurlan [n=afurlan@scorpion.mps.com.br] has joined #go-nuts 20:15 -!- Fish-Work [n=Fish@86.65.182.194] has quit [Read error: 104 (Connection reset by peer)] 20:16 -!- Fish-Work [n=Fish@86.65.182.194] has joined #go-nuts 20:17 -!- codedread [i=180dd699@gateway/web/freenode/x-whgsvxobwkljovox] has joined #go-nuts 20:17 -!- codedread [i=180dd699@gateway/web/freenode/x-whgsvxobwkljovox] has left #go-nuts [] 20:24 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has quit [Excess Flood] 20:24 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has joined #go-nuts 20:25 < taruti> Is there an elegant way of doing os specific things? Mostly at the moment "fail compiling if not on linux" 20:26 < dho> taruti: use case? 20:26 -!- General1337 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit [Connection timed out] 20:27 < dho> taruti: how it is handled now is that the syscall module builds what it knows about, and things like os or net have files with $GOOS embedded into them, which are included in GOFILES in their Makefile 20:28 < dho> If you're planning on adding something like pkg/os/iovec_linux.go, you'd just add iovec_$GOOS.go and then create one for darwin/freebsd/nacl as well 20:28 < dho> If you're adding OS-specific stuff, you may just want to do syscalls though 20:28 -!- DerHorst [n=Horst@e176121005.adsl.alicedsl.de] has quit ["Verlassend"] 20:30 < taruti> dho: ok. so specific files + Makefile-rules. I can live with that. 20:31 -!- poppy_no1ood [n=rthc@rrcs-67-52-50-170.west.biz.rr.com] has joined #go-nuts 20:32 -!- amacleod [n=amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has quit [Read error: 110 (Connection timed out)] 20:33 -!- codedread [i=180dd699@gateway/web/freenode/x-huchkudipqcwgwrj] has joined #go-nuts 20:35 < taruti> is there a more idiomatic way of saying "[][]byte{a,b,c}" ? 20:35 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has quit [Excess Flood] 20:36 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has joined #go-nuts 20:36 -!- Fish-Work [n=Fish@86.65.182.194] has quit [Read error: 54 (Connection reset by peer)] 20:37 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has quit [Excess Flood] 20:37 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has joined #go-nuts 20:38 -!- Fish-Work [n=Fish@86.65.182.194] has joined #go-nuts 20:38 < dho> dunno about that. 20:38 -!- codedread_ [i=180dd699@gateway/web/freenode/x-jrydylkcafnaglrm] has joined #go-nuts 20:38 -!- codedread [i=180dd699@gateway/web/freenode/x-huchkudipqcwgwrj] has quit ["Page closed"] 20:38 -!- poppy_nogood [n=rthc@rrcs-67-52-50-170.west.biz.rr.com] has quit [Read error: 110 (Connection timed out)] 20:38 -!- afurlan [n=afurlan@scorpion.mps.com.br] has quit [Remote closed the connection] 20:38 -!- codedread_ [i=180dd699@gateway/web/freenode/x-jrydylkcafnaglrm] has left #go-nuts [] 20:39 -!- ikke [n=ikkibr@unaffiliated/ikkebr] has quit [] 20:42 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has quit [Excess Flood] 20:42 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has joined #go-nuts 20:42 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has quit [Excess Flood] 20:43 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has joined #go-nuts 20:43 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has quit [Excess Flood] 20:43 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has joined #go-nuts 20:46 -!- oal [n=olav@5.79-160-122.customer.lyse.net] has quit [Read error: 104 (Connection reset by peer)] 20:46 -!- kleinchris [n=kleinchr@project-ajax.de] has quit [Remote closed the connection] 20:47 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has quit [Excess Flood] 20:47 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has joined #go-nuts 20:47 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has quit [Excess Flood] 20:47 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has joined #go-nuts 20:48 < deso> is it possible to Print(f) the result of a multiple return value function without assigning variables or with assignment but within the parantheses of the Print call? 20:48 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has quit [Excess Flood] 20:49 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has joined #go-nuts 20:49 < jessta> deso: nope 20:49 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has quit [Excess Flood] 20:50 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has joined #go-nuts 20:50 < deso> k 20:56 < quag> deso: multiple return values != tuple 20:57 -!- ikke [n=ikke@unaffiliated/ikkebr] has joined #go-nuts 20:57 < deso> does go have tuples? 20:58 -!- NetcopSecurity [n=datalock@189.35.2.134] has joined #go-nuts 20:58 < dagle> No. 20:59 < KirkMcDonald> It has structs, and it has some tuple-like syntax. 21:01 -!- dju_ [n=dju@89-158-236-229.rev.dartybox.com] has joined #go-nuts 21:02 < x10> Hey, I have a simple go question 21:02 < x10> I get this error 21:02 < x10> cannot use "asdf" (type string) as type []uint8 in function argument 21:02 < x10> How do I convert? 21:03 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has quit [Excess Flood] 21:03 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has joined #go-nuts 21:04 < dho> strings.Bytes("asdf") 21:04 < x10> ah 21:04 < x10> Yes, thank you 21:05 < dho> np 21:05 -!- StDan [n=danielb@124-197-59-227.callplus.net.nz] has joined #go-nuts 21:07 < x10> are there multiline strings in Go? 21:07 < dagle> "oeu\noeau\n" ? 21:08 < x10> I mean like in Python 21:08 < x10> '''asdasdasdasdas 21:08 < x10> asdsadas 21:08 < x10> ''' 21:08 < dho> foo := `string 21:08 < dho> string 21:08 < dho> string` 21:09 < x10> thank you :0 21:09 < KirkMcDonald> x10: All string literals are multi-line strings in Go. 21:09 < KirkMcDonald> (I have always been baffled as to why this is not the case in Python.) 21:09 < x10> you mean "asdfasd 21:09 < x10> asdsda" 21:09 < x10> is valid? 21:09 < x10> nice 21:09 < KirkMcDonald> That should work, yes. 21:10 < x10> the " doesn't work, the ` does 21:13 < KirkMcDonald> Curious. I wonder why that is. 21:13 < KirkMcDonald> Though it is documented. 21:18 -!- kleinchris [n=kleinchr@project-ajax.de] has joined #go-nuts 21:19 -!- dju [i=dju@89-158-236-229.rev.dartybox.com] has quit [Success] 21:19 -!- StDan [n=danielb@124-197-59-227.callplus.net.nz] has quit [Remote closed the connection] 21:23 -!- snearch [n=olaf@g225048113.adsl.alicedsl.de] has quit ["Ex-Chat"] 21:26 -!- viirya [n=viirya@cml506-25.csie.ntu.edu.tw] has quit [Read error: 54 (Connection reset by peer)] 21:26 -!- viirya [n=viirya@cml506-25.csie.ntu.edu.tw] has joined #go-nuts 21:30 -!- slashus2 [n=slashus2@74-137-26-8.dhcp.insightbb.com] has quit [] 21:30 < x10> I can't seem to find an API documentation for built-in classes 21:30 -!- StDan [n=danielb@124-197-59-227.callplus.net.nz] has joined #go-nuts 21:30 < x10> (like string/bytes)? 21:31 < x10> I'm looking for a "replace" function, specifically 21:31 -!- chachan [n=chachan@190.78.181.224] has quit ["KVIrc Insomnia 4.0.0, revision: , sources date: 20090520, built on: 2009/06/06 11:44:47 UTC http://www.kvirc.net/"] 21:31 < dho> There's not a string replace 21:32 < KirkMcDonald> I thought strings.Replace was added? 21:32 * KirkMcDonald checks. 21:32 < KirkMcDonald> Guess not. 21:32 < x10> oh well 21:32 < dho> it's a horribly inefficient operation 21:32 < x10> still, how can I check for methods on bytes/maps/whatever? 21:32 < dho> strings are immutable in go 21:33 < dho> www.golang.org/pkg/? 21:33 < x10> I mean built-in packages 21:33 < x10> argh 21:33 < x10> built-in types 21:33 < x10> that you can use without "import"-ing 21:33 < KirkMcDonald> x10: The spec. 21:33 < x10> mhm, thanks 21:33 < dho> built-in types are not objects and do not have methods 21:34 < KirkMcDonald> Also true. 21:34 < KirkMcDonald> Well, they are objects in the broad sense of the word, I would say. 21:34 < dho> for instance, there is no maptype.reduce 21:34 < KirkMcDonald> The reference types, at least. 21:34 < dho> (there is a vector.reduce) 21:34 < dho> or 21:34 < dho> no, an iterator.reduce 21:35 -!- stevenyvr [n=schan@76-10-184-108.dsl.teksavvy.com] has quit ["Computer has gone to sleep"] 21:36 -!- amacleod [n=amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has joined #go-nuts 21:40 -!- b00m_chef [n=watr@host-212-68-232-232.brutele.be] has joined #go-nuts 21:45 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has quit [Excess Flood] 21:45 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has joined #go-nuts 21:47 -!- StDan [n=danielb@124-197-59-227.callplus.net.nz] has quit [Remote closed the connection] 21:47 -!- sheb [n=seb@AToulouse-152-1-64-142.w82-125.abo.wanadoo.fr] has joined #go-nuts 21:48 -!- NetcopSecurity [n=datalock@189.35.2.134] has quit [Read error: 104 (Connection reset by peer)] 21:55 < x10> Hi, I'm trying to import one of my files 21:55 < x10> and it fails 21:55 < x10> fatal error: can't find import: ./file.go 21:55 < x10> import "./file.go" 21:55 < x10> what Am I missing? 21:55 <+iant> normally one would write import "./file" 21:55 <+iant> and the compiler would read file.a or file.6 21:55 < x10> that fails too 21:55 < x10> ahhh 21:55 <+iant> you don't import Go files 21:55 < x10> so I have to compile it? 21:56 <+iant> yes 21:56 < x10> thank you 21:56 -!- amacleod [n=amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has quit ["Bye Bye"] 21:58 < luca__> KirkMcDonald: hi, you are the one that written pyd, right? 21:58 < luca__> *wrote, damn 21:58 -!- nullpo [n=nullpo@221x252x46x83.ap221.ftth.ucom.ne.jp] has joined #go-nuts 21:59 < KirkMcDonald> luca__: Yes. 22:00 < luca__> KirkMcDonald: are you off D and using Go now? 22:00 < KirkMcDonald> In the sense that I haven't written D code in years, and have written Go code in the last month, I suppose. 22:00 < luca__> KirkMcDonald: I'd like to know the opinion about Go from somebody that actively use it and used D too :) 22:00 < KirkMcDonald> But that is only because D is a disaster. 22:01 < luca__> KirkMcDonald: you mean as a language or becuase of the crappy community-leading? :) 22:01 < KirkMcDonald> The latter, mostly. 22:01 < KirkMcDonald> The language itself has a lot to like. 22:01 < KirkMcDonald> However. D and Go have some significant differences. 22:02 < KirkMcDonald> I do not think it would be fair to describe Go as a replacement for D. 22:02 < luca__> I've seen a little Go, and tried to port a small program to it, but I found a few kludges that dragged me away (like the lack of a fork() function) 22:02 < luca__> (not ForkExec(), just fork() :) 22:03 <+iant> luca__: It's very hard to write a correct fork() function for a multi-threaded program, and Go programs are pretty much always multi-threaded 22:03 < dho> Not sure why that's a detriment. 22:03 <+iant> what do you want to use fork for? 22:03 < KirkMcDonald> Yes. Go's C integration leaves a little to be desired, particularly compared to D. 22:03 < luca__> iant: just to make a simple daemon 22:03 < KirkMcDonald> luca__: Use goroutines. 22:03 <+iant> Lack of a daemonization function is definitely an issue 22:03 < KirkMcDonald> Oh, I see. 22:03 < luca__> KirkMcDonald: :) 22:03 < KirkMcDonald> Yes, daemonization is to be desired. 22:04 <+iant> that one is much easier to solve than fork 22:04 < luca__> iant: I guess that fork()ing *before* running any threads is safe, but I guess it's hard to ensure that 22:04 <+iant> issue 227 is open for that 22:04 -!- stevenyvr [n=schan@76-10-184-108.dsl.teksavvy.com] has joined #go-nuts 22:04 < luca__> iant: ok 22:06 < taruti> luca__: yes, that is nasty. 22:07 < taruti> luca__: currently the solution seems to be a C wrapper that double-forks and then execs the go-program 22:07 -!- difekta [n=clays@75.101.111.19] has joined #go-nuts 22:07 < x10> excuse me, what are some sane values for syscall.Open() ? 22:08 < x10> I keep getting no error 22:08 < x10> but it reads 0 bytes 22:08 < dho> why are you using syscall.Open? 22:08 -!- b00m_chef [n=watr@host-212-68-232-232.brutele.be] has quit [Read error: 110 (Connection timed out)] 22:08 < x10> http://pastebin.com/m61b6a643 22:08 < dho> I'm pretty sure you want os.Open. 22:08 < x10> I'm using file.open 22:08 < x10> From the Go tutorial 22:09 < x10> ok, os.open 22:10 < dho> http://golang.org/pkg/os/#File.Open 22:10 < dho> what you pasted isn't a complete go program 22:11 -!- difekta [n=clays@75.101.111.19] has quit [Client Quit] 22:11 < dho> and also you're passing an empty slice into read, which doesn't have any size. File.Read takes a slice, but that really means it wants you to pass it an array 22:11 < dho> you probably want to be using the bufio package 22:11 < dho> http://golang.org/pkg/bufio/ 22:12 -!- pure_x01 [n=pure@c83-248-3-188.bredband.comhem.se] has joined #go-nuts 22:12 < x10> http://pastebin.com/m633a2208 22:12 < x10> I'm not sure I understand the slice thing 22:12 < x10> Am I supposed to know how big the text will be before I read it? 22:13 < dho> You're supposed to know how much you want to read before you read it. 22:13 < dho> There are all sorts of ways to do that 22:13 < x10> I want the whole file 22:13 < dho> Ok. 22:13 -!- gasreaa [n=atwong@nat/slide/x-yvbhobofmkocvvnh] has joined #go-nuts 22:13 < KirkMcDonald> stat the file, allocate a buffer big enough to hold it. 22:13 < KirkMcDonald> Read into that buffer. 22:14 -!- gasreaa [n=atwong@nat/slide/x-yvbhobofmkocvvnh] has left #go-nuts [] 22:14 < KirkMcDonald> (There's a function which does this already, innit?) 22:14 < pure_x01> is there anyone who can tell me were i can read about the expected future performance of go relative to example c, java or c++ .. or can anyone here tell me? 22:14 < dho> there's the language shootout that tells you current performance 22:14 < dho> as for future performance, that's a `see how it goes' 22:14 <+iant> KirkMcDonald: ioutil.ReadFile 22:15 < x10> Will try :) 22:15 < pure_x01> dho: but based on the arcitechture it should be possible to predict 22:15 < dho> pure_x01: Sure. Eventually it will get x% faster on OS/Arch combination Y/Z? 22:16 <+iant> pure_x01: real performance is going to hinge on garbage collection performance, and that is work in progress 22:16 < dho> There are certainly GC and runtime improvements that are planned, but as they're rather up in the air (as well as a large number of toher things) it's very speculative 22:17 < pure_x01> dho: yes i see.. i guess performance of go is one of those things that many people are worried about 22:17 < dho> Why? It already performs rather well for things that aren't string ops. 22:18 < dho> It *should* improve more, but I don't think that people should justifiably be worried about it. 22:19 < dho> (and that said about strings, there are roadmap topics for explicit conversions from string to []byte and []int) 22:19 < pure_x01> dho: i have only looked at the benchmark shootout ... 22:19 < quag> pure_x01: given many people are worried about the performance of Go, and the language lends itself to high performance, it is likely Go will get rather fast. 22:21 < pure_x01> guag: i hope so and it probably will .. if it does not it will probably not be a success as a systems language 22:22 -!- Fish-Work [n=Fish@86.65.182.194] has quit [Read error: 104 (Connection reset by peer)] 22:22 -!- Fish-Work [n=Fish@86.65.182.194] has joined #go-nuts 22:23 < quag> pure_x01: put it this way, apart from the GC, what is stopping Go from becoming as fast as C? 22:23 < pure_x01> there are many new languages to learn and spending when you choose one you would like it to be a language that you can really use in the future. Go is a nice language and the performance is the only thing that i worry about. Since it is nativly compiled and a fairly lightweight language i really hope that it will have performance similar to c or c++. hopefully faster than jav 22:23 -!- nathanielk [n=quassel@frigga.summersault.com] has quit [Read error: 104 (Connection reset by peer)] 22:23 < pure_x01> a 22:23 -!- waht2 [n=sgnod@pool-96-250-179-214.nwrknj.fios.verizon.net] has joined #go-nuts 22:23 < waht2> is go better than objective c for mac programming 22:23 < pure_x01> guag: i agree 22:24 -!- cmarcelo [n=cmarcelo@enlightenment/developer/cmarcelo] has quit ["leaving"] 22:24 < quag> waht2: I don't think that go can do GUI stuff or use any of the OSX api. 22:24 < quag> (for gui stuff) 22:24 < quag> waht2: so, probably no :) 22:28 < dho> There are X bindings 22:29 -!- nu-eve [n=chatzill@89.130.223.225] has joined #go-nuts 22:30 -!- Olathe [n=Olathe@173-19-108-228.client.mchsi.com] has quit [Read error: 110 (Connection timed out)] 22:32 < pure_x01> does anybody know if google intends to use go internally ? 22:32 -!- deso [n=deso@x0561a.wh30.tu-dresden.de] has quit [Read error: 104 (Connection reset by peer)] 22:33 <+iant> do we intend to use it internally? yes. do we intend to use only Go and discard all other languages? no. 22:33 < quag> dho: are the X bindings in the repo? 22:33 < pure_x01> iant: that great :-) 22:34 < pure_x01> i mean that is great.. (stupid netbook keyboard) 22:34 < x10> Hey, guys 22:34 < sheb> do you intend to replace python by go ? :) 22:34 < x10> Is there someone here who would like to give me a small tutorial? 22:34 < x10> I want to build a small web app 22:34 < x10> and I have several questions 22:35 < x10> (that should have easy answers for some who knows Go) 22:35 < x10> *someone 22:35 < x10> I'd like to have an http.Conn that takes extra parameters 22:35 < x10> i.e. to have some state 22:37 < pure_x01> sheb: i guess the answer you are going to get is no :-) 22:41 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has quit [Excess Flood] 22:42 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has joined #go-nuts 22:42 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has quit [Excess Flood] 22:42 < x10> hmm 22:42 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has joined #go-nuts 22:42 < x10> var StateData = make(map[string]string) 22:42 < x10> and then on a request: 22:43 < x10> StateData[c.RemoteAddr] = "ASDASDASDASDASD" 22:43 < x10> But how do I check if there's something in StateData[c.RemoteAddr] ? 22:43 < sheb> val, found := StateData[c.RemoteAddr] 22:43 < dho> it's listed in effective go 22:44 < dho> quag: yes, I believe they're in exp/xdg 22:44 < x10> oh, it's listed... 22:44 < x10> sorry :) 22:44 < dho> shortly under that is how to delete from a map too :) 22:45 -!- StDan [n=danielb@124-197-59-227.callplus.net.nz] has joined #go-nuts 22:45 -!- dju_ [n=dju@89-158-236-229.rev.dartybox.com] has quit [Read error: 110 (Connection timed out)] 22:46 -!- pure_x01 [n=pure@c83-248-3-188.bredband.comhem.se] has quit ["good night"] 22:58 -!- jackman|emacs [n=user@75-169-148-106.slkc.qwest.net] has quit ["ERC Version 5.2 (IRC client for Emacs)"] 23:01 -!- vhold [n=vhold@67.114.158.146] has quit [Read error: 60 (Operation timed out)] 23:01 -!- vhold [n=vhold@adsl-67-114-158-146.dsl.sntc01.pacbell.net] has joined #go-nuts 23:05 -!- StDan [n=danielb@124-197-59-227.callplus.net.nz] has quit [Remote closed the connection] 23:11 -!- codedread_ [i=180dd699@gateway/web/freenode/x-ytpfuwiqojblabeb] has joined #go-nuts 23:17 -!- codedread_ [i=180dd699@gateway/web/freenode/x-ytpfuwiqojblabeb] has quit ["Page closed"] 23:19 < kashia_> there is a DotDotDotType but no DotDotDotValue, pity :) 23:20 < kashia_> a FuncType#Call() is impossible with a var-arg function I guess 23:22 < KirkMcDonald> A ... type is just a struct, isn't it? 23:22 < kashia_> I tried throwing stuff at it, but no go :) 23:23 < kashia_> and I can't leave the parameter off, because of a check in the #Call() function 23:24 < kashia_> the implementation looks... icky, so I didn't even try to adapt the check 23:24 < kashia_> no, not icky, rather... scary. 23:25 -!- smcq_ [n=smcq@c-67-164-97-141.hsd1.ca.comcast.net] has joined #go-nuts 23:28 -!- smcq_ [n=smcq@c-67-164-97-141.hsd1.ca.comcast.net] has quit [Read error: 54 (Connection reset by peer)] 23:33 -!- WalterMundt [n=waltermu@twiki/developer/EtherMage] has left #go-nuts [] 23:34 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has quit [Excess Flood] 23:34 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has joined #go-nuts 23:34 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has quit [Excess Flood] 23:35 -!- ShadowIce [n=pyoro@unaffiliated/shadowice-x841044] has quit ["Verlassend"] 23:35 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has joined #go-nuts 23:35 -!- r2p2 [n=billy@v32671.1blu.de] has left #go-nuts [] 23:39 -!- sheb [n=seb@AToulouse-152-1-64-142.w82-125.abo.wanadoo.fr] has quit [] 23:47 < kashia_> even a 'forwarding function' (to catch the `args ...` + reflect.NewValue()) crashes. type mismatch: ... != main.dsigddd_5ยท5 23:47 -!- nu-eve [n=chatzill@89.130.223.225] has quit [Read error: 110 (Connection timed out)] 23:50 -!- elmar_ [n=elmar@188.107.222.242] has quit ["Leaving"] 23:50 -!- nu-eve [n=chatzill@89.130.223.225] has joined #go-nuts 23:51 -!- StDan [n=danielb@124-197-59-227.callplus.net.nz] has joined #go-nuts 23:53 -!- rog [n=rog@78.148.84.113] has quit [] 23:57 -!- rog [n=rog@78.148.84.113] has joined #go-nuts --- Log closed Tue Jan 05 00:00:42 2010