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

--- Log opened Sat May 08 00:00:56 2010
00:00 -!- rhelmer [~rhelmer@adsl-69-107-84-218.dsl.pltn13.pacbell.net] has quit
[Quit: rhelmer]
00:01 -!- teralaser [~teralaser@unaffiliated/teralaser] has quit [Quit: Very funny
Scottie.  Now beam down my clothes!]
00:10 -!- arcade_ [~arcade@cpe-76-171-5-232.socal.res.rr.com] has quit [Quit:
arcade_]
00:11 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has joined
#go-nuts
00:23 -!- General13372 [~support@71-93-96-131.dhcp.mtpk.ca.charter.com] has joined
#go-nuts
00:24 -!- arcade_ [~arcade@cpe-76-171-5-232.socal.res.rr.com] has joined #go-nuts
00:26 -!- General1337 [~support@71-93-96-131.dhcp.mtpk.ca.charter.com] has quit
[Ping timeout: 240 seconds]
00:31 -!- tvw [~tv@e176001200.adsl.alicedsl.de] has quit [Ping timeout: 265
seconds]
00:31 -!- jimi_hendrix [~jimi@unaffiliated/jimihendrix] has joined #go-nuts
00:32 < jimi_hendrix> hello, which function should i look at for downloading
the webpage source in the library?
00:32 -!- napsy [~luka@88.200.96.14] has quit [Ping timeout: 265 seconds]
00:34 < exch> jimi_hendrix: check out the http package.  It has a Get()
function
00:34 < jimi_hendrix> thanks
00:38 < jimi_hendrix> exch, also, is there a ncurses-like package?
00:39 < exch> if there is, it's gonna be listed here:
http://go-lang.cat-v.org/library-bindings
00:39 < exch> looks like there's 'termbox' and 'gocurses'
00:42 < xorl> wonder if there is a cocoa one
00:44 -!- datamonger [~datamonge@75.142.254.130] has quit [Quit: Leaving]
00:47 < jimi_hendrix> thanks
00:48 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has quit [Read
error: Connection reset by peer]
00:52 -!- iant [~iant@67.218.109.13] has joined #go-nuts
00:52 -!- mode/#go-nuts [+v iant] by ChanServ
00:54 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has joined
#go-nuts
00:54 -!- rv2733 [~rv2733@c-98-242-168-49.hsd1.fl.comcast.net] has quit [Quit:
Leaving]
00:59 -!- thiago [~thiago@189.107.142.146] has joined #go-nuts
01:02 -!- Squarism [~asdf@194-237-183-250.customer.telia.com] has quit [Ping
timeout: 268 seconds]
01:05 -!- jimi_hendrix [~jimi@unaffiliated/jimihendrix] has left #go-nuts
["Leaving"]
01:19 -!- bmizerany [~bmizerany@dsl081-064-072.sfo1.dsl.speakeasy.net] has quit
[Remote host closed the connection]
01:26 < plexdev> http://is.gd/bZsPl by [Robert Griesemer] in go/doc/ -- go
spec: simplify section on channel types
01:30 -!- XenoPhoenix [~Xeno@cpc5-aztw24-2-0-cust39.aztw.cable.virginmedia.com]
has quit [Read error: Operation timed out]
01:30 -!- XenoPhoenix [~Xeno@cpc5-aztw24-2-0-cust39.aztw.cable.virginmedia.com]
has joined #go-nuts
01:42 < plexdev> http://is.gd/bZtMa by [Robert Griesemer] in go/src/pkg/big/
-- big: more cleanup
01:53 -!- iant [~iant@67.218.109.13] has quit [Ping timeout: 240 seconds]
02:06 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Ping timeout: 240
seconds]
02:29 -!- douglas19 [~douglas19@187.34.61.76] has joined #go-nuts
02:35 -!- ikke [~ikke@unaffiliated/ikkebr] has quit []
02:47 -!- arcade_ [~arcade@cpe-76-171-5-232.socal.res.rr.com] has quit [Quit:
arcade_]
03:00 -!- arcade_ [~arcade@cpe-76-171-5-232.socal.res.rr.com] has joined #go-nuts
03:00 -!- anschelsc [~anschel@pool-98-116-141-175.nwrknj.fios.verizon.net] has
joined #go-nuts
03:04 -!- thiago [~thiago@189.107.142.146] has quit [Ping timeout: 245 seconds]
03:21 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Quit:
slashus2]
03:21 -!- arcade_ [~arcade@cpe-76-171-5-232.socal.res.rr.com] has quit [Quit:
arcade_]
03:22 -!- arcade_ [~arcade@cpe-76-171-5-232.socal.res.rr.com] has joined #go-nuts
03:24 -!- no_mind_ [~orion@122.162.136.125] has joined #go-nuts
03:27 -!- arcade_ [~arcade@cpe-76-171-5-232.socal.res.rr.com] has quit [Quit:
arcade_]
03:28 -!- no_mind [~orion@122.162.2.212] has quit [Ping timeout: 276 seconds]
03:35 -!- Agu10 [~Agu_10_@190.244.107.142] has quit [Quit: Saliendo]
03:41 -!- anschelsc [~anschel@pool-98-116-141-175.nwrknj.fios.verizon.net] has
quit [Quit: leaving]
04:01 -!- itrekkie [~itrekkie@ip98-165-246-56.ph.ph.cox.net] has joined #go-nuts
04:06 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts
04:07 -!- b00m_chef [~watr@d64-180-45-230.bchsia.telus.net] has joined #go-nuts
04:08 -!- warthurton [~warthurto@pdpc/supporter/active/warthurton] has quit [Quit:
warthurton]
04:22 -!- tsykoduk [~tsykoduk@2001:470:1f04:671:20d:93ff:fe77:1dc4] has quit
[Quit: This is Free Trader Beowulf, calling anyone...  Mayday, Mayday...]
04:23 < itrekkie> Can someone point me toward some resources regarding
layout of a project, particularly how to split up amongst a bunch of files/import
them from a "main" file
04:27 < jessta> itrekkie: generally people put each package in a directory
of it's own with a make file
04:27 -!- gordolinux [~gordolinu@189.115.33.89] has joined #go-nuts
04:28 < itrekkie> jessta: I'm doing that now, using the Makefile from the
"how to write go code" page; I'm interested in producing an executable and import
other files
04:29 < gordolinux> any way to convert a []interface{} to []T with type
assertions?
04:29 < jessta> gordolinux: sure, just loop through the each one
04:32 < gordolinux> i meant without loops, but i guess the answer is "no"
then
04:32 < jessta> how else would you do it?
04:33 < gordolinux> i was trying something like iface.([]string)
04:34 < gordolinux> obviously, it didn't work
04:34 < jessta> how do you know that all the items in the []interface{} are
strings?
04:35 < gordolinux> is was trying to use that with iterable.StringArray
04:36 < gordolinux> but it's not so useful since iterable.Data() returns a
[]interface{}
04:39 < gordolinux> i can wrap it, but then the code will be as big as not
using iterable at all
04:39 < jessta> gordolinux: what are you trying to do?
04:39 < chaos95> if you know that /win 44
04:40 < chaos95> oops, sorry folks
04:40 < gordolinux> jessta: drop the commented lines from a file
04:40 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts
04:40 -!- mode/#go-nuts [+v iant] by ChanServ
04:41 < jessta> gordolinux: what are you using iterable.Data() for?
04:42 < gordolinux> i'm doing something like: ul :=
iterable.Data(iterable.Filter(iterable.StringArray(lines), notComment))
04:45 -!- illya77 [~illya77@7-156-178-94.pool.ukrtel.net] has joined #go-nuts
04:46 < jessta> you could drop the iterable.Data and use the Iterable.Iter()
in a for loop with a type assertion to build your []string
04:47 < gordolinux> yeah, i guess i'll have to do that.  thanks jessta.
05:00 -!- eikenberry [~jae@mail.zhar.net] has quit [Ping timeout: 265 seconds]
05:01 -!- scm [justme@c132196.adsl.hansenet.de] has quit [Ping timeout: 246
seconds]
05:08 -!- scm [justme@c155072.adsl.hansenet.de] has joined #go-nuts
05:30 -!- General1337 [~support@71-93-96-131.dhcp.mtpk.ca.charter.com] has joined
#go-nuts
05:34 -!- General13372 [~support@71-93-96-131.dhcp.mtpk.ca.charter.com] has quit
[Ping timeout: 248 seconds]
05:39 -!- itrekkie [~itrekkie@ip98-165-246-56.ph.ph.cox.net] has quit [Quit:
itrekkie]
05:41 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
05:47 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Quit:
slashus2]
05:47 -!- arcade_ [~arcade@cpe-76-171-5-232.socal.res.rr.com] has joined #go-nuts
05:53 -!- BrowserUk [~irc1_20_B@78.144.242.146] has joined #go-nuts
05:54 -!- BrowserUk [~irc1_20_B@78.144.242.146] has left #go-nuts []
05:57 -!- warthurton [~warthurto@cpe-67-244-138-4.rochester.res.rr.com] has joined
#go-nuts
05:57 -!- warthurton [~warthurto@cpe-67-244-138-4.rochester.res.rr.com] has quit
[Changing host]
05:57 -!- warthurton [~warthurto@pdpc/supporter/active/warthurton] has joined
#go-nuts
06:04 -!- path[l] [UPP@120.138.102.34] has joined #go-nuts
06:16 -!- arcade_ [~arcade@cpe-76-171-5-232.socal.res.rr.com] has quit [Quit:
arcade_]
06:28 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
06:37 -!- arcade_ [~arcade@cpe-76-171-5-232.socal.res.rr.com] has joined #go-nuts
06:47 -!- b00m_chef [~watr@d64-180-45-230.bchsia.telus.net] has quit [Ping
timeout: 246 seconds]
06:59 -!- Guest8961 [~hunterm@cpe-071-071-229-180.carolina.res.rr.com] has joined
#go-nuts
07:02 -!- kobkrit [~kobkrit@2001:200:141:6151:224:21ff:fe1e:4d16] has joined
#go-nuts
07:07 -!- hunterm [~hunterm@cpe-071-071-229-180.carolina.res.rr.com] has quit
[Ping timeout: 240 seconds]
07:20 -!- marsu [~marsu@ANancy-154-1-22-194.w83-194.abo.wanadoo.fr] has joined
#go-nuts
07:28 -!- debuser [~asd@93.155.147.131] has joined #go-nuts
07:39 -!- tumdum [~tumdum@unaffiliated/tumdum] has joined #go-nuts
07:40 -!- tumdum [~tumdum@unaffiliated/tumdum] has quit [Client Quit]
07:40 -!- krzyma [~krzyma@ip3195.t15.ds.pwr.wroc.pl] has joined #go-nuts
07:42 -!- napsy [~luka@88.200.96.14] has joined #go-nuts
07:58 -!- awidegreen [~quassel@62.176.237.78] has joined #go-nuts
08:00 -!- douglas19 [~douglas19@187.34.61.76] has quit [Quit: douglas19]
08:02 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
08:02 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
08:04 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
08:04 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
08:05 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
08:06 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
08:10 -!- douglas19 [~douglas19@187.34.61.76] has joined #go-nuts
08:10 -!- douglas19 [~douglas19@187.34.61.76] has quit [Client Quit]
08:10 -!- douglas19 [~douglas19@187.34.61.76] has joined #go-nuts
08:31 -!- arcade_ [~arcade@cpe-76-171-5-232.socal.res.rr.com] has quit [Quit:
arcade_]
08:34 -!- tumdum [~tumdum@unaffiliated/tumdum] has joined #go-nuts
08:39 -!- tumdum_ [~tumdum@aup137.neoplus.adsl.tpnet.pl] has joined #go-nuts
08:39 -!- tumdum_ [~tumdum@aup137.neoplus.adsl.tpnet.pl] has quit [Changing host]
08:39 -!- tumdum_ [~tumdum@unaffiliated/tumdum] has joined #go-nuts
08:43 -!- tumdum [~tumdum@unaffiliated/tumdum] has quit [Ping timeout: 276
seconds]
08:44 -!- ArcadeLotus [~Lotus@cpe-76-171-5-232.socal.res.rr.com] has joined
#go-nuts
08:45 -!- ArcadeLotus [~Lotus@cpe-76-171-5-232.socal.res.rr.com] has quit [Client
Quit]
08:47 -!- belkiss [~belkiss@drn13-1-78-235-168-105.fbx.proxad.net] has joined
#go-nuts
08:49 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-179-135.clienti.tiscali.it] has
joined #go-nuts
08:50 -!- no_mind_ [~orion@122.162.136.125] has quit [Quit: Leaving]
08:55 -!- douglas19 [~douglas19@187.34.61.76] has quit [Quit: douglas19]
08:57 -!- tumdum [~tumdum@unaffiliated/tumdum] has quit [Ping timeout: 260
seconds]
09:02 -!- ikaros [~ikaros@g227026144.adsl.alicedsl.de] has joined #go-nuts
09:08 -!- dizm [~dizm@121.98.168.127] has joined #go-nuts
09:08 -!- dizm [~dizm@121.98.168.127] has left #go-nuts []
09:09 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
09:17 < napsy> Why can't I write a for loop as " for ; str, err :=
r.ReadString(' '); err != nil {
09:17 < napsy> ?
09:18 -!- Fish [~Fish@9fans.fr] has joined #go-nuts
09:20 < jessta> napsy: I don't think that's right
09:20 < jessta> you can't assign in a condition
09:21 < napsy> oh
09:22 < jessta> for str,err := r.ReadingString(' '); err!=nil; str,err =
r.ReadString(' ') {
09:22 < napsy> hm that's not very pretty
09:24 < jessta> what is unpretty about it?
09:24 < napsy> the call to ReadString() repeats
09:25 < napsy> well the call doesn't repeat but is written twice
09:39 -!- tumdum [~tumdum@unaffiliated/tumdum] has joined #go-nuts
09:57 -!- wrtp [~rog@78.144.165.123] has joined #go-nuts
09:58 -!- exch [~nuada@h144170.upc-h.chello.nl] has quit [Read error: Connection
reset by peer]
09:59 -!- exch [~nuada@h144170.upc-h.chello.nl] has joined #go-nuts
10:13 -!- exch [~nuada@h144170.upc-h.chello.nl] has quit [Read error: Connection
reset by peer]
10:14 -!- napsy [~luka@88.200.96.14] has quit [Ping timeout: 246 seconds]
10:15 -!- Fish [~Fish@9fans.fr] has quit [Remote host closed the connection]
10:17 -!- exch [~nuada@h144170.upc-h.chello.nl] has joined #go-nuts
10:18 -!- napsy [~luka@88.200.96.14] has joined #go-nuts
10:18 -!- rbn_ [~ruben@134.102.3.25] has joined #go-nuts
10:22 -!- pjm0616 [~user@61.250.113.98] has quit [Ping timeout: 252 seconds]
10:23 -!- Netsplit *.net <-> *.split quits: tsuzuki_, jlouis, Paradox924X,
az, rbn, korfuri, viirya
10:23 -!- Ideal [~Ideal@ideal-1-pt.tunnel.tserv6.fra1.ipv6.he.net] has joined
#go-nuts
10:25 -!- Netsplit over, joins: tsuzuki_
10:25 -!- Netsplit over, joins: viirya, jlouis, korfuri, Paradox924X
10:25 -!- napsy [~luka@88.200.96.14] has quit [Read error: Operation timed out]
10:27 -!- zcram [~zcram@67.140.191.90.dyn.estpak.ee] has joined #go-nuts
10:33 -!- az [~az@carrot.znaider.de] has joined #go-nuts
10:35 -!- debuser [~asd@93.155.147.131] has quit [Quit: WeeChat 0.3.2]
10:36 -!- hosomaki_ [~drg@host178-120-dynamic.2-87-r.retail.telecomitalia.it] has
joined #go-nuts
10:39 -!- asd1 [~asd@93.155.147.131] has joined #go-nuts
10:42 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 246 seconds]
10:42 -!- marsu [~marsu@ANancy-154-1-22-194.w83-194.abo.wanadoo.fr] has quit [Ping
timeout: 260 seconds]
10:44 -!- MizardX [~MizardX@unaffiliated/mizardx] has joined #go-nuts
10:53 -!- zcram [~zcram@67.140.191.90.dyn.estpak.ee] has quit [Remote host closed
the connection]
10:55 -!- marsu [~marsu@ANancy-154-1-75-135.w81-49.abo.wanadoo.fr] has joined
#go-nuts
10:59 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
11:03 -!- peterdn [~peterdn@cpc1-oxfd18-2-0-cust512.4-3.cable.virginmedia.com] has
joined #go-nuts
11:08 -!- belkiss [~belkiss@drn13-1-78-235-168-105.fbx.proxad.net] has quit [Quit:
KVIrc Insomnia 4.0.0, revision: 4246, sources date: 20100125, built on: 2010-04-11
09:49:35 UTC http://www.kvirc.net/]
11:11 -!- felipe [~felipe@my.nada.kth.se] has quit [Ping timeout: 276 seconds]
11:12 -!- Netsplit *.net <-> *.split quits: mortens, scoeri, yashi, cw,
Wiz126, _nano, MacCoaster, Gracenotes, MizardX, ukai, (+5 more, use /NETSPLIT to
show all of them)
11:18 -!- Netsplit over, joins: Gracenotes, MizardX, kobkrit, Wiz126, mortens,
yashi, mat_, cco3-hampster, ukai, MacCoaster (+5 more)
11:18 -!- asd1 [~asd@93.155.147.131] has quit [Read error: Connection reset by
peer]
11:24 -!- krzyma [~krzyma@ip3195.t15.ds.pwr.wroc.pl] has left #go-nuts []
11:31 -!- rv2733 [~rv2733@c-98-242-168-49.hsd1.fl.comcast.net] has joined #go-nuts
11:34 -!- napsy [~luka@88.200.96.14] has joined #go-nuts
11:37 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has quit [Read error:
Connection reset by peer]
11:38 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts
11:54 -!- napsy [~luka@88.200.96.14] has quit [Quit: Lost terminal]
11:56 -!- ikaros [~ikaros@g227026144.adsl.alicedsl.de] has quit [Quit: Leave the
magic to Houdini]
11:56 -!- pjm0616 [~user@61.250.113.98] has joined #go-nuts
12:04 -!- bthomson [~bthomson@c-69-255-188-5.hsd1.va.comcast.net] has quit [Ping
timeout: 265 seconds]
12:04 -!- belkiss [~belkiss@drn13-1-78-235-168-105.fbx.proxad.net] has joined
#go-nuts
12:09 -!- napsy [~luka@88.200.96.14] has joined #go-nuts
12:09 -!- Fish [~Fish@bus77-2-82-244-150-190.fbx.proxad.net] has joined #go-nuts
12:09 < napsy> Hello.  Can I disable automatic structure alignment so if I
send the structure over the network, the size would stay portable?
12:11 < taruti> napsy: just use padding fields
12:11 < taruti> napsy: don't forget endianess
12:12 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined
#go-nuts
12:12 < napsy> what if I try to avoid extra bytes to slim down data size
12:13 < taruti> use compression :)
12:13 -!- Fish [~Fish@bus77-2-82-244-150-190.fbx.proxad.net] has quit [Remote host
closed the connection]
12:13 < napsy> it's for an embedded device that doesn't support compression
12:14 -!- d_rwin [~mael@110.225.16.82] has joined #go-nuts
12:15 -!- d_rwin [~mael@110.225.16.82] has left #go-nuts []
12:20 -!- sladegen [~nemo@unaffiliated/sladegen] has quit [Disconnected by
services]
12:20 -!- sladegen [~nemo@unaffiliated/sladegen] has joined #go-nuts
12:21 -!- Fish [~Fish@bus77-2-82-244-150-190.fbx.proxad.net] has joined #go-nuts
12:23 -!- lux` [~lux`@151.95.180.63] has joined #go-nuts
12:23 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
12:24 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
12:28 -!- crashR [~crasher@codextreme.pck.nerim.net] has quit [Ping timeout: 252
seconds]
12:35 -!- TR2N [email@89.180.133.32] has quit [Ping timeout: 264 seconds]
12:36 -!- smw [~stephen@pool-96-232-88-231.nycmny.fios.verizon.net] has quit [Read
error: Connection reset by peer]
12:39 -!- hosomaki_ [~drg@host178-120-dynamic.2-87-r.retail.telecomitalia.it] has
quit [Quit: Ex-Chat]
12:49 -!- tumdum [~tumdum@unaffiliated/tumdum] has quit [Quit: tumdum]
12:49 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:2986:c847:7d55:32ca] has joined
#go-nuts
12:59 -!- Netsplit *.net <-> *.split quits: mortens, scoeri, yashi, cw,
Wiz126, _nano, MacCoaster, Gracenotes, MizardX, ukai, (+5 more, use /NETSPLIT to
show all of them)
12:59 -!- dizm [~dizm@121.98.168.127] has joined #go-nuts
13:03 -!- pjm0616 [~user@61.250.113.98] has quit [Remote host closed the
connection]
13:05 -!- Netsplit over, joins: Gracenotes, MizardX, kobkrit, Wiz126, mortens,
yashi, mat_, cco3-hampster, ukai, MacCoaster (+5 more)
13:06 -!- TR2N [email@89-180-211-240.net.novis.pt] has joined #go-nuts
13:10 -!- napsy [~luka@88.200.96.14] has quit [Quit: Lost terminal]
13:11 -!- Gracenotes_ [~person@wikipedia/Gracenotes] has joined #go-nuts
13:11 -!- Gracenotes [~person@wikipedia/Gracenotes] has quit [Ping timeout: 276
seconds]
13:19 -!- alehorst [~alehorst@187.59.31.204] has quit [Remote host closed the
connection]
13:20 -!- alehorst [~alehorst@187.59.31.204] has joined #go-nuts
13:31 -!- mwarning [~mwarning@ip-78-94-222-65.unitymediagroup.de] has joined
#go-nuts
13:33 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has joined #go-nuts
13:37 -!- mwarning [~mwarning@ip-78-94-222-65.unitymediagroup.de] has left
#go-nuts []
13:38 -!- eikenberry [~jae@mail.zhar.net] has joined #go-nuts
13:52 -!- carllerche [~carllerch@pc-ab36.wlan.inet.fi] has joined #go-nuts
14:00 -!- hhh [~hhh@p4133-ipbf1506souka.saitama.ocn.ne.jp] has joined #go-nuts
14:21 -!- richardr [~richard@124-148-225-92.dyn.iinet.net.au] has joined #go-nuts
14:26 -!- ikaros [~ikaros@g227026144.adsl.alicedsl.de] has joined #go-nuts
14:26 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has quit [Quit:
leaving]
14:26 -!- felipe [~felipe@my.nada.kth.se] has joined #go-nuts
14:26 -!- cmarcelo [~cmarcelo@189.115.174.239] has joined #go-nuts
14:26 -!- cmarcelo [~cmarcelo@189.115.174.239] has quit [Changing host]
14:26 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has joined
#go-nuts
14:28 -!- Surma [~surma@91-64-29-245-dynip.superkabel.de] has joined #go-nuts
14:30 -!- eikenberry [~jae@mail.zhar.net] has quit [Quit: End of line.]
14:32 -!- noam [~k4jd095b@77.126.147.233] has quit [Read error: Connection reset
by peer]
14:32 -!- noam [~k4jd095b@77.126.147.233] has joined #go-nuts
14:32 -!- General1337 [~support@71-93-96-131.dhcp.mtpk.ca.charter.com] has quit
[Ping timeout: 240 seconds]
14:36 -!- SugarBear [~stephen.s@91.86.2.138] has joined #go-nuts
14:39 -!- kobkrit [~kobkrit@2001:200:141:6151:224:21ff:fe1e:4d16] has quit [Remote
host closed the connection]
14:44 -!- sachkris [~sachin@117.254.161.173] has joined #go-nuts
14:54 -!- sachkris [~sachin@117.254.161.173] has quit [Quit: Ex-Chat]
14:55 -!- carllerche [~carllerch@pc-ab36.wlan.inet.fi] has quit [Quit: carllerche]
15:03 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
15:03 -!- ShadowIce` [pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
15:04 -!- carllerche [~carllerch@pc-ab36.wlan.inet.fi] has joined #go-nuts
15:05 -!- carllerche [~carllerch@pc-ab36.wlan.inet.fi] has quit [Client Quit]
15:05 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has quit [Ping timeout:
246 seconds]
15:06 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts
15:10 -!- General1337 [~support@71-93-96-131.dhcp.mtpk.ca.charter.com] has joined
#go-nuts
15:19 -!- carllerche [~carllerch@pc-ab36.wlan.inet.fi] has joined #go-nuts
15:21 -!- carllerche [~carllerch@pc-ab36.wlan.inet.fi] has quit [Client Quit]
15:24 -!- tumdum [~tumdum@unaffiliated/tumdum] has joined #go-nuts
15:26 -!- carllerche [~carllerch@pc-ab36.wlan.inet.fi] has joined #go-nuts
15:28 -!- Fish [~Fish@bus77-2-82-244-150-190.fbx.proxad.net] has quit [Remote host
closed the connection]
15:28 -!- hhh [~hhh@p4133-ipbf1506souka.saitama.ocn.ne.jp] has quit [Quit:
Leaving...]
15:28 -!- tumdum [~tumdum@unaffiliated/tumdum] has quit [Ping timeout: 245
seconds]
15:35 -!- carllerche [~carllerch@pc-ab36.wlan.inet.fi] has quit [Quit: carllerche]
15:36 -!- Fish [~Fish@bus77-2-82-244-150-190.fbx.proxad.net] has joined #go-nuts
15:43 -!- wrtp [~rog@78.144.165.123] has quit [Quit: wrtp]
15:44 -!- MizardX [~MizardX@unaffiliated/mizardx] has quit [Read error: Connection
reset by peer]
15:44 -!- MizardX [~MizardX@unaffiliated/mizardx] has joined #go-nuts
15:45 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has joined #go-nuts
15:51 -!- exch [~nuada@h144170.upc-h.chello.nl] has quit [Ping timeout: 246
seconds]
15:58 -!- exch [~nuada@h144170.upc-h.chello.nl] has joined #go-nuts
16:04 -!- Chryson [~Chryson@c-71-61-11-114.hsd1.pa.comcast.net] has quit [Quit:
Leaving]
16:09 -!- Agon [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de]
has joined #go-nuts
16:13 -!- freerf [~empt@122.193.12.195] has joined #go-nuts
16:13 -!- freerf [~empt@122.193.12.195] has left #go-nuts []
16:16 -!- MizardX [~MizardX@unaffiliated/mizardx] has quit [Read error: Connection
reset by peer]
16:16 -!- bthomson [~bthomson@c-69-255-188-5.hsd1.va.comcast.net] has joined
#go-nuts
16:16 -!- MizardX [~MizardX@unaffiliated/mizardx] has joined #go-nuts
16:20 -!- MizardX- [~MizardX@unaffiliated/mizardx] has joined #go-nuts
16:22 -!- MizardX [~MizardX@unaffiliated/mizardx] has quit [Ping timeout: 276
seconds]
16:23 -!- MizardX [~MizardX@unaffiliated/mizardx] has joined #go-nuts
16:26 -!- MizardX- [~MizardX@unaffiliated/mizardx] has quit [Ping timeout: 260
seconds]
16:37 -!- SugarBear [~stephen.s@91.86.2.138] has quit [Ping timeout: 260 seconds]
16:39 -!- Fish [~Fish@bus77-2-82-244-150-190.fbx.proxad.net] has quit [Remote host
closed the connection]
16:40 -!- SugarBear [~stephen.s@91.86.14.156] has joined #go-nuts
16:41 -!- Fish [~Fish@bus77-2-82-244-150-190.fbx.proxad.net] has joined #go-nuts
16:49 -!- MizardX [~MizardX@unaffiliated/mizardx] has quit [Read error: Connection
reset by peer]
16:49 -!- MizardX [~MizardX@unaffiliated/mizardx] has joined #go-nuts
16:52 -!- gordolinux [~gordolinu@189.115.33.89] has quit [Quit: Lost terminal]
16:57 -!- Agon [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de]
has quit [Remote host closed the connection]
16:57 -!- pjm0616 [~user@61.250.113.98] has joined #go-nuts
16:57 -!- Agon [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de]
has joined #go-nuts
17:03 -!- Guest8961 [~hunterm@cpe-071-071-229-180.carolina.res.rr.com] has joined
#go-nuts
17:04 -!- Zr40 [~zr40@57-13-ftth.onsnetstudenten.nl] has joined #go-nuts
17:05 -!- Guest8961 [~hunterm@cpe-071-071-229-180.carolina.res.rr.com] has left
#go-nuts []
17:05 -!- Venom_X [~pjacobs@71.20.102.220] has joined #go-nuts
17:06 -!- MizardX- [~MizardX@unaffiliated/mizardx] has joined #go-nuts
17:06 -!- MizardX- [~MizardX@unaffiliated/mizardx] has quit [Remote host closed
the connection]
17:07 -!- MizardX- [~MizardX@unaffiliated/mizardx] has joined #go-nuts
17:09 -!- Venom_X [~pjacobs@71.20.102.220] has quit [Client Quit]
17:10 -!- MizardX [~MizardX@unaffiliated/mizardx] has quit [Ping timeout: 276
seconds]
17:12 -!- belkiss [~belkiss@drn13-1-78-235-168-105.fbx.proxad.net] has quit [Quit:
KVIrc Insomnia 4.0.0, revision: 4246, sources date: 20100125, built on: 2010-04-11
09:49:35 UTC http://www.kvirc.net/]
17:12 -!- Zr40 [~zr40@57-13-ftth.onsnetstudenten.nl] has left #go-nuts []
17:13 -!- Agon [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de]
has quit [Remote host closed the connection]
17:13 -!- GilJ [~gilles@85.10.76.112] has joined #go-nuts
17:14 -!- Agon [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de]
has joined #go-nuts
17:21 -!- no_mind [~orion@122.162.136.125] has joined #go-nuts
17:30 -!- General13372 [~support@71-93-96-131.dhcp.mtpk.ca.charter.com] has joined
#go-nuts
17:32 -!- tumdum [~tumdum@aup137.neoplus.adsl.tpnet.pl] has joined #go-nuts
17:32 -!- tumdum [~tumdum@aup137.neoplus.adsl.tpnet.pl] has quit [Changing host]
17:32 -!- tumdum [~tumdum@unaffiliated/tumdum] has joined #go-nuts
17:33 -!- General1337 [~support@71-93-96-131.dhcp.mtpk.ca.charter.com] has quit
[Ping timeout: 268 seconds]
17:49 -!- MizardX [~MizardX@unaffiliated/mizardx] has quit [Read error: Connection
reset by peer]
17:51 -!- MizardX [~MizardX@unaffiliated/mizardx] has joined #go-nuts
17:54 < no_mind> why does go lang has ForkExec call in os package instead of
two commands fork and exec
17:55 < jessta> no_mind: because fork() is problematic in go
17:56 < no_mind> but ForkExec requires params, what If I just want a simple
fork ?
17:57 < jessta> you can't fork a go program, it's messy
17:58 -!- aho [~nya@f051115154.adsl.alicedsl.de] has quit [Quit:
EXEC_over.METHOD_SUBLIMATION]
18:00 < jessta> no_mind: why do you want to fork?
18:00 < kimelto> how do you do to daemonize a prog in go then?  :)
18:00 < taruti> C wrapper
18:01 < kimelto> to be a direct child of init?
18:01 < no_mind> jessta, ooking at multi-process programing in go
18:01 < no_mind> looks like goroutine are the prefered way
18:10 -!- anschelsc [~anschel@96.56.250.157] has joined #go-nuts
18:11 < anschelsc> Is it possible to read exactly one character from stdin
without waiting for newline?
18:12 -!- wrtp [~rog@78.144.165.123] has joined #go-nuts
18:13 < anschelsc> in python this involves setting the terminal on raw mode,
but I'm not quite sure how to do that...
18:19 -!- MizardX [~MizardX@unaffiliated/mizardx] has quit [Read error: Connection
reset by peer]
18:20 -!- MizardX [~MizardX@unaffiliated/mizardx] has joined #go-nuts
18:22 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has quit [Read error:
Connection reset by peer]
18:23 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts
18:27 < bortzmeyer> kimelto:
http://groups.google.com/group/golang-nuts/browse_thread/thread/2b29d93b90501a4b/95242bfb7ae0549e
18:28 -!- GilJ [~gilles@85.10.76.112] has quit [Ping timeout: 240 seconds]
18:29 -!- illya77 [~illya77@7-156-178-94.pool.ukrtel.net] has quit [Read error:
Connection reset by peer]
18:29 -!- lmoura [~lauromour@200.184.118.130] has quit [Remote host closed the
connection]
18:30 -!- mssm [~mssm@ip-95-221-81-82.bb.netbynet.ru] has joined #go-nuts
18:30 < kimelto> the background feature of the shell is not an option.  I
ssh into my machine, type /my/service &, disconnect, the shell is killed, so is
the daemon
18:30 -!- illya77 [~illya77@7-156-178-94.pool.ukrtel.net] has joined #go-nuts
18:30 < kimelto> I like the "do the syscall yourself" way :p
18:32 < sladegen> nohup or disown doesn't work?
18:34 -!- dizm [~dizm@121.98.168.127] has left #go-nuts []
18:41 -!- Damn3d [damn3d@unaffiliated/morpheus/x-0931003] has joined #go-nuts
18:42 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Quit:
slashus2]
18:46 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has quit [Read error:
Connection reset by peer]
18:46 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts
18:53 -!- Agon [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de]
has quit [Remote host closed the connection]
18:54 -!- Agon [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de]
has joined #go-nuts
18:54 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has quit [Read error:
Connection reset by peer]
18:55 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts
19:15 -!- Agon [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de]
has quit [Remote host closed the connection]
19:16 -!- Agon [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de]
has joined #go-nuts
19:22 -!- simonini [~5d21d4f4@gateway/web/freenode/x-lsahbrkdzmtfkgem] has joined
#go-nuts
19:24 -!- Associat0r [~Associat0@h163153.upc-h.chello.nl] has joined #go-nuts
19:37 < exch> does go have some package/function to convert numbers to a
byte slice?  eg: int64 or float64?
19:45 < Surma> exch: that probably only possible using "unsafe" since you
are trying to break type-safety
19:45 < Surma> (although converting an int into a byte slice might also be
accomplished using shift operations)
19:46 < exch> yea probably.  was just hoping there'd be a convenient way :)
19:46 < exch> in this case the values will always be int64 or float64
19:46 < Surma> well, for floats you gotta user unsafe
19:47 < exch> If all else fails, I can cheat by simply Sprintf()'ing them to
a string and turning that into a byte slice :p That is just nasty though
19:48 < exch> In fact, I don't think I can bear the shame of that
19:48 < exch> *bare
19:57 < Surma> That's almost as bad as inventing duffy's device
19:59 -!- anschelsc [~anschel@96.56.250.157] has quit [Quit: leaving]
20:09 -!- SugarBear [~stephen.s@91.86.14.156] has quit []
20:15 -!- pancake [~pancake@95.61.49.229] has joined #go-nuts
20:15 < pancake> what is the equivalent of char **foo={"foo","bar",..}; in
Go?
20:18 -!- warthurton [~warthurto@pdpc/supporter/active/warthurton] has quit [Read
error: Connection reset by peer]
20:19 < kmeyer> exch: look at encoding/binary
20:20 < kmeyer> pancake: var foo = []string{"foo", "bar", ..}
20:20 < pancake> thanks
20:21 < pancake> can I iterate like in foreach() ?
20:22 < kmeyer> for _, f := range foo { }
20:22 < kmeyer> the first parameter is the index into foo, but I don't think
you care what it is
20:22 < pancake> thanks again :)
20:22 < kmeyer> np :)
20:24 < pancake> is there any preprocessor in Go?
20:24 < Surma> npoe
20:24 < Surma> nope*
20:25 -!- mssm [~mssm@ip-95-221-81-82.bb.netbynet.ru] has quit [Ping timeout: 246
seconds]
20:31 < kmeyer> not unless you do it manually
20:31 < kmeyer> you might be able to get away with using the C preprocessor
if you really want
20:31 < kmeyer> but it's definitely not supported by go folks
20:39 -!- pancake [~pancake@95.61.49.229] has quit [Quit: Lost terminal]
20:40 -!- meatmanek [~meatmanek@c-98-223-179-156.hsd1.in.comcast.net] has joined
#go-nuts
20:41 < meatmanek> what's the easiest way to parse a decimal integer from a
string?
20:44 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:2986:c847:7d55:32ca] has quit
[Quit: Leaving.]
20:44 < exch> kmeyer: thanks, that works nicely.
20:45 < exch> meatmanek: strconv.Atoi() or strconv.Atof() and related
functions
20:45 < meatmanek> thanks
20:45 -!- guest539483 [~asd@93.155.147.131] has joined #go-nuts
20:48 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller,
Faster, Easier.  http://miranda-im.org]
20:52 -!- simonini [~5d21d4f4@gateway/web/freenode/x-lsahbrkdzmtfkgem] has quit
[Quit: Page closed]
20:52 -!- illya77 [~illya77@7-156-178-94.pool.ukrtel.net] has quit [Quit: illya77]
20:56 -!- bmizerany [~bmizerany@c-24-6-37-113.hsd1.ca.comcast.net] has joined
#go-nuts
21:00 -!- Associat0r [~Associat0@h163153.upc-h.chello.nl] has quit [Read error:
Connection reset by peer]
21:01 < kmeyer> exch: np :)
21:01 -!- Ideal [~Ideal@ideal-1-pt.tunnel.tserv6.fra1.ipv6.he.net] has quit [Quit:
Ideal]
21:03 -!- itrekkie [~itrekkie@ip98-165-246-56.ph.ph.cox.net] has joined #go-nuts
21:05 -!- itrekkie [~itrekkie@ip98-165-246-56.ph.ph.cox.net] has quit [Client
Quit]
21:07 < plexdev> http://is.gd/c0wcq by [Robert Griesemer] in go/src/pkg/big/
-- big: cleanups and performance tuning
21:08 -!- hard_shooter [~hardshoot@fec76-1-78-234-124-105.fbx.proxad.net] has
joined #go-nuts
21:17 -!- david_ [~david@ip72-196-18-84.om.om.cox.net] has joined #go-nuts
21:19 -!- accAgon
[~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de] has joined
#go-nuts
21:20 -!- Gracenotes [~person@wikipedia/Gracenotes] has quit [Quit: Leaving]
21:23 -!- Agon [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de]
has quit [Ping timeout: 246 seconds]
21:26 -!- accAgon
[~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de] has quit [Remote
host closed the connection]
21:27 -!- accAgon
[~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de] has joined
#go-nuts
21:28 -!- zcram [~zcram@67.140.191.90.dyn.estpak.ee] has joined #go-nuts
21:32 -!- accAgon
[~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de] has quit [Remote
host closed the connection]
21:33 -!- accAgon
[~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de] has joined
#go-nuts
21:34 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
21:35 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
21:38 -!- rv2733 [~rv2733@c-98-242-168-49.hsd1.fl.comcast.net] has quit [Quit:
Leaving]
21:39 < hard_shooter> Hi
21:40 < hard_shooter> why new([len(array)]byte) doesn't work ?
21:41 < exch> nope.  A fixed array needs a constant value as size
21:42 < exch> make a slice like this: s := make([]byte, len(array))
21:43 < hard_shooter> hmmm
21:48 -!- accAgon
[~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de] has quit [Remote
host closed the connection]
21:49 -!- Fish [~Fish@bus77-2-82-244-150-190.fbx.proxad.net] has quit [Remote host
closed the connection]
21:49 -!- accAgon
[~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de] has joined
#go-nuts
21:50 -!- Surma [~surma@91-64-29-245-dynip.superkabel.de] has quit [Quit:
Leaving.]
21:51 < hard_shooter> ok it's logic...
21:59 < hard_shooter> how do I get the line of a runtime error ?
22:00 < hard_shooter> main.sort+0x34d does speak to me :)
22:00 < kmeyer> it should print a line number near there
22:00 < kmeyer> do you see "main.go:XXX" somewhere?  (where XXX is a number)
22:01 < hard_shooter> Oh
22:01 < hard_shooter> that's because I have many goroutines
22:01 < kmeyer> ahh
22:02 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-179-135.clienti.tiscali.it] has
quit [Quit: E se abbasso questa leva che succ...]
22:07 < hard_shooter> ah ah I'm nowhere...
22:07 < hard_shooter> My goroutines are either sending or receiving
22:09 < hard_shooter> can we know which goroutines have sent the error ?
22:10 < hard_shooter> ok that's good
22:10 < hard_shooter> find it myself
22:10 < exch> without a proper debugger, the stacktrace is the best you'll
get unfortunately
22:12 < hard_shooter> the main stacktrace is the one if the good goroutine
:)
22:14 -!- accAgon
[~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de] has quit [Remote
host closed the connection]
22:14 -!- accAgon
[~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de] has joined
#go-nuts
22:14 -!- accAgon
[~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de] has quit [Remote
host closed the connection]
22:15 -!- ShadowIce` [pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
22:21 < hard_shooter> we can't do array[0:0] ?
22:25 -!- awidegreen [~quassel@62.176.237.78] has quit [Read error: Connection
reset by peer]
22:25 < kmeyer> what's the goal of array[0:0]?
22:25 < kmeyer> the empty slice?
22:25 < hard_shooter> no
22:25 < hard_shooter> first element
22:25 < kmeyer> array[0:1]
22:26 -!- meatmanek [~meatmanek@c-98-223-179-156.hsd1.in.comcast.net] has quit
[Quit: Leaving]
22:26 < exch> or just array[0]
22:26 < kmeyer> but that makes a slice containing just the first element
22:26 < kmeyer> what exch said selects the first element by itself
22:26 < hard_shooter> yep
22:26 < hard_shooter> that's the goal
22:26 < kmeyer> kk :)
22:26 < hard_shooter> I'm making a recursive sorting algorithm to pratice go
:)
22:27 < kmeyer> cool :)
22:28 < kmeyer> that's my favorite way to pick up new languages
22:29 < hard_shooter> but I've forget that array[0:1] and array[1:2] don't
have a common element...
22:32 < kmeyer> :P
22:45 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
22:47 < hard_shooter> \o/
22:47 < hard_shooter> done
22:47 -!- michael|_ [~maikeru@24-107-56-173.dhcp.stls.mo.charter.com] has joined
#go-nuts
22:48 -!- samitheb1rber [~saada@melkinpaasi.cs.helsinki.fi] has joined #go-nuts
22:48 -!- Pete_27 [~noname@115-64-1-61.static.tpgi.com.au] has joined #go-nuts
22:52 -!- Netsplit *.net <-> *.split quits: michael|, samitheberber,
[Pete_27], tokuhirom, crakrjak_
22:55 < hard_shooter> goroutines instead of recursivity doesn't seem very
good xD
22:56 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has quit [Remote host closed the
connection]
22:57 < hard_shooter> oh
22:57 < hard_shooter> maybe I should not create arrays on each level of
recursivity
22:58 < hard_shooter> xD
22:58 -!- Netsplit *.net <-> *.split quits: yashi, _nano, bmizerany, cw,
MacCoaster, mortens, Wiz126, kmeyer, cco3-hampster, ukai, (+5 more, use /NETSPLIT
to show all of them)
22:58 < hard_shooter> for 1 000 000 values that use a lot of memory xD
22:59 -!- Netsplit *.net <-> *.split quits: mortens, scoeri, yashi, kmeyer,
ukai, exch, Wiz126, MacCoaster, _nano, cw, (+5 more, use /NETSPLIT to show all of
them)
22:59 -!- Netsplit over, joins: crakrjak_, bmizerany, MizardX, exch, Wiz126,
mortens, yashi, mat_, cco3-hampster, ukai (+6 more)
22:59 -!- wrtp [~rog@78.144.165.123] has quit [Quit: wrtp]
22:59 -!- Netsplit over, joins: bmizerany, MizardX, exch, Wiz126, mortens, yashi,
mat_, cco3-hampster, ukai, MacCoaster (+5 more)
23:02 -!- tokuhirom [~tokuhirom@s230.GtokyoFL21.vectant.ne.jp] has joined #go-nuts
23:02 < hard_shooter> If I use for parameter &array[0:len(array)/2] will it
be able to overrun ?
23:03 < kmeyer> hm?
23:03 < kmeyer> well, len(array)/2 will never be greater than len(array),
and array[0:len(array)] is in-bounds, so, I think it's fine
23:03 < exch> even if len = 0, it'll just return an empty slice
23:04 < hard_shooter> but &array == &array[0:len(array)/2] ?
23:04 < kmeyer> wait, what are you trying to do?
23:04 < kmeyer> take half of the array?
23:04 < kmeyer> er, slice
23:04 < exch> the pointer bit is a bit weird.  slices are by reference
anyways.  They are just interfaces to an underlying fixed data structure
23:04 < kmeyer> hard_shooter: I think what you want is:
23:05 < kmeyer> array = array[0:len(array)/2]
23:05 < hard_shooter> If I use a slice as a parameter
23:05 < hard_shooter> will the function be able to modify the array ?
23:05 < kmeyer> yes.
23:06 < hard_shooter> k :)
23:06 < hard_shooter> good
23:06 < kmeyer> you're doing merge sort?  :P
23:08 < hard_shooter> probably
23:08 < hard_shooter> I don't really know the name of the algorithm
23:09 < hard_shooter> but well
23:09 < hard_shooter> seems that I merge arrays
23:09 < hard_shooter> ...
23:11 < hard_shooter> but I have some problems because I create arrays for
each level of recursion
23:11 < hard_shooter> and for 1 000 000 values
23:11 < hard_shooter> ...
23:12 < kmeyer> heh
23:19 -!- zerd [~quassel@2a01:608:ffff:2797::2] has joined #go-nuts
23:28 -!- wuehlmaus [~wuehlmaus@p4FCC6EE3.dip.t-dialin.net] has quit [Ping
timeout: 245 seconds]
23:28 -!- wuehlmaus [~wuehlmaus@p4FCC6B18.dip.t-dialin.net] has joined #go-nuts
23:29 -!- smw [~stephen@pool-96-232-88-231.nycmny.fios.verizon.net] has joined
#go-nuts
23:30 < hard_shooter> 5000 elements in 4.46 sec
23:30 < hard_shooter> on a dual core 2.5 ghz
23:30 < hard_shooter> and byte arrays
23:30 < exch> hope you don't use a lot of copy() calls, cos those are
insanely slow
23:31 < hard_shooter> I don't use copy
23:31 < exch> goodie
23:32 < sladegen> rewrite it in C and wrap it up with cgo...  problem
solved.
23:32 < hard_shooter> the goal is to pratice go :)
23:32 < hard_shooter> I don't know sorting performances...
23:34 < hard_shooter> Is this so bad ?
23:35 < exch> to be honest, I don't know.  But i've spent the past couple of
days optimizing a script tokenizer for speed and i'm counting Go performance in
nanoseconds.  So 4+ seconds seems like eternity :)
23:36 < exch> stil, if it teaches you about Go, then who really cares?  :p
23:36 -!- ikaros [~ikaros@g227026144.adsl.alicedsl.de] has quit [Quit: Leave the
magic to Houdini]
23:37 < sladegen> hectocore CPUs will take care of that slowdown.
23:39 -!- smw [~stephen@pool-96-232-88-231.nycmny.fios.verizon.net] has quit
[Remote host closed the connection]
23:39 < hard_shooter> talking about performances :
23:39 < hard_shooter> go isn't very quick right now
23:40 < hard_shooter> It's just about implementation ?
23:41 < kmeyer> 4.46 seconds is a long time for 5000 elements of anything
23:41 < kmeyer> I'm betting it's your implementation that is slow
23:41 < kmeyer> go itself isn't terribly optimized yet, but even bad machine
code for a good algorithm will sort faster than that
23:41 < hard_shooter> I'm speaking globally :)
23:42 < hard_shooter>
http://shootout.alioth.debian.org/u32q/compare.php?lang=go
23:42 < kmeyer> for example, sorting 5000 lines of a file using bash sort:
23:42 < kmeyer> 0m0.018s
23:43 < kmeyer> which will be slower than your example, because it has to
read a file, split at newlines, etc
23:43 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
23:43 < hard_shooter> I have to fill the array with random values :p
23:43 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
23:47 < kmeyer> I took random values from /dev/urandom, it didn't take 4.45
seconds
23:49 < hard_shooter> maybe array length calculation...
23:49 -!- lux` [~lux`@151.95.180.63] has quit [Remote host closed the connection]
--- Log closed Sun May 09 00:00:56 2010