--- Log opened Tue Apr 27 00:00:30 2010 --- Day changed Tue Apr 27 2010 00:00 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined #go-nuts 00:00 -!- millertimek1a2m3 [~adam@rrcs-67-79-54-130.sw.biz.rr.com] has joined #go-nuts 00:09 -!- oblique- [~oblique@212.50.114.126] has joined #go-nuts 00:09 -!- Venom_X [~pjacobs@71.20.102.220] has quit [Quit: Venom_X] 00:11 -!- Wiz126 [Wiz126@72.20.219.70] has joined #go-nuts 00:13 -!- oblique- [~oblique@212.50.114.126] has quit [Client Quit] 00:13 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has quit [Read error: Connection reset by peer] 00:14 -!- [Pete_27] [~noname@115-64-1-61.static.tpgi.com.au] has quit [Read error: Operation timed out] 00:15 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has joined #go-nuts 00:15 -!- [Pete_27] [~noname@115-64-1-61.static.tpgi.com.au] has joined #go-nuts 00:17 -!- Nexoro [~nexo@c-71-192-75-183.hsd1.ma.comcast.net] has quit [Quit: Leaving.] 00:26 -!- ryan_baker [~ryan_bake@128-193-249-134.resnet.oregonstate.edu] has quit [Quit: ryan_baker] 00:27 -!- nsheretic [~Nick@PC42-047.dordt.edu] has joined #go-nuts 00:28 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has quit [Ping timeout: 264 seconds] 00:29 < nsheretic> can anyone explain the difference between new() and make() ? If I understand correctly new() merely returns a pointer to allocated but not instantiated memory? 00:33 < Ginto8> nsheretic: new is used for normal types (builtin like int,float or user-defined), while make is really just for maps and channels 00:33 < Ginto8> maps/channels uninitialized with make will be nil by default 00:33 < plexdev> http://is.gd/bJ7LI by [Andrew Gerrand] in go/doc/ -- doc/root.html: remove key from jsapi src 00:33 < nsheretic> thanks 00:36 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has joined #go-nuts 00:38 -!- carllerche [~carllerch@enginey-9.border1.sfo002.pnap.net] has quit [Quit: carllerche] 00:49 < kmeyer> I wish maps were initialized to the empty map by default :S 00:49 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has quit [Read error: Connection reset by peer] 00:57 < smw> kmeyer: so do I 00:58 < Ginto8> that would be useful 00:58 < kmeyer> it's one of those things that still feels "stutter"-ey to me 01:05 -!- rv2733 [~rv2733@c-98-242-168-49.hsd1.fl.comcast.net] has quit [Quit: Leaving] 01:06 -!- carllerche [~carllerch@204.16.157.9] has joined #go-nuts 01:12 -!- micrypt [~micrypt@41-184-21-79.rv.ipnxtelecoms.com] has quit [Ping timeout: 240 seconds] 01:13 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts 01:14 -!- micrypt [~micrypt@41-184-21-79.rv.ipnxtelecoms.com] has joined #go-nuts 01:20 -!- warthurton [~warthurto@pdpc/supporter/active/warthurton] has quit [Read error: Connection reset by peer] 01:23 -!- warthurton [~warthurto@pdpc/supporter/active/warthurton] has joined #go-nuts 01:45 -!- DerHorst_ [~Horst@e176104062.adsl.alicedsl.de] has quit [Remote host closed the connection] 01:46 -!- nsheretic [~Nick@PC42-047.dordt.edu] has left #go-nuts [] 01:53 -!- itrekkie [~itrekkie@ip68-228-245-244.ph.ph.cox.net] has joined #go-nuts 01:54 -!- avansc|mac [~Adium@adsl-065-005-195-064.sip.rdu.bellsouth.net] has left #go-nuts [] 01:55 -!- itrekkie [~itrekkie@ip68-228-245-244.ph.ph.cox.net] has quit [Client Quit] 01:59 -!- nighty__ [~nighty@210.188.173.245] has joined #go-nuts 02:08 -!- carllerche [~carllerch@204.16.157.9] has quit [Quit: carllerche] 02:10 < defectiv> does this make sense? 02:10 < defectiv> oops. nm. 02:10 -!- tor5 [~tor@c-627471d5.04-50-6c756e10.cust.bredbandsbolaget.se] has quit [Ping timeout: 258 seconds] 02:17 < allengeorge> does the statement "var my_array int[10]" create a new array? Seems like "yes" 02:18 < kmeyer> yep 02:19 < allengeorge> Great. So if I had a struct, like "type T struct {int a, b}" 02:20 < allengeorge> And "var myStruct T" 02:20 < kmeyer> you mean, "... {a, b int}" 02:20 < kmeyer> but go on :) 02:20 < allengeorge> Right :) 02:20 < allengeorge> Sorry - I code in C++ all day 02:21 < kmeyer> No worries, I trip on that frequently as well 02:21 < allengeorge> Does "var myStruct T" also create an empty struct? 02:21 < kmeyer> A struct with all values set to their "zero value" 02:22 < kmeyer> This stuff is all explained in the "go tutorial" and "effective go" documents in a lot of depth with great examples -- I'd really suggest reading that 02:22 < allengeorge> Ok. So basically any var statement without an initializer (except maps and channels) will result in a type that's initialized to 0 02:22 < kmeyer> but in this case, you get a struct value, with the members 'a' and 'b' as 0 02:22 < allengeorge> I mean to their "zero value" 02:22 < kmeyer> Right. 02:22 < kmeyer> right, right 02:23 < allengeorge> Ok. The reason I ask is that I rarely see a var statement without an initializer 02:23 < allengeorge> So I wondered if I was missing something 02:23 < kmeyer> by initializer you mean some sort of constant value? 02:23 < kmeyer> or a function or something? 02:23 < kmeyer> er, s/constant/literal/ 02:24 < allengeorge> Yes. A rvalue (i.e. something to the right of =) 02:24 < kmeyer> mhm 02:24 < kmeyer> (I'm familiar with C terminology, mostly) 02:25 < allengeorge> [nods] 02:25 < allengeorge> I was reading through the tutorial, but it seemed like every variable usually had a make/new/literal initializer 02:26 < allengeorge> I think that's because usually the short form is used, i.e. "<var_name> := ...." 02:26 < allengeorge> Which requires an initializer 02:27 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit: This computer has gone to sleep] 02:30 < kmeyer> ah, yep 02:30 < sladegen> no, it doesn't require type declaration... it is initialization... 02:31 < allengeorge> I'm confused - what doesn't require type declaration? 02:31 < sladegen> perhaps you mean you don't seem much unitialized declarations using var... 02:32 < sladegen> "<var_name> := ...." 02:32 < allengeorge> sladegen: that's correct (re: I don't see much uninitialized decla....) 02:32 < sladegen> you don't have to type var or its type when you use := 02:32 < allengeorge> Yes, that I realize 02:32 < sladegen> var keyword... 02:33 < allengeorge> For example, in Java having int myarray[] and using it directly is a bad idea 02:34 < kmeyer> Why? 02:34 < allengeorge> You _have_ to use new 02:34 < kmeyer> Oh, right 02:34 < allengeorge> int myarray[] = new int[10] 02:34 < kmeyer> right, I forget java doesn't have non-pointer objects 02:34 < allengeorge> So I just wanted to get things string wrt. Go 02:35 < allengeorge> kmeyer: yeah 02:35 < allengeorge> string/straight 02:36 < allengeorge> Great, thanks kmeyer, sladegen; appreciate the help! 02:36 < sladegen> well if you have some value for the variable you don't need explicit declaration of type and when you don't have value you need to declare type... /me falls down breathless. 02:37 < allengeorge> sladegen: [nods] 02:37 < sladegen> ... ande when you have type you can set "default" value... 02:37 < allengeorge> which is what's most-often done 02:38 < sladegen> etc... etc... 02:38 < allengeorge> as opposed to letting it being set to the "zero value" 02:38 < kmeyer> allengeorge: glad to help out 02:39 < kmeyer> someone asking intelligent questions is very much appreciated! 02:39 < sladegen> well, by "default" value i meant "zero value". 02:39 < sladegen> it's way better than undefined or random value. 02:40 < allengeorge> Wait, what? 02:40 < allengeorge> Why would it be random? 02:41 < sladegen> because you are reusing memory which stored something there before... 02:43 < allengeorge> [puzzled] My understanding was that in Go variables are initialized to their "zero value" 02:44 < sladegen> and is "" the same as 0... for the most basic type of "zero values". 02:44 -!- bmizerany [~bmizerany@dsl081-064-072.sfo1.dsl.speakeasy.net] has quit [Remote host closed the connection] 02:44 < allengeorge> I'm not sure what you mean. An empty string is the zero value for a string 02:45 < allengeorge> nil would be the zero value for a pointer 02:45 < sladegen> anyway... i'm not exavtly expertly in those matters. better read offcial docs lest i give you wrong impressions. 02:45 < allengeorge> and 0 would be the zero value for int, float, etc. 02:46 < allengeorge> Will do. 02:46 < sladegen> yes, go has an idea of "zero values", saying random i was reffering to C world. 02:46 -!- TR2N [email@89-180-143-148.net.novis.pt] has quit [Ping timeout: 258 seconds] 02:47 < kmeyer> allengeorge: I think sladegen is trying to say Go is better than C in this regard 02:47 < kmeyer> Ah, I guess I fail at catching up on backlog before replying :P 02:48 < allengeorge> Oh - I agree with him then. Yes, Go _is_ friendlier than C in this regard :) 02:53 -!- nettok [~netto@200.119.159.182] has joined #go-nuts 02:54 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts 03:01 -!- aho [~nya@f052219139.adsl.alicedsl.de] has quit [Quit: EXEC_over.METHOD_SUBLIMATION] 03:03 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Ping timeout: 268 seconds] 03:05 -!- L29Ah [~l29ah@ns2.openhardware.ru] has left #go-nuts [] 03:07 -!- manveru_ [kailan@66.252.28.2] has quit [Ping timeout: 265 seconds] 03:18 -!- gisikw|zzz [~gisikw@137.28.246.34] has joined #go-nuts 03:20 -!- gisikw|zzz [~gisikw@137.28.246.34] has left #go-nuts [] 03:26 -!- carllerche [~carllerch@208.87.61.146] has joined #go-nuts 03:26 -!- carllerche [~carllerch@208.87.61.146] has quit [Client Quit] 03:33 -!- Wiz126 [Wiz126@72.20.219.70] has quit [Ping timeout: 264 seconds] 03:34 -!- nettok [~netto@200.119.159.182] has quit [Quit: Ex-Chat] 03:36 -!- Wiz126 [Wiz126@72.20.219.70] has joined #go-nuts 03:48 -!- twolfe18 [~twolfe18@c-71-61-180-11.hsd1.pa.comcast.net] has joined #go-nuts 03:52 -!- twolfe18 [~twolfe18@c-71-61-180-11.hsd1.pa.comcast.net] has quit [Client Quit] 03:53 < cbeck> A question about stack traces: Is the goroutine trace at the top the one in which the error occurred? 04:03 -!- tvw [~tv@e182074003.adsl.alicedsl.de] has joined #go-nuts 04:07 -!- jackman [~jackman@c-24-21-216-140.hsd1.or.comcast.net] has quit [Quit: leaving] 04:08 -!- warthurton [~warthurto@pdpc/supporter/active/warthurton] has quit [Quit: warthurton] 04:09 -!- jackman [~jackman@c-24-21-216-140.hsd1.or.comcast.net] has joined #go-nuts 04:09 -!- outrageousness [~andrewz@c-71-229-148-51.hsd1.co.comcast.net] has quit [Ping timeout: 252 seconds] 04:12 -!- alehorst [~alehorst@187.59.22.30] has quit [Ping timeout: 248 seconds] 04:21 -!- bmizerany [~bmizerany@c-24-6-37-113.hsd1.ca.comcast.net] has joined #go-nuts 04:22 -!- DrHennessy [~alex@2002:180a:dda5:1234:223:6cff:fe7f:7ef2] has joined #go-nuts 04:26 -!- alehorst [~alehorst@201.47.10.196.dynamic.adsl.gvt.net.br] has joined #go-nuts 04:29 -!- DrHennessy [~alex@2002:180a:dda5:1234:223:6cff:fe7f:7ef2] has quit [Quit: DrHennessy] 04:34 -!- DrHennessy [~alex@2002:180a:dda5:1234:223:6cff:fe7f:7ef2] has joined #go-nuts 04:35 -!- DrHennessy [~alex@2002:180a:dda5:1234:223:6cff:fe7f:7ef2] has quit [Client Quit] 04:36 -!- wayneeseguin [~wayneeseg@rrcs-72-45-208-165.nys.biz.rr.com] has quit [Ping timeout: 248 seconds] 04:38 -!- wayneeseguin [~wayneeseg@rrcs-72-45-208-165.nys.biz.rr.com] has joined #go-nuts 04:43 < jesusaurus> do i need to do something special for complex numbers? 04:44 < jesusaurus> i keep getting the error: expected ';', found 'IDENT' i 04:49 < cbeck> jesusaurus: http://golang.org/doc/go_spec.html#Complex_numbers 04:54 -!- outrageousness [~andrewz@c-71-229-148-51.hsd1.co.comcast.net] has joined #go-nuts 04:58 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Ping timeout: 260 seconds] 04:59 -!- kssreeram [~kssreeram@122.174.67.162] has quit [Ping timeout: 265 seconds] 04:59 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts 05:02 -!- scm [justme@c222097.adsl.hansenet.de] has quit [Read error: Operation timed out] 05:04 -!- scm [justme@c210224.adsl.hansenet.de] has joined #go-nuts 05:08 -!- kota1111 [~kota1111@gw2.kbmj.jp] has joined #go-nuts 05:10 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Ping timeout: 252 seconds] 05:11 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts 05:14 -!- b00m_chef [~watr@d64-180-45-230.bchsia.telus.net] has quit [Ping timeout: 264 seconds] 05:15 -!- itrekkie [~itrekkie@ip68-228-245-244.ph.ph.cox.net] has joined #go-nuts 05:16 -!- itrekkie [~itrekkie@ip68-228-245-244.ph.ph.cox.net] has quit [Client Quit] 05:22 < plexdev> http://is.gd/bJmeT by [Russ Cox] in 2 subdirs of go/src/pkg/ -- net: introduce net.Error interface 05:22 < plexdev> http://is.gd/bJmeZ by [Russ Cox] in go/src/pkg/crypto/tls/ -- crypto/tls: simpler implementation of record layer 05:24 -!- Agon [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de] has joined #go-nuts 05:24 -!- kssreeram [~kssreeram@122.165.6.245] has joined #go-nuts 05:29 -!- outrageousness [~andrewz@c-71-229-148-51.hsd1.co.comcast.net] has quit [Ping timeout: 252 seconds] 05:34 < jesusaurus> now im getting undefined reference to complex 05:35 < jesusaurus> is there package i need to import for complex numbers to work? 05:38 < plexdev> http://is.gd/bJmYo by [Russ Cox] in 4 subdirs of go/ -- godoc: add codewalk support 05:38 < plexdev> http://is.gd/bJmYt by [Russ Cox] in 2 subdirs of go/ -- gc: more specific error for statements at top level 05:42 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts 05:50 < jessta> jesusaurus: nope, they are built-in 05:51 < jessta> pastebin your code 05:51 < jessta> also, what version of the compiler are you using? 05:52 -!- KillerX [~anant@145-116-234-40.uilenstede.casema.nl] has joined #go-nuts 05:53 -!- millertimek1a2m3 [~adam@rrcs-67-79-54-130.sw.biz.rr.com] has quit [Ping timeout: 245 seconds] 05:53 -!- c9s [~c9s@59-126-64-204.HINET-IP.hinet.net] has quit [Ping timeout: 258 seconds] 05:55 < plexdev> http://is.gd/bJnI1 by [Charles L. Dorian] in go/src/pkg/math/ -- math: more special cases for signed zero 05:55 < plexdev> http://is.gd/bJnI5 by [Kyle Consalus] in go/test/bench/ -- Added fannkuch-parallel.go 05:55 -!- tvw [~tv@e182074003.adsl.alicedsl.de] has quit [Read error: Connection reset by peer] 05:55 < plexdev> http://is.gd/bJnIh by [Alex Brainman] in go/ -- rename cgo2c to goc2c in ignored list 05:55 < plexdev> http://is.gd/bJnIt by [Evan Shaw] in go/src/pkg/os/ -- os: Fix build for MinGW 05:57 -!- warthurton [~warthurto@pdpc/supporter/active/warthurton] has joined #go-nuts 06:00 -!- KillerX [~anant@145-116-234-40.uilenstede.casema.nl] has quit [Quit: Leaving.] 06:01 -!- KillerX [~anant@145.116.234.40] has joined #go-nuts 06:01 -!- KillerX [~anant@145.116.234.40] has quit [Remote host closed the connection] 06:01 -!- KillerX [~anant@145.116.234.40] has joined #go-nuts 06:01 -!- KillerX [~anant@145.116.234.40] has quit [Changing host] 06:01 -!- KillerX [~anant@gentoo/developer/KillerX] has joined #go-nuts 06:01 -!- KillerX [~anant@gentoo/developer/KillerX] has left #go-nuts [] 06:03 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 06:04 -!- cco3-work [~conleyo@nat/google/x-nlqdipdsfarobieb] has quit [Ping timeout: 240 seconds] 06:07 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts 06:11 < plexdev> http://is.gd/bJouf by [Giles Lean] in go/src/pkg/os/ -- os: create sys_bsd.go 06:12 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by peer] 06:15 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Quit: slashus2] 06:16 -!- ryan_baker [~ryan_bake@128-193-249-134.resnet.oregonstate.edu] has joined #go-nuts 06:19 -!- scm [justme@c210224.adsl.hansenet.de] has quit [Read error: Connection reset by peer] 06:25 -!- scm [justme@c210240.adsl.hansenet.de] has joined #go-nuts 06:28 < plexdev> http://is.gd/bJpeC by [Alex Brainman] in 2 subdirs of go/src/pkg/ -- os, syscall: more mingw 06:46 -!- micrypt [~micrypt@41-184-21-79.rv.ipnxtelecoms.com] has quit [Ping timeout: 258 seconds] 06:52 -!- illya77 [~illya77@170-187-178-94.pool.ukrtel.net] has joined #go-nuts 06:56 -!- htoothrot [~mux@71-11-228-206.dhcp.ftwo.tx.charter.com] has quit [Read error: Connection reset by peer] 06:59 < plexdev> http://is.gd/bJqH7 by [Alex Brainman] in go/src/pkg/syscall/ -- syscall: fix mingw build 07:00 -!- ikaros [~ikaros@g227087107.adsl.alicedsl.de] has joined #go-nuts 07:01 -!- TR2N [email@89.180.190.122] has joined #go-nuts 07:06 -!- ryan_baker [~ryan_bake@128-193-249-134.resnet.oregonstate.edu] has quit [Quit: ryan_baker] 07:06 -!- tvw [~tv@212.79.9.150] has joined #go-nuts 07:08 -!- htoothrot [~mux@71-11-228-206.dhcp.ftwo.tx.charter.com] has joined #go-nuts 07:08 -!- cco3-work [~conleyo@nat/google/x-yfnrnvcssvyulkcz] has joined #go-nuts 07:10 -!- Discoloda [~vincent@adsl-76-231-56-49.dsl.frs2ca.sbcglobal.net] has quit [Remote host closed the connection] 07:16 < plexdev> http://is.gd/bJrI1 by [Micah Stetson] in go/src/pkg/time/ -- time: remove incorrect time.ISO8601 and add time.RFC3339 07:25 -!- scm [justme@c210240.adsl.hansenet.de] has quit [Ping timeout: 260 seconds] 07:29 -!- segy [~segfault@pdpc/supporter/active/segy] has quit [Ping timeout: 240 seconds] 07:30 -!- kaigan|work [~kaigan@c-8290e255.1411-10-64736c14.cust.bredbandsbolaget.se] has joined #go-nuts 07:30 -!- segy [~segfault@pdpc/supporter/active/segy] has joined #go-nuts 07:33 -!- htoothrot [~mux@71-11-228-206.dhcp.ftwo.tx.charter.com] has quit [Read error: Connection reset by peer] 07:33 -!- GilJ [~gilles@62.88.30.78] has joined #go-nuts 07:33 -!- htoothrot [~mux@71-11-228-206.dhcp.ftwo.tx.charter.com] has joined #go-nuts 07:34 -!- samitheberber [~saada@melkinpaasi.cs.helsinki.fi] has joined #go-nuts 07:34 -!- htoothrot [~mux@71-11-228-206.dhcp.ftwo.tx.charter.com] has quit [Read error: Connection reset by peer] 07:39 -!- htoothrot [~mux@71-11-228-206.dhcp.ftwo.tx.charter.com] has joined #go-nuts 07:40 -!- ukai [~ukai@220.109.219.244] has quit [Ping timeout: 276 seconds] 07:41 -!- zerd [~quassel@rex.zerd.net] has quit [Read error: Connection reset by peer] 07:41 -!- zerd [~quassel@rex.zerd.net] has joined #go-nuts 07:42 -!- mjf- [~mjf@tech.cas.ip-anywhere.net] has quit [Ping timeout: 252 seconds] 07:42 -!- mjf- [~mjf@tech.cas.ip-anywhere.net] has joined #go-nuts 07:48 -!- scm [justme@c210240.adsl.hansenet.de] has joined #go-nuts 07:50 -!- htoothrot [~mux@71-11-228-206.dhcp.ftwo.tx.charter.com] has quit [Read error: Connection reset by peer] 07:52 -!- Macpunk [~macpunk@cpe-72-177-26-221.austin.res.rr.com] has joined #go-nuts 07:59 -!- bert2 [IceChat7@cr-hafen-210-191.rz.uni-frankfurt.de] has joined #go-nuts 08:07 -!- bert2 [IceChat7@cr-hafen-210-191.rz.uni-frankfurt.de] has quit [Read error: Connection reset by peer] 08:08 -!- ukai [~ukai@220.109.219.244] has joined #go-nuts 08:21 -!- Kashia [~Kashia@port-92-200-115-121.dynamic.qsc.de] has quit [Quit: This computer has gone to sleep] 08:31 -!- Cyprien_ [~Cyprien@pub1.heig-vd.ch] has joined #go-nuts 08:45 -!- Macpunk [~macpunk@cpe-72-177-26-221.austin.res.rr.com] has quit [Ping timeout: 245 seconds] 08:47 -!- b0gg1e [~boman@pool-94-37-196-89.dbd-ipconnect.net] has quit [Quit: b0gg1e] 08:52 -!- Ideal [~Ideal@ideal-1-pt.tunnel.tserv6.fra1.ipv6.he.net] has joined #go-nuts 09:03 -!- DerHorst [~Horst@e176104062.adsl.alicedsl.de] has joined #go-nuts 09:03 -!- path[l] [~path@59.162.86.164] has joined #go-nuts 09:06 -!- GilJ [~gilles@62.88.30.78] has quit [Remote host closed the connection] 09:06 -!- path[l] [~path@59.162.86.164] has quit [Client Quit] 09:16 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 09:18 -!- Xeon [~chatzilla@222.73.189.45] has joined #go-nuts 09:23 -!- Adys [~Adys@unaffiliated/adys] has quit [Ping timeout: 245 seconds] 09:24 -!- nighty__ [~nighty@210.188.173.245] has quit [Quit: Disappears in a puff of smoke] 09:24 -!- path[l] [~path@59.162.86.164] has joined #go-nuts 09:26 -!- path[l] [~path@59.162.86.164] has quit [Client Quit] 09:33 < plexdev> http://is.gd/bJzbj by [Andrew Gerrand] in go/doc/ -- homepage: removed animation, use custom js instead of gdynamicfeeds 09:35 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 09:39 -!- b0gg1e [~boman@wlan-020-111.zib.de] has joined #go-nuts 09:40 -!- Ideal_ [~Ideal@ideal-1-pt.tunnel.tserv6.fra1.ipv6.he.net] has joined #go-nuts 09:40 -!- Ideal_ [~Ideal@ideal-1-pt.tunnel.tserv6.fra1.ipv6.he.net] has quit [Read error: Connection reset by peer] 09:42 -!- ikaros [~ikaros@g227087107.adsl.alicedsl.de] has quit [Quit: Leave the magic to Houdini] 09:44 -!- XenoPhoenix [~Xeno@cpc5-aztw24-2-0-cust39.aztw.cable.virginmedia.com] has joined #go-nuts 09:50 -!- path[l] [~path@59.162.86.164] has joined #go-nuts 09:56 -!- bmizerany [~bmizerany@c-24-6-37-113.hsd1.ca.comcast.net] has quit [Remote host closed the connection] 09:58 -!- kota1111 [~kota1111@gw2.kbmj.jp] has quit [Quit: Leaving...] 10:02 -!- Agon-laptop [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de] has joined #go-nuts 10:14 -!- Agon-laptop [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de] has quit [Remote host closed the connection] 10:14 -!- Agon-laptop [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de] has joined #go-nuts 10:15 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Quit: hcatlin] 10:21 -!- Agon-laptop [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de] has quit [Ping timeout: 276 seconds] 10:22 -!- Agon-laptop [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de] has joined #go-nuts 10:23 -!- General13372 [~support@71-93-97-216.dhcp.mtpk.ca.charter.com] has joined #go-nuts 10:25 -!- path[l] [~path@59.162.86.164] has quit [Remote host closed the connection] 10:25 -!- path[l] [~path@59.162.86.164] has joined #go-nuts 10:27 -!- General1337 [~support@71-93-97-216.dhcp.mtpk.ca.charter.com] has quit [Ping timeout: 264 seconds] 10:33 -!- wuehlmaus [~wuehlmaus@p4FCC7995.dip.t-dialin.net] has quit [Ping timeout: 252 seconds] 10:35 -!- wuehlmaus [~wuehlmaus@p4FCC7995.dip.t-dialin.net] has joined #go-nuts 10:42 < Ideal> hi, i'd quite interested to know impressions after using Go compared to previous python experience. is it okay to ask here such things ? 10:43 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined #go-nuts 10:44 < sladegen> no, puthon users are explicitly forbidden from entering this holy grounds... 10:46 < Ideal> okay.. seems like no such things in google yet, so maybe here anyone ? 10:46 < sladegen> you may try mailing list, though, for more conversational, less random chance of an answer... 10:47 < Ideal> okay, thanks.. i'm not hurrying, so if not here i maybe try ml then.. 10:48 < sladegen> and if there are ML archives searching them for "python" may yield something better than general google search. 10:49 < Ideal> oh, nice tips, thanks, something there 10:55 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Read error: Connection reset by peer] 10:56 -!- path[l] [~path@59.162.86.164] has quit [Ping timeout: 264 seconds] 10:59 < taruti> Got flymake working with Go :) 10:59 < jessta> Ideal: I've been a python user 11:00 -!- path[l] [~path@59.162.86.164] has joined #go-nuts 11:01 < Ideal> taruti: flymake (i'm not a native speaker..) 11:01 < Ideal> ? 11:02 < taruti> Ideal: an emacs thing that shows errors in an interactive fashion 11:02 < Ideal> ah.. 11:02 < Ideal> jessta: i see.. would you share and your impressions ? 11:04 -!- Agon-laptop [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de] has quit [Ping timeout: 240 seconds] 11:05 < kmeyer> taruti: nice 11:05 < jessta> I've never been a fan of the whole OOP style and dynamic typing has always worried me, so I prefer Go 11:06 < jessta> Go has most of the python features I care about, including the required style 11:07 < taruti> is package C only available when using cgo? 11:07 * taruti wants memmove/memcpy whatever and there is C.memmove 11:09 -!- Agon-laptop [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de] has joined #go-nuts 11:10 < Ideal> jessta: i see, thank you.. 11:10 -!- Agon-laptop [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de] has quit [Remote host closed the connection] 11:13 -!- ikaros [~ikaros@guests169.externals.de] has joined #go-nuts 11:17 -!- DerHorst [~Horst@e176104062.adsl.alicedsl.de] has quit [Remote host closed the connection] 11:17 < taruti> Just want a basic "poke structure X into the memory pointed to this location" 11:18 -!- htoothrot [~mux@71-11-228-206.dhcp.ftwo.tx.charter.com] has joined #go-nuts 11:19 < jessta> taruti: what are you trying to do? 11:20 < taruti> jessta: writing results back to fuse. 11:20 < taruti> jessta: thus I have two structures that I want to get into one buffer and write that out with a single write-call 11:20 < jessta> copy()? 11:23 < taruti> jessta: so how do I get from *Foo to a []byte pointing to the struct? 11:25 < jessta> taruti: maybe http://golang.org/pkg/encoding/binary/ 11:26 < taruti> jessta: which doesn't support "I don't care about endianess" 11:27 < taruti> since these things are always native-endian 11:27 < taruti> yes, it could detect which endian the running platform is, and then use reflection in encoding/binary to copy on a per-field basis, but that would be quite dumb. 11:29 < jessta> why per field? 11:31 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined #go-nuts 11:31 < taruti> jessta: that is how encoding/binary operates. 11:31 < taruti> jessta: just a plain memcpy would do the trick for me 11:36 -!- Cyprien__ [~Cyprien@pub1.heig-vd.ch] has joined #go-nuts 11:39 -!- Cyprien_ [~Cyprien@pub1.heig-vd.ch] has quit [Ping timeout: 246 seconds] 11:41 -!- B0R3D [~m@unaffiliated/b0r3d] has joined #go-nuts 11:43 < jessta> taruti: then use unsafe 11:44 -!- Ideal [~Ideal@ideal-1-pt.tunnel.tserv6.fra1.ipv6.he.net] has quit [Quit: Ideal] 11:54 -!- ajstarks [~ajstarks@pool-98-109-198-180.nwrknj.fios.verizon.net] has joined #go-nuts 11:55 -!- ajstarks [~ajstarks@pool-98-109-198-180.nwrknj.fios.verizon.net] has left #go-nuts [] 11:56 -!- tor5 [~tor@c-627471d5.04-50-6c756e10.cust.bredbandsbolaget.se] has joined #go-nuts 12:03 -!- lux` [lux`@151.71.156.86] has joined #go-nuts 12:13 -!- gilles_ [~gilles@62.88.30.78] has joined #go-nuts 12:13 -!- gilles_ [~gilles@62.88.30.78] has quit [Remote host closed the connection] 12:14 -!- GilJ [~GilJ@62.88.30.78] has joined #go-nuts 12:17 -!- GilJ [~GilJ@62.88.30.78] has quit [Remote host closed the connection] 12:17 -!- GilJ [~gilles@62.88.30.78] has joined #go-nuts 12:20 -!- Ginto8 [~Ginto8@pool-72-82-235-34.cmdnnj.fios.verizon.net] has quit [Ping timeout: 265 seconds] 12:24 < b0gg1e> Is there a pastebin with go syntax highlighting? 12:27 < b0gg1e> Maybe somebody should write some package for putting SeekableWriteReader on unsafe.Pointer's + maybe even io.Closer as alias to Free 12:27 < b0gg1e> unsafe.LimitedBuffer of sorts 12:33 -!- oal [~olav@5.79-160-122.customer.lyse.net] has joined #go-nuts 12:39 < jessta> b0gg1e: pastie.org 12:39 < b0gg1e> thx! 12:42 -!- Cyprien__ [~Cyprien@pub1.heig-vd.ch] has quit [Ping timeout: 240 seconds] 12:44 -!- pjm0616 [~user@61.250.113.98] has quit [Ping timeout: 252 seconds] 12:46 -!- pjm0616 [~user@61.250.113.98] has joined #go-nuts 12:49 -!- Cyprien_ [~Cyprien@pub1.heig-vd.ch] has joined #go-nuts 12:50 -!- rup [Rupert@deathcoil.net] has quit [Ping timeout: 260 seconds] 12:51 -!- Wiz126 [Wiz126@72.20.219.70] has quit [] 12:54 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit: This computer has gone to sleep] 12:58 -!- jashkenas [~jashkenas@69.86.113.247] has joined #go-nuts 13:00 < jashkenas> 'morning #go-nuts. We've been considering adding named result parameters to a little language (CoffeeScript), and I was wondering how y'all are liking using them... 13:00 < jessta> they are really nice 13:00 < jashkenas> Do you tend to favor them over traditional returns? Would you still use them in a dynamic language where you don't have to have the type annotation in the first place? 13:07 < jessta> yeah, they often save a bit of messing around 13:09 < jashkenas> jessta: thanks. Got any public examples (say, on Github) I should be looking at? 13:12 -!- cmarcelo [~cmarcelo@200.184.118.130] has joined #go-nuts 13:12 -!- cmarcelo [~cmarcelo@200.184.118.130] has quit [Changing host] 13:12 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has joined #go-nuts 13:13 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Ping timeout: 264 seconds] 13:17 -!- Gracenotes [~person@wikipedia/Gracenotes] has quit [Read error: Operation timed out] 13:20 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has quit [Quit: leaving] 13:24 -!- Luixsia [~Luixsia@AToulouse-254-1-17-153.w81-250.abo.wanadoo.fr] has joined #go-nuts 13:25 -!- cmarcelo [~cmarcelo@200.184.118.130] has joined #go-nuts 13:25 -!- cmarcelo [~cmarcelo@200.184.118.130] has quit [Changing host] 13:25 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has joined #go-nuts 13:26 -!- Xurix [~Luixsia@AToulouse-254-1-65-201.w81-49.abo.wanadoo.fr] has quit [Ping timeout: 265 seconds] 13:26 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has quit [Client Quit] 13:27 < b0gg1e> when adding a uint64 offset (Seek interface) to an uintptr, how do I check that there was no overflow? 13:28 * b0gg1e would like named parameter syntax for go.. Or at least update syntax, i.e. not only Foo{a: 1, b: 2} but alo foo{b: 1} 13:29 -!- ikaros [~ikaros@guests169.externals.de] has quit [Quit: Leave the magic to Houdini] 13:29 -!- cmarcelo [~cmarcelo@200.184.118.130] has joined #go-nuts 13:29 -!- cmarcelo [~cmarcelo@200.184.118.130] has quit [Changing host] 13:29 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has joined #go-nuts 13:31 < jessta> b0gg1e: makes things messy 13:32 < jessta> to check for overflow just check that it won't overflow 13:32 < b0gg1e> For value types that's really useful! You get an updated copy, almost functional programming... 13:32 < b0gg1e> Maybe even restrict it to value types, cause there it's nice 13:32 < jessta> nah, I mean the compiler etc. 13:32 < b0gg1e> ah that part :-) 13:33 < b0gg1e> well the problem is the Seeker interface which expects a uint64 offset 13:33 < b0gg1e> so somehow I have to test wether addind start to some base uintptr is valid 13:33 < b0gg1e> "adding that" 13:34 < jessta> won't you just get an error back? 13:34 < b0gg1e> no, ist defined to wrap around for all uint types. 13:34 < b0gg1e> mod 2^n 13:35 < b0gg1e> think about using sizeof to put the right "offset adder" function in a var during package init 13:37 -!- jashkenas [~jashkenas@69.86.113.247] has left #go-nuts [] 13:42 -!- peterdn [~peterdn@cpc1-oxfd18-2-0-cust512.4-3.cable.virginmedia.com] has joined #go-nuts 13:50 -!- ikaros [~ikaros@g227087107.adsl.alicedsl.de] has joined #go-nuts 13:51 -!- B0R3D [~m@unaffiliated/b0r3d] has quit [] 13:53 -!- iant [~iant@67.218.106.62] has joined #go-nuts 13:53 -!- mode/#go-nuts [+v iant] by ChanServ 13:57 -!- iant [~iant@67.218.106.62] has quit [Ping timeout: 245 seconds] 13:59 * uriel hates named params 14:00 -!- iant [~iant@67.218.106.62] has joined #go-nuts 14:00 -!- mode/#go-nuts [+v iant] by ChanServ 14:03 < taruti> b0gg1e: to test for over/underflow: 14:04 < taruti> new = old + offset; if (offset >= 0 && new < old) || (offset < 0 && new >= old) { panic("Over/underflow") } 14:05 < taruti> b0gg1e: btw is yout current code somewhere? 14:05 < b0gg1e> not yet going on github after sorting out some pw messup 14:05 -!- Gracenotes [~person@wikipedia/Gracenotes] has joined #go-nuts 14:06 < b0gg1e> think i can cheat away without testing for ptr size 14:07 < b0gg1e> keep min and max uintptr, do offset computation in int64() space and check if result is still within range 14:07 < taruti> yes 14:07 < taruti> just wondering how you get the Writer 14:13 < b0gg1e> Get? I'm implementing writer interface.. 14:13 < b0gg1e> will put this on git hub as soon as it compiles 14:13 < b0gg1e> nearly there 14:13 < taruti> ok :) 14:15 -!- rv2733 [~rv2733@c-98-242-168-49.hsd1.fl.comcast.net] has joined #go-nuts 14:29 -!- awidegreen [~quassel@62.176.237.78] has joined #go-nuts 14:32 -!- kssreeram [~kssreeram@122.165.6.245] has quit [Quit: value semantics == 42] 14:52 -!- Gracenotes [~person@wikipedia/Gracenotes] has quit [Quit: Leaving] 15:05 -!- kaigan|work [~kaigan@c-8290e255.1411-10-64736c14.cust.bredbandsbolaget.se] has quit [Quit: kaigan|work] 15:08 -!- ikaros [~ikaros@g227087107.adsl.alicedsl.de] has quit [Quit: Leave the magic to Houdini] 15:09 -!- iant [~iant@67.218.106.62] has quit [Ping timeout: 246 seconds] 15:10 -!- merlin83 [~merlin83@unaffiliated/merlin83] has quit [Ping timeout: 240 seconds] 15:12 -!- merlin83 [~merlin83@cm24.delta241.maxonline.com.sg] has joined #go-nuts 15:12 -!- merlin83 [~merlin83@cm24.delta241.maxonline.com.sg] has quit [Changing host] 15:12 -!- merlin83 [~merlin83@unaffiliated/merlin83] has joined #go-nuts 15:16 -!- Venom_X [~pjacobs@71.20.102.220] has joined #go-nuts 15:17 -!- rup [Rupert@deathcoil.net] has joined #go-nuts 15:19 -!- Discoloda [~vincent@76.231.56.49] has joined #go-nuts 15:36 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-159-87.clienti.tiscali.it] has joined #go-nuts 15:46 -!- Kashia [~Kashia@port-92-200-115-121.dynamic.qsc.de] has joined #go-nuts 15:47 -!- GilJ [~gilles@62.88.30.78] has quit [Ping timeout: 258 seconds] 15:49 -!- awidegreen [~quassel@62.176.237.78] has quit [Remote host closed the connection] 15:49 -!- yebyen [~yebyen@harrydavis.csh.rit.edu] has quit [Ping timeout: 260 seconds] 15:51 -!- awidegreen [~quassel@62.176.237.78] has joined #go-nuts 15:51 -!- b00m_chef [~watr@d64-180-45-230.bchsia.telus.net] has joined #go-nuts 15:54 -!- rup [Rupert@deathcoil.net] has quit [Remote host closed the connection] 16:02 -!- Kashia [~Kashia@port-92-200-115-121.dynamic.qsc.de] has quit [Quit: Leaving] 16:04 -!- sjbrown_ [~sjbrown@c-69-181-182-137.hsd1.ca.comcast.net] has joined #go-nuts 16:05 < dho_plan9> kimelto: did you ever figure out more about that? 16:05 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts 16:06 < dho_plan9> aha, io 16:08 -!- c9s [~c9s@59-126-64-204.HINET-IP.hinet.net] has joined #go-nuts 16:10 < dho_plan9> that doesn't make a whole lot of sense. 16:10 < dho_plan9> I wonder what it's doing that causes that. 16:12 -!- kssreeram [~kssreeram@122.174.64.20] has joined #go-nuts 16:13 -!- millertimek1a2m3 [~adam@rrcs-67-79-54-130.sw.biz.rr.com] has joined #go-nuts 16:40 -!- iant [~iant@nat/google/x-izimlndmatfplmva] has joined #go-nuts 16:40 -!- mode/#go-nuts [+v iant] by ChanServ 16:43 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has joined #go-nuts 16:47 -!- Cyprien__ [~Cyprien@pub1.heig-vd.ch] has joined #go-nuts 16:50 -!- Cyprien_ [~Cyprien@pub1.heig-vd.ch] has quit [Ping timeout: 248 seconds] 16:50 < taruti> I am growing to hate := with the current shadowing semantics 16:50 < taruti> it seems to create bugs very easily 16:50 < taruti> var foo T; func F() { for { foo, err := myFunc() } } <- like that 16:51 < sladegen> perhaps it's time for ;= 16:51 < taruti> a simple "shadowing variables with := will emit an warning" would be plenty enough 16:52 -!- Cyprien__ [~Cyprien@pub1.heig-vd.ch] has quit [Ping timeout: 260 seconds] 16:52 <+iant> we've discussed an error if a variable is defined but not used, but I don't think it was ever quite pinned down enough 16:52 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has joined #go-nuts 16:52 < taruti> iant: that isn't enough 16:52 < taruti> consider 16:53 <+iant> shadowing variables with := is certainly useful in some cases, though 16:53 < taruti> var foo T; func F() { for { foo, err := myFunc(); SomethingWith(foo) } } func G() { Bar(foo) } 16:53 < sladegen> get rid of global scope and make everything immutable, ftw... ;) 16:54 <+iant> shadowing a global variable is exactly the kind of case which people reasonably want to do 16:55 < taruti> iant: but the global variables will be specific for the package in question - and thus there is not much need for shadowing 16:56 <+iant> well, you could try to make the argument on the mailing list, but I wouldn't hold out much hope for it 16:56 < taruti> I'll write something if I get frustrated enough 16:57 < taruti> b0gg1e: did you get the code to compile? 16:58 < b0gg1e> just now pusing 16:59 < b0gg1e> git clone http://github.com/boggle/coffer.git 16:59 < b0gg1e> havent tested, will use this in the zmq bindings i am writing and test it there 17:00 < taruti> thanks :) 17:01 -!- nettok [~netto@200.119.152.181] has joined #go-nuts 17:01 -!- path[l]_ [~path@122.182.0.38] has joined #go-nuts 17:04 -!- path[l] [~path@59.162.86.164] has quit [Ping timeout: 240 seconds] 17:05 < b0gg1e> What really would be kicking is a way to give go ptrs to C with some refcounting.. 17:07 < cbeck> A question about stack traces: Is the goroutine trace at the top the one in which the error occurred? 17:08 -!- bcgraham_ [~bcgraham@cpe-67-250-13-100.nyc.res.rr.com] has joined #go-nuts 17:08 < b0gg1e> taruti: tell me if it works for you, might not come around to actually testing it for a while 17:10 <+iant> cbeck: yes 17:11 -!- bcgraham [~bcgraham@cpe-67-250-13-100.nyc.res.rr.com] has quit [Ping timeout: 276 seconds] 17:13 -!- dignan [~tdignan@207-180-158-56.c3-0.wak-ubr1.sbo-wak.ma.cable.rcn.com] has joined #go-nuts 17:14 -!- dignan [~tdignan@207-180-158-56.c3-0.wak-ubr1.sbo-wak.ma.cable.rcn.com] has quit [Client Quit] 17:18 -!- jhh [~jhh@f048066069.adsl.alicedsl.de] has joined #go-nuts 17:18 < taruti> b0gg1e: that seems to produce dynamically linked things :( 17:19 * taruti hoped to find a memmove without cgo dependency 17:19 < b0gg1e> yeah sure it uses cgo 17:19 < b0gg1e> just nicely wraps it in a safe and sane way 17:19 < b0gg1e> nah no magic in here :-) 17:20 < b0gg1e> why dont you want to use cgo? memmove is faster than any go loop you could write 17:21 < b0gg1e> what are you after? if you dont use cgo, how come you want to copy a c ptr? 17:22 -!- millertimek1a2m3 [~adam@rrcs-67-79-54-130.sw.biz.rr.com] has quit [Ping timeout: 245 seconds] 17:22 < plexdev> http://is.gd/bK7Go by [Russ Cox] in go/src/pkg/io/ -- pipe: implementation #3; this time for sure! 17:26 < b0gg1e> copying between two *byte shoudl be straight foward... cast to unsafe.Pointer, write, increment, repeat. 17:27 < b0gg1e> get *byte from []byte: &byteArray[index] 17:28 < b0gg1e> other way around: you have to copy, cant cast a *byte into an []byte 17:29 < taruti> b0gg1e: only that go doesn't allow for that "increment" 17:30 < b0gg1e> sure? what about unsafe.Pointer(uintptr(unsafe.Pointer(*byte)) + uintptr(1)) 17:30 -!- tvw [~tv@212.79.9.150] has quit [Read error: Connection reset by peer] 17:32 -!- nettok [~netto@200.119.152.181] has quit [Ping timeout: 246 seconds] 17:32 < b0gg1e> still dont see why you would have this problem if you do not deal with C 17:36 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Quit: hcatlin] 17:37 -!- path[l] [~path@122.182.0.38] has quit [Quit: path[l]] 17:37 < taruti> b0gg1e: solved it with C without cgo :) 17:37 < taruti> b0gg1e: I am interfacing fuse 17:38 < b0gg1e> without cgo? 17:38 < b0gg1e> how are you doing that? writing prototypes manually? 17:38 -!- millertimek1a2m3 [~adam@rrcs-67-79-54-130.sw.biz.rr.com] has joined #go-nuts 17:38 < plexdev> http://is.gd/bK9gz by [Russ Cox] in go/src/pkg/json/ -- json: preserve field name case by default 17:39 < b0gg1e> but I like that you write a C interface for fuse. how are you linking that? havent figured how to pass and -lfoobar to 6l 17:39 < b0gg1e> all this is so badly documented 17:40 -!- crashR [~crasher@codextreme.pck.nerim.net] has quit [Remote host closed the connection] 17:41 -!- dignan [~tom@www.tomdignan.com] has joined #go-nuts 17:42 -!- crashR [~crasher@codextreme.pck.nerim.net] has joined #go-nuts 17:42 -!- Macpunk [~macpunk@cpe-72-177-26-221.austin.res.rr.com] has joined #go-nuts 17:42 < taruti> b0gg1e: just avoid the C library crap altogether :) 17:43 < taruti> b0gg1e: talking on the wire to fuse kernel module. 17:43 < b0gg1e> ah ok this possible but you pay with serialization 17:44 < kimelto> morning! 17:44 -!- Discoloda [~vincent@76.231.56.49] has quit [Remote host closed the connection] 17:44 < b0gg1e> im wrapping libzmq, no going over the wire for me unless i want to reimplent it in go 17:44 < b0gg1e> hello, kimelto 17:45 -!- fusion44 [~quassel@p5B2851EE.dip.t-dialin.net] has joined #go-nuts 17:45 < taruti> b0gg1e: yes. I have already such serialization code in an another language and thus it is quite trivial (although somewhat tedious) to wrap it up with Go. 17:45 < kimelto> dho_plan9: I gess I now have to read what does the io module 17:45 -!- Davidian1024 [~Davidian1@cpe-173-88-239-176.neo.res.rr.com] has quit [Remote host closed the connection] 17:45 < b0gg1e> how bad is the perf penalty for this? 17:46 < taruti> b0gg1e: at least in Haskell it was much faster than going through the C library 17:46 < b0gg1e> i kinda could handover *byte to libzmq directly BUT then I need to ensure that Go doesnt GC it while zmq is still busy 17:47 < b0gg1e> while its possible to do so i ve decided to wait for the new GC in hope of a more tractable solution and copy for noe 17:47 -!- Davidian1024 [~Davidian1@cpe-173-88-239-176.neo.res.rr.com] has joined #go-nuts 17:47 -!- Discoloda [~vincent@adsl-76-231-56-49.dsl.frs2ca.sbcglobal.net] has joined #go-nuts 17:48 -!- bcgraham [~bcgraham@cpe-67-250-13-100.nyc.res.rr.com] has joined #go-nuts 17:48 -!- marsu [~marsu@77.202.87.41] has joined #go-nuts 17:50 -!- bcgraham_ [~bcgraham@cpe-67-250-13-100.nyc.res.rr.com] has quit [Ping timeout: 246 seconds] 17:53 < dho_plan9> kimelto: I think it must be a kernel bug. 17:54 -!- path[l] [UPP@120.138.102.34] has joined #go-nuts 17:55 < plexdev> http://is.gd/bKaGm by [Christopher Wedgwood] in go/src/cmd/godoc/ -- godoc: use int64 for timestamps 17:55 < plexdev> http://is.gd/bKaGv by [Russ Cox] in go/src/pkg/json/ -- json: streaming 17:55 -!- sladegen [~nemo@unaffiliated/sladegen] has quit [Disconnected by services] 17:56 < Davidian1024> whowas john 17:56 -!- sladegen [~nemo@unaffiliated/sladegen] has joined #go-nuts 17:56 -!- Davidian1024 [~Davidian1@cpe-173-88-239-176.neo.res.rr.com] has left #go-nuts [] 17:58 < kimelto> dho_plan9: oh yeah my first kernel bug :) 17:58 < kimelto> I must find it and write a fix ;p 18:12 < plexdev> http://is.gd/bKc41 by [Robert Griesemer] in 2 subdirs of go/src/pkg/go/printer/ -- gofmt: don't strip mandatory ()'s around composite literals in control clauses 18:14 -!- fwiffo [~none@unaffiliated/fwiffo] has joined #go-nuts 18:15 -!- Cyprien_ [Cyprien@26-199.3-85.cust.bluewin.ch] has joined #go-nuts 18:20 -!- Fish [~Fish@9fans.fr] has joined #go-nuts 18:23 -!- illya77 [~illya77@170-187-178-94.pool.ukrtel.net] has quit [Read error: Connection reset by peer] 18:29 -!- bcgraham_ [~bcgraham@cpe-67-250-13-100.nyc.res.rr.com] has joined #go-nuts 18:29 -!- dignan [~tom@www.tomdignan.com] has quit [Quit: Lost terminal] 18:31 -!- bcgraham [~bcgraham@cpe-67-250-13-100.nyc.res.rr.com] has quit [Ping timeout: 260 seconds] 18:32 -!- bmizerany [~bmizerany@dsl081-064-072.sfo1.dsl.speakeasy.net] has joined #go-nuts 18:34 -!- rhelmer [~rhelmer@38.112.6.110] has joined #go-nuts 18:35 -!- dignan [~tom@www.tomdignan.com] has joined #go-nuts 18:54 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts 18:57 -!- path[l] [UPP@120.138.102.34] has quit [Quit: path[l]] 18:58 < plexdev> http://is.gd/bKftn by [Robert Griesemer] in go/src/pkg/go/parser/ -- go/parser: don't require parens around composite literals inside a composite literal 18:59 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Quit: slashus2] 19:00 < kimelto> dho_plan9: diving into devstat :/ 19:02 < dho_plan9> it may be a goose chase. I don't know. It seems really weird -- definitely bad if running a process like that will affect memory in other processes. 19:03 -!- carllerche [~carllerch@99.13.242.166] has joined #go-nuts 19:06 -!- carllerche [~carllerch@99.13.242.166] has quit [Client Quit] 19:09 -!- bcgraham [~bcgraham@cpe-67-250-13-100.nyc.res.rr.com] has joined #go-nuts 19:11 -!- bcgraham_ [~bcgraham@cpe-67-250-13-100.nyc.res.rr.com] has quit [Ping timeout: 240 seconds] 19:11 -!- rhelmer [~rhelmer@38.112.6.110] has quit [Quit: rhelmer] 19:17 < taruti> Is there a clever way of handling C structures with a variable length char[] at the end in Go? 19:24 < b0gg1e> dont think so 19:24 -!- rhelmer [~rhelmer@adsl-71-139-219-78.dsl.snfc21.pacbell.net] has joined #go-nuts 19:25 -!- carllerche [~carllerch@enginey-9.border1.sfo002.pnap.net] has joined #go-nuts 19:26 < dignan> taruti: char[] can vary in length in C? 19:27 < taruti> dignan: there are several ways to do that in C. 19:27 < dignan> taruti: you can use [] on a char*, but that doesn't make it a "variable length array" 19:27 < dignan> taruti: it is just syntactic sugar for *(x + n) 19:27 < ptrb> do you mean the struct hack? 19:27 < dignan> why is it that you need a special way to handle this 19:28 < taruti> ptrb: yes 19:28 < taruti> meh. unsafe to the win again :) 19:29 < dignan> is this because Go omits pointer arithmetic? 19:31 < ptrb> heh, yeah, have fun with that :) 19:31 -!- b0gg1e [~boman@wlan-020-111.zib.de] has quit [Quit: b0gg1e] 19:31 < taruti> it seems one can do pointer arithmetic just fine :) 19:32 < dignan> It said in the lecture I watched that Go deliberately omits it.. There is a hack that lets you do it, the struct hack? 19:33 < dignan> oh god, it's a C trick 19:33 < kimelto> dho_plan9: I think im goin to commit suicide :) 19:33 < dignan> I have never written code like that, i am a do-good. 19:34 < kimelto> dho_plan9: doesnt work now and symon's not running 19:37 -!- Wiz126 [Wiz126@72.20.222.124] has joined #go-nuts 19:39 -!- fwiffo_ [~none@201.86.74.20.dynamic.adsl.gvt.net.br] has joined #go-nuts 19:42 -!- fwiffo [~none@unaffiliated/fwiffo] has quit [Ping timeout: 258 seconds] 19:43 -!- SecretofMana [~mana@142.46.164.30] has joined #go-nuts 19:44 < dho_plan9> huh. 19:46 < kimelto> ok so I have two apps which cause the bug :) 19:46 < kimelto> same line, same step of the build 19:46 < kimelto> strange 19:51 -!- tvw [~tv@e182074003.adsl.alicedsl.de] has joined #go-nuts 19:57 -!- carllerche [~carllerch@enginey-9.border1.sfo002.pnap.net] has quit [Quit: carllerche] 19:57 -!- carllerche [~carllerch@enginey-9.border1.sfo002.pnap.net] has joined #go-nuts 20:07 -!- aho [~nya@f050239251.adsl.alicedsl.de] has joined #go-nuts 20:12 -!- zerd_ [~quassel@rex.zerd.net] has joined #go-nuts 20:12 -!- Sorcy [~ycros@gnaw.yi.org] has joined #go-nuts 20:13 -!- Ycros [~ycros@gnaw.yi.org] has quit [Write error: Broken pipe] 20:13 -!- zerd [~quassel@rex.zerd.net] has quit [Write error: Broken pipe] 20:13 -!- roto [~roto@64.79.202.154] has quit [Write error: Broken pipe] 20:15 -!- roto [~roto@64.79.202.154] has joined #go-nuts 20:15 < plexdev> http://is.gd/bKl6U by [Robert Griesemer] in 2 subdirs of go/test/ -- 6g bug: no need for parens around array index expression 20:15 -!- Kashia [~Kashia@port-92-200-52-202.dynamic.qsc.de] has joined #go-nuts 20:31 < plexdev> http://is.gd/bKmfM by [Robert Griesemer] in 2 subdirs of go/src/pkg/go/printer/ -- gofmt: fine-tune stripping of parentheses 20:33 -!- Nexoro [~nexo@c-71-192-75-183.hsd1.ma.comcast.net] has joined #go-nuts 20:36 -!- jhh [~jhh@f048066069.adsl.alicedsl.de] has quit [Quit: leaving] 20:39 < taruti> Is "func FuseOpen(*Open) Error" (which mutates the Open structure) or "func FuseOpen(*Open) (Flags,FH,Error)" more intuitive in Go? 20:40 < uriel> what is FH? 20:41 < uriel> and why does one version need to return Flags and the other doesn't? does FuseOpen just modify the Flags? 20:41 -!- skiggles [~Elgarth@cpc1-cmbg2-0-0-cust93.cmbg.cable.ntl.com] has joined #go-nuts 20:41 -!- oal [~olav@5.79-160-122.customer.lyse.net] has quit [Remote host closed the connection] 20:44 < taruti> uriel: FH is just a fancy name for a uintptr, in the first case the function just mutates those values inside the structure 20:44 -!- skiggles [~Elgarth@cpc1-cmbg2-0-0-cust93.cmbg.cable.ntl.com] has quit [Client Quit] 20:47 -!- fwiffo_ [~none@201.86.74.20.dynamic.adsl.gvt.net.br] has quit [Quit: Lost terminal] 20:50 -!- Wiz126 [Wiz126@72.20.222.124] has quit [Ping timeout: 252 seconds] 20:53 -!- boogles [~highb@shell.onid.oregonstate.edu] has quit [Ping timeout: 245 seconds] 20:54 -!- boogles [~highb@shell.onid.oregonstate.edu] has joined #go-nuts 20:59 < uriel> taruti: I really think it will depend how the whole api is intended to be used 20:59 -!- smw [~stephen@pool-96-232-88-231.nycmny.fios.verizon.net] has quit [Ping timeout: 265 seconds] 21:01 -!- Wiz126 [Wiz126@72.20.219.13] has joined #go-nuts 21:03 < plexdev> http://is.gd/bKouJ by [Russ Cox] in go/src/pkg/rpc/ -- rpc: abstract client and server encodings 21:03 < plexdev> http://is.gd/bKouS by [Russ Cox] in go/src/pkg/json/ -- json: delete obsolete code 21:03 < plexdev> http://is.gd/bKov9 by [Russ Cox] in 2 subdirs of go/src/pkg/ -- rpc/jsonrpc: support for jsonrpc wire encoding 21:03 < plexdev> http://is.gd/bKovv by [Russ Cox] in go/src/cmd/gc/ -- gc: fix islocalname on windows 21:03 -!- Wiz126 [Wiz126@72.20.219.13] has quit [Client Quit] 21:10 -!- Fish [~Fish@9fans.fr] has quit [Remote host closed the connection] 21:19 < plexdev> http://is.gd/bKpBv by [Robert Griesemer] in go/src/pkg/go/printer/testdata/ -- fix build 21:19 < plexdev> http://is.gd/bKpBA by [Robert Griesemer] in go/test/bench/ -- pidigits: ~10% performance win by using adds instead of shifts 21:27 -!- Nexoro [~nexo@c-71-192-75-183.hsd1.ma.comcast.net] has quit [Quit: Leaving.] 21:29 -!- sjbrown_ [~sjbrown@c-69-181-182-137.hsd1.ca.comcast.net] has quit [Ping timeout: 259 seconds] 21:35 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has quit [Quit: Leaving] 21:35 -!- Gracenotes [~person@wikipedia/Gracenotes] has joined #go-nuts 21:43 -!- lilpenguina [~penguina@75.97.68.130.res-cmts.senj.ptd.net] has joined #go-nuts 21:46 -!- Gracenotes [~person@wikipedia/Gracenotes] has quit [Ping timeout: 248 seconds] 21:49 -!- lilpenguina [~penguina@75.97.68.130.res-cmts.senj.ptd.net] has left #go-nuts [] 21:49 -!- sjbrown [~sjbrown@c-69-181-182-137.hsd1.ca.comcast.net] has joined #go-nuts 21:55 -!- fusion44 [~quassel@p5B2851EE.dip.t-dialin.net] has quit [Remote host closed the connection] 21:55 -!- Wiz126 [Wiz126@72.20.221.133] has joined #go-nuts 21:57 -!- Venom_X [~pjacobs@71.20.102.220] has quit [Ping timeout: 260 seconds] 22:00 -!- awidegreen [~quassel@62.176.237.78] has quit [Remote host closed the connection] 22:03 -!- Gracenotes [~person@wikipedia/Gracenotes] has joined #go-nuts 22:03 -!- addos [~98340003@gateway/web/freenode/x-dnnwsxfakbyvxwti] has joined #go-nuts 22:03 < addos> is there anyway to write go code that can execute on the gpu? 22:04 < kmeyer> No. 22:04 -!- dizm [~dizm@121.98.168.127] has joined #go-nuts 22:05 -!- dizm [~dizm@121.98.168.127] has left #go-nuts [] 22:06 -!- jpic [~jpic@chocolatpistache.com] has joined #go-nuts 22:07 -!- tav [~tav@78.146.60.121] has quit [Quit: tav] 22:08 -!- rhelmer [~rhelmer@adsl-71-139-219-78.dsl.snfc21.pacbell.net] has quit [Quit: rhelmer] 22:08 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has quit [Quit: Verlassend] 22:09 -!- Wiz126 [Wiz126@72.20.221.133] has quit [Ping timeout: 268 seconds] 22:09 -!- lilpenguina [~penguina@75.97.68.130.res-cmts.senj.ptd.net] has joined #go-nuts 22:10 -!- Wiz126 [Wiz126@72.20.221.133] has joined #go-nuts 22:10 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has quit [Remote host closed the connection] 22:11 < jpic> hi, does gobuild build on x86 with current release for you? 22:12 -!- addos [~98340003@gateway/web/freenode/x-dnnwsxfakbyvxwti] has quit [Ping timeout: 252 seconds] 22:13 -!- Gracenotes [~person@wikipedia/Gracenotes] has quit [Ping timeout: 252 seconds] 22:14 -!- Agon [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de] has quit [Remote host closed the connection] 22:17 -!- tvw [~tv@e182074003.adsl.alicedsl.de] has quit [Remote host closed the connection] 22:18 -!- ikaros [~ikaros@e180236243.adsl.alicedsl.de] has joined #go-nuts 22:23 -!- General1337 [~support@71-93-97-216.dhcp.mtpk.ca.charter.com] has joined #go-nuts 22:24 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-159-87.clienti.tiscali.it] has quit [Quit: E se abbasso questa leva che succ...] 22:26 -!- General13372 [~support@71-93-97-216.dhcp.mtpk.ca.charter.com] has quit [Ping timeout: 258 seconds] 22:28 -!- lux` [lux`@151.71.156.86] has quit [Read error: Connection reset by peer] 22:28 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by peer] 22:31 -!- skiggles [~Elgarth@cpc1-cmbg2-0-0-cust93.cmbg.cable.ntl.com] has joined #go-nuts 22:32 -!- jpic [~jpic@chocolatpistache.com] has left #go-nuts [] 22:32 -!- Gracenotes [~person@wikipedia/Gracenotes] has joined #go-nuts 22:41 -!- XenoPhoenix [~Xeno@cpc5-aztw24-2-0-cust39.aztw.cable.virginmedia.com] has quit [Ping timeout: 276 seconds] 22:44 -!- XenoPhoenix [~Xeno@cpc5-aztw24-2-0-cust39.aztw.cable.virginmedia.com] has joined #go-nuts 22:54 -!- tor5 [~tor@c-627471d5.04-50-6c756e10.cust.bredbandsbolaget.se] has quit [Quit: tor5] 22:55 -!- skiggles [~Elgarth@cpc1-cmbg2-0-0-cust93.cmbg.cable.ntl.com] has quit [Quit: Leaving] 22:57 -!- marsu [~marsu@77.202.87.41] has quit [Ping timeout: 248 seconds] 22:59 -!- Venom_X [~pjacobs@71.20.102.220] has joined #go-nuts 23:00 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has quit [Read error: Connection reset by peer] 23:02 -!- dizm [~dizm@121.98.168.127] has joined #go-nuts 23:02 -!- dizm [~dizm@121.98.168.127] has left #go-nuts [] 23:03 -!- SRabbelier [~SRabbelie@ip138-114-211-87.adsl2.static.versatel.nl] has quit [Read error: Connection reset by peer] 23:09 -!- SRabbelier [~SRabbelie@ip138-114-211-87.adsl2.static.versatel.nl] has joined #go-nuts 23:12 -!- marsu [~marsu@242.111.202-77.rev.gaoland.net] has joined #go-nuts 23:13 -!- Sorcy [~ycros@gnaw.yi.org] has left #go-nuts [] 23:24 -!- dizm [~dizm@121.98.168.127] has joined #go-nuts 23:24 -!- dizm [~dizm@121.98.168.127] has left #go-nuts [] 23:27 -!- wuehlmaus [~wuehlmaus@p4FCC7995.dip.t-dialin.net] has quit [Ping timeout: 276 seconds] 23:28 -!- wuehlmaus [~wuehlmaus@p4FCC79E9.dip.t-dialin.net] has joined #go-nuts 23:29 -!- iant [~iant@nat/google/x-izimlndmatfplmva] has quit [Ping timeout: 260 seconds] 23:29 -!- Gracenotes [~person@wikipedia/Gracenotes] has quit [Remote host closed the connection] 23:30 -!- Gracenotes [~person@wikipedia/Gracenotes] has joined #go-nuts 23:36 -!- tor5 [~tor@c-627471d5.04-50-6c756e10.cust.bredbandsbolaget.se] has joined #go-nuts 23:41 -!- General13372 [~support@71-93-97-216.dhcp.mtpk.ca.charter.com] has joined #go-nuts 23:45 -!- General1337 [~support@71-93-97-216.dhcp.mtpk.ca.charter.com] has quit [Ping timeout: 264 seconds] 23:53 -!- iant [~iant@67.218.107.79] has joined #go-nuts 23:54 -!- mode/#go-nuts [+v iant] by ChanServ --- Log closed Wed Apr 28 00:00:00 2010