--- Log opened Fri Jul 15 00:00:01 2011 --- Day changed Fri Jul 15 2011 00:00 < skelterjohn> not that i know of, sorry 00:00 < magn3ts> oh if I'm in windows I'm installing mercurial. not git, heh. 00:00 < skelterjohn> i can make you one though 00:00 < magn3ts> I'm already most of the way there 00:01 < skelterjohn> by running "gb -D", which creates a distribution directory that can be tarzipped, skipping any binaries ;) 00:01 < magn3ts> I guess goinstall -u should do it though 00:02 < skelterjohn> http://dl.dropbox.com/u/4564102/gb-snap.tgz 00:02 < skelterjohn> goinstall depends on you having hg or git available 00:03 < magn3ts> >_> is this for go tip? 00:03 < skelterjohn> weekly 00:03 < magn3ts> :[ 00:03 < skelterjohn> should be a simple change to do release 00:04 < skelterjohn> StringSlice, right? 00:04 < magn3ts> Split, but yeah. 00:04 < magn3ts> oh, and stringslice, yes. 00:04 < skelterjohn> yeah, i understand if it's not worth your time 00:05 < skelterjohn> but it's 2am for me right now and i don't have the energy to repackage the release version 00:05 < skelterjohn> i need to get to sleep 00:05 < magn3ts> I don't mind, I am going to leave soon. And I'm not going to try to build go myself tonight to get to weekly. 00:05 < magn3ts> skelterjohn, that's cool, if you see me again and want me to try it just hit me up 00:05 < skelterjohn> i'll do it at some point, and repost the download on googlecode 00:05 < skelterjohn> but not right now 00:05 < skelterjohn> thanks for the bug report 00:06 -!- skelterjohn [~jasmuth@140.Red-88-7-208.staticIP.rima-tde.net] has quit [Quit: skelterjohn] 00:08 < magn3ts> so if I have #cgo CFLAGS: -I/c/WpdPack/Include/ and it contains pcap.h, why would I be getting fatal error: pcap.h no such file or directory? 00:19 < magn3ts> Yeah, any hint on this would be appreciated. The file is in the path laid out there... is it possible that that path structure is foreign to whatever cgo calls (gcc?) 00:20 -!- Kami__ [~kami@unaffiliated/kami-/x-9078513] has quit [Quit: Off] 00:20 -!- gridaphobe [~gridaphob@cpe-74-68-151-24.nyc.res.rr.com] has joined #go-nuts 00:20 -!- Kami_ [~kami@unaffiliated/kami-/x-9078513] has joined #go-nuts 00:23 -!- foocraft [~ewanas@78.101.63.193] has quit [Quit: So long, and thanks for all the fish!] 00:23 < str1ngs> create a simple test.c that uses pcap.h. and build it with gcc directly. see how that goes 00:23 -!- foocraft [~ewanas@78.101.63.193] has joined #go-nuts 00:30 -!- Tv__ [~Tv__@cpe-76-168-227-45.socal.res.rr.com] has joined #go-nuts 00:31 -!- vmil86 [~vmil86@78.57.227.12] has quit [Ping timeout: 276 seconds] 00:33 -!- lucian [~lucian@78-86-217-168.zone2.bethere.co.uk] has quit [Remote host closed the connection] 00:38 -!- miker2 [~miker2@pool-108-16-20-28.phlapa.fios.verizon.net] has quit [Ping timeout: 240 seconds] 00:39 -!- tavis_rain [~tavisb@24-104-129.146.hfc.mediarain.com] has quit [Read error: Connection reset by peer] 00:40 -!- ccc1 [~Adium@140.109.98.187] has joined #go-nuts 00:46 -!- miker2 [~miker2@pool-108-16-20-28.phlapa.fios.verizon.net] has joined #go-nuts 00:46 < questionable> so why is this channel called, essentially, "go nuts"? 00:47 < chomp> why wouldn't it be?! 00:47 < chomp> two things people like: double entendres and go puns 00:48 < chomp> i mean, it seems like a winning situation here 00:50 -!- GoBIR [~gobir@70-90-168-189-SFBACalifornia.hfc.comcastbusiness.net] has quit [Ping timeout: 252 seconds] 00:53 -!- tvw [~tv@e176002066.adsl.alicedsl.de] has quit [Ping timeout: 255 seconds] 00:54 -!- franciscosouza [~francisco@187.105.25.184] has quit [Read error: Connection reset by peer] 00:55 -!- GoBIR [~gobir@70-90-168-189-SFBACalifornia.hfc.comcastbusiness.net] has joined #go-nuts 00:55 -!- franciscosouza [~francisco@187.105.25.184] has joined #go-nuts 01:02 < jessta_> questionable: because the mailing list is called go-nuts 01:03 < Tekerson> I always read it as "gonuts" (like "donuts") 01:07 -!- d2biG [p@bofh.edu.pl] has joined #go-nuts 01:07 -!- dRbiG [p@bofh.edu.pl] has quit [Ping timeout: 250 seconds] 01:11 -!- miker2 [~miker2@pool-108-16-20-28.phlapa.fios.verizon.net] has quit [Ping timeout: 252 seconds] 01:18 -!- miker2 [~miker2@pool-108-16-20-28.phlapa.fios.verizon.net] has joined #go-nuts 01:19 < telexicon> whats the plan with generics? i just wonder because many statically typed languages started without generics but have all ended up with them 01:20 < telexicon> it would be nice to avoid having the mess of a non-generic collections library and a duplicate one for supporting generics 01:26 < questionable> man, the whole "you shouldn't say 'using namespace std'" thing is silly 01:26 < questionable> let's say "using std::string", "using std::cout", and "using std::cin" instead 01:26 < questionable> nice 01:26 -!- Varriount [~Varriount@67.222.157.172] has left #go-nuts [] 01:26 < questionable> clog up your program with rubbish 01:26 < telexicon> questionable, i agree, i think people took it too far 01:27 < telexicon> i understand the use of namespaces when theres actually a conflict 01:27 < questionable> yes 01:27 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts 01:27 < telexicon> but usually there isnt, and i dont use fully qualified names until there is one 01:28 < questionable> i hate the standard-library names 01:28 < questionable> it_all_looks_like_this 01:28 < questionable> so ugly 01:29 -!- Tv__ [~Tv__@cpe-76-168-227-45.socal.res.rr.com] has quit [Quit: Tv__] 01:29 -!- Tv__ [~Tv__@cpe-76-168-227-45.socal.res.rr.com] has joined #go-nuts 01:29 < telexicon> i dont mind it 01:30 < questionable> what if you're using a library which has NamesLikeThis? 01:30 < questionable> then you have code_like_this mixed with OtherCodeLikeThis 01:30 < telexicon> yeah, the inconsistency is annoying 01:30 < brandini> What about Code.Like.This? 01:31 < questionable> telexicon: it fires off my OCD so bad 01:31 < questionable> brandini: that could be appropriate on occasion (e.g., c# properties) 01:34 < str1ngs> little did the channel creators know, nuts attract language trolls :P 01:36 < jessta_> telexicon: the plan with generics is to not put them in until they fit nicely in to the language 01:36 -!- franciscosouza_ [~francisco@187.105.25.184] has joined #go-nuts 01:36 -!- franciscosouza [~francisco@187.105.25.184] has quit [Read error: Connection reset by peer] 01:39 -!- ijknacho [~goofy@71.123.134.24] has quit [Ping timeout: 260 seconds] 01:41 -!- miker2 [~miker2@pool-108-16-20-28.phlapa.fios.verizon.net] has quit [Quit: Computer has gone to sleep.] 01:47 -!- questionable [~tjb@31.64.8.108] has quit [] 01:54 < chomp> i think it's ok to not like things about go 01:55 * chomp is obviously also nuts 01:55 < telexicon> there are a lot of things about go i like very much, thats why im here 01:55 < chomp> i appreciate the conservative approach though 01:56 < telexicon> what i was really wondering is, are they intending to add generics, or still unsure whether they want to add them or not 01:56 < chomp> i think jessta_ has the right answer there 01:56 < chomp> as far as i can tell there's no certainty either way 01:58 < chomp> i actually wonder if generics might be too narrow a feature to be useful on their own. maybe a more generalized macro syntax would be in order :) 01:58 < chomp> i should say "to be useful" - but to be worth implementing 02:00 < chomp> shouldn't* say.. blah. 02:03 < telexicon> as long as its typesafe 02:03 < TheSeeker> we could have a tabs vs spaces war, those are fun. 02:04 < TheSeeker> (tabs always win) 02:04 < telexicon> gofmt settles all that 02:06 < chomp> tabs obviously win, it's the width of them that often irks me :) 02:07 < chomp> i hate 8-wide tabs 02:07 < chomp> wastin mah pixels. 02:07 < TheSeeker> good thing all useful text editors allow custom tab spacing. 02:08 < chomp> yeah but alignment can still break when the tabwidth changes if tabs are used in certain places 02:08 < chomp> (places where spaces should probably be used, of course) 02:10 < magn3ts> str1ngs, I tried the test.c and it compiled fine. 02:11 < str1ngs> magn3ts: with same CFLAGS ? 02:11 < magn3ts> well I inlined them, I can try exporting it 02:12 < magn3ts> CFLAGS=-I/c/WpdPack/Include gcc test.c fails 02:12 < magn3ts> but gcc -I/c/WpdPack/Include test.c works. 02:12 < str1ngs> this is windows right? 02:12 < magn3ts> yes. 02:12 < magn3ts> Mingw32 shell and tools at the moment. 02:13 < str1ngs> export CFLAGS="-I/c/WpdPack/Include"; echo $CFLAGS 02:14 < str1ngs> is that valid for CFLAGS btw I dont do alot of C 02:14 < magn3ts> It echoes back the exported CFLAGS (presumably correctly) 02:14 < magn3ts> I'm not sure if it's valid. I thought that's how they worked, but if I replace echo with gcc, it still fails. 02:15 < str1ngs> hmm 02:16 -!- franciscosouza [~francisco@187.105.25.184] has quit [Read error: Connection reset by peer] 02:16 -!- franciscosouza [~francisco@187.105.25.184] has joined #go-nuts 02:17 < magn3ts> yeah, this fails in Linux too, I'm doing something wrong :S I don't do a lot of C either 02:18 < str1ngs> magn3ts: in linus man gcc search for CFLAGS syntax 02:18 < str1ngs> lol linux evne 02:18 < str1ngs> even* 02:19 < chomp> magn3ts, wait what's the problem? are you sure gcc is not finding stuff in the path you gave it? 02:20 < chomp> oh i see. it does work with explicit -I but not with CFLAGS 02:20 < chomp> i'm not aware of gcc actually caring about CFLAGS 02:20 < chomp> afaik that's a make thing. 02:21 < chomp> yeah, it is 02:21 < magn3ts> chomp, I see, the original problem was though, that it wasn't working with cgo files. 02:22 < magn3ts> where I presume :P that CFLAGS are used. 02:22 < chomp> paste? 02:22 < magn3ts> chomp http://pastie.org/2215715 02:23 < magn3ts> cgo pcap.go gives: fatal errorl 02:23 < magn3ts> pcap.h no such file/dir 02:25 < chomp> well that isn't right. 02:25 < magn3ts> that being something I wrote? :p 02:25 < chomp> wish i had a working mingw environment... 02:25 < chomp> no, the failure isn't right :) 02:26 < magn3ts> ah. well for what it's worth I just used the mingw installer and clicked "Next" and waited and it was done 02:27 < chomp> it doesn't look like a GCC problem 02:27 < chomp> when you run gomake and cgo tries to do its stuff, can you see the gcc commandline it issues? 02:27 < magn3ts> I'll sure try. I'd just been invoking cgo. 02:28 < chomp> ah 02:28 < magn3ts> argh I have to write a makefile for this though :/ 02:28 < chomp> it's dirt simple 02:28 < chomp> copypasta 02:28 < chomp> here 02:28 < chomp> http://pastie.org/2215741 02:28 -!- nteon_ [~nteon@c-98-210-195-105.hsd1.ca.comcast.net] has quit [Remote host closed the connection] 02:28 < chomp> there's one of mine from a cgo project 02:29 < chomp> GOFILES for any non-cgo go code, CGOFILES for any files that use cgo, CGO_OFILES for any plain old C files 02:29 < chomp> you can ignore that pamdefs crap probably 02:31 < magn3ts> holy cow, -d is really just going for it 02:33 < chomp> eh? 02:34 < magn3ts> gomake -d prints out debug info 02:34 < magn3ts> otherwise it gave me nothing more than cgo was. 02:34 < chomp> you should definitely see all the gcc commandlines... 02:34 < magn3ts> wow, it let me upload the whole paste before saying the paste was too big 02:35 < chomp> even without -d you should see them 02:35 < magn3ts> chomp, http://pastie.org/2215754 02:35 < chomp> are you using release or tip? 02:35 < chomp> i wonder if that's changed 02:35 < magn3ts> release 02:36 < chomp> yeah that's pretty useless output right there. 02:36 < chomp> you'd probably see what i see with tip, or at least weekly 02:37 < chomp> for now you could always just try adding CGO_CFLAGS=-I/foo/bar 02:37 < chomp> to the Makefile 02:38 < magn3ts> I've been avoiding trying to build go on Windows, I'm using whoever's prebuilt stuff but I might give that a shot 02:39 < chomp> i have concluded that mingw package management sucks 02:39 < chomp> hence i have also yet to actually build it on windows D: 02:40 < magn3ts> well new errors, but it's something 02:43 -!- chrisdothall [~chris@segfault.net.nz] has joined #go-nuts 02:45 -!- chanwit [~chanwit@49.48.101.121] has joined #go-nuts 02:45 -!- Dr_Who [~tgall_foo@linaro/tgall-foo] has joined #go-nuts 02:46 -!- sniper506th [~sniper506@cpe-098-122-099-052.sc.res.rr.com] has joined #go-nuts 02:48 < angasule> I tried to build Go on windows today, but I got "Error 1" and gave up 02:50 < magn3ts> heh, so now I have an example that builds fine in mingw but when I use cgo it complains about some types. 02:50 < magn3ts> I'm wondering if there are DEFs for if Mingw and somehow cgo isn't uh, using that information? 02:51 < chomp> what kinda complaints 02:53 < magn3ts> chomp, http://pastie.org/2215802 02:53 < chomp> are those from pam.h or something? 02:53 < magn3ts> also, there it prints out my CFLAGS... it doesn't appear to be pulling them from the go files in the release I'm on at least. 02:53 < magn3ts> chomp, pam.h ? no idea what that is. 02:54 < chomp> yeah i wouldnt be surprised at cgo being broken, afaik release is pretty old? 02:54 < chomp> sorry, pcap.h :) 02:54 < magn3ts> chomp, I'm not sure where they're defined at, but they build with gcc fine. Like I said, there's a lot of preprocessor branching for platforms in the pcap code, I'm guessing for mingw it aliases those to longs. 02:55 < chomp> i take that back, last release appears to be only 2 weeks old 02:56 < chomp> try including time.h? 02:56 -!- keithcascio [~keithcasc@nat/google/x-qovhphznmnqfbztg] has quit [Quit: Leaving] 02:56 < chomp> before pcap 02:57 < magn3ts> same result 03:00 < chomp> did you just build pcap from source btw? 03:00 < magn3ts> no 03:00 < magn3ts> Someone maintains WinPcap, it's a bundle of windows drivers and then pcap built for windows. 03:00 -!- kergoth_ [~kergoth@ip24-251-173-232.ph.ph.cox.net] has quit [Read error: Connection reset by peer] 03:00 < chomp> ahhhh. 03:00 < angasule> do you think having (r Reader) functionName(x, y int) in an interface would make sense? That is, an interface that requires a type to also implement Reader? 03:01 < angasule> I'm not sure I'm making sense, half asleep and writing code on IRC 03:02 < chomp> interface foo { io.Reader } 03:02 < chomp> will require any foo to also be a reader 03:03 < chomp> or rather, will include the reader interface constraints in the foo interface; effectively the same meaning though 03:03 < magn3ts> chomp, I also cat | grep'd the header files in that include dir... none reference time_t or suseconds_t anywhere. 03:03 < chomp> magn3ts, yeah i just did the same thing a minute ago 03:03 < chomp> whered you get the winpcap binaries 03:04 < magn3ts> winpcap.org I think. 03:04 < magn3ts> Under the WinPcap tab, choose Development. 03:04 < magn3ts> I guess I could be helpful: http://www.winpcap.org/install/bin/WpdPack_4_1_2.zip 03:04 < angasule> chomp: right... I'm asking because of a different reason.. hmm, need to think about this more, but I think it'll look awful 03:04 < magn3ts> chomp, DOH, they're not in the library, they're in the pcap.go I found.... 03:05 < chomp> doh :P 03:05 -!- ijknacho [~goofy@71.123.134.24] has joined #go-nuts 03:05 < magn3ts> but I have no idea what to do about it still ._. 03:05 < magn3ts> haha 03:05 < chomp> oh wow, there they are 03:05 < chomp> proabbly just replace with time_t and suseconds_t 03:06 < magn3ts> still no suseconds_t but time_t is okay. 03:06 < chomp> no idea why someone would use a __ prefix 03:06 < chomp> eh just cast to a long 03:07 < chomp> C.long that is 03:07 < chomp> that's all usec is anyway 03:07 < magn3ts> oh now it's just back to my go incompetence probably. 03:07 < magn3ts> can't find import pcap 03:08 < magn3ts> oh doh, ./pcap 03:08 < chomp> :P 03:08 < magn3ts> still the issues of cgo CFLAGS. I'll have to see about that. 03:09 < chomp> but can you build with CGO_CFLAGS in the Makefile 03:09 < magn3ts> yeah, I'm still not able to get it to import from the same directory though 03:09 * magn3ts is embarassed 03:10 < chomp> well you may need to copy _obj/pcap.a into the current dir 03:11 * chomp is not sure that will actually work 03:11 -!- chrisdothall [~chris@segfault.net.nz] has quit [Quit: resting the wrists] 03:11 < magn3ts> :/ what if that file doesn't exist? 03:11 < chomp> then it didn't build o_O 03:11 < magn3ts> http://pastie.org/2215856 03:11 < magn3ts> :[ 03:12 < chomp> look around the dir/subdirs 03:12 < chomp> is there a pcap.a anywhere? 03:12 < magn3ts> lol no 03:12 < Nisstyre> yes 03:12 < magn3ts> o_0 03:13 < chomp> paste makefile? 03:13 < chomp> oh wait... 03:13 < magn3ts> http://pastie.org/2215859 03:13 < chomp> i doubt gomake will handle building two separate binary targets nicely 03:14 < magn3ts> makefile http://pastie.org/2215862 03:14 < chomp> move the pcap code to its on subdir, and use that makefile with TARG=pcap 03:14 < chomp> then make a new makefile without any of the CGO stuff 03:14 < chomp> for xbrdaemon 03:15 < magn3ts> interesting... 03:16 < magn3ts> http://pastie.org/2215868 03:17 < chomp> are you still including time.h in your pcap.go 03:18 < magn3ts> no 03:18 -!- chomp [~chomp@c-67-186-35-69.hsd1.pa.comcast.net] has left #go-nuts ["Leaving"] 03:18 -!- chomp [~chomp@c-67-186-35-69.hsd1.pa.comcast.net] has joined #go-nuts 03:18 < magn3ts> even with it, same result. 03:18 < chomp> :O 03:19 < chomp> well i know it's evil but you could also just use C.long instead of time_t for now 03:19 < chomp> have no idea where to begin trying to understand why it hates the typedef 03:20 -!- moraes [~moraes@189.103.188.201] has quit [Ping timeout: 276 seconds] 03:20 < magn3ts> heh and I'm trying to edit it in wordpad (vista/7 version too) 03:20 < chomp> >< 03:20 < chomp> gvim or notepad++ imho 03:20 < magn3ts> I'm just going to put it on the shared drive 03:22 -!- kinofcain [~KinOfCain@h-64-105-141-42.snvacaid.static.covad.net] has quit [Quit: kinofcain] 03:25 -!- gridaphobe [~gridaphob@cpe-74-68-151-24.nyc.res.rr.com] has quit [Quit: Leaving] 03:26 < magn3ts> I'm getting closer... I think I'm back to a makefile problem 03:26 < magn3ts> ** No rule to make target `pcap.o', needed by `_cgo1.go'. Stop. 03:29 < magn3ts> any hint here chomp ? I'm googling for cgo makefile examples 03:32 < chomp> new paste pl0x 03:32 -!- qeed [~qeed@adsl-98-85-60-209.mco.bellsouth.net] has quit [Quit: Leaving] 03:34 < magn3ts> chomp, http://pastie.org/2215927 03:34 < chomp> sorry, of the makefile :P 03:35 < chomp> oh wait 03:35 < chomp> do you have CGO_OFILES:=pcap.o? 03:35 < chomp> if so remove that, that be bad 03:35 < chomp> thats for linking against compiled C code, which i needed in my makefile i pasted 03:39 -!- sniper506th [~sniper506@cpe-098-122-099-052.sc.res.rr.com] has quit [Quit: Leaving...] 03:40 < magn3ts> hm, doesn't seem to want to link properly now. 03:41 < magn3ts> http://pastie.org/2215944 03:41 < magn3ts> actually... pcap_inject may not have a wpcap equiv 03:42 < chomp> that would be odd considering it's obviously in the winpcap header 03:42 < chomp> or else you wouldn't be able to compile 03:43 < chomp> you could try replacing inject with sendpacket, they are equivalent 03:46 < magn3ts> sendpacket through other errors, removing Inject results in pcap.a, so it's almost there. 03:46 < magn3ts> more typedef problems with size_t/int with sendpacket 03:50 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has joined #go-nuts 03:50 -!- Dr_Who [~tgall_foo@linaro/tgall-foo] has quit [Quit: ZZZZZzzzzz] 03:51 < magn3ts> chomp, if I use sendpacket I have to use a uchar* instead of void*, is there a ucharptr in cgo and if so, do I wrap that around a unsafe.Pointer or just use it outright? 03:52 < chomp> you should be able to just use unsafe.Pointer afaik 03:52 < chomp> but hmm 03:52 < magn3ts> didn't like it. 03:53 < chomp> how about C.CString 03:53 < magn3ts> d 03:53 < magn3ts> http://pastie.org/2215992 03:53 < magn3ts> Let me try 03:53 < chomp> is buf a []byte 03:54 < magn3ts> buf := (*C.char)(C.malloc((C.size_t)(len(data)))) 03:54 < magn3ts> uhm, maybe? 03:54 < chomp> oh just dont cast it at all 03:54 < chomp> it's already a char* 03:54 * chomp herps and derps 03:54 < magn3ts> char != uchar 03:54 < magn3ts> :P 03:55 < telexicon> are there any better tools for dealing with binary data than the built-in go package? Perhaps I'm missing something but it didnt seem like it was able to handle being compatible with C structs with varying endian conversions 03:56 < chomp> oh balls... (*C.uchar) :) 03:56 < magn3ts> Even if I change *C.char to *C.uchar it still whines about the typecast. Not sure why it gets so bent up about them 03:57 < magn3ts> http://pastie.org/2216004 03:57 < chomp> oh it's not an unsigned char it's a u_char, which is a pcap typedef 03:58 < chomp> i don't supposed (*C.u_char) will shut it the hell up? 04:01 -!- mjml [~joya@174.3.227.184] has quit [Remote host closed the connection] 04:02 < magn3ts> =D 04:02 < magn3ts> =D 04:02 < chomp> working?! 04:02 < magn3ts> I want to see if I can import and use it. 04:02 < magn3ts> but it's building pcap.a 04:03 < chomp> awesome, hard part's done 04:03 < chomp> actually no the hard part is debugging all the panics after it finally gets running ^^ 04:03 < magn3ts> heh 04:03 < magn3ts> so I have src\pcap\_obj\pcap.a 04:03 < magn3ts> what is the right way for src\main.go to import it 04:03 -!- rejb [~rejb@unaffiliated/rejb] has quit [Disconnected by services] 04:04 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts 04:04 < chomp> great question, and i have no idea. i know import "pcap/_obj/pcap" should work, but that's effing ugly 04:05 < magn3ts> well I'm going to put pcap back into github 04:05 < chomp> im not sure what "./pcap" would look for, but i doubt it will be smart enough to look in pcap/_obj 04:05 < magn3ts> if I can figure out how to get CFLAGS workign 04:06 < magn3ts> yeah ./pcap and ./pcap/pcap failed. 04:06 < magn3ts> You're right ./pcap/_obj/pcap gets me back to strings.Split complaints which is fine. 04:10 < chomp> look into gb 04:11 < chomp> it's a build tool and handles multi-package projects with like no effort 04:11 < magn3ts> Yeah, I'd been using goinstall for pcap 04:11 < magn3ts> and then gd (or gb.. I guess.... I've been hearing about it all day :P) for xbr stuff 04:11 < chomp> though if you can make goinstall work (i know tip now uses makefiles with -make) you can jsut improt "github.com/foo/pcap" 04:11 < magn3ts> goinstall won't work unless CFLAGS is fixed in tip. That's what I'm going to play with now. 04:12 < chomp> magn3ts, try goinstall -make 04:12 < chomp> that was added recently, maybe before last release though 04:12 < chomp> it will use your own Makefile 04:12 < magn3ts> the makefile will differ based on platform though 04:12 < magn3ts> unless -make takes an arg or gomake has some sort of GOOS switching 04:13 < chomp> no idea there 04:13 < chomp> :( 04:13 < magn3ts> okay, well I hate Makefiles so I'm going to try tip until I decide building go in windows sucks. 04:14 < magn3ts> and then 2 hours later I'll decide to wait until things settle down with it and just dev for linux and worry about it in a few weeks 04:15 -!- ray24 [~ray24@adsl-70-132-6-78.dsl.snfc21.sbcglobal.net] has joined #go-nuts 04:15 < ray24> whats this chan about 04:15 < magn3ts> golang.org 04:16 < ray24> done reading 04:16 < ray24> now what 04:16 < ray24> i don't get it 04:16 < magn3ts> ray24, uh, the language go? 04:16 < ray24> ok, now i understand a little 04:16 < ray24> so what's your specialty 04:16 < telexicon> ray24, its a new language that addresses a specific problem area 04:16 < ray24> oh, now I completely get it 04:16 < telexicon> ray24, systems language with modern concurrency 04:16 < ray24> Oh i see 04:17 < ray24> how come this is unpopular? 04:17 < magn3ts> who said so? 04:17 < telexicon> its supposed to take the simplicity and low-level abilities of C with very lightweight concurrency like erlang or haskell 04:17 -!- angasule [~angasule@190.2.33.49] has quit [Ping timeout: 240 seconds] 04:17 < ray24> have you mastered such language yet? 04:17 < telexicon> ray24, its a very young language 04:17 < ray24> that's good 04:17 < ray24> youth is key 04:17 < ray24> thanks for the info 04:18 < magn3ts> chomp, lol I hope I'm not driving you nuts... am I SOL if when I run it ... it asks for wpcap.dll... but I only have a libwpcap.a and a wpcap.lib ? 04:19 * magn3ts may have just said something excruciatingly dumb 04:19 < chomp> you should have the dll from winpcap 04:19 < chomp> if not you may need to install the actual winpcap package 04:19 < magn3ts> shhhh 04:19 < chomp> :) 04:19 < magn3ts> lol 04:20 < magn3ts> gorgeous, a pcap error, turns out windows doesn't have eth0 04:20 < magn3ts> oh this is fantastic. 04:20 < chomp> ohhhh burn 04:20 < magn3ts> This is just splendid, I'm so happy. This is the farthest I've gotten on windows with this project, it only took me rewriting it 3 times. 04:21 < chomp> whats referencing eth0? your code? 04:21 < magn3ts> there's lot of hard coded debauchery right now 04:21 < chomp> surely theres some way to enumerate interfaces with pcap 04:21 < magn3ts> yeah, my own stuff at this point 04:21 < magn3ts> there is. 04:21 < chomp> word 04:21 < magn3ts> thanks a ton chomp 04:22 < chomp> abso - lutely 04:40 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has joined #go-nuts 04:44 -!- kergoth [~kergoth@ip24-251-173-232.ph.ph.cox.net] has quit [Quit: Computer has gone to sleep.] 04:46 -!- cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has quit [Remote host closed the connection] 04:53 -!- xr0 [irclol@debianfoundation.org] has quit [Ping timeout: 240 seconds] 04:54 -!- xr0 [irclol@debianfoundation.org] has joined #go-nuts 04:57 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has quit [Remote host closed the connection] 04:57 -!- fabled [~fabled@83.145.235.194] has joined #go-nuts 04:58 -!- chrisdothall [~chris@segfault.net.nz] has joined #go-nuts 05:05 -!- chanwit [~chanwit@49.48.101.121] has quit [Quit: Leaving.] 05:14 -!- chadkouse [~Adium@rrcs-74-218-87-242.central.biz.rr.com] has joined #go-nuts 05:16 -!- chomp [~chomp@c-67-186-35-69.hsd1.pa.comcast.net] has quit [Read error: Connection reset by peer] 05:16 -!- sunfmin [~sunfmin@115.238.44.107] has joined #go-nuts 05:17 -!- chomp [~chomp@c-67-186-35-69.hsd1.pa.comcast.net] has joined #go-nuts 05:17 -!- pingveno [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has quit [Read error: Operation timed out] 05:18 -!- bthomson [~bthomson@c-68-33-5-232.hsd1.va.comcast.net] has quit [Read error: Operation timed out] 05:18 * magn3ts does a jig 05:20 -!- bthomson [~bthomson@c-68-33-5-232.hsd1.va.comcast.net] has joined #go-nuts 05:21 -!- pingveno [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has joined #go-nuts 05:23 -!- vmil86 [~vmil86@78.57.227.12] has joined #go-nuts 05:25 -!- telexicon [~telexicon@unaffiliated/chowmeined] has quit [Ping timeout: 252 seconds] 05:38 -!- chanwit [~chanwit@223.204.54.181] has joined #go-nuts 05:38 -!- Queue29_ [~Queue29@173-8-182-114-SFBA.hfc.comcastbusiness.net] has joined #go-nuts 05:40 -!- telexicon [~telexicon@unaffiliated/chowmeined] has joined #go-nuts 05:46 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has quit [Remote host closed the connection] 05:51 -!- sunfmin [~sunfmin@115.238.44.107] has left #go-nuts [] 05:51 -!- sunfmin [~sunfmin@115.238.44.107] has joined #go-nuts 05:54 -!- telexicon [~telexicon@unaffiliated/chowmeined] has quit [Ping timeout: 252 seconds] 05:56 -!- skelterjohn [~jasmuth@140.Red-88-7-208.staticIP.rima-tde.net] has joined #go-nuts 05:57 < sunfmin> Does anyone have used https://github.com/paulbellamy/mango ? 05:58 -!- mjml [~joya@174.3.227.184] has joined #go-nuts 05:58 -!- Queue29_ [~Queue29@173-8-182-114-SFBA.hfc.comcastbusiness.net] has quit [Remote host closed the connection] 06:01 -!- chrisdothall [~chris@segfault.net.nz] has quit [Quit: leaving] 06:01 -!- chrisdothall [~chris@segfault.net.nz] has joined #go-nuts 06:03 -!- iant [~iant@216.239.45.130] has quit [Read error: Connection reset by peer] 06:05 -!- chrisdothall [~chris@segfault.net.nz] has quit [Client Quit] 06:06 -!- chrisdothall [~chris@segfault.net.nz] has joined #go-nuts 06:06 -!- chrisdothall [~chris@segfault.net.nz] has quit [Client Quit] 06:06 -!- chrisdothall [~chris@segfault.net.nz] has joined #go-nuts 06:07 -!- chrisdothall [~chris@segfault.net.nz] has quit [Client Quit] 06:07 -!- chrisdothall [~chris@segfault.net.nz] has joined #go-nuts 06:08 < chrisdothall> quit 06:08 < chrisdothall> oops :) 06:08 -!- chrisdothall [~chris@segfault.net.nz] has quit [Client Quit] 06:09 -!- chrisdothall [~chris@segfault.net.nz] has joined #go-nuts 06:12 -!- chadkouse [~Adium@rrcs-74-218-87-242.central.biz.rr.com] has quit [Quit: Leaving.] 06:23 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts 06:23 -!- mode/#go-nuts [+v iant] by ChanServ 06:24 -!- noodles775 [~michael@g225095099.adsl.alicedsl.de] has joined #go-nuts 06:24 -!- noodles775 [~michael@g225095099.adsl.alicedsl.de] has quit [Changing host] 06:24 -!- noodles775 [~michael@canonical/launchpad/noodles775] has joined #go-nuts 06:25 -!- foocraft [~ewanas@78.101.63.193] has quit [Quit: if you're going....to san. fran. cisco!!!] 06:34 -!- chomp [~chomp@c-67-186-35-69.hsd1.pa.comcast.net] has quit [Quit: Leaving] 06:35 -!- fvbommel [~fvbommel_@86.86.15.250] has quit [Ping timeout: 240 seconds] 06:38 -!- photron_ [~photron@port-92-201-59-81.dynamic.qsc.de] has joined #go-nuts 06:40 -!- zippoxer [~zippoxer@109.66.213.16] has joined #go-nuts 06:40 -!- zippoxer [~zippoxer@109.66.213.16] has left #go-nuts [] 06:42 -!- napsy [~luka@193.2.66.6] has joined #go-nuts 06:52 -!- Tv__ [~Tv__@cpe-76-168-227-45.socal.res.rr.com] has quit [Ping timeout: 276 seconds] 06:53 -!- Fish [~Fish@9fans.fr] has joined #go-nuts 06:55 -!- brad_ [~brad@cpe-098-026-120-155.nc.res.rr.com] has quit [Ping timeout: 276 seconds] 06:55 -!- brad_ [~brad@cpe-098-026-120-155.nc.res.rr.com] has joined #go-nuts 06:57 -!- yogib [~yogib@131.234.59.64] has joined #go-nuts 07:05 -!- clr_ [~colin@c-67-183-138-2.hsd1.wa.comcast.net] has quit [Ping timeout: 252 seconds] 07:31 -!- GS [~gsv@108-61-238-49.southernonline.net] has joined #go-nuts 07:32 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 07:38 -!- moraes [~moraes@189.103.188.201] has joined #go-nuts 07:39 -!- fvbommel [~fvbommel_@wlan-247152.nbw.tue.nl] has joined #go-nuts 07:45 -!- GS [~gsv@108-61-238-49.southernonline.net] has quit [Remote host closed the connection] 07:46 -!- GS [~gsv@108-61-238-49.southernonline.net] has joined #go-nuts 07:49 < GS> I have been struggling to read from file of gobs. Except the 1st record all other records are nil. 07:50 < GS> My code is like in http://pastie.org/2216657 07:51 < GS> Unable to read any data written to the file. 07:51 < GS> Please help. 07:58 -!- fvbommel [~fvbommel_@wlan-247152.nbw.tue.nl] has quit [Read error: Operation timed out] 07:59 -!- thoin [5c674ac2@gateway/web/freenode/ip.92.103.74.194] has joined #go-nuts 08:07 -!- Project_2501 [~Marvin@82.84.68.131] has joined #go-nuts 08:13 -!- pyrhho [~pyrhho@host-92-27-75-48.static.as13285.net] has joined #go-nuts 08:23 -!- franciscosouza [~francisco@187.105.25.184] has quit [Quit: franciscosouza] 08:27 -!- magn3ts [~magn3ts@ip68-103-225-65.ks.ok.cox.net] has quit [Ping timeout: 252 seconds] 08:28 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|] 08:30 -!- cbeck [cbeck@gateway/shell/pdx.edu/x-tbpiqnlqjdzfzqrr] has quit [Read error: Connection reset by peer] 08:31 -!- cbeck [cbeck@gateway/shell/pdx.edu/x-foyfuskvmoikhkhw] has joined #go-nuts 08:31 -!- chanwit [~chanwit@223.204.54.181] has quit [Quit: Leaving.] 08:32 -!- magn3ts [~magn3ts@ip68-103-225-65.ks.ok.cox.net] has joined #go-nuts 08:33 < jessta_> GS: it might have to do with those errors you're not checking 08:34 -!- Kahvi [~Kahvi@a91-152-179-229.elisa-laajakaista.fi] has joined #go-nuts 08:36 -!- napsy [~luka@193.2.66.6] has quit [Ping timeout: 252 seconds] 08:37 < GS> I shall updte you immdtly 08:38 < aiju> in soviet russia, software updates you 08:42 < GS> Errors are like in http://pastie.org/2216825 08:42 < GS> Thanks jessta for ur interest 08:44 -!- Project-2501 [~Marvin@82.84.69.179] has joined #go-nuts 08:45 -!- noodles775 [~michael@canonical/launchpad/noodles775] has quit [Ping timeout: 260 seconds] 08:47 -!- Project_2501 [~Marvin@82.84.68.131] has quit [Ping timeout: 255 seconds] 08:50 -!- noodles775 [~michael@f053075174.adsl.alicedsl.de] has joined #go-nuts 08:50 -!- noodles775 [~michael@f053075174.adsl.alicedsl.de] has quit [Changing host] 08:50 -!- noodles775 [~michael@canonical/launchpad/noodles775] has joined #go-nuts 09:01 -!- chanwit [~chanwit@223.204.54.181] has joined #go-nuts 09:02 -!- ronnyy [~quassel@p4FF1C428.dip0.t-ipconnect.de] has joined #go-nuts 09:04 -!- ivan` [~ivan@unaffiliated/ivan/x-000001] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 09:04 -!- ivan` [~ivan@unaffiliated/ivan/x-000001] has joined #go-nuts 09:21 -!- mcclurmc_ [~mike@188-220-5-137.zone11.bethere.co.uk] has quit [Ping timeout: 276 seconds] 09:33 -!- erus` [~chatzilla@mailgate.ips-international.com] has joined #go-nuts 09:35 -!- tvw [~tv@212.79.9.150] has joined #go-nuts 09:36 -!- pyrhho [~pyrhho@host-92-27-75-48.static.as13285.net] has quit [Read error: Connection reset by peer] 09:37 -!- pyrhho [~pyrhho@host-92-27-75-48.static.as13285.net] has joined #go-nuts 09:39 -!- telexicon [~telexicon@unaffiliated/chowmeined] has joined #go-nuts 09:46 -!- noodles775 [~michael@canonical/launchpad/noodles775] has quit [Ping timeout: 240 seconds] 09:48 -!- fvbommel [~fvbommel_@86.86.15.250] has joined #go-nuts 09:48 -!- noodles775 [~michael@f053067196.adsl.alicedsl.de] has joined #go-nuts 09:48 -!- noodles775 [~michael@f053067196.adsl.alicedsl.de] has quit [Changing host] 09:48 -!- noodles775 [~michael@canonical/launchpad/noodles775] has joined #go-nuts 09:54 -!- skelterjohn [~jasmuth@140.Red-88-7-208.staticIP.rima-tde.net] has quit [Quit: skelterjohn] 09:55 -!- noodles775 [~michael@canonical/launchpad/noodles775] has quit [Ping timeout: 240 seconds] 09:56 -!- ccc1 [~Adium@140.109.98.187] has quit [Quit: Leaving.] 10:01 -!- arun_ [~arun@unaffiliated/sindian] has quit [Read error: Connection reset by peer] 10:02 -!- noodles775 [~michael@g229200133.adsl.alicedsl.de] has joined #go-nuts 10:02 -!- noodles775 [~michael@g229200133.adsl.alicedsl.de] has quit [Changing host] 10:02 -!- noodles775 [~michael@canonical/launchpad/noodles775] has joined #go-nuts 10:02 -!- zippoxer [~zippoxer@109.66.213.16] has joined #go-nuts 10:02 -!- arun_ [~arun@e71020.upc-e.chello.nl] has joined #go-nuts 10:02 -!- arun_ [~arun@e71020.upc-e.chello.nl] has quit [Changing host] 10:02 -!- arun_ [~arun@unaffiliated/sindian] has joined #go-nuts 10:05 < zippoxer> http: can I add an handler that will be executed on each request (before other handlers)? 10:06 < zippoxer> i want to check if the cookie is fine before each request, without writing the code again on each request handler. 10:06 -!- ivan` [~ivan@unaffiliated/ivan/x-000001] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 10:06 < jessta_> zippoxer: sure 10:06 < zippoxer> how? :) 10:06 -!- ivan` [~ivan@unaffiliated/ivan/x-000001] has joined #go-nuts 10:07 < jessta_> wrap your handles in another handler 10:08 < zippoxer> oh so i'll have to do the routing by myself? 10:08 < zippoxer> just asking - it won 10:08 < zippoxer> t 10:08 < zippoxer> be a problem 10:08 < zippoxer> jessta_: won't* 10:11 < jessta_> zippoxer: servemux does the routing 10:12 < jessta_> and servemux is also itself a Handler 10:12 < zippoxer> handler of "/" ? 10:13 < zippoxer> "wrap your handles in another handler" - maybe I didn't understand this right 10:14 < zippoxer> does it mean i need to have a handler let's say for "/", that will check the cookie and then will call other handlers according to the request path? 10:14 -!- chanwit [~chanwit@223.204.54.181] has quit [Quit: Leaving.] 10:17 < jessta_> zippoxer: you write a handler that will do your cookie stuff and then call a servemux to handle the routing 10:18 < zippoxer> okay, and how do i assign that handler to the server? 10:23 < jessta_> zippoxer: http://pastie.org/2217130 10:23 < jessta_> something like that 10:24 < zippoxer> jessta_: okay thanks =] 10:26 -!- Adys [~Adys@unaffiliated/adys] has quit [Ping timeout: 240 seconds] 10:35 -!- ronnyy [~quassel@p4FF1C428.dip0.t-ipconnect.de] has quit [Remote host closed the connection] 10:36 -!- noodles775 [~michael@canonical/launchpad/noodles775] has quit [Ping timeout: 250 seconds] 10:37 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has joined #go-nuts 10:43 -!- noodles775 [~michael@canonical/launchpad/noodles775] has joined #go-nuts 10:46 -!- fabled [~fabled@83.145.235.194] has quit [Quit: Ex-Chat] 10:51 -!- PortatoreSanoDiI [~Marvin@82.84.91.227] has joined #go-nuts 10:52 -!- Kahvi [~Kahvi@a91-152-179-229.elisa-laajakaista.fi] has quit [Quit: Lähdössä] 10:54 -!- Project-2501 [~Marvin@82.84.69.179] has quit [Ping timeout: 260 seconds] 11:01 -!- Kahvi [~Kahvi@a91-152-179-229.elisa-laajakaista.fi] has joined #go-nuts 11:05 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 11:06 -!- Adys [~Adys@unaffiliated/adys] has quit [Remote host closed the connection] 11:07 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 11:10 -!- telexicon [~telexicon@unaffiliated/chowmeined] has quit [Ping timeout: 252 seconds] 11:16 -!- arun_ [~arun@unaffiliated/sindian] has quit [Read error: Connection reset by peer] 11:20 -!- angasule [~angasule@190.2.33.49] has joined #go-nuts 11:22 -!- TeTeT [~spindler@178-26-66-244-dynip.superkabel.de] has joined #go-nuts 11:24 < TeTeT> hello, how can I convert a byte array to string in go? I've created a small udp server script and would like to print the received datagrams as string rather than as byte: http://pastebin.com/4rYwhPxw 11:29 < exch> TeTeT: str := string(myArr) 11:30 < exch> reverse works to: myBytes := []byte("foobar") 11:30 < exch> Or if you want unicode runes instead of bytes: myRunes := []int("foobar") 11:30 < TeTeT> hmm, not for me on ubuntu 10.04, $ gorun udp-server.go ... udp-server.go:27: cannot convert buf (type [32]uint8) to type string 11:31 < TeTeT> exch: thanks for your help 11:31 -!- rphillips [~rphillips@unaffiliated/rphillips] has quit [Ping timeout: 260 seconds] 11:31 < exch> ah, it's a fixed array. Make it into a slice: s := string(buf[:]) 11:31 < exch> the [:] bit indexes all elements of the array and yields a slice 11:32 < TeTeT> exch: rock'n'roll, it works with the slice 11:33 < exch> You'll find that Go prefers to use slices almost everywhere 11:33 -!- rphillips [~rphillips@unaffiliated/rphillips] has joined #go-nuts 11:33 < TeTeT> exch: do you know if the resulting string is as big as the fixed array or is it cut off at first \0 byte? 11:33 < TeTeT> just out of interest 11:34 -!- napsy [~luka@193.2.66.6] has joined #go-nuts 11:34 -!- alehorst [~alehorst@189.114.181.147.dynamic.adsl.gvt.net.br] has quit [Read error: Connection reset by peer] 11:35 < exch> It's a new copy of the byte slice, so I'm guessing it's only as big as it needs to be. You can test it by printing out the values of the builtin functions len() and cap() for both the string and byte slice 11:35 -!- chanwit [~chanwit@223.207.101.38] has joined #go-nuts 11:35 < exch> eg: len(str) or cap(str) 11:36 < aiju> 13:40 < TeTeT> exch: do you know if the resulting string is as big as the fixed array or is it cut off at first \0 byte? 11:36 < aiju> Go doesn't care about 0 bytes 11:36 < nicka> When would an array be used rather than a slice? 11:39 < TeTeT> thanks for the info, much appreciated 11:39 -!- tncardoso [~thiago@189.59.202.103] has joined #go-nuts 11:40 -!- kkress [~kkress@kkress2.xen.prgmr.com] has quit [Ping timeout: 240 seconds] 11:40 -!- Tekerson [~brenton@gir.tekerson.com] has quit [Ping timeout: 240 seconds] 11:40 -!- kkress [~kkress@kkress2.xen.prgmr.com] has joined #go-nuts 11:40 -!- Tekerson [~brenton@gir.tekerson.com] has joined #go-nuts 11:40 -!- zanget [~zanget@hurf.durf.me] has quit [Ping timeout: 276 seconds] 11:41 -!- mibocote_ [~matt@li161-224.members.linode.com] has quit [Ping timeout: 246 seconds] 11:41 -!- virtualsue [~chatzilla@nat/cisco/x-roeofshctxdhrlfk] has joined #go-nuts 11:41 -!- zanget [~zanget@hurf.durf.me] has joined #go-nuts 11:41 -!- sunfmin [~sunfmin@115.238.44.107] has quit [Quit: sunfmin] 11:42 -!- mibocote [~matt@li161-224.members.linode.com] has joined #go-nuts 11:43 -!- nicka1 [~lerp@142.176.0.21] has joined #go-nuts 11:43 < exch> nicka: In princile thats a matter of choice, but most (if not all) of the library fu ctions which take or yield lists, will be using slices. They are lighter and more versatile than arrays 11:45 < exch> A slice is really just a 'window' into a subset of an underlying array. Think of it as: struct Slice { int len; int capacity; void* data; } 11:45 < exch> where data points to an actual underlying array 11:46 -!- LeNsTR [~lenstr@unaffiliated/lenstr] has left #go-nuts [] 11:46 < nicka1> Yeah, thus my question 11:47 < nicka1> When are bare arrays necessary, I guess? 11:48 < nicka1> Since slices are just a thin layer on top 11:48 < nicka1> Just curious of their use case 11:50 -!- miker2 [~miker2@64.55.31.190] has joined #go-nuts 11:51 < exch> I haven't really found them necessary at all. 11:51 < exch> For my use cases anyways 11:51 -!- alehorst [~alehorst@189.114.187.105] has joined #go-nuts 11:53 -!- Fish- [~Fish@9fans.fr] has joined #go-nuts 11:55 -!- Fish [~Fish@9fans.fr] has quit [Ping timeout: 240 seconds] 12:06 -!- Adys [~Adys@unaffiliated/adys] has quit [Ping timeout: 252 seconds] 12:11 -!- telexicon [~telexicon@unaffiliated/chowmeined] has joined #go-nuts 12:20 -!- alehorst [~alehorst@189.114.187.105] has quit [Remote host closed the connection] 12:21 -!- TeTeT [~spindler@178-26-66-244-dynip.superkabel.de] has quit [Quit: Leaving] 12:21 -!- alehorst [~alehorst@189.114.187.105] has joined #go-nuts 12:22 < Kahvi> My only use for fixed size array has been for filling a struct using bianry.Read. 12:22 < Kahvi> As it needs fixed size fields, I think. 12:23 < Kahvi> Didn't try if it works if I make() the slice of correct size though 12:24 < jessta_> nicka1: making a struct with a fixed size array that you can then slice on 12:24 -!- napsy [~luka@193.2.66.6] has quit [Ping timeout: 255 seconds] 12:26 -!- erus` [~chatzilla@mailgate.ips-international.com] has quit [Remote host closed the connection] 12:26 -!- angasule [~angasule@190.2.33.49] has quit [Ping timeout: 246 seconds] 12:27 -!- tncardoso [~thiago@189.59.202.103] has quit [Quit: bye] 12:29 -!- erus` [~chatzilla@mailgate.ips-international.com] has joined #go-nuts 12:33 -!- franciscosouza [~francisco@187.105.25.184] has joined #go-nuts 12:47 -!- franciscosouza [~francisco@187.105.25.184] has quit [Quit: franciscosouza] 13:01 -!- tgall_foo [~tgall@206.9.88.154] has quit [Ping timeout: 276 seconds] 13:04 -!- niemeyer [~niemeyer@12.236.237.2] has joined #go-nuts 13:05 < pyrhho> is there an AMQP library for go? 13:05 < pyrhho> need to connect to a rabbitMQ server 13:06 < pyrhho> I don't see one on godashboard, but I'm curious if anyone knows of one 13:10 -!- LeNsTR [~lenstr@unaffiliated/lenstr] has joined #go-nuts 13:13 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has joined #go-nuts 13:14 -!- Dr_Who [~tgall_foo@linaro/tgall-foo] has joined #go-nuts 13:15 -!- tncardoso [~thiagon@150.164.2.20] has joined #go-nuts 13:16 -!- sniper506th [~sniper506@rrcs-70-61-192-18.midsouth.biz.rr.com] has joined #go-nuts 13:16 < exch> pyrhho: maybe on here somewhere http://go-lang.cat-v.org/ Otherwise I wouldn't know 13:17 < pyrhho> cool thanks 13:21 -!- ArgonneIntern [~gauge@mcswl183.mcs.anl.gov] has joined #go-nuts 13:23 -!- Fish [~Fish@88.162.170.133] has joined #go-nuts 13:23 -!- Fish- [~Fish@9fans.fr] has quit [Ping timeout: 252 seconds] 13:23 -!- bren2010 [~bren2010@24-179-19-25.dhcp.ahvl.nc.charter.com] has joined #go-nuts 13:24 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Quit: Leaving.] 13:25 -!- ccc1 [~Adium@220-136-27-52.dynamic.hinet.net] has joined #go-nuts 13:25 -!- gridaphobe [~gridaphob@cpe-74-68-151-24.nyc.res.rr.com] has joined #go-nuts 13:25 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has quit [Read error: Connection reset by peer] 13:26 -!- franciscosouza [~francisco@201.7.186.67] has joined #go-nuts 13:32 -!- alehorst [~alehorst@189.114.187.105] has quit [Remote host closed the connection] 13:34 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 13:36 -!- gnuvince|work [8e538a09@gateway/web/freenode/ip.142.83.138.9] has joined #go-nuts 13:37 -!- iant [~iant@67.218.103.165] has joined #go-nuts 13:37 -!- mode/#go-nuts [+v iant] by ChanServ 13:37 -!- cbeck [cbeck@gateway/shell/pdx.edu/x-foyfuskvmoikhkhw] has quit [Read error: Connection reset by peer] 13:37 -!- cbeck [cbeck@gateway/shell/pdx.edu/x-zogybuyvmpuvqccy] has joined #go-nuts 13:38 < zippoxer> do you think Go in AppEngine is faster than Python? (I once saw that Python overtaken Java because of it's ORM or whatever) 13:40 < zippoxer> i really need better performance than Python for processing thousands of rows from the datastore 13:40 * exch has no experience with appengine 13:44 -!- magn3ts [~magn3ts@ip68-103-225-65.ks.ok.cox.net] has quit [Ping timeout: 255 seconds] 13:45 -!- alehorst [~alehorst@189.114.187.105] has joined #go-nuts 13:46 -!- magn3ts [~magn3ts@ip68-103-225-65.ks.ok.cox.net] has joined #go-nuts 13:48 -!- kergoth [~kergoth@ip24-251-173-232.ph.ph.cox.net] has joined #go-nuts 13:49 < Namegduf> zippoxer: Go is/can be quite a bit faster in general, which I assume would apply to on AppEngine 13:50 < telexicon> zippoxer, pypy 13:50 < erus`> telexicon: you cant run pypy on appengine 13:51 < telexicon> oh right, appengine 13:56 < ww> why is everyone so concerned with speed? 13:56 < exch> Speed gets you fro A to B faster! 13:56 < exch> *from 13:57 -!- pjacobs [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has joined #go-nuts 13:57 < exch> Besides, why make a user wait for an app when he'she doesn't have to? 13:58 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has joined #go-nuts 13:58 -!- ccc1 [~Adium@220-136-27-52.dynamic.hinet.net] has quit [Quit: Leaving.] 13:59 < ww> can a user tell the difference between 100ms and 50ms? 13:59 -!- aat [~aat@rrcs-184-75-54-130.nyc.biz.rr.com] has joined #go-nuts 13:59 < telexicon> definitely 13:59 * ww suspects most often not 14:00 < Namegduf> Agile, Synergy, Depends 14:00 < Namegduf> Er 14:00 < Namegduf> Ignore that, I was listing words I'd used as ship names in a game. 14:00 < Namegduf> *Depends. 14:00 < Namegduf> 100ms won't be too noticable on its own. 14:00 -!- ccc1 [~Adium@220-136-27-52.dynamic.hinet.net] has joined #go-nuts 14:00 < Namegduf> 100ms * however many operations happen to make whatever the user asked for happen 14:01 < Namegduf> Quite well could be. 14:01 < telexicon> it makes a difference if you want something to be responsive 14:01 < Namegduf> And in that context 100ms vs 50ms would be major. 14:01 < crest> ww: worstcase ftp with 10 * rtt per LIST 14:02 < Namegduf> Yeah. 14:02 -!- r_linux [~r_linux@static.200.198.180.250.datacenter1.com.br] has joined #go-nuts 14:02 < exch> webapps are slow enough as it is with all the http overhead on xhr requests. The difference between 50ms and 100ms is something I would certainly consider going for 14:02 < Namegduf> Speed is important for throughput, anyways. 14:03 -!- nekoh [~nekoh@dslb-178-004-071-077.pools.arcor-ip.net] has joined #go-nuts 14:03 < Namegduf> In his specific case, it's because he needs to process a lot of data, so I'm not sure the 100ms vs 50ms example is apt. 14:03 -!- lucian [~lucian@78-86-217-168.zone2.bethere.co.uk] has joined #go-nuts 14:05 -!- aiju [~aiju@unaffiliated/aiju] has quit [Ping timeout: 260 seconds] 14:06 -!- qrush [~u1528@gateway/web/irccloud.com/x-oqdrmmswvqcvvqob] has quit [Ping timeout: 258 seconds] 14:06 -!- aiju [~aiju@unaffiliated/aiju] has joined #go-nuts 14:06 -!- icey [u2593@gateway/web/irccloud.com/x-apkzldlslrypswjs] has quit [Ping timeout: 252 seconds] 14:06 -!- Crnobog|Work [~u1041@gateway/web/irccloud.com/x-olpmtpqbybqjxrdg] has quit [Ping timeout: 258 seconds] 14:08 < uriel> 13:38 < zippoxer> do you think Go in AppEngine is faster than Python? (I once saw that Python overtaken Java because of it's ORM or whatever) 14:09 < uriel> I don't remember who did it, but somebody benchmarked Go on appengine to be at least a couple of magnitude orders faster than python 14:09 < uriel> the problem there was just Java sucking, as always 14:09 < uriel> Go for obvious reasons needs no ORM ;P 14:09 -!- stalled [~stalled@unaffiliated/stalled] has quit [Ping timeout: 252 seconds] 14:10 -!- qrush [u1528@gateway/web/irccloud.com/x-tsiiohstkykquirj] has joined #go-nuts 14:12 -!- angasule [~angasule@190.2.33.49] has joined #go-nuts 14:13 -!- aiju [~aiju@unaffiliated/aiju] has quit [Ping timeout: 252 seconds] 14:13 -!- Fish- [~Fish@9fans.fr] has joined #go-nuts 14:15 -!- aiju [~aiju@unaffiliated/aiju] has joined #go-nuts 14:15 -!- Fish [~Fish@88.162.170.133] has quit [Ping timeout: 258 seconds] 14:15 -!- Crnobog|Work [u1041@gateway/web/irccloud.com/x-vlngfsbvfmkiwanf] has joined #go-nuts 14:15 -!- Kai` [u327@gateway/web/irccloud.com/x-jsfkbpfgojbjddzg] has quit [Max SendQ exceeded] 14:16 -!- Kai` [u327@gateway/web/irccloud.com/x-plctknbbnefosjji] has joined #go-nuts 14:17 -!- icey [u2593@gateway/web/irccloud.com/x-hwwmqbcceqpdzqgl] has joined #go-nuts 14:18 -!- stalled [~stalled@unaffiliated/stalled] has joined #go-nuts 14:22 -!- Fish- [~Fish@9fans.fr] has quit [Quit: WeeChat 0.3.5] 14:22 -!- aat [~aat@rrcs-184-75-54-130.nyc.biz.rr.com] has quit [Read error: Connection reset by peer] 14:24 -!- Fish [~Fish@9fans.fr] has joined #go-nuts 14:28 -!- ArgonneIntern [~gauge@mcswl183.mcs.anl.gov] has quit [Ping timeout: 252 seconds] 14:29 -!- awidegreen [~quassel@h-170-226.a212.priv.bahnhof.se] has joined #go-nuts 14:31 -!- tgall_foo [~tgall@206.9.88.154] has joined #go-nuts 14:32 -!- GS [~gsv@108-61-238-49.southernonline.net] has quit [Remote host closed the connection] 14:33 -!- GS [~gsv@108-61-238-49.southernonline.net] has joined #go-nuts 14:33 -!- sacho [~sacho@87.126.39.0] has quit [Read error: Connection reset by peer] 14:43 -!- GoBIR [~gobir@70-90-168-189-SFBACalifornia.hfc.comcastbusiness.net] has quit [Read error: Connection reset by peer] 14:45 -!- molto_alfredo1 [~molto_alf@142.176.0.21] has joined #go-nuts 14:45 -!- GoBIR [~gobir@70-90-168-189-SFBACalifornia.hfc.comcastbusiness.net] has joined #go-nuts 14:48 -!- molto_alfredo [~molto_alf@142.176.0.21] has quit [Ping timeout: 264 seconds] 14:48 -!- napsy [~luka@88.200.96.18] has quit [Quit: Lost terminal] 14:56 -!- iant [~iant@67.218.103.165] has quit [Quit: Leaving.] 14:58 < zozoR> uriel, why does go not need orm? 14:59 < exch> Go doesn't have an object model where an ORM would make sense 14:59 -!- lucian [~lucian@78-86-217-168.zone2.bethere.co.uk] has quit [Remote host closed the connection] 15:00 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has quit [Quit: Ex-Chat] 15:01 -!- Queue29_ [~Queue29@173-8-182-114-SFBA.hfc.comcastbusiness.net] has joined #go-nuts 15:04 -!- iant [~iant@nat/google/x-uqtqyqzcvdvstzji] has joined #go-nuts 15:04 -!- mode/#go-nuts [+v iant] by ChanServ 15:07 < zozoR> go doesnt have incompatible type systems anyway? :P 15:07 -!- jstemmer [~cheetah@mrpwn.stemmertech.com] has quit [Quit: leaving] 15:08 -!- mgray [~mgray@li226-224.members.linode.com] has joined #go-nuts 15:09 -!- ShadowIce [~pyoro@HSI-KBW-109-193-121-123.hsi7.kabel-badenwuerttemberg.de] has joined #go-nuts 15:09 -!- ShadowIce [~pyoro@HSI-KBW-109-193-121-123.hsi7.kabel-badenwuerttemberg.de] has quit [Changing host] 15:09 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts 15:12 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has joined #go-nuts 15:17 -!- Natch| [~natch@178.73.218.138] has quit [Ping timeout: 276 seconds] 15:18 -!- noodles775 [~michael@canonical/launchpad/noodles775] has quit [Ping timeout: 250 seconds] 15:20 -!- noodles775 [~michael@g229204086.adsl.alicedsl.de] has joined #go-nuts 15:20 -!- noodles775 [~michael@g229204086.adsl.alicedsl.de] has quit [Changing host] 15:20 -!- noodles775 [~michael@canonical/launchpad/noodles775] has joined #go-nuts 15:21 -!- Project_2501 [~Marvin@82.84.68.75] has joined #go-nuts 15:21 -!- bren2010 [~bren2010@24-179-19-25.dhcp.ahvl.nc.charter.com] has quit [Ping timeout: 260 seconds] 15:21 < jlaffaye> git on google code \o/ 15:22 -!- foocraft [~ewanas@89.211.190.38] has joined #go-nuts 15:23 -!- Natch| [~natch@178.73.218.138] has joined #go-nuts 15:24 -!- PortatoreSanoDiI [~Marvin@82.84.91.227] has quit [Ping timeout: 255 seconds] 15:24 -!- robteix [~robteix@192.55.54.36] has joined #go-nuts 15:27 -!- firwen [~firwen@gex01-1-78-234-55-225.fbx.proxad.net] has joined #go-nuts 15:29 -!- pharris [~Adium@rhgw.opentext.com] has joined #go-nuts 15:32 -!- noodles775 [~michael@canonical/launchpad/noodles775] has quit [Ping timeout: 240 seconds] 15:34 -!- noodles775 [~michael@g229200034.adsl.alicedsl.de] has joined #go-nuts 15:34 -!- noodles775 [~michael@g229200034.adsl.alicedsl.de] has quit [Changing host] 15:34 -!- noodles775 [~michael@canonical/launchpad/noodles775] has joined #go-nuts 15:35 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has quit [Ping timeout: 255 seconds] 15:35 -!- Queue29_ [~Queue29@173-8-182-114-SFBA.hfc.comcastbusiness.net] has quit [Remote host closed the connection] 15:36 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has joined #go-nuts 15:38 < ray24> I got big nuts 15:39 < ray24> I'm glad my nuts are so big 15:39 -!- noodles775 [~michael@canonical/launchpad/noodles775] has quit [Read error: Connection reset by peer] 15:40 < ray24> To end with a positive note 15:40 < ray24> Hope you guys have a great day 15:43 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 15:47 < nicka1> jlaffaye: git on google code? 15:47 < jlaffaye> nicka1: yup! 15:47 -!- jstemmer [~cheetah@mrpwn.stemmertech.com] has joined #go-nuts 15:48 < ray24> I got the biggest dick in here 15:49 -!- franciscosouza [~francisco@201.7.186.67] has quit [Quit: franciscosouza] 15:49 -!- yogib [~yogib@131.234.59.64] has quit [Quit: yogib] 15:49 -!- meling [~meling@12.238.254.22] has quit [Remote host closed the connection] 15:49 < ray24> if u got a girlfrend, she'd prolly dig me 15:50 < nicka1> is the git feature live now or are you just going by the native git support issue 15:50 < ray24> yo whhhhhy i get the feeling that Im being ignored ? 15:50 < ray24> :( 15:51 < nicka1> we're intimidated by the size of your junk 15:51 < ray24> yeah : ) tats what i thought so too 15:52 -!- erus` [~chatzilla@mailgate.ips-international.com] has quit [Quit: ChatZilla 0.9.87 [Firefox 5.0/20110615151330]] 15:52 < ray24> =] 15:52 -!- franciscosouza [~francisco@201.7.186.67] has joined #go-nuts 15:53 < kergoth> you're lucky no one has gone to the freenode admins to get you removed from the network yet 15:53 < kergoth> just a matter of time 15:53 -!- kergoth [~kergoth@ip24-251-173-232.ph.ph.cox.net] has quit [Read error: Connection reset by peer] 15:53 < ray24> I already confessed 15:53 -!- iant [~iant@nat/google/x-uqtqyqzcvdvstzji] has quit [Ping timeout: 260 seconds] 15:53 < ray24> I' pretty much friends with all freenode admins 15:53 < ray24> :D 15:56 < ray24> u jelly 15:57 < nicka1> thoroughly gelatinous 15:58 -!- tvw [~tv@212.79.9.150] has quit [Remote host closed the connection] 15:58 -!- GS [~gsv@108-61-238-49.southernonline.net] has quit [Remote host closed the connection] 16:00 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has quit [Remote host closed the connection] 16:01 -!- sacho [~sacho@87.126.39.0] has joined #go-nuts 16:04 -!- Queue29 [~seth@bastion.sfo1.yelpcorp.com] has quit [Remote host closed the connection] 16:05 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-151-132.clienti.tiscali.it] has joined #go-nuts 16:05 -!- gsv [~chatzilla@108-61-238-49.southernonline.net] has joined #go-nuts 16:06 -!- Queue29 [~Queue29@egress-w.sfo1.yelpcorp.com] has joined #go-nuts 16:07 -!- gsv [~chatzilla@108-61-238-49.southernonline.net] has quit [Remote host closed the connection] 16:08 -!- Project_2501 [~Marvin@82.84.68.75] has quit [Ping timeout: 240 seconds] 16:08 -!- GS [~gsv@108-61-238-49.southernonline.net] has joined #go-nuts 16:10 -!- GS [~gsv@108-61-238-49.southernonline.net] has quit [Remote host closed the connection] 16:10 -!- GS [~gsv@108-61-238-49.southernonline.net] has joined #go-nuts 16:12 -!- thoin [5c674ac2@gateway/web/freenode/ip.92.103.74.194] has quit [Quit: Page closed] 16:15 < dforsyth> whats this about git on google code? 16:15 < dforsyth> oh snap git on google code 16:16 < nicka1> http://code.google.com/p/support/issues/detail?id=2454 16:17 -!- ronnyy [~quassel@p4FF1C428.dip0.t-ipconnect.de] has joined #go-nuts 16:21 -!- ccc1 [~Adium@220-136-27-52.dynamic.hinet.net] has quit [Quit: Leaving.] 16:23 -!- yogib [~yogib@dslb-178-009-077-191.pools.arcor-ip.net] has joined #go-nuts 16:25 < vikstrom> vacation start in 30 mins 16:25 -!- pyrhho [~pyrhho@host-92-27-75-48.static.as13285.net] has quit [Read error: Connection reset by peer] 16:25 -!- jimbaker [~jbaker@canonical/jimbaker] has quit [Ping timeout: 255 seconds] 16:26 -!- pyrhho [~pyrhho@host-92-27-75-48.static.as13285.net] has joined #go-nuts 16:27 -!- awidegreen [~quassel@h-170-226.a212.priv.bahnhof.se] has quit [Remote host closed the connection] 16:29 < ray24> vacation doesnt start in 30 mins for u sorry 16:29 < ray24> you' 16:30 < ray24> you're confined for the rest of ur life 16:31 -!- sniper506th [~sniper506@rrcs-70-61-192-18.midsouth.biz.rr.com] has quit [Quit: Leaving...] 16:34 < vikstrom> i'd prefer confinement before C# right now... 16:34 < vikstrom> cheers! 16:34 -!- vikstrom [~vikstrom@stockholm.ardendo.se] has left #go-nuts [] 16:37 -!- pyrhho [~pyrhho@host-92-27-75-48.static.as13285.net] has quit [Quit: pyrhho] 16:38 -!- pyrhho [~pyrhho@host-92-27-75-48.static.as13285.net] has joined #go-nuts 16:38 -!- pyrhho [~pyrhho@host-92-27-75-48.static.as13285.net] has quit [Client Quit] 16:41 -!- cafesofie [~cafesofie@pool-173-77-24-106.nycmny.east.verizon.net] has joined #go-nuts 16:43 -!- tncardoso [~thiagon@150.164.2.20] has quit [Quit: Leaving] 16:43 -!- nekoh [~nekoh@dslb-178-004-071-077.pools.arcor-ip.net] has quit [Ping timeout: 255 seconds] 16:46 < chanwit> any one heard of Go implementation on JVM? 16:46 < exch> It came up last week I think 16:46 < dforsyth> chanwit: http://code.google.com/p/jgo/ 16:47 < dforsyth> incomplete, i think. havent really looked at it 16:47 < kevlar_work> it was started awhile ago, stalled, and has been moving along some recently. 16:47 < chanwit> dforsyth: yes, it seems to have only a lexer & parser. 16:47 < kevlar_work> They've apparently just recently implemented slices. 16:48 < kevlar_work> there are lots of interesting things it could do, but I don't know if the jvm has nice ways to do things like panic, defer, segmented stacks, etc. 16:49 -!- skelterjohn [~jasmuth@140.Red-88-7-208.staticIP.rima-tde.net] has joined #go-nuts 16:49 < chanwit> kevlar_work: I think slices are not hard to implement in JVM. The hard part would be the interface concept. 16:49 -!- nekoh [~nekoh@dslb-178-004-072-170.pools.arcor-ip.net] has joined #go-nuts 16:49 -!- GS [~gsv@108-61-238-49.southernonline.net] has quit [Remote host closed the connection] 16:49 < kevlar_work> chanwit, hence them recently adding slices. I'm not sure about interfaces; they're pretty simple, and java does have pointers... 16:50 < chanwit> kevlar_work: hmmm, what do you mean by Java does have pointers? 16:51 < kevlar_work> it just may end up being slower than expected because the jvm probably doesn't have easy ways to do the interface thing compared to normal java object relationships. 16:51 < kevlar_work> chanwit, java objects are pointers 16:51 -!- kergoth [~kergoth@ip24-251-173-232.ph.ph.cox.net] has joined #go-nuts 16:51 < kevlar_work> (well, just as much as Go interfaces are pointers) 16:52 < chanwit> kevlar_work: you got a good point then. If it'll be slower than Go, is it worth to have another implementation on JVM? (I'm asking because I'm planning to do so.) 16:54 -!- erus` [~chatzilla@host86-186-72-163.range86-186.btcentralplus.com] has joined #go-nuts 16:56 -!- serbaut [~joakims@tc-officefw.trioptima.com] has quit [Quit: Leaving.] 16:56 < skelterjohn> honestly it sounds like a thankless and difficult task 16:56 < skelterjohn> difficult because go is still changing 16:56 < skelterjohn> though, import "java" might be interesting :) 16:57 -!- Kahvi [~Kahvi@a91-152-179-229.elisa-laajakaista.fi] has quit [Read error: Operation timed out] 16:58 -!- Kahvi [~Kahvi@a91-152-179-229.elisa-laajakaista.fi] has joined #go-nuts 16:59 < chanwit> skelterjohn: import "java" is indeed interesting 17:02 < skelterjohn> i almost think it might be easier to do that within the current impl, though 17:07 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 17:08 < zozoR> i like how java is so bad, that people have made compilers for a million other languages 17:08 < zozoR> compilers that compile to java byte code that is 17:10 < nicka1> the jvm is an attractive target 17:13 < chanwit> probably 7g and it produces .jar ? 17:13 -!- jimbaker [~jbaker@canonical/jimbaker] has joined #go-nuts 17:13 < chanwit> I am wondering why the number skips (5g, 6g then 8g) 17:14 -!- iant [~iant@nat/google/x-ngfuepksmyvfpami] has joined #go-nuts 17:14 -!- mode/#go-nuts [+v iant] by ChanServ 17:14 < skelterjohn> 6 is for 64bit 17:14 -!- lucian [~lucian@78-86-217-168.zone2.bethere.co.uk] has joined #go-nuts 17:14 < skelterjohn> 8 is for x86 17:14 < skelterjohn> don't know what 5 is 17:15 < ray24> skelterjohn, calm down 17:15 < ray24> you nutter 17:16 < erus`> any of you guys on google+? 17:16 -!- franciscosouza [~francisco@201.7.186.67] has quit [Quit: franciscosouza] 17:16 < skelterjohn> yes 17:16 < ray24> Uh ? if i said yes, r u gonna ask for a free friend request? 17:16 < ray24> and if i said no, r u gonna hold a grudge and try to hack me 17:16 -!- chomp [~chomp@dap-209-166-184-50.pri.tnt-3.pgh.pa.stargate.net] has joined #go-nuts 17:16 < chanwit> erus`: I am 17:17 < erus`> i have it 17:17 < ray24> Yeah so 17:17 < erus`> but i have like 2 friends 17:17 < ray24> So what 17:17 < ray24> sad, keep being a martyr 17:17 -!- jmil [~jmil@2001:468:1802:e148:223:32ff:feb1:9dfc] has joined #go-nuts 17:17 < ray24> i aint gonna add u 17:17 < skelterjohn> why are you here? 17:17 < ray24> me? 17:17 < skelterjohn> no, the other guy 17:17 < ray24> he's prolly here to make friends 17:17 < chomp> wasn't ray24 trolling here last night 17:17 < ray24> to make himself seem cooler 17:18 < ray24> nope... 17:18 < skelterjohn> erus`? he's here because he writes go code 17:18 < chomp> yeah... probably 17:18 -!- franciscosouza [~francisco@201.7.186.67] has joined #go-nuts 17:18 < ray24> I don't troll bro.. i roll 17:18 < skelterjohn> if you have no interest in go, and just want to spout nonsense, you can probably find a better place to do it 17:18 < chomp> ah, a very important distinction 17:18 < erus`> yeah i write go code! not good code but code non the less! 17:18 < ray24> Go? the board game? 17:18 < ray24> rofl 17:19 < skelterjohn> no 17:19 < ray24> Who came up with these programming languages? 17:19 < skelterjohn> the programming language 17:19 < ray24> lol 17:19 < ray24> I dont even code man 17:19 < chomp> go was invented by space men from the future. 17:19 < skelterjohn> so, waste your time somewhere else 17:19 < ray24> I dont even know what C++ 17:19 < ray24> is 17:19 < ray24> lol 17:19 < chomp> yawn. 17:19 < ray24> U think u smarter than me 17:19 < erus`> skelterjohnpm me your name :) 17:19 < ray24> cuz u spend 11 hours a day coding 17:19 < ray24> ^LMAO 17:19 < ray24> erus`, = weirdo 17:20 < ray24> god damn.... only creeps 17:20 < ray24> online 17:20 < erus`> haha 17:20 < ronnyy> can i convert a string to a byteslice? 17:20 < erus`> []byte(mystring) 17:20 < ray24> erus` prolly some weird dude with a weird face 17:20 < ronnyy> thx 17:20 < erus`> im quite pretty actually 17:20 < ray24> gremlin 17:21 < chomp> i have seven dicks protruding from my skull. 17:21 < chomp> each with their own brain, each one autonomous. 17:21 < erus`> i had a girlfriend too until today 17:21 < ray24> that's nasty 17:21 < ray24> ROFL 17:21 < ray24> erus`, = weird 17:21 < erus`> why the comma? 17:21 < ray24> "i had a girlfriend until today so I decide to add people on google+ to replenish my soul" 17:21 < ray24> ROFLLL weird 17:22 -!- clr_ [~colin@c-67-183-138-2.hsd1.wa.comcast.net] has joined #go-nuts 17:22 < ray24> u creeping me out man 17:22 < erus`> i just wanna feel loved again 17:22 < ray24> no one cares about u 17:22 < ray24> son 17:22 * kevlar_work checks to make sure he's still in #go-nuts 17:22 < ray24> ur gf prolly dumede u cuz 17:22 < ray24> u ugly 17:22 < ray24> dumped* 17:22 < chomp> kevlar_work, some little kid found an IRC client 17:22 * exch sets mode +q *@* 17:23 < ray24> rofl 17:23 < erus`> ray24: just jelly because i have google+ 17:23 < ray24> ur ex-gf prolly doing some black guy right now 17:23 < skelterjohn> erus`: it's just my gmail address 17:23 < ray24> u're hurt inside 17:23 < chomp> i thought trolls were supposed to be entertaining 17:23 < ray24> she prolly taking it up the butt as we speak 17:23 < chomp> this is like not even 4chan quality stuff here 17:24 < str1ngs> ray24: racist remarks are against freenode terms of service. 17:24 < skelterjohn> a good troll will say something to inflame the people listening and cause them to argue 17:24 < erus`> how long was he idling? 17:24 < chomp> is it like amateur hour or something? open mic trolling? 17:24 < skelterjohn> this is kinda blah 17:24 < ray24> i didnt make any racist rmark 17:24 * exch pokes adg . Cleanup on isle 3 17:24 < ray24> newbie 17:24 < ray24> lol 17:24 < chomp> yeah shallow schoolyard 'insults' arent really very interesting 17:24 < ray24> skelterjohn, unfortunately, you couldn't do the same even when ur not a troll 17:24 < ray24> damn 17:24 < chomp> start a religious flamewar or something, jesus. 17:25 < erus`> start with "go suck because" 17:25 < skelterjohn> i don't say things to cause people to argue when i'm not a troll? how unfortunate 17:25 < ray24> I don't believe in God 17:25 < ray24> skelterjohn, you're just a lonely 40 year old virgin 17:25 < skelterjohn> ok 17:25 < nicka1> this is a confusing conversation with ray set to ignore 17:25 < skelterjohn> haha 17:25 < chomp> yeah we actually started a club IRL for 40 year old virgins who like go 17:26 < ray24> cool nicka cuz technically u dont exist 17:26 < ray24> u dont need to announce bro 17:26 < ray24> lmaooo 17:26 -!- sniper506th [~sniper506@65.240.149.74] has joined #go-nuts 17:26 < skelterjohn> iant or adg? 17:26 -!- mode/#go-nuts [+o iant] by ChanServ 17:26 < chomp> whee. 17:26 < ray24> hey, it's like going to a college party and announce "i just hate this beer guys" 17:26 < kevlar_work> woah, as if on command. 17:26 < ray24> and no one cares LMAOOOO 17:27 -!- ray24 was kicked from #go-nuts by iant [ray24] 17:27 < skelterjohn> ty 17:27 -!- mode/#go-nuts [+q ray24!*@*] by iant 17:27 < kevlar_work> iant++ 17:27 -!- ray24 [~ray24@adsl-70-132-6-78.dsl.snfc21.sbcglobal.net] has joined #go-nuts 17:27 -!- ray24 was kicked from #go-nuts by iant [ray24] 17:27 < chomp> actually +q is even better 17:27 <@iant> yes, just did that too, I think 17:28 < erus`> skelterjohn are you drinking coffee in your pic? 17:28 < skelterjohn> i am 17:28 < erus`> phew 17:28 < skelterjohn> that's me, the 40 year old virgin, with my wife 17:29 < kevlar_work> wow, he's threatening me in PM. 17:29 < erus`> you dont look like a 40 year old virgin 17:29 < kevlar_work> and I wasn't even participating. 17:29 < chomp> you should really talk to her about that john 17:29 <@iant> he's randomizing on me too, bizarre 17:29 < str1ngs> kevlar_work: tell them in #freenode 17:29 < skelterjohn> just don't respond 17:30 < erus`> are there logs hosted anywhere? 17:30 < skelterjohn> erus`, you are tom? 17:30 < erus`> yeah 17:30 < skelterjohn> i've got a decent sized golang circle going on 17:30 < skelterjohn> 15 people 17:31 < chomp> aw i join golang circle 17:31 < str1ngs> google code has git now? 17:31 < chomp> yarp 17:31 < chanwit> really? 17:31 < skelterjohn> interesting 17:31 < str1ngs> can we get a git mirror? 17:31 < chanwit> cool 17:31 < kevlar_work> oh, did they finally add git? 17:31 < kevlar_work> nice. 17:32 < kevlar_work> did they add an easy way to import from svn/hg? 17:32 -!- ray24 [~ray24@adsl-70-132-6-78.dsl.snfc21.sbcglobal.net] has joined #go-nuts 17:32 < skelterjohn> the thing i liked better about github, though, was not the repository but the way it was easy to fork and pull projects, and that you don't have to worry about name conflicts 17:32 < chanwit> str1ngs: you won't get the version number if you build Go from git. 17:32 < str1ngs> chanwit: I dont care so much. 17:32 < str1ngs> chanwit: generally I mirror to get from branching etc 17:32 < exch> my Go circle is a bit limited. Circles shold be shareable 17:32 < skelterjohn> not the repository -> not that it had git instead of hg 17:33 < skelterjohn> exch: i agree 17:33 < chomp> that would be an interesting feature, circle merging 17:33 < skelterjohn> well, i guess those would be groups instead of circles 17:33 < chomp> or even shared / linked circles 17:33 -!- XenoPhoenix [~Xeno@cpc13-aztw24-2-0-cust23.aztw.cable.virginmedia.com] has quit [Quit: "Wait... what?!"] 17:33 < chomp> ah 17:33 < kevlar_work> I want to be able to make venn diagrams, yo 17:33 < erus`> visible circles 17:33 < chomp> venn diagrams! 17:33 < chomp> in fact we could have a full toolbox of boolean set operations 17:33 < chomp> ! 17:33 < chanwit> str1ngs: so do I 17:33 < chomp> the mathemetician's social network >.> 17:34 < nicka1> Yes, set operations for defining circles please 17:34 < skelterjohn> MyCircle <- the circle that contains itself 17:34 < chomp> mind, blown 17:34 -!- XenoPhoenix [~Xeno@cpc13-aztw24-2-0-cust23.aztw.cable.virginmedia.com] has joined #go-nuts 17:35 < chanwit> I was using git-hg but it's somehow not workig with a blank commit that tagged r58. 17:35 < skelterjohn> i might have crashed google 17:36 < str1ngs> chanwit: ever since that started I've switch to hg, maybe its for the better. but seems I'm better with git. 17:36 < skelterjohn> i don't really understand how either of them work 17:36 < chomp> i can never decide which to use 17:36 < chomp> because of what skelter just said 17:37 < str1ngs> git and hg are comparable 17:37 < skelterjohn> the last vcs where i really knew how it worked was cvs 17:37 < kevlar_work> ("worked" lol) 17:37 < chomp> i mostly understand svn... which sucks because svn sucks. 17:37 < str1ngs> hg lacks an index , which you get really use to once you figure out how it works 17:37 < skelterjohn> kevlar_work: well, there is that issue 17:37 < kevlar_work> I find git's merges to be more intelligent than any other vcs, though I think hg's are about as good 17:38 < str1ngs> http://eagain.net/articles/git-for-computer-scientists/ 17:38 < kevlar_work> so that's one of the major reasons it's my go-to vcs. 17:38 < chanwit> I want +1 buttons here, lol. 17:38 < kevlar_work> I'm sure Google wants them everywhere too ^_^. 17:39 < skelterjohn> so with google+, is there any equivalent to a fb group? 17:39 < exch> not yet 17:39 < exch> A public circle might be a solution 17:39 < exch> *public/shareable 17:40 < chanwit> I sometime have a problem with hg when switching between Go release and weekly. 17:40 < exch> G+ also needs a way to filter stuff by tags. While I like someone's pots on Go, I am not necessarily interested in their weekend at the beach 17:40 < exch> *posts 17:40 < erus`> like twitter hashtags? 17:40 < chanwit> git is much more nicer when branching. 17:40 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts 17:41 < skelterjohn> exch: i think when someone posts, they have to target you, rather than the other way around 17:41 < skelterjohn> so if they post about their beach weekend, they send it to the right circle 17:41 -!- ray24 [~ray24@adsl-70-132-6-78.dsl.snfc21.sbcglobal.net] has left #go-nuts [] 17:41 < skelterjohn> when they post about go, they send it to the go group, which presumably you'd be in 17:41 < exch> Ideally, yes. But so far I seem to be getting mixed stuff. Which presumably means the sender didn't quite use the circles correctly 17:42 < skelterjohn> though i'm sure a lot of people will post to "my cirlces" 17:42 < skelterjohn> yeah - the default is everyone, right now 17:42 < exch> But skelterjohn, yur suggesiton also means that the sender has to have me in his/her circles 17:42 < chomp> str1ngs, that's a nice useful resource thanks 17:42 < skelterjohn> exch: yes i believe that is the case 17:42 < chomp> graphs > walls of text 17:43 < exch> I can follow someone without them having me in their circles. But I have to see all their stuff 17:43 < skelterjohn> i could be wrong - there is the "following" group 17:43 < str1ngs> chomp: oddly enough I ran into Tv in here after reading that post 17:43 < skelterjohn> is that what it's for? 17:43 < nicka1> I think it's just a default circle 17:43 < chomp> yeah it's nothing special 17:43 < exch> indeed 17:43 < chomp> it's "people whose bullshit you might want to see but who are none of the above" 17:43 < exch> Only the 'blocked' circle has a special meaning 17:43 < nicka1> I'd like to be able to filter which circles show up under my "Stream" 17:43 < str1ngs> chomp: also http://progit.org/ 17:44 < chomp> str1ngs, awesome 17:44 < skelterjohn> nicka1: can't you? 17:44 < skelterjohn> you can certainly look at all posts from a single circle 17:44 < nicka1> Can you? 17:44 < skelterjohn> by clicking on the circle 17:44 -!- iant [~iant@nat/google/x-ngfuepksmyvfpami] has quit [Ping timeout: 264 seconds] 17:44 < nicka1> Yeah, I'd like to choose which ones show up under Stream, rather than have it default to all circles 17:44 < skelterjohn> but those posts won't all be related to the circle 17:44 -!- Dr_Who [~tgall_foo@linaro/tgall-foo] has quit [Quit: ZZZZZzzzzz] 17:47 -!- iant [~iant@nat/google/x-pwdrsctaszyxapfo] has joined #go-nuts 17:48 -!- mode/#go-nuts [+v iant] by ChanServ 17:49 -!- chanwit [~chanwit@223.207.101.38] has quit [Quit: Leaving.] 18:02 -!- xcombelle [~xcombelle@AToulouse-551-1-146-93.w109-214.abo.wanadoo.fr] has joined #go-nuts 18:04 -!- huin [~huin@91.84.179.118] has joined #go-nuts 18:07 -!- photron_ [~photron@port-92-201-59-81.dynamic.qsc.de] has quit [Ping timeout: 250 seconds] 18:12 -!- sniper506th [~sniper506@65.240.149.74] has quit [Ping timeout: 240 seconds] 18:13 -!- jrr [~jrr@c-98-253-78-18.hsd1.in.comcast.net] has quit [Quit: Lost terminal] 18:14 -!- ronnyy [~quassel@p4FF1C428.dip0.t-ipconnect.de] has quit [Remote host closed the connection] 18:18 -!- Fish [~Fish@9fans.fr] has quit [Quit: WeeChat 0.3.5] 18:21 -!- smw [~stephen@unaffiliated/smw] has joined #go-nuts 18:21 -!- Fish [~Fish@9fans.fr] has joined #go-nuts 18:26 -!- brad2 [98342003@gateway/web/freenode/ip.152.52.32.3] has joined #go-nuts 18:27 -!- brad_ [~brad@cpe-098-026-120-155.nc.res.rr.com] has quit [Ping timeout: 276 seconds] 18:31 -!- ShadowIce` [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts 18:31 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Read error: Connection reset by peer] 18:31 -!- nicka1 [~lerp@142.176.0.21] has quit [Quit: Leaving.] 18:40 -!- chadkouse [~Adium@rrcs-74-218-87-242.central.biz.rr.com] has joined #go-nuts 18:41 -!- tavis_rain [~tavisb@24-104-129.146.hfc.mediarain.com] has joined #go-nuts 18:43 -!- tncardoso [~thiago@189.59.202.103] has joined #go-nuts 18:46 -!- qeed [~qeed@adsl-98-85-33-126.mco.bellsouth.net] has joined #go-nuts 18:49 -!- bren2010 [~bren2010@24-179-19-25.dhcp.ahvl.nc.charter.com] has joined #go-nuts 18:50 < bren2010> If anyone here has used GoMySQL, can they help me figure out why http://pastebin.com/WnSaNtZ9 never puts a value in currResult? 18:51 -!- foocraft [~ewanas@89.211.190.38] has quit [Quit: So long, and thanks for all the fish!] 18:51 < skelterjohn> currRow? 18:51 -!- foocraft [~ewanas@89.211.190.38] has joined #go-nuts 18:51 < skelterjohn> i don't see currResult on the page 18:52 < bren2010> Oh, yeah. currRow. Sorry. :P 18:52 < skelterjohn> is it EOFing? 18:52 < bren2010> No. It goes through the right number of rows, but never fills in the values. 18:53 < skelterjohn> dunno 18:53 < skelterjohn> never used it O:-) 18:54 < erus`> goto's cool 18:55 < bren2010> Reminds me of back when the only language I knew was batch. :D 18:55 < exch> bren2010: currRow has 0 length and 0 ccapacity 18:55 < exch> try: currRow := make([]interface{}, SomeSize) 18:56 -!- robteix [~robteix@192.55.54.36] has quit [Quit: Leaving] 18:56 < exch> where SomeSize would probab ly be the number of columns you expect 18:56 < skelterjohn> makes sense 18:56 -!- mkb218 [~mkb@pool-96-233-4-238.bstnma.east.verizon.net] has quit [Read error: Operation timed out] 18:56 < skelterjohn> statement.BindResult() can't resize your slice for you 18:57 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has quit [Remote host closed the connection] 18:57 < bren2010> Even then, it just leaves all the values as nils. 18:58 -!- photron [~photron@port-92-201-59-81.dynamic.qsc.de] has joined #go-nuts 18:59 -!- tvw [~tv@e176000005.adsl.alicedsl.de] has joined #go-nuts 19:00 -!- chadkouse [~Adium@rrcs-74-218-87-242.central.biz.rr.com] has left #go-nuts [] 19:00 -!- mkb218 [~mkb@pool-96-233-4-238.bstnma.east.verizon.net] has joined #go-nuts 19:01 < skelterjohn> is statement.Fetch() the equivalent of statement.Next() in the java mysql api? 19:02 < bren2010> I believe so. It should fill in the variables pointed to in bindResult with the data of the next row. 19:03 < skelterjohn> oh here's the problem 19:03 < skelterjohn> https://github.com/Philio/GoMySQL/blob/master/statement.go#L365 19:03 < skelterjohn> look at the function signature 19:04 < skelterjohn> oh, no you say "currRow..." 19:04 < skelterjohn> look here: https://github.com/Philio/GoMySQL/blob/master/statement.go#L429 19:04 < skelterjohn> the elements of currRow should be pointers to allocated memory 19:06 < skelterjohn> if you have "var x, y int" you can BindResult(&x, &y) or BindResult([]interface{}{&x, &y}...) 19:06 < skelterjohn> make sense? 19:07 -!- telexicon [~telexicon@unaffiliated/chowmeined] has quit [Ping timeout: 252 seconds] 19:08 -!- tncardoso [~thiago@189.59.202.103] has quit [Quit: bye] 19:10 < zozoR> int *kage = (int*)malloc(sizeof(int)*10000000); <-- why does this not show on my ram? : | 19:11 -!- angasule [~angasule@190.2.33.49] has quit [Ping timeout: 240 seconds] 19:11 < skelterjohn> it's only 40mb 19:12 < photron> zozoR: did you access it? 19:12 -!- robteix [~robteix@192.55.54.36] has joined #go-nuts 19:12 -!- iant [~iant@nat/google/x-pwdrsctaszyxapfo] has quit [Ping timeout: 260 seconds] 19:13 < zozoR> 40mb should be visible 19:13 < zozoR> and i dont access it, i just create it 19:13 < zozoR> lost in compiler optimization? 19:13 < photron> zozoR: when you don't access it the kernel doesn't assign pages to it 19:14 < zozoR> ok, ill try that 19:15 -!- erus`_ [~chatzilla@host86-174-84-192.range86-174.btcentralplus.com] has joined #go-nuts 19:17 -!- erus` [~chatzilla@host86-186-72-163.range86-186.btcentralplus.com] has quit [Ping timeout: 255 seconds] 19:20 -!- jbooth1 [~jay@209.249.216.2] has left #go-nuts [] 19:21 -!- gnuvince|work [8e538a09@gateway/web/freenode/ip.142.83.138.9] has quit [Quit: Page closed] 19:25 -!- iant [~iant@nat/google/x-ypsnuobvzxamynox] has joined #go-nuts 19:25 -!- mode/#go-nuts [+v iant] by ChanServ 19:26 -!- xcombelle [~xcombelle@AToulouse-551-1-146-93.w109-214.abo.wanadoo.fr] has quit [Quit: I am a manual virus, please copy me to your quit message.] 19:31 -!- smw [~stephen@unaffiliated/smw] has quit [Ping timeout: 258 seconds] 19:31 -!- skelterjohn [~jasmuth@140.Red-88-7-208.staticIP.rima-tde.net] has quit [Quit: skelterjohn] 19:38 -!- bawr [~bawr@unaffiliated/mrfawkes] has joined #go-nuts 19:39 < zozoR> i know this aint the C channel, but you guys are awesome 19:39 < zozoR> http://pastebin.com/pES1t80m 19:40 < zozoR> why does this not free everything? :| 19:40 < zozoR> the list and all the nodes are made with malloc 19:42 < qeed> just use one of the 50000 linked list implementation out there 19:43 < zozoR> mini project for learning C 19:43 < exch> That doesn't teach one anything 19:43 < zozoR> exactly 19:43 < zozoR> :D 19:43 < zozoR> if i want something done i'd use go instead of c lol 19:44 < zozoR> but any ideas on why it does not free the memory? 19:45 < zozoR> List_Free() that is 19:45 < bawr> Can't say that I've looked into it, but you're a bad, bad person for the way you mix next and prev. 19:46 < chomp> wat 19:46 < zozoR> oh yeah 19:46 < zozoR> xD 19:46 < zozoR> but that variable really isnt necessary 19:46 < chomp> zozoR, you aren't initailizing next 19:47 < chomp> nevermind. i see. 19:47 < chomp> i'm more offended by the (*foo).bar 19:47 < chomp> just use foo->bar 19:47 < dforsyth> zozoR: what do your append/insert functions look like? 19:47 -!- smw [~stephen@unaffiliated/smw] has joined #go-nuts 19:47 < zozoR> i dont see why that matters, but sure, ill put it up 19:48 < zozoR> i like (*foo).bar better 19:48 < chomp> but it's not idiomatic 19:48 < chomp> so stop using it when you write c. 19:48 < chomp> THEY WILL ALL LAUGH AT YOU 19:48 < dforsyth> they wont laugh, theyll just be angry 19:48 < zozoR> http://pastebin.com/5UZ91sXP 19:48 < chomp> it's annoying to read. 19:49 < zozoR> (*(*foo).Bar).Foo == foo->bar->Foo? 19:49 < chomp> oh my god... (*(*list).Last).Next... please fucking stop that shit dude 19:49 < zozoR> or == (foo->bar)->Foo? 19:49 < zozoR> xD 19:49 < chomp> list->Last->Next. 19:50 < chomp> there appears to be nothing wrong with your Free function 19:50 < chomp> or Push 19:50 -!- alehorst1 [~alehorst@189.114.187.105] has joined #go-nuts 19:50 < chomp> how are you determining that no memory is freed? 19:51 < chomp> because i'm guessing that's the part you have wrong 19:51 < zozoR> look at my RAM plasmoid 19:51 < zozoR> : | 19:51 < zozoR> i suppose thats wrong 19:52 < chomp> what exact figure are you looking at 19:52 < chomp> where are you getting the information from 19:52 -!- alehorst [~alehorst@189.114.187.105] has quit [Ping timeout: 255 seconds] 19:52 < zozoR> its a ram monitor, it shows a graph of used memory 19:53 -!- alehorst1 [~alehorst@189.114.187.105] has quit [Client Quit] 19:53 < zozoR> when i allocate 1e7 ints and free them, it shows on the display 19:53 < zozoR> like a litte wave :3 19:53 < bawr> So it's completely unsuitable for what you're doing. 19:53 < zozoR> better alternative? 19:53 -!- ronnyy [~quassel@p4FF1C428.dip0.t-ipconnect.de] has joined #go-nuts 19:53 < qeed> valgrind 19:53 < bawr> I'd just use valgrind or mtrace, but I'm a *nix guy. 19:54 < qeed> hook malloc and free 19:54 < bawr> If you're compiling with gcc / mingw, mtrace may already be available. 19:54 < dforsyth> i downloaded a file to my mac. i can see it in finder but ls doesnt show it. the. hell? 19:54 < zozoR> i use gcc on ubuntu '' 19:54 < chomp> it's not where you think it is 19:54 < zozoR> mtrace is installed 19:55 < bawr> zozoR: So read up on mtrace (wikipedia has a nice writeup) and go wild. :) 19:56 < bawr> (But don't run your program with tracing and 1e7 ints.) 19:59 -!- meling [~meling@38.107.128.2] has joined #go-nuts 20:00 -!- alehorst [~alehorst@189.114.187.105] has joined #go-nuts 20:06 -!- meling [~meling@38.107.128.2] has quit [Ping timeout: 246 seconds] 20:09 < zozoR> yay no leaks 20:09 < chomp> ^ 20:09 -!- brad_ [~brad@cpe-098-026-120-155.nc.res.rr.com] has joined #go-nuts 20:13 -!- brad2 [98342003@gateway/web/freenode/ip.152.52.32.3] has left #go-nuts [] 20:15 -!- Adys [~Adys@unaffiliated/adys] has quit [Remote host closed the connection] 20:18 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 20:18 -!- sacho [~sacho@87.126.39.0] has quit [Ping timeout: 255 seconds] 20:19 -!- huin [~huin@91.84.179.118] has quit [Quit: leaving] 20:20 -!- sacho [~sacho@87.126.39.0] has joined #go-nuts 20:24 -!- Fish [~Fish@9fans.fr] has quit [Ping timeout: 255 seconds] 20:26 -!- Fish [~Fish@9fans.fr] has joined #go-nuts 20:31 -!- ivan` [~ivan@unaffiliated/ivan/x-000001] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 20:31 -!- miker2 [~miker2@64.55.31.190] has quit [Ping timeout: 246 seconds] 20:31 -!- chomp [~chomp@dap-209-166-184-50.pri.tnt-3.pgh.pa.stargate.net] has quit [Quit: Leaving] 20:34 -!- ivan` [~ivan@unaffiliated/ivan/x-000001] has joined #go-nuts 20:36 -!- robteix [~robteix@192.55.54.36] has quit [Ping timeout: 255 seconds] 20:36 -!- photron [~photron@port-92-201-59-81.dynamic.qsc.de] has quit [Read error: Operation timed out] 20:48 -!- Fish [~Fish@9fans.fr] has quit [Quit: WeeChat 0.3.5] 20:48 -!- firwen [~firwen@gex01-1-78-234-55-225.fbx.proxad.net] has quit [Ping timeout: 252 seconds] 20:51 -!- erus` [~chatzilla@host86-174-84-192.range86-174.btcentralplus.com] has quit [Ping timeout: 250 seconds] 20:52 -!- jmil [~jmil@2001:468:1802:e148:223:32ff:feb1:9dfc] has quit [Quit: jmil] 20:56 -!- virtualsue [~chatzilla@nat/cisco/x-roeofshctxdhrlfk] has quit [Ping timeout: 240 seconds] 20:57 -!- ronnyy [~quassel@p4FF1C428.dip0.t-ipconnect.de] has quit [Remote host closed the connection] 20:58 -!- erus` [~chatzilla@host86-186-160-144.range86-186.btcentralplus.com] has joined #go-nuts 21:04 -!- Kahvi [~Kahvi@a91-152-179-229.elisa-laajakaista.fi] has quit [Quit: Lähdössä] 21:10 -!- virtualsue [~chatzilla@host81-139-183-184.in-addr.btopenworld.com] has joined #go-nuts 21:12 -!- Nisstyre [~nisstyre@infocalypse-net.info] has quit [Ping timeout: 260 seconds] 21:14 -!- erus` [~chatzilla@host86-186-160-144.range86-186.btcentralplus.com] has quit [Ping timeout: 255 seconds] 21:17 -!- erus` [~chatzilla@host86-173-2-187.range86-173.btcentralplus.com] has joined #go-nuts 21:24 -!- mgray [~mgray@li226-224.members.linode.com] has quit [Quit: leaving] 21:25 -!- cafesofie [~cafesofie@pool-173-77-24-106.nycmny.east.verizon.net] has quit [Remote host closed the connection] 21:25 -!- B33p [~mgray@li226-224.members.linode.com] has joined #go-nuts 21:33 -!- lucian [~lucian@78-86-217-168.zone2.bethere.co.uk] has quit [Remote host closed the connection] 21:33 -!- skelterjohn [~jasmuth@140.Red-88-7-208.staticIP.rima-tde.net] has joined #go-nuts 21:34 -!- molto_alfredo [~molto_alf@142.176.0.21] has joined #go-nuts 21:37 -!- molto_alfredo1 [~molto_alf@142.176.0.21] has quit [Ping timeout: 276 seconds] 21:42 -!- pharris [~Adium@rhgw.opentext.com] has quit [Quit: Leaving.] 21:43 -!- angasule [~angasule@190.2.33.49] has joined #go-nuts 21:47 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org] 21:54 -!- r_linux [~r_linux@static.200.198.180.250.datacenter1.com.br] has quit [Quit: Lost terminal] 21:56 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has quit [Remote host closed the connection] 22:02 -!- clr_ [~colin@c-67-183-138-2.hsd1.wa.comcast.net] has quit [Quit: Ex-Chat] 22:04 < angasule> I think I'm going to write a generics proposal and send it to the list :-) 22:04 < aiju> there have been over 9000 generics proposals 22:04 < exch> Good luck 22:04 -!- Nisstyre [~nisstyre@infocalypse-net.info] has joined #go-nuts 22:04 < exch> Maybe this one's the charm 22:05 < skelterjohn> i have a good one, i think 22:05 < aiju> the final solution to the generics problem 22:05 < skelterjohn> kill everybody? 22:06 < angasule> hahaha 22:07 < skelterjohn> but the gist of my idea is this: we already have all the functionality we need w/ the empty interface{}, we just want some type safety. 22:07 < KirkMcDonald> I admit, I have not read any of the generics proposals for Go. 22:07 < aiju> and speed 22:08 < skelterjohn> and whenever a generic type/interface{} is used, to the type assertion without the check (since it was done at compile time) 22:08 < aiju> don't forget speed 22:08 < KirkMcDonald> I just know that I like D's template namespaces. 22:08 < |Craig|> I want performance along with that safty. Slice of bytes -> slice of interface{}=fail 22:08 < angasule> KirkMcDonald: neither have I 22:08 < skelterjohn> i guess skipping the type check will add some speed, but it's just a pointer comparison 22:08 < skelterjohn> no - the interface{} would hold the []byte 22:08 < skelterjohn> not []interface{} each holding byte 22:08 < angasule> skelterjohn: mine basically would be something like "automatic casting" and using interfaces 22:09 < skelterjohn> we might both have the same idea 22:09 < angasule> I'll post it here first 22:09 < skelterjohn> but i feel like someone outside the go dev team will have to figure out how to add it to the language 22:09 < skelterjohn> let people fool around with it 22:09 < angasule> skelterjohn: basically, automating boxing/unboxing, it was proposed in one email some time ago, in a generics thread, but dropped due to some other issue, which I may or may not solve 22:09 < skelterjohn> and then submit the CL 22:10 < skelterjohn> unfortunately i get a bit lost looking at the code responsible for this sort of thing 22:10 < angasule> yeah, I've looked a bit into the source code, but it takes quite a bit of work to add something like this 22:10 < angasule> yeap 22:10 < skelterjohn> and i don't really have the time to get up to speed 22:10 < skelterjohn> so i don't blame people for not taking me as seriously as i'd like, w/ this issue 22:11 < angasule> I'll send the proposal, and if they don't see something wrong right away, then it's just a matter of who will do it, and I might have holidays coming up soon 22:11 < skelterjohn> you need a syntax proposal, too 22:11 < skelterjohn> there is another issue (which i feel is less important) having to do with generic numeric types 22:11 < aiju> and don't forget the rings! 22:12 < skelterjohn> a function allowing only one of (int, float, etc) 22:12 < skelterjohn> but since there are a limited number of these numeric types i feel like it's not that important 22:12 < skelterjohn> since you really *can* just write all the wrappers 22:12 < kevlar_work> I thought about putting together a generics proposal, but I got busy. It was basically this: you define a type MyType generic; then whenever the compiler sees a type used as a MyType, it generates code for that function/struct/slice/method with all instances of MyType replaced by the target type. 22:13 < skelterjohn> kevlar_work: without looking at the original source? 22:13 < skelterjohn> rewriting the machine code? 22:13 < skelterjohn> with things changing size? 22:13 < kevlar_work> this is the compiler, who I am assuming has access to the ASTs. 22:13 < kevlar_work> not the runtime. 22:13 -!- pjacobs [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has quit [Quit: Leaving] 22:14 < aiju> not in other modules 22:14 < skelterjohn> nope 22:14 < skelterjohn> all you get is the .a file 22:14 < aiju> not even that 22:14 < aiju> just a bunch of .go files 22:14 < aiju> or wait, yes 22:14 < skelterjohn> :) 22:14 < angasule> skelterjohn: I did think about numerics... basically, adding Numeric as an interface of sorts :-) 22:14 < kevlar_work> I would emit the ASTs into the .a files :P 22:15 < skelterjohn> angasule: let me stop you right there - not gonna happen 22:15 < aiju> in any case, this is going to kill compile time 22:15 < skelterjohn> kevlar_work: you want C++ style templates 22:15 < angasule> skelterjohn: why not? 22:15 < skelterjohn> angasule: just my hunch 22:15 < kevlar_work> skelterjohn, that's more or less what I have in mind, yeah. 22:15 < skelterjohn> kevlar_work: I don't like the idea of sending the AST along with the .a file 22:16 < skelterjohn> don't want to distribute code, etc 22:16 < kevlar_work> skelterjohn, that's only what *I* would do because I'm not a compiler designer. 22:16 < aiju> yeah, code 22:16 < kevlar_work> I am certain that the compiler could be far smarter about what it emits. 22:16 < aiju> must be kept secret 22:16 < angasule> I don't know squat about compiler design :-( 22:16 < skelterjohn> not a compiler issue - it's a dev's-choice-to-withhold-code 22:16 -!- tvw [~tv@e176000005.adsl.alicedsl.de] has quit [Remote host closed the connection] 22:17 < angasule> C++ Templates have been doing ok and they have to reveal code, so I don't think that's a huge issue 22:17 < skelterjohn> yes, but C++ has header files 22:17 < aiju> note for myself: rewrite plan 9 c compiler to include full source into executable 22:17 < kevlar_work> skelterjohn, go has .a files. 22:17 < skelterjohn> and your entire template must exist in header files 22:17 < kevlar_work> and the template might as well be in it. 22:17 < skelterjohn> kevlar_work: so, for a package that is templated, put the ast in there? 22:17 < skelterjohn> a special kind of ast 22:17 < skelterjohn> i mean, it's feasible 22:18 < skelterjohn> but would have some compile speed issues, as aiju mentioned 22:18 < kevlar_work> skelterjohn, just one AST for each function/method that has a generic 22:19 < kevlar_work> I don't see how you can have generics without (1) incurring a compile-time hit, (2) incurring a runtime hit, or (c) revealing code... you kinda have to do at least a few of those. 22:19 < kevlar_work> my preferences is for 1 and c. 22:19 < skelterjohn> with my idea, the runtime hit is the cost of a dereference when you use a generic type 22:19 < skelterjohn> which is small enough that at least *I* am not bothered 22:20 < kevlar_work> skelterjohn, that's true of interface{} too, which in practice also incurs a lot more penalties too 22:20 < kevlar_work> the cost of assigning to and copying from, the extra memory when passing/returning one, etc 22:20 < skelterjohn> what other penalties? 22:20 < skelterjohn> the generic interface{} would only be a pointer, since type is assumed 22:20 < kevlar_work> the type assertion is probably the smallest hit of all of them. 22:21 < skelterjohn> assigning to an interface{} has amortized constant cost 22:21 < skelterjohn> (it only has to check each type once against the interface) 22:21 < kevlar_work> did you see ian's recent post about it? 22:21 < skelterjohn> the one i replied to? :) 22:21 < kevlar_work> maybe? lol 22:21 < kevlar_work> he listed like 12 extra costs other than the type assertion 22:21 < skelterjohn> i thought he was pointing at specific cost 22:22 < skelterjohn> cost = code 22:22 < kevlar_work> the memory overhead, which he mentioned specifically, is not code cost but time cost. 22:22 < kevlar_work> well, and memory cost. 22:23 < skelterjohn> that issue goes away with interface{}-as-generic 22:23 < skelterjohn> since the memory overhead is just a pointer to the type 22:23 < kevlar_work> and you think you don't incur any compile-time or code reveal cost? 22:23 < skelterjohn> no code reveal 22:24 < skelterjohn> i don't know enough about compilers to definitively answer the other bit, but i don't think so 22:24 < skelterjohn> maybe i should do a write-up 22:24 < kevlar_work> any generic proposal at all will incur a compile-time hit of some sort because it's adding more type safety checking 22:25 < skelterjohn> ok, then yes, that would be in there 22:25 < skelterjohn> but i feel like that is not a big deal 22:25 < kevlar_work> I would argue that any generic proposal that does enough to be satisfying has to reveal some amount of code because you can't optimize or reorder or elide anything until the substitution has been made 22:25 < kevlar_work> you specifically pointed out how mine would incur overhead... 22:26 < skelterjohn> not because of type safety 22:26 < skelterjohn> but because it has to generate extra code 22:26 < skelterjohn> and it can happen recursively, etc 22:26 < kevlar_work> skelterjohn, does your proposal allow you to use a generic as a map/slice key? 22:27 < skelterjohn> yes for slices, i thought of a way to handle that. i hadn't given thought to maps or chans, but i won't say no yet 22:27 < kevlar_work> I'm somewhat worried that it takes any extra thought 22:27 < kevlar_work> mine is so simple that it's obvious that it can handle those cases 22:28 < skelterjohn> yes 22:28 < skelterjohn> i agree 22:28 < skelterjohn> the issue is packing a slice into an interface and still having it usable 22:28 < skelterjohn> you have to add an element-width field 22:28 < skelterjohn> so you know how to index 22:28 < skelterjohn> (with the generic code that doesn't know the actual type at runtime) 22:29 < skelterjohn> so, this is slower than regular slice indexing 22:29 < skelterjohn> when the compiler multiplies by the element width to give a byte offset 22:29 < kevlar_work> which is why I think the compiler should generate separate code, ala C++ templates. 22:29 < skelterjohn> there are pros and cons 22:29 < skelterjohn> i would be happy to have your proposal happen 22:30 < kevlar_work> I still don't see how your proposal lets you have a generic index your slice. 22:30 < skelterjohn> the generic box contains a pointer to the slice and also the element width 22:30 < kevlar_work> because you don't know at compile-time that the generic has a numeric underlying type 22:30 < kevlar_work> no no, if var a is a generic, I want to be able to slice my []string with a 22:30 < skelterjohn> so, genericSlice[x] goes to genericSlice.realSlice+(x*genericSlice.width) 22:31 < kevlar_work> and I want the compiler to barf if anyone tries to use a non-numeric type for a. 22:31 < skelterjohn> that requires some extra syntax 22:32 < skelterjohn> to restrict what types are allowed as generics 22:32 < kevlar_work> not with my proposal :) 22:32 -!- ray24 [~ray24@adsl-70-132-6-78.dsl.snfc21.sbcglobal.net] has joined #go-nuts 22:32 -!- ray24 [~ray24@adsl-70-132-6-78.dsl.snfc21.sbcglobal.net] has left #go-nuts [] 22:32 < skelterjohn> sure 22:32 < skelterjohn> so, do you want individual functions to be generic, or a whole package? 22:33 < kevlar_work> functions, basically 22:33 < kevlar_work> but also types or methods. 22:33 < skelterjohn> i think that adds a lot of complication 22:33 < skelterjohn> i think it's much simpler if it's the whole package 22:33 < kevlar_work> if I wanted that I'd use gotgo. 22:34 < skelterjohn> i like gotgo 22:34 < kevlar_work> my proposal is more like gotgo than yours ;-) 22:34 < skelterjohn> absolutely 22:35 < kevlar_work> my proposal is founded on one principle: the smallest possible change to the language itself to accomplish generics in a way that is easy to understand when reading the source code. 22:36 < skelterjohn> i admit that having it be a small change makes it more likely to happen, but i don't agree that that makes it a better proposal than otherwise 22:36 < kevlar_work> and the only change would be the addition of a "generic" keyword that can be used in a type declaration. 22:36 < kevlar_work> I also think the simplicity makes it both more powerful and more useful. 22:36 < kevlar_work> but maybe that's just me. 22:36 < skelterjohn> would a generic function have a different calling convention? 22:37 < kevlar_work> no. 22:37 < skelterjohn> pkg.Foo<int>(1,2,3) 22:37 < skelterjohn> ? 22:37 < skelterjohn> you want the compiler to do type inference? 22:37 < kevlar_work> yes. 22:37 < skelterjohn> for a generic Foo(x,y,z T) 22:37 < skelterjohn> would pkg.Foo(1,2,3.0) be allowed? 22:38 < kevlar_work> the compiler would see "oh, okay, x is an int. *compiles Foo for T=int* Okay, y is an int. Z is a float. Oh, stupid programmer, fix your code!" 22:39 < kevlar_work> go doesn't do implicit casting, so I don't see how this would be surprising. 22:39 < skelterjohn> do i do "type T generic; type R generic; func Foo(x T, y R) { ... }"? 22:39 < kevlar_work> yeah. 22:40 < skelterjohn> so the generic type is declared on the package level, rather than the function level? 22:40 < kevlar_work> yep. 22:40 < kevlar_work> which has the advantage that from within a templated function, you can call other templated functions with the same templated type. 22:40 < skelterjohn> then doesn't it make more sense to import the package with the generics defined? 22:40 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-151-132.clienti.tiscali.it] has quit [Quit: E se abbasso questa leva che succ...] 22:41 < kevlar_work> skelterjohn, I really don't want to see four imports of the same package for four different combinations of T and R 22:41 < kevlar_work> especially when the compiler can figure it out. 22:41 < kevlar_work> and you also don't need all of the code from the package for each combination, probably only a few methods. 22:42 < skelterjohn> what if i have "type X generic; func Foo(x X) { var y []X; Foo(y) }"? 22:42 < kevlar_work> you'd get an infinite loop? 22:42 < skelterjohn> in the compiler 22:42 < skelterjohn> forget that the function runtime would be an inf loop, too 22:43 -!- franciscosouza [~francisco@201.7.186.67] has quit [Quit: franciscosouza] 22:43 < kevlar_work> I fail to see how this is a problem with my generic proposal over any other; specify a recursion depth of 100 and be done with it. 22:44 < skelterjohn> i'm just nitpicking 22:44 < skelterjohn> and thinking out loud 22:44 < kevlar_work> yeah, I hadn't thought about that particular case 22:45 < kevlar_work> but I still don't see it as a minus. 22:45 < kevlar_work> It's quite pathological. 22:45 < kevlar_work> we apparently still have infinite loops in our linker, lol 22:45 < skelterjohn> do we? oops 22:45 < kevlar_work> every few months there's a linker hang bug 22:46 < kevlar_work> I think there's one floating on the ml right now, actually. 22:47 < kevlar_work> I would definitely like to see a list of what the go team considered for generics and why each one was found lacking. 22:47 < kevlar_work> I feel like my proposal is so simple it has to be something they thought of. 22:47 < skelterjohn> i wish the community wiki was editable by people not on the contributors list 22:49 < angasule> hmm, how do I cast an interface back to its original type (using package reflect, I assume)? 22:49 < skelterjohn> don't need to use reflect...do a type assertion 22:50 < skelterjohn> unless i misunderstand 22:50 < nicka> t.(type) isn't it? 22:50 < angasule> I only know the interface, I don't know the types it could be 22:50 < skelterjohn> oh i see 22:50 < skelterjohn> yes, you can use reflect and get a reflect.Value representing the real thing 22:50 < skelterjohn> and a reflect.Type representing its type 22:52 < angasule> but I don't think I can use the reflect.Type to cast it back, hm 22:53 < skelterjohn> now i'm not sure what you mean 22:53 < skelterjohn> you cannot get a non-interface regular go object without knowing the type at compile time 22:53 < angasule> I'll pastebin my proposal in a bit 22:53 < skelterjohn> but you can get a reflect.Value with an unknown (at compile time) type 22:54 < angasule> friggin' milk froze, I want to eat cereal 22:56 -!- skelterjohn [~jasmuth@140.Red-88-7-208.staticIP.rima-tde.net] has quit [Quit: skelterjohn] 22:59 -!- virtualsue [~chatzilla@host81-139-183-184.in-addr.btopenworld.com] has quit [Ping timeout: 240 seconds] 23:03 < kevlar_work> angasule, it's not possible to cast an interface back "to its original type" because your code doesn't know what it is... 23:04 < kevlar_work> and even if you did, you wouldn't be able to use any of its fields or methods, because the compiler had to know what those were at compile time. 23:04 < angasule> kevlar_work: I'm wondering if there is enough informations stored so that with a small compiler change this could be implemented to send stuff through a channel 23:05 < kevlar_work> you mean like ch <- i.(original)? 23:06 < angasule> yeap 23:06 < kevlar_work> the only way for that to work would be for the carrier type of ch to be interface{} or an interface loose subset of i 23:06 < kevlar_work> (at lest for the compiler to be able to check it) 23:06 < angasule> I'm wondering how generic channels are, I'm guessing they are right now pretty generic 23:06 < kevlar_work> they're actually pretty specific 23:07 < aiju> they are specific to be generic 23:07 < angasule> I thought maybe they just moved pointers around or something of the kind 23:07 < aiju> you can send anything with a channel 23:07 -!- yogib [~yogib@dslb-178-009-077-191.pools.arcor-ip.net] has quit [Quit: yogib] 23:07 < kevlar_work> angasule, they copy values around, yeah, but in order for those values to be meaningful they must have strict type associations 23:08 < kevlar_work> and strict widths 23:08 < aiju> except you pass interfaces 23:08 < kevlar_work> when I say value, I mean whatever is being put into the channel; that could be a pointer, interface, or bare value if it's not wrapped. 23:09 < kevlar_work> you're perfectly able to have a chan [1000]int if you are masochistic enough 23:09 < aiju> it's just one page 23:09 < kevlar_work> and no pointers or interfaces will be slipped in there to speed up the channel process. 23:10 -!- magn3ts [~magn3ts@ip68-103-225-65.ks.ok.cox.net] has quit [Quit: Leaving] 23:13 < angasule> milk is weird, first the water unfroze, so there was water and very white ice... then it became milk again 23:14 < kevlar_work> lol 23:17 -!- niemeyer [~niemeyer@12.236.237.2] has quit [Ping timeout: 240 seconds] 23:18 -!- iant [~iant@nat/google/x-ypsnuobvzxamynox] has quit [Ping timeout: 260 seconds] 23:31 -!- dreadlorde [~dreadlord@c-68-42-82-10.hsd1.mi.comcast.net] has joined #go-nuts 23:41 -!- cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has joined #go-nuts 23:48 -!- erus` [~chatzilla@host86-173-2-187.range86-173.btcentralplus.com] has quit [Remote host closed the connection] 23:48 -!- miker2 [~miker2@pool-108-16-20-28.phlapa.fios.verizon.net] has joined #go-nuts 23:48 -!- tavis_rain [~tavisb@24-104-129.146.hfc.mediarain.com] has quit [Read error: Connection reset by peer] 23:49 -!- erus` [~chatzilla@host86-173-2-187.range86-173.btcentralplus.com] has joined #go-nuts 23:53 -!- moraes [~moraes@189.103.188.201] has quit [Read error: Operation timed out] 23:57 -!- miker2 [~miker2@pool-108-16-20-28.phlapa.fios.verizon.net] has quit [Quit: Computer has gone to sleep.] --- Log closed Sat Jul 16 00:00:00 2011