Go Language Resources Go, golang, go... NOTE: This page ceased updating in October, 2012

--- Log opened Sat Apr 03 00:00:36 2010
00:01 -!- fwiffo [~fwiffo@unaffiliated/fwiffo] has joined #go-nuts
00:03 -!- lilpenguina [~penguina@adsl-69-226-247-23.dsl.pltn13.pacbell.net] has
joined #go-nuts
00:03 -!- rue [~rhubarb@echo622.server4you.de] has joined #go-nuts
00:03 -!- rue [~rhubarb@echo622.server4you.de] has quit [Excess Flood]
00:12 -!- lilpenguina [~penguina@adsl-69-226-247-23.dsl.pltn13.pacbell.net] has
quit [Quit: Leaving.]
00:13 -!- kanru [~kanru@61-228-153-197.dynamic.hinet.net] has joined #go-nuts
00:13 -!- rue [~rhubarb@echo622.server4you.de] has joined #go-nuts
00:13 -!- rue [~rhubarb@echo622.server4you.de] has quit [Excess Flood]
00:14 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts
00:23 -!- rue [~rhubarb@echo622.server4you.de] has joined #go-nuts
00:23 -!- rue [~rhubarb@echo622.server4you.de] has quit [Excess Flood]
00:25 < KirkMcDonald> Are there bindings to curses yet?
00:31 -!- nchaimov [~cowtown@c-71-237-208-209.hsd1.or.comcast.net] has quit [Quit:
nchaimov]
00:32 < smw_> KirkMcDonald: I saw one on cat-v a long time ago
00:32 < smw_> http://github.com/jabb/gocurse
00:33 -!- rue [~rhubarb@echo622.server4you.de] has joined #go-nuts
00:33 -!- rue [~rhubarb@echo622.server4you.de] has quit [Excess Flood]
00:33 -!- sjbrown_ [~sjbrown@dsl081-072-059.sfo1.dsl.speakeasy.net] has quit
[Quit: Leaving]
00:43 -!- rue [~rhubarb@echo622.server4you.de] has joined #go-nuts
00:43 -!- rue [~rhubarb@echo622.server4you.de] has quit [Excess Flood]
00:43 -!- tvw [~tv@e182079081.adsl.alicedsl.de] has quit [Ping timeout: 260
seconds]
00:51 -!- andrewh [~andrewh@94-194-56-42.zone8.bethere.co.uk] has quit [Ping
timeout: 240 seconds]
00:53 -!- rue [~rhubarb@echo622.server4you.de] has joined #go-nuts
00:53 -!- rue [~rhubarb@echo622.server4you.de] has quit [Excess Flood]
00:56 -!- lux` [lux`@151.95.168.32] has quit [Read error: Connection reset by
peer]
01:02 -!- meanburrito920 [~john@kiwi.STUDENT.CWRU.Edu] has joined #go-nuts
01:02 -!- meanburrito920 [~john@kiwi.STUDENT.CWRU.Edu] has quit [Changing host]
01:02 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has joined #go-nuts
01:03 -!- rue [~rhubarb@echo622.server4you.de] has joined #go-nuts
01:03 -!- rue [~rhubarb@echo622.server4you.de] has quit [Excess Flood]
01:06 -!- fwiffo [~fwiffo@unaffiliated/fwiffo] has quit [Ping timeout: 260
seconds]
01:08 -!- fwiffo [~fwiffo@unaffiliated/fwiffo] has joined #go-nuts
01:13 -!- rue [~rhubarb@echo622.server4you.de] has joined #go-nuts
01:13 -!- rue [~rhubarb@echo622.server4you.de] has quit [Excess Flood]
01:23 -!- rue [~rhubarb@echo622.server4you.de] has joined #go-nuts
01:23 -!- rue [~rhubarb@echo622.server4you.de] has quit [Excess Flood]
01:26 -!- bmizerany [~bmizerany@2002:4624:923c:0:21f:f3ff:feba:733f] has quit
[Remote host closed the connection]
01:31 < meatmanek> does the testing package seed the random number
generator?
01:33 -!- rue [~rhubarb@echo622.server4you.de] has joined #go-nuts
01:33 -!- rue [~rhubarb@echo622.server4you.de] has quit [Excess Flood]
01:40 -!- Gracenotes [~person@wikipedia/Gracenotes] has quit [Quit: Leaving]
01:43 -!- rue [~rhubarb@echo622.server4you.de] has joined #go-nuts
01:43 -!- rue [~rhubarb@echo622.server4you.de] has quit [Excess Flood]
01:48 -!- bmizerany [~bmizerany@c-24-6-37-113.hsd1.ca.comcast.net] has joined
#go-nuts
01:51 -!- kssreeram [~kssreeram@122.174.141.185] has quit [Ping timeout: 258
seconds]
01:53 -!- rue [~rhubarb@echo622.server4you.de] has joined #go-nuts
01:53 -!- rue [~rhubarb@echo622.server4you.de] has quit [Excess Flood]
02:02 -!- ryan_baker [~ryan_bake@128-193-249-150.resnet.oregonstate.edu] has
joined #go-nuts
02:03 -!- franksalim [~frank@adsl-75-61-84-181.dsl.pltn13.sbcglobal.net] has quit
[Quit: Ex-Chat]
02:03 -!- rue [~rhubarb@echo622.server4you.de] has joined #go-nuts
02:03 -!- rue [~rhubarb@echo622.server4you.de] has quit [Excess Flood]
02:13 -!- rue [~rhubarb@echo622.server4you.de] has joined #go-nuts
02:13 -!- rue [~rhubarb@echo622.server4you.de] has quit [Excess Flood]
02:22 -!- nchaimov [~cowtown@c-71-237-208-209.hsd1.or.comcast.net] has joined
#go-nuts
02:23 -!- rue [~rhubarb@echo622.server4you.de] has joined #go-nuts
02:28 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has quit [Read error:
Operation timed out]
02:35 -!- meanburrito920 [~john@192.5.109.49] has joined #go-nuts
02:35 -!- meanburrito920 [~john@192.5.109.49] has quit [Changing host]
02:35 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has joined #go-nuts
02:48 -!- rv2733 [~rv2733@c-98-242-168-49.hsd1.fl.comcast.net] has joined #go-nuts
02:55 -!- kssreeram [~kssreeram@122.174.66.81] has joined #go-nuts
02:59 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has quit [Ping
timeout: 265 seconds]
03:00 -!- meanburrito920 [~john@v129-22-126-89.VCLIENT.CWRU.Edu] has joined
#go-nuts
03:00 -!- meanburrito920 [~john@v129-22-126-89.VCLIENT.CWRU.Edu] has quit
[Changing host]
03:00 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has joined #go-nuts
03:04 -!- SecretofMana [~mana@142.46.164.30] has quit [Quit: Leaving]
03:04 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Ping timeout: 264
seconds]
03:23 -!- fwiffo [~fwiffo@unaffiliated/fwiffo] has quit [Quit: Lost terminal]
03:35 -!- Garen [~garen.p@cpe-69-76-18-3.natnow.res.rr.com] has quit [Read error:
Connection reset by peer]
03:35 -!- Garen [~garen.p@cpe-69-76-18-3.natnow.res.rr.com] has joined #go-nuts
03:43 -!- Xera` [~brit@87-194-208-246.bethere.co.uk] has quit [Quit: (
www.nnscript.com :: NoNameScript 4.21 :: www.esnation.com )]
03:50 -!- Gracenotes [~person@wikipedia/Gracenotes] has joined #go-nuts
03:55 -!- LuchoMasteR [~ircap@186.105.74.166] has joined #go-nuts
04:03 -!- path[l] [~path@120.138.102.34] has joined #go-nuts
04:04 -!- adu [~ajr@pool-74-96-89-29.washdc.fios.verizon.net] has joined #go-nuts
04:04 -!- rv2733 [~rv2733@c-98-242-168-49.hsd1.fl.comcast.net] has quit [Quit:
Leaving]
04:07 -!- kasi [~kasi@ip-75.49.99.216.dsl-cust.ca.inter.net] has joined #go-nuts
04:09 -!- kasi [~kasi@ip-75.49.99.216.dsl-cust.ca.inter.net] has quit [Client
Quit]
04:15 -!- LuchoMasteR [~ircap@186.105.74.166] has quit [Quit: • IRcap • 8.6 •]
04:18 -!- tav [~tav@89.240.57.83] has quit [Quit: tav]
04:23 -!- bmizerany [~bmizerany@c-24-6-37-113.hsd1.ca.comcast.net] has quit
[Remote host closed the connection]
04:24 -!- bmizerany [~bmizerany@c-24-6-37-113.hsd1.ca.comcast.net] has joined
#go-nuts
04:30 -!- nowhere_man [~pierre@lec67-4-82-235-57-28.fbx.proxad.net] has quit [Read
error: No route to host]
04:30 -!- Discoloda [~vincent@adsl-76-194-167-196.dsl.frs2ca.sbcglobal.net] has
quit [Remote host closed the connection]
04:45 -!- nchaimov [~cowtown@c-71-237-208-209.hsd1.or.comcast.net] has quit [Quit:
nchaimov]
04:50 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has quit [Quit: Lost
terminal]
04:58 -!- Amaranth [~travis@ubuntu/member/Amaranth] has quit [Read error:
Operation timed out]
05:14 -!- Amaranth [~travis@ubuntu/member/Amaranth] has joined #go-nuts
06:12 -!- aho [~nya@g227032250.adsl.alicedsl.de] has quit [Quit:
EXEC_over.METHOD_SUBLIMATION]
06:27 -!- path[l]_ [~path@120.138.102.34] has joined #go-nuts
06:27 -!- path[l] [~path@120.138.102.34] has quit [Read error: Connection reset by
peer]
06:35 -!- adu [~ajr@pool-74-96-89-29.washdc.fios.verizon.net] has quit [Quit: adu]
06:36 -!- Project_2501 [~Marvin@82.84.91.170] has joined #go-nuts
06:50 -!- fusion44 [~quassel@p5B287B26.dip.t-dialin.net] has joined #go-nuts
07:14 -!- nocturnal [~nocturnal@83.209.24.174] has joined #go-nuts
07:18 < nocturnal> i'm having issues learning about slices.  basically i'm
writing some exercises using the regexp package and the func (re *Regexp) Match(b
[]byte) bool takes a slice of a byte array as argument.  at least that's how i
understand it
07:18 < nocturnal> so i have data in a byte array called readData.  i pass
it to the function like this re.Match(readData[0:bytes]) bytes being the maximum
value of my data in the array
07:18 < nocturnal> or the maximum index
07:18 < nocturnal> but i keep getting this error from the compiler
grep.go:61: cannot use (node SLICEARR) (type []uint8) as type string in function
argument
07:20 -!- buggy [~buggler@58.161.137.89] has quit [Ping timeout: 246 seconds]
07:21 -!- buggy [~buggler@58.161.137.89] has joined #go-nuts
07:26 -!- Project_2501 [~Marvin@82.84.91.170] has quit [Quit: E se abbasso questa
leva che succ...]
07:42 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has quit [Read error:
Connection reset by peer]
07:49 -!- rlab [~Miranda@237-217-113-92.pool.ukrtel.net] has joined #go-nuts
07:50 -!- jophish [~jophish@hermi.gotadsl.co.uk] has joined #go-nuts
07:50 -!- jophish_ [~jophish@hermi.gotadsl.co.uk] has joined #go-nuts
07:51 -!- jophish [~jophish@hermi.gotadsl.co.uk] has quit [Remote host closed the
connection]
07:51 -!- jophish_ [~jophish@hermi.gotadsl.co.uk] has quit [Read error: Connection
reset by peer]
07:51 -!- jophish [~jophish@hermi.gotadsl.co.uk] has joined #go-nuts
07:58 -!- aowi [~arkanoid@exherbo/developer/arkanoid] has quit [Ping timeout: 258
seconds]
07:58 -!- _TestamenT_ [~Miranda@staticline25109.toya.net.pl] has joined #go-nuts
08:00 -!- aowi [~arkanoid@exherbo/developer/arkanoid] has joined #go-nuts
08:10 -!- ryan_baker [~ryan_bake@128-193-249-150.resnet.oregonstate.edu] has quit
[Quit: ryan_baker]
08:41 -!- peterdn_ [~peterdn@host81-159-233-247.range81-159.btcentralplus.com] has
joined #go-nuts
08:42 -!- peterdn [~peterdn@host86-135-201-61.range86-135.btcentralplus.com] has
quit [Ping timeout: 246 seconds]
08:44 -!- idea_squirrel [ct2rips@77-22-21-197-dynip.superkabel.de] has joined
#go-nuts
08:52 -!- _TestamenT_ [~Miranda@staticline25109.toya.net.pl] has quit [Ping
timeout: 246 seconds]
08:59 -!- GilJ [~gilles@62.88.28.255] has joined #go-nuts
09:02 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
09:05 -!- _TestamenT_ [~Miranda@staticline25109.toya.net.pl] has joined #go-nuts
09:07 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Quit:
slashus2]
09:09 -!- peterdn [~peterdn@host81-159-233-247.range81-159.btcentralplus.com] has
joined #go-nuts
09:12 -!- peterdn_ [~peterdn@host81-159-233-247.range81-159.btcentralplus.com] has
quit [Ping timeout: 245 seconds]
09:15 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.1.1]
09:19 -!- XniX23 [~vegy@we.will.never-be.afraid.org] has quit [Read error:
Connection reset by peer]
09:24 -!- XniX23 [~vegy@we.will.never-be.afraid.org] has joined #go-nuts
09:25 -!- awidegreen [~quassel@p5B063A9C.dip.t-dialin.net] has joined #go-nuts
09:28 -!- rv2733 [~rv2733@c-98-242-168-49.hsd1.fl.comcast.net] has joined #go-nuts
09:28 -!- nanoo [~nano@95-89-197-255-dynip.superkabel.de] has joined #go-nuts
09:42 -!- HollyRain [~quassel@87.223.124.112] has joined #go-nuts
09:44 -!- nanooo [~nano@95-89-197-255-dynip.superkabel.de] has joined #go-nuts
09:45 -!- nchaimov [~cowtown@c-71-237-208-209.hsd1.or.comcast.net] has joined
#go-nuts
09:47 -!- nanoo [~nano@95-89-197-255-dynip.superkabel.de] has quit [Ping timeout:
265 seconds]
09:50 -!- peterdn [~peterdn@host81-159-233-247.range81-159.btcentralplus.com] has
quit [Quit: ChatZilla 0.9.86-rdmsoft [XULRunner 1.9.0.15/2009101909]]
09:55 -!- fusion44 [~quassel@p5B287B26.dip.t-dialin.net] has quit [Remote host
closed the connection]
09:55 -!- kssreeram [~kssreeram@122.174.66.81] has quit [Quit: kssreeram]
09:56 -!- fusion44 [~quassel@p5B287B26.dip.t-dialin.net] has joined #go-nuts
09:59 -!- fusion44 [~quassel@p5B287B26.dip.t-dialin.net] has quit [Remote host
closed the connection]
10:00 -!- path[l] [~path@120.138.102.34] has quit [Quit: path[l]]
10:06 -!- andrewh [~andrewh@94-194-56-42.zone8.bethere.co.uk] has joined #go-nuts
10:07 -!- surma [~surma@c188222.adsl.hansenet.de] has joined #go-nuts
10:07 -!- peterdn [~peterdn@host81-159-233-247.range81-159.btcentralplus.com] has
joined #go-nuts
10:09 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:5c26:235c:779d:c657] has joined
#go-nuts
10:21 -!- path[l] [UPP@120.138.102.34] has joined #go-nuts
10:22 -!- General13372 [~support@71-93-97-216.dhcp.mtpk.ca.charter.com] has joined
#go-nuts
10:26 -!- General1337 [~support@71-93-97-216.dhcp.mtpk.ca.charter.com] has quit
[Ping timeout: 268 seconds]
10:33 -!- Project_2501 [~Marvin@82.84.91.170] has joined #go-nuts
10:48 -!- nanoo [~nano@95-89-197-255-dynip.superkabel.de] has joined #go-nuts
10:50 -!- nanooo [~nano@95-89-197-255-dynip.superkabel.de] has quit [Ping timeout:
276 seconds]
10:51 -!- ikaros [~ikaros@f051233048.adsl.alicedsl.de] has joined #go-nuts
10:58 -!- marsu [~marsu@ANancy-154-1-24-80.w83-194.abo.wanadoo.fr] has joined
#go-nuts
11:03 -!- prip_ [~foo@host149-132-dynamic.43-79-r.retail.telecomitalia.it] has
quit [Ping timeout: 276 seconds]
11:06 -!- Adys [~Adys@unaffiliated/adys] has quit [Ping timeout: 265 seconds]
11:07 -!- _TestamenT_ [~Miranda@staticline25109.toya.net.pl] has quit [Ping
timeout: 248 seconds]
11:10 -!- rohan [~rohan@59.95.3.170] has joined #go-nuts
11:12 -!- rohan [~rohan@59.95.3.170] has left #go-nuts []
11:13 -!- kanade [~kratos@59.95.3.170] has joined #go-nuts
11:15 -!- prip_ [~foo@host54-133-dynamic.42-79-r.retail.telecomitalia.it] has
joined #go-nuts
11:17 -!- _TestamenT_ [~Miranda@staticline25109.toya.net.pl] has joined #go-nuts
11:18 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
11:36 -!- _TestamenT_ [~Miranda@staticline25109.toya.net.pl] has quit [Read error:
Connection reset by peer]
11:46 -!- TMKCodes [~toni@bbwirelessgw2-fee1dc00-62.dhcp.inet.fi] has quit [Ping
timeout: 276 seconds]
11:59 -!- TMKCodes [~toni@bbwirelessgw2-fee1dc00-62.dhcp.inet.fi] has joined
#go-nuts
12:06 -!- hdon [~donny@c-67-163-244-40.hsd1.pa.comcast.net] has quit [Ping
timeout: 246 seconds]
12:11 -!- andrewh [~andrewh@94-194-56-42.zone8.bethere.co.uk] has quit [Ping
timeout: 265 seconds]
12:19 -!- awidegreen [~quassel@p5B063A9C.dip.t-dialin.net] has quit [Remote host
closed the connection]
12:28 -!- GilJ [~gilles@62.88.28.255] has quit [Remote host closed the connection]
12:32 -!- hdon [~donny@c-67-163-244-40.hsd1.pa.comcast.net] has joined #go-nuts
12:33 -!- kssreeram [~kssreeram@122.174.66.81] has joined #go-nuts
12:45 -!- lux` [lucs@151.95.168.32] has joined #go-nuts
12:51 -!- maht [~m@87.84.137.37] has joined #go-nuts
12:53 -!- perdix [~perdix@sxemacs/devel/perdix] has joined #go-nuts
13:13 -!- surma [~surma@c188222.adsl.hansenet.de] has quit [Quit: Leaving.]
13:16 -!- jophish [~jophish@hermi.gotadsl.co.uk] has quit [Read error: Connection
reset by peer]
13:17 -!- jophish [~jophish@hermi.gotadsl.co.uk] has joined #go-nuts
13:17 -!- jophish [~jophish@hermi.gotadsl.co.uk] has quit [Remote host closed the
connection]
13:19 < kanade> wassup
13:24 -!- surma [~surma@c188222.adsl.hansenet.de] has joined #go-nuts
13:28 -!- GilJ [~gilles@78-22-170-204.access.telenet.be] has joined #go-nuts
13:33 -!- SecretofMana [~mana@142.46.164.30] has joined #go-nuts
13:45 -!- rlab_ [~Miranda@252-172-95-178.pool.ukrtel.net] has joined #go-nuts
13:47 -!- rlab [~Miranda@237-217-113-92.pool.ukrtel.net] has quit [Ping timeout:
276 seconds]
13:48 -!- perdix [~perdix@sxemacs/devel/perdix] has quit [Quit: A cow.  A
trampoline.  Together they fight crime!]
13:49 -!- Fish [~Fish@AVelizy-152-1-72-36.w83-204.abo.wanadoo.fr] has joined
#go-nuts
13:49 -!- Fish- [~Fish@AVelizy-152-1-72-36.w83-204.abo.wanadoo.fr] has joined
#go-nuts
13:49 -!- Fish- [~Fish@AVelizy-152-1-72-36.w83-204.abo.wanadoo.fr] has quit
[Remote host closed the connection]
13:49 -!- Fish- [~Fish@AVelizy-152-1-72-36.w83-204.abo.wanadoo.fr] has joined
#go-nuts
13:49 -!- Fish- [~Fish@AVelizy-152-1-72-36.w83-204.abo.wanadoo.fr] has quit
[Remote host closed the connection]
13:49 -!- Fish [~Fish@AVelizy-152-1-72-36.w83-204.abo.wanadoo.fr] has quit [Remote
host closed the connection]
13:54 -!- rlab_ [~Miranda@252-172-95-178.pool.ukrtel.net] has quit [Read error:
Connection reset by peer]
13:55 -!- HollyRain [~quassel@87.223.124.112] has quit [Quit:
http://quassel-irc.org - Chat comfortably.  Anywhere.]
14:04 -!- meanburrito920 [~john@kiwi.STUDENT.CWRU.Edu] has joined #go-nuts
14:04 -!- meanburrito920 [~john@kiwi.STUDENT.CWRU.Edu] has quit [Changing host]
14:04 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has joined #go-nuts
14:07 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts
14:13 -!- kanade [~kratos@59.95.3.170] has quit [Ping timeout: 276 seconds]
14:13 -!- jA_cOp_ [~yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts
14:14 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has quit [Read error:
Connection reset by peer]
14:23 -!- OpenSpace [~ja@109.93.140.253] has joined #go-nuts
14:25 -!- andrewh [~andrewh@85.92.214.131] has joined #go-nuts
14:27 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has quit [Ping
timeout: 248 seconds]
14:29 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has joined #go-nuts
14:35 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has joined #go-nuts
14:55 -!- ikaros [~ikaros@f051233048.adsl.alicedsl.de] has quit [Quit: Leave the
magic to Houdini]
14:59 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
15:03 -!- mikedee [~quassel@91.108.71.139] has quit [Remote host closed the
connection]
15:05 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has quit [Read error:
Operation timed out]
15:05 -!- mikedee [~quassel@91.108.71.139] has joined #go-nuts
15:05 -!- manveru [kailan@make-world.info] has joined #go-nuts
15:11 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has joined #go-nuts
15:15 -!- General1337 [~support@71-93-97-216.dhcp.mtpk.ca.charter.com] has joined
#go-nuts
15:19 -!- General13372 [~support@71-93-97-216.dhcp.mtpk.ca.charter.com] has quit
[Ping timeout: 268 seconds]
15:24 < manveru> Kashia: around?
15:25 < Kashia> manveru, aye
15:25 < manveru> since my last attempt failed, i'm trying a different
approach now
15:26 < Kashia> aye, had just wanted to ask if your initial disappointment
subsided ;)
15:26 < manveru> lol
15:26 < Kashia> so yah, go ahead, will try to have answers :)
15:26 < manveru> no, i think go is in any case better than messing with C or
C++
15:27 < Kashia> *g* that I don't know yet, but I do think it is worth a try
15:27 < manveru> well, i'm trying to use polymorphic functions
15:27 < manveru> not sure if there is such a thing
15:27 * Kashia looks up on that term
15:27 < manveru> like, in dylan, you can define two functiosn that take
different types, and depending on the type it calls a different function
15:28 < manveru> maybe also called pattern matching, though that's a
different thing afaicr
15:28 < Kashia> ah.  ok, no, there aren't
15:28 < manveru> i discovered that fmt has %v, which i assume is kinda the
thing of pretty printing i want
15:28 < manveru> but if i do something like func p(object){
fmt.Fprintln(os.Stdout, "%v", object) }
15:29 < manveru> what's the type supposed to be?
15:29 < manveru> Interface{} or whatever that was?
15:29 < manveru> func p(object Interface{}){ gives me a syntax error
15:29 < Kashia> well, for Fprintln() it is probably using varargs
15:30 < Kashia> lowercase.  interface{}
15:30 < manveru> ah, perfect
15:33 < manveru> and how comes the Fprintln function can take anything?
15:33 < manveru> ah, it takes interface{} too
15:34 < Kashia> its definition is pobably: func Fprintf(i os.File, fmt
string, args ...)
15:34 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has quit [Read error:
Operation timed out]
15:34 < manveru> yeah, kinda
15:35 < Kashia> ah, args ...interface{}
15:36 < manveru> http://golang.org/src/pkg/fmt/print.go#L781
15:36 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has joined #go-nuts
15:37 < Kashia> http://paste.pocoo.org/show/197179/
15:37 < Kashia> that looks kida what you're after?
15:37 < Kashia> it isn't really a ruby p() but it comes reasonably close
15:38 < manveru> yeah
15:38 < Kashia> and it probably only works for a single value now..
15:38 < manveru> sorry, it's just what i'm used to for debugging
15:39 < manveru> i assume there's no repl yet?
15:39 < Kashia> don't apologize, I use printf style debugging too :P
15:39 < Kashia> I think they began one...  there is a Go evaluator somewhere
included
15:41 < manveru> i think i actually prefer %#v
15:41 < Kashia> oh, nice.  that I didn't know
15:43 < manveru> hmm
15:43 < manveru> now i get segfaults again
15:43 < Kashia> do paste?
15:43 < manveru> http://pastr.it/16746
15:44 < Kashia> 0x4..
15:44 < Kashia> are you sure that grammar and error are both there?
15:44 < manveru> error is nil
15:44 < Kashia> I mean, I would only print grammar if there is no error
15:45 < manveru> you can try with only one argument to p
15:45 -!- marsu [~marsu@ANancy-154-1-24-80.w83-194.abo.wanadoo.fr] has quit [Quit:
Leaving]
15:46 < Kashia> http://paste.pocoo.org/show/197183/
15:46 < Kashia> like that it doesn't segfault
15:46 < Kashia> so apparently it died on a non-existant error
15:47 < manveru> but i can do like p(grammar); p(error)
15:47 < manveru> and it works
15:47 < Kashia> it also works with "%s %#v"
15:48 < manveru> right
15:48 < Kashia> so I guess it can't handle nil arguments without a % in the
format string
15:48 < manveru> that's unfortunate...
15:48 < Kashia> well, you could build the format string
15:49 < manveru> but then i'd have to know the incoming types
15:49 < manveru> no thanks
15:49 < Kashia> nope, just %#v
15:49 < manveru> yeah, but then i'd start out making it prettier :)
15:50 < manveru> it's enough to have a message and object for now
15:50 < Kashia> well, there is always room for improvement :P
15:50 < manveru> i'll just make p require two arguments
15:50 < manveru> yeah
15:51 < manveru> still not as fast to write as: `p foo: foo`, but good
enough for now
15:51 < manveru> now i just have to find out what to do with a ebnf.Grammar
thingy
15:52 < Kashia> well, you can validate it :P
15:52 < Kashia> I was utterly disappointed when I discovered what its used
for
15:52 < manveru> oO
15:53 < manveru> good thing i didn't actually spend much time on that then
:)
15:53 < Kashia> well, it depends on what you want to use it for ;) the Go
creators use it to double check their ebnf of go for errors.  at least that's what
my impressio is
15:54 < Kashia> impression*
15:54 < manveru> yeah
15:54 < manveru> well, right now i have the syntax of oxid written in
stringscanner style for ruby and neko
15:55 < manveru> so i don't have an ebnf for it yet
15:55 < manveru> and i'm not sure it's possible to express as one
15:56 < manveru> seems like go uses the same approach
15:56 < manveru> http://golang.org/src/pkg/go/scanner/scanner.go
15:58 < Kashia> well, maybe you can even reuse the scanner?
16:01 < manveru> no, it doesn't seem like their scanner has any way of
associating the original source with the tokens
16:02 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
16:02 < Kashia> ah
16:02 < manveru> i'd like to be able to keep the original in memory
16:02 < Kashia> *nod*
16:02 < manveru> go doesn't have to care :)
16:03 < manveru> http://pastr.it/16747
16:04 < manveru> that's the one in neko
16:05 < manveru> doesn't look too bad for such a minimal language
16:10 < manveru> of course, i had to implement the Buffer, StringScanner,
and Tuple there, but still
16:10 < Kashia> well, you'll probably need something similar in Go too
16:10 < manveru> you got a quick example of writing specs?
16:11 < Kashia> unsure if there's already a string-scanner
16:11 < Kashia> there is a Spec testing lib somewhere
16:11 < Kashia> I just do regular testing
16:12 < Kashia> http://paste.pocoo.org/show/197191/
16:13 < Kashia> but, see the Go tutorial for a quick introduction to testing
16:13 < manveru> http://github.com/orfjackal/gospec ?
16:14 < Kashia>
http://golang.org/doc/go_programming_faq.html#Packages_Testing
16:15 < Kashia> yeah maybe, they didn't look too interesting to me
16:15 < Kashia> too verbose
16:15 < manveru> indeed
16:15 < manveru> i think i'll start with
http://golang.org/pkg/testing/quick/
16:16 < manveru> don't really feel comfortable without doing tests first
16:17 < Kashia> hehe :)
16:22 -!- Gracenotes [~person@wikipedia/Gracenotes] has quit [Remote host closed
the connection]
16:25 < manveru> hrm
16:25 -!- tav [~tav@89.240.57.83] has joined #go-nuts
16:26 < manveru> did the syntax for import change?
16:26 < manveru> doesn't look like
16:29 < manveru> wtf
16:29 < manveru> return(1 * 2) says "too many arguments to return"
16:30 < KirkMcDonald> manveru: Does the function have a return type?
16:30 < manveru> func b(x int){ return(x * 2) }
16:30 < KirkMcDonald> Then no.
16:30 < manveru> i assume go knows enough to know it's an int?
16:31 < manveru> might be a bignum if there's such a thing in go
16:31 < KirkMcDonald> func b(x int) int { return x * 2 }
16:32 < manveru> ok...
16:32 < KirkMcDonald> Go does not infer the return types of functions.
16:32 < manveru> so there's no implicit typing or returning?
16:32 < KirkMcDonald> Correct.
16:32 < manveru> :(
16:33 < KirkMcDonald> I do recommend just reading the Go spec.
16:34 < manveru> KirkMcDonald: do you have experience with quick.CheckEqual?
16:35 < KirkMcDonald> No.
16:35 < KirkMcDonald> I don't even know what 'quick' is.
16:35 < KirkMcDonald> Oh, testing/quick.
16:36 < manveru> it's from testing/quick
16:37 < KirkMcDonald> Never used it.
16:37 < KirkMcDonald> Fuzz testing is fun, though.
16:38 < manveru> oh, it's about that?
16:38 < KirkMcDonald> So far as I can tell.  It calls stuff with random
inputs.
16:38 < manveru> sorry, i had no idea what black box means in that case
16:39 < manveru> so there is no testing framework in the go distribution?
16:39 < KirkMcDonald> There is testing.
16:40 -!- Quadrescence [~quad@unaffiliated/quadrescence] has left #go-nuts
["inorite"]
16:40 < manveru> Kashia pointed me to
http://golang.org/doc/go_programming_faq.html#Packages_Testing
16:40 < manveru> but it doesn't really tell me what goes inside that TestFoo
16:40 < KirkMcDonald> Why not go to the source?
http://golang.org/pkg/testing/
16:40 -!- jophish [~jophish@hermi.gotadsl.co.uk] has joined #go-nuts
16:41 < manveru> thanks, i didn't realize that namespace was actually a
package itself
16:41 < Kashia> manveru, http://paste.pocoo.org/show/197202/
16:41 < Kashia> inside there is something like this
16:42 < Kashia> t.Error() calls when tests fail
16:42 < KirkMcDonald> Here are my optparse package's unit tests:
http://code.google.com/p/optparse-go/source/browse/optparse_test.go
16:43 < manveru> thank you :)
16:44 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:5c26:235c:779d:c657] has quit
[Ping timeout: 276 seconds]
16:44 < manveru> KirkMcDonald: i definitely like assertEqual better than
Kashias checking for nil all over the place :)
16:45 < Kashia> granted, I could encapsulate all my checks a little, yes ;)
16:45 < KirkMcDonald> I took inspiration from Python's unittest module:
http://docs.python.org/library/unittest#testcase-objects
16:46 < manveru> KirkMcDonald: exactly
16:46 < KirkMcDonald> assertEqual has the useful property of printing the
actual values which were not equal.
16:46 < manveru> though i don't know python that well, but i'm familiar
enough with unit-testing from ruby
16:47 -!- Discoloda [~vincent@adsl-76-194-167-196.dsl.frs2ca.sbcglobal.net] has
joined #go-nuts
16:49 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:5c26:235c:779d:c657] has joined
#go-nuts
16:54 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:5c26:235c:779d:c657] has quit
[Ping timeout: 276 seconds]
16:57 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:5c26:235c:779d:c657] has joined
#go-nuts
17:04 < manveru> KirkMcDonald: thanks again, i have my first failing tests
:D
17:04 -!- gnuvince_ [~vince@70.54.228.146] has joined #go-nuts
17:05 -!- kanru [~kanru@61-228-153-197.dynamic.hinet.net] has quit [Ping timeout:
276 seconds]
17:05 -!- carllerche [~carllerch@208.87.61.146] has joined #go-nuts
17:05 < manveru> about time to get some sleep
17:07 -!- General13372 [~support@71-93-97-216.dhcp.mtpk.ca.charter.com] has joined
#go-nuts
17:10 -!- General1337 [~support@71-93-97-216.dhcp.mtpk.ca.charter.com] has quit
[Ping timeout: 276 seconds]
17:16 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts
17:25 -!- Xera` [~brit@87-194-208-246.bethere.co.uk] has joined #go-nuts
17:27 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has quit [Ping timeout: 240
seconds]
17:30 -!- kssreeram [~kssreeram@122.174.66.81] has quit [Quit: kssreeram]
17:31 -!- kssreeram [~kssreeram@122.174.66.81] has joined #go-nuts
17:54 -!- zard_ [~dpx@c-68-35-150-172.hsd1.nm.comcast.net] has joined #go-nuts
17:54 -!- zard [~dpx@c-68-35-150-172.hsd1.nm.comcast.net] has quit [Read error:
Connection reset by peer]
17:54 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has quit [Ping
timeout: 245 seconds]
17:57 -!- meanburrito920 [~john@192.5.109.49] has joined #go-nuts
17:57 -!- meanburrito920 [~john@192.5.109.49] has quit [Changing host]
17:57 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has joined #go-nuts
18:08 -!- idea_squirrel [ct2rips@77-22-21-197-dynip.superkabel.de] has quit [Quit:
Verlassend]
18:12 -!- bjarneh [~bjarneh@227.80-203-30.nextgentel.com] has joined #go-nuts
18:18 -!- Nexoro [~Nexoro@c-71-192-75-183.hsd1.ma.comcast.net] has joined #go-nuts
18:21 -!- sfuentes [~sfuentes@cpe-76-90-205-165.socal.res.rr.com] has joined
#go-nuts
18:21 -!- aho [~nya@g227032250.adsl.alicedsl.de] has joined #go-nuts
18:23 < sfuentes> anyone know how to use gofmt to remove the semicolons in a
program?
18:25 < nocturnal> all semicolons?
18:25 < nocturnal> perl -pi -e 's/;//g' *.go
18:25 < nocturnal> or just use sed
18:25 < nocturnal> or even tr
18:33 -!- tgall_foo [~tgall@gentoo/developer/dr-who] has quit [Ping timeout: 246
seconds]
18:33 < kmeyer> nocturnal: that's bad for for loops ;)
18:34 < kmeyer> sfuentes: gofmt -w foo.go # should do it
18:35 < nocturnal> heh
18:37 -!- path[l] [UPP@120.138.102.34] has quit [Ping timeout: 240 seconds]
18:38 -!- path[l] [UPP@120.138.102.34] has joined #go-nuts
18:48 < sfuentes> awesome.  thanks gentlemen
18:49 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has quit [Ping
timeout: 240 seconds]
18:51 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has joined #go-nuts
18:55 -!- sfuentes [~sfuentes@cpe-76-90-205-165.socal.res.rr.com] has left
#go-nuts []
18:56 -!- Nexoro [~Nexoro@c-71-192-75-183.hsd1.ma.comcast.net] has left #go-nuts
[]
19:04 -!- hstimer [~hstimer@2002:62ea:197d:0:226:bbff:fe05:dd9b] has joined
#go-nuts
19:04 -!- ayo [~nya@e176249087.adsl.alicedsl.de] has joined #go-nuts
19:07 -!- gnuvince_ [~vince@70.54.228.146] has quit [Ping timeout: 276 seconds]
19:08 -!- aho [~nya@g227032250.adsl.alicedsl.de] has quit [Ping timeout: 264
seconds]
19:19 -!- gnuvince_ [~vince@70.54.228.146] has joined #go-nuts
19:19 -!- buggy [~buggler@58.161.137.89] has quit [Read error: Connection reset by
peer]
19:19 -!- buggy [~buggler@58.161.137.89] has joined #go-nuts
19:23 -!- Xurix [~Luixsia@AToulouse-254-1-36-9.w81-250.abo.wanadoo.fr] has joined
#go-nuts
19:23 -!- lucs__ [lux`@151.95.168.32] has joined #go-nuts
19:24 -!- bthomson [~bthomson@c-69-255-188-5.hsd1.va.comcast.net] has quit [Read
error: Connection reset by peer]
19:25 -!- lux` [lucs@151.95.168.32] has quit [Ping timeout: 265 seconds]
19:34 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has quit [Ping
timeout: 245 seconds]
19:38 -!- tgall_foo [~tgall@206.9.88.154] has joined #go-nuts
19:38 -!- tgall_foo [~tgall@206.9.88.154] has quit [Changing host]
19:38 -!- tgall_foo [~tgall@gentoo/developer/dr-who] has joined #go-nuts
19:39 -!- bthomson [~bthomson@c-69-255-188-5.hsd1.va.comcast.net] has joined
#go-nuts
19:39 -!- gnuvince_ [~vince@70.54.228.146] has quit [Ping timeout: 264 seconds]
19:42 -!- mertimor [~mertimor@p578ED932.dip.t-dialin.net] has joined #go-nuts
19:46 -!- mertimor [~mertimor@p578ED932.dip.t-dialin.net] has quit [Client Quit]
19:55 -!- meanburrito920 [~john@kiwi.STUDENT.CWRU.Edu] has joined #go-nuts
19:55 -!- meanburrito920 [~john@kiwi.STUDENT.CWRU.Edu] has quit [Changing host]
19:55 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has joined #go-nuts
20:13 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts
20:22 -!- lux` [lux`@151.95.168.32] has joined #go-nuts
20:23 -!- nanoo [~nano@95-89-197-255-dynip.superkabel.de] has quit [Quit: Leaving]
20:25 -!- lucs__ [lux`@151.95.168.32] has quit [Ping timeout: 245 seconds]
20:35 -!- mbarkhau [~koloss@dslb-084-059-161-165.pools.arcor-ip.net] has joined
#go-nuts
20:51 -!- carllerche [~carllerch@208.87.61.146] has quit [Quit: carllerche]
20:53 -!- bmizerany [~bmizerany@c-24-6-37-113.hsd1.ca.comcast.net] has quit [Ping
timeout: 276 seconds]
20:53 -!- rsaarelm [~rsaarelm@cs181128175.pp.htv.fi] has quit [Read error:
Connection reset by peer]
20:54 -!- bmizerany [~bmizerany@c-24-6-37-113.hsd1.ca.comcast.net] has joined
#go-nuts
20:54 -!- rsaarelm [~rsaarelm@cs181128175.pp.htv.fi] has joined #go-nuts
20:55 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has quit [Ping
timeout: 246 seconds]
20:57 -!- meanburrito920 [~john@192.5.109.49] has joined #go-nuts
20:57 -!- meanburrito920 [~john@192.5.109.49] has quit [Changing host]
20:57 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has joined #go-nuts
20:58 -!- Luixsia [~Luixsia@AToulouse-254-1-54-197.w81-49.abo.wanadoo.fr] has
joined #go-nuts
21:00 -!- Xurix [~Luixsia@AToulouse-254-1-36-9.w81-250.abo.wanadoo.fr] has quit
[Ping timeout: 245 seconds]
21:03 -!- gufetto [~Marvin@82.84.91.170] has quit [Quit: oink!]
21:10 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:5c26:235c:779d:c657] has quit
[Quit: Leaving.]
21:37 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by
peer]
21:53 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Quit:
slashus2]
21:54 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has quit [Remote host
closed the connection]
21:55 -!- meanburrito920 [~john@kiwi.STUDENT.CWRU.Edu] has joined #go-nuts
21:55 -!- meanburrito920 [~john@kiwi.STUDENT.CWRU.Edu] has quit [Changing host]
21:55 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has joined #go-nuts
22:10 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Quit:
leaving]
22:10 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
22:22 -!- General1337 [~support@71-93-97-216.dhcp.mtpk.ca.charter.com] has joined
#go-nuts
22:22 -!- Soultaker [~maks@hell.student.utwente.nl] has joined #go-nuts
22:25 < Soultaker> Hi everyone.  Can anyone tell me why this won't compile?
http://pastebin.com/DyNMTDgy
22:26 -!- General13372 [~support@71-93-97-216.dhcp.mtpk.ca.charter.com] has quit
[Ping timeout: 248 seconds]
22:37 < KirkMcDonald> Soultaker: Your type 'foo' does not include the method
set of type *List.
22:37 < KirkMcDonald> http://golang.org/doc/go_spec.html#Type_declarations
22:40 -!- scm [justme@c178097.adsl.hansenet.de] has quit [Ping timeout: 276
seconds]
22:42 -!- scm [justme@c132028.adsl.hansenet.de] has joined #go-nuts
22:55 -!- maht [~m@87.84.137.37] has quit [Ping timeout: 260 seconds]
23:01 -!- carllerche [~carllerch@208.87.61.146] has joined #go-nuts
23:04 -!- g0bl1n [~pr0kter@a89-152-233-110.cpe.netcabo.pt] has joined #go-nuts
23:11 -!- wuehlmaus [~wuehlmaus@p4FCC7553.dip.t-dialin.net] has quit [Ping
timeout: 260 seconds]
23:15 -!- wuehlmaus [~wuehlmaus@p4FCC407E.dip.t-dialin.net] has joined #go-nuts
23:22 -!- GilJ [~gilles@78-22-170-204.access.telenet.be] has quit [Remote host
closed the connection]
23:27 -!- mbarkhau [~koloss@dslb-084-059-161-165.pools.arcor-ip.net] has quit
[Quit: Leaving.]
23:29 -!- carllerche [~carllerch@208.87.61.146] has quit [Quit: carllerche]
23:39 -!- ajstarks [~ajstarks@static-68-236-212-209.nwrk.east.verizon.net] has
joined #go-nuts
23:44 -!- kanru [~kanru@61-228-152-57.dynamic.hinet.net] has joined #go-nuts
23:44 -!- g0bl1n [~pr0kter@a89-152-233-110.cpe.netcabo.pt] has quit [Quit:
Leaving]
23:45 -!- ajstarks [~ajstarks@static-68-236-212-209.nwrk.east.verizon.net] has
left #go-nuts []
--- Log closed Sun Apr 04 00:00:37 2010