--- Log opened Fri Nov 20 00:00:23 2009 --- Day changed Fri Nov 20 2009 00:00 -!- drusepth [n=drusepth@adsl-75-33-217-220.dsl.spfdmo.sbcglobal.net] has joined #go-nuts 00:00 -!- andresambrois [n=aa@r190-135-167-54.dialup.adsl.anteldata.net.uy] has joined #go-nuts 00:01 -!- drusepth` [n=drusepth@adsl-75-33-217-220.dsl.spfdmo.sbcglobal.net] has joined #go-nuts 00:02 -!- Anusko [n=anusko@a83-132-19-244.cpe.netcabo.pt] has joined #go-nuts 00:03 -!- sm [n=sm@cpe-76-173-194-242.socal.res.rr.com] has joined #go-nuts 00:03 < hagna> uriel: so I haven't tried plan9 should I? 00:04 < uriel> why do you ask me? 00:04 < uriel> in any case, anyone should read the papers before trying the OS: http://doc.cat-v.org/plan_9/4th_edition/papers/ 00:04 < hagna> uriel: you seem to know 00:04 < uriel> I don't know anything 00:04 < hagna> the criticism sounded good 00:05 < jimi_hendrix> i take it go has no compiler warnings, just errors? 00:06 -!- timmcd [n=Adium@97-117-100-106.slkc.qwest.net] has left #go-nuts [] 00:07 < KirkMcDonald> Warning: No warnings. 00:07 <+danderson> Warnings being treated as errors 00:07 <+danderson> Compile failed. 00:08 -!- kmc [n=keegan@98.140.110.255] has joined #go-nuts 00:08 -!- aa [n=aa@r190-135-212-29.dialup.adsl.anteldata.net.uy] has quit [Nick collision from services.] 00:09 -!- stalled [n=411@95-24-217-225.broadband.corbina.ru] has joined #go-nuts 00:09 < TenOfTen> so why call them warnings at all? 00:10 < jimi_hendrix> well if i import something, dont use it, and i get an error.... 00:10 < jimi_hendrix> wow...go routines make it a pain to trace errors...lots of output 00:10 -!- skyfive [n=skyfive@173-11-110-86-SFBA.hfc.comcastbusiness.net] has joined #go-nuts 00:11 -!- thingie59 [n=foo@125-238-120-247.broadband-telecom.global-gateway.net.nz] has joined #go-nuts 00:11 < Eytre> better than no output 00:12 -!- Perberos [n=Perberos@190.49.17.162] has joined #go-nuts 00:15 < jimi_hendrix> what does range do? 00:15 -!- uwedeportivo [n=uwe@216.239.45.19] has quit [] 00:15 < dagle2> jimi_hendrix: Have you looked at the 3 day intro? 00:16 < dagle2> (it's explained on day to pretty good or day 3) 00:16 < jimi_hendrix> no, just the tutorial here: http://golang.org/doc/go_tutorial.html 00:16 < dagle2> two* 00:16 < jimi_hendrix> which skipped quite a bit actually 00:16 < dagle2> Read Day 2 00:16 < dagle2> And Day 1 00:17 < jimi_hendrix> link? 00:17 -!- drusepth`` [n=drusepth@adsl-75-33-218-125.dsl.spfdmo.sbcglobal.net] has quit [Read error: 110 (Connection timed out)] 00:18 < dagle2> jimi_hendrix: read the top of the link you sent me. 00:18 < jimi_hendrix> ha 00:18 < jimi_hendrix> haha 00:18 < jimi_hendrix> hahaha 00:19 -!- sliceofpi2 [n=Adium@c-98-201-183-147.hsd1.tx.comcast.net] has quit ["Leaving."] 00:20 -!- drusepth [n=drusepth@adsl-75-33-217-220.dsl.spfdmo.sbcglobal.net] has quit [Read error: 110 (Connection timed out)] 00:21 -!- middayc_ [n=chatzill@BSN-176-210-184.dial-up.dsl.siol.net] has joined #go-nuts 00:22 -!- stalled_ [n=411@89-178-47-76.broadband.corbina.ru] has quit [Read error: 110 (Connection timed out)] 00:22 -!- hector [n=chatzill@client-86-0-126-58.nrth.adsl.virginmedia.com] has quit [Read error: 113 (No route to host)] 00:22 -!- scarabx [n=scarabx@c-24-147-239-120.hsd1.ma.comcast.net] has joined #go-nuts 00:23 -!- rrr [i=rrr@gateway/gpg-tor/key-0x9230E18F] has quit [Remote closed the connection] 00:23 -!- voluspa [n=voluspa@x-134-84-102-227.reshalls.umn.edu] has joined #go-nuts 00:24 -!- tcpip4000 [n=tcpip400@190.84.233.18] has joined #go-nuts 00:26 -!- Eytre [n=afitz@adsl-190-192-124.asm.bellsouth.net] has quit [] 00:26 -!- rrr [i=rrr___@gateway/gpg-tor/key-0x9230E18F] has joined #go-nuts 00:26 < dacc> hagna: found this if you're interested: http://www.vmware.com/appliances/directory/59214 00:27 -!- Anusko [n=anusko@a83-132-19-244.cpe.netcabo.pt] has quit [Read error: 110 (Connection timed out)] 00:28 -!- vegy [i=neki@89-212-27-225.dynamic.dsl.t-2.net] has quit ["( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com )"] 00:28 -!- amacleod [n=amacleod@c-24-34-33-96.hsd1.ma.comcast.net] has quit [Read error: 110 (Connection timed out)] 00:28 -!- shdw [n=alvaro@143.Red-83-61-110.dynamicIP.rima-tde.net] has joined #go-nuts 00:29 < directrixx> dacc: I was trying to install that yesterday on VirtualBox. Never got the video working correctly 00:29 < dacc> directrixx: that same image? i'm going to try in vmware fusion 00:30 < directrixx> dacc: yeah virtualbox takes .vmdk images, it booted fine, but when it went from the terminal to rio, all i saw was garbage 00:31 < dacc> hmm, i'll let you know how it goes with the commercial soln 00:31 -!- rrr [i=rrr___@gateway/gpg-tor/key-0x9230E18F] has quit [Client Quit] 00:31 -!- dacc [n=dan@D-128-95-10-176.dhcp4.washington.edu] has quit ["linear algebra hw =\"] 00:34 -!- middayc [n=chatzill@BSN-61-46-236.dial-up.dsl.siol.net] has quit [Read error: 110 (Connection timed out)] 00:34 -!- rrr [i=rrr@gateway/gpg-tor/key-0x9230E18F] has joined #go-nuts 00:35 -!- lolsuper_ [n=super_@unaffiliated/lolsuper-/x-9881387] has quit [Read error: 104 (Connection reset by peer)] 00:36 -!- lolsuper_ [n=super_@pool-173-65-48-13.tampfl.fios.verizon.net] has joined #go-nuts 00:37 -!- loureiro [n=loureiro@201008207197.user.veloxzone.com.br] has joined #go-nuts 00:38 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has quit ["Leaving."] 00:39 -!- dj_tjerk [n=pietjebe@5ED1C662.cable.ziggo.nl] has quit [Read error: 104 (Connection reset by peer)] 00:40 -!- fosho [n=afitz@adsl-190-192-124.asm.bellsouth.net] has joined #go-nuts 00:41 < rbohn> There is an old vmware video problem with a know solution (turn of video acceleration). 00:42 -!- aanderse [n=aanderse@CPE001b11cc67d3-CM0019475d7f5e.cpe.net.cable.rogers.com] has joined #go-nuts 00:42 < uriel> that was supposedly fixed a billions years ago 00:43 -!- skyfive [n=skyfive@173-11-110-86-SFBA.hfc.comcastbusiness.net] has quit [Remote closed the connection] 00:43 * uriel runs plan9 on vmware just fine 00:43 -!- Fl1pFl0p [n=FlipFlop@ip68-8-225-187.sd.sd.cox.net] has quit [Client Quit] 00:43 -!- Anusko [n=anusko@a83-132-19-244.cpe.netcabo.pt] has joined #go-nuts 00:46 -!- mat__ [n=mat@mx3.absolight.net] has joined #go-nuts 00:46 -!- dobre_zlo [i=unixwiza@k-lined.info] has quit [Read error: 104 (Connection reset by peer)] 00:49 < uriel> hey, foo[x:] slices were commited a few min ago! nice 00:50 -!- tcpip4000 [n=tcpip400@190.84.233.18] has left #go-nuts [] 00:50 < rbohn> !!! 00:51 -!- aanderse [n=aanderse@CPE001b11cc67d3-CM0019475d7f5e.cpe.net.cable.rogers.com] has quit [Remote closed the connection] 00:51 < rbohn> hg pull -u (or is there a better incantation?) 00:52 < uriel> hg pull -u should be fine if you are tracking the tip 00:52 < KirkMcDonald> uriel: Ohhh. 00:52 < uriel> if you are on 'release', you will have to wait for the next release 00:52 -!- dobre_zlo [i=unixwiza@k-lined.info] has joined #go-nuts 00:53 < uriel> also, after looking at the commit, I'm not sure if the compilers have been updated yet to support it :? 00:54 -!- KillerX [n=anant@145.116.234.40] has joined #go-nuts 00:54 < KirkMcDonald> uriel: So what was it? Just a patch to the grammar? 00:54 -!- aanderse [n=aanderse@CPE001b11cc67d3-CM0019475d7f5e.cpe.net.cable.rogers.com] has joined #go-nuts 00:54 < uriel> yes, to pkg/go/ mostly 00:54 < exch> meh it fails to build. duplicate definition of regexp.Regexp{} 00:55 -!- RayNbow [i=kirika@scientia.demon.nl] has quit ["When science finally locates the center of the universe, some people will be surprised to learn they're not it"] 00:56 < rbohn> there go your so called 'easy optimizations' :p 00:56 < jimi_hendrix> can i do something for an array like %v, but with commas thrown inbetween each element 00:56 < uriel> hehe 00:56 < exch> jimi_hendrix: %+v or %#v 00:57 < KirkMcDonald> I found myself missing the %*s format specifier in Go. 00:57 < jimi_hendrix> thanks 00:57 < jimi_hendrix> KirkMcDonald, that did... 00:57 -!- Rob_Russell [n=chatzill@206-248-157-156.dsl.teksavvy.com] has joined #go-nuts 00:58 < KirkMcDonald> It would look like: fmt.Sprintf("%*s", 5, "x") == "x " 00:58 < jimi_hendrix> oh 00:58 < KirkMcDonald> That is, it represents a dynamic field width. 00:59 < KirkMcDonald> Very useful. 00:59 -!- smcq_ [n=smcq@adsl-76-254-26-58.dsl.pltn13.sbcglobal.net] has joined #go-nuts 00:59 -!- mat_ [n=mat@mx3.absolight.net] has quit [Read error: 111 (Connection refused)] 01:01 -!- hallidave [n=hallidav@CPE001ff3406248-CM0018680dd678.cpe.net.cable.rogers.com] has joined #go-nuts 01:01 < s_mosher> KirkMcDonald, what do you use that for? 01:03 -!- kim__ [n=kim@207-179-227-215.mtco.com] has joined #go-nuts 01:03 < s_mosher> (the perl in me says to build the fmt string with a previous call to sprintf or s///, horrible eh?) 01:03 -!- lindsayd [n=lindsayd@nat/cisco/x-iefqcgeadjgvigvi] has quit ["Client exiting"] 01:03 -!- kim__ [n=kim@207-179-227-215.mtco.com] has left #go-nuts ["wizard needs food -- badly!"] 01:04 < KirkMcDonald> s_mosher: In the command-line option parser that I wrote, I would have liked to use it in the --help generator. 01:04 < KirkMcDonald> s_mosher: Instead I did exactly what you just said: Used Sprintf to make the format string. 01:05 < s_mosher> for spacings? hmmm 01:08 -!- Venom_X [n=pjacobs@66.54.185.131] has quit [Read error: 113 (No route to host)] 01:08 -!- nixfreak [n=nixfreak@mn-10k-dhcp1-3174.dsl.hickorytech.net] has quit [Read error: 113 (No route to host)] 01:08 -!- Raziel2p [n=Raziel2p@ti0032a380-dhcp0316.bb.online.no] has quit [Read error: 54 (Connection reset by peer)] 01:09 -!- Raziel2p [n=Raziel2p@ti0032a380-dhcp0316.bb.online.no] has joined #go-nuts 01:09 -!- triplez [n=triplez@cm52.sigma225.maxonline.com.sg] has quit [] 01:10 -!- skyfive [n=skyfive@h-74-1-186-114.snfccasy.static.covad.net] has joined #go-nuts 01:11 -!- djanderson [n=dja@hltncable.pioneerbroadband.net] has joined #go-nuts 01:12 -!- Gracenotes [n=person@wikipedia/Gracenotes] has quit [Remote closed the connection] 01:13 -!- rndbot [n=bot@wikipedia/Gracenotes] has quit [Remote closed the connection] 01:14 -!- WalterMundt [n=waltermu@twiki/developer/EtherMage] has quit ["Leaving."] 01:15 -!- mxpxpod [n=bryan@unaffiliated/mxpxpod] has quit ["Ex-Chat"] 01:17 -!- qbit_ [n=qbit_@c-75-71-160-106.hsd1.co.comcast.net] has quit ["WinPants!"] 01:18 -!- amuck [n=amuck@h140.154.190.173.ip.windstream.net] has joined #go-nuts 01:20 -!- Gracenotes [n=person@wikipedia/Gracenotes] has joined #go-nuts 01:20 -!- raichoo [n=raichoo@i577BA4A3.versanet.de] has quit ["http://raichoo.blogspot.com"] 01:20 -!- gasreaa [n=atwong@nat/slide/x-wpaxihypexjqxkym] has joined #go-nuts 01:20 -!- arieru [n=arieru@190.3.74.225] has joined #go-nuts 01:20 -!- gasreaa [n=atwong@nat/slide/x-wpaxihypexjqxkym] has left #go-nuts [] 01:21 -!- drusepth [n=drusepth@adsl-75-33-217-220.dsl.spfdmo.sbcglobal.net] has joined #go-nuts 01:21 < arieru> Hello... When I want to compile hello.go, a message saying "can't find import fmt" is shown by the compiler. I asume my packages are not installed. Some one can help me ? 01:22 -!- Fraeon [n=kzer-za@e212-246-65-153.elisa-laajakaista.fi] has quit [] 01:22 < KirkMcDonald> arieru: Are GOROOT, GOARCH, GOOS, and GOBIN set? 01:23 -!- penguin42 [n=dg@tu006.demon.co.uk] has left #go-nuts [] 01:26 < arieru> KirkMcDonald, let me see... Thanks... I thins vars was exported, when I compile go, but no then, when I reboot my computer 01:26 < arieru> are this variables necesary all the time ? 01:26 -!- turutosiya [n=turutosi@219.106.251.65] has joined #go-nuts 01:27 < KirkMcDonald> Yes. 01:29 < arieru> KirkMcDonald, Thanks a lot... solved. :S I'am too newbie yet 01:30 -!- arieru [n=arieru@190.3.74.225] has quit ["Ex-Chat"] 01:31 -!- Gracenotes_ [n=person@wikipedia/Gracenotes] has joined #go-nuts 01:31 -!- franksalim [n=frank@76.221.202.115] has joined #go-nuts 01:33 -!- dgnorton [n=none@24.224.99.49] has joined #go-nuts 01:33 -!- rndbot [n=bot@wikipedia/Gracenotes] has joined #go-nuts 01:33 -!- Gracenotes [n=person@wikipedia/Gracenotes] has quit [Nick collision from services.] 01:35 -!- dgnorton [n=none@24.224.99.49] has left #go-nuts [] 01:37 -!- triplez [n=triplez@bb116-14-27-220.singnet.com.sg] has joined #go-nuts 01:39 < jimi_hendrix> is there something like bufio.ReadString but with multiple delims? 01:39 < jimi_hendrix> (or multichar delims...) 01:39 -!- drusepth` [n=drusepth@adsl-75-33-217-220.dsl.spfdmo.sbcglobal.net] has quit [Read error: 110 (Connection timed out)] 01:40 -!- ring-zero [n=hotshot@117.199.129.116] has quit ["Leaving"] 01:41 -!- XniX23 [n=XniX23@89-212-198-49.dynamic.dsl.t-2.net] has quit [Remote closed the connection] 01:43 -!- thingie59 [n=foo@125-238-120-247.broadband-telecom.global-gateway.net.nz] has quit [] 01:44 < sladegen> jimi_hendrix: i think the answer is the usual: use regex or implement your own walker. 01:44 < sladegen> jimi_hendrix: perhaps byte.Split 01:45 < sladegen> bytes.Split* 01:45 < jimi_hendrix> ok 01:45 < jimi_hendrix> sladegen, is the lack of a function like that more a new language thing or a design decision thing 01:46 -!- tuor [n=greg@76.186.192.175] has joined #go-nuts 01:47 -!- damien [n=damien@damien.grassart.com] has quit [Read error: 113 (No route to host)] 01:48 -!- aanderse [n=aanderse@CPE001b11cc67d3-CM0019475d7f5e.cpe.net.cable.rogers.com] has quit [Read error: 113 (No route to host)] 01:49 < jimi_hendrix> how would i trigger a segfault instead of an index out of bounds thing? 01:50 <+danderson> you shouldn't be able to generate an invalid memory reference, due to the lack of pointer arithmetic 01:50 <+danderson> so, the answer is that you don't 01:50 < jimi_hendrix> well i just did 01:50 <+danderson> (to my knowledge) 01:50 <+danderson> fun. 01:50 <+danderson> so that's either a bug, or some language semantics I missed. 01:50 < JBeshir> Was this on an array, jimi_hendrix? 01:50 < JBeshir> Or a slice? 01:51 < jimi_hendrix> SIGSEGV: segmentation violation 01:51 < jimi_hendrix> Faulting address: 0x28 01:51 < jimi_hendrix> PC=0x400b1c 01:51 < jimi_hendrix> JBeshir, neither 01:52 <+danderson> sounds like a null pointer deref with an array offset, which should be impossible 01:52 < jimi_hendrix> i was writting to a TCPCon 01:52 < jimi_hendrix> main·sendMessage+0xa4 /home/me/Code/Go/GoGet/src/main.go:44 01:52 < jimi_hendrix> main·sendMessage(0x0, 0x0, 0x0, 0x0, 0x0, ...) 01:52 < jimi_hendrix> and i should not be sending all nulls to that function... 01:53 <+danderson> really sounds like a bug. I would open an issue at http://code.google.com/p/go/ with a minimal reproduction recipe 01:54 < jimi_hendrix> danderson, what should i include 01:54 <+danderson> the program you used to cause the segfault, ideally the smallest possible program that triggers it 01:54 <+danderson> and the compiler you used (6g, 8g, gccgo) 01:56 -!- FeyyazEsat [n=feyyazes@85.107.220.15] has joined #go-nuts 01:56 < FeyyazEsat> FeyyazEsat: 01:56 < FeyyazEsat> FeyyazEsat, 01:56 -!- mode/#go-nuts [+o danderson] by ChanServ 01:57 -!- mode/#go-nuts [+b *!*=feyyazes@85.107.220.*] by danderson 01:57 -!- FeyyazEsat was kicked from #go-nuts by danderson [get out.] 01:57 -!- mode/#go-nuts [-o danderson] by danderson 01:57 < JBeshir> Nice reaction tiem. 01:57 < JBeshir> *time. 01:57 < jimi_hendrix> danderson, i dont know what triggered it 01:57 < jimi_hendrix> is he a known troll 01:57 <+danderson> jimi_hendrix: but you have the program, no? 01:57 < jimi_hendrix> yes 01:57 < jimi_hendrix> i will paste the whole thing 01:57 <+danderson> so dump the source code into the bug 01:57 < jimi_hendrix> ok 01:58 <+danderson> that, combined with the compiler you used, should be enough to reproduce the problem 01:58 < jimi_hendrix> ok 01:58 -!- yibter [n=yibter@c-76-105-116-44.hsd1.ga.comcast.net] has quit ["Leaving"] 01:58 < jimi_hendrix> was issue #9 ever resolved? 01:59 < jimi_hendrix> danderson, must i follow the little default format thingie? 02:00 <+danderson> jimi_hendrix: you don't have to, it's just a guideline for new users 02:00 <+danderson> but in your case, the expected/actual behavior is pretty obvious 02:00 <+danderson> "it crapped itself. It should not do that." 02:00 -!- General1337 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has joined #go-nuts 02:00 < jimi_hendrix> hehe 02:03 -!- tuor [n=greg@76.186.192.175] has quit [] 02:05 -!- assiss [n=assiss@219.143.153.59] has joined #go-nuts 02:05 -!- aho [n=nya@g226128246.adsl.alicedsl.de] has joined #go-nuts 02:06 -!- prip [n=_prip@host163-122-dynamic.32-79-r.retail.telecomitalia.it] has joined #go-nuts 02:07 <+danderson> oh, missed a couple of your questions 02:07 <+danderson> is the dude from above a known troll, dunno. 02:07 <+danderson> But he's not a regular, and repeating your name twice in the first 10 seconds of being in a channel gets you kicked out 02:08 <+danderson> he was also killed off the network shortly after, so I'll go with troll. 02:08 -!- KillerX [n=anant@gentoo/developer/KillerX] has quit ["Leaving."] 02:08 <+danderson> and issue #9, I have no idea 02:10 -!- aanderse [n=aanderse@CPE001b11cc67d3-CM0019475d7f5e.cpe.net.cable.rogers.com] has joined #go-nuts 02:10 < drhodes> channel buffer sizes are immutable, right? 02:10 < jimi_hendrix> danderson, what should I put for the one line on top of the bug 02:11 < jimi_hendrix> danderson, the guy seems to have a very valid claim for issue #9 02:11 -!- skyyy [i=caw@129.21.116.238] has quit [Client Quit] 02:13 <+danderson> "Segfault when writing to a TCPCon" sounds about right 02:13 < KragenSitaker> danderson: I don't think he was actually a troll; he was asking genuine beginner questions a day or two ago 02:13 < jimi_hendrix> ok 02:13 < KragenSitaker> in rather poor English 02:13 <+danderson> KragenSitaker: oh? Darn. 02:13 * danderson checks logs 02:13 < KragenSitaker> so if it were up to me, I would go ahead and unban him 02:13 < jimi_hendrix> http://code.google.com/p/go/issues/detail?id=277 02:14 -!- maruel [n=maruel_2@google1.osuosl.org] has quit ["leaving"] 02:14 <+danderson> crap, yeah. 02:14 <+danderson> KragenSitaker: yes, point well made. I'd never have kicked him if I'd seen him before. :( 02:14 -!- mode/#go-nuts [+o danderson] by ChanServ 02:14 -!- mode/#go-nuts [-b *!*=feyyazes@85.107.220.*] by danderson 02:14 -!- mode/#go-nuts [-o danderson] by danderson 02:15 < jimi_hendrix> how long will it take for someone to get back to me on a patch review 02:15 < scandal> i got feedback within a few hours on the one i submitted 02:16 <+danderson> dunno. But bugs do get examined fairly quickly 02:16 -!- Guest9229 [n=chatzill@bb116-14-32-24.singnet.com.sg] has joined #go-nuts 02:16 < scandal> but it was early in the day 02:16 <+danderson> I think the go folks are all at home or zoned out on hacking now, so it may take a day or so 02:16 < jimi_hendrix> danderson, its more a feature addition than a bug 02:17 * jimi_hendrix submited this at aroud 6 EST 02:17 < jimi_hendrix> it was a small adition to the log package that I felt might be useful enough to be added 02:17 <+danderson> which # ? 02:17 -!- golangguru [n=chatzill@124.125.104.56] has joined #go-nuts 02:18 < goplexian> anyone gotten sdl_go to work? 02:18 -!- General13372 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit [Connection timed out] 02:20 < jimi_hendrix> 157094 danderson 02:23 <+danderson> wha? 02:23 <+danderson> jimi_hendrix: I mean what issue number on the bug tracker 02:23 <+danderson> I'm assuming the patch is submitted there for review? Or where? 02:24 < jimi_hendrix> oh then i did something wrong :) 02:24 < jimi_hendrix> ya that contributte to the go code page could be better 02:25 < jimi_hendrix> because if i submitted an update where it was supposed to be a bug fix i did something wrong 02:25 <+danderson> oh, a code review like that 02:25 < jimi_hendrix> ya 02:25 <+danderson> hold on 02:25 <+danderson> I'm not familiar with the procedure to contribute 02:27 <+danderson> jimi_hendrix: open another issue for the fix and link to the code review. That sounds like the best way to me. 02:28 < jimi_hendrix> danderson, no its not a bug fix, its a feature addition 02:28 <+danderson> the tracker also tracks new features 02:28 <+danderson> but one more second 02:28 -!- jsgotangco [n=JSG@ubuntu/member/jsgotangco] has joined #go-nuts 02:29 <+danderson> jimi_hendrix: so, you submitted the code review to go-dev@googlegroups.com, which doesn't exist 02:30 <+danderson> so either remail it to go-nuts@, or create an issue and link to the code review 02:31 < jimi_hendrix> ok 02:31 < uriel> nice: http://github.com/mikejs/gomongo 02:32 -!- voluspa [n=voluspa@x-134-84-102-227.reshalls.umn.edu] has quit [Read error: 113 (No route to host)] 02:32 -!- drusepth` [n=drusepth@adsl-75-33-217-220.dsl.spfdmo.sbcglobal.net] has joined #go-nuts 02:32 -!- amacleod [n=amacleod@c-24-34-33-96.hsd1.ma.comcast.net] has joined #go-nuts 02:32 <+danderson> nice indeed 02:32 <+danderson> and on that note, g'night (what's left of it) 02:33 < jimi_hendrix> go-nuts@where? 02:33 < jimi_hendrix> danderson ^ 02:34 -!- smcq_ [n=smcq@adsl-76-254-26-58.dsl.pltn13.sbcglobal.net] has quit ["This computer has gone to sleep"] 02:35 < uriel> good night danderson 02:36 < jimi_hendrix> uriel, by go-nuts@ did he mean go-nuts@googlegroups.com? 02:36 < uriel> jimi_hendrix: danderson is just confused 02:36 < jimi_hendrix> lol 02:36 < jimi_hendrix> well i am now confused 02:36 < uriel> no, there is no such group 02:36 < uriel> there is only golang-nuts@ 02:36 < jimi_hendrix> so where do i send this 02:37 < uriel> and golang-dev 02:37 < uriel> where do you send what? 02:37 -!- gnibbler_ [n=duckman@124.168.30.157] has joined #go-nuts 02:37 < jimi_hendrix> small, yet possibly useful addition i made to the log package 02:37 -!- tor7 [n=tor@c-987a71d5.04-50-6c756e10.cust.bredbandsbolaget.se] has quit [] 02:38 < uriel> follow the "how to contribute" instructions 02:38 < jimi_hendrix> i did 02:38 < uriel> and? 02:38 -!- JSharpe [n=jamie@5ad1d7f1.bb.sky.com] has joined #go-nuts 02:39 < jimi_hendrix> it does not mention where to send the update 02:39 -!- rndbot [n=bot@wikipedia/Gracenotes] has quit [Read error: 60 (Operation timed out)] 02:39 < uriel> well, then post to golang-nuts@ saying that the instructions are incomplete 02:40 < jimi_hendrix> ok 02:40 < jimi_hendrix> will do that tomorrow 02:40 < jimi_hendrix> i am going to bed 02:40 < uriel> good night then 02:40 < jimi_hendrix> uriel, oh, one last thing 02:41 < jimi_hendrix> how would i make a resizeable array of something that isnt an int or string 02:41 -!- drusepth`` [n=drusepth@adsl-75-41-186-207.dsl.spfdmo.sbcglobal.net] has joined #go-nuts 02:42 < uriel> jimi_hendrix: a resizable array? use slizes 02:43 <+danderson> yes, I am indeed confused 02:43 < jimi_hendrix> ok 02:43 < jimi_hendrix> wait, slices are resizeable? 02:43 <+danderson> and always forget mailing list names, damn gmail autocomplete stealing my memory 02:43 <+danderson> uriel: thanks for straightening it out. 02:46 -!- JSharpe2 [n=jamie@5ad1d7f1.bb.sky.com] has quit [Read error: 145 (Connection timed out)] 02:46 < uriel> jimi_hendrix: slices are resizable, that is the whole point of slizes 02:46 < Ycros> uriel: you can only size them as big as the array they're fronting 02:46 < uriel> Ycros: obviously 02:47 < Ycros> uriel: I think he wants a vector 02:47 < jimi_hendrix> i do 02:47 < jimi_hendrix> but i can only use those as ints and strings right 02:47 < Ycros> jimi_hendrix: no, you can use the normal vector 02:47 < Ycros> and surround it with casts 02:47 < KragenSitaker> yay :(p 02:47 < Ycros> or use a list - depends on how you're going to use it 02:48 -!- dionysiac [n=dionysia@209.91.107.250] has joined #go-nuts 02:48 < jimi_hendrix> ok, thanks 02:49 -!- gnibbler [n=duckman@124-148-149-72.dyn.iinet.net.au] has quit [Read error: 113 (No route to host)] 02:49 -!- drusepth [n=drusepth@adsl-75-33-217-220.dsl.spfdmo.sbcglobal.net] has quit [Read error: 110 (Connection timed out)] 02:49 < uriel> Ycros: why do you tihnk he wants a vector? 02:50 < uriel> if an array slice works, using a vector is silly 02:50 < KragenSitaker> uriel: that's usually what people mean when they say "resizable array" 02:50 < KragenSitaker> they're talking about something like OrderedCollection, lists in Perl or Python, or Arrays in JS 02:51 < KragenSitaker> or vectors in the STL 02:51 < KragenSitaker> something you can append a new last item to an arbitrary number of times, while using a reasonable amount of memory and retaining O(1) positional access 02:52 -!- drusepth [n=drusepth@adsl-75-41-186-207.dsl.spfdmo.sbcglobal.net] has joined #go-nuts 02:52 < Ycros> KragenSitaker: I find that I rarely need fast positional access, so I often use lists 02:52 -!- Gracenotes [n=person@wikipedia/Gracenotes] has quit [Connection timed out] 02:52 < KragenSitaker> Ycros: it is true, algorithms that actually require (the STL's term) random-access iterators are fairly rare 02:53 -!- creack [n=creack@ip-67.net-80-236-112.lhaylesroses.rev.numericable.fr] has quit [Read error: 110 (Connection timed out)] 02:53 -!- jordyd [n=jordyd@99-177-65-75.lightspeed.wepbfl.sbcglobal.net] has joined #go-nuts 02:53 -!- creack [n=creack@ip-67.net-80-236-112.lhaylesroses.rev.numericable.fr] has joined #go-nuts 02:53 < KragenSitaker> on the other hand, STL-type vectors are mostly better than linked lists except when you want to insert and delete in the middle 02:53 < KragenSitaker> performancewise 02:54 < KragenSitaker> and those operations are even rarer than random access 02:54 -!- Gracenotes [n=person@wikipedia/Gracenotes] has joined #go-nuts 02:55 < sahazel> can the go compiler and runtime be made to not use threads? 02:55 < KragenSitaker> so usually you can be more productive by using STL-type vectors by default, and linked lists when the performance warrants it 02:55 < JBeshir> KragenSitaker: What about RAM-wise? 02:55 < JBeshir> STL vectors always bothered me because they seem to involve a great deal of wasted RAM at the ends. 02:55 < sahazel> I'm contemplating Go support for codepad.org, but reliance on threads would make that hard 02:55 < JBeshir> Well, one end. 02:56 < KragenSitaker> JBeshir: STL-type vectors are a lot more efficient on memory than linked lists 02:56 < JBeshir> KragenSitaker: With the extra memory allocated in order to give O(1) accounted for? 02:56 -!- kota1111 [n=kota1111@gw2.kbmj.jp] has joined #go-nuts 02:56 < KragenSitaker> the worst-case wasted-RAM overhead is about a factor of 2 02:56 < JBeshir> Ew 02:56 < JBeshir> That's pretty terrible. 02:56 -!- drusepth [n=drusepth@adsl-75-41-186-207.dsl.spfdmo.sbcglobal.net] has quit [Read error: 54 (Connection reset by peer)] 02:56 < KragenSitaker> a linked list of pointers, on the other hand, needs a factor of 2 in the best case 02:57 < KragenSitaker> more typically it's a factor of 8 02:57 < JBeshir> No, it needs a factor of 2 in the worse case, in which the pointers are the only thing in there. 02:57 < JBeshir> The larger your list items, the smaller the overhead. 02:57 < uriel> shasbot: goroutines need to be able to map to threads if they block 02:57 < JBeshir> Er, pointers and an integer 02:57 < KragenSitaker> yes, if you have larger list items, you have less overhead 02:57 < JBeshir> I guess it could technically hit 8, but for that, it'd have to be a linked list of chars 02:57 < JBeshir> And that's pretty improbable. 02:57 < KragenSitaker> no 02:57 < KragenSitaker> if you allocate your linked-list node with malloc 02:58 < KragenSitaker> (which is the usual thing to do) 02:58 < KragenSitaker> malloc has to return maximally-aligned memory, which is typically 16-byte-aligned 02:58 < uriel> shasbot: I guess that if the code doesn't use any goruotines, it won't create any new threads, but I don't know.. 02:58 -!- drusepth` [n=drusepth@adsl-75-33-217-220.dsl.spfdmo.sbcglobal.net] has quit [Read error: 110 (Connection timed out)] 02:58 < KragenSitaker> and it typically stores an allocation header before the memory it returns 02:58 < uriel> shasbot: how do you deal with threads on other languages? 02:59 < KragenSitaker> of two words, 8 bytes, usually 02:59 -!- lenst [n=user@81-237-244-185-no52.tbcn.telia.com] has quit [Read error: 60 (Operation timed out)] 02:59 < KragenSitaker> so a linked-list node actually costs you 16 bytes on a 32-bit machine: two words of malloc overhead, one word of payload, and one word of next-pointer 02:59 < KragenSitaker> except it gets worse 02:59 -!- drusepth`` [n=drusepth@adsl-75-41-186-207.dsl.spfdmo.sbcglobal.net] has quit [Read error: 110 (Connection timed out)] 03:00 < KragenSitaker> because some malloc implementations won't put your data into the same 16-byte region as their own malloc/free headers 03:00 < KragenSitaker> so it actually costs 32 bytes 03:00 < KragenSitaker> most of them, actually, I think 03:01 < KragenSitaker> thus, a linked list of pointers typically costs a factor of 8 in overhead 03:01 < JBeshir> For one word of payload. 03:01 < KragenSitaker> Right. That's why I said "of pointers". 03:01 < uriel> sahazel: sorry, my tab completeion was messing me up: 03:01 < uriel> 02:57 < uriel> shasbot: goroutines need to be able to map to threads if they block 03:01 < uriel> 02:58 < uriel> shasbot: I guess that if the code doesn't use any goruotines, it won't create any new threads, but I don't 03:01 < uriel> know.. 03:01 < KragenSitaker> to get rid of the malloc overhead, you can go to a custom allocator, if applicable. 03:01 < uriel> ^^^ that was meant for you 03:02 < KragenSitaker> but you can't do that in Go. 03:02 < uriel> sahazel: also see http://gofmt.com/compile.html 03:02 < JBeshir> Yeah, but if you have, say, a 100 byte payload, the overhead becomes small. 03:02 < JBeshir> While the overhead of a vector remains constant. 03:02 < KragenSitaker> Yes. 03:03 < KragenSitaker> Yes. 03:03 < KragenSitaker> Linked lists of pointers are actually pretty popular, though. 03:03 < JBeshir> Ew. 03:03 < KragenSitaker> They let you put the same item in multiple lists, for example. 03:03 -!- drusepth [n=drusepth@adsl-75-41-186-207.dsl.spfdmo.sbcglobal.net] has joined #go-nuts 03:03 < KragenSitaker> Thus separating the item contained from the container it's in. 03:03 < KragenSitaker> They're the normal kind of list in Lisp, OCaml, and Haskell. 03:03 < JBeshir> I suppose that would be needed and more efficient if you needed midlist removal. 03:03 < JBeshir> If less efficient for simple "resizable array" purposes. 03:04 -!- rrr [i=rrr@gateway/gpg-tor/key-0x9230E18F] has quit [] 03:04 < KragenSitaker> Right. 03:04 < JBeshir> I wonder how the deques of C++ work. 03:04 < KragenSitaker> They're linked lists of blocks of memory. 03:05 < JBeshir> Yeah, thus avoiding the need to move large amounts when resizing. 03:05 < KragenSitaker> So there's a big array of payload values, and if it expands past the bounds of the block, STL allocates another one and links it up. 03:05 < KragenSitaker> Right. 03:05 < KragenSitaker> At the cost of an extra couple of indirections on every single access. 03:05 < JBeshir> Would they allocate less extra than vectors? 03:05 -!- sferry [n=sam@unaffiliated/samferry] has joined #go-nuts 03:05 < KragenSitaker> I don't have a lot of experience using them, but it seems like they would. 03:06 < JBeshir> Hmm, interesting sets of pros and cons around the board, really. 03:07 < KragenSitaker> Typically languages for which external linked lists are very common use garbage collectors that don't impose a large memory overhead on them. 03:07 < KragenSitaker> So a list node really only takes two words. 03:07 < KragenSitaker> There's an old trick called "CDR-coding" that isn't widely used any more, but it can make them even smaller. 03:08 -!- Jan_Flanders [n=chatzill@d54C1E33B.access.telenet.be] has quit ["Chatzilla 0.9.75.1 [SeaMonkey 1.1.18/2009082513]"] 03:08 < me___> KragenSitaker: onoz. don't bring that up. :) 03:08 < KragenSitaker> me___: heh, not a fan of CDR-coding? 03:08 < me___> i've used it on a 6808, so no. 03:09 < KragenSitaker> hahahaha 03:09 < KragenSitaker> did you at least get a paper out of it? 03:09 < me___> haha no. why? 03:09 -!- Fl1pFl0p [n=FlipFlop@ip68-8-225-187.sd.sd.cox.net] has joined #go-nuts 03:09 < KragenSitaker> I'm trying to figure out what else would justify doing that :) 03:10 -!- engla [n=ulrik@wikipedia/Sverdrup] has quit [Read error: 110 (Connection timed out)] 03:11 < me___> i don't remember too well any more... 03:11 < KragenSitaker> hahahaha 03:11 < KragenSitaker> <me___> i was very drunk at the time, you see... 03:11 < me___> :D 03:14 -!- jsgotangco [n=JSG@ubuntu/member/jsgotangco] has quit ["Ciao"] 03:19 -!- decriptor [n=decripto@174.23.163.211] has joined #go-nuts 03:19 -!- xuser [n=xuser@unaffiliated/xuser] has joined #go-nuts 03:21 -!- xuser [n=xuser@unaffiliated/xuser] has left #go-nuts [] 03:21 < uriel> hey me___, whats up? 03:22 < me___> not too much, you? 03:23 < uriel> not much either :) 03:23 < uriel> trying to clean up around a bit, lets see if I can sit down for some real hacking this weekend 03:25 -!- leitz [n=leam@72.150.95.31] has joined #go-nuts 03:25 -!- Jacolyte [n=blaine@unaffiliated/jacolyte] has joined #go-nuts 03:25 -!- Fl1pFl0p [n=FlipFlop@ip68-8-225-187.sd.sd.cox.net] has quit [Client Quit] 03:25 < leitz> Any opinions on how many people are or might turn to Go for their first programming language? 03:26 -!- e1f` [n=user@141.117.1.154] has joined #go-nuts 03:26 < uriel> how many programmers are there in the world? 03:26 < uriel> I don't think anyone has a clue 03:26 < uriel> I know I quite probably will 03:26 < leitz> Or, more broadly, how many are not high end C/Java/?? programmers, but newbies. 03:27 < uriel> I think the probability of somebody that doesn't at least know some C to pick up Go are slim 03:27 < mkanat> leitz: I wouldn't imagine newbies are using a new language. 03:27 < uriel> not zero, but it would have to be somebody quite bright 03:28 < JBeshir> Go would make a good first language. 03:28 < s_mosher> uriel, to me go seems simpler to learn than C 03:28 < mkanat> Yeah, for sure. 03:28 < JBeshir> It's relatively close to the hardware; its abstractions are clear and comprehensible, and separated. 03:28 < leitz> mkanat, I don't know. Go has a lot of potential and for a newbie the newness of the language might not bother them. They (we) don't hit the developing stuff as quickly as an experienced coder might. 03:28 < uriel> mkanat: well, I have a good friend, that is quite damned good hacker, that learned to use computers while studing to become a lawyer, and the first OS he used was plan9! 03:28 < mkanat> So maybe in a few years you'll see a lot of newbies using it. 03:29 < mkanat> uriel: Ha! That is pretty interesting. :-) 03:29 < uriel> s_mosher: go is simpler to learn than C 03:29 < JBeshir> Its concepts are separated, so it's easy to learn about the ideas behind interfaces separate to other stuff. 03:29 < uriel> mkanat: plan9 people are all quite weird though :)) 03:29 < mkanat> uriel: Hahaha. I have to admit I haven't ever used it or met any. 03:29 < JBeshir> And its very type safe and has no exceptions, so it's easy to produce code that works right. 03:29 < JBeshir> And works reliably. 03:29 -!- middayc_ [n=chatzill@BSN-176-210-184.dial-up.dsl.siol.net] has quit ["ChatZilla 0.9.85 [Firefox 3.5.5/20091102152451]"] 03:29 < s_mosher> uriel, ok... not sure how to interpret your comment then. (I do think people *should* be learning C first though.) 03:30 < uriel> I think my point is that most people smarter enough and with the right taste to write Go, probably have learned C already 03:30 < mkanat> s_mosher: Mmmm, I suspect that people could learn well enough with a Go class and an assembler class. 03:30 < s_mosher> ah 03:30 < uriel> but then, I guess there are tons of really horrible C programmers out there, which would benefit form using go 03:30 < uriel> (as would java programmers) 03:30 < uriel> but most such people have no clue what they are doing 03:30 < mkanat> uriel: Yes. 03:30 < s_mosher> mkanat, that would be fine too 03:31 < leitz> JBeshir, do you think there's a large enough percentage of newbies or potentials to develop more of the tutorial type stuff? 03:31 < uriel> maybe somebody should write a book about Go as a first programming language... 03:31 < mkanat> leitz: I think that's an "if you build it they will come" sort of thing. 03:31 < uriel> leitz: at the moment, unlikely, the libraries and the implementation and everything needs to mature a bit 03:31 < uriel> but then, a smart kid can pick up anything 03:31 < uriel> without any 'newb-oriented tutorial' 03:32 < JBeshir> leitz: I think that needs time. 03:32 < KragenSitaker> leitz: nobody should be turning to Go for their first programming language yet. 03:32 < leitz> uriel, us dumb guys can pick up stuff too, it just takes longer... :) 03:32 < uriel> leitz: I'm not so sure 03:32 < uriel> leitz: most people never learn to do anything well 03:32 < sladegen> everyone should learn scheme first! 03:32 < uriel> sladegen: I wont completely disagree with that 03:32 < JBeshir> Go is slightly more bad coder tolerant, if not more bad coder friendly. 03:32 < KragenSitaker> because it's missing libraries and tutorials and example code 03:32 -!- travisbrady [n=tbrady@67-207-96-194.static.wiline.com] has quit [] 03:32 < leitz> Okay, I'm confused. YOu guys just gave several great reasons Go should be a first language. Why the switch? 03:33 < JBeshir> In that its type safety makes bad code look bad pretty easily. 03:33 < uriel> sladegen: scheme+c is a very good way to learn to program 03:33 * sladegen nods. 03:33 < uriel> leitz: it depends on the person 03:33 -!- Metaphorically [n=chatzill@206-248-157-156.dsl.teksavvy.com] has joined #go-nuts 03:33 < JBeshir> Go would be a good language to learn, less sure of first. 03:33 < JBeshir> First language needs to be something they can get the whole idea of "instructing the machine" in their heads with. 03:33 < KragenSitaker> and things like the compiler's error messages aren't very friendly 03:34 < s_mosher> "now is a bad time to learn Go as a first language" - I think most people here would agree to that 03:34 < KragenSitaker> and there's no REPL 03:34 < sladegen> though i could use a bit of assembly or some bytecodization. 03:34 < uriel> KragenSitaker: there is the bot in #go-run ;) 03:34 < KragenSitaker> uriel: heh 03:34 < KragenSitaker> uriel: social REPL is interesting 03:35 < KragenSitaker> how stateful is the bot? 03:35 < uriel> s_mosher: well, I think everyone can agree it will get easier with time, but there is no intrinsic dificulty, other than it might require more effort and one might run into more toruble 03:35 < uriel> KragenSitaker: I think it is stateless :( 03:35 < sladegen> like HTTP 03:35 < uriel> sladegen: haha 03:35 < leitz> JBeshir, I'm not sure. Back in the day, C and ASM were a good challenge, though schools taught Pascal and Basic. Now, with so many folks unused to non-GUI driven computers are there enough layers between person and hardware that an intermediate language would be useful? 03:36 < JBeshir> leitz: It's more that the concepts that're being taught are different, and higher level, I think. 03:36 -!- ednos [n=Miranda@c-75-69-44-39.hsd1.ma.comcast.net] has joined #go-nuts 03:36 < sladegen> go wants to compress that level and in this way it may be good first language. 03:37 < s_mosher> uriel, I'm just thinking that the payoff is questionable. it will be who knows how long before it's production ready, and there are a good number of bugs and omissions in the compiler and runtime, not to mention immature library support 03:37 < leitz> s_mosher, are you talking Java or Go? :) 03:37 < ednos> Anyone know why after a fresh install (for a fresh Go user) all compiles "can't find imports"? 03:37 -!- loureiro [n=loureiro@201008207197.user.veloxzone.com.br] has quit [Read error: 60 (Operation timed out)] 03:37 <+iant> ednos: usually means that GOROOT is not right 03:37 < uriel> s_mosher: sure, but I remember back when people learned asm on some crap computer as their first language, and they managed just fine 03:37 < ednos> goroot should point to the place I put the repository, right? 03:38 <+iant> ednos: right 03:38 < ednos> hmmm 03:38 <+iant> check GOARCH and GOOS as well 03:38 < s_mosher> leitz, Go. 03:38 < sahazel> uriel: do you know who runs gofmt? that looks like a good start. 03:38 < leitz> s_mosher, I know. Late night humor before I konk out... 03:38 < uriel> sahazel: no clue 03:38 < uriel> sorry 03:39 < sahazel> cool 03:39 < sahazel> thanks anyway 03:39 -!- aanderse [n=aanderse@CPE001b11cc67d3-CM0019475d7f5e.cpe.net.cable.rogers.com] has quit [Remote closed the connection] 03:39 -!- turutosiya [n=turutosi@219.106.251.65] has quit [Read error: 110 (Connection timed out)] 03:39 < ednos> iant: ah, thanks, sorry for the stupid question 03:40 < ednos> works now 03:40 < uriel> sahazel: Gracenotes wrote rndbot which might have similar issues 03:40 -!- zhaozhou [n=zhaozhou@linfast76.bitnet.nu] has quit [Read error: 110 (Connection timed out)] 03:41 * leitz totters off to think on the newbie issue some more and catch some sleep before work. 03:41 < sladegen> whois goftm.com reports someone in china... 03:41 -!- leitz [n=leam@72.150.95.31] has quit ["Leaving."] 03:42 -!- binaryjohn [n=binaryjo@cpe-24-30-132-50.san.res.rr.com] has joined #go-nuts 03:42 < Gracenotes> eek 03:43 -!- mejja [n=user@c-49b6e555.023-82-73746f38.cust.bredbandsbolaget.se] has quit [Remote closed the connection] 03:43 -!- Metaphorically_ [n=chatzill@206-248-157-156.dsl.teksavvy.com] has joined #go-nuts 03:43 < Gracenotes> my ssh shut off :/ 03:43 < KragenSitaker> uriel: very few people learned to program back when people learned asm on some crap computer as their first language 03:43 < KragenSitaker> most people jsut gave up 03:43 < sladegen> bah, typo ;) 03:44 < Gracenotes> actually, the VPS service shut it off, being dynamic hosting 03:44 -!- rndbot [n=bot@wikipedia/Gracenotes] has joined #go-nuts 03:44 -!- smooge [n=smooge@int.smoogespace.com] has quit ["-ENOBRAIN"] 03:44 < uriel> KragenSitaker: most people didn't try 03:44 < Gracenotes> REPLs are very nice, but they tend to need some kind of bytecode. or at least bytecode-esque assembly, yeah 03:45 < KragenSitaker> uriel: that's true too 03:45 < uriel> Gracenotes: I guess you noticed the go interpreter included in the distribution... 03:45 < sladegen> or hardware went out of style. 03:45 < KragenSitaker> Gracenotes: really? why? 03:45 < KragenSitaker> Gracenotes: SBCL seems to get by okay, and I don't think its code generation is particularly bytecode-esque 03:45 -!- Metaphorically__ [n=chatzill@206-248-157-156.dsl.teksavvy.com] has joined #go-nuts 03:46 < KragenSitaker> fix-and-continue benefits a lot from interpretation, but you don't need fix-and-continue for a REPL 03:46 < KragenSitaker> although it sure helps beginners! 03:46 < Gracenotes> uriel: I did, forgot about that. does it interpret just the source tree, or keep some intermediate interpretation? 03:47 < Gracenotes> if the former, that's not exactly acceptable in terms of performance, and if the latter, that's a very short step away from bytecode 03:47 < poe> what are text editors with proper go interaction at the moment? is there anything for xcode? 03:47 < uriel> Gracenotes: I have no clue, didn't look at the code, just noticed that it is there 03:47 -!- Rob_Russell [n=chatzill@206-248-157-156.dsl.teksavvy.com] has quit [Read error: 113 (No route to host)] 03:47 < uriel> poe: misc/xcode/ 03:47 < uriel> poe: and see http://go-lang.cat-v.org/text-editors/ 03:48 < sladegen> Gracenotes: what KragenSitaker meant to state is that SBCL is compiling to machine code, not sure but it may even do it at the REPL. 03:48 < poe> uriel thanks for the pointers. 03:48 < Gracenotes> KragenSitaker: the bytecode would be only for the REPL 03:48 < uriel> poe: no problem 03:48 < Gracenotes> since it wouldn't be a very useful REPL if it didn't provide some kind of introspective information. at least imho 03:49 < sladegen> Common Lisp has compile as a function in its spec. 03:49 -!- tanamo [n=tanamo@125.252.70.230] has joined #go-nuts 03:52 -!- evilhackerdude [n=stephan@e181126179.adsl.alicedsl.de] has quit [Read error: 60 (Operation timed out)] 03:54 -!- fhs [n=fhs@pool-72-89-203-117.nycmny.east.verizon.net] has joined #go-nuts 03:57 < golangguru> i started forum 2 days ago www.golangtalk.com 03:59 -!- Metaphorically [n=chatzill@206-248-157-156.dsl.teksavvy.com] has quit [Read error: 113 (No route to host)] 03:59 < uriel> golangguru: I 'm not sure I see the point, there is already http://reddit.com/r/golang/ and it has not been overwhelmed with activity so far 04:00 -!- Omei [n=chatzill@99-178-130-115.lightspeed.sndgca.sbcglobal.net] has joined #go-nuts 04:01 -!- Metaphorically_ [n=chatzill@206-248-157-156.dsl.teksavvy.com] has quit [Read error: 110 (Connection timed out)] 04:01 < golangguru> uriel: oh i don't know that. 04:02 -!- Perberos [n=Perberos@190.49.17.162] has quit ["Ex-Chat"] 04:03 -!- wobsite [n=wobsite_@68-189-250-56.static.oxfr.ma.charter.com] has joined #go-nuts 04:05 -!- path_ [n=path@115.240.53.74] has joined #go-nuts 04:05 -!- Perberos [n=Perberos@190.49.17.162] has joined #go-nuts 04:06 < Ycros> um, plus we have a mailing list 04:07 < golangguru> Ycros: ya but topics were not categorized in mailing list 04:08 -!- decriptor [n=decripto@174.23.163.211] has quit [Read error: 145 (Connection timed out)] 04:09 < Ycros> golangguru: I don't find that a problem 04:09 < Ycros> besides, everyone's already on the mailing list 04:10 < golangguru> Ycros: i think, it becomes problem after hundreds of posts 04:11 < golangguru> Ycros: Anyhow, i will wait for an activity. can you plz contribute? 04:13 -!- tile [n=Tyler@cpe-76-181-87-63.columbus.res.rr.com] has joined #go-nuts 04:13 -!- Associat0r [n=Associat@h163153.upc-h.chello.nl] has quit [] 04:13 -!- halfdan [n=halfdan@p57A94308.dip.t-dialin.net] has joined #go-nuts 04:13 -!- tile [n=Tyler@cpe-76-181-87-63.columbus.res.rr.com] has left #go-nuts ["Leaving"] 04:14 -!- skyfive [n=skyfive@h-74-1-186-114.snfccasy.static.covad.net] has quit [Remote closed the connection] 04:14 -!- sliceofpi [n=Adium@c-98-201-183-147.hsd1.tx.comcast.net] has joined #go-nuts 04:16 -!- hipe [n=hipe@69.193.196.185] has quit [Remote closed the connection] 04:17 -!- mat_ [n=mat@mx3.absolight.net] has quit [Read error: 104 (Connection reset by peer)] 04:17 -!- mat_ [n=mat@mx3.absolight.net] has joined #go-nuts 04:19 -!- jordyd [n=jordyd@99-177-65-75.lightspeed.wepbfl.sbcglobal.net] has quit [Remote closed the connection] 04:19 -!- binaryjohn [n=binaryjo@cpe-24-30-132-50.san.res.rr.com] has quit [] 04:20 -!- hallidave [n=hallidav@CPE001ff3406248-CM0018680dd678.cpe.net.cable.rogers.com] has quit [] 04:23 -!- Gynvael [n=gynvael@static-87-105-185-61.ssp.dialog.net.pl] has joined #go-nuts 04:23 -!- GynDream [n=gynvael@static-87-105-185-61.ssp.dialog.net.pl] has quit [Read error: 104 (Connection reset by peer)] 04:23 -!- sladegen [n=nemo@unaffiliated/sladegen] has quit [Nick collision from services.] 04:24 -!- sladegen [n=nemo@unaffiliated/sladegen] has joined #go-nuts 04:26 -!- cpr420 [n=cpr@67.165.199.143] has joined #go-nuts 04:27 -!- wobsite [n=wobsite_@68-189-250-56.static.oxfr.ma.charter.com] has quit ["Leaving"] 04:32 -!- SRabbelier [n=SRabbeli@ip138-114-211-87.adsl2.static.versatel.nl] has quit ["Leaving."] 04:32 < Gracenotes> oh, phew, Chromium OS is Linux-based. was worried there for a second. 04:33 -!- rhelmer [n=rhelmer@adsl-69-107-65-242.dsl.pltn13.pacbell.net] has quit [] 04:33 -!- halfdan_ [n=halfdan@p57A9434B.dip.t-dialin.net] has quit [Read error: 110 (Connection timed out)] 04:34 -!- rrr [i=rrr@gateway/gpg-tor/key-0x9230E18F] has joined #go-nuts 04:34 < Ycros> worried about what 04:34 < quag> anyone tried Chromium? 04:34 < quag> Gracenotes: Linux like Android is Linux? :) 04:35 * alexsuraci just pushed some subtle updates to gopaste 04:37 < alexsuraci> mostly with how invalid pastes are handled 04:37 -!- binaryjohn [n=binaryjo@cpe-24-30-132-50.san.res.rr.com] has joined #go-nuts 04:37 < alexsuraci> it'll now auto-wrap func main() { ... } if the initial parse fails, e.g. for snippets of pasted code 04:37 < alexsuraci> and if a parse fails it'll just display the raw content rather than an empty page 04:39 < uriel> alexsuraci: cool 04:40 < uriel> alexsuraci: you should have some way to enter non-go-code pastes.. 04:40 < alexsuraci> uriel: i disagree, there are plenty of those already 04:40 < alexsuraci> i'd rather just keep it specialized 04:41 -!- Adys [n=Adys@unaffiliated/adys] has joined #go-nuts 04:42 < uriel> heh, ok, maybe you are right :) 04:42 < uriel> it is just convenient to paste raw output some times 04:42 < uriel> and having to remember another pastebin is a pain ;P 04:43 < alexsuraci> you can do that as long as it's not also valid go :P 04:43 < alexsuraci> http://gopaste.org/HVFdT 04:43 < alexsuraci> http://gopaste.org/Oq86I 04:44 < uriel> hehe 04:44 < alexsuraci> which I don't mind 04:44 -!- kozak [n=kozak@122.166.48.72] has quit [Read error: 145 (Connection timed out)] 04:44 -!- twymer_ [n=tyler@cpe-76-181-87-63.columbus.res.rr.com] has joined #go-nuts 04:45 < uriel> alexsuraci: btw, there is a bug in the [raw] link, seems to miss the first line 04:45 < uriel> or maybe it is a feature... 04:45 < alexsuraci> the margin from the top and right? 04:45 -!- Metaphorically [n=chatzill@206-248-157-156.dsl.teksavvy.com] has joined #go-nuts 04:46 -!- binaryjohn_ [n=binaryjo@cpe-24-30-132-50.san.res.rr.com] has joined #go-nuts 04:46 -!- binaryjohn [n=binaryjo@cpe-24-30-132-50.san.res.rr.com] has quit [Read error: 104 (Connection reset by peer)] 04:47 -!- sm [n=sm@cpe-76-173-194-242.socal.res.rr.com] has quit [] 04:47 -!- Perberos [n=Perberos@190.49.17.162] has quit [Success] 04:47 -!- cpr420 [n=cpr@67.165.199.143] has left #go-nuts ["Ex-Chat"] 04:47 -!- decriptor [n=decripto@53.250.sfcn.org] has joined #go-nuts 04:48 < sladegen> wacky "A compiler may not optimize code under the assumption that overflow does not occur. For instance, it may not assume that x < x + 1 is always true." 04:48 <+iant> sladegen: gcc makes that assumption at -O2 for C/C++ 04:48 <+iant> but not for Java, because the Java language spec forbids it 04:49 <+iant> and not for Go for the same reason 04:49 < me___> it's caused entertainment for all at times. 04:49 -!- Perberos [n=Perberos@190.49.59.18] has joined #go-nuts 04:49 -!- apeace [n=apeace@c-24-61-22-9.hsd1.ma.comcast.net] has joined #go-nuts 04:50 -!- Gracenotes [n=person@wikipedia/Gracenotes] has quit [Connection timed out] 04:51 < Amaranth> whee overflow 04:52 -!- Gracenotes [n=person@wikipedia/Gracenotes] has joined #go-nuts 04:53 -!- Gracenotes [n=person@wikipedia/Gracenotes] has quit [Remote closed the connection] 04:53 < directrixx> sladegen: That 04:53 -!- jdp [n=justin@ool-435238c0.dyn.optonline.net] has joined #go-nuts 04:53 < directrixx> 's because of IEEE floating point 04:53 -!- shdw [n=alvaro@143.Red-83-61-110.dynamicIP.rima-tde.net] has quit [Remote closed the connection] 04:54 -!- Metaphorically [n=chatzill@206-248-157-156.dsl.teksavvy.com] has quit ["ChatZilla 0.9.85 [Firefox 3.5.5/20091102152451]"] 04:54 -!- skyfive [n=skyfive@adsl-69-106-230-209.dsl.pltn13.pacbell.net] has joined #go-nuts 04:54 < apeace> hey anyone down to answer a probably very simple question? 04:54 -!- skyfive [n=skyfive@adsl-69-106-230-209.dsl.pltn13.pacbell.net] has quit [Remote closed the connection] 04:54 < directrixx> apeace: shoot 04:54 < jdp> i'll give it a shot 04:55 -!- skyfive [n=skyfive@adsl-69-106-230-209.dsl.pltn13.pacbell.net] has joined #go-nuts 04:55 < apeace> so i'm learning Go and i'm not a C++ programmer, and I wrote this program: http://www.andrewpeace.com/euler/3/go/euler3.go 04:55 < apeace> and i'm wondering if there's an alternative to my append function (which was taken from the Effective Go article on golang.org) 04:55 -!- skyfive [n=skyfive@adsl-69-106-230-209.dsl.pltn13.pacbell.net] has quit [Remote closed the connection] 04:55 -!- Gracenotes [n=person@wikipedia/Gracenotes] has joined #go-nuts 04:56 -!- skyfive [n=skyfive@adsl-69-106-230-209.dsl.pltn13.pacbell.net] has joined #go-nuts 04:56 -!- skyfive [n=skyfive@adsl-69-106-230-209.dsl.pltn13.pacbell.net] has quit [Remote closed the connection] 04:57 < jdp> that's pretty idiomatic i think 04:57 < apeace> truly? there's not a built-in way to append arrays? 04:57 -!- skyfive [n=skyfive@adsl-69-106-230-209.dsl.pltn13.pacbell.net] has joined #go-nuts 04:57 < Eridius> Dhaia/m 04:57 < jdp> i know the bytes package has a function that does exactly that, where it concatenates two byte slices 04:57 < apeace> or slices, i mean :p 04:58 < jdp> but with int64 i guess that's the way to go 04:58 < apeace> huh. so, another new question: 04:58 < apeace> since there aren't generic types in Go, would i have to redefine append for every type? 04:59 < jessta> apeace: either that or convert between your type and byte[] 04:59 -!- Rob_Russell [n=chatzill@206-248-157-156.dsl.teksavvy.com] has quit [Read error: 113 (No route to host)] 04:59 <+iant> apeace: unfortunately, yes, but you may want to look at container/vector 05:00 < Ycros> apeace: once (I'm hoping it's a when and not an if) we get generics, all that pain will go away 05:00 < apeace> i see. jessta: in a very general sense, what would that look like? iant: cool, i will check it out now 05:00 < apeace> ycros: are you one of the Go developers? 05:01 < Ycros> apeace: no 05:01 -!- Gracenotes [n=person@wikipedia/Gracenotes] has quit [Remote closed the connection] 05:01 < apeace> ycros: ahh. was just wondering because of the "we" :p 05:01 < Ycros> apeace: I'm a user of the language :P 05:02 < apeace> ycros: are you loving it so far? personally i 05:02 < apeace> *personally i'm a fan of the language concept, but it worries me that this program is the longest of my Euler3 solutions :p 05:02 < Ycros> I think it's the right balance of simplicity and power. It has closures and built-in CSP is fantastic. 05:03 -!- Gracenotes [n=person@wikipedia/Gracenotes] has joined #go-nuts 05:03 < Ycros> I'd really really really like to see generics as well 05:03 < apeace> agreed 05:03 -!- rbohn_ [n=rbohn@d103.digis.net] has joined #go-nuts 05:03 < Ycros> that's a big pain point for me at the moment. Not-null pointers by default would be awesome as well. 05:03 < apeace> when you say it has closures...does that also mean first-order functions??? 05:03 < apeace> or just anonymous functions 05:04 < sladegen> both 05:04 < Ycros> foo(func() { blah() }) 05:04 < Ycros> yeah 05:04 < apeace> oh wow. i was not aware of that 05:04 < apeace> i have a bit of a background in scheme and python 05:04 < Ycros> so that should allow for the creation of some nice APIs 05:04 < apeace> so that's great for me :D 05:05 < sladegen> hip hip hooray! 05:05 < Ycros> channels and goroutines are fantastic. I like the way that iterators in go use them. 05:06 < apeace> yes yes yes. agreed 05:06 -!- jaush [n=j@h192.103.141.67.dynamic.ip.windstream.net] has joined #go-nuts 05:06 < sladegen> it would be really cool if generics were introduced as macros on s-expression AST. 05:07 < sladegen> one can dream. 05:07 < Ycros> I'm indifferent as to whether exceptions will get implemented or not 05:07 < Ycros> I can see interesting problems with exceptions and goroutines 05:08 < mkanat> Ycros: They would have to be goroutine-local, like they're thread-local in Python. 05:08 < Ycros> yeah 05:08 < Ycros> I think Erlang has the right approach to errors though 05:08 < mkanat> I think exceptions got a bad name from Java's checked exceptions. 05:08 < mkanat> Ycros: Oh, what does Erlang do? 05:08 < s_mosher> Ycros, I was just going to mention erlang 05:08 -!- jaush [n=j@h192.103.141.67.dynamic.ip.windstream.net] has quit [Client Quit] 05:09 < s_mosher> mkanat, you link processes explicitly 05:09 < Ycros> yeah, you can link processes 05:09 < apeace> i'm not a huge fan of exceptions. i think i agree with what the golang.org site says about their tendency to end up determining the design of code 05:09 < Ycros> so a process can get notified if another process blows up 05:09 < Ycros> so you end up with worker processes, and supervisor processes 05:09 < s_mosher> and 'exceptions' spread through them if unhandled 05:09 < Ycros> yeah. 05:09 < s_mosher> the problem is it kind of relies on a message receiving paradigm 05:09 < Ycros> if exceptions were to be implemented, I'd like to see that sort of behaviour 05:09 < s_mosher> so... link channels? 05:10 < sladegen> goto exception considered harmful... 05:10 < Ycros> s_mosher: you could make the go keyword return a goroutine object - like erlang's pid 05:10 < Ycros> apeace: any sort of error handling determines the design of the code 05:11 -!- armence [n=armence@c-67-188-229-128.hsd1.ca.comcast.net] has quit ["Leaving"] 05:11 < Ycros> apeace: I think exceptions can lead to cleaner designs than explicit errors - you can already see some bad examples in go code littered with explicit error code checks 05:11 < mkanat> Ycros: Also, you'll find as Go expands that code will become littered with people who don't check for errors. 05:11 -!- Gracenotes [n=person@wikipedia/Gracenotes] has quit ["Leaving"] 05:12 < Ycros> mkanat: that has already happened - there was a mailing list thread where people were pulling examples out of the standard library 05:12 * mkanat nods. 05:12 < apeace> ycros: interesting point. i don't think i have as much experience as you guys, but the reason i am against exceptions is because i just worked eight months in a java development position and i have to say i am SICK of writing try { ... } catch (crap) { ... } finally {... } 05:12 < apeace> :p 05:12 < Ycros> I'd rather have top level exception handlers that can catch shit, and restart subsystems in my running program if something uncaught bubbles up 05:12 < Ycros> and it should email me about it 05:12 < mkanat> Ycros: For example, in Perl (which doesn't have exceptions, among some other issues), it's a famous fact that people forget to check the return value of open(). 05:12 < Ycros> it should not pass silently 05:12 < Amaranth> mkanat: pfft, open always works 05:13 < s_mosher> you know 05:13 < mkanat> Amaranth: :-D 05:13 < Amaranth> mkanat: User error, bug closed 05:13 < Ycros> apeace: I worked for 2.5 years as a C# developer, and I didn't mind it at all 05:13 < sladegen> yeah except you rarely really know how to handle exception, especially with global state anyway. 05:13 < Amaranth> (one of my problems fails at this very thing) 05:13 < s_mosher> I'd be happy with link channels, with a special syntax that invokes erlangish behavior 05:13 < Amaranth> (and it's shipped with GNOME :/) 05:13 < mkanat> apeace: I think the problem there is checked exceptions. 05:13 < mkanat> apeace: That Java stupidly *forces* you do try/catch on some things. 05:13 < Ycros> apeace: checked exceptions in java can be annoying though 05:13 < s_mosher> if the caller terminates the children do too, and the caller can choose to handle stuff 05:14 < mkanat> apeace: When sometimes you just simply want the program to die in flames if there's an exception. 05:14 < jessta> mkanat: instead of crashing your program because you forgot to catch an pointless exception? 05:14 < Ycros> s_mosher: yeah, you know what - I said I was indifferent to exceptions, but during this conversation I'm becoming more convinced that the current error system is unworkable 05:14 < apeace> okay, i see what you guys are saying 05:14 < mkanat> jessta: Right. 05:14 < jessta> if you're going to have exceptions they should be checked 05:14 < mkanat> jessta: No, not necessarily. 05:14 < Ycros> jessta: you're not going to crash a program because you forgot to check an exception somewhere 05:15 < Ycros> jessta: you'd have top-level catch-all handlers in strategic points (ie. a per-request handler) 05:15 < Amaranth> Does java allow a "if any kind of exception happens" kind of thing? 05:15 < s_mosher> Ycros, I'm kind of opposed to "exceptions" in just about any incarnation that goes by that name 05:15 < Ycros> so if some tiny part fails, you will know about it, and the rest of your app keeps going 05:15 < mkanat> Amaranth: If you wanted to wrap your whole program in a try block. 05:15 < s_mosher> but the erlang style stuff is pretty wonderful 05:15 < Amaranth> So instead of checking for UserIsStupid and ComputerIsBroken you can just do a plain try {} 05:15 < Amaranth> mkanat: yeah screw that 05:15 < jessta> Ycros: yeah, you can do that with checked exceptions 05:15 < Ycros> s_mosher: right, but the erlang style stuff is pretty exception-like 05:16 < Ycros> jessta: sure, you can just keep explicitly throwing. It's just annoying 05:16 < s_mosher> true, but it lacks the boilerplate problem 05:16 < Ycros> jessta: having done both C# and Java in the past, I can say I much preferred the unchecked exceptions of C# 05:16 < s_mosher> and fires only happen where you explicitly permit it 05:16 -!- travisbrady [n=tbrady@98.210.155.175] has joined #go-nuts 05:16 < Amaranth> If you want the compiler to catch every error you can possible make use Ada :) 05:17 < mkanat> I've never had a problem with the exceptions system in Python, for example. But of course, that's a dynamic language, so implementation is very different. 05:17 < Amaranth> s/possible/possibly/ 05:17 < JBeshir> You know 05:17 < Ycros> s_mosher: I guess isolating error handling to its own goroutine which monitors other goroutines is neat 05:17 < jessta> I've done java and erlang, I much prefer checked exceptions to uncheckd exceptions. Then again, I don't like exceptions are all 05:17 < s_mosher> plus erlang's paradigm is good for folding back to a stable state and recreating everything from there 05:17 < Ycros> s_mosher: I don't know, this requires a lot of thought 05:17 < JBeshir> Go could implement a shorthand way of saying "pass this error value back up. 05:17 < JBeshir> Even with checks. 05:17 < Ycros> s_mosher: I'd love to try out some of these ideas in Go, since it's supposed to be an experimental language 05:18 < Ycros> s_mosher: it's the folding back to a state state I want 05:18 < JBeshir> Maybe making the explicit checks shorter and less noisy would be a better focus for work than exceptions. 05:18 < mkanat> I'm guessing the implementation complexity derives from retaining the stack. 05:18 < s_mosher> yeah 05:18 -!- apeace [n=apeace@c-24-61-22-9.hsd1.ma.comcast.net] has left #go-nuts [] 05:18 < Ycros> JBeshir: that's another option, yep 05:18 < jessta> Ycros: exceptions confined to goroutines also cause problems, as channels aren't like erlang's message parsing 05:18 -!- hipe [n=hipe@pool-74-108-181-155.nycmny.east.verizon.net] has joined #go-nuts 05:18 < JBeshir> "pass err"? 05:19 < Ycros> s_mosher: anyway, if you could grab a handle to a goroutine - you could do things like kill goroutines externally (ie. if it's run-away or in an infinite loop or something) 05:19 < JBeshir> foo, pass err = EvilFunction() 05:19 < Ycros> s_mosher: maybe. 05:19 < JBeshir> Er, := 05:19 < JBeshir> Well, doesn't matter. 05:19 < Ycros> jessta: yes, I know 05:19 < JBeshir> Maybe it'd need to pass pass too. Or something. 05:19 -!- cryptobeacon [n=irvin@unaffiliated/cryptobeacon] has joined #go-nuts 05:19 < jessta> goroutines also aren't like erlang's processes 05:19 < s_mosher> Ycros, I'm tempted to simulate it and see how well it goes 05:19 < s_mosher> the problem is all the clutter 05:20 < Ycros> jessta: that doesn't mean such a system can't be implemented in Go 05:20 < JBeshir> or a short "handle err { return 0, err }" thing after a call. 05:20 < Ycros> jessta: but I don't think what we have now is a good solution 05:20 < JBeshir> I don't know, there's probably an actually Go-like syntax. 05:20 < Ycros> JBeshir: maybe 05:20 < JBeshir> Have any of the people who actually know what they're talking about proposed any? 05:20 -!- codemac [n=codemac@archlinux/developer/codemac] has quit [Remote closed the connection] 05:21 < Ycros> JBeshir: who knows what they're talking about? :P 05:21 < Amaranth> jessta: If launching a goroutine returned a channel that would notify you of the goroutine exiting that could be used 05:21 < JBeshir> Ycros: Well, mailing list, IRC, website, presumably. 05:21 -!- islands [n=islands@unaffiliated/inda50] has quit [Remote closed the connection] 05:21 < mkanat> JBeshir: golang mentions that there have been several proposals. 05:21 < Ycros> exceptions haven't been ruled out yet, so, we can think about them 05:21 -!- codemac [n=codemac@archlinux/developer/codemac] has joined #go-nuts 05:22 < Ycros> mkanat: I'd like to see them and see why they were rejected 05:22 < JBeshir> You know, it isn't all that long as is. 05:22 < Amaranth> jessta: http://code.google.com/p/go/issues/detail?id=217 05:22 < JBeshir> if err != nil { return 0, err } 05:22 < JBeshir> Right after a call. 05:22 -!- mat__ [n=mat@mx3.absolight.net] has joined #go-nuts 05:22 -!- dobre_zlo [i=unixwiza@k-lined.info] has quit [Read error: 104 (Connection reset by peer)] 05:22 -!- dobre_zlo [i=unixwiza@k-lined.info] has joined #go-nuts 05:22 < JBeshir> You want to do 'catching', you have your checks, then return 0, err if 'uncaught'. 05:23 -!- alex1 [n=alex@unaffiliated/a1g] has joined #go-nuts 05:23 < JBeshir> The only useful thing I can think of is to have a single check block for a function. 05:23 < Ycros> JBeshir: it gets unwieldy very fast if you have a lot of calls 05:23 < JBeshir> Ycros: For that reason. 05:25 -!- dionysiac [n=dionysia@209.91.107.250] has quit [] 05:25 < jessta> Amaranth: that looks good, I'd be all for that, an os.Error chan, returns nil on exit or an error on error 05:26 -!- Null-A [n=jason@c-76-21-4-0.hsd1.ca.comcast.net] has joined #go-nuts 05:26 < Amaranth> Then you just need some way to make sure goroutines don't bring down the whole program :) 05:26 < jessta> they can't 05:26 < sladegen> one can always write programs like that func(err){ ... }(submain()) 05:27 -!- Guest14331 [n=kill-9@cpe-65-24-145-70.columbus.res.rr.com] has quit [Read error: 60 (Operation timed out)] 05:27 < jessta> nil pointers in go aren't NULL, so they are caught by the runtime 05:27 -!- codemac [n=codemac@archlinux/developer/codemac] has quit [Remote closed the connection] 05:28 -!- codemac [n=codemac@archlinux/developer/codemac] has joined #go-nuts 05:28 < mkanat> The general problem that I want to solve with exceptions is: Large system. Error happens very deep in the system, but very high up in the system wants to decide what to do about it. 05:28 < Null-A> is gccgo feature complete? 05:29 < Ycros> mkanat: exactly. 05:29 -!- rndbot [n=bot@wikipedia/Gracenotes] has quit [Remote closed the connection] 05:29 <+iant> Null-A: gccgo is feature complete to the extent that the Go language is feature complete 05:29 <+iant> Null-A: except that gccgo does not do any garbage collection 05:30 < rbohn_> nil pointers caught by runtime? 05:30 < Null-A> So memory never deallocates? 05:30 <+iant> Null-A: right 05:30 < mkanat> Any solution that provides me that functionality would be an acceptable solution. 05:30 < mkanat> To me, I don't need to know the stack of the exception when I catch it. 05:30 < mkanat> I only care about the stack when it makes the runtime die. 05:30 -!- turutosiya [n=turutosi@219.106.251.65] has joined #go-nuts 05:31 < Null-A> iant: i'm really anxious to see some benchmarks for gccgo, 6g on the 'benchmarks game' isn't very mature 05:31 < sladegen> mkanat: you can pass a top leve channels to submain and thread it throut your program and gave one goroutine guarding it. 05:31 <+iant> Null-A: there are some benchmarks for gccgo in test/bench/timing.log 05:31 < mkanat> Well, one wouldn't expect maturity. It's AMAZING that Go is as far along as it is, with this much time. 05:31 < sladegen> s/gave/have/ 05:31 < mkanat> sladegen: True, but of course that requires passing along the channel always. But if it was stored somewhere globally, I could use that for error message passing. 05:32 < mkanat> sladegen: There could also be a standard library that provided such a channel. 05:32 < Ycros> sladegen: whenever someone says "thread this throughout your code" I cringe 05:32 -!- alex1 [n=alex@unaffiliated/a1g] has quit [SendQ exceeded] 05:32 < Null-A> iant: I'm trying to compare is to C or C++, i'll check it out 05:32 -!- timmcd [n=Adium@97-117-100-106.slkc.qwest.net] has joined #go-nuts 05:32 < mkanat> sladegen: The problem then being, to some degree, concurrency of exceptions, right? 05:32 < sladegen> Ycros: heh, yeah... it's easier done with macros... 05:32 < timmcd> Hello everybody! (Hello Dr. Nic!) 05:32 < Ycros> sladegen: sure :) 05:32 < Ycros> sladegen: or monads in Haskell! 05:33 < jessta> rbohn_: yeah, notice how go programs don't segfault like c programs? 05:33 < sladegen> oh Haskel is a mystery to me, it's like academic perl. 05:33 < mkanat> sladegen: If I have 55 goroutines that throw an exception simultaneously, my passed channel may not be doing me much good. :-) 05:33 < rbohn_> Hmm, I got a sigtrap earlier. Not the same? 05:34 -!- glewis [n=chatzill@cpe-98-154-103-91.socal.res.rr.com] has joined #go-nuts 05:34 < Ycros> sladegen: it's not as mysterious as it seems 05:35 < sladegen> mkanat: yea, concurrency of exceptions... erlang system's is easy because it's functional, has immutable data structures. 05:35 < sladegen> go is a bit too low level. 05:36 < Null-A> iant: Nice, looks like you guys are taking care of the perf gaps =) 05:36 * mkanat nods. 05:36 < mkanat> Fundamentally, I can't see any solution that doesn't involve the introduction of a new keyword and an exception type, at the very minimum. 05:36 -!- mat_ [n=mat@mx3.absolight.net] has quit [Read error: 111 (Connection refused)] 05:36 -!- alex1 [n=alex@unaffiliated/a1g] has joined #go-nuts 05:36 -!- jA_cOp [n=yakobu@ti0043a380-3093.bb.online.no] has joined #go-nuts 05:38 < Null-A> mkanat: erlang might have a different solution to error handling, I don't recall 05:38 < uriel> Null-A: most perf gaps I have seen so far were product of comparing apples with skyscrapers 05:38 < Null-A> uriel: i'm talking about the benchmarks in timing.log? 05:38 < mkanat> Null-A: We were just talking about that, but I'm pretty sure their solution requires a dynamic runtime. 05:39 < mkanat> Null-A: And a different message-passing scheme than goroutines and channels. 05:39 < uriel> Null-A: I'm taling about the comments that have been floating around about comparisons with other languages 05:39 < Null-A> mkanat: can you remind me of their soln? 05:39 < uriel> (not saying that there isn't huge margin for improvement, specially in the libraries and thing slike gc, but that is not what most people has noticed so far) 05:39 -!- rndbot [n=bot@wikipedia/Gracenotes] has joined #go-nuts 05:40 < sladegen> go is also too imperative, but it tries to steer in good direction, giving someone who chooses to tools to deal with concurency... "more nicely". 05:40 * Null-A pulls out an erlang book 05:40 -!- Perberos [n=Perberos@190.49.59.18] has quit [Remote closed the connection] 05:41 -!- Gracenotes [n=person@wikipedia/Gracenotes] has joined #go-nuts 05:41 < Null-A> uriel: sure, 'other people' aren't me 05:42 -!- inittab [n=dlbeer@ip-118-90-83-232.xdsl.xnet.co.nz] has joined #go-nuts 05:43 -!- Omei [n=chatzill@99-178-130-115.lightspeed.sndgca.sbcglobal.net] has quit [Read error: 110 (Connection timed out)] 05:43 -!- V1psta [i=Vipsta@unaffiliated/v1psta] has joined #go-nuts 05:43 < uriel> heh 05:44 < quag> doesn't erlang have some sort of cascading error system? 05:45 < quag> errors shut down a 'thread', which causes things that depend on that 'thread' to also fail. 05:46 < Null-A> not quite 05:46 -!- binaryjohn [n=binaryjo@cpe-24-30-132-50.san.res.rr.com] has quit [] 05:46 < Null-A> you can 'link' processes causing notif's to be sent, to one process in the event of failure to the other. 05:47 < Null-A> I'm still reading, there's other mechanisms. 05:47 -!- hipe_ [n=hipe@pool-74-108-181-155.nycmny.east.verizon.net] has joined #go-nuts 05:48 -!- V1psta [i=Vipsta@unaffiliated/v1psta] has quit [] 05:48 -!- droid001 [n=g1@p4FDCD518.dip.t-dialin.net] has joined #go-nuts 05:48 -!- V1psta [i=Vipsta@unaffiliated/v1psta] has joined #go-nuts 05:48 < quag> ah, ok. 05:48 -!- hipe [n=hipe@pool-74-108-181-155.nycmny.east.verizon.net] has quit [Read error: 104 (Connection reset by peer)] 05:49 -!- golangguru [n=chatzill@124.125.104.56] has quit [Read error: 110 (Connection timed out)] 05:51 < Null-A> g2g 05:51 -!- Null-A [n=jason@c-76-21-4-0.hsd1.ca.comcast.net] has left #go-nuts [] 05:52 < sladegen> but usual procedure is to let part of the computation fail, whatever it returned is considered state of the computation, and restart ir if needed. if you have parts of computation that affect state outside of closure you can't make those easy assuptions. 05:52 -!- blackmagik [n=blackmag@unaffiliated/blackmagik] has joined #go-nuts 05:54 -!- scarabx [n=scarabx@c-24-147-239-120.hsd1.ma.comcast.net] has quit ["This computer has gone to sleep"] 05:55 -!- inittab- [n=dlbeer@ip-118-90-100-133.xdsl.xnet.co.nz] has quit [Read error: 110 (Connection timed out)] 05:55 -!- binaryjohn [n=binaryjo@cpe-24-30-132-50.san.res.rr.com] has joined #go-nuts 05:56 < mkanat> Okay, that's enough for me for the night. :-) Later. 05:57 -!- mkanat [n=mkanat@c-67-188-1-39.hsd1.ca.comcast.net] has quit ["Bye!"] 06:00 -!- hipe [n=hipe@pool-74-108-181-155.nycmny.east.verizon.net] has joined #go-nuts 06:00 -!- brrant [n=John@65-102-193-77.hlrn.qwest.net] has quit ["Leaving"] 06:04 -!- droid0011 [n=g1@p4FDCD276.dip.t-dialin.net] has quit [Connection timed out] 06:05 -!- me___ [i=[U2FsdGV@batman.acm.jhu.edu] has quit ["leaving"] 06:05 -!- glewis [n=chatzill@cpe-98-154-103-91.socal.res.rr.com] has quit ["ChatZilla 0.9.85 [Firefox 3.0.15/2009102815]"] 06:05 -!- rbohn_ [n=rbohn@d103.digis.net] has left #go-nuts ["bye now"] 06:06 < goplexian> hmm it seems you are unable to create arrays larger than 10 million 06:07 -!- timmcd [n=Adium@97-117-100-106.slkc.qwest.net] has left #go-nuts [] 06:08 -!- directrixx [n=aleksand@ip68-231-189-247.tc.ph.cox.net] has quit ["Adios"] 06:11 -!- mirtchov [n=mirtchov@S01060013100dbc55.cg.shawcable.net] has joined #go-nuts 06:15 -!- hipe_ [n=hipe@pool-74-108-181-155.nycmny.east.verizon.net] has quit [Connection timed out] 06:16 -!- golangguru [n=chatzill@124.125.104.56] has joined #go-nuts 06:17 -!- alex1 [n=alex@unaffiliated/a1g] has quit [Remote closed the connection] 06:17 -!- mirtchov [n=mirtchov@S01060013100dbc55.cg.shawcable.net] has left #go-nuts [] 06:22 < quag> golangguru: doh :) 06:23 < golangguru> quag: hi 06:25 -!- djanderson [n=dja@hltncable.pioneerbroadband.net] has quit [Read error: 110 (Connection timed out)] 06:27 -!- lenst [n=user@81.237.244.185] has joined #go-nuts 06:30 -!- brrant [n=John@65-102-193-77.hlrn.qwest.net] has joined #go-nuts 06:31 -!- triplez [n=triplez@bb116-14-27-220.singnet.com.sg] has quit [Remote closed the connection] 06:31 -!- triplez [n=triplez@bb116-14-27-220.singnet.com.sg] has joined #go-nuts 06:32 -!- blackmagik [n=blackmag@unaffiliated/blackmagik] has quit ["Leaving"] 06:33 -!- amacleod [n=amacleod@c-24-34-33-96.hsd1.ma.comcast.net] has quit ["Bye Bye"] 06:34 -!- existsec_ [n=existsec@76-228-31-64.lightspeed.frokca.sbcglobal.net] has joined #go-nuts 06:37 -!- voluspa [n=voluspa@x-134-84-102-227.reshalls.umn.edu] has joined #go-nuts 06:38 -!- nigwil [n=chatzill@berkner.ccamlr.org] has quit ["ChatZilla 0.9.85 [Firefox 3.5.5/20091102152451]"] 06:42 < quag> hi golangguru 06:42 < quag> golangguru: new nick? 06:43 -!- hipe_ [n=hipe@pool-74-108-181-155.nycmny.east.verizon.net] has joined #go-nuts 06:43 -!- hipe [n=hipe@pool-74-108-181-155.nycmny.east.verizon.net] has quit [Read error: 104 (Connection reset by peer)] 06:49 -!- travisbrady [n=tbrady@98.210.155.175] has quit [] 06:51 -!- Gussi [n=gussi@gussi.is] has quit ["Bah"] 06:52 -!- Gussi [n=gussi@85.197.213.11] has joined #go-nuts 06:52 -!- Fraeon [n=kzer-za@e212-246-65-153.elisa-laajakaista.fi] has joined #go-nuts 06:55 -!- slashus2 [n=slashus2@74.137.26.8] has joined #go-nuts 07:03 -!- turutosiya [n=turutosi@219.106.251.65] has quit [Read error: 60 (Operation timed out)] 07:04 -!- triplez_ [n=triplez@bb116-14-27-220.singnet.com.sg] has joined #go-nuts 07:06 -!- cryptobeacon [n=irvin@unaffiliated/cryptobeacon] has quit ["leaving"] 07:07 -!- path_ [n=path@115.240.53.74] has quit [Read error: 110 (Connection timed out)] 07:08 -!- cgibreak [n=cgibreak@96.230.233.141] has quit [Read error: 110 (Connection timed out)] 07:10 < uriel> hah: http://twitter.com/_rsc 07:10 < quag> heh 07:10 -!- catron [n=beta@ip68-97-61-240.ok.ok.cox.net] has joined #go-nuts 07:14 -!- timmcd [n=Adium@97-117-100-106.slkc.qwest.net] has joined #go-nuts 07:15 < timmcd> Heeey! 07:15 < timmcd> To convert a Go string to const char *str in cgo: 07:15 < timmcd> (*C.STRING)(gostr), no? 07:15 * quag looks around. 07:16 < quag> timmcd: a bit quiet here at the moment 07:18 < timmcd> quag: Yeah... 07:18 -!- Snert [n=achowe@puff.snert.com] has joined #go-nuts 07:18 -!- cryptobeacon [n=irvin@unaffiliated/cryptobeacon] has joined #go-nuts 07:19 < quag> timmcd: what's cgo like? 07:19 < timmcd> quag: Extremely simple as far I can tell. github.com/jabb/gocurse 07:19 < timmcd> ^_^ 07:19 < timmcd> curses.go =D 07:19 < quag> sweet! 07:20 < quag> :) 07:20 < quag> timmcd: heh, it handles the arrow keys :) 07:20 < quag> the sample anyway 07:21 < uriel> timmcd: hey, I think kuroneko was working on that, but he ran into some problem with varargs or osmething 07:21 -!- drusepth [n=drusepth@adsl-75-41-186-207.dsl.spfdmo.sbcglobal.net] has quit [Read error: 110 (Connection timed out)] 07:23 < quag> timmcd: lol. It works... but!, the left/right arrow keys are swapped with up/down 07:23 < timmcd> Yeah... 07:23 < timmcd> You should fix that ;) 07:23 < timmcd> lol 07:24 < uriel> lattest commit: "add a match arena to regexp to avoid generating garbage. 07:24 < uriel> simple regexps run 20x faster. 07:24 < uriel> the regex-dna benchmark goes 3x faster. 07:24 < uriel> " 07:24 < uriel> *nice* 07:24 < Snert> Morning 07:25 < golangguru> Morning + 5:30 = Afternoon here 07:25 -!- triplez [n=triplez@bb116-14-27-220.singnet.com.sg] has quit [Read error: 113 (No route to host)] 07:26 < quag> timmcd: http://gist.github.com/239340 07:26 < quag> timmcd: there. Fixed 07:26 < quag> :) 07:26 < quag> timmcd: or would you rather a pull request? :) 07:26 -!- rob| [n=rob@95-90-45-206-dynip.superkabel.de] has quit [Read error: 110 (Connection timed out)] 07:27 -!- rob| [n=rob@95-90-45-206-dynip.superkabel.de] has joined #go-nuts 07:28 < timmcd> quag: a gist is fine ^_^ 07:29 * quag amuses himself moving an @ around the screen 07:29 -!- melba [n=blee@85.11.190.15] has joined #go-nuts 07:29 < timmcd> lol 07:30 < sfuentes> anyone know if there is a unit testing library for go? 07:31 < timmcd> Quag: I will push the fix to master in a bit 07:31 < vegai> sfuentes: http://golang.org/pkg/ is your friend 07:31 < quag> sfuentes: http://golang.org/pkg/testing/ ? 07:31 < timmcd> let me finish wrapping the adding of strings =D 07:31 < quag> timmcd: one of these days I should really learn curses... :) 07:32 < vegai> curses is one of those horrible things that should go away, too :-/ 07:32 < quag> vegai: how about ncurses? 07:32 < uriel> vegai: amen 07:33 < uriel> curses is a curse 07:33 < vegai> I wonder if anyone's trying to do anything better in that space 07:34 < uriel> vegai: good question, but I never heard of anyone, at least not in the last twenty years 07:34 < uriel> and probably rightly so 07:34 < quag> what?! nobody pushing the limits of tn3270 to new heights?! 07:35 < uriel> quag: hah 07:35 < timmcd> http://inventors.about.com/gi/o.htm?zi=1/XJ/Ya&zTi=1&sdn=inventors&cdn=money&tm=425&f=00&tt=14&bt=0&bts=0&zu=http%3A//www.delphion.com/gallery 07:35 -!- timmcd [n=Adium@97-117-100-106.slkc.qwest.net] has left #go-nuts [] 07:37 < vegai> there should be a protocol that most terminals today implement and that's pretty good 07:38 < vegai> how about just choose one and wrap that in a lib 07:40 < quag> heh, maybe plan 9 has a wicked terminal protocol ;-) 07:41 < vegai> they do something saner and totally incompatible with unix terminals, I believe 07:41 -!- tanamo [n=tanamo@125.252.70.230] has quit ["Leaving"] 07:42 < uriel> vegai: there *should*, but there isnt! 07:43 < uriel> quag: yes, it is called draw: http://man.cat-v.org/plan_9/3/draw 07:44 -!- trickie [n=trickie@94.100.112.225] has joined #go-nuts 07:45 * quag suddnely clicks why go has its strings in utf-8 07:45 < quag> heh, should have got that way earlier 07:46 -!- Anders__ [n=Anders@c83-253-2-206.bredband.comhem.se] has joined #go-nuts 07:46 -!- jeremychang [n=jeremych@61-30-10-70.static.tfn.net.tw] has joined #go-nuts 07:47 < uriel> heh 07:47 -!- trickie [n=trickie@94.100.112.225] has quit [Client Quit] 07:47 -!- trickie [n=trickie@94.100.112.225] has joined #go-nuts 07:48 -!- conra [n=konrad@host-89-229-12-166.torun.mm.pl] has joined #go-nuts 07:49 < quag> uriel: are most of the apis in plan9 like draw? 07:49 < quag> simple string formats in files? 07:49 < quag> 'cos that is cool :) 07:49 < uriel> yes 07:49 < uriel> and yes, that is very cool 07:50 < quag> uriel: how well does plan9 run in a vm? 07:50 < quag> :) 07:50 < melba> there is inferno for that 07:51 < uriel> see for example /net: http://man.cat-v.org/plan_9/3/ip 07:51 < vegai> sadly, plan9 is somewhat a failure 07:51 < vegai> except its design and implementation 07:51 < vegai> but who cares about those, right? 07:51 < uriel> quag: see 9vx, by russ cox (who you might be familiar from certain other project ;P) http://swtch.com/9vx/ 07:51 < quag> iso is nice and small 07:53 * quag fetches 07:55 < quag> I wonder if Vx32 was used for the gofmt code execution 07:56 -!- binaryjohn [n=binaryjo@cpe-24-30-132-50.san.res.rr.com] has quit [] 07:56 < uriel> quag: unlikely 07:57 < uriel> although there is some code in the go tree to compile to nacl, which is similar to vx32 07:58 -!- voluspa [n=voluspa@x-134-84-102-227.reshalls.umn.edu] has quit [Read error: 113 (No route to host)] 08:00 -!- mitchellh1 [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has joined #go-nuts 08:00 -!- mitchellh1 [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has quit [Read error: 54 (Connection reset by peer)] 08:01 -!- catron [n=beta@ip68-97-61-240.ok.ok.cox.net] has quit [Connection timed out] 08:01 -!- mitchellh1 [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has joined #go-nuts 08:02 -!- mitchellh1 [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has quit [Remote closed the connection] 08:08 -!- rajeshsr [i=rajeshsr@115.184.168.9] has joined #go-nuts 08:08 -!- delsvr [n=delsvr@cpe-67-242-41-219.twcny.res.rr.com] has quit [] 08:10 -!- Snert [n=achowe@puff.snert.com] has quit [Read error: 60 (Operation timed out)] 08:12 -!- asmo [n=asmo@83.248.96.173] has joined #go-nuts 08:15 < sladegen> heh http://www.xent.com/pipermail/fork/Week-of-Mon-20091109/054578.html 08:15 < quag> uriel: is there a paper for plan9? 08:18 < uriel> a paper? see http://doc.cat-v.org/plan_9/4th_edition/papers/ 08:18 < quag> sorry, pager 08:18 < quag> :) 08:18 < uriel> a pager? the terminal is a pager 08:18 < uriel> "Where we Go, we don't need pagers!" 08:18 < uriel> (sorry, couldn't resist) 08:19 < uriel> if you are stuck without rio, then there is p(1), but that is just a hack to get by in extreme cases 08:19 < uriel> there is page(1), but that is a pdf/img/whatever viewer 08:20 < quag> ohhhh... that is how you use rio to create new windows 08:21 -!- msbranco [n=msbranco@188.61.172.64] has joined #go-nuts 08:23 < uriel> heh 08:23 -!- CIA-14 [n=CIA@208.69.182.149] has joined #go-nuts 08:24 < uriel> aha! ok, we should have commit notifications now 08:24 < uriel> (if I did setup things right, we will see) 08:24 < KragenSitaker> yeah, that's what I figured when I saw the CIA come in here :) 08:25 < uriel> iant: when you are around, if you want to set it up directly on the google code project let me know, for now I hacked it up in a private repo that pulls from google code every ten min 08:26 < uriel> (all you need to do is add a single url to the list of hooks) 08:27 -!- conra [n=konrad@host-89-229-12-166.torun.mm.pl] has left #go-nuts [] 08:27 -!- Anders__ [n=Anders@c83-253-2-206.bredband.comhem.se] has quit ["Lämnar"] 08:27 < asmo> So, what is the general impressions of Chrome OS? 08:27 -!- decriptor [n=decripto@53.250.sfcn.org] has quit [Read error: 113 (No route to host)] 08:27 < uriel> asmo: just another silly linux distro 08:28 < uriel> totally non-news 08:28 < asmo> uriel: That's my take on it as well, slimmed down Linux distro 08:29 < bthomson> not interesting for developers, might be nice for "regular people" 08:29 < uriel> for a rather peculiar deffinition of 'slimmed down', but then, I guess nobody uses any reasonable deffinition of 'slimmed down' this days.. 08:29 < asmo> bthomson: Maybe for netbooks 08:29 < uriel> maybe, but really, for regular pepole, I don't think they can tell the difference from one OS to the next at all, so.. 08:29 < asmo> Well, that's my definition anyway 08:29 < asmo> Compared to the major Linux distros at least 08:30 < bthomson> the security model is probably better than a linux os for non-expert users 08:31 < asmo> bthomson: In what sense? 08:31 -!- slashus2 [n=slashus2@74.137.26.8] has quit [] 08:31 < uriel> compared to a linux distro, a hog that has been force-feed with lard for ten years is slimm and slender as a nail 08:31 < bthomson> there are only "webapps", you can't run native code not from google 08:31 < bthomson> except maybe inside native client sandbox (in the future) 08:32 < uriel> as if web apps had anything that could in any shape or form be called a 'security model' 08:32 < uriel> but anyway, all this is quite offtopic 08:32 < asmo> bthomson: That's mostly due to the no-app-policy of it 08:33 < uriel> (don't get me wrong, the linux security 'model' maybe made sense forty years ago (and even then there were some obvoius mistakes ken himself admited), but today...) 08:40 -!- cryptobeacon [n=irvin@unaffiliated/cryptobeacon] has quit ["leaving"] 08:42 -!- Kashia [n=Kashia@port-92-200-47-208.dynamic.qsc.de] has joined #go-nuts 08:44 -!- simonz05 [n=simon@143.84-49-89.nextgentel.com] has joined #go-nuts 08:47 -!- rrr [i=rrr@gateway/gpg-tor/key-0x9230E18F] has quit [Remote closed the connection] 08:47 -!- punya [n=Adium@c-24-19-57-173.hsd1.wa.comcast.net] has joined #go-nuts 08:48 < punya> are there any samples that show how to interoperate with a C library that uses callbacks? 08:49 < nbaum> punya: I don't believe you can yet. 08:49 < uriel> punya: actually, as far as I know that is not possible 08:49 < uriel> ok, at least if I'm wrong I'm not the only one ;) 08:50 < punya> nbaum, uriel: thanks 08:50 -!- kaigan|work [n=kaigan@c-8290e255.1411-10-64736c14.cust.bredbandsbolaget.se] has joined #go-nuts 08:52 -!- p0g0_ [n=pogo@unaffiliated/p0g0] has joined #go-nuts 08:55 -!- p0g0__ [n=pogo@unaffiliated/p0g0] has quit [Read error: 110 (Connection timed out)] 08:56 -!- gonick [n=chatzill@124.125.104.56] has quit ["ChatZilla 0.9.85 [Firefox 3.5.5/20091102134505]"] 09:01 -!- raphael [n=rgb@did75-11-82-231-40-223.fbx.proxad.net] has joined #go-nuts 09:03 -!- shawn [n=shawn@208-78-98-92.slicehost.net] has quit [Read error: 60 (Operation timed out)] 09:04 -!- eharmon_ [n=eharmon@74.204.161.105] has joined #go-nuts 09:05 -!- moriyoshi [n=moriyosh@i118-19-92-230.s04.a014.ap.plala.or.jp] has joined #go-nuts 09:05 -!- shawn [n=shawn@208-78-98-92.slicehost.net] has joined #go-nuts 09:05 -!- eharmon [n=eharmon@74.204.161.105] has quit [Read error: 113 (No route to host)] 09:06 < moriyoshi> Hey guys, I just started to make a Go binding of PulseAudio. Check out http://github.com/moriyoshi/pulsego/ 09:06 < moriyoshi> Note you need to patch cgo before building this 09:06 -!- npe [n=npe@195.207.5.2] has joined #go-nuts 09:07 -!- Adys [n=Adys@unaffiliated/adys] has quit [Read error: 110 (Connection timed out)] 09:07 < uriel> moriyoshi: for PulseAudio of all things? oh dear... 09:08 -!- AryehGregor [n=Simetric@mediawiki/simetrical] has quit [Read error: 110 (Connection timed out)] 09:08 -!- MigoMipo [i=kvirc@95.209.53.94] has joined #go-nuts 09:09 < moriyoshi> uriel: It just covers only a handful of API functions you need to let it sound something for now 09:09 < uriel> moriyoshi: added it to http://go-lang.cat-v.org/library-bindings 09:09 * uriel would have prefered oss4 bindings or whatever, pulseaudio seems to be quite awful.. 09:09 < moriyoshi> uriel: thanks! 09:09 < uriel> but hey, I'm not doing the work, so up to you ;) 09:10 -!- turutosiya [n=turutosi@219.106.251.65] has joined #go-nuts 09:10 < punya> looking at a couple of the library bindings, it seems each of them has a patch to cgo 09:10 < punya> are these patches expected to land in the google branch at some point? 09:10 < moriyoshi> uriel: I don't have any idea on oss4. Is it much better than PulseAudio? 09:10 < npe> http://pastebin.com/m5e69eeb0 09:11 < npe> am I doing something stupid? 09:11 < uriel> npe: yes, you are not using gopaste.org 09:11 < moriyoshi> punya: See this: http://code.google.com/p/go/issues/detail?id=207 09:11 < punya> moriyoshi: thanks! 09:11 < npe> uriel: get them to put it in title then :p 09:12 < moriyoshi> It seems I'm just too lazy to write a bunch of tests for my tiny patch 09:12 -!- lenst` [n=user@81-237-244-185-no52.tbcn.telia.com] has joined #go-nuts 09:12 -!- lenst [n=user@81.237.244.185] has quit [Read error: 131 (Connection reset by peer)] 09:13 < uriel> russ has said that cgo is still rather experimental, I myself I'm quite impressed by how far people have been able to push it 09:13 < uriel> (also quite a few cgo fixes have gone in in the last couple of days) 09:14 -!- Cyprien [n=Cyprien@pub1.heig-vd.ch] has joined #go-nuts 09:14 < punya> it seems reasonably useable, and people who want to interface with existing libraries have to do *something* 09:15 < sladegen> npe: perhaps try ast.Node 09:15 -!- teralaser [n=teralase@unaffiliated/teralaser] has joined #go-nuts 09:15 -!- nomism [n=nomism@e179254040.adsl.alicedsl.de] has joined #go-nuts 09:15 < npe> sladegen: not sure I follow. 09:16 < sladegen> npe: but i haven't tried it myself. 09:16 < npe> sladegen: file.Decls[1] is an ast.FuncDecl 09:16 < npe> and ast.FuncDecl implements Pos() so it satisifies the interface. 09:17 < npe> but checkiface or whatever it is in the subr.c doesn't find it. 09:18 -!- hipe_ [n=hipe@pool-74-108-181-155.nycmny.east.verizon.net] has quit [Remote closed the connection] 09:20 -!- MimeNarrator [i=benna@216.131.103.47] has quit [Read error: 113 (No route to host)] 09:20 -!- nomism [n=nomism@e179254040.adsl.alicedsl.de] has quit [Remote closed the connection] 09:22 < sladegen> hmm... yeah, everything sort of checks out... well, will have to grok that myself. 09:23 -!- Kashia [n=Kashia@port-92-200-47-208.dynamic.qsc.de] has quit ["This computer has gone to sleep"] 09:24 -!- hector [n=chatzill@client-86-0-126-58.nrth.adsl.virginmedia.com] has joined #go-nuts 09:24 < sladegen> or perhaps you need to use ParseDeclList to get the top declarations. 09:25 < sladegen> those are decls are inside functions... 09:25 -!- rog [n=rog@89.241.23.202] has joined #go-nuts 09:26 -!- JSharpe2 [n=jamie@5ad1d7f1.bb.sky.com] has joined #go-nuts 09:26 -!- AryehGregor [n=Simetric@mediawiki/simetrical] has joined #go-nuts 09:32 -!- evilhackerdude [n=stephan@mue-88-130-111-114.dsl.tropolys.de] has joined #go-nuts 09:35 -!- aa [n=aa@r190-135-167-54.dialup.adsl.anteldata.net.uy] has quit [Read error: 113 (No route to host)] 09:36 -!- kmc [n=keegan@98.140.110.255] has quit [Read error: 148 (No route to host)] 09:40 -!- buluca [n=buluca@unaffiliated/buluca] has joined #go-nuts 09:41 < korfuri> hi guys 09:41 -!- JSharpe [n=jamie@5ad1d7f1.bb.sky.com] has quit [Read error: 110 (Connection timed out)] 09:41 < korfuri> is there a way to tell reflect (or the json lib, or something) to make public somehow a field starting with '_' ? 09:42 < korfuri> (or any workaround that would do the trick) 09:42 -!- moriyoshi [n=moriyosh@i118-19-92-230.s04.a014.ap.plala.or.jp] has quit [Remote closed the connection] 09:42 < korfuri> i'm connecting to an API that returns a json object with some fields starting with '_' and the json package doesn't want to unmarshal that 09:43 -!- sliceofpi [n=Adium@c-98-201-183-147.hsd1.tx.comcast.net] has quit ["Leaving."] 09:43 < nbaum> You'll need to modify the compiler, or change the JSON before unmarshalling it. 09:45 < korfuri> modifying the compiler doesn't seem to me like a good choice... i'm looking for an as-idiomatic-as-possible way to do that :) 09:46 < korfuri> maybe i could try to patch the json library to tell it to ignore the leading underscores 09:48 -!- assiss [n=assiss@219.143.153.59] has left #go-nuts [] 09:51 -!- rajeshsr [i=rajeshsr@115.184.168.9] has quit [Read error: 60 (Operation timed out)] 09:51 -!- buluca [n=buluca@unaffiliated/buluca] has left #go-nuts [] 09:52 < sladegen> npe: i think it's the other way... Decl doesn't have Pos. 09:53 < npe> sladegen: it's part of the interface. 09:53 < npe> russ just corrected me. 09:53 < npe> it's a *pointer* to a func decl. 09:56 -!- simon_ [n=simon@e179254040.adsl.alicedsl.de] has joined #go-nuts 09:56 -!- simon_ [n=simon@e179254040.adsl.alicedsl.de] has quit [Client Quit] 09:58 -!- sowa [n=sowa@85.214.104.79] has joined #go-nuts 09:58 -!- path_ [n=path@122.182.0.38] has joined #go-nuts 10:00 -!- lenst` [n=user@81-237-244-185-no52.tbcn.telia.com] has quit [Read error: 104 (Connection reset by peer)] 10:04 < sladegen> well, yes... and no. file.Decls[1].Pos().Line works O_o 10:04 -!- sahid [n=sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has quit ["Ex-Chat"] 10:04 -!- turutosiya [n=turutosi@219.106.251.65] has quit [Remote closed the connection] 10:06 -!- ikke [n=ikkibr@unaffiliated/ikkebr] has joined #go-nuts 10:07 -!- rajeshsr [i=rajeshsr@115.184.128.142] has joined #go-nuts 10:12 -!- leitaox [n=leitaox@189.20.94.66] has joined #go-nuts 10:16 -!- punya [n=Adium@c-24-19-57-173.hsd1.wa.comcast.net] has quit ["Leaving."] 10:25 -!- moriyoshi [n=moriyosh@i118-19-92-230.s04.a014.ap.plala.or.jp] has joined #go-nuts 10:26 -!- Lorthirk [n=cm0901@host21-182-dynamic.56-79-r.retail.telecomitalia.it] has joined #go-nuts 10:26 -!- raichoo [n=raichoo@i577B8EC7.versanet.de] has joined #go-nuts 10:26 -!- rup [i=Rupert@deathcoil.net] has quit ["leaving"] 10:29 -!- jbauer [n=jbauer@adsl-99-176-8-19.dsl.lsan03.sbcglobal.net] has joined #go-nuts 10:30 -!- trontonic [n=alexande@77.40.159.131] has joined #go-nuts 10:32 -!- rup [i=Rupert@78.159.100.189] has joined #go-nuts 10:36 -!- Nano [n=Nano@95-89-198-15-dynip.superkabel.de] has joined #go-nuts 10:37 -!- Cyprien_ [n=Cyprien@pub1.heig-vd.ch] has joined #go-nuts 10:39 -!- Cyprien [n=Cyprien@pub1.heig-vd.ch] has quit [Read error: 104 (Connection reset by peer)] 10:46 -!- Adys [n=Adys@unaffiliated/adys] has joined #go-nuts 10:49 -!- afurlan [n=afurlan@scorpion.mps.com.br] has joined #go-nuts 10:49 -!- ebk [i=eberkut@minithins.net] has joined #go-nuts 10:53 -!- leitaox [n=leitaox@189.20.94.66] has quit [Client Quit] 10:56 -!- rajeshsr [i=rajeshsr@115.184.128.142] has quit [Read error: 110 (Connection timed out)] 10:57 -!- engla [n=ulrik@90.229.231.23] has joined #go-nuts 11:03 -!- teralaser [n=teralase@unaffiliated/teralaser] has left #go-nuts [] 11:04 -!- tomestla [n=tom@78.251.131.202] has joined #go-nuts 11:04 -!- RayNbow [i=kirika@scientia.demon.nl] has joined #go-nuts 11:08 -!- blasdelf [n=fred@c-76-104-181-225.hsd1.wa.comcast.net] has quit [Read error: 104 (Connection reset by peer)] 11:11 < exch> Anyone around with some cgo experience? This keeps popping up with no extra information: http://meh.pastebin.com/m1179ba58 I can't seem to figure out what it means. 11:11 -!- AryehGregor [n=Simetric@mediawiki/simetrical] has quit [Read error: 113 (No route to host)] 11:12 -!- blasdelf_ [n=fred@c-76-104-181-225.hsd1.wa.comcast.net] has joined #go-nuts 11:20 -!- Cyprien_ [n=Cyprien@pub1.heig-vd.ch] has quit [Read error: 110 (Connection timed out)] 11:22 -!- bquinn [n=bquinn@nat/yahoo/x-pyxliludlncmzhsx] has joined #go-nuts 11:34 -!- jeremychang [n=jeremych@61-30-10-70.static.tfn.net.tw] has quit ["暫離"] 11:35 -!- nsa310 [n=Adium@130.37.26.219] has joined #go-nuts 11:35 -!- nsa310 [n=Adium@130.37.26.219] has left #go-nuts [] 11:38 -!- triplez [n=triplez@bb116-14-27-220.singnet.com.sg] has quit [Read error: 104 (Connection reset by peer)] 11:38 -!- Speedwagon [n=Robert@92-249-157-16.pool.digikabel.hu] has joined #go-nuts 11:38 -!- Speedwagon [n=Robert@92-249-157-16.pool.digikabel.hu] has left #go-nuts [""Great Scott! 1.21 Jigga whats?""] 11:41 -!- Nanoo [n=Nano@95-89-198-15-dynip.superkabel.de] has joined #go-nuts 11:42 -!- AryehGregor [n=Simetric@mediawiki/simetrical] has joined #go-nuts 11:42 -!- Nanooo [n=Nano@95-89-198-15-dynip.superkabel.de] has joined #go-nuts 11:44 -!- sku [n=sk@217.175.6.56] has joined #go-nuts 11:45 -!- banthar [n=banthar@chello084010208203.chello.pl] has joined #go-nuts 11:46 -!- moriyoshi [n=moriyosh@i118-19-92-230.s04.a014.ap.plala.or.jp] has quit [Remote closed the connection] 11:47 -!- Nano [n=Nano@95-89-198-15-dynip.superkabel.de] has quit [Read error: 60 (Operation timed out)] 11:48 -!- teop2k [n=teop2k@89.232.105.25] has joined #go-nuts 11:50 -!- rajeshsr [n=rajeshsr@115.184.139.236] has joined #go-nuts 11:50 -!- banthar [n=banthar@chello084010208203.chello.pl] has quit ["Leaving"] 11:53 -!- Zaba_ [n=zaba@about/goats/billygoat/zaba] has joined #go-nuts 11:54 -!- AlvaroGP [i=Alvaro@89.128.155.68] has joined #go-nuts 11:56 -!- ikkebr [n=ikkibr@unaffiliated/ikkebr] has joined #go-nuts 11:59 -!- Cyprien_ [n=Cyprien@pub1.heig-vd.ch] has joined #go-nuts 12:00 -!- simonz05 [n=simon@143.84-49-89.nextgentel.com] has quit ["Ex-Chat"] 12:00 -!- |MigoMipo| [i=kvirc@95.209.106.122] has joined #go-nuts 12:00 -!- Nanoo [n=Nano@95-89-198-15-dynip.superkabel.de] has quit [Connection timed out] 12:01 -!- MigoMipo [i=kvirc@95.209.53.94] has quit [Nick collision from services.] 12:01 -!- lenst [n=user@81-237-244-185-no52.tbcn.telia.com] has joined #go-nuts 12:03 -!- Peter` [n=peter@92.254.21.251] has joined #go-nuts 12:05 -!- raichoo [n=raichoo@i577B8EC7.versanet.de] has quit [] 12:05 -!- Zaba [n=zaba@about/goats/billygoat/zaba] has quit [Read error: 110 (Connection timed out)] 12:06 -!- AlvaroGP [i=Alvaro@89.128.155.68] has quit [] 12:08 -!- Rob_Russell [n=chatzill@206-248-157-156.dsl.teksavvy.com] has joined #go-nuts 12:09 -!- tor7 [n=tor@213.113.122.152] has joined #go-nuts 12:10 -!- engla [n=ulrik@wikipedia/Sverdrup] has quit [Read error: 145 (Connection timed out)] 12:12 -!- ikke [n=ikkibr@unaffiliated/ikkebr] has quit [Connection timed out] 12:12 -!- tor7 [n=tor@213.113.122.152] has quit [Read error: 131 (Connection reset by peer)] 12:12 -!- tor7 [n=tor@c-987a71d5.04-50-6c756e10.cust.bredbandsbolaget.se] has joined #go-nuts 12:13 -!- Peter- [n=peter@92.254.21.251] has quit [Read error: 110 (Connection timed out)] 12:14 < rog> exch: sounds like it's a "typedef struct lua_State lua_State" with no accompanying struct definition. 12:14 < rog> exch: that's legal in C. 12:17 -!- codehai [n=codehai@xdsl-78-34-36-14.netcologne.de] has joined #go-nuts 12:19 -!- hallidave [n=hallidav@CPE001ff3406248-CM0018680dd678.cpe.net.cable.rogers.com] has joined #go-nuts 12:19 -!- hallidave [n=hallidav@CPE001ff3406248-CM0018680dd678.cpe.net.cable.rogers.com] has quit [Client Quit] 12:20 -!- Xavier [i=kintoen@bitchx/dev/eth0] has quit ["EPIC5-1.0[1592] - amnesiac : brb"] 12:22 -!- Xavier [i=kintoen@bitchx/dev/eth0] has joined #go-nuts 12:23 < Xavier> minibif 12:23 < Xavier> misfire :P 12:23 -!- Perberos [n=Perberos@190.49.59.18] has joined #go-nuts 12:31 -!- teop2k [n=teop2k@89.232.105.25] has quit ["WeeChat 0.3.0"] 12:35 -!- cmarcelo [n=quassel@200.184.118.130] has joined #go-nuts 12:41 -!- flyguy [n=flyguy@66-169-174-29.dhcp.ftwo.tx.charter.com] has joined #go-nuts 12:43 -!- kridian [n=kridian@kridian.com] has quit [Remote closed the connection] 12:43 < exch> mm ill have a look 12:44 < exch> yup :p "typedef struct lua_State lua_State;" 12:50 -!- Associat0r [n=Associat@h163153.upc-h.chello.nl] has joined #go-nuts 12:51 -!- migomipo [i=kvirc@95.209.106.122] has quit ["co'o rodo"] 12:52 -!- rrr [i=rrr@gateway/gpg-tor/key-0x9230E18F] has joined #go-nuts 12:55 -!- dezelin [n=dezelin@91.150.108.119] has joined #go-nuts 12:55 < flyguy> does anyone see anything immediately wrong with the line: 12:55 < flyguy> dest_file, err := os.Open(my_filename, os.O_WRONLY, 0666); 12:56 < exch> nope 12:56 < flyguy> I'm getting "*os.PathError=open my_filename: no such file or directory" 12:56 < exch> the path in my_filename is wrong then 12:57 < flyguy> I'm trying to create the file with the write operation. Does it have to be a fully qualified path or something? 12:58 < exch> mm if the file doesn't exist yet, there should be another flag set, or os.Open should find create one itself 12:59 < flyguy> oh! with os.O_CREATE - missed that flag. Thanks. 12:59 < tor7> if the file doesn't exist you need to add O_CREAT to the flags 13:02 -!- codehai [n=codehai@xdsl-78-34-36-14.netcologne.de] has left #go-nuts ["Leaving."] 13:03 -!- ring-zero [n=hotshot@117.199.136.54] has joined #go-nuts 13:03 -!- vdrab [n=vdrab@61.86.36.152] has joined #go-nuts 13:03 -!- drusepth [n=drusepth@adsl-75-28-54-85.dsl.spfdmo.sbcglobal.net] has joined #go-nuts 13:03 -!- ring-zero [n=hotshot@117.199.136.54] has quit [SendQ exceeded] 13:04 -!- ring-zero [n=hotshot@117.199.136.54] has joined #go-nuts 13:05 -!- drusepth` [n=drusepth@75.28.54.85] has joined #go-nuts 13:05 -!- ring-zero [n=hotshot@117.199.136.54] has quit [SendQ exceeded] 13:05 -!- sowa [n=sowa@85.214.104.79] has quit ["Lost terminal"] 13:06 -!- ring-zero [n=hotshot@117.199.136.54] has joined #go-nuts 13:06 -!- Heavensrevenge [n=quassel@CPE001d0fe73b7d-CM00111ae5c642.cpe.net.cable.rogers.com] has joined #go-nuts 13:07 < flyguy> make 13:07 -!- ring-zero [n=hotshot@117.199.136.54] has quit [SendQ exceeded] 13:07 -!- ring-zero [n=hotshot@117.199.136.54] has joined #go-nuts 13:07 < flyguy> is there a good collection of go source files anywhere besides the go source? 13:08 < exch> probably not yet 13:08 -!- ring-zero [n=hotshot@117.199.136.54] has quit [SendQ exceeded] 13:09 -!- ring-zero [n=hotshot@117.199.136.54] has joined #go-nuts 13:09 -!- conra [n=konrad@host-89-229-12-166.torun.mm.pl] has joined #go-nuts 13:09 -!- Guest14331 [n=kill-9@cpe-65-24-145-70.columbus.res.rr.com] has joined #go-nuts 13:09 < nbaum> Google code search shows "about 7000" results for lang:go. 13:09 < nbaum> Few of them seem to be Go source. 13:10 -!- ring-zero [n=hotshot@117.199.136.54] has quit [SendQ exceeded] 13:10 -!- mat_ [n=mat@mx3.absolight.net] has quit [Connection reset by peer] 13:10 -!- mat_ [n=mat@mx3.absolight.net] has joined #go-nuts 13:10 -!- ring-zero [n=hotshot@117.199.136.54] has joined #go-nuts 13:11 -!- ring-zero [n=hotshot@117.199.136.54] has quit [SendQ exceeded] 13:12 -!- ring-zero [n=hotshot@117.199.136.54] has joined #go-nuts 13:12 -!- trvbldn [n=trvbldn@c-98-218-95-154.hsd1.dc.comcast.net] has quit [Read error: 110 (Connection timed out)] 13:13 -!- drusepth [n=drusepth@adsl-75-28-54-85.dsl.spfdmo.sbcglobal.net] has quit [Read error: 60 (Operation timed out)] 13:13 -!- ring-zero [n=hotshot@117.199.136.54] has quit [SendQ exceeded] 13:14 -!- ring-zero [n=hotshot@117.199.136.54] has joined #go-nuts 13:15 -!- jbauer [n=jbauer@adsl-99-176-8-19.dsl.lsan03.sbcglobal.net] has quit [Remote closed the connection] 13:20 -!- Cyprien_ [n=Cyprien@pub1.heig-vd.ch] has quit ["Quitte"] 13:21 -!- Heavensrevenge [n=quassel@CPE001d0fe73b7d-CM00111ae5c642.cpe.net.cable.rogers.com] has quit [Remote closed the connection] 13:21 < flyguy> is there any chance Go will ever have first-class regular expressions? The regexp lib seems to be light on functionality 13:21 -!- knave [n=quassel@dsl-240-171-194.telkomadsl.co.za] has joined #go-nuts 13:22 -!- knave [n=quassel@dsl-240-171-194.telkomadsl.co.za] has quit [Remote closed the connection] 13:22 -!- raichoo [n=raichoo@i577B8EC7.versanet.de] has joined #go-nuts 13:23 -!- Yuffster [n=yuffster@71.181.138.238] has quit ["Leaving..."] 13:23 < halfdan> i'd really appreciate that to 13:23 -!- slashus2 [n=slashus2@74-137-26-8.dhcp.insightbb.com] has joined #go-nuts 13:23 < halfdan> o 13:24 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has joined #go-nuts 13:25 -!- msw [n=msw@66.192.95.199] has joined #go-nuts 13:25 -!- knave [n=kn4ve@dsl-240-171-194.telkomadsl.co.za] has joined #go-nuts 13:26 < adam_smith> Hi I was interested in some technical details about Go. Is calling a method on an interface, similar to calling a function pointer? 13:26 -!- clip9 [i=tj@12.81-166-62.customer.lyse.net] has joined #go-nuts 13:26 < adam_smith> Or can the compiler often figure out the exact method? 13:26 -!- asmo [n=asmo@83.248.96.173] has quit [Remote closed the connection] 13:27 -!- al-maisan [n=al-maisa@conference/ubuntu-developer-summit/x-nodamkgaaimnrsbi] has joined #go-nuts 13:34 -!- ikke [n=ikkibr@unaffiliated/ikkebr] has joined #go-nuts 13:36 < exch> flyguy: i'm guessing it wil be adressed at some point, but for now you'll have to use a wrapper to some other regex lib 13:36 < vegai> what is it missing? 13:36 -!- al-maisan [n=al-maisa@conference/ubuntu-developer-summit/x-nodamkgaaimnrsbi] has left #go-nuts ["Parting is tough.."] 13:37 < exch> quit a few constructs like \s, \b, 13:37 -!- david_ricardo [n=adam_smi@31.81-167-16.customer.lyse.net] has joined #go-nuts 13:38 < exch> it also seems to have some problems with capture groups 13:39 < exch> For now you can use the PCRE bindings http://github.com/jteeuwen/go-pkg-pcre 13:40 -!- x-ip [n=sakura@unaffiliated/x-ip] has joined #go-nuts 13:40 -!- clip9 [i=tj@12.81-166-62.customer.lyse.net] has quit [Remote closed the connection] 13:41 -!- andern [n=NA@55.84-234-230.customer.lyse.net] has quit [Remote closed the connection] 13:41 -!- andern [n=NA@84.234.230.55] has joined #go-nuts 13:42 -!- leopa [n=leopoldo@189.114.201.244.dynamic.adsl.gvt.net.br] has joined #go-nuts 13:43 -!- ikkebr [n=ikkibr@unaffiliated/ikkebr] has quit [Connection timed out] 13:45 -!- crashR [n=crasher@codextreme.pck.nerim.net] has quit ["Leaving."] 13:46 -!- zhaozhou [n=zhaozhou@linfast76.bitnet.nu] has joined #go-nuts 13:46 -!- chickamade [n=chickama@123.16.65.187] has joined #go-nuts 13:47 -!- ikke [n=ikkibr@unaffiliated/ikkebr] has quit [] 13:47 -!- Meidor [n=quassel@cl-936.ams-05.nl.sixxs.net] has quit [Read error: 60 (Operation timed out)] 13:48 -!- x-ip [n=sakura@unaffiliated/x-ip] has quit [Remote closed the connection] 13:48 -!- david_ricardo_ [n=adam_smi@31.81-167-16.customer.lyse.net] has joined #go-nuts 13:48 -!- asmo [n=asmo@c-f6c5e055.1155-1-64736c11.cust.bredbandsbolaget.se] has joined #go-nuts 13:48 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has quit [Read error: 110 (Connection timed out)] 13:49 -!- clip9 [i=tj@12.81-166-62.customer.lyse.net] has joined #go-nuts 13:52 -!- engla [n=ulrik@90-229-231-23-no153.tbcn.telia.com] has joined #go-nuts 13:53 -!- Meidor [n=quassel@cl-936.ams-05.nl.sixxs.net] has joined #go-nuts 13:54 -!- drusepth` [n=drusepth@75.28.54.85] has quit [Read error: 145 (Connection timed out)] 13:55 -!- chickamade [n=chickama@123.16.65.187] has quit ["Leaving"] 13:57 -!- david_ricardo [n=adam_smi@31.81-167-16.customer.lyse.net] has quit [Read error: 110 (Connection timed out)] 13:58 -!- Sylvain__ [i=d4528311@gateway/web/freenode/x-mqahidlserbckckm] has joined #go-nuts 13:59 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has joined #go-nuts 14:00 -!- General13372 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has joined #go-nuts 14:03 -!- leopa [n=leopoldo@189.114.201.244.dynamic.adsl.gvt.net.br] has left #go-nuts [] 14:03 -!- tomestla [n=tom@78.251.131.202] has quit [Read error: 60 (Operation timed out)] 14:03 < flyguy> exch: thanks for the link. what is: import "C"? Is that an undocumented go lib or something external? 14:03 < exch> You use it to import C headers when wrapping an external library in go 14:03 -!- General1337 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit [Read error: 60 (Operation timed out)] 14:04 < Meidor> Hello I've imported the strconv package but the go compiler still says undefined Atoi any thoughts what I'm doing wrong? 14:04 < exch> the comment above it belongs to the statement. the cgo compiler uses it to import the right files 14:04 < exch> Meidor: did you type strings.Atoi() ? 14:04 < flyguy> exch: gotcha. thanks 14:05 < Meidor> exch: guess thats what I'm doing wrong. Thanks 14:05 < flyguy> Meidor: I think he meant strconv.Atoi() 14:05 < exch> eh yes sorry 14:05 * exch coffee 14:07 -!- Rob_Russell [n=chatzill@206-248-157-156.dsl.teksavvy.com] has quit ["ChatZilla 0.9.85 [Firefox 3.5.5/20091102152451]"] 14:07 -!- rajeshsr [n=rajeshsr@115.184.139.236] has quit [Read error: 104 (Connection reset by peer)] 14:07 -!- david_ricardo_ [n=adam_smi@31.81-167-16.customer.lyse.net] has quit [Read error: 110 (Connection timed out)] 14:07 -!- x-ip [n=sakura@unaffiliated/x-ip] has joined #go-nuts 14:08 < engla> I'm happy that go has real namespaces (packages) 14:09 < flyguy> does it? I thought I read somewhere that package names have to be globally unique, at least for the time being. 14:09 -!- mat__ [n=mat@mx3.absolight.net] has joined #go-nuts 14:09 < engla> is there a builtin function or similar to make a copy of a slice? 14:10 < engla> I meant the packages are the namespaces 14:10 < engla> do you mean that in the crypto/aes case, the "crypto" part is not a namespace at all? 14:10 < Gracenotes> no, nor one to make a copy of an array. besides looping. 14:11 < flyguy> engla: I mean that you can't have crypto/block and myotherlib/block in the same program 14:11 < Meidor> var i int = strconv.Atoi(flag.Arg(1)); gives me the error: multiple-value strconv.Atoi() in single-value context. What am I doing wrong this time ;) 14:11 < dho> morning 14:11 < engla> flyguy: you can import them under different names, or doesn't that work either? 14:11 < engla> flyguy: import cblock "crypto/block" ? 14:12 < Gracenotes> > i, err := strconv.Atoi("hello"); fmt.Printf("%d, %s", i, err) 14:12 < rndbot> 0, parsing hello: invalid argument 14:12 < exch> Meidor: AtoI() returns multiple values. The result and a possible error. Try: val, err := strings.Atoi(); if err != nil { ohnoes(err) } else { yay(val) } 14:12 -!- trontonic [n=alexande@77.40.159.131] has quit ["Ex-Chat"] 14:13 -!- tomestla [n=tom@78.251.131.202] has joined #go-nuts 14:13 -!- lmoura [n=lauromou@200.184.118.130] has quit [Remote closed the connection] 14:14 -!- david_ricardo [n=adam_smi@31.81-167-16.customer.lyse.net] has joined #go-nuts 14:14 < flyguy> engla: haven't tried it, but I was going off the "Contributing Code" page at golang.org 14:15 < engla> "The Go tools impose a restriction that package names are unique across all packages linked into a single binary, but that restriction will be lifted soon. " 14:15 < flyguy> yeah, that one 14:15 -!- sm [n=sm@cpe-75-85-88-227.socal.res.rr.com] has joined #go-nuts 14:17 < exch> the package subdirs like 'container/vector' would be an excellent namespace equivalent 14:19 -!- aho [n=nya@g226128246.adsl.alicedsl.de] has quit ["EXEC_over.METHOD_SUBLIMATION"] 14:21 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has quit [Read error: 110 (Connection timed out)] 14:21 -!- rajeshsr [i=rajeshsr@115.184.233.4] has joined #go-nuts 14:23 -!- mat_ [n=mat@mx3.absolight.net] has quit [Read error: 111 (Connection refused)] 14:23 -!- drusepth [n=drusepth@209.106.203.252] has joined #go-nuts 14:24 < flyguy> engla: going back to slice copies, I thought slices were values that reference an underlying array, and therefore cheap to copy (newslice := oldslice) 14:25 < exch> it won't be a copy of the data though. Just the reference 14:26 < engla> flyguy: I wanted a slice with a copy of the data 14:26 < flyguy> gotcha 14:27 -!- chachan [n=chachan@200.62.25.156] has joined #go-nuts 14:27 < engla> that go doesn't have typedefs gets ugly: Element(math.Sqrt(float64(norm))) 14:27 < engla> type Element float64 .. is not an alias, but a new type 14:28 -!- __ed [i=bitch@anal-co.it] has quit [Read error: 104 (Connection reset by peer)] 14:29 < Gracenotes> I was surprised how un-synonym-y they are 14:30 -!- arjanb [i=borganis@borganism.student.utwente.nl] has joined #go-nuts 14:31 -!- knave [n=kn4ve@dsl-240-171-194.telkomadsl.co.za] has quit [Remote closed the connection] 14:31 -!- lmoura [n=lauromou@200.184.118.130] has joined #go-nuts 14:32 -!- sachetto [n=sachetto@187-25-156-99.3g.claro.net.br] has joined #go-nuts 14:32 -!- chachan [n=chachan@200.62.25.156] has quit ["KVIrc Insomnia 4.0.0, revision: , sources date: 20090520, built on: 2009/06/06 11:44:47 UTC http://www.kvirc.net/"] 14:32 -!- nacmartin [n=chatzill@149.Red-88-17-130.dynamicIP.rima-tde.net] has joined #go-nuts 14:33 -!- lmoura [n=lauromou@200.184.118.130] has quit [Client Quit] 14:33 -!- lmoura [n=lauromou@200.184.118.130] has joined #go-nuts 14:33 -!- iant [n=iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Read error: 113 (No route to host)] 14:34 -!- mzgc [n=mizoguch@KHP059140023026.ppp-bb.dion.ne.jp] has joined #go-nuts 14:36 -!- slashus2 [n=slashus2@74-137-26-8.dhcp.insightbb.com] has quit [] 14:38 -!- mzgc [n=mizoguch@KHP059140023026.ppp-bb.dion.ne.jp] has quit ["Leaving."] 14:38 -!- SRabbelier [n=SRabbeli@ip138-114-211-87.adsl2.static.versatel.nl] has joined #go-nuts 14:39 -!- __ed [i=bitch@anal-co.it] has joined #go-nuts 14:41 -!- binaryjohn [n=binaryjo@cpe-24-30-132-50.san.res.rr.com] has joined #go-nuts 14:42 -!- lux` [n=lux@151.54.240.177] has joined #go-nuts 14:43 -!- chachan [n=chachan@ccscliente156.ifxnetworks.net.ve] has joined #go-nuts 14:45 -!- sachetto [n=sachetto@187-25-156-99.3g.claro.net.br] has quit ["Leaving"] 14:45 -!- jA_cOp [n=yakobu@ti0043a380-3093.bb.online.no] has quit [Remote closed the connection] 14:45 -!- chachan [n=chachan@ccscliente156.ifxnetworks.net.ve] has quit [Client Quit] 14:50 -!- david_ricardo [n=adam_smi@31.81-167-16.customer.lyse.net] has joined #go-nuts 14:51 -!- leitaox [n=leitaox@189.20.94.66] has joined #go-nuts 14:52 -!- loureiro [n=loureiro@201008189052.user.veloxzone.com.br] has joined #go-nuts 14:52 -!- chachan [n=chachan@ccscliente156.ifxnetworks.net.ve] has joined #go-nuts 14:52 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has quit [Read error: 110 (Connection timed out)] 14:54 -!- damien_ [n=damien@damien.grassart.com] has joined #go-nuts 14:55 -!- Fraeon [n=kzer-za@e212-246-65-153.elisa-laajakaista.fi] has quit ["Connection reset by peer."] 14:55 -!- Fraeon [n=kzer-za@e212-246-65-153.elisa-laajakaista.fi] has joined #go-nuts 14:59 -!- damien_ [n=damien@damien.grassart.com] has quit ["Ex-Chat"] 15:01 -!- drusepth [n=drusepth@209.106.203.252] has quit [Read error: 110 (Connection timed out)] 15:02 -!- Decoy_ [n=decoy@ns1.ukr.ua] has joined #go-nuts 15:03 -!- ProperNoun [i=ProperNo@wikipedia/ProperNoun] has quit [Read error: 60 (Operation timed out)] 15:04 -!- smooge [n=smooge@int.smoogespace.com] has joined #go-nuts 15:06 -!- iant [n=iant@67.218.109.101] has joined #go-nuts 15:06 -!- mode/#go-nuts [+v iant] by ChanServ 15:08 -!- david_ricardo [n=adam_smi@31.81-167-16.customer.lyse.net] has quit [Read error: 110 (Connection timed out)] 15:10 -!- aa [n=aa@r190-135-189-132.dialup.adsl.anteldata.net.uy] has joined #go-nuts 15:10 -!- binaryjohn [n=binaryjo@cpe-24-30-132-50.san.res.rr.com] has quit [] 15:11 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has joined #go-nuts 15:11 -!- oklofok [n=oklopol@a91-153-117-63.elisa-laajakaista.fi] has quit ["( www.nnscript.com :: NoNameScript 4.2 :: www.regroup-esports.com )"] 15:13 -!- leitaox [n=leitaox@189.20.94.66] has quit [Client Quit] 15:14 -!- scarabx [n=scarabx@c-24-147-239-120.hsd1.ma.comcast.net] has joined #go-nuts 15:16 -!- aa [n=aa@r190-135-189-132.dialup.adsl.anteldata.net.uy] has quit [Remote closed the connection] 15:19 -!- Peter- [n=peter@92.254.21.251] has joined #go-nuts 15:23 -!- vdrab [n=vdrab@61.86.36.152] has quit [] 15:24 -!- scarabx [n=scarabx@c-24-147-239-120.hsd1.ma.comcast.net] has quit ["This computer has gone to sleep"] 15:25 -!- Kashia [n=Kashia@port-92-200-47-208.dynamic.qsc.de] has joined #go-nuts 15:26 -!- x-ip [n=sakura@unaffiliated/x-ip] has quit [Read error: 60 (Operation timed out)] 15:27 -!- sockmonk [n=user@pixout.appriss.com] has joined #go-nuts 15:29 -!- Peter` [n=peter@92.254.21.251] has quit [Read error: 110 (Connection timed out)] 15:30 -!- chachan [n=chachan@ccscliente156.ifxnetworks.net.ve] has quit ["KVIrc Insomnia 4.0.0, revision: , sources date: 20090520, built on: 2009/06/06 11:44:47 UTC http://www.kvirc.net/"] 15:34 -!- hector [n=chatzill@client-86-0-126-58.nrth.adsl.virginmedia.com] has quit ["ChatZilla 0.9.85 [Firefox 3.5.5/20091102152451]"] 15:34 -!- jA_cOp [n=yakobu@ti0043a380-3093.bb.online.no] has joined #go-nuts 15:34 -!- chachan [n=chachan@ccscliente156.ifxnetworks.net.ve] has joined #go-nuts 15:37 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has quit [Read error: 110 (Connection timed out)] 15:42 -!- path[l] [n=path@122.182.0.38] has quit [] 15:44 -!- armence [n=armence@67.188.229.128] has joined #go-nuts 15:46 -!- armence [n=armence@67.188.229.128] has quit [Client Quit] 15:46 -!- armence [n=armence@c-67-188-229-128.hsd1.ca.comcast.net] has joined #go-nuts 15:52 -!- flyguy [n=flyguy@66-169-174-29.dhcp.ftwo.tx.charter.com] has left #go-nuts [] 15:52 -!- flyguy [n=flyguy@66-169-174-29.dhcp.ftwo.tx.charter.com] has joined #go-nuts 15:53 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has joined #go-nuts 15:56 -!- rajeshsr [i=rajeshsr@115.184.233.4] has quit [Read error: 60 (Operation timed out)] 15:56 -!- rajeshsr [n=rajeshsr@59.92.66.37] has joined #go-nuts 15:58 -!- nacmartin [n=chatzill@149.Red-88-17-130.dynamicIP.rima-tde.net] has quit [Remote closed the connection] 16:00 -!- Sylvain__ [i=d4528311@gateway/web/freenode/x-mqahidlserbckckm] has quit ["Page closed"] 16:02 -!- qbit_ [n=qbit_@c-75-71-160-106.hsd1.co.comcast.net] has joined #go-nuts 16:04 -!- mainman__ [n=Adium@79.21.156.24] has joined #go-nuts 16:04 -!- mainman__ [n=Adium@79.21.156.24] has left #go-nuts [] 16:05 -!- hector [n=chatzill@client-86-0-126-58.nrth.adsl.virginmedia.com] has joined #go-nuts 16:06 -!- delsvr [n=delsvr@cpe-67-242-41-219.twcny.res.rr.com] has joined #go-nuts 16:06 -!- ukl [n=ukl@f053122078.adsl.alicedsl.de] has joined #go-nuts 16:07 < ukl> hello. Is there anything wrong with using "a[i], a[p] = a[p], a[i]" to swap elements of a slice? 16:09 < dagle2> ukl: how have you defined a? 16:09 -!- rrr [i=rrr@gateway/gpg-tor/key-0x9230E18F] has quit [Remote closed the connection] 16:09 < ukl> dagle2: given to a function as "a []int" parameter 16:09 -!- ian1 [n=iant@nat/google/x-yogzokjmcbmqzrkl] has joined #go-nuts 16:10 -!- iant [n=iant@67.218.109.101] has quit [Read error: 145 (Connection timed out)] 16:10 -!- triddell [n=tim@207-191-198-64.cpe.ats.mcleodusa.net] has quit [Read error: 104 (Connection reset by peer)] 16:10 -!- mode/#go-nuts [+v iant] by ChanServ 16:11 -!- david_ricardo [n=adam_smi@31.81-167-16.customer.lyse.net] has joined #go-nuts 16:12 -!- loureiro [n=loureiro@201008189052.user.veloxzone.com.br] has quit ["Quit"] 16:12 -!- loureiro [n=loureiro@201008189052.user.veloxzone.com.br] has joined #go-nuts 16:13 -!- loureiro [n=loureiro@201008189052.user.veloxzone.com.br] has quit [Read error: 104 (Connection reset by peer)] 16:13 -!- decriptor [n=decripto@137.65.132.26] has joined #go-nuts 16:14 < ukl> dagle2: http://pastebin.com/d23652281 16:14 -!- loureiro [n=loureiro@201008189052.user.veloxzone.com.br] has joined #go-nuts 16:16 -!- westymatt [n=westymat@173-17-254-31.client.mchsi.com] has joined #go-nuts 16:17 < exch> what's the problem? the code works here 16:18 < exch> at least, it doesn't throw any errors. Not sure if the outpout is what it should be 16:18 < dagle2> ukl: Ok. Use *[] 16:18 < dagle2> []int is not a pointer. 16:20 -!- kaigan|work [n=kaigan@c-8290e255.1411-10-64736c14.cust.bredbandsbolaget.se] has quit [] 16:24 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has quit [Read error: 110 (Connection timed out)] 16:24 < ukl> dagle2: like *[]a[i], *[]a[j] = *[]a[j] *[]a[i] ? 16:24 -!- hector [n=chatzill@client-86-0-126-58.nrth.adsl.virginmedia.com] has quit ["ChatZilla 0.9.85 [Firefox 3.5.5/20091102152451]"] 16:25 -!- skyfive [n=skyfive@adsl-69-106-230-209.dsl.pltn13.pacbell.net] has quit [Remote closed the connection] 16:25 < ukl> (probably not, syntax error) 16:25 -!- al-maisan [n=al-maisa@conference/ubuntu-developer-summit/x-veqemnpejziznjka] has joined #go-nuts 16:26 -!- directrixx [n=aleksand@ip68-231-189-247.tc.ph.cox.net] has joined #go-nuts 16:28 -!- mat__ [n=mat@mx3.absolight.net] has joined #go-nuts 16:28 -!- dobre_zlo [i=unixwiza@k-lined.info] has quit [Read error: 104 (Connection reset by peer)] 16:29 -!- triplez [n=triplez@cm52.sigma225.maxonline.com.sg] has joined #go-nuts 16:30 < dagle2> ukl: func swap(i, j *int) { *i, *j = *j, *i; } 16:30 -!- Anders__ [n=Anders@c83-253-2-206.bredband.comhem.se] has joined #go-nuts 16:31 < ukl> dagle2: thanks, I'll try that 16:31 < dagle2> Works for me. 16:33 -!- al-maisan [n=al-maisa@conference/ubuntu-developer-summit/x-veqemnpejziznjka] has left #go-nuts ["Parting is tough.."] 16:33 -!- Chaze [n=Chase@dslb-094-219-214-079.pools.arcor-ip.net] has joined #go-nuts 16:33 -!- tomestla [n=tom@78.251.131.202] has quit [Read error: 110 (Connection timed out)] 16:33 < ukl> hmm. swap(&a[i], &a[j]) ? somehow the whole program doesnt work, maybe it's something else tho... Might need to try some minimal examples first 16:34 -!- Chaze [n=Chase@dslb-094-219-214-079.pools.arcor-ip.net] has left #go-nuts [] 16:35 < exch> it's swapping identical values every time 16:35 < exch> arr[p] == arr[i] 16:35 -!- mxcl [n=mxcl@94-193-125-246.zone7.bethere.co.uk] has quit [Remote closed the connection] 16:35 < ukl> oops. 16:38 < ukl> oh.. the "if arr[j] <= x" never happens 16:39 -!- Venom_X_ [n=pjacobs@66.54.185.131] has joined #go-nuts 16:42 -!- mat_ [n=mat@mx3.absolight.net] has quit [Read error: 111 (Connection refused)] 16:43 -!- dezelin [n=dezelin@91.150.108.119] has quit [Read error: 104 (Connection reset by peer)] 16:43 -!- aa [n=aa@r200-40-114-26.ae-static.anteldata.net.uy] has joined #go-nuts 16:45 -!- tomestla [n=tom@78.251.131.202] has joined #go-nuts 16:46 -!- ebk [i=eberkut@minithins.net] has left #go-nuts [] 16:46 -!- jeroend [n=jeroend@76.73.16.26] has joined #go-nuts 16:47 -!- tomestla1 [n=tom@81.185.119.124] has joined #go-nuts 16:48 -!- travisbrady [n=tbrady@67-207-96-194.static.wiline.com] has joined #go-nuts 16:49 < jeroend> Hi, is anyone else getting crash from newosproc? 16:49 < jeroend> It seems that the clone system call fails 16:49 < jeroend> I am running on an older version of linux 32 bit 16:50 < jeroend> kernel 2.4.21 16:50 < jeroend> This mean goroutines do not work at all 16:51 -!- dbruns [n=dbruns@69.66.68.21] has joined #go-nuts 16:53 -!- npe [n=npe@195.207.5.2] has quit [No route to host] 16:56 -!- trickie [n=trickie@94.100.112.225] has quit [Read error: 113 (No route to host)] 16:57 -!- dobre_zlo [i=unixwiza@k-lined.info] has joined #go-nuts 17:04 -!- foxspurlock [n=Brian@cpe-74-66-16-82.nyc.res.rr.com] has joined #go-nuts 17:04 -!- tomestla [n=tom@78.251.131.202] has quit [Read error: 110 (Connection timed out)] 17:05 < e1f> "The (London) Times would charge for 24-hour access to that day's edition of the paper alongside a subscription model, but dismissed the idea of micro-payments for individual articles." 17:05 -!- jabb [n=grue@71.94.31.166] has quit [Read error: 110 (Connection timed out)] 17:05 < e1f> http://www.guardian.co.uk/media/2009/nov/17/times-editor-james-harding-online-charging 17:08 -!- nonet1 [n=nonet@c-69-181-203-73.hsd1.ca.comcast.net] has left #go-nuts [] 17:10 -!- engla [n=ulrik@wikipedia/Sverdrup] has quit [Read error: 110 (Connection timed out)] 17:10 < e1f> http://paulgraham.com/apple.html 17:10 < e1f> at least he got a new favicon, instead of the old Y! 17:11 -!- path_ [n=path@115.240.6.26] has joined #go-nuts 17:12 -!- skyfive [n=skyfive@173-11-110-86-SFBA.hfc.comcastbusiness.net] has joined #go-nuts 17:13 -!- bquinn [n=bquinn@nat/yahoo/x-pyxliludlncmzhsx] has quit [] 17:16 -!- drusepth [n=drusepth@209.106.203.252] has joined #go-nuts 17:18 -!- tomestla1 [n=tom@81.185.119.124] has quit [Read error: 145 (Connection timed out)] 17:20 -!- ptolomy2 [n=chatzill@nat/google/x-walndfcfixwknrcl] has joined #go-nuts 17:23 -!- sku [n=sk@217.175.6.56] has quit [Remote closed the connection] 17:23 < dbruns> I'm trying to install go on an Ubuntu Karmic Koala server and when I get to the point where I run ./all.bash from src/ I get an error: error: gnu/stubs-32.h: No such file or directory 17:23 -!- Wezz6400 [n=Wezz6400@145-118-111-123.fttx.bbned.nl] has quit ["Caught sigterm, terminating..."] 17:24 < whiteley> dbruns: did you set the environment variables? 17:24 -!- Wezz6400 [n=Wezz6400@145-118-111-123.fttx.bbned.nl] has joined #go-nuts 17:25 < dbruns> yes 17:25 < Kashia> http://packages.ubuntu.com/search?searchon=contents&keywords=stubs-32.h&mode=exactfilename&suite=karmic&arch=any 17:25 < dbruns> ahhhh shoot 17:25 -!- jspeter [n=quassel@216-12-25-120.unassigned.ntelos.net] has joined #go-nuts 17:25 < dbruns> GOARCH is 386... should be amd64 17:26 < jspeter> anyone know how to flush stdout? 17:26 -!- engla [n=ulrik@90.229.231.23] has joined #go-nuts 17:27 < jspeter> (after a fmt.Printf?) 17:28 < exch> Not directly, but this should work.. all be it a bit of a round-a-bout solution: r := budio.NewWriter(os.Stdout); r.WriteString("wahey!"); r.Flush(); 17:28 < exch> *bufio 17:28 -!- Lorthirk [n=cm0901@host21-182-dynamic.56-79-r.retail.telecomitalia.it] has quit [Remote closed the connection] 17:29 < nbaum> exch: Surely that only flushes the buffered writer? 17:29 < exch> fmt.Printf() generally works better if you append a newline \n to the string 17:29 < exch> isn't that the point? 17:30 < nbaum> It doesn't answer the question as I understand it. jspeter's stdout is probably buffered outside of Go, by the kernel. 17:31 < exch> fmt.Printf uses an io.Writer 17:31 < directrixx> jspeter: what exactly is the problem? are you not getting any output? 17:32 -!- path__ [n=path@115.240.43.36] has joined #go-nuts 17:32 -!- jspeter [n=quassel@216-12-25-120.unassigned.ntelos.net] has quit ["No Ping reply in 180 seconds."] 17:33 < exch> scratch what I said. it doesnt use io.writer. only Fprintf takes one. 17:33 -!- jspeter [n=quassel@216.12.25.120] has joined #go-nuts 17:33 < directrixx> jspeter: is the fmt.Printf in a goroutine? 17:33 -!- miloe [i=miloe@ip55-9.thenet.ph] has joined #go-nuts 17:33 < jspeter> no... just a long loop 17:34 < jspeter> my wifi dropped for a moment... were there any responses? 17:34 < directrixx> nope 17:34 < jspeter> hmm 17:34 < directrixx> jspeter: can you paste the code? 17:35 < jspeter> os.Stdout is a File 17:35 < dbruns> where can I find syntax highlighting for vim? 17:35 -!- jhendricks [n=jhendric@adsl-76-204-8-233.dsl.klmzmi.sbcglobal.net] has joined #go-nuts 17:35 < exch> fmt.Printf() forwards it's call to FPrintf. Fprintf(os.Stdout, format, v); 17:35 < directrixx> dbruns: misc/vim 17:35 < dbruns> sweet thanks 17:35 < jspeter> File has no Flush method 17:35 < exch> so creating a writer around os.Stdout manually should yield the same result 17:35 < jspeter> package main 17:35 < jspeter> import "fmt" 17:35 < jspeter> /import "os" 17:35 < jspeter> func main() { 17:35 < jspeter> // how long will this run?: 17:35 < jspeter> i := 0; 17:35 < jspeter> thresh := 10; 17:35 < jspeter> for { 17:35 < jspeter> if i > thresh { 17:35 < jspeter> fmt.Printf("at %d\n",i); 17:35 < exch> :p 17:35 < directrixx> gah use gopaste.org 17:36 < jspeter> //os.Stdout.Flush(); 17:36 < jspeter> thresh = thresh * 10; 17:36 < dbruns> the crappy thing about the name "go" is searchings on google are not going to be very fruitful for a while . . . 17:36 < jspeter> } 17:36 < jspeter> } 17:36 < directrixx> you're not incrementing i 17:36 < dbruns> .... searchings? I think I created a new word .... jspeter: pastie.org 17:36 < jspeter> hmm... I see I forgot an i++ 17:36 < directrixx> thresh = 10^n 17:36 < jspeter> but the question remains 17:37 < directrixx> i isn't going to catch up 17:37 -!- F1sh [n=Fish@86.65.182.194] has quit [Read error: 60 (Operation timed out)] 17:37 < rbohn> you never actually print anything. 17:37 < rbohn> i is always 0 17:37 < exch> :p 17:37 -!- lenst [n=user@81-237-244-185-no52.tbcn.telia.com] has quit [Remote closed the connection] 17:38 < directrixx> jspeter, did you mean thresh := 1 ... thresh = thresh / 10 17:38 < exch> to answer the quesiotn in the comment: it'll probably run forever. 17:38 -!- shambler [i=kingrat@mm-51-163-84-93.dynamic.pppoe.mgts.by] has joined #go-nuts 17:39 < dbruns> I don't know the language at all 17:39 -!- path___ [n=path@115.240.43.98] has joined #go-nuts 17:39 < dbruns> but the for { } loop... wouldn't that run forever regardless? there is nothing saying to escape the loop 17:39 < exch> indeed 17:39 -!- F1sh [n=Fish@86.65.182.194] has joined #go-nuts 17:39 < directrixx> dbruns: yeah you have to use break 17:39 < dbruns> besides the fact that i is never incremented 17:39 < directrixx> or goto!!! 17:40 -!- sm_ [n=sm@cpe-76-173-194-242.socal.res.rr.com] has joined #go-nuts 17:40 -!- Nanoo [n=Nano@95-89-198-15-dynip.superkabel.de] has joined #go-nuts 17:41 < jspeter> maybe Stdout is unbuffered by default, and my many errors just fooled me into thinking the output was stuck in a buffer 17:42 < jspeter> wow... my IRC is really spastic 17:42 -!- path__ [n=path@115.240.43.36] has quit [Read error: 60 (Operation timed out)] 17:43 < jspeter> anyhow, yes... there were many errors. The question in the comment is not pertinent. And, I'm going with the "Stdout isn't buffered" theory. 17:44 < jspeter> so, if I wanted a buffered Stdout, I could wrap it in a bufio.Writer as exch mentions, and then flush the wrapper when desired. Thanks 17:44 < jspeter> (btw, it's amazing how quickly a 32-bit integer wraps around, these days... had to upgrade to int64) 17:47 -!- drusepth [n=drusepth@209.106.203.252] has quit [Read error: 110 (Connection timed out)] 17:47 -!- path_ [n=path@115.240.6.26] has quit [Read error: 110 (Connection timed out)] 17:48 -!- ukl [n=ukl@f053122078.adsl.alicedsl.de] has quit ["...."] 17:48 -!- sm [n=sm@cpe-75-85-88-227.socal.res.rr.com] has quit [Read error: 60 (Operation timed out)] 17:49 < dbruns> directrixx: so i wasn't able to figure this out too quickly from reading/searching what do I need to do with the go.vim file in the misc/vim directory to get it to work in vim? 17:49 < directrixx> put it in ~/.vim/syntax/ 17:49 < dbruns> i haven't had to customize anything in vim for years 17:50 < directrixx> dbruns: then you might have to add a line to your .vimrc if it doesn't work automatically 17:50 < dbruns> directrixx: ahhhh crap... ubuntu uses vim-tiny by default... 17:51 < dbruns> directrixx: yeah I have a custom .vimrc file i've been using for 10+ years i'm doing this all on a brand new install of ubuntu so I'm still getting settled on the system 17:51 -!- jspeter [n=quassel@216.12.25.120] has quit [Remote closed the connection] 17:51 < directrixx> dbruns: I thought vim-tiny used .vim/ also 17:51 < dbruns> directrixx: the directory didn't exist 17:51 < directrixx> dbruns: create it, vim knows to look for it 17:51 < dbruns> and it was created after aptitude install vim finished 17:52 < directrixx> it'll be fine 17:52 < dbruns> i don't want to mess with vim-tiny anyway.. half of my settings in my vimrc aren't working in tiny 17:52 < directrixx> fair enough 17:53 < dbruns> ok so my php syntax highlighting and everything is working as it should, but when i open up this helloworld.go file i just created quickly, nothing is going on with the syntax highlighting 17:53 < directrixx> put this in your .vimrc "au BufNewFile,BufReadPost *.go so ~/.vim/syntax/go.vim" 17:54 < dbruns> holy crap this is fast.... 17:54 -!- Nanooo [n=Nano@95-89-198-15-dynip.superkabel.de] has quit [Success] 17:55 < dbruns> ahh there we go 17:56 < dbruns> thanks 17:56 < directrixx> np 17:56 < dbruns> so, will i be as excited about this language as I was when I first played with ruby? 17:56 < engla> directrixx: should it not be enough with ft=go 17:57 < directrixx> engla: yeah I just realized its kinda screwy to source the vim file :P 17:57 < directrixx> I don't know why i did that 17:57 < engla> autocmd BufNewFile,BufRead *.go setlocal ft=go 17:58 -!- aho [n=nya@e176226039.adsl.alicedsl.de] has joined #go-nuts 17:58 < engla> (ft is short for filetype) 17:58 < directrixx> engla: why setlocal instead of set? 17:58 -!- Jacolyte [n=blaine@unaffiliated/jacolyte] has quit [Read error: 110 (Connection timed out)] 17:58 -!- tsuru [n=user@c-174-50-217-160.hsd1.tn.comcast.net] has joined #go-nuts 17:58 < exch> dbruns:At least you'll find that Go performss a little faster than ruby :) 17:59 < dbruns> ;p 17:59 < dbruns> I'm a php web developer 17:59 < miloe> Go rules! 17:59 < engla> directrixx: dunno, I have just copied someone. it sets it only for the buffer: might it override other windows else? 17:59 < dbruns> so i don't get to do much 'real programming' very frequently 18:00 * atsampson nods at engla -- if you use "set" in that line, it'll change all buffers 18:01 < hagna> to setup a unit testing do I need a makefile? 18:01 < engla> directrixx: doesn't seem to make a difference 18:01 < Ycros> hagna: no, but makefiles are generally a good idea to automate everything 18:01 < engla> atsampson: I failed at reproducing it, but I rarely use split buffers or so (might be that) 18:02 < rbohn> If you're using gotest you will need a makefile. 18:03 < hagna> rbohn: ok and do I need to put my code in the go src tree? 18:03 -!- WalterMundt1 [n=waltermu@wst100039.terc.edu] has joined #go-nuts 18:03 < rbohn> hagna: not sure about that. I only got it working (outside the src tree) when I put the tests in with my code-under-test. 18:03 < Ycros> rbohn: you don't, you can just run gotest 18:04 < rbohn> (same file) 18:04 -!- AlvaroGP [i=Alvaro@89.128.155.68] has joined #go-nuts 18:05 < Ycros> and I have my tests in a separate file 18:05 < Ycros> same package 18:05 < rbohn> I musta done something wrong then... 18:05 < Ycros> if you just run "gotest" it should pick them up and run them 18:06 < Ycros> or if you're piggybacking off go's makefiles (like I am) you can run make test - but it basically does the same thing 18:07 < rbohn> When I run gotest it asks me to create a Makefile. 18:07 < hagna> same here 18:08 < Ycros> oh, really? hmm. 18:08 < ptolomy2> I wish gotest were more friendly to those of us who like to create multiple packages without installing them. 18:08 < Ycros> I guess I never noticed because I had a makefile from the start 18:08 < hagna> but after creating one it's happy 18:09 -!- pshahmumbai [n=prashant@59.164.25.193] has joined #go-nuts 18:09 < exch> http://github.com/jteeuwen/go-pkg-pcre/blob/master/Makefile that is the Makefile I use to do what Ycros described. you can run 'make test' with that and it automatically builds.runs the test case 18:09 < Ycros> ptolomy2: you mean, installing them into a custom location? 18:10 < exch> that would be nice to have 18:10 -!- lemon [n=lemon@114-45-233-128.dynamic.hinet.net] has joined #Go-nuts 18:11 < exch> actually it works 18:11 < Ycros> my Makefile just looks like this: http://pastie.org/707911 18:11 < Ycros> basically the same 18:11 < exch> Just tried it on my pcre lib outside of the src/pkg tree. runs without any problems 18:12 -!- Sungem [n=Sungem@118-168-232-141.dynamic.hinet.net] has joined #go-nuts 18:12 -!- lemon [n=lemon@114-45-233-128.dynamic.hinet.net] has quit [Client Quit] 18:13 -!- ProperNoun [i=ProperNo@adsl-243-220-206.cae.bellsouth.net] has joined #go-nuts 18:13 < Ycros> I've been doing stuff outside of the tree 18:13 < Ycros> make install will install it into the tree though 18:13 < Ycros> which I suppose is fine for now 18:13 < exch> ya 18:14 < Ycros> I'm not sure we're really supposed to be piggybacking onto the go Makefiles, but it certainly is conventient 18:14 -!- gasreaa [n=atwong@nat/slide/x-jdzwglabqugwcljw] has joined #go-nuts 18:19 < vz> :D 18:20 -!- eiro_ [n=marc@phear.org] has joined #go-nuts 18:20 < exch> "Compiling successfully failed" My brain has a little trouble understanding that :p 18:21 < exch> hm. I hope the go team can supply a fix for my cgo issue at some point :s Would live to finish up the lua bindings 18:21 < exch> *love 18:22 -!- XniX23 [n=XniX23@we.will.never-be.afraid.org] has joined #go-nuts 18:22 < Ycros> hehe 18:24 -!- eiro [n=marc@phear.org] has quit [Read error: 110 (Connection timed out)] 18:26 -!- path_ [n=path@115.240.126.64] has joined #go-nuts 18:26 < dho> anybody know where the clone syscall implementation lives in linux? 18:27 < vhold> Don't all syscall implementations live in the kernel itself ? 18:27 < dho> yes, and i'm having difficulty finding where 18:29 < atsampson> dho: most of the guts are in kernel/fork.c 18:29 -!- mxcl [n=mxcl@94-193-125-246.zone7.bethere.co.uk] has joined #go-nuts 18:29 < dho> thank you 18:29 -!- path_ [n=path@115.240.126.64] has quit [Read error: 104 (Connection reset by peer)] 18:29 -!- pshahmumbai [n=prashant@59.164.25.193] has quit ["Ex-Chat"] 18:29 -!- path_ [n=path@115.240.126.64] has joined #go-nuts 18:33 -!- AlvaroGP [i=Alvaro@89.128.155.68] has quit [] 18:33 -!- path___ [n=path@115.240.43.98] has quit [Read error: 110 (Connection timed out)] 18:35 -!- willdye [n=willdye@fern.dsndata.com] has left #go-nuts [] 18:37 -!- willdye [n=willdye@fern.dsndata.com] has joined #go-nuts 18:41 -!- mrdek11 [n=derek@c-67-186-234-32.hsd1.ut.comcast.net] has joined #go-nuts 18:41 < willdye> exch: "successfully failed" does seem confusing. if it "failed to fail", would that mean that it succeeded? :) 18:43 -!- maruel [n=maruel_2@google1.osuosl.org] has joined #go-nuts 18:43 -!- path__ [n=path@115.240.126.64] has joined #go-nuts 18:43 < mrdek11> Does go have an equivalent system() to run a shell command? 18:43 -!- brrant [n=John@65-102-193-77.hlrn.qwest.net] has quit ["Leaving"] 18:43 -!- hector [n=chatzill@client-86-0-126-58.nrth.adsl.virginmedia.com] has joined #go-nuts 18:46 < exch> willdye: In this case the failure was expected. If it didn't fail, it would be a failure :p 18:46 -!- skyfive [n=skyfive@173-11-110-86-SFBA.hfc.comcastbusiness.net] has quit [Read error: 54 (Connection reset by peer)] 18:47 -!- jeroend [n=jeroend@76.73.16.26] has quit ["CGI:IRC (Ping timeout)"] 18:47 -!- skyfive [n=skyfive@173-11-110-86-SFBA.hfc.comcastbusiness.net] has joined #go-nuts 18:48 -!- Pilate [n=wotgoes@75.141.254.198] has quit [Read error: 104 (Connection reset by peer)] 18:48 -!- sliceofpi [n=Adium@c-98-201-183-147.hsd1.tx.comcast.net] has joined #go-nuts 18:48 <+iant> mrdek11: no, you have to invoke /bin/sh via pkg/exec; a system like function would be a good add 18:48 -!- aaront [n=aaront@mc-189-212.IPReg.mcmaster.ca] has joined #go-nuts 18:48 < mrdek11> ah ok 18:48 < mrdek11> thanks 18:50 -!- dbruns [n=dbruns@69.66.68.21] has quit [Client Quit] 18:50 < willdye> exch: yeah, i figured it was referring to a two-step procedure in which the first step had already failed. still, the message should be rephrased, especially in the case of "failed to fail". 18:53 -!- diabolix [n=jsoyke@206.210.81.55] has joined #go-nuts 18:53 -!- ptolomy2 [n=chatzill@nat/google/x-walndfcfixwknrcl] has quit [Remote closed the connection] 18:57 -!- conra [n=konrad@host-89-229-12-166.torun.mm.pl] has quit ["Leaving."] 18:58 < Gracenotes> monads are nice for failure handling 19:00 -!- xjih78 [i=z0r0@90.154.213.217] has quit [Read error: 110 (Connection timed out)] 19:02 -!- x-ip [n=sakura@unaffiliated/x-ip] has joined #go-nuts 19:02 -!- codehai [n=codehai@xdsl-78-34-36-14.netcologne.de] has joined #go-nuts 19:03 -!- path__ [n=path@115.240.126.64] has quit [Read error: 110 (Connection timed out)] 19:04 < uriel> good morning everyone 19:04 < exch> lo 19:04 -!- path_ [n=path@115.240.126.64] has quit [Read error: 110 (Connection timed out)] 19:08 < mrdek11> I apologize for my ignorance, but what am I doing wrong? http://pastebin.com/m77682395 I'm trying to use exec to call curl to get the contents of a webpage 19:10 -!- p0g0_ [n=pogo@unaffiliated/p0g0] has quit [Connection timed out] 19:10 -!- aaront [n=aaront@unaffiliated/aaront] has quit [Remote closed the connection] 19:11 -!- loVolt [n=richardm@mail.norco.com] has joined #go-nuts 19:13 < atsampson> mrdek11: exec.Run is like the exec* system calls -- the list of arguments needs to include the program name as the first argument 19:14 < atsampson> so you'd call exec.Run("/usr/bin/curl", {"curl", "http://whatever"}, ...) 19:14 < exch> O.o 19:15 < KirkMcDonald> Or just: args := []string{"/usr/bin/curl", "http://blah"}; exec.Run(args[0], args) 19:17 -!- trickie [n=trickie@86.93.227.181] has joined #go-nuts 19:18 -!- trickie [n=trickie@86.93.227.181] has quit [Client Quit] 19:18 -!- BLeAm [n=quassel@ppp-124-120-163-223.revip2.asianet.co.th] has joined #go-nuts 19:18 -!- crooter [n=crooter@li65-15.members.linode.com] has joined #go-nuts 19:20 -!- xjih78 [i=z0r0@90.154.213.217] has joined #go-nuts 19:20 -!- evilhackerdude [n=stephan@mue-88-130-111-114.dsl.tropolys.de] has quit [Read error: 113 (No route to host)] 19:22 -!- Associat0r [n=Associat@h163153.upc-h.chello.nl] has quit [] 19:23 -!- BLeAm [n=quassel@ppp-124-120-163-223.revip2.asianet.co.th] has quit [Remote closed the connection] 19:23 -!- aaront [n=aaront@mc-189-212.IPReg.mcmaster.ca] has joined #go-nuts 19:24 < droid001> iant: by runtime.GOMAXPROCS(x) gccgo linker breaks with undefined reference to `runtime.GOMAXPROCS' 19:25 -!- melba [n=blee@unaffiliated/lazz0] has quit [Read error: 104 (Connection reset by peer)] 19:25 -!- melba [n=blee@unaffiliated/lazz0] has joined #go-nuts 19:28 < Gracenotes> libcurl bindings are useful 19:28 < uriel> Gracenotes: ah, somebody wrote them already? 19:28 < uriel> (sorry, didn't have time to look over backlog yet) 19:28 < Gracenotes> even if you have your own HTTP library.. there are features in curl way above the protocol level.. oh, no one's written them yet afaik, for Go anyway :) 19:28 -!- raichoo [n=raichoo@i577B8EC7.versanet.de] has quit ["http://raichoo.blogspot.com"] 19:29 < uriel> i see 19:29 -!- p0g0 [n=pogo@unaffiliated/p0g0] has joined #go-nuts 19:29 < uriel> well, I would prefer to see the go http libs improved instead, but hey, bindings can be useful too 19:29 -!- bluemoon_ [n=bluemoon@c-98-225-14-178.hsd1.wa.comcast.net] has quit [Read error: 54 (Connection reset by peer)] 19:29 -!- gnuvince [n=vince@64.235.207.47] has quit ["What the fruit is goin' on here!?"] 19:30 -!- chrelad [n=chrelad@76.164.12.11] has joined #go-nuts 19:30 -!- gnuvince [n=vince@70.35.161.13] has joined #go-nuts 19:30 -!- chrelad [n=chrelad@76.164.12.11] has quit [Remote closed the connection] 19:32 -!- miloe [i=miloe@ip55-9.thenet.ph] has quit [] 19:34 < mrdek11> atsampson, kirkmcdonald: Thanks for the help! That worked! (Sorry I'm so late responding.) 19:34 < exch> uriel, you listed curl bindings on your site 19:34 -!- rajeshsr [n=rajeshsr@59.92.66.37] has quit [Remote closed the connection] 19:34 < exch> or not 19:34 < exch> it's curse bindings :p 19:34 * exch makes a note on his TODO list. 19:36 -!- asyncster [n=asyncste@206.169.213.106] has joined #go-nuts 19:36 < uriel> hehe 19:37 < asyncster> is anyone else getting a build break on "making cmd/cgo" 19:37 * uriel adds the bmp and bdd libs to the list of pure go libs 19:37 < uriel> asyncster: I think some people were, I seem to remember from the mailing list 19:37 -!- dga [n=dga@CMU-309108.WV.CC.CMU.EDU] has joined #go-nuts 19:37 < asyncster> 8l: conflicting definitions for regexp.Regexp 19:38 < dga> Ah. I see someone else is asking my question. :) 19:38 < asyncster> haha 19:38 < poe> Gracenotes intereseting, what feature for example? 19:38 -!- apeace [n=apeace@c-24-61-22-9.hsd1.ma.comcast.net] has joined #go-nuts 19:39 < dho> r@ is doing some work on it 19:40 < exch> asyncster: I had that to. un the build again. should be solved then 19:41 < exch> I think it's a dependency issue where regexp lib isn't built yet while doc needs it 19:41 -!- trickie [n=trickie@86.93.227.181] has joined #go-nuts 19:42 < dho> just do ./clean.bash and then ./make.bash 19:42 < dho> that seems to fix things. 19:42 < asyncster> ah, okay, ill try that 19:42 < asyncster> by the way is anyone working on a better http library? 19:43 < dho> Gracenotes was just talking about something like that 19:43 -!- trutkin [n=trutkin@64.1.25.210.ptr.us.xo.net] has left #go-nuts ["Leaving"] 19:43 < uriel> with so many libs, i strarted to try to organize things a bit, suggestions and comments welcome: http://go-lang.cat-v.org/pure-go-libs 19:44 -!- jabb [n=grue@71.94.31.166] has joined #go-nuts 19:44 < Gracenotes> poe: all the things curl can do, with all its protocols 19:46 -!- apeace [n=apeace@c-24-61-22-9.hsd1.ma.comcast.net] has left #go-nuts [] 19:46 -!- aaront [n=aaront@unaffiliated/aaront] has quit [Read error: 110 (Connection timed out)] 19:46 < Nanoo> uriel, maybe add this http://github.com/ajray/go-play 19:46 < Nanoo> stuff about irc etc 19:47 -!- willdye [n=willdye@fern.dsndata.com] has left #go-nuts [] 19:47 -!- p0g0 [n=pogo@unaffiliated/p0g0] has quit [Connection timed out] 19:48 < uriel> Nanoo: yes, lots of cool stuff there, but I would prefer if it was each in its own repo, hard to organize otherwise (and when/if it moves, I have to update the links :/) 19:48 -!- mrdek11 [n=derek@c-67-186-234-32.hsd1.ut.comcast.net] has left #go-nuts [] 19:48 < Nanoo> that's true 19:48 < uriel> anyway, I'm going to work on a wiki so everyone can help keep things updated.. 19:48 < uriel> should make a fun go project too 19:48 < exch> irc seems to be a popular subject :p Yuo can add my go bot to it as well soon enough 19:48 < uriel> exch: link? 19:48 < exch> not yet public 19:48 < dga> selection bias, exch. popular among people in the irc channel. :) 19:49 < exch> hehe true 19:49 < uriel> dga: touche 19:50 -!- franksalim [n=frank@76.221.202.115] has quit ["Ex-Chat"] 19:50 -!- feamcor [n=feamcor@196.210.237.204] has joined #go-nuts 19:51 -!- feamcor [n=feamcor@196.210.237.204] has quit [Client Quit] 19:53 < uriel> anyone can think of a neat name for a 'planet' of Go blogs? 19:53 < uriel> (Planet Go is already taken by people that plays the game of go) 19:54 -!- afurlan [n=afurlan@scorpion.mps.com.br] has quit ["Leaving"] 19:54 -!- AlvaroGP [i=Alvaro@89.128.155.68] has joined #go-nuts 19:54 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has joined #go-nuts 19:55 < nbaum> http://en.wikipedia.org/wiki/Interplanetary_Transport_Network 19:55 < sladegen> goplane 19:55 < sladegen> goagora ;) 19:56 < sladegen> golangism 19:56 -!- flyguy [n=flyguy@66-169-174-29.dhcp.ftwo.tx.charter.com] has quit ["leaving"] 19:56 < dagle2> Go home? 19:56 < uriel> dga: romani? 19:56 < uriel> er dagle2 19:56 < sladegen> IT go home! 19:57 < dagle2> uriel: Didn't like it? XD 19:57 < sladegen> bloGOsphere ;) 19:58 < drhodes> Argonauts 19:58 -!- huhwayee [n=adam@c-2be2e055.1210-2-64736c10.cust.bredbandsbolaget.se] has joined #go-nuts 19:58 -!- trickie [n=trickie@86.93.227.181] has quit ["Computer has gone to sleep"] 19:58 < drhodes> straigt from greep mythology, in following the convention of planet names 19:59 < sladegen> planet go round and round 19:59 -!- aaront [n=aaront@mc-189-212.IPReg.mcmaster.ca] has joined #go-nuts 20:00 < uriel> drhodes: actually, IIRC there are some moons or something called after argonauts.. 20:00 < uriel> (wish I could remember) 20:00 < dga> eGO. 20:00 < dga> :) 20:00 < uriel> sladegen: the planet go round and round is a fun one :) 20:00 -!- Kashia [n=Kashia@port-92-200-47-208.dynamic.qsc.de] has quit [Read error: 113 (No route to host)] 20:01 < dga> merry-go-round, too, based on that idea. 20:01 -!- rrr_ [i=rrr@gateway/gpg-tor/key-0x9230E18F] has joined #go-nuts 20:01 -!- Nanooo [n=Nano@95-89-198-15-dynip.superkabel.de] has joined #go-nuts 20:01 < uriel> drhodes: although perhaps Argos might be a better name for the planet? 20:01 < s_mosher> uriel, wakusei go 20:01 < sladegen> or on the same note: planet go routine 20:02 -!- mAxishere [n=chatzill@116.72.211.88] has joined #go-nuts 20:02 < drhodes> Argos sounds like a much better name 20:02 < s_mosher> of course that should "go wakusei" and would come out "planet 5" 20:02 < dga> "go routine" would be a great name for the CPAN equivalent for go. :) 20:02 < uriel> http://uncyclopedia.wikia.com/wiki/Argos_(planet) 20:03 -!- dga [n=dga@CMU-309108.WV.CC.CMU.EDU] has quit ["leaving"] 20:03 < uriel> although Argos would be a good name for an OS written in go ;P 20:04 < sladegen> planet go to or not to go. 20:04 < s_mosher> "space channel go" (I miss the dreamcast) 20:04 < uriel> heh 20:04 < uriel> s_mosher: Planet 5 is a good one... 20:05 < s_mosher> I do like it actually 20:05 < uriel> specially given that there is already planet9: http://planet9.cat-v.org :)) 20:08 < uriel> ok, thanks for everyone that contributed funnier names, but will stick with Planet 5, that way we keep the other names free for more deserving go projects ;) 20:08 < s_mosher> I've been thinking go = 5 ever since the hello world with japanese text 20:09 < s_mosher> 'world' works for 'planet', too 20:09 -!- elmar [n=elmar@dslb-084-059-070-234.pools.arcor-ip.net] has joined #go-nuts 20:10 < uriel> world 5 then? 20:12 < s_mosher> sure, whatever you like best I think. I'm not too picky. 20:13 < sladegen> universe? heh, to presumtious. 20:14 -!- ring-zero [n=hotshot@117.199.136.54] has quit ["Leaving"] 20:14 < KirkMcDonald> Could be obvious and go with "Jupiter." 20:15 -!- aaront [n=aaront@unaffiliated/aaront] has quit ["And that's all he wrote..."] 20:16 -!- crooter [n=crooter@li65-15.members.linode.com] has left #go-nuts [] 20:16 -!- evilhackerdude [n=stephan@dslb-084-062-192-073.pools.arcor-ip.net] has joined #go-nuts 20:18 -!- aa [n=aa@r200-40-114-26.ae-static.anteldata.net.uy] has quit [Remote closed the connection] 20:18 -!- Killerkid [n=l1am9111@host81-129-160-210.range81-129.btcentralplus.com] has quit [Read error: 110 (Connection timed out)] 20:18 -!- cmarcelo [n=quassel@enlightenment/developer/cmarcelo] has quit [Remote closed the connection] 20:18 -!- Nanoo [n=Nano@95-89-198-15-dynip.superkabel.de] has quit [Read error: 110 (Connection timed out)] 20:19 -!- rog [n=rog@89.241.23.202] has quit [] 20:21 -!- flyfish [n=flyfish@pixout.appriss.com] has joined #go-nuts 20:21 -!- Killerkid [n=l1am9111@host86-168-206-175.range86-168.btcentralplus.com] has joined #go-nuts 20:21 -!- creack [n=creack@ip-67.net-80-236-112.lhaylesroses.rev.numericable.fr] has quit [Remote closed the connection] 20:22 -!- asmo [n=asmo@c-f6c5e055.1155-1-64736c11.cust.bredbandsbolaget.se] has quit [Remote closed the connection] 20:23 < jabb> no default parameters in go? 20:24 < dagle2> jabb: in switch/case? 20:24 < jabb> function parameters 20:25 < jabb> func f(a int, b int, c int = 10) { } 20:25 < dagle2> I understood that. And I think no. 20:26 < dagle2> That would allow you to call a functions f(4,2) and it would become f(4,2,10) 20:26 < dagle2> Think that is a bad. 20:27 < dagle2> Better to do func dosomething(a, b, c int) , dosometingdefault(a,b){ dosomething(a, b, 10); } 20:27 -!- sm_ [n=sm@cpe-76-173-194-242.socal.res.rr.com] has joined #go-nuts 20:27 < scandal> you can sort of fake it if you make your function accept a struct, because you don't need to specify values for all members. 20:28 < uriel> if you need default parameters, your function has too many parameters 20:28 < jabb> that seems ugly 20:28 < uriel> IMHO 20:28 < dagle2> scandal: Then they become 0? 20:28 -!- bquinn [n=bquinn@office.velleman.com] has joined #go-nuts 20:28 < scandal> dagle2: yes 20:29 < rullie> it'd be nice if go had optional param 20:29 < dagle2> jabb: You can do it as a oneliner... Not that ugly tbh. 20:29 -!- rovar [i=c7aca907@gateway/web/freenode/x-abkyxgrxrehbprya] has joined #go-nuts 20:30 < rovar> quick question, can one define functions inline in go? Is there an example? 20:30 < scandal> rovar: no 20:30 < scandal> well, wait, depends on what you mean by "inline" 20:31 < scandal> if you mean inline like c++, then no 20:31 < rovar> I can assign a function to a var, but I can't define a function in the parameter list of another function, correct? 20:31 < rovar> sorry.. not that kind of inline 20:31 < Gracenotes> optional parameters do require a bit of overhead 20:31 < scandal> rovar: yes, func(args..) ret { body } 20:32 < uriel> ok folks, first try: http://planet5.cat-v.org/ 20:32 < scandal> ie, Map(func(v interface{}) interface{}) { return v.(int)*2 }, vect.Iter()) 20:32 < uriel> and please start sending me links to any go-related blogs 20:32 < Gracenotes> uriel: perhaps also go posts from non-go blogs 20:32 < uriel> (still need to work on a logo that replaced Glenda with Gordon) 20:33 < uriel> Gracenotes: planets agregate whole blogs, it is hard to do that... 20:33 < uriel> we can add any feed that reasonably often includes Go related posts.. 20:33 < uriel> (or that of anyone involved with go itself) 20:33 < Gracenotes> eh. 20:33 -!- andrzejsliwa [n=andrzej_@host-81-190-167-141.gorzow.mm.pl] has joined #go-nuts 20:34 -!- engla [n=ulrik@wikipedia/Sverdrup] has quit [Read error: 145 (Connection timed out)] 20:36 -!- trickie [n=trickie@86.93.227.181] has joined #go-nuts 20:37 -!- napsy [n=luka@88.200.96.14] has joined #go-nuts 20:37 < napsy> Hello. Can I return multiple value from a function in go? 20:37 < napsy> *values 20:37 < uriel> napsy: yes 20:37 < napsy> return a, b doesn't work 20:38 -!- trickie [n=trickie@86.93.227.181] has quit [Client Quit] 20:38 -!- sm [n=sm@cpe-76-173-194-242.socal.res.rr.com] has quit [Read error: 110 (Connection timed out)] 20:38 < uriel> napsy: you have to include the multiple values in the function declaration 20:38 < melba> uriel, this page is huge 20:38 -!- trickie [n=trickie@86.93.227.181] has joined #go-nuts 20:38 < uriel> what page? 20:38 < melba> http://planet5.cat-v.org/ 20:38 < uriel> heh, it picked up old posts from russ and other people 20:39 <+iant> droid001: good point about GOMAXPROCS in gccgo, it doesn't mean anything in gccgo but I still need to arrange to define it to do nothing 20:45 < droid001> yes, I use it in 6g and then the program doesn't compile with gccgo ... 20:48 -!- brown` [n=user@72.14.228.129] has quit [Remote closed the connection] 20:48 -!- taaz [n=dlehn@pool-71-171-26-87.nwrknj.east.verizon.net] has left #go-nuts [] 20:49 < rovar> how can I convert a (type foo int) to int ? 20:50 <+iant> rovar: int(v) 20:50 < rovar> gotcha.. 20:52 -!- ryniek [n=RYNIEK@host-89-231-127-96.warszawa.mm.pl] has joined #go-nuts 20:52 -!- AlvaroGP [i=Alvaro@89.128.155.68] has quit [] 20:53 < ryniek> hi 20:53 -!- rog [n=rog@89.241.23.202] has joined #go-nuts 21:00 < dho> iant: why doesn't it mean anything in gccgo? 21:01 < dagle2> The number 10-20% slower is that just a number, because it's not that "optimized"? Or can't go be as fast as C because of the design? Not that really care that much about speed. 21:01 -!- itrekkie [n=itrekkie@ip72-200-108-156.tc.ph.cox.net] has quit [] 21:01 -!- sergio [n=sergio@unaffiliated/sergio] has quit [Remote closed the connection] 21:03 -!- Fish [n=Fish@78.238.225.114] has joined #go-nuts 21:03 -!- bquinn [n=bquinn@office.velleman.com] has quit [] 21:05 -!- FeyyazEsat [n=feyyazes@85.107.220.15] has joined #go-nuts 21:06 -!- FeyyazEsat [n=feyyazes@85.107.220.15] has left #go-nuts [] 21:06 < uriel> dagle2: any general performance numbers are going to be 'just numbers' 21:06 < uriel> dagle2: a garbage collector has some performance penalties, but also has some performance benefits 21:06 < uriel> in short, it is going to depend very much on your application 21:07 < dagle2> uriel: Yeah. Was thinking without the GC. 21:07 -!- mgdm [n=michael@pdpc/supporter/professional/mechanical-male] has left #go-nuts [] 21:07 < uriel> right now, from what I have seen, the main bottleneck is the libraries, where there is plenty of low hanging fruit for optimization 21:07 < uriel> a new much better gc is also planned, but at the moement I don't think that would make such a huge difference, but maybe iant knows better 21:07 <+iant> dho: it doesn't mean anything because at the moment gccgo puts every goroutine in its own pthread 21:08 < dagle2> Was more thinking about grouping functions with structs makes things go slower by design or something like that. 21:08 -!- flyfish [n=flyfish@pixout.appriss.com] has quit [] 21:08 <+iant> I don't think the new gc will affect performance overall too much, though it should avoid gc pauses 21:10 -!- flyfish [n=flyfish@pixout.appriss.com] has joined #go-nuts 21:10 -!- npe [n=npe@94-224-251-223.access.telenet.be] has joined #go-nuts 21:11 -!- david_ricardo [n=adam_smi@31.81-167-16.customer.lyse.net] has joined #go-nuts 21:11 -!- kmc [n=keegan@98.140.110.255] has joined #go-nuts 21:11 -!- brrant [n=John@65-102-193-77.hlrn.qwest.net] has joined #go-nuts 21:14 -!- bquinn [n=bquinn@office.velleman.com] has joined #go-nuts 21:14 -!- bquinn [n=bquinn@office.velleman.com] has quit [Client Quit] 21:17 < scandal> i was happy to see the builtin copy() function. 21:19 -!- asmo [n=asmo@c-f6c5e055.1155-1-64736c11.cust.bredbandsbolaget.se] has joined #go-nuts 21:21 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has quit [Read error: 110 (Connection timed out)] 21:22 < quag> uriel: that approach of doing exceptions in go by using goroutines is almost exactly how the Io language does it's exceptions. 21:23 < quag> Like go Io has coroutines and stacks that grow. 21:25 -!- erzr- [n=adam@70.16.73.168] has joined #go-nuts 21:25 -!- chachan [n=chachan@ccscliente156.ifxnetworks.net.ve] has quit ["KVIrc Insomnia 4.0.0, revision: , sources date: 20090520, built on: 2009/06/06 11:44:47 UTC http://www.kvirc.net/"] 21:26 -!- CIA-14 [n=CIA@208.69.182.149] has left #go-nuts [] 21:28 < napsy> *valuesHello. Why does this segfault: http://gopaste.org/pa55K 21:29 < rbohn> Your reader isn't connected to anything. 21:29 < Nanooo> why doesn't it have syntax highlighting? 21:29 < alexsuraci> Nanooo: because of "print()" 21:30 < alexsuraci> changing it to fmt.Print lets it parse correctly so it gets the hilighting 21:30 < napsy> how do I connect the reader? 21:31 -!- djanderson [n=dja@hltncable.pioneerbroadband.net] has joined #go-nuts 21:31 < napsy> http://gopaste.org/45D2A 21:31 < napsy> so how do I connect the reader? 21:31 < alexsuraci> napsy: you may want "var s []byte = make([]byte, 20);" 21:32 < alexsuraci> not sure if it's related to the segfault 21:34 -!- sockmonk [n=user@pixout.appriss.com] has quit [Connection timed out] 21:35 -!- ejb [n=ejb@unaffiliated/ejb] has joined #go-nuts 21:39 < rbohn> What do you want to read? os.Stdin.Read(s) if you want to read stdin. 21:39 < napsy> from keyboard 21:39 -!- andrzejsliwa [n=andrzej_@host-81-190-167-141.gorzow.mm.pl] has quit [] 21:40 < rbohn> Yeah, var r = os.Stdin; 21:41 < exch> uriel: http://github.com/jteeuwen/go-app-irc/ 21:42 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has quit [Read error: 145 (Connection timed out)] 21:43 -!- Adys [n=Adys@unaffiliated/adys] has quit [Read error: 60 (Operation timed out)] 21:43 < napsy> rbohn: thanks 21:43 < rbohn> :) no problem! 21:45 < uriel> exch: awesome 21:46 < exch> that'll be a work in progress, but the irc bit is done. 21:46 < exch> now I need to get my lua lib done so I can add plugins 21:46 -!- foxspurlock [n=Brian@cpe-74-66-16-82.nyc.res.rr.com] has left #go-nuts [] 21:46 < uriel> iant: when you have a sec, can you add this post-commit hook to the go google project? http://cia.vc/deliver/simplejson/ 21:46 < uriel> that will give us irc-commit notifications 21:47 < uriel> exch: hehehe 21:47 < dho> uriel: does googlecode support that? 21:48 < dho> (CIA in here = even more chatty) 21:48 < dho> you can get email commits... 21:48 < uriel> yes 21:48 < uriel> exch: do you really have to depend on pcre :((( 21:51 < exch> haha for now, yes 21:51 -!- Amaranth [n=travis@ubuntu/member/Amaranth] has quit ["Ex-Chat"] 21:52 -!- jhendricks [n=jhendric@adsl-76-204-8-233.dsl.klmzmi.sbcglobal.net] has quit ["Leaving"] 21:53 < uriel> exch: also, why bother supporting multiple networks, or even multiple channels? just run one instance per channel.. it is the unix way 21:53 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has joined #go-nuts 21:54 -!- Rob_Russell [n=chatzill@206-248-157-156.dsl.teksavvy.com] has joined #go-nuts 21:54 < exch> I like to think big :) 21:55 < exch> it can use a lot of work. I'll give you that. IRC bots are just my version of hello world. I measure a language's strengths by how easy it is to write one. If it can come close to the complexity and awesome of my C# bot, i'll be happy :p 21:55 < uriel> be careful not to confuse 'thinking big' with making your problems harder than they need to be 21:56 < exch> no problem with multiple networks really. Besides. My lpugin framework handles multiple sources (networks and channels) just fine. 21:56 < kfx> does it do ssl 21:57 < exch> the Go bot doesnt 21:57 < exch> so far only my C# one does 21:57 < exch> Don't think Go comes with SSL stream support yet 21:57 < exch> Either that or I havn't fuond it yet 21:57 -!- aaront [n=aaront@d24-141-25-171.home.cgocable.net] has joined #go-nuts 21:59 < uriel> I have seen some commits relating to ssl 21:59 < scandal> exch: have you looked at crypto/tls ? 21:59 < uriel> I don't think it is finished, but there was an initial tls already 21:59 < exch> scandal: not yet 21:59 < exch> uriel: nice 21:59 < uriel> heh, scandal is sharper than me :) 21:59 < exch> would be good to see ssl supported 22:00 < scandal> uriel: I guess I had the benefit of a shorter message ;) 22:00 < Fish> x509 support is quite complex 22:01 < uriel> indeed 22:02 * uriel still fears that Go might fall into the utah2000 trap... but I hope rob has a plan for that :) 22:02 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has quit [Read error: 145 (Connection timed out)] 22:03 -!- evilhackerdude [n=stephan@dslb-084-062-192-073.pools.arcor-ip.net] has quit [Read error: 113 (No route to host)] 22:04 < scandal> what's the over/under on the first "go is dead" post to slashdot/reddit? :) 22:05 < rbohn> Rob is bribing olympic officials? 22:06 < KragenSitaker> utah2000? 22:06 < uriel> rob won an olymic silver medal! 22:06 -!- engla [n=ulrik@90-229-231-23-no153.tbcn.telia.com] has joined #go-nuts 22:06 < atsampson> KragenSitaker: his paper about systems research being irrelevant... 22:06 < directrixx> uriel: Archery right? 22:06 < uriel> KragenSitaker: http://doc.cat-v.org/bell_labs/utah2000/ 22:07 < uriel> directrixx: yes 22:07 < atsampson> I'd sort of assumed he'd changed his mind in the last 9 years, which would be a relief to those of us doing systems research ;) 22:07 < uriel> i doubt it 22:08 < uriel> the core of the argument is factual, and things have only got worse 22:08 < uriel> the number and complexity of externally imposed standards you have to conform to has dramatically increased 22:09 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has joined #go-nuts 22:09 -!- eno [n=eno@nslu2-linux/eno] has quit [Read error: 60 (Operation timed out)] 22:10 < Fish> in a fairly recent interview, he said he hasn't changed his opinion 22:10 < uriel> Fish: what interview was that? 22:11 < uriel> i did see him in a panel discussion about research and he was scathing as ever 22:11 < Fish> his interview on slashdot 22:11 < uriel> heh, that is not too recent :) but yea, more recent than utah2000 22:11 < Fish> not very recent, but more than his presentation :) 22:12 -!- rovar [i=c7aca907@gateway/web/freenode/x-abkyxgrxrehbprya] has quit ["Page closed"] 22:13 -!- eno [n=eno@nslu2-linux/eno] has joined #go-nuts 22:14 < Fish> even firefox doesn't fully support x509 22:15 < uriel> even apache doesn't fully support http... that gives you an indication of how deep down the utah2k rabbit hole we have gone 22:16 < Fish> yes :) 22:17 -!- drusepth [n=drusepth@adsl-76-194-200-106.dsl.spfdmo.sbcglobal.net] has joined #go-nuts 22:17 -!- x-ip [n=sakura@unaffiliated/x-ip] has quit [Read error: 110 (Connection timed out)] 22:18 -!- drusepth` [n=drusepth@adsl-76-194-200-106.dsl.spfdmo.sbcglobal.net] has joined #go-nuts 22:20 < clip9> Hold on to your hats: http://twitter.com/cern 22:22 < exch> pew pew 22:23 < exch> shooting an expensive lazer around a large bend seems to make for good doomsday story telling 22:24 < vsmatck> It's not a laser. 22:24 -!- q[mrw] [n=russd@willers.employees.org] has joined #go-nuts 22:25 < exch> no really? ;p 22:25 -!- drusepth [n=drusepth@adsl-76-194-200-106.dsl.spfdmo.sbcglobal.net] has quit [Read error: 60 (Operation timed out)] 22:25 < vsmatck> How does your joke make sense? I don't get it. 22:25 < exch> it's not a joke. It's sarcasm. 22:29 < yiyus> nice, I just finished my first go pkg: http://hg.4l77.com/go/brainfuck/ 22:29 -!- me___ [n=venkates@c-68-55-179-48.hsd1.md.comcast.net] has joined #go-nuts 22:29 < exch> heh nice. 22:30 < uriel> yiyus: hey! congrats! 22:30 < yiyus> uriel: it is a toy 22:30 < yiyus> but it was funny! :) 22:30 -!- nutate [n=rseymour@cacsag4.usc.edu] has joined #go-nuts 22:31 < uriel> having fun is the whole point :) 22:31 < djm> dho: how are you getting on with go + fbsd? 22:31 < andguent> yiyus: did you notice turing.go in the tests directory? 22:31 < me___> dho: hi! how did your talk go? 22:31 -!- ajhager [n=ajhager@c-69-136-3-186.hsd1.in.comcast.net] has quit ["A way a lone a last a loved a long the..."] 22:31 < uriel> djm: AFAIK it is supposed to work all fine now 22:32 < uriel> (I think dho is still polishing some edges, but most stuff should work) 22:32 -!- ikke [n=1kk3@unaffiliated/ikkebr] has joined #go-nuts 22:32 < yiyus> andguent: yes, as a matter of fact i took that as the base and added a couple a function, the makefile and a test, nothing else 22:32 -!- diabolix [n=jsoyke@206.210.81.55] has quit ["Leaving"] 22:33 < andguent> yiyus: it looked familiar. so i asked ;) 22:33 < yiyus> but the plan is to implement a vm package with ngaro virtual machines which i can connect through chanels and use as a multicore forth chip 22:33 < yiyus> i have the ngaro port almost finished, but i have to decide how to arrange io ports 22:34 < uriel> hah! fun, fun, fun 22:34 < yiyus> and i think it is a very good example of the use of chanels 22:34 < yiyus> because it maps to physical concepts in cpus, which everybody knows 22:35 < djm> uriel: thanks :) I see GOOS can be freebsd now 22:36 -!- ths [n=ths@213.144.157.106] has joined #go-nuts 22:37 -!- ths [n=ths@213.144.157.106] has left #go-nuts [] 22:38 -!- Nanooo [n=Nano@95-89-198-15-dynip.superkabel.de] has quit [Client Quit] 22:38 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has quit [Read error: 60 (Operation timed out)] 22:41 -!- Fish [n=Fish@78.238.225.114] has quit [Remote closed the connection] 22:41 -!- ths [n=ths@213.144.157.106] has joined #go-nuts 22:44 -!- ryniek [n=RYNIEK@host-89-231-127-96.warszawa.mm.pl] has quit ["X-Chat det :"<"] 22:44 -!- ths [n=ths@213.144.157.106] has left #go-nuts ["bye"] 22:46 -!- flyfish [n=flyfish@pixout.appriss.com] has quit [] 22:47 -!- ericmoritz\0 [n=ericmori@c-76-123-248-214.hsd1.tn.comcast.net] has joined #go-nuts 22:48 -!- skyfive [n=skyfive@173-11-110-86-SFBA.hfc.comcastbusiness.net] has quit [Read error: 104 (Connection reset by peer)] 22:49 -!- skyfive [n=skyfive@173-11-110-86-SFBA.hfc.comcastbusiness.net] has joined #go-nuts 22:52 -!- skammer [n=skammer@79.139.145.242] has joined #go-nuts 22:56 -!- lolsuper_ [n=super_@unaffiliated/lolsuper-/x-9881387] has quit [Read error: 54 (Connection reset by peer)] 22:56 -!- lolsuper_ [n=super_@pool-173-65-48-13.tampfl.fios.verizon.net] has joined #go-nuts 23:00 -!- skammer [n=skammer@79.139.145.242] has quit [Client Quit] 23:01 -!- napsy [n=luka@88.200.96.14] has quit ["Lost terminal"] 23:01 -!- Anders__ [n=Anders@c83-253-2-206.bredband.comhem.se] has quit ["Lämnar"] 23:01 -!- jdp [n=justin@ool-435238c0.dyn.optonline.net] has quit [Remote closed the connection] 23:01 -!- pathorn1 [n=pathorn@136.152.170.253] has joined #go-nuts 23:02 -!- ide [n=chatzill@136.152.170.253] has joined #go-nuts 23:02 -!- skammer [n=skammer@79.139.145.242] has joined #go-nuts 23:06 < scandal> hmm, anyone looked at the exception push today? 23:07 -!- s_mosher [n=smosher@bas1-ottawa10-1279302916.dsl.bell.ca] has quit [Remote closed the connection] 23:07 < me___> 'the exception push'? 23:07 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has joined #go-nuts 23:07 -!- codehai [n=codehai@xdsl-78-34-36-14.netcologne.de] has quit [Client Quit] 23:08 < scandal> new package exp/exception 23:08 -!- s_mosher [n=smosher@bas1-ottawa10-1279302916.dsl.bell.ca] has joined #go-nuts 23:09 < s_mosher> scandal, I looked at it but not too closely 23:11 -!- aa [n=aa@r190-135-189-132.dialup.adsl.anteldata.net.uy] has joined #go-nuts 23:12 -!- ikke [n=1kk3@unaffiliated/ikkebr] has quit [] 23:13 < delsvr> looks like a hack to appease exception advocates 23:14 < ide> I'm looking through the go spec.. does go support closures? 23:14 <+iant> ide: yes 23:16 < ericmoritz\0> am I overlooking it, but is there a way to locate a command that's in $PATH? I'm trying to do exec.Run() on a command that's in my path but exec.Run() expects an absolute path 23:17 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has quit [Read error: 145 (Connection timed out)] 23:17 < directrixx> ericmoritz\0: try "locate <command>" in the shell 23:18 < s_mosher> ericmoritz\0, which <command> will find the one in your path 23:18 < ericmoritz\0> directrixx, yeah I know, I was hoping to do it in go itself 23:18 -!- robot12_ [n=robot12@78.138.154.66] has joined #go-nuts 23:19 -!- trvbldn [n=trvbldn@c-98-218-95-154.hsd1.dc.comcast.net] has joined #go-nuts 23:20 -!- robot12 [n=robot12@inferno.kgts.ru] has quit [Read error: 104 (Connection reset by peer)] 23:20 -!- drusepth` [n=drusepth@adsl-76-194-200-106.dsl.spfdmo.sbcglobal.net] has quit [Read error: 145 (Connection timed out)] 23:21 < uriel> ericmoritz\0: well, from go you iterate over the path elements, and then test if th efile is in any of the paths 23:21 < ericmoritz\0> s_mosher, I guess I'll just port the which command to go, it's just a bash script on my system 23:21 < uriel> just a simple loop 23:21 < ericmoritz\0> yup 23:21 -!- ptrb [i=pb@cpe-174-106-116-076.nc.res.rr.com] has quit [Read error: 110 (Connection timed out)] 23:22 < s_mosher> yeah, it would not be good to implicitly search $PATH in exec() type library calls 23:23 -!- TheDracle [n=jthomas@72-254-127-105.hq.ibahn.com] has joined #go-nuts 23:24 -!- brrant [n=John@65-102-193-77.hlrn.qwest.net] has quit [Read error: 60 (Operation timed out)] 23:25 -!- delsvr [n=delsvr@cpe-67-242-41-219.twcny.res.rr.com] has quit [] 23:25 -!- loVolt [n=richardm@mail.norco.com] has quit ["peace"] 23:26 -!- rbohn [n=rbohn@192.206.100.4] has quit ["ChatZilla 0.9.85 [Firefox 3.0.15/2009101601]"] 23:28 -!- clearscreen [n=clearscr@e248070.upc-e.chello.nl] has quit ["Leaving."] 23:28 -!- clearscreen [n=clearscr@e248070.upc-e.chello.nl] has joined #go-nuts 23:30 -!- kmc [n=keegan@98.140.110.255] has quit ["Leaving"] 23:30 -!- skammer [n=skammer@79.139.145.242] has quit [Remote closed the connection] 23:30 -!- trickie [n=trickie@86.93.227.181] has quit ["Computer has gone to sleep"] 23:32 -!- zohaib1020 [n=zohaib10@z65-50-110-10.ips.direcpath.com] has joined #go-nuts 23:33 -!- npe [n=npe@94-224-251-223.access.telenet.be] has quit [] 23:36 -!- hd_ [n=hd_@253.176.233.220.static.exetel.com.au] has quit ["Nettalk6 - www.ntalk.de"] 23:39 -!- brrant [n=John@168-103-78-133.hlrn.qwest.net] has joined #go-nuts 23:41 -!- Amaranth [n=travis@ubuntu/member/Amaranth] has joined #go-nuts 23:42 -!- trickie [n=trickie@86.93.227.181] has joined #go-nuts 23:43 -!- asmo [n=asmo@c-f6c5e055.1155-1-64736c11.cust.bredbandsbolaget.se] has quit [Remote closed the connection] 23:44 -!- trickie [n=trickie@86.93.227.181] has quit [Client Quit] 23:45 -!- arjanb [i=borganis@borganism.student.utwente.nl] has quit ["."] 23:46 -!- waltermundt [n=waltermu@twiki/developer/EtherMage] has quit ["Leaving."] 23:46 -!- trickie [n=trickie@86.93.227.181] has joined #go-nuts 23:47 -!- Venom_X_ [n=pjacobs@cpe-67-9-131-167.austin.res.rr.com] has joined #go-nuts 23:47 -!- trickie [n=trickie@86.93.227.181] has quit [Client Quit] 23:49 < scandal> hrm, is there a reason that len() returns an int rather than uint? 23:49 < Smergo> So, we got exceptions now? ;) 23:49 <+iant> scandal: the language has decreed that the type int is large enough to hold the size of any object 23:49 < sladegen> scandal: perhaps in case of error it needs and option to use -1 ;) 23:50 <+iant> mostly for simplicity 23:51 -!- sliceofpi [n=Adium@c-98-201-183-147.hsd1.tx.comcast.net] has quit ["Leaving."] 23:51 -!- x-ip [n=sakura@unaffiliated/x-ip] has joined #go-nuts 23:51 < scandal> just make it a pain if i want to use a length argument and specify uint as the type to avoid negative values, the user has to do f(uint(len(...))) 23:52 <+iant> scandal: yeah, there is no perfect approach 23:52 < scandal> what's better, making the user to the conversion, or panic() inside the function when negative? 23:52 -!- Venom_X_ [n=pjacobs@cpe-67-9-131-167.austin.res.rr.com] has quit [] 23:52 < scandal> s/to/do/ 23:53 <+iant> I don't think there is a single right answer to that; my leaning would be toward panic() inside the function 23:53 -!- ProperNoun [i=ProperNo@adsl-243-220-206.cae.bellsouth.net] has quit [] 23:53 < eno> did a canadian cross, can cross compile 5g/5l that natively runs on arm/ppc 23:53 < s_mosher> scandal, does your function have any other error conditions? if so, accept the int. if not, I would consider requiring uint to enforce reliability 23:54 < eno> way easier than canadian cross gcc 23:54 < me___> eno: neat 23:55 -!- hector [n=chatzill@client-86-0-126-58.nrth.adsl.virginmedia.com] has quit [Read error: 113 (No route to host)] 23:55 < kfx> Smergo: I hope not 23:55 < eno> if the target happen to be arm little endian, we have "native" compilers 23:55 < s_mosher> scandal, that's just my take on it anyway. the trouble of needing to convert in advance is worth it if it means the call can't fail. 23:55 <+iant> eno: nice 23:55 -!- triplez [n=triplez@cm52.sigma225.maxonline.com.sg] has quit [] 23:56 < scandal> s_mosher: yeah. in this case there is no other error. i think its better to detect the error at compile time, even if it is a nuisance. thanks. 23:57 < huhwayee> can len() even return a negative value? 23:57 < KirkMcDonald> No. 23:57 < KirkMcDonald> Well... 23:57 -!- skyfive [n=skyfive@173-11-110-86-SFBA.hfc.comcastbusiness.net] has quit [Read error: 54 (Connection reset by peer)] 23:57 < KirkMcDonald> I suppose a class could define a __len__ method which does evil things. 23:58 < KirkMcDonald> Wait. 23:58 < KirkMcDonald> This isn't #python. 23:58 < sanooj> newbie question: does go help programmers avoid arithmetic overflows? 23:58 < KirkMcDonald> I have too many tabs open. 23:58 <+iant> The builtin function len can not return a negative value unless something has gone badly wrong 23:58 -!- skyfive [n=skyfive@173-11-110-86-SFBA.hfc.comcastbusiness.net] has joined #go-nuts 23:58 * sladegen lols. 23:58 <+iant> sanooj: http://golang.org/doc/go_spec.html#Integer_overflow 23:59 < sanooj> ty 23:59 < s_mosher> it would be nice if len could just return the appropriate type for the context... but that's probably ugly in the implementation 23:59 -!- drusepth [n=drusepth@174.32.154.79] has joined #go-nuts --- Log closed Sat Nov 21 00:00:15 2009