--- Log opened Thu Mar 11 00:00:19 2010 --- Day changed Thu Mar 11 2010 00:00 -!- sw4 [~sw@193.126.212.28] has joined #go-nuts 00:01 -!- mssm [~mssm@ip-95-221-115-22.bb.netbynet.ru] has quit [Ping timeout: 260 seconds] 00:01 -!- sw4 [~sw@193.126.212.28] has quit [Remote host closed the connection] 00:01 -!- Xurix [~Luixsia@AToulouse-254-1-47-189.w81-250.abo.wanadoo.fr] has joined #go-nuts 00:10 -!- nightmouse [~scheiber@c-69-247-77-241.hsd1.nm.comcast.net] has joined #go-nuts 00:14 -!- nocturnal [~nocturnal@83.209.24.174] has quit [Ping timeout: 265 seconds] 00:16 -!- duoduofather1 [~yuliu@219.142.18.218] has joined #go-nuts 00:16 -!- duoduofather [~liuyuyu@219.142.18.218] has quit [Ping timeout: 245 seconds] 00:20 -!- homiziado [~ernestofr@62.169.116.246.rev.optimus.pt] has joined #go-nuts 00:22 -!- duoduofather1 [~yuliu@219.142.18.218] has left #go-nuts [] 00:25 -!- iant [~iant@nat/google/x-aijimrybgolieryl] has quit [Ping timeout: 248 seconds] 00:28 -!- mejja [~user@c-68b6e555.023-82-73746f38.cust.bredbandsbolaget.se] has left #go-nuts [] 00:33 -!- hstimer [~hstimer@70.90.170.37] has quit [Quit: hstimer] 00:34 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined #go-nuts 00:35 < plexdev> http://is.gd/aarEl by [Robert Griesemer] in go/doc/ -- install.html: add section on C tools 00:44 -!- homiziado [~ernestofr@62.169.116.246.rev.optimus.pt] has quit [Ping timeout: 245 seconds] 00:47 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts 00:48 -!- iant [~iant@67.218.106.39] has joined #go-nuts 00:48 -!- mode/#go-nuts [+v iant] by ChanServ 00:50 -!- kota1111 [~kota1111@gw2.kbmj.jp] has joined #go-nuts 00:57 -!- homiziado [~ernestofr@62.169.116.10.rev.optimus.pt] has joined #go-nuts 00:58 -!- scandal [~me@unaffiliated/scandal] has left #go-nuts [] 01:06 < plexdev> http://is.gd/aaxV0 by [Robert Griesemer] in go/src/pkg/math/ -- math package: minor documentation fix 01:12 -!- adu [~ajr@pool-74-96-89-29.washdc.fios.verizon.net] has joined #go-nuts 01:15 -!- homiziado [~ernestofr@62.169.116.10.rev.optimus.pt] has quit [Ping timeout: 245 seconds] 01:17 -!- triplez [~triplez@cm230.kappa1.maxonline.com.sg] has quit [Quit: triplez] 01:18 -!- nutate [~rseymour@cacsag4.usc.edu] has joined #go-nuts 01:18 -!- nutate [~rseymour@cacsag4.usc.edu] has quit [Excess Flood] 01:22 -!- homiziado [~ernestofr@62.169.112.78.rev.optimus.pt] has joined #go-nuts 01:25 -!- nightmouse [~scheiber@c-69-247-77-241.hsd1.nm.comcast.net] has quit [Quit: Ex-Chat] 01:28 < drhodes> can the reflect module extract the field names of an instantiated struct? 01:30 -!- cnduoduo [~liuyuyu@219.142.18.218] has joined #go-nuts 01:35 -!- homiziado [~ernestofr@62.169.112.78.rev.optimus.pt] has quit [Quit: homiziado] 01:46 -!- iant [~iant@67.218.106.39] has quit [Ping timeout: 265 seconds] 01:50 -!- jesusaurus [jesusaur@firefly.cat.pdx.edu] has joined #go-nuts 01:51 -!- defectiv [~clays@75.101.111.19] has quit [Quit: This computer has gone to sleep] 01:55 -!- Innominate [~sirrobin@cpe-076-182-074-143.nc.res.rr.com] has quit [Quit: Innominate] 01:57 -!- monty_hall [~sprague_r@adsl-75-51-127-80.dsl.sgnwmi.sbcglobal.net] has joined #go-nuts 01:58 -!- Inominate [~sirrobin@cpe-076-182-074-143.nc.res.rr.com] has joined #go-nuts 02:14 -!- Inominate [~sirrobin@cpe-076-182-074-143.nc.res.rr.com] has left #go-nuts [] 02:14 -!- Innominate [~sirrobin@cpe-076-182-074-143.nc.res.rr.com] has joined #go-nuts 02:17 -!- duoduofather1 [~yuliu@219.142.18.218] has joined #go-nuts 02:18 -!- duoduofather1 [~yuliu@219.142.18.218] has left #go-nuts [] 02:23 -!- samferry [sam@unaffiliated/samferry] has joined #go-nuts 02:27 -!- hstimer [~hstimer@2002:62ea:197d:0:226:bbff:fe05:dd9b] has joined #go-nuts 02:27 -!- kssreeram [~kssreeram@122.174.71.75] has quit [Ping timeout: 260 seconds] 02:28 < hstimer> when you pass foo(a[0:1]), you are passing a slice right? but when I do a reflect.Typeof(a).String() within foo it reports an array not a slice 02:29 < Eridius> hstimer: a[0:1] will definitely be a slice, but that doesn't mean a isn't an array 02:31 < hstimer> the reflect package indicates that Slice is its own type, which would imply that passing a slice would give you a type of slice, not array 02:31 < Eridius> but you didn't pass a slice. you passed a 02:31 < Eridius> try reflect.Typeof(a[0:1]).String() instead 02:33 < hstimer> syntax error 02:33 -!- Wiz126 [~Wiz126@24.115.240.60.res-cmts.sm.ptd.net] has quit [Ping timeout: 264 seconds] 02:34 < hstimer> my mistake. it parses 02:35 < hstimer> still returns []int 02:37 -!- nettok [~netto@200.119.157.15] has joined #go-nuts 02:37 < hstimer> apparently slice's are just a figment of everyone's imagination 02:38 < Eridius> hstimer: []int is a slice type 02:38 < Eridius> [3]int would be an array 02:38 -!- Wiz126 [~Wiz126@24.115.240.60.res-cmts.sm.ptd.net] has joined #go-nuts 02:39 < hstimer> ah... so when does reflect.SliceType make an appearance? 02:39 < Eridius> hstimer: I assume that's what reflect.Typeof() is returning. 02:40 < Eridius> you're calling String() on it, and that's presumably implemented for SliceType to return the string that denotes the underlying element type 02:40 < Eridius> e.g. []int 02:41 < hstimer> you are right 02:41 < hstimer> *reflect.SliceType 02:42 < hstimer> much thanks for the clarification 02:42 < Eridius> np 02:51 -!- hevalbaranov [~hevalbara@88.247.204.111] has joined #go-nuts 02:54 -!- aho [~nya@f051180154.adsl.alicedsl.de] has quit [Quit: EXEC_over.METHOD_SUBLIMATION] 02:55 < hstimer> how do you test against a type without 1) using the fancy switch/type thang, 2) creating an instance of the type so that you can call Typeof? 02:55 < hstimer> this wont compile: 02:55 < hstimer> isTrue(reflect.Typeof(reflect.SliceType) == reflect.Typeof(a) 02:55 < hstimer> reflect.SliceType is not an expression 02:58 < hstimer> I guess go doesn't have class classes 03:01 < KirkMcDonald> t, ok := reflect.Typeof(a).(*reflect.SliceType) 03:03 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has quit [Quit: ( www.nnscript.com :: NoNameScript 4.21 :: www.esnation.com )] 03:04 -!- mikespook [~mikespook@219.136.168.193] has joined #go-nuts 03:08 < hstimer> well that works; no idea why, but thank you 03:08 < KirkMcDonald> hstimer: It's a type assertion. 03:09 < hstimer> yes, I use them 03:09 < hstimer> oh, never mind 03:09 < KirkMcDonald> reflect.Typeof returns something with the Type interface. 03:09 < KirkMcDonald> *reflect.SliceType is one of the types which implements this interface. 03:11 < hstimer> I'm just used to x.(T)... never occurred to me there was another way to do that 03:12 < hstimer> very cool.... go has yet again cleverly avoided needing class classes 03:12 < hstimer> thanks for the tutorial 03:17 -!- felipe [~felipe@my.nada.kth.se] has quit [Ping timeout: 276 seconds] 03:24 -!- triplez [~triplez@bb116-14-34-186.singnet.com.sg] has joined #go-nuts 03:25 -!- Venom_X [~pjacobs@dsl253-084-221.hou1.dsl.speakeasy.net] has joined #go-nuts 03:27 -!- Venom_X [~pjacobs@dsl253-084-221.hou1.dsl.speakeasy.net] has quit [Client Quit] 03:34 -!- nettok_ [~netto@200.119.157.15] has joined #go-nuts 03:34 -!- carllerche [~carllerch@208.87.61.160] has joined #go-nuts 03:37 -!- nettok [~netto@200.119.157.15] has quit [Ping timeout: 256 seconds] 03:37 -!- path[l] [UPP@120.138.102.34] has quit [Quit: path[l]] 03:39 -!- yebyen [~yebyen@harrydavis.csh.rit.edu] has joined #go-nuts 03:39 < yebyen> any RIT students in the house? 03:40 -!- valentingolev [~valentin@178.176.6.77] has joined #go-nuts 03:40 -!- yatoo [~marcus@host86-156-158-180.range86-156.btcentralplus.com] has quit [Ping timeout: 260 seconds] 03:44 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Ping timeout: 248 seconds] 03:46 -!- triplez [~triplez@bb116-14-34-186.singnet.com.sg] has quit [Ping timeout: 240 seconds] 03:51 -!- triplez [~triplez@bb116-14-34-186.singnet.com.sg] has joined #go-nuts 03:55 -!- path[l] [UPP@120.138.102.34] has joined #go-nuts 04:00 -!- _skyfive [~skyfive@173-11-110-86-SFBA.hfc.comcastbusiness.net] has quit [Quit: Leaving...] 04:02 -!- stalled_ [~stalled@unaffiliated/stalled] has quit [Ping timeout: 246 seconds] 04:04 -!- powerje [~powerje@2002:4b31:11ce:0:213:e8ff:feaa:ae2b] has joined #go-nuts 04:12 -!- powerje [~powerje@2002:4b31:11ce:0:213:e8ff:feaa:ae2b] has quit [Quit: exit] 04:14 -!- stalled [~stalled@unaffiliated/stalled] has joined #go-nuts 04:22 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit: This computer has gone to sleep] 04:23 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts 04:23 -!- mode/#go-nuts [+v iant] by ChanServ 04:24 -!- Gracenotes [~person@wikipedia/Gracenotes] has joined #go-nuts 04:28 -!- nettok_ [~netto@200.119.157.15] has quit [Quit: Ex-Chat] 04:28 -!- nettok [~netto@200.119.157.15] has joined #go-nuts 04:37 -!- Wiz126 [~Wiz126@24.115.240.60.res-cmts.sm.ptd.net] has quit [Ping timeout: 260 seconds] 04:38 -!- Wiz126 [~Wiz126@24.115.240.60.res-cmts.sm.ptd.net] has joined #go-nuts 04:38 -!- nettok [~netto@200.119.157.15] has quit [Ping timeout: 265 seconds] 04:39 < plexdev> http://is.gd/abcR6 by [Ian Lance Taylor] in go/doc/ -- Revert previous change: complexN only converts to complexN. 04:41 -!- kssreeram [~kssreeram@122.165.6.245] has joined #go-nuts 04:45 -!- triplez [~triplez@bb116-14-34-186.singnet.com.sg] has quit [Read error: Connection reset by peer] 04:46 -!- triplez [~triplez@bb116-14-34-186.singnet.com.sg] has joined #go-nuts 04:46 -!- defectiv [~clays@c-24-5-65-40.hsd1.ca.comcast.net] has joined #go-nuts 04:48 -!- kssreeram_ [~kssreeram@122.165.6.245] has joined #go-nuts 04:51 -!- kssreeram [~kssreeram@122.165.6.245] has quit [Ping timeout: 265 seconds] 04:54 -!- hevalbaranov [~hevalbara@88.247.204.111] has quit [Read error: Connection reset by peer] 04:54 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts 04:56 -!- nettok [~netto@200.119.157.15] has joined #go-nuts 04:58 -!- rhelmer [~rhelmer@adsl-69-107-75-165.dsl.pltn13.pacbell.net] has joined #go-nuts 04:59 -!- defectiv [~clays@c-24-5-65-40.hsd1.ca.comcast.net] has quit [Quit: This computer has gone to sleep] 05:04 < jesusaurus> so... theres a typo in the example hello world source on the website 05:05 < jesusaurus> http://golang.org/doc/go_tutorial.html : the sample code line 07: import fmt "fmt" 05:05 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has quit [Quit: Leaving] 05:06 < jesusaurus> that should be: import "fmt" 05:07 < Archwyrm> jesusaurus: Should compile fine as is. The line renames the import, but renames it to what it already was, so kind of pointless. 05:07 < jesusaurus> huh, it wouldnt compile for me like that 05:07 -!- NoPyGod [~no@222-154-187-184.jetstream.xtra.co.nz] has joined #go-nuts 05:07 < jesusaurus> im using 8g on linux 05:07 < Archwyrm> And probably not the best example of import for the first time. 05:08 < Archwyrm> Working just fine here with the same. 05:08 < Archwyrm> Are you using tip or what? 05:08 < jesusaurus> why would you want to rename an import? 05:09 < Archwyrm> To avoid namespace clashes. 05:09 < jesusaurus> i dont know what tip is, i just compiled my first ever go program 05:10 < Archwyrm> jesusaurus: It's the head revision of the hg repo. 05:10 < Archwyrm> Did you install the release branch? 05:10 -!- b00m_chef [~watr@d64-180-45-230.bchsia.telus.net] has quit [Ping timeout: 245 seconds] 05:10 < Archwyrm> Oh, and you can also do this btw: import . "fmt" 05:10 < jesusaurus> no, i didnt 05:10 < Archwyrm> Then you can just write Printf(...) 05:11 < jesusaurus> oh, cool 05:12 < jesusaurus> can you import multiple imports like that? will they share namespace? 05:12 < Archwyrm> Well, if it still isn't working for you verbatim, then I'd try updating, hg pull && hg update 05:12 < jesusaurus> as long as there are no conflicting references? 05:12 < Archwyrm> Or update to release, hg update release 05:12 < jesusaurus> ok, will do 05:12 < Archwyrm> I assume so. 05:12 < Archwyrm> (you have to run all.bash again, of course) 05:14 < Archwyrm> It is probably a better habit to use the namespaces for anything serious though. Most are quite short. 05:17 -!- duoduofather1 [~yuliu@219.142.18.218] has joined #go-nuts 05:19 < kmeyer> Archwyrm: does the 'import . "pkg"' syntax give you access to the private variables/functions/struct members as well? 05:20 < Archwyrm> kmeyer: I doubt it. 05:23 < kmeyer> I suppose it'd be a hack anyways 05:23 < kmeyer> just curious. *shrug* 05:25 -!- NoPyGod [~no@222-154-187-184.jetstream.xtra.co.nz] has quit [Ping timeout: 252 seconds] 05:25 < Archwyrm> Possibly there is a way to get at that stuff. Some languages let you bend the rules. 05:26 < Archwyrm> But generally private things are so for a good reason. 05:28 < KirkMcDonald> Was that a subtle hint that I should put my pants back on? 05:29 < Archwyrm> if KirkMcDonald.PantsOff; fmt.Println("Yes") 05:30 < KirkMcDonald> So if I am reading this code correctly, and I think that I am, people will agree with me as long as I am not wearing pants? 05:30 < kmeyer> well, it doesn't compile here 05:31 < Archwyrm> KirkMcDonald: Well played. =P 05:31 < kmeyer> I think (s)he meant: if KirkMcDonald.PantsOff { fmt.Println("Put them back on :)") } 05:31 < kmeyer> ;) 05:32 < Archwyrm> kmeyer: Ah yes.. I can't write code without syntax highlighting. At least if it doesn't resemble Python. ;x 05:32 -!- nnark [~45eb8eec@gateway/web/freenode/x-zhweljvyreqhzhar] has joined #go-nuts 05:33 < kmeyer> Archwyrm: heh :) 05:36 -!- ak2 [~ak2@c-24-6-88-154.hsd1.ca.comcast.net] has joined #go-nuts 05:39 -!- droid001 [~g1@p4FDC9116.dip.t-dialin.net] has quit [Ping timeout: 265 seconds] 05:41 -!- nocturna1 [~nocturnal@83.209.24.174] has joined #go-nuts 05:44 -!- rhelmer [~rhelmer@adsl-69-107-75-165.dsl.pltn13.pacbell.net] has quit [Read error: No route to host] 05:46 -!- rhelmer [~rhelmer@adsl-69-107-75-165.dsl.pltn13.pacbell.net] has joined #go-nuts 05:47 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts 05:48 < nnark> are there any resources other than golang.org that can expose me to the language a bit more? 05:49 < Archwyrm> nnark: There's http://go-lang.cat-v.org/ 05:52 < nnark> Archwyrm: thanks, it looks like it's going to help. but i have some very basic questions after looking at the tutorial examples... like, how do you read two arguments from command line(which are file names), open the file and make it available to the app 05:53 < nnark> there were a few things going on in the tutorial that didn't explicitly explain the syntax 05:54 < Archwyrm> nnark: IIRC, these subjects are covered in the tutorial. If something in the tutorial doesn't make sense you can certainly ask in here. 05:54 < rsaarelm> You can get at the command line arguments from os.Args 05:55 < rsaarelm> And for something that actually sets options at command line instead of just reading two file names, there's heavier machinery at the flag package. 05:56 < rsaarelm> io/ioutil.ReadFile is a simple way to read an entire file. 05:56 < Archwyrm> Ah, it was the flag package that was in the tutorial. 05:56 < nnark> rsaarelm: yes, that's one of the things i had a question about: flags. although Archwyrm's link has a pdf that is qite useful 05:57 < nnark> quite* 05:58 < nnark> is there a built-in function that can take something like a file or string, parse it, and store each word in an array element? 05:58 < nnark> the latter part is obviously not part of the built-in i'm asking about. 06:01 -!- carllerche [~carllerch@208.87.61.160] has quit [Quit: carllerche] 06:02 -!- syd_ [~sydcogs@180.92.192.92] has quit [Ping timeout: 252 seconds] 06:04 < Archwyrm> nnark: I don't know of anything that specifically does that, but you could probably use http://golang.org/pkg/bufio/#Reader.ReadString 06:04 < Archwyrm> Just give space as the delimeter rather than newline. 06:07 -!- u4ia [~weechat@quepasa.solcon.nl] has quit [Read error: Connection reset by peer] 06:07 -!- u4ia [~weechat@quepasa.solcon.nl] has joined #go-nuts 06:11 -!- duoduofather1 [~yuliu@219.142.18.218] has left #go-nuts [] 06:13 < nnark> Archwyrm: thanks for being patient and helpful. the larger problem i'm trying to solve is implementing the unix command tr -cs 'A-Za-z' ['\n*'] . 06:14 < nnark> what i really need to do is read a ton of words and eliminate duplicates and words not containing A-Z a-z 06:15 < Archwyrm> nnark: You'll definitely want to use the regexp package then. ;) 06:16 -!- General13372 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has joined #go-nuts 06:18 < nnark> ah, looking at http://golang.org/pkg/regexp/ are the declarations for concat, closure, term part of using the regexp package? 06:18 < nnark> or are they declared 06:19 < nnark> nm... i see how it's used 06:19 -!- General1337 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit [Ping timeout: 264 seconds] 06:19 < nnark> that's actually a fantastic way of doing it 06:19 < nnark> it reminds me of grammars and bnf 06:19 < Archwyrm> nnark: At the top of the page? That's just telling you regex syntax. 06:19 -!- kaib [~kaib@cs78242103.pp.htv.fi] has joined #go-nuts 06:19 -!- mode/#go-nuts [+v kaib] by ChanServ 06:19 < Archwyrm> *the regex syntax 06:20 -!- syd_ [~sydcogs@180.92.192.92] has joined #go-nuts 06:21 -!- Wi11 [~william@dhcp-0-14-bf-38-80-9c.cpe.powergate.ca] has quit [Ping timeout: 260 seconds] 06:22 < nnark> ok, so that has nothing to do with the code i write. just an explanation of how to structure the regexp? 06:22 -!- Wi11 [~william@dhcp-0-14-bf-38-80-9c.cpe.powergate.ca] has joined #go-nuts 06:23 < Archwyrm> nnark: Yeah 06:28 -!- kaib [~kaib@cs78242103.pp.htv.fi] has quit [Quit: kaib] 06:30 -!- adu [~ajr@pool-74-96-89-29.washdc.fios.verizon.net] has quit [Quit: adu] 06:31 -!- Kashia [~Kashia@port-92-200-101-16.dynamic.qsc.de] has quit [Ping timeout: 258 seconds] 06:34 < KirkMcDonald> nnark: Notice that this is the entirety of the regex syntax. These are very simple regexes. 06:36 -!- Kashia [~Kashia@port-92-200-101-16.dynamic.qsc.de] has joined #go-nuts 06:36 < nnark> KirkMcDonald: right, I think I only need [A-Za-z]+ ? 06:37 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:21e8:2f4e:c6b7:f8e5] has joined #go-nuts 06:39 < nnark> ah... more like ([A-Za-z]+) ? 06:40 -!- franksalim [~frank@adsl-75-61-84-181.dsl.pltn13.sbcglobal.net] has quit [Quit: Ex-Chat] 06:40 -!- b00m_chef [~watr@d64-180-45-230.bchsia.telus.net] has joined #go-nuts 06:50 -!- Skall [~Simon@host-94-101-5-193.igua.fi] has joined #go-nuts 06:53 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts 06:57 -!- TR2N [email@89.180.223.61] has left #go-nuts [] 06:57 -!- willwh [~quassel@unaffiliated/willskills] has quit [Remote host closed the connection] 07:15 -!- nnark [~45eb8eec@gateway/web/freenode/x-zhweljvyreqhzhar] has quit [Quit: Page closed] 07:19 -!- Bombe [~droden@weltgehirnmaschine.de] has joined #go-nuts 07:24 -!- trickie [~trickie@94.100.112.225] has joined #go-nuts 07:24 -!- trickie [~trickie@94.100.112.225] has quit [Client Quit] 07:24 -!- trickie [~trickie@94.100.112.225] has joined #go-nuts 07:32 -!- nettok [~netto@200.119.157.15] has quit [Quit: Ex-Chat] 07:32 -!- dju [dju@89-158-203-183.rev.dartybox.com] has quit [Ping timeout: 256 seconds] 07:35 -!- wrtp [~rog@89.240.68.57] has joined #go-nuts 07:36 -!- kaib [~kaib@cs78242103.pp.htv.fi] has joined #go-nuts 07:36 -!- mode/#go-nuts [+v kaib] by ChanServ 07:37 -!- path[l] [UPP@120.138.102.34] has quit [Quit: path[l]] 07:37 -!- kaib [~kaib@cs78242103.pp.htv.fi] has quit [Client Quit] 07:48 -!- Skall [~Simon@host-94-101-5-193.igua.fi] has quit [Quit: Lost terminal] 07:51 -!- m1ndwarp [~m1ndwarp@xdsl-78-35-139-133.netcologne.de] has joined #go-nuts 07:55 -!- Bombe [~droden@weltgehirnmaschine.de] has quit [Changing host] 07:55 -!- Bombe [~droden@freenet/developer/Bombe] has joined #go-nuts 07:55 < Bombe> Is it normal that a compiled go program that does almost nothing is almost 700K in size? (And grows to 2.3M when it is stripped? :) 07:56 -!- path[l] [~path@122.182.0.38] has joined #go-nuts 07:57 < anticw> yes 07:57 < Bombe> Ah, okay. I assume those kind of optimations are not very high on anybody's TODO list. 07:57 < Bombe> I'll continue tinkering then. :) 07:57 < anticw> the runtime isn't shared 07:57 < anticw> so binaries are large 07:58 < anticw> stripped binaries also tend to break 07:59 < Bombe> Right. Didn't notice that, I was too stunned by the file's growth after stripping. :) 08:01 < anticw> compare with gcc -static ; it's not so bad 08:02 < Bombe> True. :) 08:03 -!- felipe [~felipe@my.nada.kth.se] has joined #go-nuts 08:04 -!- path[l] [~path@122.182.0.38] has quit [Quit: path[l]] 08:04 -!- path[l] [~path@59.162.86.164] has joined #go-nuts 08:05 -!- nf [~nf@124-168-181-245.dyn.iinet.net.au] has quit [Read error: Network is unreachable] 08:05 -!- nf [~nf@203-158-49-135.dyn.iinet.net.au] has joined #go-nuts 08:06 -!- asmo_ [~asmo@c83-248-32-75.bredband.comhem.se] has joined #go-nuts 08:10 -!- valentingolev [~valentin@178.176.6.77] has quit [Ping timeout: 264 seconds] 08:11 -!- kaib [~kaib@vallila-gw.hupnet.helsinki.fi] has joined #go-nuts 08:11 -!- mode/#go-nuts [+v kaib] by ChanServ 08:19 -!- b00m_chef [~watr@d64-180-45-230.bchsia.telus.net] has quit [Ping timeout: 246 seconds] 08:23 -!- General13372 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit [Read error: Connection reset by peer] 08:23 -!- mssm [~mssm@ip-95-221-115-22.bb.netbynet.ru] has joined #go-nuts 08:24 -!- General1337 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has joined #go-nuts 08:36 -!- ak2 [~ak2@c-24-6-88-154.hsd1.ca.comcast.net] has quit [Ping timeout: 248 seconds] 08:40 -!- ak2 [~ak2@c-24-6-88-154.hsd1.ca.comcast.net] has joined #go-nuts 08:43 -!- droid001 [~g1@p4FDC92C2.dip.t-dialin.net] has joined #go-nuts 08:50 < Bombe> directory := os.Open(".", os.O_RDONLY, 0); entries := directory.Readdir(-1); for _, entry := range entries { fmt.Printf("entry: %s\n", entry.Name() } 08:51 < Bombe> Why does the compiler complain about entry being a string? According to the documentation entries should be a []Dir. 08:53 < cbeck> Bombe: What is the error message? 08:53 < Bombe> scan.go:18: cannot call non-function entry.Name (type string) 08:53 < Bombe> That’s the fmt.Printf thingy. 08:54 < cbeck> Bombe: Name is a filed, not a method 08:54 < cbeck> *field 08:54 < Bombe> Oh. 08:54 < Bombe> Okay. 08:55 < Bombe> Confusing. In os.File it's a method, in os.Dir it's a field. 08:55 < Bombe> Well, thanks. :) 08:56 < cbeck> Np, I agree, that is confusing 08:58 -!- kaigan|work [~kaigan@c-8290e255.1411-10-64736c14.cust.bredbandsbolaget.se] has joined #go-nuts 08:59 < Archwyrm> If there isn't a ticket about that, there probably should be. 09:02 -!- robot12 [~robot12@robot12.kgts.ru] has joined #go-nuts 09:10 -!- tibshoot [~tibshoot@linagora-230-146.pr0.nerim.net] has joined #go-nuts 09:13 -!- ct529 [~quassel@77-44-78-159.xdsl.murphx.net] has joined #go-nuts 09:15 -!- ampleyfly_ [ampleyfly@2002:55e5:8e6b::55e5:8e6b] has joined #go-nuts 09:16 < Bombe> Yay! I broke it: throw: all goroutines are asleep - deadlock! 09:16 -!- asmo_ [~asmo@c83-248-32-75.bredband.comhem.se] has quit [Ping timeout: 248 seconds] 09:17 -!- asmo [~asmo@c83-248-32-75.bredband.comhem.se] has joined #go-nuts 09:17 -!- fuzzybyte [~fuzzybyte@a47.org] has quit [Ping timeout: 248 seconds] 09:18 -!- Xeon [~chatzilla@118.126.12.54] has joined #go-nuts 09:18 -!- ampleyfly [ampleyfly@c-6b8ee555.09-36-6c6b7013.cust.bredbandsbolaget.se] has quit [Ping timeout: 248 seconds] 09:21 < cbeck> I love that 09:24 -!- NoPyGod [~no@222-154-187-184.jetstream.xtra.co.nz] has joined #go-nuts 09:26 -!- fuzzybyte [~fuzzybyte@a47.org] has joined #go-nuts 09:26 < kmeyer> Bombe: oh, it actually gives an error message now instead of dumping stack traces for all of your blocked goroutines? 09:27 -!- OpenSpace [~ja@109.93.137.117] has quit [Ping timeout: 265 seconds] 09:27 -!- Kashia [~Kashia@port-92-200-101-16.dynamic.qsc.de] has quit [Quit: This computer has gone to sleep] 09:27 < Bombe> kmeyer, I think it also gave me stack traces, I can't reproduce it though, I already fixed it. :) 09:28 < kmeyer> hehe 09:29 < kmeyer> Yeah, stack traces are super useful when tens of thousands of goroutines are opened simultaneously ;) 09:29 -!- crashR [~crasher@codextreme.pck.nerim.net] has quit [Remote host closed the connection] 09:29 < Bombe> Yeah, "it's not our problem that you can't handle 6000 threads." :) 09:30 < Bombe> But after this hour of evaluation I have to say that I kind of like Go. 09:30 -!- crashR [~crasher@codextreme.pck.nerim.net] has joined #go-nuts 09:30 < Bombe> In this regard it fared way better than python and ruby. 09:33 < kmeyer> in comparison with? 09:33 < kmeyer> (I'm assuming you're coming from a strong familiarity with another language?) 09:33 < kmeyer> (just curious ;)) 09:34 < Bombe> After an hour of toying around with it I like Go far more than I liked python and ruby after their first hour. 09:34 < Bombe> My programming language of choice is still Java, though. 09:36 < kmeyer> Ah, ok 09:37 < kmeyer> I would think the whole returning errors thing would turn you off 09:37 < kmeyer> :) 09:37 < cbeck> Bleargh 09:37 < cbeck> Coming from java/c++, stack unwinding is the devil 09:37 < Bombe> kmeyer, multiple return arguments take some getting used to, yes. :) 09:37 < cbeck> Moreso in c++ of course 09:38 < kmeyer> totally 09:38 < kmeyer> I really disliked the throw/catch model of java 09:38 < kmeyer> and to some extent ruby/python 09:39 < Bombe> I'm still a fan of it because I like to handle errors in the appropriate place and not where they occur. 09:40 < cbeck> The number of catch (Exception E) {;} blocks I've run across in my time makes the mind boggle 09:40 < Bombe> That is bad code and should not be taken into consideration. :) 09:41 < kmeyer> the problem is that the java stdlib's exception hierarchy is horribly organized 09:41 < kmeyer> well, one problem 09:41 < cbeck> Bombe: Agreed, I just like my flow of control to be a bit more transparent, so the result, ok := ... if ok { model makes me happy 09:41 < Bombe> Yes, it is. 09:43 < kmeyer> One could sort of implement tuples in Go using closures and multiple returns... 09:43 < kmeyer> Kind of a kludge, though 09:46 -!- OpenSpace [~ja@93.87.165.197] has joined #go-nuts 09:47 < kmeyer> I kind of want to make a Go REPL loop (the existing project seems broken atm) 09:48 < kmeyer> Unfortunately, I've got finals next week... 09:54 -!- ikaros [~ikaros@f051157161.adsl.alicedsl.de] has joined #go-nuts 10:01 -!- alkavan__ [~alkavan@IGLD-80-230-211-253.inter.net.il] has joined #go-nuts 10:01 -!- ct529 [~quassel@77-44-78-159.xdsl.murphx.net] has quit [Remote host closed the connection] 10:05 -!- mikespook [~mikespook@219.136.168.193] has quit [Quit: Leaving.] 10:18 -!- kaib [~kaib@vallila-gw.hupnet.helsinki.fi] has quit [Quit: kaib] 10:23 -!- mssm [~mssm@ip-95-221-115-22.bb.netbynet.ru] has quit [Ping timeout: 240 seconds] 10:24 -!- NoPyGod [~no@222-154-187-184.jetstream.xtra.co.nz] has quit [Ping timeout: 252 seconds] 10:32 -!- ak2 [~ak2@c-24-6-88-154.hsd1.ca.comcast.net] has quit [Quit: ak2] 10:37 -!- mssm [~mssm@ip-95-221-97-117.bb.netbynet.ru] has joined #go-nuts 10:38 -!- ct529 [~quassel@77-44-78-159.xdsl.murphx.net] has joined #go-nuts 10:40 -!- ikaros [~ikaros@f051157161.adsl.alicedsl.de] has quit [Quit: Leave the magic to Houdini] 10:40 -!- triplez [~triplez@bb116-14-34-186.singnet.com.sg] has quit [Quit: triplez] 11:02 -!- triplez [~triplez@cm230.kappa1.maxonline.com.sg] has joined #go-nuts 11:05 -!- fwiffo [~fwiffo@unaffiliated/fwiffo] has joined #go-nuts 11:08 -!- sw4 [~sw@193.126.212.28] has joined #go-nuts 11:13 -!- kota1111 [~kota1111@gw2.kbmj.jp] has quit [Quit: Leaving...] 11:20 -!- robot12 [~robot12@robot12.kgts.ru] has left #go-nuts [] 11:21 -!- kaib [~kaib@vallila-gw.hupnet.helsinki.fi] has joined #go-nuts 11:22 -!- mode/#go-nuts [+v kaib] by ChanServ 11:38 -!- yatoo [~marcus@host86-156-158-180.range86-156.btcentralplus.com] has joined #go-nuts 11:42 -!- path[l] [~path@59.162.86.164] has quit [Quit: path[l]] 11:42 -!- path[l] [~path@122.182.0.38] has joined #go-nuts 11:59 -!- afurlan [~afurlan@scorpion.mps.com.br] has joined #go-nuts 12:11 -!- quag [~quag@121-98-81-61.bitstream.orcon.net.nz] has quit [Ping timeout: 246 seconds] 12:27 -!- jham [~lynucs@fail.fail2fail.com] has left #go-nuts [] 12:39 -!- Amaranth [~travis@ubuntu/member/Amaranth] has quit [Read error: Operation timed out] 12:39 -!- Amaranth [~travis@ubuntu/member/Amaranth] has joined #go-nuts 12:40 -!- smw [~stephen@pool-96-232-88-231.nycmny.fios.verizon.net] has quit [Remote host closed the connection] 12:51 -!- alkavan__ [~alkavan@IGLD-80-230-211-253.inter.net.il] has quit [Read error: Connection reset by peer] 12:51 -!- alkavan__ [~alkavan@77.124.234.33] has joined #go-nuts 12:57 -!- m1ndwarp [~m1ndwarp@xdsl-78-35-139-133.netcologne.de] has quit [Quit: m1ndwarp] 12:58 -!- awidegreen_ [~quassel@p5B063549.dip.t-dialin.net] has joined #go-nuts 13:00 -!- awidegreen [~quassel@p5B060DF0.dip.t-dialin.net] has quit [Ping timeout: 245 seconds] 13:10 -!- crakrjak [~merc@rrcs-70-62-156-154.central.biz.rr.com] has quit [Remote host closed the connection] 13:11 -!- asmo [~asmo@c83-248-32-75.bredband.comhem.se] has quit [Remote host closed the connection] 13:13 -!- Amaranth [~travis@ubuntu/member/Amaranth] has quit [Read error: Operation timed out] 13:13 -!- Amaranth [~travis@ubuntu/member/Amaranth] has joined #go-nuts 13:14 -!- analogue [~analogue@toulouse.jfg-networks.net] has quit [Read error: Connection reset by peer] 13:17 -!- crashR [~crasher@codextreme.pck.nerim.net] has quit [Quit: Leaving.] 13:18 -!- analogue [~analogue@toulouse.jfg-networks.net] has joined #go-nuts 13:21 -!- crashR [~crasher@codextreme.pck.nerim.net] has joined #go-nuts 13:21 -!- kssreeram [~kssreeram@122.165.6.245] has quit [Quit: kssreeram] 13:36 -!- alkavan__ [~alkavan@77.124.234.33] has quit [Ping timeout: 260 seconds] 13:41 -!- mssm [~mssm@ip-95-221-97-117.bb.netbynet.ru] has quit [Read error: Operation timed out] 13:45 -!- asmo [~asmo@c-f6c5e055.1155-1-64736c11.cust.bredbandsbolaget.se] has joined #go-nuts 13:49 -!- timepilot [~timepilot@c-24-91-16-174.hsd1.ma.comcast.net] has joined #go-nuts 13:51 -!- ct529 [~quassel@77-44-78-159.xdsl.murphx.net] has quit [Read error: Connection reset by peer] 13:52 -!- ct529 [~quassel@77-44-78-159.xdsl.murphx.net] has joined #go-nuts 13:59 -!- OpenSpace [~ja@93.87.165.197] has quit [Remote host closed the connection] 14:05 -!- kaib [~kaib@vallila-gw.hupnet.helsinki.fi] has quit [Quit: kaib] 14:05 -!- OpenSpace [~ja@79.101.83.166] has joined #go-nuts 14:07 -!- mtd [~martin@ops-13.xades.com] has joined #go-nuts 14:21 -!- mssm [~mssm@ip-95-221-77-117.bb.netbynet.ru] has joined #go-nuts 14:24 -!- rhelmer [~rhelmer@adsl-69-107-75-165.dsl.pltn13.pacbell.net] has quit [Ping timeout: 265 seconds] 14:35 -!- g0bl1n [~anonymous@a213-22-200-76.cpe.netcabo.pt] has joined #go-nuts 14:35 -!- timepilot [~timepilot@c-24-91-16-174.hsd1.ma.comcast.net] has quit [Quit: WeeChat 0.3.0] 14:41 -!- ericvh [~ericvh@32.97.110.63] has joined #go-nuts 14:44 -!- ni| [~james@dontpanic.union.edu] has joined #go-nuts 15:01 -!- mssm [~mssm@ip-95-221-77-117.bb.netbynet.ru] has quit [Ping timeout: 265 seconds] 15:13 -!- lmoura [~lauromour@189.2.128.130] has joined #go-nuts 15:13 -!- mssm [~mssm@ip-95-221-90-130.bb.netbynet.ru] has joined #go-nuts 15:20 -!- sudi [~chatzilla@dslb-084-056-015-010.pools.arcor-ip.net] has joined #go-nuts 15:23 -!- mssm [~mssm@ip-95-221-90-130.bb.netbynet.ru] has quit [Ping timeout: 245 seconds] 15:33 -!- Xeon [~chatzilla@118.126.12.54] has quit [Max SendQ exceeded] 15:34 -!- alkavan__ [~alkavan@IGLD-84-228-107-218.inter.net.il] has joined #go-nuts 15:35 -!- Xeon [~chatzilla@118.126.12.54] has joined #go-nuts 15:38 -!- mssm [~mssm@ip-95-221-127-32.bb.netbynet.ru] has joined #go-nuts 15:38 -!- ampleyfly__ [ampleyfly@c-6b8ee555.09-36-6c6b7013.cust.bredbandsbolaget.se] has joined #go-nuts 15:42 -!- kssreeram [~kssreeram@122.174.71.75] has joined #go-nuts 15:42 -!- ampleyfly_ [ampleyfly@2002:55e5:8e6b::55e5:8e6b] has quit [Ping timeout: 260 seconds] 15:44 -!- hstimer [~hstimer@2002:62ea:197d:0:226:bbff:fe05:dd9b] has quit [Quit: hstimer] 15:51 -!- fusion44 [~quassel@p5B286E61.dip.t-dialin.net] has joined #go-nuts 16:04 -!- kaigan|work [~kaigan@c-8290e255.1411-10-64736c14.cust.bredbandsbolaget.se] has quit [Quit: kaigan|work] 16:08 -!- path[l] [~path@122.182.0.38] has quit [Quit: path[l]] 16:08 -!- path[l] [~path@122.182.0.38] has joined #go-nuts 16:11 -!- fwiffo_ [~fwiffo@189.115.37.247] has joined #go-nuts 16:12 -!- DerHorst [~Horst@e176110204.adsl.alicedsl.de] has joined #go-nuts 16:14 -!- fwiffo [~fwiffo@unaffiliated/fwiffo] has quit [Ping timeout: 240 seconds] 16:16 -!- fwiffo_ [~fwiffo@189.115.37.247] has left #go-nuts [] 16:17 -!- defectiv [~clays@c-24-5-65-40.hsd1.ca.comcast.net] has joined #go-nuts 16:19 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Quit: Leaving.] 16:27 -!- TR2N [email@89.180.178.15] has joined #go-nuts 16:27 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has joined #go-nuts 16:27 < skelterjohn> morning 16:28 < skelterjohn> what's the state of go generics these days? any progress? 16:29 -!- trickie [~trickie@94.100.112.225] has quit [Ping timeout: 265 seconds] 16:29 -!- ShadowIce` [pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts 16:32 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Ping timeout: 246 seconds] 16:35 < exch> as far as I know it's still limited to some preprocessor attempts by community members 16:35 < exch> including myself 16:38 < exch> handy for limited cases, but any and all trace of it is gone once a program/package is compiled 16:38 < skelterjohn> yeah, doesn't seem like the right solution to me 16:40 -!- hstimer [~hstimer@2002:465a:aa25:0:226:bbff:fe05:dd9b] has joined #go-nuts 16:40 < skelterjohn> it's especially frustrating because it seems to be "sortof" there, in maps and chans 16:40 < exch> interfaces can take a way a lot of the pain, but not all of it 16:41 < skelterjohn> static type checking is what's missing, for me 16:41 < exch> I find it lacking most notably when dealing with lists (slices) of generic types 16:43 < skelterjohn> i find it hard to get started on a serious go project without the use of generics 16:43 < skelterjohn> for instance, my field is machine learning 16:44 < skelterjohn> it'd be nice to have some libraries for distributions etc, but having distributions over "type Box interface{}" isn't satisfying 16:44 < exch> We can only hope they'll consider adding generics at some point 16:47 -!- defectiv [~clays@c-24-5-65-40.hsd1.ca.comcast.net] has quit [Quit: This computer has gone to sleep] 16:47 < skelterjohn> it'd also be nice to make gomatrix use templates 16:47 < skelterjohn> which would allow it to use the complex type 16:49 -!- DerHorst [~Horst@e176110204.adsl.alicedsl.de] has quit [Quit: Verlassend] 16:51 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has quit [Quit: skelterjohn] 17:00 -!- ikke [~ikkibr@unaffiliated/ikkebr] has joined #go-nuts 17:02 -!- jalmeida [~jalmeida@c9340a2e.virtua.com.br] has joined #go-nuts 17:11 -!- Venom_X [~pjacobs@adsl-99-3-159-249.dsl.hstntx.sbcglobal.net] has joined #go-nuts 17:16 -!- TMKCodes [~toni@bbwirelessgw2-fee1dc00-62.dhcp.inet.fi] has quit [Ping timeout: 256 seconds] 17:20 -!- TMKCodes [~toni@bbwirelessgw2-fee1dc00-62.dhcp.inet.fi] has joined #go-nuts 17:22 -!- path[l] [~path@122.182.0.38] has quit [Quit: path[l]] 17:29 -!- b00m_chef [~watr@d64-180-45-230.bchsia.telus.net] has joined #go-nuts 17:30 -!- tibshoot [~tibshoot@linagora-230-146.pr0.nerim.net] has quit [Quit: Quitte] 17:36 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has quit [Quit: Leaving] 17:37 -!- lmoura [~lauromour@189.2.128.130] has quit [Ping timeout: 245 seconds] 17:38 -!- tire0011 [~jars@dslb-088-066-019-183.pools.arcor-ip.net] has joined #go-nuts 17:45 -!- ct529 [~quassel@77-44-78-159.xdsl.murphx.net] has quit [Remote host closed the connection] 17:46 < plexdev> http://is.gd/aefNy by [Christopher Wedgwood] in go/src/pkg/syslog/ -- syslog: increase test timeout from 10ms to 100ms 17:46 -!- Project_2501 [~Marvin@82.84.69.99] has joined #go-nuts 17:54 -!- nanoo [~nano@95-89-189-46-dynip.superkabel.de] has joined #go-nuts 17:59 -!- lmoura [~lauromour@189.2.128.130] has joined #go-nuts 18:02 -!- ak2 [~ak2@soenat3.cse.ucsc.edu] has joined #go-nuts 18:05 -!- carllerche [~carllerch@enginey-9.border1.sfo002.pnap.net] has joined #go-nuts 18:07 -!- fusion44 [~quassel@p5B286E61.dip.t-dialin.net] has quit [Remote host closed the connection] 18:11 -!- ptolomy2 [~consalus@216.239.45.130] has joined #go-nuts 18:14 < ptolomy2> What is the best way to performance profile Go code? 18:14 -!- Kashia [~Kashia@port-92-200-101-16.dynamic.qsc.de] has joined #go-nuts 18:14 -!- fenicks [~christian@log77-4-82-246-228-78.fbx.proxad.net] has joined #go-nuts 18:14 -!- m1ndwarp [~m1ndwarp@xdsl-78-35-139-133.netcologne.de] has joined #go-nuts 18:14 < fenicks> hello 18:15 -!- General13372 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has joined #go-nuts 18:17 -!- alkavan__ [~alkavan@IGLD-84-228-107-218.inter.net.il] has quit [Ping timeout: 240 seconds] 18:18 -!- alkavan__ [~alkavan@IGLD-84-228-107-218.inter.net.il] has joined #go-nuts 18:18 -!- General1337 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit [Ping timeout: 245 seconds] 18:34 -!- saracen [~saracen@goto.fiveturns.org] has quit [Ping timeout: 264 seconds] 18:36 -!- nano| [~nano@2001:41d0:1:8c09::1] has joined #go-nuts 18:36 -!- nanoo [~nano@95-89-189-46-dynip.superkabel.de] has quit [Quit: Leaving] 18:36 -!- nano| [~nano@2001:41d0:1:8c09::1] has quit [Client Quit] 18:41 -!- nano| [~nano@2001:41d0:1:8c09::1] has joined #go-nuts 18:42 -!- m1ndwarp [~m1ndwarp@xdsl-78-35-139-133.netcologne.de] has quit [Quit: m1ndwarp] 18:44 -!- nano| [~nano@2001:41d0:1:8c09::1] has quit [Client Quit] 18:46 < tire0011> why are classes not assisted at go? What is the problem with classes 18:48 -!- nanoo [~nano@95-89-189-46-dynip.superkabel.de] has joined #go-nuts 18:49 < JBeshir> tire0011: Lots of time spent setting up types and relationships between them and generally the work of modeling the problem in OO instead of solving it, I think. 18:49 -!- path[l] [UPP@120.138.102.34] has joined #go-nuts 18:49 < JBeshir> Then reworking it when you find you need to have something inherit only SOME properties... 18:51 -!- path[l]_ [UPP@120.138.102.34] has joined #go-nuts 18:52 -!- path[l] [UPP@120.138.102.34] has quit [Read error: Connection reset by peer] 18:52 -!- MacCoaster [~MacCoaste@amrutlar.com] has joined #go-nuts 18:54 -!- deiga [deiga@xob.kapsi.fi] has joined #go-nuts 18:57 -!- path[l] [UPP@120.138.102.34] has quit [Ping timeout: 245 seconds] 18:58 -!- path[l] [UPP@120.138.102.34] has joined #go-nuts 18:59 < tire0011> the missing classes has nothing to do with the concurrent? Maybe is there a problem with classes at the concurrent 19:01 < tristram> people get tired of classes ;) Haskell gains in popularity with its typeclass, C++ becomes popular with generic programming replacing object oriented design 19:02 -!- path[l] [UPP@120.138.102.34] has quit [Ping timeout: 245 seconds] 19:04 -!- path[l] [UPP@120.138.102.34] has joined #go-nuts 19:06 -!- ct529 [~quassel@77-44-78-159.xdsl.murphx.net] has joined #go-nuts 19:08 -!- path[l] [UPP@120.138.102.34] has quit [Read error: Connection reset by peer] 19:08 -!- path[l] [UPP@120.138.102.34] has joined #go-nuts 19:09 -!- nanoo [~nano@95-89-189-46-dynip.superkabel.de] has quit [Quit: Leaving] 19:12 -!- gzmask [~ray@corwin.cat.uregina.ca] has joined #go-nuts 19:14 -!- path[l] [UPP@120.138.102.34] has quit [Quit: path[l]] 19:14 -!- path[l] [UPP@120.138.102.34] has joined #go-nuts 19:15 -!- skyfive [~skyfive@173-11-110-86-SFBA.hfc.comcastbusiness.net] has joined #go-nuts 19:17 -!- franksalim [~frank@adsl-75-61-84-181.dsl.pltn13.sbcglobal.net] has joined #go-nuts 19:21 -!- jalmeida [~jalmeida@c9340a2e.virtua.com.br] has quit [Quit: Fui embora] 19:23 -!- tire0011 [~jars@dslb-088-066-019-183.pools.arcor-ip.net] has quit [Quit: Verlassend] 19:26 -!- ak2 [~ak2@soenat3.cse.ucsc.edu] has quit [Quit: ak2] 19:29 -!- deiga [deiga@xob.kapsi.fi] has left #go-nuts [] 19:29 -!- deiga [deiga@xob.kapsi.fi] has joined #go-nuts 19:30 -!- deiga [deiga@xob.kapsi.fi] has left #go-nuts [] 19:56 -!- nocturna1 [~nocturnal@83.209.24.174] has quit [Quit: leaving] 19:56 -!- Venom_X [~pjacobs@adsl-99-3-159-249.dsl.hstntx.sbcglobal.net] has quit [Quit: Venom_X] 19:56 -!- nocturnal [~nocturnal@83.209.24.174] has joined #go-nuts 19:57 < nocturnal> what's the point of the first returned value in net.LookupHost, cname? i thought it would act like host -t CNAME in the bind dist but it just shows the original hostname, argument to net.LookupHost 19:58 -!- Altercation [~Altercati@pdpc/supporter/active/altercation] has quit [Excess Flood] 19:58 -!- Altercation [~Altercati@ogygia.ethanschoonover.com] has joined #go-nuts 19:58 -!- Altercation [~Altercati@ogygia.ethanschoonover.com] has quit [Changing host] 19:58 -!- Altercation [~Altercati@pdpc/supporter/active/altercation] has joined #go-nuts 19:59 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has joined #go-nuts 20:01 -!- Venom_X [~pjacobs@adsl-99-3-159-249.dsl.hstntx.sbcglobal.net] has joined #go-nuts 20:06 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has joined #go-nuts 20:13 < ni|> hey all 20:13 < ni|> anything interesting that needs to be done with go? 20:16 < ptolomy2> Yes. 20:16 -!- OpenSpace [~ja@79.101.83.166] has quit [Quit: Leaving] 20:17 < ni|> i'm interestin gin bugbusting 20:17 < ni|> i'll just play with cgo 20:17 -!- Venom_X [~pjacobs@adsl-99-3-159-249.dsl.hstntx.sbcglobal.net] has quit [Quit: Venom_X] 20:18 < skelterjohn> feel like making a gomatrix interface to BLAS or LINPACK? 20:18 < skelterjohn> which would involve cgo 20:19 < ni|> hmm thats interesting 20:19 -!- mikedee [~quassel@91.108.64.240] has joined #go-nuts 20:19 < ni|> what packages are needed 20:19 < ni|> are there any numerical methods stuff 20:19 < skelterjohn> gomatrix is a standalone 20:19 -!- Venom_X_ [~pjacobs@99.3.159.249] has joined #go-nuts 20:19 < ni|> like null space and laplacian transforms 20:19 < skelterjohn> gomatrix.googlecode.org 20:19 < skelterjohn> i just have basic things in there 20:20 < skelterjohn> LU, SVD, eigenstuff 20:20 < skelterjohn> and it's all implemented in go 20:20 < skelterjohn> but it would be neat to interface it to some of the speedy stuff 20:21 < skelterjohn> it'd just need to implement the Matrix interface in http://code.google.com/p/gomatrix/source/browse/matrix.go, and then it would be compatible with the rest of the library 20:23 -!- ct529 [~quassel@77-44-78-159.xdsl.murphx.net] has quit [Remote host closed the connection] 20:24 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has quit [Quit: skelterjohn] 20:25 -!- sudi [~chatzilla@dslb-084-056-015-010.pools.arcor-ip.net] has quit [Remote host closed the connection] 20:29 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has quit [Quit: ( www.nnscript.com :: NoNameScript 4.21 :: www.esnation.com )] 20:43 < hstimer> does go do any kind of inlining yet? 20:44 -!- g0bl1n [~anonymous@a213-22-200-76.cpe.netcabo.pt] has quit [Quit: g0bl1n] 20:45 -!- sudi [~chatzilla@dslb-084-056-015-010.pools.arcor-ip.net] has joined #go-nuts 20:49 -!- only99cents [~99cents@c-71-60-55-7.hsd1.pa.comcast.net] has joined #go-nuts 20:53 < anticw> no 20:54 < anticw> gccgo probably does 20:54 < anticw> but no gc 20:54 < anticw> s/no/not/ 20:56 -!- Amaranth [~travis@ubuntu/member/Amaranth] has quit [Ping timeout: 268 seconds] 20:57 -!- dumbterm [~dumbterm@maltodextrin.csclub.uwaterloo.ca] has left #go-nuts [] 21:00 -!- Amaranth [~travis@ubuntu/member/Amaranth] has joined #go-nuts 21:01 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts 21:01 -!- zaster1 [~99cents@c-71-60-55-7.hsd1.pa.comcast.net] has joined #go-nuts 21:01 -!- zaster1 [~99cents@c-71-60-55-7.hsd1.pa.comcast.net] has left #go-nuts [] 21:05 -!- only99cents [~99cents@c-71-60-55-7.hsd1.pa.comcast.net] has quit [Ping timeout: 256 seconds] 21:09 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has joined #go-nuts 21:11 -!- difekta [~clays@c-24-5-65-40.hsd1.ca.comcast.net] has joined #go-nuts 21:11 -!- afurlan [~afurlan@scorpion.mps.com.br] has quit [Quit: Leaving] 21:30 -!- ikke [~ikkibr@unaffiliated/ikkebr] has quit [] 21:37 -!- ak2 [~ak2@c-24-6-88-154.hsd1.ca.comcast.net] has joined #go-nuts 21:41 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:21e8:2f4e:c6b7:f8e5] has quit [Quit: Leaving.] 21:45 -!- mattikus [~mattikus@ip68-227-143-68.br.br.cox.net] has joined #go-nuts 21:49 -!- Gracenotes [~person@wikipedia/Gracenotes] has quit [Quit: Leaving] 21:50 -!- nutate [~rseymour@cacsag4.usc.edu] has joined #go-nuts 22:00 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has quit [Ping timeout: 615 seconds] 22:01 -!- path[l] [UPP@120.138.102.34] has quit [Quit: path[l]] 22:07 -!- ak2 [~ak2@c-24-6-88-154.hsd1.ca.comcast.net] has quit [Ping timeout: 246 seconds] 22:07 < hstimer> anticw: bummer 22:08 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has joined #go-nuts 22:08 < anticw> hstimer: does it really matter though? 22:09 < hstimer> in a few inner loops, yes, but not in general 22:10 < anticw> there are other optimizations that would make more of a difference i think 22:10 < anticw> like eliminating some bounds checking 22:11 < hstimer> I'm sure there is a very long list 22:11 -!- ak2 [~ak2@c-24-6-88-154.hsd1.ca.comcast.net] has joined #go-nuts 22:20 -!- scm [justme@c222104.adsl.hansenet.de] has quit [Ping timeout: 258 seconds] 22:22 -!- scm [justme@c162101.adsl.hansenet.de] has joined #go-nuts 22:26 -!- ak2 [~ak2@c-24-6-88-154.hsd1.ca.comcast.net] has quit [Quit: ak2] 22:28 -!- Project_2501 [~Marvin@82.84.69.99] has quit [Quit: E se abbasso questa leva che succ...] 22:33 -!- mattikus [~mattikus@ip68-227-143-68.br.br.cox.net] has quit [Quit: mattikus] 22:34 -!- mattikus [~mattikus@ip68-227-143-68.br.br.cox.net] has joined #go-nuts 22:37 -!- eliteSchaf [~sinz@88-117-31-221.adsl.highway.telekom.at] has joined #go-nuts 22:37 < eliteSchaf> hey guys. whats the best way to convert []int -> string? 22:37 -!- ShadowIce` [pyoro@unaffiliated/shadowice-x841044] has quit [Quit: Verlassend] 22:38 < KirkMcDonald> Expecting what result? 22:39 < KirkMcDonald> A string like "[1, 2, 3]"? Or is it an array of runes? 22:39 -!- ericvh [~ericvh@32.97.110.63] has left #go-nuts [] 22:40 < eliteSchaf> it is an array of rune's 22:41 < eliteSchaf> fmt.Sprint doesnt work 22:41 < eliteSchaf> like described in effective go 22:42 -!- meatmanek [~meatmanek@207.228.237.150] has joined #go-nuts 22:42 < KirkMcDonald> I am not seeing which part of Effective Go you are referring to. 22:43 < KirkMcDonald> But, string(foo) should work. 22:45 < eliteSchaf> I'm referring to the chapter "Conversions" 22:46 < eliteSchaf> KirkMcDonald, oh thanks, string() works ^^ 22:51 < anticw> eliteSchaf: string([]int{....}) or similar is fine 22:51 < anticw> there were recent changes to that stuff is usable 22:51 < anticw> same for bytes 22:52 < eliteSchaf> anticw, alright 22:53 -!- wrtp [~rog@89.240.68.57] has quit [Quit: wrtp] 22:56 -!- lmoura [~lauromour@189.2.128.130] has quit [Quit: Leaving] 23:01 -!- Venom_X_ [~pjacobs@99.3.159.249] has quit [Quit: Venom_X_] 23:04 -!- g0bl1n [~anonymous@a213-22-200-76.cpe.netcabo.pt] has joined #go-nuts 23:07 < meatmanek> is there a data structure that will store a string in some way that lets me append or take substrings quickly? 23:07 < meatmanek> maybe an automatically expanding byte slice or something 23:09 < anticw> meatmanek: not exactly 23:09 < anticw> meatmanek: substrings you can do in the language ... you can't change (append) strings though 23:09 -!- hstimer [~hstimer@2002:465a:aa25:0:226:bbff:fe05:dd9b] has quit [Quit: hstimer] 23:10 < meatmanek> rightt 23:10 < meatmanek> I guess I'll just take the code from effective go 23:10 < anticw> strings are values immmutable, so you have to make a new string 23:10 < KirkMcDonald> Which quickly gives you quadratic performance. 23:10 < meatmanek> yep 23:10 < anticw> it depends what you're doing 23:10 < meatmanek> byte slices are fine actually 23:10 < anticw> bytes work well a lot of the time and you convert to strings only when you need that 23:10 < taruti> meatmanek: http://golang.org/pkg/bytes/ Buffer 23:11 < KirkMcDonald> The idiom in Python (at least) is to use the equivalent of a []string, then join the thing together when you're done. 23:11 < KirkMcDonald> But you can't exactly get substrings from that easily, before joining it. 23:11 < meatmanek> I think buffer is what I'm looking for 23:11 < anticw> substrings are near from from existing strings 23:11 < KirkMcDonald> Ah, I knew I remembered that Buffer type, but I couldn't find it. 23:11 < anticw> i think when most people ask for this they really want bytes 23:12 < taruti> probably should be made into a FAQ-entry 23:13 < taruti> "how do I concatenate strings efficiently" is a common problem. 23:13 < Eridius> is there a common answer? 23:13 < Eridius> :p 23:13 < anticw> let the runtime do it 23:13 < Eridius> oh I guess Buffer is it 23:13 < anticw> s := "foo" + "bar" 23:13 < meatmanek> the most common answer is probably buffer 23:13 < Eridius> but the original question wanted substrings too 23:14 < meatmanek> anticw, but if you're doing that programmatically, that gets expensive quickly 23:15 < anticw> does it? 23:15 < Eridius> anticw: each time you append it creates a new string 23:15 < anticw> i mean, in those cases are you sure you really want to be using strings? 23:15 < anticw> sure, and that's fine 23:15 < Eridius> Buffer will keep around extra space to grow into 23:15 < anticw> yes, so use a buffer if that matters 23:15 < taruti> Eridius: of course bytes.Buffer offers fast byte-based substrings. 23:15 < anticw> i think the issue is WHEN is it appropriate to use strings 23:15 < anticw> strings != bytes 23:15 < anticw> at some level 23:16 < anticw> underneath they are the same but you tend to use them differently 23:16 < meatmanek> I've actually found that bytes are easier to deal with when you're making your own data structure 23:16 < anticw> this is true for many other languages as well 23:16 < meatmanek> since one byte is always one byte 23:16 < Eridius> taruti: sure, if you want byte-based 23:16 < meatmanek> whereas one character is not always one char 23:16 < meatmanek> er one byte 23:16 < anticw> if you write a mime parser (as i did) or a text editor, it's quite possible you'll spend most of the time using bytes 23:17 < taruti> Eridius: character-based indexing is slow even on strings. 23:17 < Eridius> well sure, because you have to convert to runes 23:17 < meatmanek> I'm writing a trie text index 23:18 < taruti> meatmanek: you probably want bytes 23:19 < meatmanek> ep. 23:19 < meatmanek> +y 23:19 < eliteSchaf> shouldn't a text-editor use []int to store the text? 23:21 < taruti> a text editor will want a tree of bytes/[]int 23:21 < eliteSchaf> iirc Russ mentioned it on the mailing list 23:21 -!- nf [~nf@203-158-49-135.dyn.iinet.net.au] has quit [Read error: Operation timed out] 23:21 < taruti> eliteSchaf: think of a 50mb file where you add one character in the middle 23:22 -!- alkavan__ [~alkavan@IGLD-84-228-107-218.inter.net.il] has quit [Quit: Leaving] 23:22 < taruti> eliteSchaf: do you want to allocate a new ~50mb array as the user writes 'f' 'o' 'o' 'b' 'a' 'r' ? 23:23 < taruti> (yes, russ said something along those lines on the ml) 23:24 < taruti> -> sleep 23:24 < eliteSchaf> g'n8 23:25 -!- nf [~nf@124-168-158-182.dyn.iinet.net.au] has joined #go-nuts 23:25 -!- fwiffo [~c9564bcf@gateway/web/freenode/x-tnblaxlcqzzzwrez] has joined #go-nuts 23:25 -!- fwiffo [~c9564bcf@gateway/web/freenode/x-tnblaxlcqzzzwrez] has quit [Changing host] 23:25 -!- fwiffo [~c9564bcf@unaffiliated/fwiffo] has joined #go-nuts 23:25 -!- fwiffo [~c9564bcf@unaffiliated/fwiffo] has quit [Changing host] 23:25 -!- fwiffo [~c9564bcf@gateway/web/freenode/x-tnblaxlcqzzzwrez] has joined #go-nuts 23:28 -!- homiziado [~ernestofr@62.169.116.73.rev.optimus.pt] has joined #go-nuts 23:35 < kmeyer> eliteSchaf: text editors often use "gap buffers" -- http://en.wikipedia.org/wiki/Gap_buffer 23:35 < kmeyer> er, maybe that's the wrong person ;) 23:37 < eliteSchaf> kmeyer, thanks :D 23:37 < anticw> search and replace sucks there though when you change the size of the buffer 23:37 < anticw> you can see this on a lot of editors, they get quite slow 23:40 -!- hstimer [~hstimer@ppp-71-139-20-1.dsl.snfc21.pacbell.net] has joined #go-nuts 23:42 -!- manveru [~manveru@b08s28ur.corenetworks.net] has quit [Ping timeout: 240 seconds] 23:43 -!- gzmask [~ray@corwin.cat.uregina.ca] has left #go-nuts [] 23:45 -!- meatmanek [~meatmanek@207.228.237.150] has quit [Quit: This computer has gone to sleep] 23:46 -!- KB1JWQ [~KB1JWQ@freenode/staff/kb1jwq] has left #go-nuts ["I came, I saw, I /parted"] 23:56 -!- g0bl1n [~anonymous@a213-22-200-76.cpe.netcabo.pt] has quit [Quit: g0bl1n] --- Log closed Fri Mar 12 00:00:24 2010