--- Log opened Sat Nov 21 00:00:15 2009
--- Day changed Sat Nov 21 2009
00:00 < huhwayee> true
00:00 -!- aa [n=aa@r190-135-189-132.dialup.adsl.anteldata.net.uy] has quit [Read
error: 104 (Connection reset by peer)]
00:00 -!- drusepth [n=drusepth@174.32.154.79] has quit [Read error: 104
(Connection reset by peer)]
00:01 -!- tokuhiro_______ [i=tokuhiro@p3129-ipbf6106marunouchi.tokyo.ocn.ne.jp]
has quit [Read error: 110 (Connection timed out)]
00:01 -!- brrant [n=John@168-103-78-133.hlrn.qwest.net] has quit ["Leaving"]
00:02 <+iant> s_mosher: I actually implemented len that way for a while in
gccgo; it can be done but it's harder to explain
00:02 -!- Intelliware [n=danielb@124-197-59-227.callplus.net.nz] has quit [Read
error: 60 (Operation timed out)]
00:03 < scandal> s_mosher: seems like it could be implemented similar to
const in that regard.
00:03 <+iant> yes, exactly
00:04 -!- skyyy [i=caw@res55551479.rh.rit.edu] has joined #go-nuts
00:04 -!- skyyy [i=caw@res55551479.rh.rit.edu] has quit [Read error: 104
(Connection reset by peer)]
00:04 -!- tokuhiro_______ [i=tokuhiro@p4251-ipbf5206marunouchi.tokyo.ocn.ne.jp]
has joined #go-nuts
00:05 -!- sarek [n=barek@unaffiliated/romani] has joined #go-nuts
00:05 -!- lux` [n=lux@151.54.240.177] has quit [Remote closed the connection]
00:05 -!- sarek [n=barek@unaffiliated/romani] has left #go-nuts []
00:06 -!- lbrandy_ [n=lbrandy_@206.210.81.55] has quit ["Computer has gone to
sleep"]
00:07 -!- Venom_X [n=pjacobs@66.54.185.131] has quit [Read error: 113 (No route to
host)]
00:07 < s_mosher> iant, neat.  how does a:=len(foo) work out?  default to
int?
00:08 <+iant> gccgo today always has the len function return int; when it
worked otherwise then, yes, that case would become int
00:08 <+iant> it worked the way an untyped integer constant works
00:08 < s_mosher> ah right
00:09 -!- iant [n=iant@nat/google/x-yogzokjmcbmqzrkl] has quit ["Leaving."]
00:10 < s_mosher> scandal, actually...  why are you taking a length argument
instead of something to be measured?
00:11 < scandal> s_mosher: working with an Iterable, so it must be specified
as an offset
00:13 -!- x-ip [n=sakura@unaffiliated/x-ip] has quit [Read error: 60 (Operation
timed out)]
00:13 -!- trickie [n=trickie@86.93.227.181] has joined #go-nuts
00:13 < s_mosher> ah.
00:14 -!- emg [n=emg@12.230.42.130] has joined #go-nuts
00:14 -!- elmar [n=elmar@dslb-084-059-070-234.pools.arcor-ip.net] has quit
["Leaving"]
00:15 < scandal> http://www.cs.hmc.edu/~me/go/iterutils/iterutils.go see the
Slice function at the end
00:17 -!- emg [n=emg@12.230.42.130] has left #go-nuts ["sic - 250 LOC are too
much!"]
00:18 < alexsuraci> gopaste.org now has private/public pastes and an /all
section (not linked to yet) :D
00:19 < uriel> alexsuraci: awesome!
00:19 < alexsuraci> http://gopaste.org/all pagination was fun :P
00:20 -!- franksalim [n=frank@adsl-76-221-202-115.dsl.pltn13.sbcglobal.net] has
joined #go-nuts
00:20 < uriel> works and looks really nice
00:20 < alexsuraci> thanks
00:20 < uriel> you still should link to the source from the home page ;)
00:22 < s_mosher> scandal, it's just that, despite my earlier advice,
choosing uint can cause complications down the road in a lot of cases.  I don't
think this is a candidate for that kind of problem, but I usually try to avoid
unsigned things.
00:23 -!- BlueT_ [n=matthew@ubuntu/member/BlueT] has quit [Remote closed the
connection]
00:23 -!- BlueT_ [n=matthew@blog.psinfo.com.tw] has joined #go-nuts
00:24 -!- voluspa [n=voluspa@x-134-84-102-227.reshalls.umn.edu] has joined
#go-nuts
00:25 < s_mosher> (although I'm cautious of it because I got bitten when
doing fixed point math which was considerably more frustrating to untangle than it
would have been otherwise)
00:27 -!- asyncster [n=asyncste@206.169.213.106] has quit []
00:29 < alexsuraci> uriel: updated
00:30 < uriel> cool :)
00:35 -!- Zarutian [n=zarutian@194-144-84-110.du.xdsl.is] has quit []
00:36 -!- aa [n=aa@r190-135-147-12.dialup.adsl.anteldata.net.uy] has joined
#go-nuts
00:37 -!- bthomson [n=bthomson@pool-71-114-74-245.washdc.dsl-w.verizon.net] has
quit [Read error: 110 (Connection timed out)]
00:37 -!- drusepth [n=drusepth@174.32.154.79] has joined #go-nuts
00:38 -!- bthomson [n=bthomson@c-69-255-188-5.hsd1.va.comcast.net] has joined
#go-nuts
00:44 -!- twymer_ [n=tyler@cpe-76-181-87-63.columbus.res.rr.com] has quit [Remote
closed the connection]
00:44 -!- Raziel2p [n=Raziel2p@ti0032a380-dhcp0316.bb.online.no] has quit [Read
error: 104 (Connection reset by peer)]
00:48 -!- Raziel2p [n=Raziel2p@ti0032a380-dhcp0316.bb.online.no] has joined
#go-nuts
00:49 < Amaranth> s_mosher: I stick with int until I need the expanded range
of uint
00:50 < Amaranth> I'm more likely to want to return -1 than 4,294,967,295
00:50 < Amaranth> return/store/etc
00:51 -!- go_ [n=goloo@host230-202-dynamic.37-79-r.retail.telecomitalia.it] has
joined #go-nuts
00:51 -!- Fatal_ [i=fatal@217.73.97.14] has joined #go-nuts
00:55 < s_mosher> Amaranth, yeah.  I was working with shorts in fixed point
so...  well you can see the temptation.
00:58 -!- SRabbelier [n=SRabbeli@ip138-114-211-87.adsl2.static.versatel.nl] has
quit ["Leaving."]
00:58 -!- smooge [n=smooge@int.smoogespace.com] has quit [Read error: 113 (No
route to host)]
00:58 -!- SRabbelier [n=SRabbeli@ip138-114-211-87.adsl2.static.versatel.nl] has
joined #go-nuts
01:00 < Gracenotes> you know...  I've actually come to like the way gofmt
does switch statements
01:01 < Gracenotes> switch {
01:01 < Gracenotes> case blah:
01:01 < Gracenotes> statements...
01:01 < Gracenotes> and so on
01:01 < uriel> :)
01:01 < Gracenotes> so I'm using it in other languages with C-derived
syntax.  funny that.
01:01 < uriel> people need to learn to love gofmt ;P
01:02 < Gracenotes> personally, I really do like if foo { bar }, but only if
bar is one word, like continue, break, or return (maybe with a parameter, like an
error).
01:03 < Gracenotes> rather not spend 3 lines on it.  plus, not a fan of hard
tabs.  so, whatever, gofmt's style doesn't matter too much if I'm writing my own
code :)
01:03 -!- RayNbow [i=kirika@scientia.demon.nl] has quit ["When science finally
locates the center of the universe, some people will be surprised to learn they're
not it"]
01:05 -!- jordyd [n=jordyd@99-177-65-75.lightspeed.wepbfl.sbcglobal.net] has
joined #go-nuts
01:06 -!- armence [n=armence@c-67-188-229-128.hsd1.ca.comcast.net] has quit
["Leaving"]
01:06 < Gracenotes> the parts of gofmt that are due solely to its total lack
of intuition about what exceptions help code flow better, rather than what the
authors' style happens to be
01:06 -!- taybin [n=taybin@24.42.93.107] has joined #go-nuts
01:07 -!- StDan [n=danielb@124-197-59-227.callplus.net.nz] has joined #go-nuts
01:07 < Gracenotes> (namely exceptions to the formatting rules the current
implementation implements)
01:09 < Gracenotes> at least it boosts the line count :P
01:13 -!- triplez [n=triplez@119.234.31.193] has joined #go-nuts
01:14 -!- go_ [n=goloo@host230-202-dynamic.37-79-r.retail.telecomitalia.it] has
quit ["Ex-Chat"]
01:15 -!- ptrb [i=pb@cpe-174-106-116-076.nc.res.rr.com] has joined #go-nuts
01:16 -!- scarabx [n=scarabx@c-24-147-239-120.hsd1.ma.comcast.net] has joined
#go-nuts
01:16 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
01:22 -!- Omei [n=chatzill@99-178-130-115.lightspeed.sndgca.sbcglobal.net] has
joined #go-nuts
01:23 -!- armence [n=armence@c-67-188-229-128.hsd1.ca.comcast.net] has joined
#go-nuts
01:25 -!- gasreaa [n=atwong@nat/slide/x-jdzwglabqugwcljw] has left #go-nuts []
01:26 -!- armence [n=armence@c-67-188-229-128.hsd1.ca.comcast.net] has quit
[Remote closed the connection]
01:26 -!- theGussi [n=gussi@gussi.is] has joined #go-nuts
01:26 -!- vdrab [n=vdrab@cap012-082.kcn.ne.jp] has joined #go-nuts
01:28 -!- armence [n=armence@c-67-188-229-128.hsd1.ca.comcast.net] has joined
#go-nuts
01:29 -!- Gussi [n=gussi@85.197.213.11] has quit [Read error: 145 (Connection
timed out)]
01:29 -!- voluspa [n=voluspa@x-134-84-102-227.reshalls.umn.edu] has quit [Read
error: 113 (No route to host)]
01:30 -!- Guest14331 [n=kill-9@cpe-65-24-145-70.columbus.res.rr.com] has quit []
01:33 -!- Tuller [n=Tuller@pool-72-84-246-12.rcmdva.fios.verizon.net] has joined
#go-nuts
01:34 -!- iant [n=iant@67.218.105.155] has joined #go-nuts
01:34 -!- mode/#go-nuts [+v iant] by ChanServ
01:37 -!- delsvr [n=delsvr@67.242.41.219] has joined #go-nuts
01:37 -!- diatribe1 [n=diatribe@diatribes.net] has joined #go-nuts
01:37 -!- deufrai_ [n=deu@www.wardsback.org] has joined #go-nuts
01:38 -!- philips_ [n=brandon@ash.osuosl.org] has joined #go-nuts
01:38 < uriel> /na
01:38 < uriel> arg
01:39 -!- Xavier [i=kintoen@bitchx/dev/eth0] has quit [Nick collision from
services.]
01:40 -!- jimi_hendrix [n=jimi_hen@unaffiliated/jimihendrix] has quit [Read error:
110 (Connection timed out)]
01:42 -!- Dreamr_3 [n=Dreamer3@96-28-100-3.dhcp.insightbb.com] has joined #go-nuts
01:43 < fosho> lua wrapper, for anyone who's interested
http://code.google.com/p/golua/
01:43 -!- ericmoritz\0 [n=ericmori@c-76-123-248-214.hsd1.tn.comcast.net] has quit
[Read error: 110 (Connection timed out)]
01:43 < fosho> its not done but
01:43 -!- triplez [n=triplez@119.234.31.193] has quit []
01:45 -!- kichik|work2 [n=kichik_w@bzq-84-108-238-52.cablep.bezeqint.net] has
joined #go-nuts
01:47 -!- ericmoritz\0 [n=ericmori@c-76-123-248-214.hsd1.tn.comcast.net] has
joined #go-nuts
01:47 -!- turutosiya [n=turutosi@219.106.251.65] has joined #go-nuts
01:48 -!- diatribes [n=diatribe@diatribes.net] has quit [Read error: 110
(Connection timed out)]
01:49 -!- philips [n=brandon@opensuse/member/philips] has quit [Read error: 110
(Connection timed out)]
01:49 -!- deufrai [n=deu@www.wardsback.org] has quit [Read error: 110 (Connection
timed out)]
01:51 -!- fynn [n=fynn@unaffiliated/fynn] has joined #go-nuts
01:51 -!- fynn [n=fynn@unaffiliated/fynn] has left #go-nuts ["Leaving"]
01:52 -!- decriptor [n=decripto@137.65.132.26] has quit [Read error: 110
(Connection timed out)]
01:54 < uriel> fosho: cool
01:55 -!- Omei [n=chatzill@99-178-130-115.lightspeed.sndgca.sbcglobal.net] has
quit [Read error: 110 (Connection timed out)]
01:56 < uriel> exch: didn't you want lua bindings for scripting?
01:56 < uriel> fosho: added it to http://go-lang.cat-v.org/library-bindings
01:57 < fosho> wow cool :)
01:58 -!- AlvaroGP [i=Alvaro@89.128.155.68] has joined #go-nuts
01:58 -!- Dreamer3 [n=Dreamer3@96-28-100-3.dhcp.insightbb.com] has quit [Read
error: 113 (No route to host)]
01:59 -!- engla [n=ulrik@wikipedia/Sverdrup] has quit [Read error: 110 (Connection
timed out)]
02:00 -!- General1337 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has
joined #go-nuts
02:00 -!- tf [n=mouse@CPE-124-188-96-237.lbcz1.ken.bigpond.net.au] has joined
#go-nuts
02:02 -!- ako [n=nya@85.176.226.39] has joined #go-nuts
02:03 < uriel> fosho: also, feel free to post about it to
http://reddit.com/r/golang
02:04 -!- erzr-1 [n=adam@70.16.73.168] has joined #go-nuts
02:04 -!- General13372 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit
[Read error: 60 (Operation timed out)]
02:04 -!- nutate [n=rseymour@cacsag4.usc.edu] has quit ["I'm outta heee-eere"]
02:05 -!- Netsplit farmer.freenode.net <-> irc.freenode.net quits: erzr-,
mpurcell, XniX23, aho, tf, eiro, robot12_, Anusko, tor7, Gracenotes, (+1 more, use
/NETSPLIT to show all of them)
02:05 -!- Netsplit over, joins: XniX23
02:06 -!- aanderse
[n=aanderse@CPE001b11cc67d3-CM0019475d7f5e.cpe.net.cable.rogers.com] has joined
#go-nuts
02:07 -!- Anusko_ [n=anusko@83.132.19.244] has joined #go-nuts
02:07 -!- tf [n=mouse@CPE-124-188-96-237.lbcz1.ken.bigpond.net.au] has joined
#go-nuts
02:07 -!- robot12_ [n=robot12@78.138.154.66] has joined #go-nuts
02:07 -!- erzr- [n=adam@70.16.73.168] has joined #go-nuts
02:07 -!- eiro [n=marc@phear.org] has joined #go-nuts
02:07 -!- aho [n=nya@e176226039.adsl.alicedsl.de] has joined #go-nuts
02:07 -!- tor7 [n=tor@c-987a71d5.04-50-6c756e10.cust.bredbandsbolaget.se] has
joined #go-nuts
02:07 -!- Gracenotes [n=person@wikipedia/Gracenotes] has joined #go-nuts
02:07 -!- Anusko [n=anusko@a83-132-19-244.cpe.netcabo.pt] has joined #go-nuts
02:07 -!- mpurcell [n=mpurcell@vpn.michaelpurcell.info] has joined #go-nuts
02:07 -!- vegard [n=vegard@ben.ifi.uio.no] has joined #go-nuts
02:07 -!- eiro_ [n=marc@phear.org] has joined #go-nuts
02:08 -!- aho [n=nya@e176226039.adsl.alicedsl.de] has quit [Connection reset by
peer]
02:08 -!- erzr-1 [n=adam@70.16.73.168] has left #go-nuts []
02:08 -!- eiro [n=marc@phear.org] has quit [Read error: 104 (Connection reset by
peer)]
02:13 < flea__> hi, any recommendations for an editor on OSX?
02:13 -!- kichik|work [n=kichik_w@bzq-84-108-238-52.cablep.bezeqint.net] has quit
[Read error: 110 (Connection timed out)]
02:13 < alexsuraci> flea__: MacVim, Emacs, TextMate.
02:13 < alexsuraci> if you've never used emacs of vim TextMate will probably
be the easiest to get used to
02:14 < flea__> I mostly use eclipse :P
02:14 -!- petercooper [n=petercoo@81-86-235-109.dsl.pipex.com] has joined #go-nuts
02:15 < flea__> xcode has an editor and I use TextWrangler sometimes, so
that might be more ...  gui friendly for me :)
02:16 -!- decriptor [n=decripto@174-23-163-211.slkc.qwest.net] has joined #go-nuts
02:17 < uriel> flea__: see http://go-lang.cat-v.org/text-editors/
02:17 < travisbrady> flea__: i heartily recommend MacVim, but i say download
them all and just try them
02:17 -!- Anusko [n=anusko@a83-132-19-244.cpe.netcabo.pt] has quit [Connection
timed out]
02:17 < flea__> ok, I am hoping for syntax highlighting some time in the
future o_O
02:18 < uriel> flea__: for what editor?  most are supported, see the link
02:18 < flea__> yes, spoke too soon, just noticed that
02:18 < flea__> I'll try textmate
02:19 -!- erzr- [n=adam@70.16.73.168] has quit [Connection timed out]
02:19 -!- petercooper [n=petercoo@81-86-235-109.dsl.pipex.com] has quit
["Leaving..."]
02:23 < flea__> Can functions return function literals?  or is that not
possible because of scoping?
02:23 -!- ajhager [n=ajhager@64-184-75-239.ccrtc.com] has joined #go-nuts
02:25 < uriel> flea__: yes you can return function literals
02:26 < flea__> ok, thanks.
02:29 -!- sliceofpi [n=Adium@c-98-201-183-147.hsd1.tx.comcast.net] has joined
#go-nuts
02:29 < flea__> so declaring a function that returned a function literal
would like something like func a (x int,y int) (func (foo int, bar int) (x int)) {
...  } ?
02:29 -!- hd_ [n=hd_@220.233.176.253] has joined #go-nuts
02:31 < alexsuraci> flea__: yea, except you don't need "foo", "bar", or "x"
in the return type
02:33 -!- eduardoboss [n=boss@187.58.227.99] has joined #go-nuts
02:33 < flea__> oooh, you just need to specify the type (in this case a
function literal), very nice
02:33 < alexsuraci> yep
02:33 < alexsuraci> e.g.  func (int, int) int
02:34 -!- Rob_Russell [n=chatzill@206-248-157-156.dsl.teksavvy.com] has quit
["ChatZilla 0.9.85 [Firefox 3.5.5/20091102152451]"]
02:34 -!- bentley` [n=bentley`@97-119-174-76.albq.qwest.net] has quit [Read error:
113 (No route to host)]
02:34 -!- cjs [i=chris@iced.bongh.it] has joined #go-nuts
02:34 < flea__> oh, I thought you meant you could specify just 'func' :)
02:35 < flea__> my only exposure to anonymous functions is with Lisp, and in
lisp you can do anything you want
02:36 < flea__> just trying to get my head around lambda function
capabilities in go
02:37 -!- Rob_Russell [n=chatzill@206-248-157-156.dsl.teksavvy.com] has joined
#go-nuts
02:38 -!- AlvaroGP [i=Alvaro@89.128.155.68] has quit []
02:40 -!- skyfive [n=skyfive@173-11-110-86-SFBA.hfc.comcastbusiness.net] has quit
[Remote closed the connection]
02:44 -!- bthomson [n=bthomson@c-69-255-188-5.hsd1.va.comcast.net] has quit [Read
error: 60 (Operation timed out)]
02:45 -!- SRabbelier [n=SRabbeli@ip138-114-211-87.adsl2.static.versatel.nl] has
quit ["Leaving."]
02:45 -!- bthomson [n=bthomson@pool-71-114-74-245.washdc.dsl-w.verizon.net] has
joined #go-nuts
02:46 -!- triplez [n=triplez@116.12.175.34] has joined #go-nuts
02:46 -!- prefrontal [n=prefront@mist.colorado.edu] has quit [Read error: 60
(Operation timed out)]
02:46 -!- travisbrady [n=tbrady@67-207-96-194.static.wiline.com] has quit []
02:47 -!- armence [n=armence@c-67-188-229-128.hsd1.ca.comcast.net] has quit
[Connection timed out]
02:47 -!- prefrontal [n=prefront@128.138.223.21] has joined #go-nuts
02:48 -!- triplez [n=triplez@116.12.175.34] has quit [Client Quit]
02:49 -!- alexsuraci [n=alex@pool-71-188-133-67.aubnin.fios.verizon.net] has quit
["Lost terminal"]
02:49 -!- prefrontal [n=prefront@128.138.223.21] has quit [SendQ exceeded]
02:50 < ide> does this mean that as long as I specify the argument+return
types of a function I can use it as a true closure a la lisp?
02:50 -!- prefrontal [n=prefront@128.138.223.21] has joined #go-nuts
02:51 -!- triplez [n=triplez@116.12.175.34] has joined #go-nuts
02:52 < sladegen> yes, go supports true closure.
02:52 < ide> awesome, thanks =)
02:53 -!- pathorn1 [n=pathorn@136.152.170.253] has quit ["Leaving."]
02:53 < flea__> but not 'rest', so you can't specify a function with an
arbitrary number of parameters correct?
02:53 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has quit
["Leaving."]
02:53 -!- bentley` [n=bentley`@71-38-209-21.albq.qwest.net] has joined #go-nuts
02:53 -!- lambo4jos [n=chatzill@c-76-126-250-10.hsd1.ca.comcast.net] has joined
#go-nuts
02:54 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has joined
#go-nuts
02:54 < sladegen> flea__: well you can always implement your func pasing
tuples, structs, list, maps, whatever.
02:54 < flea__> sure
02:55 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has left
#go-nuts []
02:55 < sladegen> but there are no opt or rest arguments.
02:55 -!- ide [n=chatzill@136.152.170.253] has quit ["ChatZilla 0.9.85 [Firefox
3.5.5/20091102152451]"]
02:55 -!- mkanat [n=mkanat@c-67-188-1-39.hsd1.ca.comcast.net] has joined #go-nuts
02:55 <+iant> but you can use a variable number of arguments
02:56 < flea__> oh?
02:56 <+iant> func f(a...)
02:56 <+iant> e.g., fmt.Printf takes a variable number of arguments
02:56 < sladegen> kewl.
02:56 < flea__> nice
02:57 < sladegen> perhaps there is hope for apply yet.
02:59 -!- Will_D [n=will@c-71-231-59-135.hsd1.wa.comcast.net] has joined #go-nuts
02:59 < sladegen> iant: what would .(*&) do if it's not a syntax error?
02:59 -!- ssmall [n=stuart@rrcs-97-77-53-108.sw.biz.rr.com] has joined #go-nuts
03:00 < sladegen> is it like "demotion" to pointer interface?
03:00 < sladegen>
http://groups.google.com/group/golang-nuts/msg/75c95f16e90f0efc
03:01 < sladegen> or am i reading it cluelessly.
03:03 < flea__> why do all references to the reflection interface point to
here: http://golang.org/doc/go_spec.html#Package_unsafe in the language
specification?
03:04 -!- gnuvince_ [n=vince@64.235.207.136] has joined #go-nuts
03:08 -!- Fraeon [n=kzer-za@e212-246-65-153.elisa-laajakaista.fi] has quit []
03:08 -!- eduardoboss [n=boss@187.58.227.99] has quit []
03:09 * sladegen got it, silly me.
03:09 < sladegen> too little sed, too many synonyms.
03:10 -!- paulca [n=paul@c-71-198-213-230.hsd1.ca.comcast.net] has joined #go-nuts
03:10 -!- paulca [n=paul@c-71-198-213-230.hsd1.ca.comcast.net] has quit [Client
Quit]
03:11 -!- Tuller [n=Tuller@pool-72-84-246-12.rcmdva.fios.verizon.net] has quit
["to the batcave?"]
03:11 -!- ericmoritz\0 [n=ericmori@c-76-123-248-214.hsd1.tn.comcast.net] has quit
[Read error: 60 (Operation timed out)]
03:13 -!- sm [n=sm@cpe-76-173-194-242.socal.res.rr.com] has left #go-nuts []
03:14 -!- gnuvince_ [n=vince@64.235.207.136] has quit [Read error: 104 (Connection
reset by peer)]
03:14 -!- slashus2 [n=slashus2@74-137-26-8.dhcp.insightbb.com] has joined #go-nuts
03:15 -!- tor7 [n=tor@c-987a71d5.04-50-6c756e10.cust.bredbandsbolaget.se] has quit
[]
03:16 -!- qbit_ [n=qbit_@c-75-71-160-106.hsd1.co.comcast.net] has quit
["WinPants!"]
03:18 -!- iant [n=iant@67.218.105.155] has quit [Read error: 110 (Connection timed
out)]
03:19 -!- Null-A [n=jason@c-76-21-4-0.hsd1.ca.comcast.net] has joined #go-nuts
03:20 -!- mAxishere [n=chatzill@116.72.211.88] has quit [Remote closed the
connection]
03:23 -!- triplez [n=triplez@116.12.175.34] has quit []
03:23 -!- brrant [n=John@168-103-78-133.hlrn.qwest.net] has joined #go-nuts
03:27 < goplexian> how do I get just the int value out of a float in go?
03:28 -!- vdrab [n=vdrab@cap012-082.kcn.ne.jp] has quit []
03:30 -!- Netsplit farmer.freenode.net <-> irc.freenode.net quits: Anusko,
robot12_, brrant, Null-A, vegard, Gracenotes, flea__, mpurcell
03:31 -!- vdrab [n=vdrab@cap012-082.kcn.ne.jp] has joined #go-nuts
03:34 -!- Netsplit over, joins: brrant, Null-A, Anusko, flea__, robot12_,
mpurcell, vegard, Gracenotes
03:34 -!- Anusko_ [n=anusko@83.132.19.244] has joined #go-nuts
03:35 < KragenSitaker> goplexian: with int()?
03:35 < goplexian> oops, nevermind
03:36 < goplexian> KragenSitaker, ah thanks, yeah I was getting an error I
didnt understand and thought maybe there was more to it
03:37 < goplexian> int64() is what I needed
03:38 < KragenSitaker> ah\
03:39 -!- gnuvince_ [n=vince@64.235.207.136] has joined #go-nuts
03:40 -!- cpr420 [n=cpr420@67.165.199.143] has joined #go-nuts
03:41 -!- ericmoritz\0 [n=ericmori@c-76-123-248-214.hsd1.tn.comcast.net] has
joined #go-nuts
03:44 -!- vdrab [n=vdrab@cap012-082.kcn.ne.jp] has quit []
03:44 -!- Anusko [n=anusko@83.132.19.244] has quit [No route to host]
03:48 -!- triplez [n=triplez@124.155.195.7] has joined #go-nuts
03:50 -!- voluspa [n=voluspa@x-134-84-102-227.reshalls.umn.edu] has joined
#go-nuts
03:54 -!- zerofluid [n=zeroflui@ip72-208-216-68.ph.ph.cox.net] has joined #go-nuts
04:03 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has joined
#go-nuts
04:05 -!- travisbrady [n=tbrady@98.210.155.175] has joined #go-nuts
04:11 -!- voluspa [n=voluspa@x-134-84-102-227.reshalls.umn.edu] has quit [Read
error: 113 (No route to host)]
04:12 < jordyd> Does Go have documentation for it's "C" pseudo-package?  I
cannot find any.
04:13 < uriel> jordyd: you mean cgo?  http://golang.org/cmd/cgo/
04:13 < uriel> that is pretty much all there is to it
04:13 < ziyu_huang> The documents is in the source
$GOROOT/misc/cgo/gmp/gmp.go
04:13 < ziyu_huang> that's pretty much the spec
04:14 < uriel> there are several known issues with cgo (and a few more have
been fixed in recent days)
04:14 < uriel> ah, ziyu_huang, good point, that is a good example too
04:15 < jordyd> OK. I was looking there, but I was hoping there was
something better.  :)
04:15 < uriel> jordyd: what question you have that is not answered there?
04:16 < ziyu_huang> There is no C callback yet . It's a problem for
integration Go to your application . But use can use cgo to reuse your C codes is
poissible.
04:16 -!- halfdan_ [n=halfdan@87.169.76.248] has joined #go-nuts
04:17 < jordyd> How do I use the C data types with native Go ones?  I have
not read through much of the example...  will I find my answer there?
04:17 -!- gnuvince_ [n=vince@64.235.207.136] has quit [Read error: 104 (Connection
reset by peer)]
04:18 < uriel> jordyd: cgo takes care to map them in a fairly 'logical'
way...
04:18 < uriel> bar some bugs with structs that ave bitfields and other such
corner cases, I think it should pretty much 'just work'
04:19 < ziyu_huang> cgo will convert C structto Go struct *automatically*,
but there are many bug there.  For example, it don't understand function pointer
yet.
04:20 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has quit
[Read error: 110 (Connection timed out)]
04:20 < jordyd> So, I can do something like "C.int i = 5;"?
04:21 -!- trickie [n=trickie@86.93.227.181] has quit ["Computer has gone to
sleep"]
04:22 < ziyu_huang> it should be "i C.int = 5" in Go :)
04:22 < jordyd> Oh, yeah.  :) I had my C brain on.
04:23 < jordyd> Cool.  Thanks guys.
04:25 -!- lambo4jos [n=chatzill@c-76-126-250-10.hsd1.ca.comcast.net] has quit
["ChatZilla 0.9.85 [Firefox 3.5.5/20091102152451]"]
04:27 -!- gnuvince_ [n=vince@64.235.207.136] has joined #go-nuts
04:30 -!- halfdan [n=halfdan@p57A94308.dip.t-dialin.net] has quit [Read error: 110
(Connection timed out)]
04:31 < uriel> ziyu_huang: well, I think most of the worst bugs in cgo have
been fixed recently, there are still a few left though..
04:33 -!- slashus2 [n=slashus2@74-137-26-8.dhcp.insightbb.com] has quit []
04:33 -!- ako [n=nya@85.176.226.39] has quit ["EXEC_over.METHOD_SUBLIMATION"]
04:34 < ziyu_huang> uriel: Ya, finally it can directly #include<tcl.h>
, but without C->Go callback, I still can't integrate TCL :(
04:34 < uriel> hmmm...  /me was thinking of looking into binding tk
04:35 -!- itrekkie [n=itrekkie@ip98-165-246-56.ph.ph.cox.net] has joined #go-nuts
04:40 < aaront> can I use Go to open a process?
04:42 -!- alexsuraci [n=alex@pool-71-188-133-67.aubnin.fios.verizon.net] has
joined #go-nuts
04:43 -!- wobsite [n=wobsite_@140.232.177.117] has joined #go-nuts
04:44 -!- rog [n=rog@89.241.23.202] has quit []
04:44 -!- clearscreen [n=clearscr@e248070.upc-e.chello.nl] has quit [Read error:
104 (Connection reset by peer)]
04:44 -!- triplez [n=triplez@124.155.195.7] has quit []
04:46 -!- hipe [n=hipe@pool-96-232-221-238.nycmny.east.verizon.net] has joined
#go-nuts
04:46 -!- wobsite [n=wobsite_@140.232.177.117] has quit [Client Quit]
04:46 -!- itrekkie [n=itrekkie@ip98-165-246-56.ph.ph.cox.net] has quit []
04:48 -!- eno__ [n=eno@70.137.171.2] has joined #go-nuts
04:50 -!- jgoebel [n=jgoebel@96-28-100-3.dhcp.insightbb.com] has joined #go-nuts
04:51 -!- eno [n=eno@nslu2-linux/eno] has quit [Read error: 145 (Connection timed
out)]
04:53 -!- mat_ [n=mat@mx3.absolight.net] has quit [Read error: 104 (Connection
reset by peer)]
04:53 -!- mat_ [n=mat@mx3.absolight.net] has joined #go-nuts
04:53 -!- armence [n=armence@c-67-188-229-128.hsd1.ca.comcast.net] has joined
#go-nuts
04:54 -!- decriptor [n=decripto@174-23-163-211.slkc.qwest.net] has quit [Read
error: 110 (Connection timed out)]
04:55 -!- vdrab [n=vdrab@cap012-082.kcn.ne.jp] has joined #go-nuts
04:57 < sfuentes> cna someone explain to me how i can import a package i
want to test in foo_test.go?
04:57 < sfuentes> i'm using gotest
04:57 < sfuentes> for some reason the import doesn't resolve
04:59 < uriel> sfuentes: does it work when you do it directly?  (ie., not
run it using gotest)
04:59 -!- ednos [n=Miranda@c-75-69-44-39.hsd1.ma.comcast.net] has quit ["Miranda
IM! Smaller, Faster, Easier.  http://miranda-im.org"]
05:02 < sfuentes> uriel: apparently not
05:02 < [Pete_27]> glad i joined this channel, the ncurses bindings is what
i have been searching google for for 3 days now :-)
05:04 -!- eno__ [n=eno@adsl-70-137-158-9.dsl.snfc21.sbcglobal.net] has joined
#go-nuts
05:05 -!- clearscreen [n=clearscr@213.93.248.70] has joined #go-nuts
05:05 < sfuentes> uriel: thanks for the help ...  you're simple question led
me to the answer ...  forgot to expose function as Function
05:05 < uriel> [Pete_27]: if you are looking for bindings,
http://go-lang.cat-v.org/library-bindings is the place to look ;)
05:06 < uriel> [Pete_27]: I'm sure I'm missing a few, but I try to keep
adding them there as fast as people writes them
05:06 < uriel> sfuentes: glad to help :)
05:07 -!- eno [n=eno@nslu2-linux/eno] has quit [Connection timed out]
05:09 < [Pete_27]> yep its a great site
05:13 -!- bigmac [n=jwm@c-67-164-29-94.hsd1.ca.comcast.net] has joined #go-nuts
05:14 -!- jordyd [n=jordyd@99-177-65-75.lightspeed.wepbfl.sbcglobal.net] has quit
[]
05:15 -!- cpr420 [n=cpr420@67.165.199.143] has quit ["Vision[0.9.7-H-090423]: i've
been blurred!"]
05:16 < goplexian> haven't seen this before: ??none??: file not amd64
05:18 < scandal> sigh, more spam on the email list.
05:19 < uriel> scandal: it is because GoogleGroups is written in java, and
its spam filter is buggy (or it wants to purposedly undermine Go ;))
05:21 -!- gnuvince_ [n=vince@64.235.207.136] has quit ["What the fruit is goin' on
here!?"]
05:24 < goplexian> hmm..  something strange is going on, this will compile,
but when I go to link I get the error "??none??: file not amd64" here is the code
http://gopaste.org/87kXf ...any suggestions?
05:25 < uriel> goplexian: does other stuff build?
05:25 < uriel> and what compiler are you using?
05:25 < uriel> 8g or 6g?  and on what platform?  and what is GOARCH?
05:25 < goplexian> uriel, using 6g and so far everything else has worked
fine, been playing with go for a couple days first time I've seen this error
05:26 < uriel> what is $GOARCH?
05:26 < uriel> amd64?
05:26 < goplexian> $ env | grep "^GO"
05:26 < goplexian> GOBIN=/home/acombas/bin
05:26 < goplexian> GOARCH=amd64
05:26 < goplexian> GOROOT=/home/acombas/opt/go
05:26 < goplexian> GOOS=linux
05:27 < uriel> did you do a pull recently?
05:27 -!- aaront [n=aaront@unaffiliated/aaront] has quit ["And that's all he
wrote..."]
05:27 < goplexian> I did a pull after the announcement on the mailing list
yesterday or the day before that they had tagged a new release
05:27 < uriel> I'd try to update to the hg tip and rebuild, there might be a
simpler explanation for the error (it sounds vaguely familiar), but seems worth
trying
05:27 < uriel> do a new pull, there were a few bugs that sliped into the
release
05:28 < uriel> (one of them meant that some dependencies were wrong and not
everything built fine)
05:28 < goplexian> I'll give it a shot, i've been compiling other little go
snippets with no problems fo far tonight
05:28 < goplexian> so far tonight, rather
05:29 < uriel> yea, it just might be that some bits didn't build right, pure
wild speculation on my part, still, quite a few bug fixes and improvements have
gone in recently so it is wroth it anyway
05:29 < goplexian> alright i'll give a shot
05:29 * goplexian wishes go was in git
05:30 -!- bigmac [n=jwm@c-67-164-29-94.hsd1.ca.comcast.net] has quit [Client Quit]
05:30 < uriel> heh
05:30 < uriel> hg is quite fast
05:30 < goplexian> its not speed that really matters, i just dont know how
to use merc thats all
05:30 * uriel really wonders why people are so religious about their vcs, other
than svn being total crap, git or hg makes little different to me
05:30 < uriel> just do hg pull -u
05:31 < uriel> that is all you need
05:31 < goplexian> compiling now
05:31 < goplexian> thx
05:32 < goplexian> uhoh, got an error
05:33 < goplexian> exec·Run: undefined: runtime·arraytoslice
05:33 < goplexian> hash_remove_n: undefined: mmov
05:33 < goplexian> make: *** [cgo] Error 1
05:33 -!- westymatt_ [n=westymat@173.17.254.31] has joined #go-nuts
05:33 < westymatt_> How does forkexec work exactly
05:33 < westymatt_> it forks, then reexcutes main maintaing argv?
05:37 < uriel> goplexian: that sounds strange, did you run clean.bash first?
05:38 < uriel> westymatt_: I'm not sure, but I probably would look at the
implementation ;)
05:38 < goplexian> uriel, no but I did `hg update release` then recompiled,
and I dont have that error anymore, of course my program doesn't work right yet,
but thats another matter ^^ thx man
05:38 < uriel> heh, no problem
05:39 < goplexian> I'll run clean.bash next time though before recompiling
05:40 < uriel> yea, that is a good idea usually
05:40 < mikejs> has anyone put together a list of all the go projects that
have popped up since its release?
05:41 < uriel> mikejs: I have tried: http://go-lang.cat-v.org/
05:41 < uriel> se the go code, library bindings, and pure go libs pages
05:42 < uriel> I'm sure I'm missing quite a few things, but it is an start..
05:42 < mikejs> very nice, thank you
05:43 < uriel> no problem, let me know if you know of any that is not listed
there
05:45 < Rob_Russell> uriel: all.bash runs clean.bash (last version i looked
at anyway).  is there another build script that doesn't run clean.bash?
05:45 < Rob_Russell> asking because the build takes forever if you're
touching the Go source...
05:46 -!- droid0011 [n=g1@p4FDCDB87.dip.t-dialin.net] has joined #go-nuts
05:46 < uriel> Rob_Russell: ok, good point, I guess I'm more clueless than I
thought ;)
05:47 < Null-A> Rob_Russell: aren't rob and russell two different people?
05:47 < Rob_Russell> uriel: hehe, i was hoping you just knew something i
didn't
05:47 < uriel> Null-A: haha
05:48 * uriel just noticed Rob_Russell's nick
05:48 < uriel> Rob_Russell_Thompson would be even better
05:48 < Rob_Russell> lol - no - Russell is my last name for reals
05:49 < uriel> that is what I assumed, then I noticed the coincidence and
wondered if it was a joke :)
05:49 < Rob_Russell> it's a crowded namespace
05:50 < uriel> hehehe..
05:51 -!- Netsplit farmer.freenode.net <-> irc.freenode.net quits: brrant,
eno, robot12_, vegard, Null-A, Anusko, flea__, mpurcell
05:51 < uriel> if you are a type that embeds the Rob and Russell interfaces,
you must be quite awesome :)
05:51 < drhodes> is there a way to do typedef ?
05:51 < Rob_Russell> lol
05:51 < uriel> drhodes: yes, type
05:51 < drhodes> duh!
05:52 < drhodes> I will now go to read some things.
05:52 < uriel> type MyInt int
05:53 < drhodes> well that's guessably easy.
05:53 < uriel> by the way, the slides linked from the top of here:
http://golang.org/doc/go_tutorial.html
05:53 < uriel> are really great
05:53 < uriel> strongly recommended
05:53 < drhodes> I've seen most of the material
05:54 < drhodes> but there is a lot of it.
05:54 -!- vdrab [n=vdrab@cap012-082.kcn.ne.jp] has quit []
05:55 < uriel> yes, there is quite a bit of it
05:57 -!- drusepth` [n=drusepth@174.32.154.79] has joined #go-nuts
05:59 -!- iankt [n=mouse@CPE-124-188-96-237.lbcz1.ken.bigpond.net.au] has joined
#go-nuts
06:00 -!- sferry [n=sam@unaffiliated/samferry] has quit ["Leaving"]
06:01 -!- FarOut
[n=FarOut@CPE00195b075af4-CM00186852110c.cpe.net.cable.rogers.com] has joined
#go-nuts
06:01 -!- phillipsm [n=mattscom@173-23-63-244.client.mchsi.com] has joined
#go-nuts
06:03 -!- droid001 [n=g1@p4FDCD518.dip.t-dialin.net] has quit [Success]
06:04 -!- robot12_ [n=robot12@inferno.kgts.ru] has joined #go-nuts
06:04 -!- robot12_ [n=robot12@inferno.kgts.ru] has quit [Killed by
ballard.freenode.net (Nick collision)]
06:04 -!- eno [n=eno@nslu2-linux/eno] has joined #go-nuts
06:04 -!- Anusko [n=anusko@83.132.19.244] has joined #go-nuts
06:04 -!- brrant [n=John@168-103-78-133.hlrn.qwest.net] has joined #go-nuts
06:04 -!- Null-A [n=jason@c-76-21-4-0.hsd1.ca.comcast.net] has joined #go-nuts
06:04 -!- flea__ [n=mouse@CPE-124-188-96-237.lbcz1.ken.bigpond.net.au] has joined
#go-nuts
06:04 -!- robot12_ [n=robot12@78.138.154.66] has joined #go-nuts
06:04 -!- mpurcell [n=mpurcell@vpn.michaelpurcell.info] has joined #go-nuts
06:04 -!- vegard [n=vegard@ben.ifi.uio.no] has joined #go-nuts
06:04 -!- mpurcell [n=mpurcell@vpn.michaelpurcell.info] has quit [Success]
06:04 -!- drusepth [n=drusepth@174.32.154.79] has quit [Read error: 145
(Connection timed out)]
06:04 -!- robot12_ [n=robot12@78.138.154.66] has quit [Read error: 104 (Connection
reset by peer)]
06:05 -!- robot12__ [n=robot12@78.138.154.66] has joined #go-nuts
06:05 -!- Anusko_ [n=anusko@83.132.19.244] has joined #go-nuts
06:05 -!- eno [n=eno@nslu2-linux/eno] has quit [SendQ exceeded]
06:05 -!- vegard [n=vegard@ben.ifi.uio.no] has quit [Read error: 110 (Connection
timed out)]
06:05 -!- path_ [n=path@115.240.64.146] has joined #go-nuts
06:05 -!- mpurcell [n=mpurcell@vpn.michaelpurcell.info] has joined #go-nuts
06:05 -!- brrant [n=John@168-103-78-133.hlrn.qwest.net] has quit [Success]
06:06 -!- brrant [n=John@168-103-78-133.hlrn.qwest.net] has joined #go-nuts
06:06 -!- Anusko [n=anusko@83.132.19.244] has quit [Connection timed out]
06:06 -!- flea__ [n=mouse@CPE-124-188-96-237.lbcz1.ken.bigpond.net.au] has quit
[Connection timed out]
06:07 -!- Null-A [n=jason@c-76-21-4-0.hsd1.ca.comcast.net] has quit [No route to
host]
06:09 -!- clearscreen [n=clearscr@213.93.248.70] has quit [Read error: 131
(Connection reset by peer)]
06:09 -!- blackmagik [n=blackmag@unaffiliated/blackmagik] has joined #go-nuts
06:10 -!- eno [n=eno@nslu2-linux/eno] has joined #go-nuts
06:12 -!- squerl [n=user@cpe-71-79-180-112.neo.res.rr.com] has joined #go-nuts
06:14 -!- ssantino [n=ssantino@c-76-29-212-41.hsd1.in.comcast.net] has quit [Nick
collision from services.]
06:14 -!- phillipsm [n=mattscom@173-23-63-244.client.mchsi.com] has quit
["ChatZilla 0.9.85 [Firefox 3.5.5/20091109134913]"]
06:15 -!- iant [n=iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined
#go-nuts
06:15 -!- mode/#go-nuts [+v iant] by ChanServ
06:18 -!- squerl [n=user@cpe-71-79-180-112.neo.res.rr.com] has quit [Remote closed
the connection]
06:20 -!- Rob_Russell [n=chatzill@206-248-157-156.dsl.teksavvy.com] has quit
["ChatZilla 0.9.85 [Firefox 3.5.5/20091102152451]"]
06:20 -!- skyfive [n=skyfive@adsl-69-107-0-172.dsl.pltn13.pacbell.net] has joined
#go-nuts
06:30 -!- djanderson [n=dja@hltncable.pioneerbroadband.net] has quit [Read error:
110 (Connection timed out)]
06:30 -!- aanderse
[n=aanderse@CPE001b11cc67d3-CM0019475d7f5e.cpe.net.cable.rogers.com] has quit
[Read error: 113 (No route to host)]
06:36 -!- illya77 [n=illya77@207-155-133-95.pool.ukrtel.net] has joined #go-nuts
06:38 < [Pete_27]> am i able to contribute to the libraries??  do i have to
talk to the owner?
06:38 < [Pete_27]> by libraries i mean bindings from
http://go-lang.cat-v.org/library-bindings
06:39 < jabb> I think you have to talk with the owners
06:40 < [Pete_27]> which is you i believe, gocurse
06:40 < jabb> yeah
06:40 -!- codehai [n=codehai@78.34.34.169] has joined #go-nuts
06:40 < [Pete_27]> i added newwin() and subwin()
06:40 -!- vdrab [n=vdrab@cap008-139.kcn.ne.jp] has joined #go-nuts
06:43 -!- travisbrady_ [n=tbrady@98.210.155.175] has joined #go-nuts
06:43 -!- travisbrady [n=tbrady@98.210.155.175] has quit [Read error: 104
(Connection reset by peer)]
06:44 -!- path_ [n=path@115.240.64.146] has quit [Read error: 110 (Connection
timed out)]
06:45 -!- Adys [n=Adys@unaffiliated/adys] has joined #go-nuts
06:55 -!- drusepth` [n=drusepth@174.32.154.79] has quit [Read error: 104
(Connection reset by peer)]
06:55 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has joined
#go-nuts
06:57 -!- drusepth [n=drusepth@174.32.154.79] has joined #go-nuts
06:58 -!- a_ [i=4c7eac39@gateway/web/freenode/x-njlxryzmgymznkqg] has joined
#go-nuts
06:59 -!- a_ [i=4c7eac39@gateway/web/freenode/x-njlxryzmgymznkqg] has quit [Client
Quit]
07:02 -!- me___ [n=venkates@c-68-55-179-48.hsd1.md.comcast.net] has quit [Read
error: 145 (Connection timed out)]
07:02 < uriel> [Pete_27]: cool
07:02 -!- drusepth` [n=drusepth@174.32.154.79] has joined #go-nuts
07:06 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has joined
#go-nuts
07:08 -!- drusepth`` [n=drusepth@174.32.154.79] has joined #go-nuts
07:10 -!- drusepth [n=drusepth@174.32.154.79] has quit [Read error: 145
(Connection timed out)]
07:10 -!- drusepth [n=drusepth@174.32.154.79] has joined #go-nuts
07:15 -!- travisbrady [n=tbrady@98.210.155.175] has quit []
07:16 -!- zerofluid [n=zeroflui@ip72-208-216-68.ph.ph.cox.net] has quit ["This
computer has gone to sleep"]
07:18 -!- clearscreen [n=clearscr@e248070.upc-e.chello.nl] has joined #go-nuts
07:18 -!- clearscreen [n=clearscr@e248070.upc-e.chello.nl] has quit [Read error:
54 (Connection reset by peer)]
07:19 -!- aa [n=aa@r190-135-147-12.dialup.adsl.anteldata.net.uy] has quit [Read
error: 113 (No route to host)]
07:21 -!- drusepth [n=drusepth@174.32.154.79] has quit [Read error: 145
(Connection timed out)]
07:21 -!- drusepth [n=drusepth@174.32.154.79] has joined #go-nuts
07:24 -!- drusepth` [n=drusepth@174.32.154.79] has quit [Read error: 110
(Connection timed out)]
07:25 < sfuentes> is there a way to convert []int to []string ? or do i have
to iterate through the array to do the conversion?
07:26 -!- drusepth`` [n=drusepth@174.32.154.79] has quit [Read error: 110
(Connection timed out)]
07:26 < hipe> sfuentes: what do you mean []int?  an array of integers?
07:27 < directrixx> sfuentes do you mean []int to string?  (instead of
[]string)
07:27 < hipe> array_of_strings = array_of_integers.map{|x| x.to_s } # is
this what you mean?  sfuentes?
07:29 < hipe> oh geez sorry guys wrong channel
07:29 < uriel> haha
07:29 < sfuentes> is that scala?
07:29 < impl> looks like ruby
07:29 < hipe> lol wrong language even -- ruby.
07:29 < uriel> I think string([]int) might do
07:30 < sfuentes> i need each int to be a string
07:30 -!- hipe [n=hipe@pool-96-232-221-238.nycmny.east.verizon.net] has quit
[Remote closed the connection]
07:31 < sfuentes> or is there a char type?
07:31 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has quit
["Leaving."]
07:31 < uriel> sfuentes: you mean you want each int in the array to be a
string?
07:32 < uriel> (or a char)
07:32 < sfuentes> yeah
07:33 < uriel> did you try string(i)
07:37 < sfuentes> so basically i have this: [2,4,1] ([]int) and i'm trying
to use strings.Join([2,4,1], ',') to get this: "2,4,1"
07:37 < sfuentes> of course this is a trivial example, but you get the idea
07:38 < sfuentes> problem is Join takes []string
07:38 -!- drusepth [n=drusepth@174.32.154.79] has quit [Read error: 54 (Connection
reset by peer)]
07:38 < sfuentes> and i can iterate through []int converting each integer,
but then i wouldn't really need Join
07:38 -!- ybits [n=ryan@c-68-46-83-85.hsd1.nj.comcast.net] has joined #go-nuts
07:38 < uriel> no, I don't get the idea
07:39 < uriel> you want ints to converted to their unicode points
07:39 < uriel> or you want 1 converted to '1'
07:39 < sfuentes> basically converting an array to a json array
07:39 -!- decriptor [n=decripto@53.250.sfcn.org] has joined #go-nuts
07:40 -!- Anders__ [n=Anders@c83-253-2-206.bredband.comhem.se] has joined #go-nuts
07:40 < sfuentes> i think my english is failing me
07:41 < uriel> if you want to do that, use the json module
07:41 < uriel> but even the fmt module might do what you want
07:41 < uriel> try Sprint
07:42 < uriel> and i think it is %v
07:42 < sfuentes> uriel: you are absolutely right about using json module,
but i'm basically trying to write the json module as an exercise
07:42 < sfuentes> without looking at the module source code
07:42 < sfuentes> trying to get comfortable with go
07:43 -!- Shane_ [n=Shane@pool-72-71-43-189.plspca.fios.verizon.net] has joined
#go-nuts
07:44 < sfuentes> uriel: you are right.  i was able to use the fmt module,
but i was wondering if it was possible to the Join function in strings module
07:44 < uriel> everything is possible with enough effort
07:45 < sfuentes> :) i tend to say that a lot myself
07:45 -!- Shane_ [n=Shane@pool-72-71-43-189.plspca.fios.verizon.net] has quit
[Client Quit]
07:46 -!- Shane_ [n=Shane@pool-72-71-43-189.plspca.fios.verizon.net] has joined
#go-nuts
07:46 -!- vegard [n=vegard@129.240.64.202] has joined #go-nuts
07:47 -!- Shane_ [n=Shane@pool-72-71-43-189.plspca.fios.verizon.net] has quit
[Client Quit]
07:48 -!- ajstarks [n=ajstarks@pool-98-109-198-180.nwrknj.fios.verizon.net] has
joined #go-nuts
07:48 -!- triplez [n=triplez@124.155.195.7] has joined #go-nuts
07:50 -!- ajstarks [n=ajstarks@pool-98-109-198-180.nwrknj.fios.verizon.net] has
left #go-nuts []
07:50 -!- ajstarks [n=ajstarks@pool-98-109-198-180.nwrknj.fios.verizon.net] has
joined #go-nuts
07:52 -!- ajstarks [n=ajstarks@pool-98-109-198-180.nwrknj.fios.verizon.net] has
left #go-nuts []
07:52 -!- turutosiya [n=turutosi@219.106.251.65] has left #go-nuts []
07:55 -!- vdrab [n=vdrab@cap008-139.kcn.ne.jp] has quit []
07:56 -!- trickie [n=trickie@86.93.227.181] has joined #go-nuts
07:57 -!- Jaywalker [n=jwilliam@74.194.109.108] has joined #go-nuts
07:59 -!- ybits [n=ryan@c-68-46-83-85.hsd1.nj.comcast.net] has quit []
07:59 -!- jA_cOp [n=yakobu@ti0043a380-3093.bb.online.no] has quit ["Leaving"]
08:03 -!- trickie [n=trickie@86.93.227.181] has quit ["Computer has gone to
sleep"]
08:08 -!- decriptor [n=decripto@53.250.sfcn.org] has quit [Read error: 113 (No
route to host)]
08:09 -!- mkanat [n=mkanat@c-67-188-1-39.hsd1.ca.comcast.net] has quit ["Bye!"]
08:11 -!- limec0c0nut [n=michael@c-24-12-53-42.hsd1.il.comcast.net] has quit
["Leaving"]
08:11 -!- vdrab [n=vdrab@cap008-139.kcn.ne.jp] has joined #go-nuts
08:16 < Smergo> kfx: Look at changeset 4180:aff697587839
08:21 -!- raichoo [n=raichoo@87.123.157.178] has joined #go-nuts
08:21 -!- sergio [n=sergio@unaffiliated/sergio] has joined #go-nuts
08:21 -!- tav [n=tav@78.147.249.190] has joined #go-nuts
08:21 * tav waves
08:22 < uriel> hi tav
08:22 -!- trickie [n=trickie@86.93.227.181] has joined #go-nuts
08:22 < tav> guess google gets a *lot* of interest
08:23 < ziyu_huang> Looks Go has plan to support Nacl
http://code.google.com/p/nativeclient/.  Anyone know is there any plan for Android
?
08:23 < tav> so is there a listing of go-based projects somewhere ?
08:23 < ziyu_huang> tav: you may give a look here http://go-lang.cat-v.org/
08:24 -!- trickie [n=trickie@86.93.227.181] has quit [Client Quit]
08:24 -!- trickie [n=trickie@86.93.227.181] has joined #go-nuts
08:24 < uriel> tav: as far as I'm concerned, anything ken does gets *all* my
interest
08:25 < uriel> ziyu_huang: both Go compilers can compile for Arm, so...
08:25 < tav> oooh, someone's working on a go linalg library
http://code.google.com/p/gomatrix/ — nice
08:25 < ziyu_huang> Support Arm is different from support Android SDK
08:26 < uriel> ziyu_huang: yes
08:26 -!- hotshot [n=hotshot@117.199.129.114] has joined #go-nuts
08:26 < uriel> ziyu_huang: if you want to write a Go to Android (whatever it
was called) bytecode compiler, go ahead..
08:27 < ziyu_huang> People may do some hack using NDK, but you know ...  it
just hack can't use for production
08:27 < uriel> but given that Go can run native...
08:27 < tav> uriel: i guess i should be thanking you for go-lang.cat-v.org ?
08:27 < uriel> ziyu_huang: obviously
08:27 -!- shoafb [n=The_Doct@98.150.247.183] has joined #go-nuts
08:27 < uriel> tav: you don't have to thank me, you should thank all the
people that wrote all those projects in less than a week
08:28 < tav> hah!  @ gopaste.org
08:28 < ziyu_huang> Hope there is GoDK for Android, so I don't need to
bother java anymore :)
08:28 < tav> nice guys
08:29 < Ycros> ziyu_huang: I doubt that will happen any time soon
08:29 -!- loureiro [n=loureiro@201008189052.user.veloxzone.com.br] has quit
["Quit"]
08:30 < shoafb> Greetings Everybody, I realise I must be the millionth
person to ask this, but how does one install / make use of the .xclangspec files
provided with the go distribution?
08:30 < tav> i'd have thought go would be more in line with chrome os than
android — *shrug*
08:31 < uriel> ziyu_huang: that indeed would be NICE
08:31 < ziyu_huang> Anyone see the announce of Chrome OS ? It's stupid don't
support 3rd SDK . Sound like iPhone 1.0 ...
08:32 < uriel> shoafb: no clue, I don't know anything about xcode, but I
think it is documented in the files themseleves
08:32 < ziyu_huang> Help Go can be first priority support when Chrome OS
actually have an SDK
08:32 < uriel> ziyu_huang: just another silly linux distro, totally
un-interesting as far as I'm concerned
08:33 < JBeshir> ziyu_huang: It can't have an SDK for third party apps
because it doesn't have an SDK for any apps at all because it doesn't have support
for any kind of local application at all.
08:33 < ziyu_huang> like iPhone, it's really software boost only after
native SDK released
08:33 < JBeshir> ziyu_huang: How stupid do you have to be?  I mean,
seriously.  Is a web appliance such a hard thing to understand?
08:34 < uriel> JBeshir: it is not hard to understand, it is also not very
interesting/useful
08:34 < uriel> anyway, this is all offtopic
08:34 < shoafb> uriel: heh, I feel so foolish, already found the site
mentioned in the file opening as plaintext..  funny it should mention there's
hardly any documentation, found that myself, does mention the directories though,
thank you
08:34 < JBeshir> Sorry, sorry, offtopic and impolite at that.
08:34 < uriel> what I want is more Go libraries and less bindings ;)
08:35 < ziyu_huang> It sounds like iPhone 1.0 to me :) , web app can replace
native app , that's a joke :(
08:35 < uriel> shoafb: no problem
08:35 -!- triplez [n=triplez@124.155.195.7] has quit []
08:36 -!- Anders__ [n=Anders@c83-253-2-206.bredband.comhem.se] has quit [Read
error: 110 (Connection timed out)]
08:38 < ziyu_huang> uriel: that's good point of view.  But it will takes
time.  sounds like java's goal in first place at desktop.
08:38 < uriel> now, everyone vote for this issue to get Go on App Engine:
http://code.google.com/p/googleappengine/issues/detail?id=2382 !
08:38 < vegai> do they care about those votes?  Oh well, it costs nothing
08:39 < uriel> they do care (a bit) about the votes, it indicates demand
08:39 < uriel> (sort of)
08:39 < ziyu_huang> urial: without a VM layer, it's hard to think Google App
engine will support it.  Google App engine count every thing for $$$
08:40 < uriel> ziyu_huang: actually, Go could work without a VM, because it
has no pointer arithmetic so it could be 'safe'
08:40 < uriel> or it could run on nacl in app engine
08:40 < ziyu_huang> uriel: "safe" is not the key.  How do you monitor
everything without a VM ?
08:40 < uriel> rob has said he would like to see Go on App Engine, and he
seemed to have some ideas about how to make it work
08:41 < uriel> ziyu_huang: most app engine stuff is done outside your code,
using services you access over protocol buffers
08:41 < uriel> and one can monitor cpu usage of a process
08:41 -!- scarabx [n=scarabx@c-24-147-239-120.hsd1.ma.comcast.net] has quit [Read
error: 54 (Connection reset by peer)]
08:41 < uriel> so I dont think the vm is needed at all
08:41 < tav> well, i got friends to star up
http://code.google.com/p/googleappengine/issues/detail?id=671 and that got the app
engine and guido's attention
08:41 -!- go-nuts [n=go-nuts@189.130.253.44] has joined #go-nuts
08:42 < uriel> (of course, there is little info outside Google about how app
engine manages things on the server side)
08:42 < tav> so i'd say, yes, they do care (a bit) for the votes
08:42 < ziyu_huang> uriel: I just look into nacl.  It looks like a key . I
just saw it , so I don't understand how it works.
08:42 < tav> uriel: yeah, run on nacl inside app engine =)
08:42 -!- scarabx [n=scarabx@c-24-147-239-120.hsd1.ma.comcast.net] has joined
#go-nuts
08:42 -!- go-nuts [n=go-nuts@189.130.253.44] has quit [Client Quit]
08:42 -!- oscar [n=oscar@189.130.253.44] has joined #go-nuts
08:43 -!- oscar [n=oscar@189.130.253.44] has quit [Client Quit]
08:44 < uriel> I think it would be possible to run safely without nacl, but
nacl is an extra layer of security if they wanted to
08:44 -!- oscar [n=oscar@189.130.253.44] has joined #go-nuts
08:44 < tav> now, one thing that would be quite cool and something we can do
independently of app engine...  is implementing app engine's Remote API in Go...
08:45 < uriel> that would indeed be neat
08:45 < ziyu_huang> does Go have anything like RMI in java ?
08:46 -!- hotshot [n=hotshot@117.199.129.114] has quit [Client Quit]
08:46 < Ycros> it has an rpc package
08:46 -!- nigwil [n=chatzill@ppp59-167-71-67.lns20.hba1.internode.on.net] has
joined #go-nuts
08:46 < tav> ziyu_huang: i haven't looked into it, but there's an rpc
package
08:47 < tav> in fact, i only started looking at go properly an hour ago, so
still a while to go =)
08:47 < oscar> Hello everybody.  I would be glad if somebody help me.
08:47 < tav> question: i didn't see any mention of select, epoll, etc.  —
does anyone know what the support is networking wise ?
08:47 < oscar> I'm compiling Go and I get this error: --- FAIL:
net.TestDialGoogle
08:47 < uriel> there is also a PB implementation for Go, will be released
with the next PB version that come sout
08:48 < tav> oscar: have you got the latest release ?
08:48 < uriel> oscar: ignore that error, it is caused by your firewall or
some silly OS X problem
08:48 -!- vdrab [n=vdrab@cap008-139.kcn.ne.jp] has quit []
08:48 < tav> uriel: there's a new Pb version coming out ?
08:48 -!- vdrab [n=vdrab@cap008-139.kcn.ne.jp] has joined #go-nuts
08:48 < oscar> I've read that's a problem related with ISP provider
08:49 < uriel> tav: well, yes PB will obviously make new releases
08:49 < uriel> tav: of the implementations that is, I don't think the
format/protocol will change
08:49 < oscar> I got the release using hg clone -r
08:49 < tav> uriel: ah, btw any idea w.r.t select, epoll, etc.  ?
08:49 < uriel> oscar: it is more likely to be a firewall on your box, in any
case, you can safely ignore it
08:49 < oscar> uriel: ok thanks a lot
08:50 < uriel> tav: what about it?
08:50 < uriel> go uses (AFAIK) epoll internally, but you certainly
shouldn't, use goroutines instead
08:50 < uriel> that is the whole point of Go, that you don't have to use
crap like that
08:50 < oscar> I've been compiling correctly but I was to be sure anyway
08:51 -!- evilhackerdude [n=stephan@dslb-084-062-192-073.pools.arcor-ip.net] has
joined #go-nuts
08:51 < uriel> oscar: it is a know problem, not a big deal so nobody had
time to figure out how to fix it yet
08:51 < uriel> er known
08:51 < tav> is there any documentation of what Go does internally w.r.t
networking ?
08:51 < uriel> tav: what do you mean?  there is not much to document I guess
08:51 -!- trickie [n=trickie@86.93.227.181] has quit ["Computer has gone to
sleep"]
08:51 < exch> the sourcecode is all the documentation you'll need ;)
08:51 < uriel> as for the issue oscar mentions, Go doesn't use libc, so it
implements its own dns resolver
08:52 < vegai> should we add uriel's library repos to the topic
08:52 < uriel> and apparently firewalls and some OS X crap are unhappy about
programs doing their own dns queries
08:53 < oscar> uriel: I know, I spent a couple of days looking for an
answer.  Thanks.  I'm a student and I am learning yet about this code stuff.
08:53 < ziyu_huang> uriel: I don't have such problem in OSX 10.6 ...  ;) I
don't think OSX is crap :P
08:54 < uriel> ziyu_huang: i dont know, I'm not sure what exactly cauess the
problem...  in any case it can be mostly ignored
08:55 < oscar> everybody: Good night from Mexico.  Thanks again.
08:55 < uriel> good night oscar
08:55 < tav> nn oscar
08:55 < tav> exch: hehe
08:55 < uriel> oscar: btw, if you are interested there is a spanigh
mailinglist for go
08:55 < uriel> and ther eis #go-spanish
08:56 -!- directrixx [n=aleksand@ip68-231-189-247.tc.ph.cox.net] has quit [Read
error: 60 (Operation timed out)]
08:56 < oscar> Oh thanks.  I get it!  XD
08:56 < uriel> and for everyone else, there is a subreddit at
http://reddit.com/r/golang/
08:56 < ziyu_huang>
http://www.sitepoint.com/blogs/2009/11/19/google-chrome-go-plugin/ I like this
idea :)
08:58 * uriel isn't sure, but then, I hate all web browsers...
09:00 < ziyu_huang> chrome is an OS too ;) , so develop plugin means develop
3rd app for Chrome OS ? XD
09:00 -!- lux` [n=lux@151.54.240.177] has joined #go-nuts
09:01 < oscar> uriel: do you know some android irc channel in spanish?
09:01 -!- hipe [n=hipe@static-68-161-228-103.ny325.east.verizon.net] has joined
#go-nuts
09:02 < uriel> no
09:02 < uriel> and I don't know anything about android
09:02 * uriel hates java
09:02 < oscar> Ok, thanks anyway.
09:02 -!- oscar [n=oscar@189.130.253.44] has left #go-nuts []
09:04 -!- westymatt_ [n=westymat@173.17.254.31] has quit [Remote closed the
connection]
09:06 -!- Fish [n=Fish@78.238.225.114] has joined #go-nuts
09:06 -!- bquinn [n=bquinn@office.velleman.com] has joined #go-nuts
09:10 -!- shoafb [n=The_Doct@98.150.247.183] has quit [Remote closed the
connection]
09:10 -!- shoafb [n=The_Doct@98.150.247.183] has joined #go-nuts
09:14 -!- tf [n=mouse@CPE-124-188-96-237.lbcz1.ken.bigpond.net.au] has quit
["ChatZilla 0.9.85 [Firefox 3.5.5/20091102134505]"]
09:16 -!- jabb [n=grue@71.94.31.166] has quit ["Lost terminal"]
09:16 -!- elmar [n=elmar@dslb-094-219-210-085.pools.arcor-ip.net] has joined
#go-nuts
09:19 -!- shoafb [n=The_Doct@98.150.247.183] has quit [Read error: 145 (Connection
timed out)]
09:19 -!- ssmall [n=stuart@rrcs-97-77-53-108.sw.biz.rr.com] has quit [Read error:
110 (Connection timed out)]
09:22 -!- codehai [n=codehai@78.34.34.169] has quit [Client Quit]
09:23 -!- hipe [n=hipe@static-68-161-228-103.ny325.east.verizon.net] has quit
[Remote closed the connection]
09:24 -!- hipe [n=hipe@static-68-161-228-103.ny325.east.verizon.net] has joined
#go-nuts
09:27 -!- codehai [n=codehai@xdsl-78-34-34-169.netcologne.de] has joined #go-nuts
09:27 -!- codehai [n=codehai@xdsl-78-34-34-169.netcologne.de] has left #go-nuts []
09:28 -!- asmo [n=asmo@c-f6c5e055.1155-1-64736c11.cust.bredbandsbolaget.se] has
joined #go-nuts
09:37 -!- shambler [i=kingrat@mm-51-163-84-93.dynamic.pppoe.mgts.by] has quit
["What you have been is not on boats."]
09:37 -!- hipe [n=hipe@static-68-161-228-103.ny325.east.verizon.net] has quit
[Remote closed the connection]
09:37 -!- shambler [i=kingrat@mm-51-163-84-93.dynamic.pppoe.mgts.by] has joined
#go-nuts
09:41 -!- delsvr [n=delsvr@67.242.41.219] has quit []
09:44 -!- shoafb [n=The_Doct@cpe-98-150-247-183.hawaii.res.rr.com] has joined
#go-nuts
09:45 -!- napsy [n=luka@88.200.96.14] has joined #go-nuts
09:46 -!- illya77 [n=illya77@207-155-133-95.pool.ukrtel.net] has quit [Read error:
104 (Connection reset by peer)]
09:48 -!- nigwil [n=chatzill@ppp59-167-71-67.lns20.hba1.internode.on.net] has quit
["ChatZilla 0.9.85 [Firefox 3.5.5/20091102152451]"]
09:48 -!- hipe [n=hipe@pool-74-108-181-155.nycmny.east.verizon.net] has joined
#go-nuts
09:51 -!- shoafb [n=The_Doct@cpe-98-150-247-183.hawaii.res.rr.com] has quit
["Leaving..."]
09:52 -!- Perberos [n=Perberos@190.49.59.18] has quit ["Ex-Chat"]
10:00 -!- Sungem_ [i=Sungem@118-168-232-141.dynamic.hinet.net] has joined #go-nuts
10:01 -!- Nanoo [n=Nano@95-89-198-15-dynip.superkabel.de] has joined #go-nuts
10:11 -!- Anders__ [n=Anders@c83-253-2-206.bredband.comhem.se] has joined #go-nuts
10:12 -!- hhg [n=hhg@hhg.to] has quit [Remote closed the connection]
10:12 -!- hhg [n=hhg@hhg.to] has joined #go-nuts
10:14 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has joined
#go-nuts
10:14 -!- bquinn [n=bquinn@office.velleman.com] has quit []
10:15 -!- gnibbler_ [n=duckman@203-217-89-231.dyn.iinet.net.au] has joined
#go-nuts
10:15 -!- Kyle|Mr_K_13 [i=Kyle@122-148-63-115.static.dsl.dodo.com.au] has quit
[Read error: 110 (Connection timed out)]
10:18 -!- gnibbler [n=duckman@124.168.30.157] has quit [Read error: 145
(Connection timed out)]
10:19 -!- Sungem [n=Sungem@118-168-232-141.dynamic.hinet.net] has quit [Read
error: 110 (Connection timed out)]
10:20 -!- armence [n=armence@c-67-188-229-128.hsd1.ca.comcast.net] has quit
["Leaving"]
10:22 -!- path_ [n=path@115.240.37.97] has joined #go-nuts
10:28 -!- Misto [n=Misto@ppp-137-89.32-151.iol.it] has joined #go-nuts
10:28 < Misto> any ide that already supports go ?
10:30 < uriel> Misto: http://go-lang.cat-v.org/text-editors/
10:31 < Misto> urile: tnx !
10:31 -!- Spaghettini [n=Spaghett@vaxjo6.150.cust.blixtvik.net] has quit
[Connection timed out]
10:35 -!- shambler_ [i=kingrat@mm-51-163-84-93.dynamic.pppoe.mgts.by] has joined
#go-nuts
10:35 -!- Wiz126 [i=Wiz126@72.20.220.217] has joined #go-nuts
10:35 -!- CoconutCrab [n=toor@unaffiliated/coconutcrab] has joined #go-nuts
10:37 -!- _skyfive [n=skyfive@adsl-69-107-0-172.dsl.pltn13.pacbell.net] has joined
#go-nuts
10:37 -!- Netsplit farmer.freenode.net <-> irc.freenode.net quits: sergio,
shambler, evilhackerdude, eno, robot12__, Anusko
10:37 < uriel> Misto: no problem
10:38 -!- skyfive [n=skyfive@adsl-69-107-0-172.dsl.pltn13.pacbell.net] has quit
[Read error: 104 (Connection reset by peer)]
10:38 -!- hd_ [n=hd_@220.233.176.253] has quit [Read error: 145 (Connection timed
out)]
10:38 -!- RayNbow [i=kirika@scientia.demon.nl] has joined #go-nuts
10:39 -!- evilhackerdude [n=stephan@84.62.192.73] has joined #go-nuts
10:40 -!- eno [n=eno@nslu2-linux/eno] has joined #go-nuts
10:41 -!- vasudev [n=kakashi@117.254.134.6] has joined #go-nuts
10:44 -!- napsy [n=luka@88.200.96.14] has quit ["leaving"]
10:50 -!- hotshot [n=hotshot@117.199.135.249] has joined #go-nuts
10:50 -!- Fish [n=Fish@78.238.225.114] has quit [Remote closed the connection]
10:50 -!- sergio [n=sergio@201009100218.user.veloxzone.com.br] has joined #go-nuts
10:51 -!- Fraeon [n=kzer-za@e212-246-65-153.elisa-laajakaista.fi] has joined
#go-nuts
10:52 -!- kristian__ [n=kristian@246.84-48-163.nextgentel.com] has joined #go-nuts
10:52 < exch> hmm.  is there some kind of a stringReader in the packages?  I
need to convert a string to an io.Reader somehow
10:53 < uriel> exch: shouldn't that be easy to do?  I'm not aware of any in
the libs, but there might be
10:54 < exch> that's what I thought :p
10:54 -!- robot12__ [n=robot12@inferno.kgts.ru] has joined #go-nuts
10:54 < uriel> just do type MyString string, and add a Read method that
returns the string ;)
10:54 < nbaum> I think strings.Reader is what you want.
10:54 < uriel> ok, so it is there already :)
10:54 < exch> the only way i can think of is to create a ReaderWriter..
write the string into it and then pass it as a reader..  but a ReaderWriter is not
compatible with the reader interface
10:54 -!- sliceofpi1 [n=Adium@98.201.183.147] has joined #go-nuts
10:54 < exch> ah righty
10:55 < exch> thanks
10:55 * uriel needs to read (pun not intended) through the whole api just to get a
feeling of all that is there...
10:55 -!- path_ [n=path@115.240.37.97] has quit [Read error: 110 (Connection timed
out)]
10:55 < exch> poop.  strings.Reader is also not compatible with io.Reader :p
10:56 < exch> looks like I need to write my own then
10:56 < nbaum> It looks compatible to me.
10:56 -!- Will_D [n=will@c-71-231-59-135.hsd1.wa.comcast.net] has quit [Read
error: 110 (Connection timed out)]
10:56 < exch> strings.Reader is not io.Reader missing Read(p []uint8) (n
int, err os.Error)
10:56 < exch> that's what the compiler tells me
10:57 < nbaum> Hmm.  Looks like a bug in something.  That's definitely a
documented method.
10:58 < exch> nvm.  it works.  I was being an ass in my code
10:58 < uriel> hehe
11:04 -!- Anusko [n=anusko@a83-132-19-244.cpe.netcabo.pt] has joined #go-nuts
11:07 -!- rog [n=rog@89.240.136.210] has joined #go-nuts
11:08 -!- Sylvain_ [i=52ee981a@gateway/web/freenode/x-yfebvzlqwcjthkhf] has joined
#go-nuts
11:08 -!- rog [n=rog@89.240.136.210] has quit [Client Quit]
11:09 -!- sliceofpi [n=Adium@c-98-201-183-147.hsd1.tx.comcast.net] has quit [Read
error: 110 (Connection timed out)]
11:11 -!- sliceofpi [n=Adium@c-98-201-183-147.hsd1.tx.comcast.net] has joined
#go-nuts
11:11 -!- sliceofpi1 [n=Adium@98.201.183.147] has quit [Read error: 145
(Connection timed out)]
11:19 -!- engla [n=ulrik@90-229-231-23-no153.tbcn.telia.com] has joined #go-nuts
11:19 -!- murodese [n=James@124-169-17-241.dyn.iinet.net.au] has joined #go-nuts
11:21 -!- alexf [n=alexf@c-71-205-224-173.hsd1.mi.comcast.net] has quit
["Leaving"]
11:23 -!- vasudev [n=kakashi@117.254.134.6] has quit ["Leaving."]
11:27 -!- sliceofpi1 [n=Adium@98.201.183.147] has joined #go-nuts
11:27 -!- sliceofpi [n=Adium@c-98-201-183-147.hsd1.tx.comcast.net] has quit [Read
error: 104 (Connection reset by peer)]
11:28 -!- david_ricardo [n=adam_smi@31.81-167-16.customer.lyse.net] has joined
#go-nuts
11:30 -!- path_ [n=path@115.240.86.228] has joined #go-nuts
11:32 < Misto> I don't get this error file_test.go:1: package statement must
be first
11:32 < exch> the first instruction in a go file should be 'package blah'
11:33 < Misto> http://pastebin.com/m4fb26391
11:33 < exch> you cna preceed it with comments, but nothing else
11:33 < Misto> I put package main
11:33 < exch> that code works fine here
11:34 < Misto> ok was the way I was compiling it
11:34 < Misto> exch: thanks
11:34 < uriel> Misto: use gopaste.org ;)
11:35 < Misto> uriel:nice!
11:35 -!- AlvaroGP [i=Alvaro@89.128.155.68] has joined #go-nuts
11:35 < Misto> le'ts put it in the chanel's topic no ?
11:35 < uriel> yup, we have a pastebin writen in go, world domination is
just around the corner
11:36 < uriel> maybe when somebody that can set the channel topic shows up
:)
11:36 < Misto> I think this language is very neat
11:36 < Misto> most of the program are in some way already written in the go
way
11:36 -!- engla [n=ulrik@wikipedia/Sverdrup] has quit [Read error: 110 (Connection
timed out)]
11:37 -!- raichoo [n=raichoo@87.123.157.178] has quit []
11:38 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has quit [Read
error: 110 (Connection timed out)]
11:39 -!- ivan` [n=ivan@unaffiliated/ivan/x-000001] has quit ["Coyote finally
caught me"]
11:39 -!- ivan` [n=ivan@unaffiliated/ivan/x-000001] has joined #go-nuts
11:39 < uriel> yes, the more Go you learn, the more you are Going to like
it...  ;)
11:39 < uriel> (sorry, couldn't resist the pun, in any case, that has been
my experinece, at the moment I'm blown away at the elegance, simplicity and power
of interfaces)
11:40 < JBeshir> I would like Go if someone responded to my mailing list
post about the damn x86_64 memory usage/accounting bug
11:40 < JBeshir> Come on, it's using/appearing to use more RAM than Java, it
needs fixing.  :P
11:41 -!- path_ [n=path@115.240.86.228] has quit [Read error: 104 (Connection
reset by peer)]
11:41 < JBeshir> I'm fine to try to figure out what's broken myself, but I
lack the familiarity with the implementation of a compiler and the memory
management of Linux required means I need someone to tell in at least rough terms
what to do.  :P
11:41 -!- asmo [n=asmo@c-f6c5e055.1155-1-64736c11.cust.bredbandsbolaget.se] has
quit [Remote closed the connection]
11:42 < uriel> JBeshir: really, does that stop you from working on
interesting stuff?
11:42 < JBeshir> uriel: Not really, but it stops me using it for useful
stuff, and I don't have time for interesting stuff that's not useful.
11:42 -!- path_ [n=path@115.240.86.228] has joined #go-nuts
11:42 < nsz> sad
11:43 < Misto> the Uppercase letter is annoying
11:43 < uriel> Misto: you get used to it
11:43 -!- sliceofpi [n=Adium@c-98-201-183-147.hsd1.tx.comcast.net] has joined
#go-nuts
11:43 -!- adam_ [n=adam@c-2be2e055.1210-2-64736c10.cust.bredbandsbolaget.se] has
joined #go-nuts
11:43 < uriel> Misto: I also hatted it
11:44 -!- huhwayee [n=adam@c-2be2e055.1210-2-64736c10.cust.bredbandsbolaget.se]
has quit [Read error: 110 (Connection timed out)]
11:46 < kristian__> Does anyone know whether any editors support Go? E.g.
for syntax highlighting and autocomplete.
11:46 < nsz> look around at golang.org
11:46 < kristian__> Doing so as we speak :)
11:46 < kristian__> Just started looking at the language.
11:47 -!- adam_smith [n=adam_smi@81.167.16.31] has joined #go-nuts
11:47 < murodese> kate/kdevelop, xcode, emacs, vim
11:47 < Misto> inside the main folder there is a misc directory with some
editor
11:47 < murodese> no autocompletion yet afaik
11:47 < kristian__> Thanks :) I'll see if I can hook up vim then.
11:48 < uriel> kristian__: http://go-lang.cat-v.org/text-editors/
11:49 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has quit
["Leaving."]
11:49 < exch> poopy.  http.Get() throws up on https requests
11:49 < exch> 'unsupported protocol scheme "https"'
11:49 < uriel> exch: a tsl implementation is in the works, I think only the
client was commited a couple of days ago
11:50 < murodese> copy the send() function out of the http library and
modify as necessary exch
11:50 < exch> goodie.  I'll keep the authenticated part for later then and
work on the regular stuff
11:50 < murodese> they're refactoring it later on
11:50 < exch> that could work :)
11:51 -!- sliceofpi1 [n=Adium@98.201.183.147] has quit [Read error: 145
(Connection timed out)]
11:51 < Misto> how can you see all the methods of String for example ? godoc
?
11:51 -!- david_ricardo [n=adam_smi@31.81-167-16.customer.lyse.net] has quit [Read
error: 110 (Connection timed out)]
11:51 < exch> Misto: http://golang.org/pkg/
11:52 < uriel> or use the source ;)
11:52 < Misto> godoc strings
11:56 -!- adam_smith [n=adam_smi@81.167.16.31] has quit [Read error: 145
(Connection timed out)]
11:56 -!- path_ [n=path@115.240.86.228] has quit [Read error: 104 (Connection
reset by peer)]
12:04 -!- Zaba_ [n=zaba@about/goats/billygoat/zaba] has joined #go-nuts
12:04 -!- sliceofpi [n=Adium@c-98-201-183-147.hsd1.tx.comcast.net] has quit
["Leaving."]
12:07 -!- Zaba [n=zaba@about/goats/billygoat/zaba] has quit [Read error: 110
(Connection timed out)]
12:08 -!- AlvaroGP [i=Alvaro@89.128.155.68] has quit []
12:09 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has joined
#go-nuts
12:11 -!- murodes1 [n=James@124.169.17.241] has joined #go-nuts
12:11 -!- murodese [n=James@124-169-17-241.dyn.iinet.net.au] has quit [Read error:
54 (Connection reset by peer)]
12:12 -!- hackbench [n=hackbenc@78.179.182.49] has joined #go-nuts
12:13 -!- ryniek [n=Adrian-A@host-89-231-98-162.warszawa.mm.pl] has joined
#go-nuts
12:13 < ryniek> hiho
12:13 -!- Raziel2p [n=Raziel2p@ti0032a380-dhcp0316.bb.online.no] has quit
["Leaving"]
12:15 < Amaranth> yay spam on golang-nuts
12:17 -!- prip [n=_prip@host163-122-dynamic.32-79-r.retail.telecomitalia.it] has
quit ["Leaving"]
12:20 < Misto> wooow : go func() { for v := range ( ch ) { } }
12:20 < Misto> why closed(ch)
12:20 < Misto> and not ch.closed()
12:21 < Misto> one point more to write ?
12:21 < Misto> :D
12:21 -!- Zarutian [n=zarutian@194-144-84-110.du.xdsl.is] has joined #go-nuts
12:21 -!- prip [n=_prip@host163-122-dynamic.32-79-r.retail.telecomitalia.it] has
joined #go-nuts
12:21 -!- david_ricardo [n=adam_smi@31.81-167-16.customer.lyse.net] has joined
#go-nuts
12:24 < s_mosher> Misto, probably for similar reasons as this:
http://golang.org/doc/go_lang_faq.html#methods_on_basics
12:25 -!- double [n=double@host229-234-dynamic.52-79-r.retail.telecomitalia.it]
has joined #go-nuts
12:28 -!- andrebq [n=andrebq@bca201062212084.res-com.wayinternet.com.br] has
joined #go-nuts
12:28 -!- AmirMohammad [n=amir@unaffiliated/gluegadget] has quit ["leaving"]
12:28 -!- ryniek [n=Adrian-A@host-89-231-98-162.warszawa.mm.pl] has left #go-nuts
[]
12:29 -!- engla [n=ulrik@90-229-231-23-no153.tbcn.telia.com] has joined #go-nuts
12:29 < Misto> are there some benchmarks already ?
12:30 < uriel> yes, just not very meaningful
12:31 < uriel> see
http://groups.google.com/group/golang-nuts/browse_thread/thread/747d84a4b6fa85ab/c450754a402505b6?lnk=gst&q=rsc+benchmark+alioth#c450754a402505b6
12:31 < uriel> (second paragraph of russ post in particular)
12:33 < uriel> (note that since then, the regexp lib in Go has already got
an optimization that makes it 20x faster in many cases)
12:33 < uriel> (and there have been optimizations elsewhere too)
12:35 < Misto> much less memory than java
12:35 -!- aanderse
[n=aanderse@CPE001b11cc67d3-CM0019475d7f5e.cpe.net.cable.rogers.com] has joined
#go-nuts
12:35 < Misto> it has still to mature
12:35 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has quit [Read
error: 110 (Connection timed out)]
12:35 < Misto> but is a good stat
12:35 < Misto> *start
12:36 < Misto> the one that really matters
12:36 < Misto> is # line of code
12:36 < Misto> and of course they didn't account for the number of
processors ..
12:37 -!- evilhackerdude [n=stephan@84.62.192.73] has quit ["leaving"]
12:37 < uriel> yea, AFAIK they ran it with GOMAXPROCS set to 1, so...
12:39 -!- mainman__ [n=Adium@host24-156-dynamic.21-79-r.retail.telecomitalia.it]
has joined #go-nuts
12:39 -!- evilhackerdude [n=stephan@78.46.203.42] has joined #go-nuts
12:40 < uriel> also note that the other languages have had years (in some
cases decades) of fine tunning and optimization, plus months and many people
working to optimize the code of their benchmarks too
12:41 < uriel> rog rewrote one of the go version of one of the benchrmark
programs, and got a 20% improvements a few days ago, so there is lots of margin
for improvement all over the place
12:41 < uriel> (and things like the c++ version use some really atrocious
hacks to get the maximum performance)
12:41 < vegai> take a look at the fastest haskell programs, they are both
horrible and awesome in their hackiness :)
12:42 < Misto> rob Pike: Object-oriented design is the roman numerals of
computing
12:43 < uriel> that has been one of my favorite quotes for some time
12:44 < exch> what does that even mean?  :p
12:44 < Misto> like the first form of count
12:44 < Misto> and in some sense I started realizing that
12:44 < Misto> OOP is *ideally* beautyful
12:44 < Misto> but pratically human impossible
12:45 < Misto> although a bit of design is always needed
12:45 < uriel> roman numerals were certainly not the first form of counting
12:45 < uriel> and roman numerals are not ideally beautiful at all either
12:45 -!- AlvaroGP [i=Alvaro@89.128.155.68] has joined #go-nuts
12:45 < Misto> maybe awkward to interpret
12:46 < Misto> we should ask him what set of characteristics of roman
numerals he was thinking to
12:49 < Misto> ok serious stuff now
12:49 < Misto> how do you call C code from GO ?
12:50 -!- mainman__ [n=Adium@host24-156-dynamic.21-79-r.retail.telecomitalia.it]
has quit ["Leaving."]
12:50 < JBeshir> Look at cgo.
12:50 < murodes1> ^
12:54 -!- elmar_ [n=elmar@188.107.210.137] has joined #go-nuts
12:54 < Misto> you can't import * from a package right ?
12:56 < exch> no need.  importing a package adds everything buy default
12:56 < nbaum> You mean import . "package" I think.
12:57 < Sylvain_> from package import *
12:57 < Misto> the import . "package" works !
12:57 -!- vdrab [n=vdrab@cap008-139.kcn.ne.jp] has quit []
12:57 -!- amdgoon [n=amdgoon@142.13.141.11] has joined #go-nuts
12:57 < Sylvain_>
http://docs.python.org/tutorial/modules.html#importing-from-a-package
12:58 -!- aaront [n=aaront@d24-141-25-171.home.cgocable.net] has joined #go-nuts
12:59 -!- kristian__ [n=kristian@246.84-48-163.nextgentel.com] has quit [Read
error: 113 (No route to host)]
13:01 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has quit [Read
error: 110 (Connection timed out)]
13:01 -!- AmirMohammad [n=amir@unaffiliated/gluegadget] has joined #go-nuts
13:02 < Misto> is there any example of go importing C functions ?
13:04 < Sylvain_> oups wrong channel ;)
13:04 < exch> Misto: http://github.com/jteeuwen/go-pkg-pcre pcre.go shows
how to do this
13:05 < exch> note that the comment above 'import "C"' has to be there.  cgo
considers all comments directly above import "C" to be handed as c code.  so you
can put #define's in there or whatever else you need.
13:09 -!- Kashia [n=Kashia@92.200.87.30] has joined #go-nuts
13:09 -!- flyguy [n=flyguy@66-169-174-29.dhcp.ftwo.tx.charter.com] has joined
#go-nuts
13:10 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has joined
#go-nuts
13:10 -!- elmar [n=elmar@dslb-094-219-210-085.pools.arcor-ip.net] has quit [Read
error: 110 (Connection timed out)]
13:13 -!- double [n=double@host229-234-dynamic.52-79-r.retail.telecomitalia.it]
has quit [Remote closed the connection]
13:14 -!- arieru [n=arieru@190.3.74.225] has joined #go-nuts
13:15 < arieru> Hello...  I have the next problem, when I try to link a
compiled file:
13:16 < arieru> goarch is not known: 386
13:16 < arieru> ??none??: file not amd64 [386]
13:16 < arieru> ??none??: /Users/arieru/go/pkg/darwin_386/fmt.a: failed to
load: fmt·Init·
13:16 < arieru> anyone can help me ?
13:16 < flyguy> how was it compiled?
13:17 < arieru> flyguy: 6l rename.go
13:17 < flyguy> what is $GOARCH set to?
13:18 < arieru> minime:test arieru$ echo $GOARCH
13:18 < arieru> 386
13:18 < engla> Misto: if I understand correctly, you compile c go packages
separately, so rather you create a package wrapping a c library for go (like pcre
mentioned), then you use that package from your other go code
13:18 -!- adam__ [n=adam@85.224.226.43] has joined #go-nuts
13:18 < flyguy> 6l is the amd64 linker, 8l is the 386 linker
13:18 -!- CoconutCrab [n=toor@unaffiliated/coconutcrab] has quit ["to hell,
brother"]
13:19 < Misto> engla: right I think that is the approach, I am looking into
pcre
13:19 < engla> Misto: I have a really basic example here, wrapping only two
functions http://github.com/engla/go-locale/blob/master/locale.go there I have one
file locale.go wrapping the functions and one file locale_sort.go with only go
functions.  they could be in the same file just as well (I think)
13:19 -!- RayNbow [i=kirika@scientia.demon.nl] has quit ["Reboot"]
13:20 < arieru> flyguy: ups.  Sorry.  You are righ.  I was confused about 6c
and 8g
13:20 < Misto> engla: thanks !
13:20 < engla> pcre is probably a better example for best pracices
13:20 < arieru> flyguy: thanks
13:21 < flyguy> does anyone know how a program (like mysql) reads a password
on stdin while accepting piped data on stdin?  Is stderr read/write?
13:22 < Misto> so all the functions are C.<function_name>
13:22 < flyguy> like I can pipe a command set into mysql and still have it
ask me for a password - what is the password read on?  isn't stdin used by the
piped data?
13:23 < nbaum> flyguy: It doesn't read a password on stdin; it opens
/dev/tty.
13:24 < flyguy> so in go, I would print a prompt on stderr, open /dev/tty
for reading, read the password and close the file descriptor?
13:25 < nbaum> Open /dev/tty for read-write access and print the prompt on
there.
13:25 < nbaum> If stderr and stdout are both redirected, you won't know
you're being prompted.
13:25 -!- david_ricardo [n=adam_smi@31.81-167-16.customer.lyse.net] has joined
#go-nuts
13:25 < nbaum> mysql does it that way.
13:25 < flyguy> nbaum: good point.  Is there an easy way in go to have the
echo disabled?  or is it disabled by default?
13:26 < nbaum> It isn't.  I'm not sure how to do it in Go.
13:27 < dagle2> flyguy: With an ncurses lib it would.
13:28 -!- huhwayee [n=adam@c-2be2e055.1210-2-64736c10.cust.bredbandsbolaget.se]
has joined #go-nuts
13:28 < nbaum> mysql uses ioctl to disable echo.  It also does other stuff,
like disabling control-C.  (So you can put control characters in your
passwords...)
13:28 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has quit [Read
error: 110 (Connection timed out)]
13:28 < flyguy> dagle2: I don't suppose go has an ncurses lib handy?
13:28 < nbaum> As dagle2 notes, it does that via ncurses.
13:29 < nsz> man console_codes or man console_ioctl
13:29 < dagle2> flyguy: Not what I have seen.
13:30 < nbaum> Hee.  "Warning: Do not regard this man page as documentation
of the Linux con‐ sole ioctl's.
13:33 -!- adam_ [n=adam@c-2be2e055.1210-2-64736c10.cust.bredbandsbolaget.se] has
quit [Read error: 110 (Connection timed out)]
13:33 < nsz> he might want 'ESC [ ? 8 h' esc sequence
13:35 < nbaum> The quickest and most portable solution is probably to
execute 'stty -isig -echo' before and 'stty sane' after.
13:35 < nbaum> Or just -echo if you want to allow users to hit control-c to
cancel password entry.
13:35 -!- adam_ [n=adam@85.224.226.43] has joined #go-nuts
13:35 -!- adam__ [n=adam@85.224.226.43] has quit [Read error: 145 (Connection
timed out)]
13:36 < nbaum> The main thing to look out for is making sure you always put
the terminal back in a sane mode afterwards, no matter what happens.
13:37 < flyguy> nbaum: awesome - thanks
13:37 < dagle2> What is the go icon called?
13:38 < nbaum> Gordon, I believe.
13:40 -!- jjk_charles [n=jayakuma@59.92.47.74] has joined #go-nuts
13:41 -!- arieru [n=arieru@190.3.74.225] has left #go-nuts []
13:43 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has joined
#go-nuts
13:44 -!- Fraeon [n=kzer-za@e212-246-65-153.elisa-laajakaista.fi] has quit []
13:45 -!- npe [n=npe@94-224-251-223.access.telenet.be] has joined #go-nuts
13:47 -!- david_ricardo [n=adam_smi@31.81-167-16.customer.lyse.net] has quit [Read
error: 110 (Connection timed out)]
13:50 -!- scyth [n=scyth@rots.in.rs] has joined #go-nuts
13:50 -!- hackbench [n=hackbenc@78.179.182.49] has quit [Read error: 110
(Connection timed out)]
13:51 -!- AlvaroGP [i=Alvaro@89.128.155.68] has quit [Read error: 110 (Connection
timed out)]
13:52 -!- huhwayee [n=adam@c-2be2e055.1210-2-64736c10.cust.bredbandsbolaget.se]
has quit [Read error: 110 (Connection timed out)]
13:53 -!- adam__ [n=adam@c-2be2e055.1210-2-64736c10.cust.bredbandsbolaget.se] has
joined #go-nuts
13:54 -!- andrebq [n=andrebq@bca201062212084.res-com.wayinternet.com.br] has left
#go-nuts []
14:00 -!- adam_ [n=adam@85.224.226.43] has quit [Read error: 145 (Connection timed
out)]
14:00 -!- General13372 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has
joined #go-nuts
14:00 -!- amdgoon [n=amdgoon@142.13.141.11] has left #go-nuts []
14:01 -!- tor7 [n=tor@213.113.122.152] has joined #go-nuts
14:01 -!- ajhager [n=ajhager@64-184-75-239.ccrtc.com] has quit ["A way a lone a
last a loved a long the..."]
14:04 -!- ajhager [n=ajhager@64-184-75-239.ccrtc.com] has joined #go-nuts
14:06 -!- General1337 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit
[Read error: 60 (Operation timed out)]
14:06 -!- AlvaroGP [i=Alvaro@89.128.155.68] has joined #go-nuts
14:08 -!- aaront [n=aaront@unaffiliated/aaront] has quit ["And that's all he
wrote..."]
14:09 -!- AlvaroGP [i=Alvaro@89.128.155.68] has quit [Client Quit]
14:10 -!- jjk_charles [n=jayakuma@59.92.47.74] has left #go-nuts []
14:10 -!- ikke [n=1kk3@unaffiliated/ikkebr] has joined #go-nuts
14:11 -!- rxvt [n=rxvt@unaffiliated/rxvt] has joined #go-nuts
14:11 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has quit [Read
error: 104 (Connection reset by peer)]
14:12 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has joined
#go-nuts
14:13 -!- rxvt [n=rxvt@unaffiliated/rxvt] has left #go-nuts []
14:13 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has quit [Read
error: 104 (Connection reset by peer)]
14:15 -!- adam_ [n=adam@c-2be2e055.1210-2-64736c10.cust.bredbandsbolaget.se] has
joined #go-nuts
14:16 -!- adam__ [n=adam@c-2be2e055.1210-2-64736c10.cust.bredbandsbolaget.se] has
quit [Read error: 110 (Connection timed out)]
14:17 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has joined
#go-nuts
14:17 -!- hotshot [n=hotshot@117.199.135.249] has quit [Read error: 145
(Connection timed out)]
14:18 -!- path_ [n=path@115.240.63.77] has joined #go-nuts
14:25 -!- snearch_ [n=olaf@g225048117.adsl.alicedsl.de] has joined #go-nuts
14:25 -!- tcpip4000 [n=fulano@dsl-emcali-190.99.193.179.emcali.net.co] has joined
#go-nuts
14:29 -!- lenst [n=user@81.237.244.185] has joined #go-nuts
14:34 -!- Garibaldi [n=adalton@173-16-117-14.client.mchsi.com] has quit [Remote
closed the connection]
14:34 -!- Garibaldi [n=adalton@173-16-117-14.client.mchsi.com] has joined #go-nuts
14:38 -!- raichoo [n=raichoo@e181227053.adsl.alicedsl.de] has joined #go-nuts
14:38 -!- Anders__ [n=Anders@c83-253-2-206.bredband.comhem.se] has quit [Read
error: 110 (Connection timed out)]
14:39 < uriel> alexsuraci: I haven't tried, but somebody has reported that
gopaste.org doesn't work in opera 10 (although it might just be they pasted
something that vaguely looked like Go code and it got messed up, I don't know)
14:39 < uriel> alexsuraci:
http://www.reddit.com/r/programming/comments/a6q3w/
14:39 -!- p0g0 [n=pogo@unaffiliated/p0g0] has joined #go-nuts
14:44 -!- hipe [n=hipe@pool-74-108-181-155.nycmny.east.verizon.net] has quit [Read
error: 104 (Connection reset by peer)]
14:44 -!- hipe [n=hipe@pool-74-108-181-155.nycmny.east.verizon.net] has joined
#go-nuts
14:47 < exch> mm poopy.  the xml Unmarshal routine doesn't map integer
values to integer struct fields :(
14:51 -!- rxvt [n=rxvt@unaffiliated/rxvt] has joined #go-nuts
14:52 < rxvt> FxChiP: hows it goin, this is ben....
14:52 -!- tiguco [n=tiguco@189.100.33.81] has joined #go-nuts
14:52 -!- frodenius [i=frod@unaffiliated/frodenius] has left #go-nuts ["you suck
:)"]
14:53 -!- tiguco [n=tiguco@189.100.33.81] has quit [SendQ exceeded]
14:53 -!- tiguco [n=tiguco@189.100.33.81] has joined #go-nuts
14:54 -!- brunov [n=bruno@190.191.110.64] has joined #go-nuts
14:54 -!- tiguco [n=tiguco@189.100.33.81] has quit [SendQ exceeded]
14:54 -!- tiguco [n=tiguco@189.100.33.81] has joined #go-nuts
14:54 -!- tiguco [n=tiguco@189.100.33.81] has quit [Client Quit]
14:55 < uriel> exch: what are you doing with xml?
14:56 < FxChiP> hah
14:56 < FxChiP> nice
14:56 < exch> uriel: wrapping the last.fm webservice api
14:57 < exch> unfortunately they don't supply data in json format
14:58 < exch> it's working fairly well.  Appart from not being able to
convert numbers to integer types, it seems the unmarshaller is doing it's job.
http://pastie.org/708875
15:00 < uriel> use gopaste!  ;P
15:00 < exch> that's not go code :p
15:00 < uriel> you can paste anything in gopaste
15:00 -!- vmac [n=vmac@h69-128-47-244.mdsnwi.dedicated.static.tds.net] has quit
[Remote closed the connection]
15:00 < exch> gopaste will be all X_x *flail*
15:00 < uriel> anyway, that is cool..
15:01 < uriel> but I kind of know the last.fm folks, or the folks that
started it...
15:01 < uriel> they banned me from their irc channel after life five minutes
for saying that java was designed by idiots for idiots ;P
15:01 < exch> :p
15:02 < uriel> so I'm not surprised they stick to such super enterprisey XML
practices..  *yuck*
15:02 < exch> oh well.  it's what they use, so i'm stuck with it :p
15:04 < XniX23> uriel: so C# is by idiots for idiots too?  :P
15:04 < zum> at least for technically a bit more advanced idiots
15:04 < exch> I f00king love C#. Don't care what anyone might think of that
:p
15:05 < uriel> XniX23: pretty much
15:05 < XniX23> zum: C# is basicly the same as java pretty much
15:05 < uriel> exactly
15:05 < exch> except better :p
15:06 < XniX23> exch: yes it has a better IDE :p
15:06 < exch> that to
15:06 < FxChiP> psh, no
15:06 < exch> bummer it doesnt work very well on linux
15:06 < uriel> IDE?  what is that?  some kind of terrorist explosive device
designed to damage the brains of programmers?
15:07 < exch> i'm guessing uriel uses ED?
15:07 < huf> isnt that the operating system?
15:07 < uriel> exch: doesn't seem to work very well on windows either, none
of the .net software I have had to use was particularly pleasant
15:07 < huf> it's integrated and surely a development environmenty
15:07 < XniX23> uriel: hahah, wel i had visual studio in mind :P
15:07 -!- path__ [n=path@115.240.23.190] has joined #go-nuts
15:07 < exch> uriel: visual studio has always worked perfectly for me
15:07 * FxChiP generally just uses a text editor and that's that
15:07 < exch> it's one of the few things I really love about MS.
15:08 < huf> the best part of MS is still that it's optional :)
15:08 < uriel> exch: I doubt much of VS is written in C#
15:08 < XniX23> exch: since you're so much into VS, is it possible to go to
fullscreen code?
15:08 < exch> I suppose i'm just too 'enterprisy' for the average unix nerd
;)
15:08 < exch> uriel I know :p
15:09 < FxChiP> XniX23, as in have the code window go fullscreen?  If so,
I'm fairly certain that was a feature in VC++ 6, let alone latest
15:09 < exch> XniX23: you can, but don't ask me how.  I never run my apps
fullscreen
15:09 < uriel> XniX23: anything is possible on that kind of software, it is
only question of how much time and pain you are ready to invest on figuring out
how to do anything
15:09 < exch> or maximized for that matter
15:10 < exch> I've seen a 'fullscreen' shortcut in one of the menus.  I'm
pretty sure of that
15:10 < uriel> on plan9 running acme as your whole window system is trivial,
you just start it in your profile instead of rio, done
15:10 -!- lenst [n=user@81.237.244.185] has quit [Read error: 145 (Connection
timed out)]
15:10 < XniX23> well i really like gedit for this, coz i can avoid every
distraction :p
15:10 -!- loureiro [n=loureiro@201.8.189.174] has joined #go-nuts
15:10 < FxChiP> I couldn't do it
15:10 < exch> Gedit is definitely my #1 code tool in linux
15:11 < uriel> oh dear...
15:11 < exch> oh yes :p
15:11 < XniX23> oh yes indeed :p
15:11 < FxChiP> I find myself lovin' the crap out of emacs/vi and screen
15:11 < exch> vim + emacs can kiss my ass
15:11 < FxChiP> lawl
15:11 * uriel can't believe anyone would willing, and not under threat of torture
and death, use gedit..
15:11 < FxChiP> enjoy ur point and click edit
15:11 < XniX23> hahah
15:11 < uriel> vim is a monster, emacs is a really horrible OS
15:11 < uriel> FxChiP: then use acme
15:12 < XniX23> uriel: which one u use?
15:12 < FxChiP> uriel, you're just bad at using both :)
15:12 < uriel> I use acme when I can, just like rob and russ ;P
15:12 < XniX23> acme looks more of a monster than vim on the outside
15:13 < uriel> (real hackers, like ken, use sam, but I'm not that hardcore)
15:13 -!- asmo [n=asmo@c-f6c5e055.1155-1-64736c11.cust.bredbandsbolaget.se] has
joined #go-nuts
15:13 < uriel> XniX23: it is really simple, few commands, very flexible, it
certainly takes a bit to get used to, but you can learn the whole thing in a few
days, and then spend years discovering new tricks in how you can use the features
you already know
15:14 < exch> punchcards > all really
15:14 < FxChiP> uriel, interesting, I find the same things with emacs and
vim :x
15:14 < uriel> (ie., the reverse of what happens in an IDE, where you keep
forgetting how to do things, because there are so many thousands of twigs and
flags to enable and tune)
15:14 -!- JSharpe2 [n=jamie@5ad1d7f1.bb.sky.com] has quit [Success]
15:14 < FxChiP> and, well, pretty much an program that doesn't blow
15:14 < FxChiP> any*
15:16 < FxChiP> also, gedit bugs me, but I can understand using it as an
editor
15:16 -!- jmorrison [i=foobar@extropian.demon.co.uk] has joined #go-nuts
15:16 < FxChiP> Although generally if I end up going with a graphical,
non-keyboard-controlled editor I end up using either jEdit, Geany or, yes, gedit
15:16 < exch> it's not perfect, but it just works.  I have a nice build
framework set up that plugs into it.  which makes programming any language in it a
breeze
15:16 -!- clearscreen [n=clearscr@e248070.upc-e.chello.nl] has joined #go-nuts
15:16 < jmorrison> I'm having difficulty getting Go to hg clone
15:17 < uriel> jmorrison: what are you doing?
15:17 < uriel> and what is the problem?
15:17 < FxChiP> exch, does it do auto-indent yet?
15:17 < exch> FxChiP: yup
15:17 < FxChiP> does it auto-decrease-indent on } yet?
15:17 < jmorrison> I do "hg clone -r release https://go.googlecode.com/hg/
go" and it sits for ages and gives an error
15:17 < exch> it does everything except intelli-sense and code folding.
15:18 -!- path_ [n=path@115.240.63.77] has quit [Read error: 110 (Connection timed
out)]
15:18 < jmorrison> this was copied basically from the website
15:18 -!- jordyd [n=jordyd@99-177-65-75.lightspeed.wepbfl.sbcglobal.net] has
joined #go-nuts
15:18 < FxChiP> Code folding's no big loss, never use it anyway
15:18 < jordyd> Is there a way with cgo to convert a Go slice into a C
array?
15:18 < exch> FxChiP: when you type any openig bracket, brace, hook line or
sinker, it adds the closing one as well and puts the cursor inbetween the two
15:19 < uriel> jmorrison: what error
15:19 < FxChiP> exch, agh, that's harsh
15:19 -!- Nanoo [n=Nano@95-89-198-15-dynip.superkabel.de] has quit ["Leaving"]
15:19 < exch> works well really
15:19 < FxChiP> Certain things a program does for convenience I don't mind
15:19 < exch> except for strings.  It does the same with " and '.  which is
a bit of a pain when you type: I'm
15:19 < uriel> jordyd: I'm not sure, I suspect probably not, but I could be
wrong
15:19 < exch> it adds 2 '
15:19 < FxChiP> Typing characters for me is one of those things that
irritates me
15:20 < FxChiP> Psychological tic, I guess
15:20 < jmorrison> uriel I closed the window so I can't get it back, but it
was something about protocols.
15:20 < uriel> jmorrison: well, it is hard to help you with an error I don't
know
15:20 -!- lenst [n=user@81-237-244-185-no52.tbcn.telia.com] has joined #go-nuts
15:20 < jordyd> uriel: How would I make a C array normally then?  Just,
"array []C.char"?
15:20 < FxChiP> fuck I hope I can sleep soon
15:21 < jmorrison> uriel: huh!  I just tried it again and now it runs.
Madness.  Maybe they had a wierd server thing at google side.  never mind.  false
alarm.
15:21 < uriel> jordyd: I really don't know, checking other code that uses
cgo is probably your best bet
15:22 -!- jmorrison [i=foobar@extropian.demon.co.uk] has quit ["Au revoir"]
15:24 < exch> jordyd: converting arrays back and forth is a bit of a
problem.  You can't define variable size arrays in Go. Your best bet is to convert
the slice to an unsafe.Pointer.  Provided the c function takes a pointer to an
array
15:24 < exch> Get's a bit messy though
15:25 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has quit [Read
error: 110 (Connection timed out)]
15:25 < jordyd> Yes, it does.  It takes an char***, and I have a []string.
15:25 < jordyd> s/an/a
15:25 < uriel> jordyd: what are you linking against?
15:26 < exch> a := make([]string, 10); fill(a);..  ptr :=
(**_C_char)(unsafe.Pointer(&a))
15:26 < exch> something like that
15:26 < jordyd> I have not even tried compiling yet, but if I did I would be
linking against gtk.
15:29 < jordyd> What does "fill(a)" do?
15:30 < uriel> ouch, that sounds scary!  (linking against gtk) I guess that
explains the car***
15:30 < exch> you don't need that.  I just used to indicate the slice is
filled up.  If you already have a full slice, just go straight for the unsafe bit
15:30 < jordyd> Ah, I see.
15:34 -!- Anders__ [n=Anders@c83-253-2-206.bredband.comhem.se] has joined #go-nuts
15:36 -!- XniX23 [n=XniX23@we.will.never-be.afraid.org] has left #go-nuts
["Konversation terminated!"]
15:36 -!- XniX23 [n=XniX23@we.will.never-be.afraid.org] has joined #go-nuts
15:38 < XniX23> whats that site again that has go news posted?  blog
entries, projects etc.
15:38 -!- BleSS [n=quassel@87.223.179.242] has joined #go-nuts
15:42 -!- path__ [n=path@115.240.23.190] has quit [Read error: 110 (Connection
timed out)]
15:42 < exch> http://go-lang.cat-v.org/ or reddit.com/r/golang
15:44 < uriel> there is also http://planet5.cat-v.org but that is still
experimental...
15:45 < BleSS> could substitute go to erlang?  since that it has been built
for networking and concurrency
15:45 < uriel> BleSS: what could substitute what?
15:46 < BleSS> if it's no, why google has not used erlang instead of build a
new language?
15:46 < uriel> also note that rob, ken, russ and friends developed Limbo and
inferno around *fifteen* years ago which was developed for networking and
concurrency
15:47 < uriel> (hell, rob had been plaing with concurrent csp languages in
the early 80's and plany was started as a distributed system in the mid 80's by
him and ken)
15:47 -!- david_ricardo [n=adam_smi@31.81-167-16.customer.lyse.net] has joined
#go-nuts
15:47 < uriel> so, in short, Erlang is cool, and as I see it, the product of
parallel evolution to Limbo/Inferno, but clearly Go is something else, even if it
shares some core properties
15:47 -!- Prometeo [n=Promethe@148.227.201.174] has joined #go-nuts
15:48 < uriel> Go is a systems programming language, Limbo or Erlang aren't
15:48 < Prometeo> what does it means to be a systems language?
15:48 < uriel> as for distributed systems, I think you can be quite certain
they do have plans for that
15:49 < uriel> Prometeo: that is a good question, but I guess a working
deffinition would be: a language you could use to build a whole OS
15:49 < uriel> ie., something to replace C, not just something that is built
on top of a mountain of C
15:49 * exch waits for GoOSe :p
15:50 < uriel> (of course, the current go compilers are written in C for
practical and bootstraping reasons, but they could well be written in go, and the
runtime will eventually be in Go from what I have heard)
15:50 < jordyd> Oh, woah...  Ken Thompson?  I didn't realize he was a
co-creator of Go. That's cool.
15:50 < uriel> I don't see people implementing garbage collectors in Erlang
or Limbo
15:50 < uriel> jordyd: among other things he wrote the main go compilers...
15:51 < uriel> ok folks, sleep time for me, go have fun ;)
15:51 < BleSS> so, to a systems programming language is one that to lets
building kernels, compilers, debuggers, ...
15:51 < exch> gn
15:51 < BleSS> so to working at low level
15:51 < uriel> BleSS: yes, among other things
15:52 < XniX23> BleSS: they're usually fast, thats probably the main thing
:p
15:52 < uriel> (note that most widespread web servers, databases, etc, are
written in "systems programming languages" (ie., c and c++)
15:53 -!- JSharpe [n=jamie@5ad1d7f1.bb.sky.com] has joined #go-nuts
15:54 < BleSS> yes, althought there are also database with great performance
that are built on another languages as casandra in java or couchdb/scalaris in
erlang
15:55 -!- sku [n=sk@217.175.14.216] has joined #go-nuts
15:56 -!- david_ricardo_ [n=adam_smi@31.81-167-16.customer.lyse.net] has joined
#go-nuts
15:57 < Prometeo> is there any other tutorial for learning GO beside the one
at golang.org?  I don't have any programming knowledge but I really want to learn
15:57 < uriel> before at long last I fall asleep: here is another thing: web
browsers, I'd love to see a web browser written in Erlang, but the chances are
slim
15:58 -!- Nordmoen [n=quassel@ti0005a380-dhcp0188.bb.online.no] has joined
#go-nuts
15:59 < uriel> Prometeo: buy yourself a copy of K&R and of Rob and
Kernighan's The Practice of Programming, and after you have gone through that,
then take another look at Go
15:59 < saati_> uriel: erlangs memory usage isn't light
16:00 < uriel> saati_: nor is firefox's ;P
16:00 < saati_> uriel: imagine it written in erlang
16:00 < s_mosher> I am SO close to implementing something to handle
exceptions in a way I don't hate, but I can't quite make it nice because of
missing language support for a couple of things
16:00 < uriel> anyway, i just was trying to illustrate another task for
which "systems programming" languages are usually used
16:00 < Prometeo> uriel: thanks for the tip
16:00 < uriel> saati_: I'm not sure it could be much worse to be honest...
16:01 < jordyd> How about Firefox written in Go?
16:01 < uriel> saati_: much of the problems with something like freifox is
due to use and abuse of C++, not due to intrinsic features of the problem (which
admitedly is *really* hard because web standards are so *insane*)
16:01 < XniX23> jordyd: not yet, soon
16:01 < exch> if you can wrap the gecko engine in go, yuo're halfway there
:)
16:02 < uriel> ok, now I'm really go-ne, you go have fun and write go ;P
16:03 -!- slashus2 [n=slashus2@74-137-26-8.dhcp.insightbb.com] has joined #go-nuts
16:03 < XniX23> bbay
16:04 < XniX23> gopaste is written in go?  :o
16:05 < jordyd> Yeah, just like godoc.
16:05 < XniX23> how can i write a website in go?
16:06 < saati_> is it a costum http server, or a fastcgi module?
16:06 -!- david_ricardo [n=adam_smi@31.81-167-16.customer.lyse.net] has quit [Read
error: 110 (Connection timed out)]
16:06 -!- shatly [n=hartsra@tarsonis.dhcp.rose-hulman.edu] has quit [Remote closed
the connection]
16:07 -!- delsvr [n=delsvr@cpe-67-242-41-219.twcny.res.rr.com] has joined #go-nuts
16:07 < uriel> golang.org runs go!
16:07 < uriel> zzzz
16:07 < uriel> (go web server, go web apps)
16:07 < XniX23> code sleeping lol
16:07 < BleSS> does go is so verbose as c++ or java?
16:07 < XniX23> (where?)
16:07 < jordyd> Heh...  it looks like people are putting LISP on gopaste.
http://gopaste.org/CrZC6
16:07 < uriel> zzzZZzZgZZZzzozzz
16:08 < uriel> BleSS: no
16:09 < saati_> does gopaste have an issue tracker?
16:09 -!- sku [n=sk@217.175.14.216] has quit [Read error: 104 (Connection reset by
peer)]
16:09 < saati_> the input box is black on black in opera :D
16:09 < BleSS> in firefox too
16:10 < melba> gopaste theme is fail
16:12 -!- mike [n=quassel@91.108.123.78] has joined #go-nuts
16:14 -!- sku [n=sk@217.175.14.118] has joined #go-nuts
16:14 -!- Esmil [n=esmil@4704ds1-gjp.0.fullrate.dk] has quit [Read error: 104
(Connection reset by peer)]
16:15 -!- peter-k [n=petergre@117.136.19.4] has joined #go-nuts
16:16 -!- ryniek [n=Adrian-A@host-89-231-98-162.warszawa.mm.pl] has joined
#go-nuts
16:16 -!- Prometeo [n=Promethe@148.227.201.174] has quit ["Saliendo"]
16:17 < peter-k> hi
16:17 -!- Esmil [n=esmil@4704ds1-gjp.0.fullrate.dk] has joined #go-nuts
16:17 < mikedee> hi everyone
16:18 < mikedee> I am trying to make a simple TCP server which just echos
back anything it receives
16:18 -!- ikke [n=1kk3@unaffiliated/ikkebr] has quit [Read error: 60 (Operation
timed out)]
16:18 < mikedee> I am having problems with the Read method of TCPConn
16:18 < mikedee> http://pastebin.com/m29506577
16:19 -!- hector [n=chatzill@client-86-0-126-58.nrth.adsl.virginmedia.com] has
joined #go-nuts
16:19 < mikedee> anyone have any ideas?
16:19 -!- david_ricardo [n=adam_smi@31.81-167-16.customer.lyse.net] has joined
#go-nuts
16:19 -!- ikke [n=1kk3@unaffiliated/ikkebr] has joined #go-nuts
16:21 -!- Cyanure [n=cyanure@AMontsouris-151-1-26-237.w82-123.abo.wanadoo.fr] has
joined #go-nuts
16:21 -!- david_ricardo_ [n=adam_smi@31.81-167-16.customer.lyse.net] has quit
[Read error: 110 (Connection timed out)]
16:23 -!- ajhager [n=ajhager@64-184-75-239.ccrtc.com] has quit [Read error: 60
(Operation timed out)]
16:24 < mikedee> The Read method always returns an error with the message
EOF
16:24 -!- peter-k [n=petergre@117.136.19.4] has left #go-nuts []
16:24 < nsz> where is the dial?
16:25 < alexsuraci> uriel: oi, redditors aren't very bright these days
16:26 -!- Anders_ [n=Anders@c83-253-2-206.bredband.comhem.se] has joined #go-nuts
16:26 < alexsuraci> for any other site i'd understand the bitching about
white-on-black, but this is a code paste site, colour schemes like that are pretty
much dominant
16:27 < nsz> Dial("tcp", "", host + ":" + port)
16:27 < BleSS> are there libraries to working with http?  it would be cool
if there would be anything as wekzeug (tools to manage wsgi in python)
http://werkzeug.pocoo.org/
16:28 < BleSS> http://en.wikipedia.org/wiki/Wsgi
16:29 -!- Raziel2p [n=Raziel2p@ti0032a380-dhcp0316.bb.online.no] has joined
#go-nuts
16:30 -!- IvatarHome [n=graham@tu055.demon.co.uk] has joined #go-nuts
16:31 < mikedee> @nsz - Was that for me?  I dont think I need Dial to
listen?
16:33 < jordyd> With cgo, can I execute everything that is going to run at
stdlib's "exit()" without actually killing the program?
16:33 < nsz> ah ok you are right
16:33 -!- papergeek [n=Promethe@148.227.201.174] has joined #go-nuts
16:35 -!- sku [n=sk@217.175.14.118] has quit [Read error: 113 (No route to host)]
16:37 -!- sm [n=sm@cpe-75-85-88-227.socal.res.rr.com] has joined #go-nuts
16:38 -!- fosho [n=afitz@adsl-190-192-124.asm.bellsouth.net] has quit ["Peace and
Protection 4.22"]
16:39 -!- papergeek [n=Promethe@148.227.201.174] has quit ["Saliendo"]
16:39 < alexsuraci> does gopaste look too small for anyone?  i did soe CSS
tweaks to make it more consistent across browsers
16:39 -!- dgnorton [n=none@adsl-068-213-106-141.sip.clt.bellsouth.net] has joined
#go-nuts
16:41 < nsz> why would anyone use gopaste instead of one of the million
other http paste services?
16:41 < dho> djm: there are some issues with signal handling on i386 i think
16:42 < dho> uriel: majority of cases should work, at least on amd64.
16:42 < alexsuraci> nsz: because gopaste provides go syntax hilighting and
formatting.  it is not meant to replace other paste services.
16:42 < dgnorton> is there a site tracking go related projects?  (e.g.,
bindings or ports)
16:42 < nsz> ah i didn't realize that
16:42 < dho> uriel: there may be some issues on amd64 still, but i haven't
run into any, and I don't suspect I will until some real applications are written
16:42 < nsz> here it has no color
16:42 < dho> dgnorton: uriel runs one
16:42 < exch> dgnorton: http://go-lang.cat-v.org/
16:42 < dho> ^
16:43 < dgnorton> dho, exch: thanks.
16:43 < dho> there's also a blog aggregator at http://planet5.cat-v.org/
16:43 -!- Anders__ [n=Anders@c83-253-2-206.bredband.comhem.se] has quit [Read
error: 110 (Connection timed out)]
16:43 < alexsuraci> nsz: only for invalid go code
16:43 < exch> lot's of japanese on there :p
16:43 < exch> my japanese is a bit rusty
16:44 < dgnorton> exch, my japanese is limited to counting 1 - 10
16:44 < exch> that's more than I can do :)
16:45 -!- getisboy [n=Family@71.174.56.27] has joined #go-nuts
16:46 < XniX23> alexsuraci: is gopaste written in go?
16:46 -!- aho [n=nya@g228025170.adsl.alicedsl.de] has joined #go-nuts
16:46 < alexsuraci> XniX23: yes
16:46 < XniX23> alexsuraci: how did you make a webpage in go?
16:47 < exch> the server is written in go
16:47 < alexsuraci> XniX23: it links to its source
16:48 < nsz> alexsuraci: here it is not colored in any way but each line
marked ridiculuously by 'class="line"'
16:48 < nsz> ..inside a <pre>
16:48 < dgnorton> anyone tried either of the windows ports?
16:48 < alexsuraci> ridiculously?
16:48 < XniX23> is there any easy way to write websites with go?  :)
16:49 < dgnorton> XniX23, it's not designed to make websites
16:49 < nsz> alexsuraci: well, why would you do that?
16:49 -!- double [n=double@host229-234-dynamic.52-79-r.retail.telecomitalia.it]
has joined #go-nuts
16:49 < alexsuraci> nsz: click the line numbers.
16:49 < XniX23> dgnorton: i know, but still :p
16:49 < Norgg> http://github.com/vito/go-play/blob/master/html.go ?
16:49 < alexsuraci> i don't just toss html around willy-nilly
16:50 < alexsuraci> Norgg: paste.go; sorry, that's sort of a general
repository for go stuff I toy with
16:50 < Norgg> eg: http://github.com/vito/go-play/blob/master/paste.go
16:50 -!- skammer [n=skammer@79.139.145.242] has joined #go-nuts
16:50 < alexsuraci> although html.go is a part of it, pretty.go too
16:50 -!- fosho [n=afitz@adsl-190-192-124.asm.bellsouth.net] has joined #go-nuts
16:50 < Norgg> alexsuraci: Just pointing those out to XniX23, as a way to
write websites with go.
16:51 < rup> There's a simple example of a web site/server at
http://golang.org/doc/effective_go.html#web_server
16:51 -!- path_ [n=path@115.240.20.44] has joined #go-nuts
16:51 < nsz> alexsuraci: i don't understand what you are talking about
16:51 < nsz> it is not allowed to put a div inside pre by the standard
16:51 < alexsuraci> I don't care.
16:52 < nsz> i see
16:52 < alexsuraci> It's either implement it simply and have it work in all
browsers that matter, or jump through flaming hoops following some arcane
standards.
16:52 < nsz> ??
16:52 < nsz> just remove the crap and it works fine
16:52 < alexsuraci> crap?
16:53 < nsz> all <div>
16:53 < alexsuraci> that's ridiculous.
16:53 < alexsuraci> functionality would be gone because *oh no* the html
gods don't like me using it they way I do
16:53 -!- p4p4 [n=P4p4@24.106.113.82.net.de.o2.com] has joined #go-nuts
16:53 < alexsuraci> line hilighting from permalinks and all syntax
hilighting would be gone
16:53 -!- getisboy [n=Family@71.174.56.27] has left #go-nuts []
16:54 < alexsuraci> actually, syntax hilighting would stay
16:54 < nsz> well i don't see hilighting anyway..
16:54 < alexsuraci> just because you don't see it doesn't mean it doesn't
exist.  I explained why already.
16:55 < alexsuraci> only valid go code will be hilighted, because it's
parsed and printed using the go/* packages.
16:55 < alexsuraci> http://gopaste.org/LDwEU#LC13
16:55 < alexsuraci> standards are great and all but not when they make
implementing a simple feature a bitch to do otherwise.
16:56 < nsz> you are using <span> to hilight, that does not work over
here
16:56 < nsz> oh well keep it as it is..  web is broken eitherway
16:56 < alexsuraci> huh?  should be fine, span can do colouring.
16:56 < dgnorton> nsz: what browser are you using?
16:57 < alexsuraci> lynx?  :P
16:57 < nsz> ff and w3m
16:57 < alexsuraci> works in ff for me
16:57 < nsz> well i enforce my own default css
16:58 -!- illya77 [n=illya77@202-100-133-95.pool.ukrtel.net] has joined #go-nuts
16:59 -!- Larry_P_US_EST [n=chatzill@pool-72-74-255-211.bstnma.fios.verizon.net]
has joined #go-nuts
16:59 < dgnorton> alexsuraci: indents don't work in IE7 for me...works
perfect in Chrome 4 & FF 3
17:00 < alexsuraci> i haven't really considered IE a priority
17:00 < dgnorton> alexsuraci: me either...just sayin' :)
17:00 < alexsuraci> thanks anyway :P
17:01 < saati_> alexsuraci: it's not working in opera either
17:01 < alexsuraci> saati_: how so?  just fixed that a few minutes ago
17:01 < nsz> because it's horribly broken html
17:01 < saati_> alexsuraci: true, it seems it realoaded from cache
17:01 < alexsuraci> nsz: i can't tell if you're stupid or just trolling,
either way it's not working out too good
17:01 -!- SRabbelier [n=SRabbeli@ip138-114-211-87.adsl2.static.versatel.nl] has
joined #go-nuts
17:01 < nsz> ?
17:02 < alexsuraci> nsz: the front page and code view pages both validate.
17:03 -!- ssmall [n=stuart@rrcs-97-77-53-108.sw.biz.rr.com] has joined #go-nuts
17:04 -!- ericmoritz\0 [n=ericmori@c-76-123-248-214.hsd1.tn.comcast.net] has quit
[Read error: 60 (Operation timed out)]
17:04 < dgnorton> nsz: why would you enforce your own default css?
17:05 < kve> alexsuraci: site's looking fine and the color theme seems
pretty nice too.  based on browsershots it should work on ie7&8 too (
http://browsershots.org/websites/2685248/ )
17:05 < alexsuraci> nsz: please link me to the part of the spec that states
that a div in a pre is invalid, otherwise so far it looks like you're just talking
out of your ass
17:05 < alexsuraci> kve: nice, thanks :)
17:06 < nsz> http://www.w3.org/TR/html4/struct/text.html#h-9.3.4
17:06 < alexsuraci> nsz: yes, I just searched that.
17:06 -!- mainman__ [n=Adium@79.21.156.24] has joined #go-nuts
17:08 < alexsuraci> nsz: <!ENTITY % pre.exclusion
"IMG|OBJECT|BIG|SMALL|SUB|SUP">
17:08 < alexsuraci> I see no |DIV.
17:08 < nsz> it can only contain inline elements
17:09 < alexsuraci> ah, true
17:09 * dho wonders when his friends are going to get here to help him move
17:10 < alexsuraci> still a non-issue
17:11 < kfx> this is a weird conversation about Go
17:11 < alexsuraci> indeed
17:11 < dho> this is irc, when is it ever on topic
17:11 -!- Tuller [n=Tuller@pool-72-84-246-12.rcmdva.fios.verizon.net] has joined
#go-nuts
17:12 -!- sm [n=sm@cpe-75-85-88-227.socal.res.rr.com] has quit []
17:13 -!- npe [n=npe@94-224-251-223.access.telenet.be] has quit []
17:13 -!- sku [n=sk@217.175.9.215] has joined #go-nuts
17:15 -!- asmo [n=asmo@c-f6c5e055.1155-1-64736c11.cust.bredbandsbolaget.se] has
quit [Nick collision from services.]
17:16 -!- asmo_ [n=asmo@85.224.197.246] has joined #go-nuts
17:18 -!- kmc [n=keegan@173-100-16-149.pools.spcsdns.net] has joined #go-nuts
17:25 -!- tcpip4000 [n=fulano@dsl-emcali-190.99.193.179.emcali.net.co] has left
#go-nuts []
17:26 < vegai> mm
17:26 < vegai> [vegai@louhe gosqlite3]$ make install
17:26 < vegai> cgo sqlite3.go
17:26 < vegai> dwarf.Type sqlite3_blob reports unknown size
17:26 -!- Fraeon [n=kzer-za@e212-246-65-153.elisa-laajakaista.fi] has joined
#go-nuts
17:29 < hector> hi guys.  why is my program throwing "mark - world not
stopped"?
17:29 -!- travisbrady [n=tbrady@98.210.155.175] has joined #go-nuts
17:31 < sanooj> sounds like the garbage collector is confused.
17:32 < XniX23> can someone tell me what cgo is?  i think i missed that
17:32 < hector> yes.  the code seems to think that a goroutine is still
running
17:33 < saati_> XniX23: foreign function interface lib
17:33 < hector> in a program which doesn't create new goroutines, how many
m's and g's should there be?
17:34 -!- djanderson [n=dja@hltncable.pioneerbroadband.net] has joined #go-nuts
17:35 -!- slashus2 [n=slashus2@74-137-26-8.dhcp.insightbb.com] has quit []
17:36 -!- Cyanure [n=cyanure@AMontsouris-151-1-26-237.w82-123.abo.wanadoo.fr] has
quit [Read error: 110 (Connection timed out)]
17:37 -!- soni__ [n=felicity@59.92.41.227] has joined #go-nuts
17:37 -!- zerofluid [n=zeroflui@ip72-208-216-68.ph.ph.cox.net] has joined #go-nuts
17:38 < exch> XniX23: cgo takes care of compiling packages that link to
external c code
17:38 < exch> it auto-generates the glue code needed to convert c types to
and from go types
17:39 -!- sudokode [n=sudokode@unaffiliated/sudokode] has joined #go-nuts
17:39 < sudokode> FxChiP, pew pew
17:40 -!- Will_D [n=will@c-71-231-59-135.hsd1.wa.comcast.net] has joined #go-nuts
17:42 < soni__> hey, the doc says semis are not mandatory all the time, but
sometimes when i dont put them,i get an error.how come?
17:43 -!- soni__ [n=felicity@59.92.41.227] has quit [Remote closed the connection]
17:43 -!- soni__ [n=felicity@59.92.41.227] has joined #go-nuts
17:43 < soni__> hey, the doc says semis are not mandatory all the time, but
sometimes when i dont put them,i get an error.how come?
17:43 < K6HX> presumably because they are mandatory sometimes.
17:44 < soni__> so should i just put them all the time?i mean at the end of
every line?
17:44 < soni__> or rather, when are they mandatory?
17:45 < K6HX> well, you do have to put in the mandatory ones, yes.  if you
didn't, they wouldn't be mandatory.
17:45 < K6HX> the rules aren't all that tricky.
17:45 < K6HX> i think that gofmt will even strip out redudant ones.
17:45 -!- soni__ [n=felicity@59.92.41.227] has quit [Client Quit]
17:46 < scandal> soni__: basisically you need them between statements inside
of {}.  other than than you can omit them
17:46 < flyguy> they are more tricky than "always use them" and "never
required"
17:46 -!- Cyanure [n=cyanure@82.123.23.237] has joined #go-nuts
17:46 -!- trvbldn|away [n=trvbldn@c-98-218-95-154.hsd1.dc.comcast.net] has quit
[Read error: 110 (Connection timed out)]
17:46 -!- hector [n=chatzill@client-86-0-126-58.nrth.adsl.virginmedia.com] has
quit ["ChatZilla 0.9.85 [Firefox 3.5.5/20091102152451]"]
17:47 -!- drusepth [n=drusepth@174.32.154.79] has joined #go-nuts
17:50 -!- path_ [n=path@115.240.20.44] has quit [Remote closed the connection]
17:50 < exch> iant: The mapping of XML elements to structs seems to run into
some issues when a namespace value is present.  This is the code as I understand
it to be needed from the docs, but it's not yielding any results.
http://pastie.org/709004
17:52 -!- adam_smith [n=adam_smi@81.167.16.31] has joined #go-nuts
17:52 -!- marko [n=marko@letku118.adsl.netsonic.fi] has joined #go-nuts
17:53 < marko> Too bad, mailing list and issue tracker require a google
account.
17:54 < vsmatck> You can subscribe without a google account.  There's a URL
you can use with your email as a GET parameter.  I googled it a few days ago.
17:54 < marko> Can you give me more, vsmatck?
17:54 < vsmatck> Not sure about the issue tracker though.
17:54 < vsmatck> no
17:54 < marko> The mailing list will be all right
17:55 < marko> But what did you google for?
17:55 -!- General1337 [n=support@71.84.247.187] has joined #go-nuts
17:55 < BleSS> Iget -> $GOROOT is not set correctly or not exported
17:56 < BleSS> and it has been exported
17:56 < BleSS> so there is wrong on *if ! test -f $GOROOT/include/u.h*
17:57 < scandal> with some goog groups you can email
<groupname>-subscribe@googlegroups.com as well
17:57 -!- travisbrady [n=tbrady@98.210.155.175] has quit []
17:57 -!- directrixx [n=aleksand@ip68-231-189-247.tc.ph.cox.net] has joined
#go-nuts
17:57 < Jaywalker> Hey guys...  Anyone know what I should do to fix this
error?
"/usr/lib64/gcc/x86_64-suse-linux/4.4/../../../../x86_64-suse-linux/bin/ld:
Relocatable linking with relocations from format elf64-x86-64
(runtime/libruntime.a(libruntime.a.o)) to format elf32-i386 (runtime.gox.o) is not
supported"
17:58 < marko> I'll try that, scandal, thanks.
17:58 < marko> But why not say so on the mailing list web page?
17:59 < marko> I don't want to get sucked into the world of a proprietary
language.
17:59 -!- david_ricardo [n=adam_smi@31.81-167-16.customer.lyse.net] has quit [Read
error: 110 (Connection timed out)]
18:01 -!- General13372 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit
[Read error: 60 (Operation timed out)]
18:01 -!- hipe [n=hipe@pool-74-108-181-155.nycmny.east.verizon.net] has quit [Read
error: 104 (Connection reset by peer)]
18:01 -!- hipe [n=hipe@pool-74-108-181-155.nycmny.east.verizon.net] has joined
#go-nuts
18:02 < marko> No, didn't work for me, scandal.
18:02 -!- adam_smith [n=adam_smi@81.167.16.31] has quit [Read error: 145
(Connection timed out)]
18:03 < scandal> I'm not sure why it works with some groups.  However, I did
notice that the group I used it for (shedskin-discuss) doesn't display that option
on its info page any longer.
18:05 < marko> Seems like no more mister nice guy for google
18:05 < marko> They insist on getting everybody to sign up with them
18:08 < exch> nobody is forcing you to do so :p
18:08 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has joined
#go-nuts
18:08 < marko> Technically, not true, exch.  My former employer did.
18:08 -!- jorgearturo [n=jorgeart@189.186.185.185] has joined #go-nuts
18:09 < exch> that just sucks then :p
18:09 -!- snnw [n=snnw@cc317185-b.groni1.gr.home.nl] has joined #go-nuts
18:10 -!- teralaser [n=teralase@unaffiliated/teralaser] has joined #go-nuts
18:10 -!- teralaser [n=teralase@unaffiliated/teralaser] has left #go-nuts []
18:10 -!- Associat0r [n=Associat@h163153.upc-h.chello.nl] has joined #go-nuts
18:10 -!- jorgearturo [n=jorgeart@189.186.185.185] has quit [Client Quit]
18:10 -!- Associat0r [n=Associat@h163153.upc-h.chello.nl] has quit [Remote closed
the connection]
18:10 < marko> However, more to the point, this IRC access is great and
everything but they should allow for a neutral access to issue tracking as well
18:11 < marko> This "my way or the highway" attitude is so Microsoft
18:11 < engla> marko: uhm ever seen a bug tracker where you can choose what
kind of account to use?
18:11 -!- armence [n=armence@c-67-188-229-128.hsd1.ca.comcast.net] has joined
#go-nuts
18:12 < marko> When I've subscribed to mailing lists, I've been getting good
response to issues I've raised
18:12 < JBeshir> marko: It's pretty standard to need to register an account
"with the bug tracker system"
18:12 < JBeshir> Whenever using a bug tracker.
18:12 < JBeshir> So the need to register there should at least be excluded,
no?
18:13 < marko> I'd be happy to subscribe but using a google account is scary
18:13 < marko> That's the "one ring to bind them all"
18:13 < exch> yay.  solved the namespace issue
18:14 < JBeshir> I heard they steal your soul, marko.
18:14 < marko> Already knew that
18:14 < directrixx> marko: You better keep that tin foil at on really tight
18:14 < directrixx> *hat
18:14 < marko> I'm holding onto mine but I know it's a losing game
18:15 < exch> don't worry.  I've got a whole load of hats in stock
18:15 < exch> you'll have to sign up to get one though
18:15 -!- path_ [n=path@115.240.44.239] has joined #go-nuts
18:15 < scandal> lol
18:16 < directrixx> exch: I switched to lead hats after 9/11
18:16 < exch> ah good call
18:16 < directrixx> strengthens the neck muscles
18:17 -!- hsuh [n=hsu@c925a62a.virtua.com.br] has joined #go-nuts
18:17 -!- trvbldn [n=trvbldn@c-98-218-95-154.hsd1.dc.comcast.net] has joined
#go-nuts
18:17 < marko> Anyway FWIW, the NewTicker function (in pkg time) has a
flawed prototype
18:17 -!- clearscreen [n=clearscr@e248070.upc-e.chello.nl] has quit ["Leaving."]
18:18 < marko> Namely: func NewTicker(ns int64) *Ticker
18:18 < marko> Those nanoseconds can lead to significant straying of the
ticks.
18:19 < marko> Say you want 128000 ticks a second - after an hour you'll be
230 milliseconds off, or more than 5 seconds per day
18:19 < marko> Many ways to fix it
18:19 < marko> For example:
18:19 < marko> func NewRationalTicker(ns int64, divider int64) *Ticker
18:20 < marko> as in: NewRationalTicker(1000000000, 128000)
18:20 < marko> or, equivalently: NewRationalTicker(15625, 2)
18:21 -!- clearscreen [n=clearscr@e248070.upc-e.chello.nl] has joined #go-nuts
18:22 -!- sudokode [n=sudokode@unaffiliated/sudokode] has quit [Remote closed the
connection]
18:23 < marko> That example is not imaginary BTW
18:23 -!- crooter [n=crooter@li65-15.members.linode.com] has joined #go-nuts
18:25 -!- ssmall [n=stuart@rrcs-97-77-53-108.sw.biz.rr.com] has quit [Read error:
110 (Connection timed out)]
18:27 < exch> implement it and submit it for review
18:27 -!- belkiss [n=kvirc@feu30-1-82-242-58-196.fbx.proxad.net] has joined
#go-nuts
18:27 < marko> Submit where?  Here?
18:27 < exch> through mercurial
18:27 < marko> I just might
18:28 < Dreamr_3> anyone written go on rails yet?  :)
18:28 < exch> http://golang.org/doc/contribute.html
18:28 < Dreamr_3> i'm waiting for it for my next project ;-)
18:28 -!- david_ricardo [n=adam_smi@31.81-167-16.customer.lyse.net] has joined
#go-nuts
18:30 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has quit [Read
error: 110 (Connection timed out)]
18:32 < BleSS> better that a new web framework would be several libraries
18:32 < BleSS> a web framework limits you too
18:32 < Dreamr_3> i don't find rails limiting :)
18:33 < BleSS> I would happy with a template, and route libraries
18:33 -!- hector [n=chatzill@client-86-0-126-58.nrth.adsl.virginmedia.com] has
joined #go-nuts
18:34 < marko> Oh noes: "The code review server uses a Google Account to
authenticate."
18:34 < blackmagik> rails isn't dead yet?
18:34 < dagle2> No?
18:35 < scandal> it bogles my mind that 3,300 messages have been posted to
the email list since it opened
18:36 < marko> Is there a usenet group?
18:37 < marko> "No such group: comp.lang.go"
18:37 < marko> "No such group: comp.lang.golang"
18:38 -!- AlvaroGP [i=Alvaro@89.128.155.68] has joined #go-nuts
18:38 < s_mosher> marko, I'm sure Kibo would be happy to fix that for you
18:38 < hector> is it possible to convert a string slice to a string
pointer?
18:39 -!- adam_smith [n=adam_smi@81.167.16.31] has joined #go-nuts
18:39 -!- p4p4_ [n=P4p4@24.106.113.82.net.de.o2.com] has joined #go-nuts
18:39 -!- voluspa [n=voluspa@134.84.102.227] has joined #go-nuts
18:40 < exch> ptr := &slice; ?
18:40 < scandal> go> s:="hello"; p := &s[0:2]; fmt.Printf("%T\n", p);
18:40 < scandal> cannot take the address of (node SLICESTR)
18:40 < exch> slices are references to underlying arrays already
18:41 < scandal> hector: what are you attemping to accomplish?  there may be
a better way
18:41 < marko> scandal, my thoughts exactly
18:41 < hector> i'm trying to call a windows function which takes a c string
pointer
18:41 < exch> ah
18:41 < hector> my go code is currently passing it a string slice
18:41 < scandal> hector: oh, using cgo?
18:41 < exch> cstr := C.CString("foobar");
18:42 < exch> gostr := C.GoString(cstr);
18:42 -!- Nanoo [n=Nano@95-89-198-15-dynip.superkabel.de] has joined #go-nuts
18:43 < jordyd> Does Go have some way I can run a function when a value in a
struct type changes, or do I just have to implement a setter method?
18:43 < hector> scandal: no, i declared my thunk function api·CreateFile,
and the makefile puts in in package api
18:43 < hector> that function is in a c file
18:43 -!- mainman__ [n=Adium@79.21.156.24] has quit ["Leaving."]
18:43 -!- marko [n=marko@letku118.adsl.netsonic.fi] has left #go-nuts ["Killed
buffer"]
18:43 < hector> and then i have a go file which has a function declaration
matching that
18:44 < hector> then in go code i can call it via api.CreateFile
18:44 < scandal> jordyd: you'd have to wrap the struct using getter/setter
18:45 < jordyd> OK, thanks.
18:45 < scandal> hector: in order to call C functions, you need to use the
cgo tool
18:45 < hector> scandal: hmm, it seems to call into it ok when i look in a
debugger.  plus i don't have enough of the library built to build and use cgo
18:46 < hector> exch: do you know where the source code for the C package
is?
18:46 -!- Killerkid [n=l1am9111@host86-168-206-175.range86-168.btcentralplus.com]
has quit [Read error: 110 (Connection timed out)]
18:47 < scandal> it's not a real package.  the cgo tool generates it on the
fly
18:47 < exch> there is no C package.  'Import "C"' is a special case import
recognized by cgo
18:47 < hector> ok, thanks for the info
18:47 < exch> cgo then auto-generates the C glue code from the comments
directly aabove the import "C" bit
18:47 < exch> usually you have a comment like // #include <foo.h>
there
18:48 < exch> cgo will then include <foo.h> into the generated c code
18:48 < AlvaroGP> hector you said that you are calling a Windows function,
is there a Go for Windows port already?
18:48 < hector> yes, you can keep up with it at
http://code.google.com/r/hectorchu-go-windows/
18:49 < AlvaroGP> oh cool i wondered if it was already usable, thanks
18:49 -!- david_ricardo [n=adam_smi@31.81-167-16.customer.lyse.net] has quit [Read
error: 110 (Connection timed out)]
18:51 < hector> well the next commit should allow you to open files and
print stuff on the screen.  at the moment it just compiles and runs empty programs
18:51 -!- mikedee [n=quassel@91.108.123.78] has quit [Remote closed the
connection]
18:52 < AlvaroGP> is it possible to call DLLs with it?
18:52 -!- mikedee [n=quassel@91.111.24.173] has joined #go-nuts
18:53 < exch> hector: the code cgo uses to convert types to/from c is
defined in file:///home/nuada/go/src/pkg/runtime/cgocall.c
18:53 -!- path__ [n=path@115.240.50.161] has joined #go-nuts
18:53 < exch> in your own go src tree that is :p
18:53 < exch> it also includes runtime.h from that same directory
18:54 < engla> ö
18:54 * engla slipped an ö
18:56 -!- shoafb [n=The_Doct@cpe-98-150-247-183.hawaii.res.rr.com] has joined
#go-nuts
18:59 -!- pace_t_zulu_ [n=pacetzul@unaffiliated/pacetzulu/x-585030] has joined
#go-nuts
19:00 -!- Killerkid [n=l1am9111@host86-144-11-187.range86-144.btcentralplus.com]
has joined #go-nuts
19:01 -!- me___ [n=venkates@c-68-55-179-48.hsd1.md.comcast.net] has joined
#go-nuts
19:02 -!- zhaozhou [n=zhaozhou@linfast76.bitnet.nu] has quit [Read error: 110
(Connection timed out)]
19:02 < hector> engla: thanks
19:03 -!- ericmoritz\0 [n=ericmori@c-76-123-248-214.hsd1.tn.comcast.net] has
joined #go-nuts
19:03 < engla> hector: I have more ö if you want ;-)
19:03 < engla> I think you wanted to thank exch
19:03 < hector> yes, haha
19:04 < hector> AlvaroGP: i'm not sure whether i'm going to include that
functionality yet
19:04 < hector> might make go programs non portable
19:06 -!- path_ [n=path@115.240.44.239] has quit [Read error: 110 (Connection
timed out)]
19:07 -!- bquinn [n=bquinn@office.velleman.com] has joined #go-nuts
19:07 < AlvaroGP> ok hector, i was thinking that it might be useful to be
able to call gui libraries
19:08 < snnw> Hi! Does an equivalent to C's scanf() or Java's util.Scanner
in Go? I'm trying to read formatted stdin.  (3 integers separated by spaces, for
example)
19:09 -!- p4p4 [n=P4p4@24.106.113.82.net.de.o2.com] has quit [Connection timed
out]
19:10 < scandal> snnw: unfortunately not yet.
19:11 < snnw> scandal: so is there someone working on that?
19:11 -!- drusepth [n=drusepth@174.32.154.79] has quit [Read error: 104
(Connection reset by peer)]
19:11 -!- dgnorton [n=none@adsl-068-213-106-141.sip.clt.bellsouth.net] has quit
[Read error: 110 (Connection timed out)]
19:12 < scandal> not that i am aware of
19:12 -!- drusepth [n=drusepth@174.32.154.79] has joined #go-nuts
19:13 -!- aaront [n=aaront@d24-141-25-171.home.cgocable.net] has joined #go-nuts
19:13 < snnw> Ok thanks, I might send a proposal with some ideas to golang's
mailing list :)
19:15 < scandal> i guess there is the ebnf package, but that's more
heavyweight
19:16 -!- randomiser_ [n=james@nat-studcudn-172-24-62-0.fitz.cam.ac.uk] has joined
#go-nuts
19:16 -!- sku [n=sk@217.175.9.215] has quit [Remote closed the connection]
19:16 -!- Null-A_ [n=jason@65-119-47-100.dia.static.qwest.net] has joined #go-nuts
19:17 -!- ssmall [n=stuart@utdpat242007.utdallas.edu] has joined #go-nuts
19:18 -!- randomiser_ [n=james@nat-studcudn-172-24-62-0.fitz.cam.ac.uk] has quit
[Client Quit]
19:18 -!- ssmall [n=stuart@utdpat242007.utdallas.edu] has left #go-nuts []
19:18 -!- geocalc [n=geocalc@lns-bzn-35-82-250-225-172.adsl.proxad.net] has joined
#go-nuts
19:18 -!- randomiser_ [n=james@nat-studcudn-172-24-62-0.fitz.cam.ac.uk] has joined
#go-nuts
19:18 -!- ikkebr [n=1kk3@unaffiliated/ikkebr] has joined #go-nuts
19:19 -!- clearscreen [n=clearscr@e248070.upc-e.chello.nl] has quit [Read error:
104 (Connection reset by peer)]
19:20 -!- aaront [n=aaront@unaffiliated/aaront] has quit ["And that's all he
wrote..."]
19:21 -!- Anders_ [n=Anders@c83-253-2-206.bredband.comhem.se] has quit [Read
error: 110 (Connection timed out)]
19:23 -!- ssmall1 [n=stuart@utdpat242007.utdallas.edu] has joined #go-nuts
19:23 -!- adam_smith [n=adam_smi@81.167.16.31] has quit [Read error: 145
(Connection timed out)]
19:25 < scandal> huh, this is odd:
19:25 < scandal> go> for _ := range []int{} {}
19:25 < scandal> no new variables on left side of :=
19:25 < scandal> i guess the placeholder var (_) can't be redefined
19:25 < alexsuraci> scandal: := introduces new variables
19:25 < alexsuraci> try "="
19:25 < scandal> yes, i know.  but _ is special.
19:26 < alexsuraci> well, it still makes sense in this place; := expects new
variables to be bound but _ doesn't count as one so there aren't any
19:26 < alexsuraci> *in this case
19:26 -!- irctalk [n=irctalk@189.100.33.81] has joined #go-nuts
19:26 < scandal> ah, very good poing!
19:26 < scandal> err, point
19:27 -!- nonet1 [n=nonet@c-69-181-203-73.hsd1.ca.comcast.net] has joined #go-nuts
19:27 * exch poings across the room
19:27 < alexsuraci> kind of unintuitive at first but once you realize that,
it comes together
19:27 -!- nonet1 [n=nonet@c-69-181-203-73.hsd1.ca.comcast.net] has left #go-nuts
[]
19:27 -!- x-ip [n=sakura@unaffiliated/x-ip] has joined #go-nuts
19:28 < scandal> there was an audible groan from the audience when i was
discussing that point at the local python user group
19:28 -!- triplez [n=triplez@cm52.sigma225.maxonline.com.sg] has joined #go-nuts
19:28 -!- ikke [n=1kk3@unaffiliated/ikkebr] has quit [Read error: 110 (Connection
timed out)]
19:29 -!- ikke [n=1kk3@unaffiliated/ikkebr] has joined #go-nuts
19:29 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has joined
#go-nuts
19:29 * alexsuraci is working on a Controller model for URL handling using regexps
and callbacks
19:30 -!- aaront [n=aaront@d24-141-25-171.home.cgocable.net] has joined #go-nuts
19:30 < exDM69> I just wrote one with python/wsgi
19:31 < alexsuraci> already got URL matching and callbacks going
19:31 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has quit
[Client Quit]
19:31 -!- illya77 [n=illya77@202-100-133-95.pool.ukrtel.net] has quit [Read error:
104 (Connection reset by peer)]
19:34 -!- lulzMonkey [n=lulzy@122.169.137.37] has joined #go-nuts
19:35 < alexsuraci> now to switch gopaste over to this.
19:35 -!- aa [n=aa@r190-135-219-166.dialup.adsl.anteldata.net.uy] has joined
#go-nuts
19:36 -!- Zaba_ [n=zaba@about/goats/billygoat/zaba] has joined #go-nuts
19:36 -!- clearscreen [n=clearscr@62.140.137.121] has joined #go-nuts
19:36 -!- jorgearturo [n=jorgeart@189.186.185.185] has joined #go-nuts
19:37 -!- Wiz126 [i=Wiz126@72.20.220.217] has quit []
19:39 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has joined
#go-nuts
19:39 -!- ikkebr [n=1kk3@unaffiliated/ikkebr] has quit [Success]
19:39 -!- brrant [n=John@168-103-78-133.hlrn.qwest.net] has quit [Read error: 60
(Operation timed out)]
19:39 -!- Null-A_ [n=jason@65-119-47-100.dia.static.qwest.net] has quit []
19:41 -!- JSharpe [n=jamie@5ad1d7f1.bb.sky.com] has quit [Read error: 104
(Connection reset by peer)]
19:41 -!- JSharpe [n=jamie@5ad1d7f1.bb.sky.com] has joined #go-nuts
19:42 -!- anticw [n=anticw@c-76-126-87-56.hsd1.ca.comcast.net] has quit
["rebooting the internet"]
19:43 -!- Null-A [n=jason@65-119-47-100.dia.static.qwest.net] has joined #go-nuts
19:43 -!- jA_cOp [n=yakobu@ti0043a380-3093.bb.online.no] has joined #go-nuts
19:45 < jordyd> With Go can I specify how to do a type conversion?
Something like C++'s constructors that have another type (or class) as an
argument?
19:45 < KragenSitaker> well
19:45 < KragenSitaker> converstion to string normally happens by calling the
String method
19:46 -!- Zaba [n=zaba@about/goats/billygoat/zaba] has quit [Read error: 110
(Connection timed out)]
19:46 < KragenSitaker> so if you define a String method, you're implicitly
defining a conversion to string, but by convention rather than by linguistic
poilcy
19:46 < KragenSitaker> policy
19:46 -!- Null-A [n=jason@65-119-47-100.dia.static.qwest.net] has quit [Read
error: 104 (Connection reset by peer)]
19:46 < KragenSitaker> there's very little in the way of implicit
conversions in Go
19:47 -!- Daminvar [n=Daminvar@cpe-67-241-129-149.buffalo.res.rr.com] has joined
#go-nuts
19:47 < KragenSitaker> so you probably can't do var x *Foo =
something.MakeMeABarPlease()
19:47 -!- travisbrady [n=tbrady@98.210.155.175] has joined #go-nuts
19:47 -!- Daminvar [n=Daminvar@cpe-67-241-129-149.buffalo.res.rr.com] has left
#go-nuts ["Leaving"]
19:47 < KragenSitaker> but you can do var x *Foo =
something.MakeMeABarPlease().Foo()
19:47 -!- Daminvar [n=Daminvar@cpe-67-241-129-149.buffalo.res.rr.com] has joined
#go-nuts
19:47 < KragenSitaker> (assuming you define a Foo method that returns a Foo,
of course)
19:48 -!- Null-A [n=jason@65-119-47-100.dia.static.qwest.net] has joined #go-nuts
19:48 < jordyd> OK, thank you.
19:50 -!- Sylvain_ [i=52ee981a@gateway/web/freenode/x-yfebvzlqwcjthkhf] has quit
["Page closed"]
19:53 -!- Null-A [n=jason@65-119-47-100.dia.static.qwest.net] has quit []
19:54 -!- Null-A [n=jason@65-119-47-100.dia.static.qwest.net] has joined #go-nuts
19:55 -!- hsuh [n=hsu@c925a62a.virtua.com.br] has quit [Read error: 60 (Operation
timed out)]
19:56 -!- flyguy [n=flyguy@66-169-174-29.dhcp.ftwo.tx.charter.com] has quit
["leaving"]
19:58 -!- drusepth` [n=drusepth@174.32.154.79] has joined #go-nuts
19:58 -!- drusepth [n=drusepth@174.32.154.79] has quit [Read error: 131
(Connection reset by peer)]
19:59 < Jaywalker> Anyone had any luck getting gccgo on SUSE x86_64?  :( I
can't get it to compile
19:59 -!- p4p4 [n=P4p4@24.106.113.82.net.de.o2.com] has joined #go-nuts
20:00 < Arkit> while building go on 386 linux i got "make[2]: ***
[_gotest_.8] Segmentation fault
20:00 < Arkit> "
20:00 < droid0011> try --disable-multilib
20:01 < Arkit> ok
20:01 < Jaywalker> droid0011, me?
20:01 -!- drusepth` [n=drusepth@174.32.154.79] has quit [Read error: 104
(Connection reset by peer)]
20:01 -!- Null-A [n=jason@65-119-47-100.dia.static.qwest.net] has left #go-nuts []
20:01 -!- ajstarks [n=ajstarks@pool-98-109-198-180.nwrknj.fios.verizon.net] has
joined #go-nuts
20:01 < Jaywalker> The error i'm getting is:
/usr/lib64/gcc/x86_64-suse-linux/4.4/../../../../x86_64-suse-linux/bin/ld:
Relocatable linking with relocations from format elf64-x86-64
(runtime/libruntime.a(libruntime.a.o)) to format elf32-i386 (runtime.gox.o) is not
supported
20:01 -!- drusepth [n=drusepth@174.32.154.79] has joined #go-nuts
20:02 < drhodes> Arkit: I had to ./clean.bash on a recent checkout in order
to build, fwiw
20:02 < droid0011> Jaywalker: yes
20:02 -!- hsuh [n=hsu@c925a62a.virtua.com.br] has joined #go-nuts
20:02 < Jaywalker> Alright.  droid0011 will that make it 64bit only?
20:02 -!- raichoo_ [n=raichoo@g224173235.adsl.alicedsl.de] has joined #go-nuts
20:03 < Jaywalker> Also...  anyone have an idea what the go implementation
of "unsigned char *videoram = (unsigned char *) 0xb8000; videoram[0] = 65;" would
be?  :)
20:03 < droid0011> I think so, at least it works on 64bit distribution
20:03 < Arkit> lol
20:04 * Jaywalker 's plan for go is revealed...  lol
20:04 -!- pkrumins_ [i=nhl@unaffiliated/pkrumins] has joined #go-nuts
20:04 < Arkit> im am getting a segfault while building
/home/lulzmonkey/go/src/pkg/exp/eval
20:04 -!- anticw [n=anticw@c-76-126-87-56.hsd1.ca.comcast.net] has joined #go-nuts
20:05 < pkrumins_> Could anyone take a look at the following code and tell
me why do I get "throw: all goroutines are asleep - deadlock!" exception.  The
error is here: http://gopaste.org/lgUe1
20:06 < engla> pkrumins_: does it help if you close channels after you fed
them?
20:07 < scandal> pkrumins_: you need to close() your channels when done
sending
20:07 < pkrumins_> trying
20:07 < engla> pkrumins_: like filter should close out when done
20:07 < engla> and ch in main
20:07 < pkrumins_> does it mean that channel closing is mandatory?
20:07 < engla> else range won't terminate
20:07 < scandal> the producer should always close the channel
20:08 < pkrumins_> oh right.
20:08 < pkrumins_> works now :)
20:08 -!- aarapov [n=aarapov@nat/redhat/x-srqelawnaqutnyrl] has joined #go-nuts
20:09 < engla> the idiom is basically..  create a channel, fire off a
goroutine that feeds it then closes the channel, return the channel
20:09 < ajstarks> anybody work with 6prof?
20:09 < pkrumins_> engla, thanks.
20:10 < pkrumins_> What about generics in Go. As I heard there are none.
Suppose I want my function `filter` (pasted above) work on various data types by
only changing the passed-in f() that determines if element should be filtered or
not.  How do I do that?
20:10 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has quit [Read
error: 145 (Connection timed out)]
20:10 -!- tor7 [n=tor@213.113.122.152] has quit [Read error: 131 (Connection reset
by peer)]
20:11 < scandal> pkrumins_: you need to use reflection to do that.  look at
ZipWith in this: http://www.cs.hmc.edu/~me/go/iterutils/iterutils.go
20:11 -!- tor7 [n=tor@c-987a71d5.04-50-6c756e10.cust.bredbandsbolaget.se] has
joined #go-nuts
20:11 < pkrumins_> looking
20:12 < scandal> basically the idea is you use interface{} for your type,
then use the reflection.* types to manipulate things
20:12 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has joined
#go-nuts
20:13 < pkrumins_> understood.
20:13 < scandal> so if you want a generic filter function, you'd make it
something like f func(v interface{}) bool and inside filter you can get the type
of v
20:14 -!- Cyanure [n=cyanure@82.123.23.237] has quit [Read error: 145 (Connection
timed out)]
20:14 < pkrumins_> pretty pesky, would filter be extensible then?  if
someone had a new type that i hadn't specified there, then it wouldn't work, would
it?
20:15 < pkrumins_> Unless I use interfaces, maybe?
20:15 -!- hsuh [n=hsu@c925a62a.virtua.com.br] has left #go-nuts ["Leaving"]
20:15 -!- ajstarks [n=ajstarks@pool-98-109-198-180.nwrknj.fios.verizon.net] has
left #go-nuts []
20:16 -!- p4p4_ [n=P4p4@24.106.113.82.net.de.o2.com] has quit [Connection timed
out]
20:16 < scandal> right, usually you want to write your code such that you
don't care about what actual type it is.  you just want it to provide some
interface
20:16 < pkrumins_> so if v is interface{}, then i should use the v.(int),
etc, syntax to get the actual value?
20:17 -!- raichoo [n=raichoo@e181227053.adsl.alicedsl.de] has quit [Connection
timed out]
20:17 < scandal> for the filter function, you don't really care what the
type of v is.  you just call the passed in function f(v) and look at the return
20:17 < pkrumins_> yeah
20:17 -!- drusepth [n=drusepth@174.32.154.79] has quit ["Leaving"]
20:17 < pkrumins_> ok modifying my code
20:17 < scandal> but when you write the f function, yes you need to use a
type assertion
20:18 -!- drusepth [n=drusepth@174.32.154.79] has joined #go-nuts
20:18 < pkrumins_> aha
20:18 < pkrumins_> oh nice, then actually it will work, even if user writes
f
20:18 < pkrumins_> because he knows his type
20:18 < scandal> filter( []int{1,2,3}, func(v interface[}) { v.(int) > 2
})
20:18 < scandal> correct
20:18 < pkrumins_> this is the most awesome.
20:22 < KragenSitaker> heh, it's celebrity hour on #go-nuts
20:22 < pkrumins_> where are the celbrities?
20:22 -!- Cyanure [n=cyanure@AMontsouris-151-1-26-237.w82-123.abo.wanadoo.fr] has
joined #go-nuts
20:22 < pkrumins_> scandal, almost forgot []int{1,2,3} :)
20:23 -!- jorgearturo [n=jorgeart@189.186.185.185] has quit ["Saliendo"]
20:23 < pkrumins_> scandal, how do you think, is it possible to create
`filter` to accept both channels and slices/arrays as first arg?
20:23 < pkrumins_> scandal, or should I just overload on first arg?
20:24 < KragenSitaker> pkrumins_: I meant you and scandal :)
20:24 -!- ssmall1 [n=stuart@utdpat242007.utdallas.edu] has quit [Read error: 145
(Connection timed out)]
20:24 < scandal> pkrumins_: well, it turns out this is already in the
library exp/iterable.  basically you do it by providing an interface called
Iterable, and any thype that impelemnts it can be iterated over
20:25 < pkrumins_> oh, exp/iterable
20:25 < pkrumins_> looking at it
20:25 < pkrumins_> and seeing how it's different from iterutils!
20:25 < pkrumins_> scandal, 'exp' is experimental?
20:25 < scandal> iterutils is just additions
20:25 < scandal> pkrumins_: yes
20:25 < pkrumins_> kk!
20:26 < pkrumins_> I am porting haskell's prelude.hs to Go
20:26 < pkrumins_> Perhaps it's been done already, /wondering/.
20:26 < pkrumins_> KragenSitaker ;)
20:26 < alexsuraci> woo!  gopaste now uses a controller model (gopaste.org
not updated yet)
20:26 < alexsuraci>
http://github.com/vito/go-play/blob/master/gopaste/main.go
20:26 < scandal> heh, that's pretty much what i was doing for the iterator
stuff
20:26 < pkrumins_> alexsuraci, good job!  i am already using gopaste.
20:26 < alexsuraci> pkrumins_: thanks :)
20:26 -!- Anders__ [n=Anders@c83-253-2-206.bredband.comhem.se] has joined #go-nuts
20:26 < KragenSitaker> I'm trying to remember the GNU library that used the
C preprocessor to implement a bunch of parametrically polymorphic types in C
20:27 < pkrumins_> alexsuraci, make it highlight source!
20:27 < Arkit> anyone got go compiled on i386?
20:27 < alexsuraci> pkrumins_: it does
20:27 < scandal> KragenSitaker: yikes
20:27 < pkrumins_> shouldn't be difficult, it already parses stuff for you
:)
20:27 < pkrumins_> oh, i didn't notice
20:27 < scandal> Arkit: yes
20:27 < KragenSitaker> you could do something similar for Go, but not using
the preprocessor
20:27 < alexsuraci> pkrumins_: it just doesn't hilight invalid go code
20:27 < me___> well, you can use m4....  ;)
20:27 < pkrumins_> alexsuraci, here is my paste, http://gopaste.org/lgUe1
20:27 < pkrumins_> alexsuraci, oh i see.
20:27 < alexsuraci> yea, it'd be fine without the debug output at the bottom
20:27 < pkrumins_> alexsuraci, it would be awesome if you backtracked to the
point where it's valid!
20:27 < pkrumins_> alexsuraci, and highlight that part
20:28 < alexsuraci> pkrumins_: not that simple; I just use the go/*
libraries
20:28 < pkrumins_> or find a valid portion of code in all the paste
20:28 < Arkit> scandal : mine is giving me seg fault while compiling
pkg/exp/eval
20:28 < KragenSitaker> me___: I think that might be worse rather than better
20:28 < pkrumins_> alexsuraci, yes, but you can still backtrack easily -
just call parse (or whatever function go/* libararies provide for parsing) on a
string one char less each time and see if the parse is valid.
20:29 < pkrumins_> alexsuraci, pretty expensive, but works :)
20:29 < XniX23> alexsuraci: are you making a mvc framework?  :p
20:29 < alexsuraci> that would take forever
20:29 < KragenSitaker> me___: I was thinking that you could use the existing
Go toolchain to figure out which parametric types to instantiate, and instantiate
them
20:29 < alexsuraci> XniX23: just the C for now ;).  and V, kind of.
20:29 < KragenSitaker> me___: etc.
20:29 < pkrumins_> scandal, how far are you with your iterlib?
20:29 < scandal> Arkit: the copmiler is segfaulting?
20:29 < pkrumins_> any plans to release it?
20:29 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has joined
#go-nuts
20:29 < Arkit> scandal: yes
20:29 -!- aanderse
[n=aanderse@CPE001b11cc67d3-CM0019475d7f5e.cpe.net.cable.rogers.com] has quit
[Read error: 113 (No route to host)]
20:29 < me___> ah okay.  well, C got far with just cpp, look at sys/queue.h
and BSD sys/rb.h :)
20:30 < pkrumins_> i wanted to post mine on monday, if i port most
prelude.hs and it works.
20:30 < scandal> pkrumins_: i emailed the exp/iterable maintainer to ask if
he wanted me to submit any of it.
20:31 < scandal> Arkit: weird, i didn't have that problem.
20:31 -!- arcela_fan [n=chatzill@189-72-154-82.bsace702.dsl.brasiltelecom.net.br]
has joined #go-nuts
20:31 < KragenSitaker> me___: yes, cpp is sufficient when your code is
correct.  it's just bad at diagnostics when you screw up
20:31 < Arkit> oh ait
20:31 < Arkit> wait
20:31 < Arkit> [_gotest_.8] Segmentation fault
20:31 < Arkit> it is not compiler i guess then?
20:32 -!- rogue780 [n=rogue780@c-68-34-234-213.hsd1.md.comcast.net] has joined
#go-nuts
20:32 < pkrumins_> scandal, i'll think about continuing mine then.
20:32 < me___> for some reason the cpp hacks like queue.h/list.h/rb.h make
me really happy...
20:32 < rogue780> has anyone configured Eclipse to work with go yet?
20:32 -!- gnomon_
[n=gnomon@CPE0022158a8221-CM000f9f776f96.cpe.net.cable.rogers.com] has joined
#go-nuts
20:32 < scandal> pkrumins_: i just cherry picked some of the functions that
i know well.  i'm sure there are other useful things that i've missed.
20:32 < scandal> pkrumins_: i found it very useful for getting to know Go
20:32 < pkrumins_> yeah
20:32 < rogue780> i'm tired of using vi
20:33 -!- IvatarHo1e [n=graham@tu055.demon.co.uk] has joined #go-nuts
20:33 < pkrumins_> vi is the most awesome.
20:33 -!- dRiZzle [n=dRizzle@0x4dd7f7cd.adsl.cybercity.dk] has joined #go-nuts
20:33 < pkrumins_> vim as well.
20:33 < rogue780> uh-huh....
20:33 -!- ssmall [n=stuart@utdpat242007.utdallas.edu] has joined #go-nuts
20:33 < rogue780> #go
20:34 < rogue780> so...no eclipse with go yet then?
20:34 < rogue780> or some other decent ide?
20:34 < rogue780> poop
20:35 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has quit
[Read error: 60 (Operation timed out)]
20:36 < nsz> 'decent ide' is an oxymoron
20:37 -!- shuaib [n=shuaib@unaffiliated/shuaib] has joined #go-nuts
20:38 < rogue780> www.catsforgold.com 's server was written in go
20:39 < nsz> "Server: Apache"
20:39 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has quit [Read
error: 145 (Connection timed out)]
20:39 -!- t16Uc0 [n=irctalk@189.100.33.81] has quit ["Leaving"]
20:40 -!- Associat0r [n=Associat@h163153.upc-h.chello.nl] has joined #go-nuts
20:41 -!- aanderse
[n=aanderse@CPE001b11cc67d3-CM0019475d7f5e.cpe.net.cable.rogers.com] has joined
#go-nuts
20:41 < KragenSitaker> rogue780: maybe ask on the list?  it seems like there
are about four or five people here
20:42 < rogue780> catsforgold makes me lol every time
20:42 < KragenSitaker> just because we're all using emacs and vi doesn't
mean *nobody* has configured eclipse to be comfier with go
20:42 < rogue780> ive never used emacs
20:42 < rogue780> it always looks like a daunting proposition
20:42 < KragenSitaker> it's not that bad
20:42 < exch> KragenSitaker: speak for yourself :p
20:42 < KragenSitaker> it's just like notepad
20:43 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has joined
#go-nuts
20:43 -!- belkiss [n=kvirc@feu30-1-82-242-58-196.fbx.proxad.net] has quit ["KVIrc
Insomnia 4.0.0, revision: 3582, sources date: 20090924, built on: 2009-10-30
14:04:36 UTC http://www.kvirc.net/"]
20:43 < jordyd> I find vim easier...  but probably just because I learned it
first :)
20:43 < KragenSitaker> except it has more features, and you can hit Ctrl+G
to escape from them and Ctrl+/ to undo whatever they did when you encounter them
by accident
20:43 -!- ajhager [n=ajhager@64-184-75-239.ccrtc.com] has joined #go-nuts
20:43 < scandal> someone mentioned starting an eclipse plugin, but i have
not seen any pointers to code
20:43 < scandal>
http://groups.google.com/group/golang-nuts/browse_thread/thread/bfb3aefa990aaa76/aea31748e5a57724?lnk=gst&q=eclipse#aea31748e5a57724
20:43 < exch> the fact that you can encounter features by accident makes my
chuckle
20:44 < KragenSitaker> yeah, you type C-x f instead of C-x C-f and suddenly
it's asking you what you want to set the fill-column to
20:44 < jordyd> And it also has this cool Ctrl-Alt-CarpalTunnel feature.
20:44 -!- IvatarHome [n=graham@tu055.demon.co.uk] has quit [Read error: 110
(Connection timed out)]
20:44 < KragenSitaker> or M-q because you want to quit, and suddenly your
code has been formatted as a paragraph
20:45 < KragenSitaker> jordyd: I've never had any RSI, but man, you should
see my left pinky
20:45 < KragenSitaker> it's freakish!
20:45 -!- drhodes [n=none@209-20-72-61.slicehost.net] has quit ["leaving"]
20:45 < jordyd> :) I've been considering switching to Programmer's Dvorak to
avoid that...  but I never really get too far with it before I give up.
20:46 < exch> punchcards!
20:46 -!- drhodes [n=none@209-20-72-61.slicehost.net] has joined #go-nuts
20:46 < alexsuraci> emacs is pretty comfy to use if you have one of those
keyboards that lets you swap caps lock and ctrl (or just do it in your OS)
20:47 -!- aarapov [n=aarapov@nat/redhat/x-srqelawnaqutnyrl] has quit ["Leaving."]
20:47 < alexsuraci> and you discover new features just about as often as you
do in vim
20:47 -!- gnomon
[n=gnomon@CPE0022158a8221-CM000f9f776f96.cpe.net.cable.rogers.com] has quit [Read
error: 110 (Connection timed out)]
20:47 < KragenSitaker> my new Boxing Interface avoids the injuries that can
be caused by small repetitive movements
20:47 < jordyd> Honestly, I prefer vim's modal interface.
20:47 < KragenSitaker> different patterns of punches produce different
emulated keystrokes
20:47 < pkrumins_> I'll be back later, have to do some reinstalling.
20:47 < pkrumins_> see you!
20:47 < me___> i lack a meta key on my dfly box, i have a pizza key tho'.
20:47 < jordyd> Pizza key?  What does that do?
20:48 -!- pkrumins_ [i=nhl@unaffiliated/pkrumins] has quit ["reinstall"]
20:48 < KragenSitaker> there's a predictive input method to allow you to
enter text at a reasonable speed, only about 1.12 punches or kicks per character
20:48 < me___> its mapped to meta atm...  but on the webpc its from
originally?  order pizza, probably.
20:48 < jordyd> I wish I had a pizza key...
20:48 < jordyd> Right where my Windows key is.
20:48 < jordyd> I have no use for it, after all.
20:49 < clip9> How do I remove an element from a map?
20:49 < KragenSitaker> nil
20:49 < KragenSitaker> m[k] = nil‚false
20:49 < clip9> assign nil to the element?
20:49 < clip9> oh..  thanks
20:49 < KragenSitaker> it's actually the false that does it I think
20:49 < clip9> ok.
20:49 < KragenSitaker> I imagine you could say m[k] = "something", false
20:49 < KragenSitaker> and have the same effect
20:49 < exch> yarr
20:49 < KragenSitaker> it's kind of a goofy interface!
20:51 < clip9> They should write it on the language spec doc :P
http://golang.org/doc/go_spec.html#Map_types
20:51 < KragenSitaker> it's like the Go equivalent of C's type declaration
syntax.
20:51 < KragenSitaker> yeah
20:55 < jordyd> This makefile: http://paste.ubuntu.com/324792/ is spitting
out this: make: *** No rule to make target `gtk.cgo1.go', needed by `_go_.8'.
Stop.
20:55 < jordyd> Any idea what's going on?
20:55 -!- skyfive [n=skyfive@adsl-69-107-2-253.dsl.pltn13.pacbell.net] has joined
#go-nuts
20:56 < jordyd> Ah, nevermind.  I'm just stupid.
20:57 < jordyd> I changed "gtk.go" to "gtkmain.go" and forgot to make the
change in the Makefile.
20:57 -!- Killerkid [n=l1am9111@host86-144-11-187.range86-144.btcentralplus.com]
has quit [Read error: 110 (Connection timed out)]
20:58 -!- dRiZzle [n=dRizzle@0x4dd7f7cd.adsl.cybercity.dk] has quit ["Leaving"]
20:58 -!- Killerkid [n=l1am9111@host81-154-218-114.range81-154.btcentralplus.com]
has joined #go-nuts
20:58 -!- Tuller [n=Tuller@pool-72-84-246-12.rcmdva.fios.verizon.net] has quit
["apparently i'm sleepy?"]
21:02 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has quit [Read
error: 145 (Connection timed out)]
21:05 -!- Cyanure [n=cyanure@AMontsouris-151-1-26-237.w82-123.abo.wanadoo.fr] has
quit ["Quitte"]
21:06 -!- p4p4 [n=P4p4@24.106.113.82.net.de.o2.com] has quit [Client Quit]
21:08 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has joined
#go-nuts
21:09 < sladegen> go stupid!
21:09 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has quit [Read
error: 104 (Connection reset by peer)]
21:11 -!- prefrontal [n=prefront@128.138.223.21] has quit ["Leaving"]
21:12 -!- aanderse
[n=aanderse@CPE001b11cc67d3-CM0019475d7f5e.cpe.net.cable.rogers.com] has quit
[Read error: 113 (No route to host)]
21:13 -!- david_ricardo [n=adam_smi@31.81-167-16.customer.lyse.net] has joined
#go-nuts
21:15 -!- hipe [n=hipe@pool-74-108-181-155.nycmny.east.verizon.net] has quit [Read
error: 104 (Connection reset by peer)]
21:15 -!- hipe [n=hipe@pool-74-108-181-155.nycmny.east.verizon.net] has joined
#go-nuts
21:18 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has joined
#go-nuts
21:19 -!- _skyfive [n=skyfive@adsl-69-107-0-172.dsl.pltn13.pacbell.net] has quit
[Read error: 110 (Connection timed out)]
21:20 -!- mkanat [n=mkanat@c-67-188-1-39.hsd1.ca.comcast.net] has joined #go-nuts
21:21 -!- aarapov [n=aarapov@r11mq202.net.upc.cz] has joined #go-nuts
21:23 -!- lmoura [n=lauromou@200.184.118.130] has quit [Remote closed the
connection]
21:23 -!- mbt [n=mbt@173-15-213-186-BusName-Atlanta.hfc.comcastbusiness.net] has
quit ["Leaving"]
21:26 -!- loureiro [n=loureiro@201.8.189.174] has quit [Read error: 131
(Connection reset by peer)]
21:27 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has quit
[Read error: 145 (Connection timed out)]
21:29 -!- zerofluid [n=zeroflui@ip72-208-216-68.ph.ph.cox.net] has quit
["Leaving"]
21:29 -!- raichoo_ [n=raichoo@e181229131.adsl.alicedsl.de] has joined #go-nuts
21:30 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has joined
#go-nuts
21:31 -!- zhaozhou [n=zhaozhou@linfast76.bitnet.nu] has joined #go-nuts
21:34 -!- IvatarHo1e [n=graham@tu055.demon.co.uk] has quit [Read error: 110
(Connection timed out)]
21:34 -!- alexsuraci [n=alex@pool-71-188-133-67.aubnin.fios.verizon.net] has quit
["Lost terminal"]
21:35 -!- tcpip4000 [n=fulano@dsl-emcali-190.99.193.179.emcali.net.co] has joined
#go-nuts
21:35 -!- tcpip4000 [n=fulano@dsl-emcali-190.99.193.179.emcali.net.co] has left
#go-nuts []
21:35 -!- raichoo [n=raichoo@g224173235.adsl.alicedsl.de] has quit [Read error:
145 (Connection timed out)]
21:36 -!- ryniek [n=Adrian-A@host-89-231-98-162.warszawa.mm.pl] has left #go-nuts
[]
21:36 -!- aaront [n=aaront@unaffiliated/aaront] has quit ["And that's all he
wrote..."]
21:38 -!- itrekkie [n=itrekkie@ip98-165-246-56.ph.ph.cox.net] has joined #go-nuts
21:39 -!- BleSS [n=quassel@87.223.179.242] has left #go-nuts
["http://quassel-irc.org - Chat comfortably.  Anywhere."]
21:40 -!- arcela_fan [n=chatzill@189-72-154-82.bsace702.dsl.brasiltelecom.net.br]
has quit ["ChatZilla 0.9.85 [Firefox 3.5.5/20091102152451]"]
21:41 -!- ehird [n=ehird@91.105.112.3] has joined #go-nuts
21:42 -!- Arkit [n=lulzy@122.169.137.37] has quit []
21:42 -!- david_ricardo [n=adam_smi@31.81-167-16.customer.lyse.net] has quit [Read
error: 110 (Connection timed out)]
21:45 -!- raichoo [n=raichoo@e181229131.adsl.alicedsl.de] has quit [Read error:
104 (Connection reset by peer)]
21:46 -!- kmc [n=keegan@173-100-16-149.pools.spcsdns.net] has quit ["Leaving"]
21:46 -!- raichoo [n=raichoo@e181229131.adsl.alicedsl.de] has joined #go-nuts
21:47 -!- ssmall [n=stuart@utdpat242007.utdallas.edu] has quit [Read error: 145
(Connection timed out)]
21:49 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has quit [Read
error: 131 (Connection reset by peer)]
21:49 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has joined
#go-nuts
21:51 -!- Zaba [n=zaba@ip102.148.adsl.wplus.ru] has joined #go-nuts
21:52 -!- scarabx [n=scarabx@c-24-147-239-120.hsd1.ma.comcast.net] has quit
["Leaving"]
21:54 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has quit [Read
error: 131 (Connection reset by peer)]
21:54 -!- clearscreen [n=clearscr@62.140.137.121] has quit [Remote closed the
connection]
21:55 -!- bquinn [n=bquinn@office.velleman.com] has quit []
21:56 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has joined
#go-nuts
21:57 -!- clearscreen [n=clearscr@62.140.137.121] has joined #go-nuts
22:00 -!- david_ricardo [n=adam_smi@31.81-167-16.customer.lyse.net] has joined
#go-nuts
22:00 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has quit [Read
error: 131 (Connection reset by peer)]
22:02 -!- Kashia [n=Kashia@92.200.87.30] has quit [Read error: 145 (Connection
timed out)]
22:04 -!- gnomon
[n=gnomon@CPE0022158a8221-CM000f9f776f96.cpe.net.cable.rogers.com] has joined
#go-nuts
22:04 -!- Zaba_ [n=zaba@about/goats/billygoat/zaba] has quit [Read error: 110
(Connection timed out)]
22:04 -!- ehird [n=ehird@91.105.112.3] has quit []
22:04 -!- ehird [n=ehird@91.105.112.3] has joined #go-nuts
22:05 < jordyd> Is there a way with cgo to convert Go function pointers to C
function pointers?
22:06 -!- ajhager [n=ajhager@64-184-75-239.ccrtc.com] has quit [Read error: 110
(Connection timed out)]
22:06 < scandal> No. Callbacks into Go not supported yet.
22:07 -!- westymatt_ [n=westymat@173-17-254-31.client.mchsi.com] has joined
#go-nuts
22:08 < westymatt_> I've got an issue where I can import a custom package
successfully, but can't call a function in it.  Any ideas?
http://github.com/westymatt/gocache
22:08 < Jaywalker> Is there any extern C in go yet?
22:09 < scandal> Jaywalker: if you mean calling C code from Go, then yes.
22:09 < westymatt_> Jaywalker: I don't believe so
22:10 < Jaywalker> scandal, no..  I mean...  like the main function of an OS
needs to be extern C'd for easy calling by the loader.s
22:11 < scandal> westymatt_: can you be more specific about the problem?
22:11 -!- ForLoop` [i=forloop@87-150-128.netrun.cytanet.com.cy] has quit [Read
error: 104 (Connection reset by peer)]
22:11 < scandal> Jaywalker: oh, i don't know but I doubt it.
22:11 -!- ForLoop [i=forloop@87-150-128.netrun.cytanet.com.cy] has joined #go-nuts
22:11 < westymatt_> I think it might be a linking issue
22:11 < Jaywalker> westymatt, it would be..  i guess i have to be crafty
with my ld config
22:11 < westymatt_> scandal:8g gocache.go
22:11 < westymatt_> gocache.go:17: cannot refer to config.load_configuration
22:11 < westymatt_> gocache.go:17: undefined: config.load_configuration
22:11 < Jaywalker> if I can even get go to compile :(
22:12 < westymatt_> Jaywalker: yeah that might be a challenge
22:12 < Jaywalker> Ah well
22:12 < Jaywalker> the bigger challenge will getting a handle on videoram
22:12 < Jaywalker> unsigned char *videoram = (unsigned char *) 0xb8000;
videoram[0] = 65;
22:13 < westymatt_> oh man what are you trying to do?
22:13 < scandal> westymatt_: you need -I.  in your GC calls i believe
22:13 < Jaywalker> very confused about how to do that without pointer
arithmetic
22:13 < Jaywalker> westymatt_, write an OS in Go
22:13 < Jaywalker> :)
22:13 < scandal> Jaywalker: I believe you'er supposed to use the unsafe
package but I have not played with it.
22:14 < westymatt_> Jaywalker: really that's quite interesting, I'm trying
to do a python extension
22:14 < Jaywalker> scandal, unsafe package eh?
22:14 < scandal> westymatt_: oh wait i know wat the problem is.  you need to
make .a files
22:14 < scandal> gopack grc <package>.a <package>.o
22:15 < scandal> then you can import it
22:15 -!- drusepth` [n=drusepth@174.32.154.79] has joined #go-nuts
22:15 < westymatt_> see i was doing that before, but it wasn't working, so i
tried some other dudes makefile
22:15 < jordyd> ls
22:15 < scandal> Jaywalker: it defines an unsafe.Pointer type
22:15 < westymatt_> see the weird thing is it works fine for storage
22:15 < jordyd> Whoops.  Wrong window.
22:15 < westymatt_> my other package
22:15 -!- scarabx [n=scarabx@c-24-147-239-120.hsd1.ma.comcast.net] has joined
#go-nuts
22:15 < randomiser_> Is there a link to any cgo documentation or anything,
I've seen a couple of modules import "unsafe" and "C", but can't find anything for
"C"
22:15 < Jaywalker> Ahhh..  that would do it I bet.  :)
22:15 < scandal> i believe you either need to specify all the .8 files on
one line, or make a .a
22:16 < scandal> randomiser_: misc/cgo/gmp is the only example
22:16 < Jaywalker> Anyone had this error when compiling?
/home/jwilliams/gccgo/objdir/x86_64-unknown-linux-gnu/libstdc++-v3/include/bits/stl_algobase.h:1152:32:
fatal error: parallel/algobase.h: No such file or directory
22:16 -!- blackmagik [n=blackmag@unaffiliated/blackmagik] has quit ["Leaving"]
22:16 -!- luca_work_ [n=luca@host35.190-136-120.telecom.net.ar] has quit [Read
error: 54 (Connection reset by peer)]
22:17 -!- qeed [n=qeed@adsl-85-35-27.mco.bellsouth.net] has joined #go-nuts
22:18 -!- kristian_ [n=kristian@246.84-48-163.nextgentel.com] has joined #go-nuts
22:18 -!- gnomon_
[n=gnomon@CPE0022158a8221-CM000f9f776f96.cpe.net.cable.rogers.com] has quit [Read
error: 110 (Connection timed out)]
22:18 < scandal> randomiser_: the C package is not a real package.  it is
generated by the cgo tool on the fly based on the functions used.
22:19 < westymatt_> scandal: mind taking a look at this makefile?
22:19 < westymatt_> scandal: just pushed it
22:19 < westymatt_> same issue though
22:19 < randomiser_> scandal, ah ok, explaims why I can't 'finf' it
22:19 < randomiser_> find*
22:19 < ehird> uriel: is goblin open for submissions, btw?  or is it not
ready yet
22:21 < rbancroft> Jaywalker: do you have algobase.h?  what gcc version are
you using?
22:21 < scandal> westymatt_: OH. so symbols you want to export need to have
the first letter uppercase
22:22 < scandal> if it starts with a lowercase, they are package private
22:22 < westymatt_> scandal: OHH thank you, i would have never figured that
out
22:22 < Jaywalker> rbancroft, I don't know where it should be..  and gcc
--version reports 4.4.1
22:22 -!- wobsite [n=wobsite_@68-189-250-56.static.oxfr.ma.charter.com] has joined
#go-nuts
22:22 < Jaywalker> but I have gcc 3 installed
22:22 < Jaywalker> should I set that as default before compiling go?
22:22 < westymatt_> scandal: i guess i should read more
22:22 -!- drusepth [n=drusepth@174.32.154.79] has quit [Read error: 145
(Connection timed out)]
22:23 < rbancroft> Jaywalker: hmm, gcc 4.4 has it, gcc 3 doesn't.  just make
sure you are using gcc 4.4
22:23 -!- Kashia [n=Kashia@port-92-200-117-76.dynamic.qsc.de] has joined #go-nuts
22:23 < uriel> ehird: yes
22:23 < Jaywalker> rbancroft, It's set as default..
22:23 < Jaywalker> so I should be using it.
22:23 < ehird> uriel: any tools already written so ic an avoid them?
22:23 < ehird> *i can
22:24 < uriel> ehird: I didn't do any yet ;P I think somebody else was
working on tail, pick any you like (I'm not really awake at the moment, going back
to sleep any second , btw :)
22:25 < ehird> uriel: Maybe I'll do cat and add a -v flag.  *runs*
22:25 < uriel> hah!
22:25 < ehird> (That is, -v: remove the user's home directory, then proceed
as normal.)
22:26 -!- decriptor [n=decripto@174-23-163-211.slkc.qwest.net] has joined #go-nuts
22:26 < uriel> ehird: I personally plan to add a -v flag to cat, but I can't
tell you what it will do because this is a 'family friendly' channel ;P
22:26 < jordyd> Is there anywhere where I can see sample Makefiles (for
non-packages).
22:26 < ehird> uriel: -v for vulgar
22:27 -!- cpr420 [n=cpr420@67.165.199.143] has joined #go-nuts
22:27 -!- alexf [n=alexf@adsl-99-39-187-170.dsl.klmzmi.sbcglobal.net] has joined
#go-nuts
22:28 < ehird> uriel: any preferred format for the tools?  single .go file,
.tar of *.go + Makefile, ...?  (license?)
22:30 -!- itrekkie [n=itrekkie@ip98-165-246-56.ph.ph.cox.net] has quit []
22:31 -!- jgoebel [n=jgoebel@96-28-100-3.dhcp.insightbb.com] has quit [Connection
timed out]
22:32 < uriel> ehird: single .go file if it is simple enough (which in most
cases it should be, unless perhaps if you are doing awk or something like that)
22:32 < ehird> yar
22:32 < uriel> otherwise just have a dir with a Makefil
22:32 < ehird> using the $GOROOT/src make files presumably
22:33 -!- shuaib [n=shuaib@unaffiliated/shuaib] has quit ["Ex-Chat"]
22:33 < uriel> yea, that should be fine, I wouldn't assume much about the
build system, I'm hopping that something will come up to replace the makefiles
eventually ;)
22:33 < rbancroft> Jaywalker: so, what does your gcc -v show you about your
gxx-include path
22:33 < uriel> (otherwise, we could do a Go implementation of mk, and use
that, but that is long term)
22:33 < rbancroft> Jaywalker: and, does that location include the parallel
directory with algobase.h?
22:34 -!- kristian_ [n=kristian@246.84-48-163.nextgentel.com] has quit [Read
error: 148 (No route to host)]
22:34 < Jaywalker> --with-gxx-include-dir=/usr/include/c++/4.4
22:34 < Jaywalker> and...
22:34 < Jaywalker> Yes.
22:35 < ehird> uriel: ok.
22:35 < ehird> uriel: i won't bother with licenses until these are even
vaguely useful
22:36 -!- Kniht [n=kniht@c-68-58-17-177.hsd1.in.comcast.net] has joined #go-nuts
22:36 < scandal> jordyd: here's a quick makefile example.  you can type
"make foo" and it will compile from foo.go
22:36 < scandal> http://codepad.org/6ycNdMpM
22:36 < uriel> license should be Public Domain / BSD/MIT/ISC
22:37 < ehird> /pony
22:37 < jordyd> Cool.  Thanks.
22:37 -!- voluspa [n=voluspa@134.84.102.227] has quit [Remote closed the
connection]
22:37 -!- dwery [n=dwery@nslu2-linux/dwery] has quit [Read error: 110 (Connection
timed out)]
22:38 * ehird does mkdir(1); can't get much simpler than that
22:38 < Jaywalker> rbancroft, should i pass CC=gcc-4.4 to configure?
22:40 -!- mejja [n=user@c-49b6e555.023-82-73746f38.cust.bredbandsbolaget.se] has
joined #go-nuts
22:40 < rbancroft> Jaywalker: hmm, possibly.  do you know what stage it is
failing on?
22:40 -!- amuck [n=amuck@h140.154.190.173.ip.windstream.net] has quit []
22:40 -!- alexf [n=alexf@adsl-99-39-187-170.dsl.klmzmi.sbcglobal.net] has quit
[Read error: 60 (Operation timed out)]
22:41 < Jaywalker> 3
22:43 < rbancroft> Jaywalker: the other thing is, do you realy want to build
c++ on this branch?
22:43 < rbancroft> Jaywalker: what happens if you pass in
--enabled-languages=c,go to configure?
22:43 < Jaywalker> not perse...  I just assumed it was required for gccgo
22:43 -!- raichoo [n=raichoo@e181229131.adsl.alicedsl.de] has quit
["http://raichoo.blogspot.com"]
22:44 < Jaywalker> configure goes through just fine...  i'm trying make
without c++ right now
22:46 -!- asmo_ [n=asmo@85.224.197.246] has quit [Remote closed the connection]
22:47 -!- amacleod [n=amacleod@c-24-34-33-96.hsd1.ma.comcast.net] has joined
#go-nuts
22:47 -!- Daminvar [n=Daminvar@cpe-67-241-129-149.buffalo.res.rr.com] has quit
[Read error: 110 (Connection timed out)]
22:51 -!- AlvaroGP [i=Alvaro@89.128.155.68] has quit []
22:51 -!- Gracenotes [n=person@wikipedia/Gracenotes] has quit ["Leaving"]
22:53 -!- geocalc [n=geocalc@lns-bzn-35-82-250-225-172.adsl.proxad.net] has quit
[Remote closed the connection]
22:54 -!- Misto [n=Misto@ppp-137-89.32-151.iol.it] has quit []
22:55 < ehird> uriel: if you're still awake — should tools support the umask
nonsense or just create files and directories with a sane initial permission?
22:56 -!- Nordmoen [n=quassel@ti0005a380-dhcp0188.bb.online.no] has quit [Read
error: 113 (No route to host)]
22:57 < Jaywalker> Yay!  thanks rbancroft :D
22:57 < Jaywalker> it worked :)
22:57 < westymatt_> Is there a good example of reading text from a file in ?
22:58 -!- jaska^ [i=jaska@CDLXXI.voas.sl-laajakaista.fi] has left #go-nuts []
22:58 < scandal> westymatt_: you can use os.File and io.ReadAll (or its
friends)
22:59 < westymatt_> ahh thanks
22:59 < rbancroft> Jaywalker: cool :) not sure what's going on with the c++,
but anyways
22:59 < XniX23> how can i check if a key is pressed?
22:59 -!- alexsuraci [n=alex@pool-71-188-133-67.aubnin.fios.verizon.net] has
joined #go-nuts
23:00 < Jaywalker> don't need c++ to make an OS :)
23:00 * uriel needs to learn to shut up, specially when not fully awake
23:00 < uriel> go trolled in the mailing list, and said something stupid :(
23:01 < uriel> ehird: I'd ignore perms for now, but that aside, probably
matching plan9's semantics is the way to go
23:01 < westymatt_> scandal: ok that was way to easy
23:01 < ehird> uriel: looking at plan9port's mkdir it seems to just make
things as 777
23:02 < ehird> uriel: which isn't terribly reasonable on most unices
23:02 < ehird> atm mine just makes them as 755
23:03 -!- Odemia [n=Odemia-D@207.47.143.154] has quit [Read error: 110 (Connection
timed out)]
23:04 < ehird> "creating mkdir: mkdir mkdir: file exists" ;; hmm, os.Error
stringifying with the command invocation is annoying and confusing
23:05 < ehird> (and there seems to be no way around it apart from stripping
it off)
23:07 -!- shoafb [n=The_Doct@cpe-98-150-247-183.hawaii.res.rr.com] has quit
["Leaving..."]
23:08 -!- snearch_ [n=olaf@g225048117.adsl.alicedsl.de] has quit ["Ex-Chat"]
23:08 -!- alexf [n=alexf@adsl-99-39-187-170.dsl.klmzmi.sbcglobal.net] has joined
#go-nuts
23:10 -!- wobsite [n=wobsite_@68-189-250-56.static.oxfr.ma.charter.com] has quit
["Leaving"]
23:12 -!- Anders__ [n=Anders@c83-253-2-206.bredband.comhem.se] has quit ["Lämnar"]
23:13 -!- rndbot [n=bot@wikipedia/Gracenotes] has quit [Remote closed the
connection]
23:14 -!- blasdelf_ [n=fred@c-76-104-181-225.hsd1.wa.comcast.net] has quit
["leaving"]
23:17 -!- nacmartin [n=chatzill@77.224.92.149] has joined #go-nuts
23:20 < XniX23> anyone knows how can i check if spacebar was pressed?
23:20 < dagle2> XniX23: In the terminal?
23:20 -!- lenst [n=user@81-237-244-185-no52.tbcn.telia.com] has quit [Remote
closed the connection]
23:21 < XniX23> well...  im using allegro wrapper but i dont know how to do
that
23:22 -!- Will_D [n=will@c-71-231-59-135.hsd1.wa.comcast.net] has quit [Remote
closed the connection]
23:22 < ehird> syscall.Uname and syscall.Utsname are in the golang.org docs,
but undefined on darwin/amd64.
23:22 < ehird> just unimplemented as of yet?
23:22 -!- kmc [n=keegan@206-71-236-70.c3-0.nyw-ubr5.nyr-nyw.ny.cable.rcn.com] has
joined #go-nuts
23:23 -!- double [n=double@host229-234-dynamic.52-79-r.retail.telecomitalia.it]
has quit [Remote closed the connection]
23:26 < halfdan_> uname - get name and information about current kernel
23:27 < halfdan_> wait
23:27 < halfdan_> forget that
23:28 < ehird> halfdan: Why thank you, I had no idea; that's why I was
calling it :-P
23:29 -!- _skyfive [n=skyfive@adsl-69-106-240-155.dsl.pltn13.pacbell.net] has
joined #go-nuts
23:29 -!- nacmartin [n=chatzill@77.224.92.149] has quit [Remote closed the
connection]
23:30 < dagle2> XniX23: The wrapper is not a wrapper for the whole lib.
Seems like that part have not been done.
23:31 < Amaranth> allegro wrapper?
23:31 < XniX23> dagle2: oh i see
23:31 < XniX23> yes Amaranth
23:32 < Amaranth> That was more "what is that?" and not "you're using that?"
23:32 < dagle2> XniX23: If you are talking about the wrapper from lasarux?
23:32 < dagle2> Amaranth: A lib for making games.
23:33 < ehird> Allegro is just a graphical, sound and input lib to be
precise.  Game not required.  :-P
23:33 -!- drusepth` [n=drusepth@174.32.154.79] has quit [Read error: 104
(Connection reset by peer)]
23:33 -!- _skyfive_ [n=skyfive@adsl-69-106-232-227.dsl.pltn13.pacbell.net] has
joined #go-nuts
23:35 < XniX23> dagle2: yes, his wrapper
23:39 -!- Fraeon [n=kzer-za@e212-246-65-153.elisa-laajakaista.fi] has quit []
23:39 < alexsuraci> switched gopaste.org over to the new controller/route
mechanism
23:39 < uriel> alexsuraci: cool!
23:40 -!- Fraeon [n=kzer-za@e212-246-65-153.elisa-laajakaista.fi] has joined
#go-nuts
23:40 * uriel loves gopaste.org
23:40 -!- jinho [n=jinho@user-387gl9p.cable.mindspring.com] has joined #go-nuts
23:41 < jinho> sorry if this topic has already been discussed ad nauseum,
but will there be a windows port of the language?
23:42 < XniX23> alexsuraci: nice job there
23:42 < ehird> jinho: If someone makes them.
23:42 < ehird> alexsuraci: could you remove the font changes you did?  the
font is now tiny :(
23:42 < ehird> i literally can't read it without increasing the text size
23:42 < alexsuraci> ehird: yea already working on it
23:43 < Nanoo> A dump question to this paste http://codepad.org/m9ElQxsR.
23:43 < Nanoo> Somehow the input() function isn't called because I can't see
"LAWLLD".  Am I doing it wrong?
23:43 -!- _skyfive [n=skyfive@adsl-69-106-240-155.dsl.pltn13.pacbell.net] has quit
[Read error: 60 (Operation timed out)]
23:43 < ehird> alexsuraci: "i'm working on that crucial one-line deletion
ticket you filed!"
23:43 -!- aanderse
[n=aanderse@CPE001b11cc67d3-CM0019475d7f5e.cpe.net.cable.rogers.com] has joined
#go-nuts
23:43 < Nanoo> gopaste fails somehow on syntax highlighting btw
23:43 < alexsuraci> Nanoo: on invalid go code, yes.
23:44 < Nanoo> tell me what's wrong with my code then?
23:44 < Nanoo> it compiles
23:44 < alexsuraci> link?
23:44 < Nanoo> http://codepad.org/m9ElQxsR
23:45 < alexsuraci> Nanoo: it works here
23:45 < alexsuraci> http://gopaste.org/view/H0gV4
23:45 < Nanoo> strange
23:46 < Nanoo> it doesn't work if you paste it as private
23:46 -!- elmar_ [n=elmar@188.107.210.137] has quit ["Leaving"]
23:46 -!- Fraeon [n=kzer-za@e212-246-65-153.elisa-laajakaista.fi] has quit []
23:47 < alexsuraci> oh, woops
23:47 < alexsuraci> slight errar in the url matching regexp
23:47 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has quit [Read
error: 145 (Connection timed out)]
23:47 < alexsuraci> ever so slight :P fixing
23:47 -!- jinho [n=jinho@user-387gl9p.cable.mindspring.com] has quit ["Leaving"]
23:48 -!- ericmoritz\0 [n=ericmori@c-76-123-248-214.hsd1.tn.comcast.net] has quit
[Read error: 110 (Connection timed out)]
23:48 -!- adam_smith [n=adam_smi@31.81-167-16.customer.lyse.net] has joined
#go-nuts
23:49 < alexsuraci> Nanoo: fixed
23:49 -!- scarabx [n=scarabx@c-24-147-239-120.hsd1.ma.comcast.net] has quit ["This
computer has gone to sleep"]
23:49 -!- Raziel2p [n=Raziel2p@ti0032a380-dhcp0316.bb.online.no] has quit
[Success]
23:50 -!- dmeikle [n=dmeikle@apache/committer/dmeikle] has joined #go-nuts
23:50 -!- Raziel2p [n=Raziel2p@ti0032a380-dhcp0316.bb.online.no] has joined
#go-nuts
23:51 -!- jA_cOp [n=yakobu@ti0043a380-3093.bb.online.no] has quit ["Leaving"]
23:51 -!- ericmoritz\0 [n=ericmori@c-76-123-248-214.hsd1.tn.comcast.net] has
joined #go-nuts
23:52 -!- skyfive [n=skyfive@adsl-69-107-2-253.dsl.pltn13.pacbell.net] has quit
[Read error: 110 (Connection timed out)]
23:53 -!- Fraeon [n=kzer-za@e212-246-65-153.elisa-laajakaista.fi] has joined
#go-nuts
23:56 -!- aarapov [n=aarapov@r11mq202.net.upc.cz] has quit ["Leaving."]
23:56 -!- lux` [n=lux@151.54.240.177] has quit [Read error: 110 (Connection timed
out)]
23:58 -!- pace_t_zulu [n=pacetzul@unaffiliated/pacetzulu/x-585030] has quit []
23:59 -!- lux` [n=lux@151.54.242.83] has joined #go-nuts
--- Log closed Sun Nov 22 00:00:29 2009