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

--- Log opened Sun Aug 21 00:00:20 2011
00:00 -!- Bigbear1 [~Cody@S010600222dcddd0f.cg.shawcable.net] has joined #go-nuts
00:02 -!- Fish [~Fish@exo3753.pck.nerim.net] has quit [Ping timeout: 240 seconds]
00:10 -!- Bigbear1 [~Cody@S010600222dcddd0f.cg.shawcable.net] has quit [Quit:
Leaving.]
00:10 -!- Bigbear1 [~Cody@S010600222dcddd0f.cg.shawcable.net] has joined #go-nuts
00:12 -!- robteix_ [~robteix@host254.190-225-208.telecom.net.ar] has joined
#go-nuts
00:21 -!- avelino [~avelino@unaffiliated/avelino] has quit [Remote host closed the
connection]
00:22 -!- avelino [~avelino@unaffiliated/avelino] has joined #go-nuts
00:24 -!- jmil [~jmil@c-68-81-252-40.hsd1.pa.comcast.net] has joined #go-nuts
00:26 -!- avelino [~avelino@unaffiliated/avelino] has quit [Ping timeout: 240
seconds]
00:32 -!- Slant [~scott@124-168-200-235.dyn.iinet.net.au] has joined #go-nuts
00:35 -!- yourstruly [~yours@infocalypse-net.info] has joined #go-nuts
00:36 -!- xash [~xash@d025054.adsl.hansenet.de] has joined #go-nuts
00:37 -!- elephants [~elephants@173-230-160-81.cable.teksavvy.com] has joined
#go-nuts
00:47 -!- rcrowley [~rcrowley@c-71-202-44-233.hsd1.ca.comcast.net] has quit [Quit:
Computer has gone to sleep.]
00:50 -!- exch [~blbl@ip34-181-209-87.adsl2.static.versatel.nl] has quit [Ping
timeout: 250 seconds]
00:51 -!- exch [~blbl@ip34-181-209-87.adsl2.static.versatel.nl] has joined
#go-nuts
01:02 -!- robteix_ [~robteix@host254.190-225-208.telecom.net.ar] has quit [Ping
timeout: 240 seconds]
01:05 -!- Bigbear1 [~Cody@S010600222dcddd0f.cg.shawcable.net] has quit [Ping
timeout: 240 seconds]
01:09 -!- dRbiG [p@bofh.edu.pl] has quit [Read error: Connection reset by peer]
01:23 -!- dRbiG [p@bofh.edu.pl] has joined #go-nuts
01:24 -!- ccc1 [~Adium@140.109.127.21] has joined #go-nuts
01:25 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has quit [Read error:
Connection reset by peer]
01:25 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has joined #go-nuts
01:29 -!- Slant [~scott@124-168-200-235.dyn.iinet.net.au] has quit [Quit: Slant]
01:32 -!- xash [~xash@d025054.adsl.hansenet.de] has quit [Quit: Lost terminal]
01:57 -!- ccc1 [~Adium@140.109.127.21] has quit [Read error: Connection reset by
peer]
01:57 -!- ccc1 [~Adium@140.109.127.21] has joined #go-nuts
01:59 -!- Fish [~Fish@exo3753.pck.nerim.net] has joined #go-nuts
02:17 -!- ccc_ [~macroron@c-76-26-54-186.hsd1.fl.comcast.net] has joined #go-nuts
02:21 -!- meling [~meling@134.81-167-41.customer.lyse.net] has quit [Ping timeout:
264 seconds]
02:26 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has quit [Remote host
closed the connection]
02:34 -!- ccc1 [~Adium@140.109.127.21] has quit [Quit: Leaving.]
02:42 -!- franciscosouza_ [~francisco@187.105.21.97] has joined #go-nuts
02:43 -!- franciscosouza [~francisco@187.105.21.97] has quit [Read error:
Connection reset by peer]
02:51 -!- mindphaze [~void@2607:f358:1:fed5:22:0:bd62:7fa7] has quit [Remote host
closed the connection]
02:52 -!- nicka1 [~nicka@blk-222-42-163.eastlink.ca] has quit [Quit: Leaving.]
02:52 -!- nicka1 [~nicka@blk-222-42-163.eastlink.ca] has joined #go-nuts
02:52 -!- jmil [~jmil@c-68-81-252-40.hsd1.pa.comcast.net] has quit [Quit: jmil]
02:53 -!- nicka1 [~nicka@blk-222-42-163.eastlink.ca] has quit [Client Quit]
02:55 -!- wallerdev [~wallerdev@c-68-60-43-43.hsd1.mi.comcast.net] has joined
#go-nuts
02:56 -!- zanget [~zanget@205.185.124.164] has quit [Quit: ZNC -
http://znc.sourceforge.net]
02:57 -!- zanget [~zanget@hurf.durf.me] has joined #go-nuts
03:20 -!- mindphaze [~void@2607:f358:1:fed5:22:0:bd62:7fa7] has joined #go-nuts
03:20 -!- elephants [~elephants@173-230-160-81.cable.teksavvy.com] has quit
[Remote host closed the connection]
03:34 -!- dfr|mac_ [~dfr|work@ool-18baf7e7.dyn.optonline.net] has joined #go-nuts
03:35 -!- wallerdev [~wallerdev@c-68-60-43-43.hsd1.mi.comcast.net] has quit [Quit:
wallerdev]
03:37 -!- dfr|mac [~dfr|work@ool-18baf7e7.dyn.optonline.net] has quit [Ping
timeout: 252 seconds]
03:44 -!- ccc_ [~macroron@c-76-26-54-186.hsd1.fl.comcast.net] has quit [Quit:
leaving]
03:55 -!- JakeyChan [~JakeyChan@118.132.214.248] has joined #go-nuts
04:04 -!- ako [~nya@fuld-590c6281.pool.mediaWays.net] has quit [Ping timeout: 240
seconds]
04:09 -!- avelino [~avelino@unaffiliated/avelino] has joined #go-nuts
04:24 -!- qeed [~qeed@adsl-98-85-45-149.mco.bellsouth.net] has quit [Quit:
Leaving]
04:33 -!- GutenLinux [~chatzilla@125.117.92.154] has joined #go-nuts
04:39 -!- Bigbear1 [~Cody@S010600222dcddd0f.cg.shawcable.net] has joined #go-nuts
04:39 -!- GutenLinux [~chatzilla@125.117.92.154] has quit [Quit: ChatZilla 0.9.87
[Firefox 6.0/20110814092938]]
04:46 -!- kergoth_ [~kergoth@ip24-251-173-232.ph.ph.cox.net] has quit [Quit:
Computer has gone to sleep.]
04:50 -!- ccc1 [~Adium@140.109.127.21] has joined #go-nuts
04:55 -!- htoothrot [~mux@66-169-185-121.dhcp.ftwo.tx.charter.com] has quit [Ping
timeout: 260 seconds]
05:00 -!- htoothrot [~mux@66-169-185-121.dhcp.ftwo.tx.charter.com] has joined
#go-nuts
05:07 -!- niemeyer [~niemeyer@200-102-220-163.pltce701.dsl.brasiltelecom.net.br]
has quit [Ping timeout: 240 seconds]
05:20 -!- ccc12 [~Adium@140.109.127.21] has joined #go-nuts
05:20 -!- ccc1 [~Adium@140.109.127.21] has quit [Read error: Connection reset by
peer]
05:29 -!- ccc1 [~Adium@2001:c08:780:0:1293:e9ff:fe0b:6ece] has joined #go-nuts
05:29 -!- ccc12 [~Adium@140.109.127.21] has quit [Read error: Connection reset by
peer]
05:37 -!- Argue [~Argue@112.201.172.5] has joined #go-nuts
05:38 -!- dfr|mac_ [~dfr|work@ool-18baf7e7.dyn.optonline.net] has quit [Remote
host closed the connection]
05:45 -!- rcrowley [~rcrowley@c-71-202-44-233.hsd1.ca.comcast.net] has joined
#go-nuts
05:46 -!- Bigbear1 [~Cody@S010600222dcddd0f.cg.shawcable.net] has quit [Read
error: Connection reset by peer]
05:52 -!- rcrowley [~rcrowley@c-71-202-44-233.hsd1.ca.comcast.net] has quit [Quit:
Computer has gone to sleep.]
06:11 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has joined #go-nuts
06:21 -!- meling [~meling@134.81-167-41.customer.lyse.net] has joined #go-nuts
06:29 -!- moraes [~moraes@189.103.177.124] has joined #go-nuts
06:37 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
06:45 -!- xeon [~chatzilla@101.44.214.191] has joined #go-nuts
06:45 -!- tvw [~tv@e176001035.adsl.alicedsl.de] has joined #go-nuts
07:01 -!- jlilly [justinlill@70.32.34.100] has quit [Quit: Hosted by rdlBNC
(Server 2 - United States of America)]
07:03 -!- jlilly [~justinlil@70.32.34.100] has joined #go-nuts
07:04 -!- ccc1 [~Adium@2001:c08:780:0:1293:e9ff:fe0b:6ece] has quit [Quit:
Leaving.]
07:12 -!- photron [~photron@port-92-201-74-200.dynamic.qsc.de] has joined #go-nuts
07:21 -!- smw [~stephen@unaffiliated/smw] has quit [Ping timeout: 246 seconds]
07:23 -!- ccc1 [~Adium@2001:c08:780:0:1293:e9ff:fe0b:6ece] has joined #go-nuts
07:44 -!- xeon_ [~chatzilla@101.44.214.191] has joined #go-nuts
07:44 -!- awidegreen [~quassel@h-170-226.a212.priv.bahnhof.se] has joined #go-nuts
07:44 -!- JakeyChan [~JakeyChan@118.132.214.248] has quit [Ping timeout: 264
seconds]
07:44 -!- xeon [~chatzilla@101.44.214.191] has quit [Ping timeout: 246 seconds]
07:46 -!- ronnyy [~quassel@p4FF1C5EA.dip0.t-ipconnect.de] has joined #go-nuts
07:48 -!- jmil [~jmil@c-68-81-252-40.hsd1.pa.comcast.net] has joined #go-nuts
07:49 -!- B4R0n [~baron@189.36.132.197] has quit [Ping timeout: 240 seconds]
07:56 -!- franciscosouza [~francisco@187.105.21.97] has quit [Read error:
Connection reset by peer]
07:57 -!- franciscosouza [~francisco@187.105.21.97] has joined #go-nuts
08:08 -!- smw [~stephen@unaffiliated/smw] has joined #go-nuts
08:10 -!- awidegreen [~quassel@h-170-226.a212.priv.bahnhof.se] has quit [Ping
timeout: 264 seconds]
08:11 -!- pyrhho [~pyrhho@027e80ed.bb.sky.com] has joined #go-nuts
08:26 -!- sacho [~sacho@95-42-121-139.btc-net.bg] has joined #go-nuts
08:48 -!- yogib [~yogib@dslb-178-009-016-248.pools.arcor-ip.net] has joined
#go-nuts
08:49 -!- Wiz126 [~Wiz@24.229.245.72.res-cmts.sm.ptd.net] has quit [Ping timeout:
276 seconds]
08:53 -!- Wiz126 [~Wiz@24.229.245.72.res-cmts.sm.ptd.net] has joined #go-nuts
08:59 -!- tsung [~jon@112.104.53.151] has quit [Ping timeout: 240 seconds]
09:02 -!- ccc1 [~Adium@2001:c08:780:0:1293:e9ff:fe0b:6ece] has quit [Quit:
Leaving.]
09:05 -!- xeon [~chatzilla@101.44.214.191] has joined #go-nuts
09:06 -!- xeon_ [~chatzilla@101.44.214.191] has quit [Read error: Connection reset
by peer]
09:08 < moraes> go'od morning.
09:09 -!- remy_o [~babar@archlinux/developer/remy-o] has joined #go-nuts
09:11 < smw> moraes, it is 2:12AM!  let me sleep
09:12 < moraes> 6:12 here.
09:12 < smw> moraes, east coast I guess
09:12 < aiju> 11:13 AM here
09:12 < aiju> Reich Standard Time
09:12 < moraes> aiju wins!
09:12 < smw> lol
09:13 < smw> moraes, where are you exactly?  South America?
09:13 < moraes> yes, brazil.
09:13 < moraes> i guess you are in usa, west coast.
09:13 < smw> yep
09:14 < moraes> my router is becoming so sexy!
09:18 < crest> aiju: CEST
09:18 < aiju> crest: what?
09:18 < aiju> you mean Reich Standard Time
09:19 -!- yogib [~yogib@dslb-178-009-016-248.pools.arcor-ip.net] has quit [Quit:
yogib]
09:26 -!- pyrhho [~pyrhho@027e80ed.bb.sky.com] has quit [Ping timeout: 246
seconds]
09:26 -!- sebastianskejoe [~sebastian@56347a49.rev.stofanet.dk] has joined
#go-nuts
09:32 < zozoR> how easy is it to install go on windows?
09:32 < crest> zozoR: inside a vm ;-) ?
09:33 < zozoR> nah
09:33 < zozoR> or is it possible to compile to windows from linux?  :D
09:33 < zozoR> native ''
09:33 < aiju> yeah
09:33 < aiju> GOOS=windows
09:33 < zozoR> what
09:33 < zozoR> just that
09:34 < zozoR> and then 8g for x84 or whatever?
09:34 < crest> zozoR: http://code.google.com/p/gomingw/downloads/list
09:35 < zozoR> i would rather code on linux and compile it to windows ^^
09:39 < aiju> at first you have to build everything for windows
09:39 < aiju> GOOS=windows ./all.bash, if i'm not mistaken
09:40 -!- tvw [~tv@e176001035.adsl.alicedsl.de] has quit [Remote host closed the
connection]
09:41 < zozoR> would that remove my other packages?  : |
09:41 -!- tsung [~jon@112.104.53.151] has joined #go-nuts
09:42 < aiju> no
09:42 < zozoR> yay
09:42 < zozoR> windows.h no such file or directory D:
09:44 < zozoR> lol
09:44 < aiju> hmm curious
09:44 < zozoR> all the threads are "you dont need to use windows.h to code
on linux, silly"
09:44 < zozoR> xD
09:45 < aiju> zozoR: which package?
09:45 -!- edsrzf [~edsrzf@ip-58-28-201-165.ftth.xnet.co.nz] has quit [Remote host
closed the connection]
09:45 < zozoR> no idea
09:45 < zozoR> wine-dev has the windows.h
09:46 < zozoR> oh, suppose it does not have it
09:47 < zozoR> it fails at "runtime cgo"
09:47 < zozoR> trying to install taht
09:51 < zozoR> apparently its there but
09:51 < zozoR> how do I make the gcc to look in the wine directory : |
09:53 < zozoR> aiju, does the gcc look recursivle through /usr/include/?
09:53 < aiju> no
09:53 < zozoR> suppose i need to move my file into that directory then..
09:53 < aiju> you can use -I
09:54 < aiju> -I/some/other/directory/to/look/into
09:54 < zozoR> ./all.bash -I/something
09:54 < aiju> no, haha
09:54 < zozoR> :D
09:54 < aiju> you'd have to look how to pass that to gcc
09:54 < aiju> maybe an env variable CFLAGS
09:56 < zozoR> arh >.<
09:59 < remy_o> zozoR: i'm not really sure you can produce working Windows
executables on Linux with a standard GCC setup
09:59 -!- tsung [~jon@112.104.53.151] has quit [Ping timeout: 252 seconds]
10:00 < photron> zozoR: you'll need mingw for that, i think
10:00 < zozoR> so i should install mingw and then try?
10:00 < aiju> remy_o: the Go compiler can do it
10:01 < aiju> just pesky cgo is problematic
10:01 < aiju> how does cgo even work?
10:02 < zozoR> the problem is compiling go with GOOS=windows
10:02 < aiju> compiling the pure go stuff should work
10:02 < zozoR> exactly
10:02 < zozoR> but how do i make the all.bash search the wine directory?
10:02 < zozoR> for header files that is
10:03 < aiju> look in the makefiles
10:03 < aiju> zozoR: maybe try commenting out cgo in src/pkg/Makefile
10:04 < zozoR> i think i need cgo for what i want : |
10:05 < aiju> setting _CGO_CFLAGS_windows_386 should work
10:05 < zozoR> in which file?
10:05 < aiju> or just CGO_CFLAGS
10:05 < aiju> env variable
10:05 < aiju> CGO_CFLAGS=-I/path/ ./all.bash
10:06 < zozoR> trying that now
10:07 -!- tsung [~jon@112.104.53.151] has joined #go-nuts
10:08 < zozoR> nope, still complains
10:08 -!- vmil86 [~vmil86@88.118.36.96] has joined #go-nuts
10:08 < aiju> hm
10:11 -!- meling [~meling@134.81-167-41.customer.lyse.net] has quit [Remote host
closed the connection]
10:11 -!- meling [~meling@134.81-167-41.customer.lyse.net] has joined #go-nuts
10:12 < zozoR> arg D:
10:13 -!- tsung [~jon@112.104.53.151] has quit [Ping timeout: 260 seconds]
10:16 -!- ccc1 [~Adium@114-45-80-24.dynamic.hinet.net] has joined #go-nuts
10:17 < zozoR> apparently you need mingw to use cgo
10:17 < zozoR> compiling go without cgo should be no problem..
10:17 < zozoR> but i want cgo :D
10:22 -!- robteix_ [~robteix@host194.200-43-246.telecom.net.ar] has joined
#go-nuts
10:28 < zozoR> giving up :3
10:28 < zozoR> but if anyone have had any luck with compiling go with
goos=windows and cgo enabled, do tell
10:36 -!- sunfmin [~sunfmin@115.197.34.59] has quit [Quit: sunfmin]
10:36 -!- yogib [~yogib@dslb-178-009-016-248.pools.arcor-ip.net] has joined
#go-nuts
10:37 -!- huin [~huin@91.85.139.164] has joined #go-nuts
10:47 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
10:59 -!- nekoh [~nekoh@dslb-188-107-197-201.pools.arcor-ip.net] has joined
#go-nuts
10:59 -!- tsung [~jon@112.104.53.151] has joined #go-nuts
11:00 -!- robteix_ [~robteix@host194.200-43-246.telecom.net.ar] has quit [Quit:
Leaving...]
11:11 -!- tsung [~jon@112.104.53.151] has quit [Ping timeout: 246 seconds]
11:12 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has quit [Quit: leaving]
11:17 -!- pyrhho [~pyrhho@027e80ed.bb.sky.com] has joined #go-nuts
11:18 -!- jmil [~jmil@c-68-81-252-40.hsd1.pa.comcast.net] has quit [Quit: jmil]
11:20 -!- tsung [~jon@112.104.53.151] has joined #go-nuts
11:20 -!- TheMue [~FMueller@p5DDF5854.dip.t-dialin.net] has joined #go-nuts
11:24 -!- tsung [~jon@112.104.53.151] has quit [Ping timeout: 252 seconds]
11:32 -!- tsung [~jon@112.104.53.151] has joined #go-nuts
11:35 -!- JakeyChan [~JakeyChan@118.132.214.248] has joined #go-nuts
11:37 -!- xash [~xash@d004220.adsl.hansenet.de] has joined #go-nuts
11:38 -!- tsung [~jon@112.104.53.151] has quit [Read error: Connection reset by
peer]
11:40 -!- tsung [~jon@112.104.53.151] has joined #go-nuts
11:45 -!- ccc_ [~macroron@c-76-26-54-186.hsd1.fl.comcast.net] has joined #go-nuts
11:48 -!- Adys [~Adys@unaffiliated/adys] has quit [Remote host closed the
connection]
11:51 -!- Kahvi [5b9b57fc@gateway/web/freenode/ip.91.155.87.252] has joined
#go-nuts
11:53 -!- xeon [~chatzilla@101.44.214.191] has quit [Ping timeout: 260 seconds]
11:53 -!- erus` [~chatzilla@cpc2-gill2-0-0-cust701.basl.cable.virginmedia.com] has
joined #go-nuts
11:57 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
12:04 -!- TheMue [~FMueller@p5DDF5854.dip.t-dialin.net] has quit [Ping timeout:
260 seconds]
12:05 -!- Slant [~scott@124-168-200-235.dyn.iinet.net.au] has joined #go-nuts
12:17 * moraes hugs Brad Fitzpatrick for
http://groups.google.com/group/golang-nuts/msg/e2d679d303aa5d53
12:21 -!- sunfmin [~sunfmin@115.197.34.59] has joined #go-nuts
12:23 -!- hargettp [~hargettp@c-71-232-187-101.hsd1.nh.comcast.net] has joined
#go-nuts
12:27 * moraes hugs himself
12:27 * moraes stops with coffee
12:29 < uriel> folks here might find this interesting:
http://news.ycombinator.com/item?id=2907856
12:30 -!- ronnyy [~quassel@p4FF1C5EA.dip0.t-ipconnect.de] has quit [Remote host
closed the connection]
12:32 -!- TheMue [~FMueller@p5DDF5854.dip.t-dialin.net] has joined #go-nuts
12:32 -!- pyrhho [~pyrhho@027e80ed.bb.sky.com] has quit [Ping timeout: 252
seconds]
12:33 < moraes> uriel,
https://code.google.com/p/gorilla/source/browse/#hg%2Fsrc%2Fmux
12:34 < Kahvi> Where can I find the msys environment for building Go on
Windows?
12:35 -!- sunfmin [~sunfmin@115.197.34.59] has left #go-nuts []
12:35 -!- Solak [~stijnw@cthia.xs4all.nl] has joined #go-nuts
12:36 -!- xeon [~chatzilla@101.44.214.191] has joined #go-nuts
12:40 < rm445> Kahvi: there are links on this page, which is the first hit
on google: http://www.mingw.org/wiki/MSYS - did they not work for you?
12:45 -!- ccc1 [~Adium@114-45-80-24.dynamic.hinet.net] has quit [Quit: Leaving.]
12:47 -!- Kahvi [5b9b57fc@gateway/web/freenode/ip.91.155.87.252] has quit [Ping
timeout: 252 seconds]
12:49 -!- sacho [~sacho@95-42-121-139.btc-net.bg] has quit [Ping timeout: 252
seconds]
12:50 < uriel> also interesting: http://news.ycombinator.com/item?id=2907415
12:51 < moraes> 'simpler and more natural programming style'
12:51 < aiju> allow us to write evented code that looks and feels like
straight-line code.  jQ callbacks in Javascript are the most vivid illustration of
this idea (I suppose the node.js people are carrying that even further; I haven't
played with it).
12:51 < aiju> hahahahahahaha
12:52 < moraes> jQ is jQuery?
12:52 < uriel> btw, credit goes to aiju for digging up that paper (I think)
12:53 < aiju> Like it has been stated on other comments here, this is a old
paper.  Technology (both hardware and software) has changed.
12:53 < aiju> hahahaha
12:53 < moraes> credit goes to who posts to hacker news.  that's the law.
12:53 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
12:54 -!- robteix [~robteix@host221.190-30-31.telecom.net.ar] has joined #go-nuts
12:57 < moraes> events are a mess
13:03 -!- qeed [~qeed@adsl-98-85-45-66.mco.bellsouth.net] has joined #go-nuts
13:04 -!- ronnyy [~quassel@p4FF1C5EA.dip0.t-ipconnect.de] has joined #go-nuts
13:13 -!- TheMue [~FMueller@p5DDF5854.dip.t-dialin.net] has quit [Ping timeout:
240 seconds]
13:15 -!- robteix [~robteix@host221.190-30-31.telecom.net.ar] has quit [Quit:
Leaving...]
13:18 -!- avelino_ [~avelino@189.62.78.101] has joined #go-nuts
13:18 -!- avelino [~avelino@unaffiliated/avelino] has quit [Read error: Connection
reset by peer]
13:19 * uriel still can't understand how people take JS programming serious when
it is a horrible tangled mess of callbacks and callbackbacks and
callbababababackbabks
13:19 -!- replore_ [~replore@ntkngw133234.kngw.nt.ftth.ppp.infoweb.ne.jp] has
joined #go-nuts
13:20 < uriel> yes, closures are cool, and it is the only thing that makes
it possible to get anything done with JS, but that doesn't mean using them for
absolutely everything in convoluted ways is a great idea
13:20 < exch> It's the OOP hype all over again
13:20 < exch> people completely miss the point of these things
13:22 -!- avelino_ [~avelino@189.62.78.101] has quit [Read error: Connection reset
by peer]
13:24 -!- robteix [~robteix@ec2-174-129-247-164.compute-1.amazonaws.com] has
joined #go-nuts
13:24 -!- avelino [~avelino@189.62.78.101] has joined #go-nuts
13:24 -!- avelino [~avelino@189.62.78.101] has quit [Changing host]
13:24 -!- avelino [~avelino@unaffiliated/avelino] has joined #go-nuts
13:27 -!- avelino_ [~avelino@189.62.78.101] has joined #go-nuts
13:27 -!- avelino [~avelino@unaffiliated/avelino] has quit [Read error: Connection
reset by peer]
13:29 -!- meling [~meling@134.81-167-41.customer.lyse.net] has quit [Remote host
closed the connection]
13:34 < uriel> moraes: only taken a very brief look at matchers.go, but
wondering why the newFooMatcher functions?
13:34 < uriel> they seem like useless boilerplate
13:37 -!- moraes [~moraes@189.103.177.124] has quit [Read error: Operation timed
out]
13:37 < uriel> moraes: newRoute also seems useless, from what I see is only
called once
13:37 < aiju> uriel: functions which are called only once are not
necessarily useless
13:38 < uriel> aiju: yes, but in this case it is
13:39 < uriel> oh, bleh, he timed out
13:39 -!- cron_ [cron@190.121.72.227] has joined #go-nuts
13:41 < Slant> Is there a way to get gotest to do custom formatted output?
13:41 < Slant> Or would I need to write a filter from the verbose output?
13:58 -!- avelino_ [~avelino@189.62.78.101] has quit [Remote host closed the
connection]
13:58 -!- avelino [~avelino@unaffiliated/avelino] has joined #go-nuts
14:00 -!- cron__ [cron@190.121.72.35] has joined #go-nuts
14:01 < Slant> x[:] is a slice across an entire array, yeah?
14:02 -!- hargettp [~hargettp@c-71-232-187-101.hsd1.nh.comcast.net] has quit
[Quit: Linkinus - http://linkinus.com]
14:02 < exch> yes
14:03 -!- aho [~nya@fuld-590c7630.pool.mediaWays.net] has joined #go-nuts
14:03 -!- cron_ [cron@190.121.72.227] has quit [Ping timeout: 240 seconds]
14:12 -!- Cobi [~Cobi@2002:1828:88fb:0:aede:48ff:febe:ef03] has quit [Ping
timeout: 264 seconds]
14:23 -!- Cobi [~Cobi@2002:1828:88fb:0:aede:48ff:febe:ef03] has joined #go-nuts
14:26 < zozoR> why is event driven programming a bad idea?
14:28 < uriel> nested callbacks spaghetti code makes goto spaghetti look
yummy
14:34 < erus`> yum :)
14:34 < zozoR> i recall the event system from the wx gui toolkit..  that
kinda worked fine ''
14:34 -!- Cobi [~Cobi@2002:1828:88fb:0:aede:48ff:febe:ef03] has quit [Ping
timeout: 264 seconds]
14:35 < zozoR> on the other hand, i recall flash actionscript..
14:35 < zozoR> i need to go cry now
14:38 < zozoR> uriel, what is the alternative to event driven?
14:38 -!- dfr|mac [~dfr|work@ool-18baf7e7.dyn.optonline.net] has joined #go-nuts
14:39 < uriel> zozoR: did you check what channel (haha) you are in?
14:40 -!- TheMue [~FMueller@p5DDF5854.dip.t-dialin.net] has joined #go-nuts
14:45 < zozoR> goroutines?  :p
14:49 -!- dfr|mac [~dfr|work@ool-18baf7e7.dyn.optonline.net] has quit [Remote host
closed the connection]
14:53 -!- Cobi [~Cobi@2002:1828:88fb:0:aede:48ff:febe:ef03] has joined #go-nuts
14:54 -!- TheMue [~FMueller@p5DDF5854.dip.t-dialin.net] has quit [Ping timeout:
260 seconds]
14:55 -!- cron__ [cron@190.121.72.35] has quit [Quit: Leaving]
15:05 -!- pyrhho [~pyrhho@027e80ed.bb.sky.com] has joined #go-nuts
15:08 -!- TheMue [~FMueller@p5DDF5854.dip.t-dialin.net] has joined #go-nuts
15:12 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has joined #go-nuts
15:15 -!- ccc1 [~Adium@114-45-80-24.dynamic.hinet.net] has joined #go-nuts
15:18 -!- ronnyy [~quassel@p4FF1C5EA.dip0.t-ipconnect.de] has quit [Remote host
closed the connection]
15:20 -!- xcombelle [~xcombelle@AToulouse-551-1-35-36.w90-11.abo.wanadoo.fr] has
joined #go-nuts
15:24 -!- TheMue [~FMueller@p5DDF5854.dip.t-dialin.net] has quit [Ping timeout:
258 seconds]
15:30 -!- B4R0n [~baron@189.36.132.197] has joined #go-nuts
15:35 -!- franciscosouza [~francisco@187.105.21.97] has quit [Quit:
franciscosouza]
15:38 -!- pyrhho [~pyrhho@027e80ed.bb.sky.com] has quit [Ping timeout: 264
seconds]
15:40 -!- JakeyChan [~JakeyChan@118.132.214.248] has quit [Remote host closed the
connection]
15:43 -!- Slant [~scott@124-168-200-235.dyn.iinet.net.au] has quit [Ping timeout:
260 seconds]
15:55 -!- rcrowley [~rcrowley@c-71-202-44-233.hsd1.ca.comcast.net] has joined
#go-nuts
15:56 -!- franciscosouza [~francisco@187.105.21.97] has joined #go-nuts
16:09 -!- moraes [~moraes@189.103.177.124] has joined #go-nuts
16:21 -!- awidegreen [~quassel@h-170-226.a212.priv.bahnhof.se] has joined #go-nuts
16:44 < uriel> moraes:
16:44 -!- Fish- [~Fish@9fans.fr] has joined #go-nuts
16:44 < uriel> 13:34 < uriel> moraes: only taken a very brief look at
matchers.go, but wondering why the newFooMatcher functions?
16:44 < uriel> 13:34 < uriel> they seem like useless boilerplate
16:44 < uriel> 13:37 < uriel> moraes: newRoute also seems useless,
from what I see is only called once
16:45 < moraes> uriel, sorry i missed those messages
16:45 < uriel> nah, I missed that you had timed out :)
16:46 -!- franciscosouza [~francisco@187.105.21.97] has quit [Quit:
franciscosouza]
16:46 < moraes> uriel, you suggest building the struct literal directly?
16:47 -!- ccc1 [~Adium@114-45-80-24.dynamic.hinet.net] has quit [Quit: Leaving.]
16:48 < moraes> i thought about turning them into closures but will finish
the rest, they are private anyway
16:50 < uriel> moraes: yes, I don't see what the function wrapper around the
literal buys you
16:50 < moraes> uriel, i was thinking how to pass route args to handler
without breaking http.Handler interface / HandlerFunc signature
16:50 < moraes> ( ^ unrelated )
16:50 < moraes> then i found
http://groups.google.com/group/golang-nuts/msg/e2d679d303aa5d53
16:51 -!- Kahvi [5b9b57fc@gateway/web/freenode/ip.91.155.87.252] has joined
#go-nuts
16:51 < moraes> uriel, well it keeps things separated and easy to test.
16:53 -!- pyrhho [~pyrhho@027e80ed.bb.sky.com] has joined #go-nuts
16:55 < uriel> moraes: to me it looks like un-go-ish boilerplate
16:55 < moraes> damn!
16:56 < moraes> also they were all public at some point
16:56 < uriel> hehe
16:56 < uriel> well, it is better that they are not exported now
16:56 < uriel> it is a bit subjective, but when almost one third of the code
is just wrappers around very simple and short literals, it seems a bit silly
16:57 < moraes> hehe
16:57 < moraes> i'll simplify once i finish the rest; for now they work.
16:57 < uriel> I can see the benefit if maybe some day for some reason you
want to add some code to the contructor, but that is higly speculative, while the
IMHO readiility is improved if you use the literals directly
16:58 < uriel> (there is also probably a very tiny performance case to be
made, to avoid the function call, but that is not enough to make me favour one
over the other)
16:58 < uriel> anyway, was just the first thing that came to mind when I
started to look at the code, not really important
16:59 < moraes> uriel, you'd keep the structs?
16:59 < uriel> that I don't know
16:59 < uriel> but I would certainly remove the constructors :)
17:00 < moraes> removing the constructors is easy.  converting to closure
would mess things.
17:00 < uriel> yea, I know, as we discussed before, I'd leave that alone for
now
17:00 < uriel> just don't export it
17:00 < moraes> ok.  i'll drop the constructors then.
17:01 < uriel> regarding the public interface baseRouter.GetRoute and
baseRouter.NamedRoutes look redundant
17:02 < uriel> also, I'm not sure I see the point of having Router and
baseRouter types
17:02 < moraes> NamedRoutes()['foo'] is ugly
17:02 < uriel> you could just export the map
17:02 < uriel> or is there a reason not to?
17:03 < moraes> ah the irony.  google code doesn't highlight go.
17:03 < uriel> hehe
17:03 < moraes> uriel, there is.
17:04 < moraes> map is used by nested routes.  and it is created lazily.
17:04 < moraes> i don't want to export it really.
17:04 < aiju> moraes: probably Pike personally voted against highlighting Go
;P
17:04 < uriel> moraes: I don't think lazy intialization buys you anything
really
17:06 < uriel> also, what about the Router/baseRouter thing?  I'm sure you
had a good reason, but to me it looks gratuitious OO-fication :)
17:08 -!- moraes [~moraes@189.103.177.124] has quit [Ping timeout: 240 seconds]
17:09 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
17:12 -!- miker2 [~miker2@pool-96-245-224-59.phlapa.fios.verizon.net] has joined
#go-nuts
17:12 -!- jmil [~jmil@c-68-81-252-40.hsd1.pa.comcast.net] has joined #go-nuts
17:13 -!- jmil [~jmil@c-68-81-252-40.hsd1.pa.comcast.net] has quit [Client Quit]
17:13 -!- ShadowIce
[~pyoro@HSI-KBW-109-193-121-123.hsi7.kabel-badenwuerttemberg.de] has joined
#go-nuts
17:13 -!- ShadowIce
[~pyoro@HSI-KBW-109-193-121-123.hsi7.kabel-badenwuerttemberg.de] has quit
[Changing host]
17:13 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
17:13 -!- ccc_ [~macroron@c-76-26-54-186.hsd1.fl.comcast.net] has quit [Quit:
leaving]
17:22 -!- moraes [~moraes@189.103.177.124] has joined #go-nuts
17:24 < moraes> uriel, sorry, bad connection.
17:25 < uriel> 17:04 < uriel> moraes: I don't think lazy intialization
buys you anything really
17:25 < uriel> 17:06 < uriel> also, what about the Router/baseRouter
thing?  I'm sure you had a good reason, but to me it looks gratuitious OO-fication
:)
17:25 < moraes> baseRouter only stores registered nested routes.  used by
router and routes.
17:25 < aiju> RouterFactoryInterface
17:25 < moraes> uriel, only some basic code shared.
17:26 < uriel> aiju: s/^/AbstractGenericProxy/
17:26 < moraes> not exported.  just for the inner maps.
17:27 < uriel> as far as I can see all that is shared is Rotes(),
NamedRoutes() and GetRoute()
17:28 -!- miker2 [~miker2@pool-96-245-224-59.phlapa.fios.verizon.net] has quit
[Quit: Computer has gone to sleep.]
17:28 < moraes> RouterAdapterFactoryFactory
17:28 < moraes> uriel, yes.
17:28 < moraes> only that.
17:28 < uriel> which would go away if you exported .routes and .namedRoutes
17:29 -!- kergoth_ [~kergoth@ip24-251-173-232.ph.ph.cox.net] has joined #go-nuts
17:29 < uriel> any reason why 'subroutes' don't just have a full-on Router?
17:29 < moraes> and every single route would allocate those maps.  :-/
17:29 < uriel> moraes: isn't that already the case?
17:29 < moraes> no.
17:29 < uriel> Route has an embedded baseRouter
17:30 < moraes> not initialized.
17:30 < uriel> I'm not sure that matters much
17:31 < moraes> what do you mean by have a full-on Router?
17:31 < uriel> what if instead of sub-routes you had 'sub-routers' (ie.,
make the 'handler' of a route another router)
17:31 < uriel> just merge Router and baseRouter
17:32 < uriel> and allow using a Router as handler for a route
17:32 < moraes> interesting.
17:32 < uriel> (or have a HandleRouter or such)
17:33 < uriel> haven't really thought this throught
17:33 < uriel> but it seems like there is already half of the router concept
associated with routes for sub-route purposes
17:33 < moraes> indeed.
17:33 < uriel> also that might allow you to have a router that you set up
for a web app, and then plug it in as a sub router of another app
17:33 < moraes> i could forget path prefix
17:34 < moraes> yeah i'll forget path prefix
17:34 < uriel> no clue if that might work, but looks like it might allow you
to embed apps on other apps easily too, and more importantly might simplify your
code (and even more importantly, data structures)
17:35 < moraes> i do agree
17:35 < moraes> will come back to nested ones once i finish.
17:35 < uriel> still, I'm not compleely sure if this would be simpler than
the current way to set up sub-routes, but it might
17:36 < uriel> (but do one or the other, not both)
17:36 < moraes> have to see how they are registered.
17:36 < moraes> where.
17:36 < moraes> a central router must exist.
17:36 < uriel> HandleRouter in Route
17:40 -!- yogib [~yogib@dslb-178-009-016-248.pools.arcor-ip.net] has quit [Quit:
yogib]
17:41 < moraes> uriel, that is interesting stuff.
17:43 < moraes> uriel, could have *only* Router
17:48 -!- tvw [~tv@e176001035.adsl.alicedsl.de] has joined #go-nuts
17:54 -!- franciscosouza [~francisco@187.105.21.97] has joined #go-nuts
17:56 -!- Argue [~Argue@112.201.172.5] has quit [Quit: Leaving]
17:57 -!- yogib [~yogib@dslb-178-009-016-248.pools.arcor-ip.net] has joined
#go-nuts
17:58 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by
peer]
17:58 -!- jajamana [~jcb@cm-84.215.50.91.getinternet.no] has joined #go-nuts
17:59 -!- xcombelle [~xcombelle@AToulouse-551-1-35-36.w90-11.abo.wanadoo.fr] has
quit [Ping timeout: 240 seconds]
18:01 -!- fenicks [~fenicks@log77-3-82-243-254-112.fbx.proxad.net] has quit [Ping
timeout: 260 seconds]
18:06 -!- pyrhho [~pyrhho@027e80ed.bb.sky.com] has quit [Ping timeout: 268
seconds]
18:13 -!- xcombelle [~xcombelle@AToulouse-551-1-35-36.w90-11.abo.wanadoo.fr] has
joined #go-nuts
18:15 -!- TheMue [~FMueller@p5DDF5854.dip.t-dialin.net] has joined #go-nuts
18:15 -!- ericvh [~Adium@cpe-72-177-122-77.austin.res.rr.com] has quit [Quit:
Leaving.]
18:19 -!- clr_ [~colin@98.125.226.49] has joined #go-nuts
18:21 -!- ccc [~macroron@c-76-26-54-186.hsd1.fl.comcast.net] has joined #go-nuts
18:33 -!- tvw [~tv@e176001035.adsl.alicedsl.de] has quit [Remote host closed the
connection]
18:37 -!- Vovchik [4d7d037e@gateway/web/freenode/ip.77.125.3.126] has joined
#go-nuts
18:38 < Vovchik> hey, someone knows why Client.Get(url) does not download
the file properly?
18:41 < Vovchik> here's the code http://pastebin.com/FYEcBuYe , thanks
18:47 -!- stalled [~stalled@unaffiliated/stalled] has quit [Ping timeout: 252
seconds]
18:50 < aiju> Vovchik: how about checking the error?
18:51 < aiju> ah nvm you're retrying
18:51 < aiju> but yeah, you just discard it
18:53 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
18:59 -!- stalled [~stalled@unaffiliated/stalled] has joined #go-nuts
19:01 -!- shoenig_ [~shoenig@rrcs-71-42-216-104.sw.biz.rr.com] has joined #go-nuts
19:02 -!- shoenig [~shoenig@rrcs-71-42-216-106.sw.biz.rr.com] has quit [Ping
timeout: 240 seconds]
19:02 < Vovchik> the error is always EOF
19:02 -!- franciscosouza [~francisco@187.105.21.97] has quit [Read error:
Connection reset by peer]
19:02 -!- shoenig [~shoenig@rrcs-71-42-216-106.sw.biz.rr.com] has joined #go-nuts
19:03 < Vovchik> and looks like the file size are always looks like F000x0
10000x0 11000x0
19:03 < Vovchik> so thats wierd
19:04 -!- franciscosouza [~francisco@187.105.21.97] has joined #go-nuts
19:05 -!- shoenig__ [~shoenig@rrcs-71-42-216-104.sw.biz.rr.com] has joined
#go-nuts
19:06 -!- shoenig_ [~shoenig@rrcs-71-42-216-104.sw.biz.rr.com] has quit [Ping
timeout: 240 seconds]
19:09 -!- shoenig [~shoenig@rrcs-71-42-216-106.sw.biz.rr.com] has quit [Ping
timeout: 240 seconds]
19:10 -!- moraes [~moraes@189.103.177.124] has quit [Ping timeout: 260 seconds]
19:11 -!- shoenig__ [~shoenig@rrcs-71-42-216-104.sw.biz.rr.com] has quit [Ping
timeout: 240 seconds]
19:11 -!- shoenig [~shoenig@rrcs-71-42-216-104.sw.biz.rr.com] has joined #go-nuts
19:12 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-154-62.clienti.tiscali.it] has
joined #go-nuts
19:18 < Vovchik> original file size: E930h , downloaded file size: E000h
19:19 -!- xeon [~chatzilla@101.44.214.191] has quit [Ping timeout: 250 seconds]
19:20 < Vovchik> looks like the buffer size is 1000h and it does not copying
the last bytes, am I using the correct way to download a file?
19:22 -!- Kahvi [5b9b57fc@gateway/web/freenode/ip.91.155.87.252] has quit [Ping
timeout: 252 seconds]
19:29 < huin> Vovchik: what's `b` in your code?
19:29 < Vovchik> b "bufio"
19:30 < huin> ah, so it's buffering
19:30 < huin> note that 0x1000 is 4096, which is the default buffer size in
bufio iirc
19:30 < aiju> Vovchik: try flushing the buffer or something
19:31 < huin> it might well be that the last read works
19:31 < huin> but doesn't read a full 4096 bytes, so gets EOF
19:31 < huin> check n when e != nil
19:31 < huin> it's probably not 0
19:31 < huin> and check for EOF - that's not really an error, but an "end
marker"
19:31 < nekoh> try writer.Close() before f.Close()
19:33 < Vovchik> looks like writer.Flush() did the job
19:33 < Vovchik> thank you all for the help :D
19:33 -!- tteras_ [~fabled@83.145.235.194] has quit [Quit: Ex-Chat]
19:34 < huin> ah yes, that'd do it
19:36 < Vovchik> :]
19:42 -!- dreadlorde [~dreadlord@c-68-42-82-10.hsd1.mi.comcast.net] has joined
#go-nuts
19:44 -!- pyrhho [~pyrhho@027e80ed.bb.sky.com] has joined #go-nuts
19:49 -!- xcombelle [~xcombelle@AToulouse-551-1-35-36.w90-11.abo.wanadoo.fr] has
quit [Ping timeout: 240 seconds]
19:51 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:d4ff:76d2:dd6b:2989] has joined
#go-nuts
19:54 -!- photron [~photron@port-92-201-74-200.dynamic.qsc.de] has quit [Read
error: Operation timed out]
20:01 -!- replore_ [~replore@ntkngw133234.kngw.nt.ftth.ppp.infoweb.ne.jp] has quit
[Remote host closed the connection]
20:02 -!- xcombelle [~xcombelle@AToulouse-551-1-21-178.w86-201.abo.wanadoo.fr] has
joined #go-nuts
20:08 -!- arun [~arun@unaffiliated/sindian] has quit [Ping timeout: 240 seconds]
20:09 -!- fenicks [~fenicks@log77-3-82-243-254-112.fbx.proxad.net] has joined
#go-nuts
20:11 -!- xcombelle [~xcombelle@AToulouse-551-1-21-178.w86-201.abo.wanadoo.fr] has
quit [Ping timeout: 240 seconds]
20:18 -!- sebastianskejoe [~sebastian@56347a49.rev.stofanet.dk] has quit [Quit:
Lost terminal]
20:28 -!- arun [~arun@e71020.upc-e.chello.nl] has joined #go-nuts
20:28 -!- arun [~arun@e71020.upc-e.chello.nl] has quit [Changing host]
20:28 -!- arun [~arun@unaffiliated/sindian] has joined #go-nuts
20:37 -!- awidegreen [~quassel@h-170-226.a212.priv.bahnhof.se] has quit [Ping
timeout: 252 seconds]
20:45 -!- kanru [~kanru@kanru-1-pt.tunnel.tserv15.lax1.ipv6.he.net] has quit [Ping
timeout: 264 seconds]
20:46 -!- ericvh [~Adium@cpe-72-177-122-77.austin.res.rr.com] has joined #go-nuts
20:46 -!- icey [u2593@gateway/web/irccloud.com/x-mwszizglmhwpxamx] has joined
#go-nuts
20:48 -!- kanru [~kanru@kanru-1-pt.tunnel.tserv15.lax1.ipv6.he.net] has joined
#go-nuts
20:53 -!- Bigbear1 [~Cody@S010600222dcddd0f.cg.shawcable.net] has joined #go-nuts
20:56 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has quit [Remote host closed
the connection]
20:56 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller,
Faster, Easier.  http://miranda-im.org]
20:57 -!- kanru [~kanru@kanru-1-pt.tunnel.tserv15.lax1.ipv6.he.net] has quit [Ping
timeout: 264 seconds]
20:58 -!- Wiz126 [~Wiz@24.229.245.72.res-cmts.sm.ptd.net] has quit [Ping timeout:
260 seconds]
20:59 -!- c00w [~colin@98.125.226.49] has quit [Ping timeout: 260 seconds]
21:05 -!- kanru [~kanru@kanru-1-pt.tunnel.tserv15.lax1.ipv6.he.net] has joined
#go-nuts
21:09 -!- remy_o [~babar@archlinux/developer/remy-o] has quit [Ping timeout: 240
seconds]
21:17 -!- Fish- [~Fish@9fans.fr] has quit [Quit: WeeChat 0.3.5]
21:17 -!- ako [~nya@fuld-590c6e81.pool.mediaWays.net] has joined #go-nuts
21:19 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-154-62.clienti.tiscali.it] has
quit [Ping timeout: 276 seconds]
21:19 -!- TheMue [~FMueller@p5DDF5854.dip.t-dialin.net] has quit [Quit: Lost
terminal]
21:20 -!- aho [~nya@fuld-590c7630.pool.mediaWays.net] has quit [Ping timeout: 240
seconds]
21:25 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:d4ff:76d2:dd6b:2989] has quit
[Quit: Leaving.]
21:26 -!- pyrhho [~pyrhho@027e80ed.bb.sky.com] has quit [Ping timeout: 276
seconds]
21:29 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
21:33 -!- franciscosouza [~francisco@187.105.21.97] has quit [Read error:
Connection reset by peer]
21:34 -!- franciscosouza [~francisco@187.105.21.97] has joined #go-nuts
21:43 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has quit [Remote host
closed the connection]
21:45 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Ping
timeout: 252 seconds]
21:47 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has joined #go-nuts
21:48 -!- jajamana [~jcb@cm-84.215.50.91.getinternet.no] has quit [Quit: This
computer has gone to sleep]
21:55 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
21:58 -!- Vovchik [4d7d037e@gateway/web/freenode/ip.77.125.3.126] has quit [Quit:
Page closed]
21:58 -!- huin [~huin@91.85.139.164] has quit [Quit: bedtime]
21:59 -!- yogib_ [~yogib@dslb-188-100-013-249.pools.arcor-ip.net] has joined
#go-nuts
22:01 -!- yogib [~yogib@dslb-178-009-016-248.pools.arcor-ip.net] has quit [Ping
timeout: 250 seconds]
22:04 -!- clr_ [~colin@c-67-183-138-2.hsd1.wa.comcast.net] has joined #go-nuts
22:07 -!- fenicks [~fenicks@log77-3-82-243-254-112.fbx.proxad.net] has quit [Quit:
Good by]
22:15 -!- Slant [~scott@124-168-200-235.dyn.iinet.net.au] has joined #go-nuts
22:22 -!- franciscosouza [~francisco@187.105.21.97] has quit [Quit:
franciscosouza]
22:27 -!- avelino [~avelino@unaffiliated/avelino] has quit [Remote host closed the
connection]
22:31 -!- avelino [~avelino@unaffiliated/avelino] has joined #go-nuts
22:33 -!- nicka1 [~nicka@blk-222-42-163.eastlink.ca] has joined #go-nuts
22:34 -!- Solak [~stijnw@cthia.xs4all.nl] has quit [Remote host closed the
connection]
22:36 -!- yogib [~yogib@dslb-188-100-013-249.pools.arcor-ip.net] has quit [Quit:
yogib]
22:36 -!- yogib [~yogib@dslb-188-100-013-249.pools.arcor-ip.net] has joined
#go-nuts
22:40 -!- moraes [~moraes@189.103.177.124] has joined #go-nuts
22:42 < knowmercy> what a lazy day
22:43 -!- replore_ [~replore@ntkngw133234.kngw.nt.ftth.ppp.infoweb.ne.jp] has
joined #go-nuts
22:43 < chilts> knowmercy: for some :)
22:43 < knowmercy> good point
22:43 * chilts is back in work
22:43 < knowmercy> that's never good
22:43 < chilts> well, I get paid so it's good for the bank balance :D
22:43 < chilts> that's only one data point though
22:45 < knowmercy> being payed by the hour seems like a solid thing for that
kind of work :)
22:48 -!- yogib [~yogib@dslb-188-100-013-249.pools.arcor-ip.net] has quit [Quit:
yogib]
22:52 -!- vmil86 [~vmil86@88.118.36.96] has quit [Remote host closed the
connection]
22:54 -!- dlowe_nb [~dlowe@c-76-19-67-211.hsd1.ma.comcast.net] has joined #go-nuts
22:55 -!- serialhex [~quassel@99-101-148-183.lightspeed.wepbfl.sbcglobal.net] has
quit [Remote host closed the connection]
22:57 -!- serialhex [~quassel@99-101-148-183.lightspeed.wepbfl.sbcglobal.net] has
joined #go-nuts
22:59 -!- erus` [~chatzilla@cpc2-gill2-0-0-cust701.basl.cable.virginmedia.com] has
quit [Quit: ChatZilla 0.9.87 [Firefox 6.0/20110811165603]]
22:59 -!- Adys [~Adys@unaffiliated/adys] has quit [Ping timeout: 240 seconds]
23:10 < moraes> uriel, implemented all your stuff.  ;)
23:10 < uriel> \o/
23:11 < uriel> (now lets hope my stuff was not too stupid :))
23:12 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
23:13 < uriel> moraes: why is r.Matcher() public?
23:13 < moraes> uriel, no it was great.
23:14 < moraes> removed matcher constructors / dropped baseRouter / added
HandleRouter for sub-routes
23:14 < uriel> yea, I'm looking at the source, looks nice, thanks!  :)
23:14 < moraes> r.Matcher adds a custom matcher func
23:15 < uriel> I know, but I thought we spoke the other day and I had
convinced you not to export it :)
23:15 < uriel> nothing wrong with it really, I just don't see at the moment
much benefit from exporting it
23:15 < moraes> uriel, not Matcher interface
23:16 < moraes> it accepts a type MatcherFunc func(request *http.Request,
args RouteArgs) (*Route, bool)
23:17 -!- Slant [~scott@124-168-200-235.dyn.iinet.net.au] has quit [Quit: Slant]
23:17 < uriel> yea, looks reasonable, but if I recall correctly earlier
today that was al unexported, right?
23:18 < moraes> not that one
23:18 < uriel> I'm still not sure if a function type or an interface is
better, and because I can't at the moment imagine what it could be useful for, I'd
rather not export it
23:18 < uriel> ok, maybe I'm confused, not too awake :)
23:20 < knowmercy> do you have to make it public for testing or something
like that?
23:20 < moraes> knowmercy, no because you write tests in the same package
23:21 < moraes> uriel, the interface was useful to register router as
matcher
23:21 < uriel> but you already have a method to do that which uses the
private addMatcher
23:22 < uriel> maybe I'm missing something obvious
23:22 < moraes> which accepts a Matcher.  router implements Matcher.
23:22 < moraes> return r.addMatcher(router)
23:23 < moraes> this is great because you can make
r.Host("domain.com").HandleRouter(router)
23:24 < moraes> only if host matches, router will be matched for inner
routes.
23:24 < moraes> i should rename it to simply Router()
23:24 < uriel> yes, yes, but I'm talking about r.Matcher(), or I'm really
confused?
23:26 -!- magn3ts [~magn3ts@colemickens.unl.edu] has quit [Ping timeout: 268
seconds]
23:26 < moraes> no.  that is just a simple custom matcher that can be set.
23:26 < uriel> yes, and my quesiton is why it is exported :)
23:27 < moraes> could hide it.  it is harmless.
23:27 -!- dustyw1 [~dustyw@c-98-247-248-194.hsd1.wa.comcast.net] has joined
#go-nuts
23:27 < moraes> it is a matcher like others.
23:27 < moraes> just accepts a custom function.
23:29 -!- avelino [~avelino@unaffiliated/avelino] has quit [Remote host closed the
connection]
23:30 < uriel> I'd rather hide it
23:30 -!- dreadlorde [~dreadlord@c-68-42-82-10.hsd1.mi.comcast.net] has quit [Ping
timeout: 264 seconds]
23:30 < uriel> at least until we find a good reason to export it
23:30 -!- dustyw [~dustyw@c-98-247-248-194.hsd1.wa.comcast.net] has quit [Ping
timeout: 260 seconds]
23:30 < uriel> btw, what is the line count comparison with your
origina/previous version?  functionality seems to be equivalent, right?
23:30 -!- Adys [~Adys@unaffiliated/adys] has quit [Ping timeout: 240 seconds]
23:33 < moraes> yeah.  dopped 100/200 lines maybe.  :P
23:33 < moraes> *dropped
23:33 < moraes> it is cleaner.
23:33 < moraes> router was a great idea.
23:34 -!- rcrowley [~rcrowley@c-71-202-44-233.hsd1.ca.comcast.net] has quit [Quit:
Computer has gone to sleep.]
23:37 -!- magn3ts [~magn3ts@colemickens.unl.edu] has joined #go-nuts
23:37 < moraes> uriel, subrouting example:
https://code.google.com/p/gorilla/source/browse/src/mux/mux.go#293
23:38 < c00w> http://pypi.python.org/pypi/greenlet
23:38 < c00w> Sorry wrong channel.
23:39 -!- magn3ts [~magn3ts@colemickens.unl.edu] has quit [Max SendQ exceeded]
23:39 < uriel> moraes: cool
23:39 -!- magn3ts [~magn3ts@colemickens.unl.edu] has joined #go-nuts
23:44 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
23:51 -!- dreadlorde [dreadlorde@c-68-42-82-10.hsd1.mi.comcast.net] has joined
#go-nuts
23:52 -!- Adys [~Adys@unaffiliated/adys] has quit [Ping timeout: 240 seconds]
23:54 -!- dfr|mac [~dfr|work@ool-18baf7e7.dyn.optonline.net] has joined #go-nuts
--- Log closed Mon Aug 22 00:00:20 2011