--- Log opened Thu Jul 22 00:00:05 2010 00:00 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 00:02 -!- macroron [~ron@c-98-242-168-49.hsd1.fl.comcast.net] has left #go-nuts ["Leaving"] 00:02 -!- Wiz126 [~Wiz126@24.229.245.72.res-cmts.sm.ptd.net] has joined #go-nuts 00:09 < plexdev> http://is.gd/dBmnj by [Micah Stetson] in go/src/cmd/gotest/ -- gotest: fix the glob pattern in the top-of-file comment 00:13 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has joined #go-nuts 00:14 -!- Wiz126 [~Wiz126@24.229.245.72.res-cmts.sm.ptd.net] has quit [Ping timeout: 240 seconds] 00:14 -!- Wiz126 [~Wiz126@24.229.245.72.res-cmts.sm.ptd.net] has joined #go-nuts 00:14 -!- General13372 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has quit [Ping timeout: 260 seconds] 00:17 -!- carrus85 [~carrus85@64.0.193.15] has quit [Quit: Leaving] 00:19 -!- bmizerany [~bmizerany@dsl081-064-072.sfo1.dsl.speakeasy.net] has quit [Remote host closed the connection] 00:20 -!- carllerche [~carllerch@enginey-9.border1.sfo002.pnap.net] has quit [Quit: carllerche] 00:26 < plexdev> http://is.gd/dBnl7 by [Andrew Gerrand] in go/src/ -- build: clean.bash to check that GOOS and GOARCH are set 00:29 -!- angasule [~angasule@190.2.33.49] has joined #go-nuts 00:30 -!- Adys [~Adys@unaffiliated/adys] has quit [Quit: I ♥ Unicode] 00:40 -!- ExtraSpice [~XtraSpice@88.118.32.225] has quit [Ping timeout: 240 seconds] 00:43 -!- jhawk28 [~jhawk28@72.40.31.201] has quit [Remote host closed the connection] 00:44 -!- jhawk28 [~jhawk28@72.40.31.201] has joined #go-nuts 00:45 -!- mikespook [~mikespook@58.61.204.78] has joined #go-nuts 00:50 -!- kanru [~kanru@118-168-232-227.dynamic.hinet.net] has quit [Ping timeout: 240 seconds] 01:00 -!- mjrentz [~mjrentz@adsl-99-190-99-29.dsl.pltn13.sbcglobal.net] has quit [Quit: mjrentz] 01:12 -!- mjrentz [~mjrentz@adsl-99-190-99-29.dsl.pltn13.sbcglobal.net] has joined #go-nuts 01:13 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts 01:16 -!- mjrentz [~mjrentz@adsl-99-190-99-29.dsl.pltn13.sbcglobal.net] has quit [Client Quit] 01:18 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has joined #go-nuts 01:19 -!- artefon [~thiago@189.107.210.250] has quit [Quit: bye] 01:21 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 01:23 -!- Xurix [~Luixsia@AToulouse-254-1-26-50.w81-250.abo.wanadoo.fr] has quit [Read error: Connection reset by peer] 01:27 -!- segy [~segfault@pdpc/supporter/active/segy] has quit [Quit: leaving] 01:34 -!- Adys [~Adys@unaffiliated/adys] has quit [Quit: I ♥ Unicode] 01:35 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts 02:22 -!- jhawk28 [~jhawk28@72.40.31.201] has quit [Remote host closed the connection] 02:23 -!- bmizerany [~bmizerany@c-24-6-37-113.hsd1.ca.comcast.net] has joined #go-nuts 02:25 -!- geocalc [~geobsd@lns-bzn-23-82-248-79-26.adsl.proxad.net] has quit [Quit: Lost terminal] 03:01 -!- segy [~segfault@pdpc/supporter/active/segy] has joined #go-nuts 03:04 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 276 seconds] 03:15 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined #go-nuts 03:16 -!- sladegen [~nemo@unaffiliated/sladegen] has quit [Disconnected by services] 03:16 -!- sladegen [~nemo@unaffiliated/sladegen] has joined #go-nuts 03:18 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has joined #go-nuts 03:25 -!- g0bl1n [~anonymous@a213-22-76-1.cpe.netcabo.pt] has quit [Quit: g0bl1n] 03:41 -!- angasule [~angasule@190.2.33.49] has quit [Ping timeout: 276 seconds] 03:42 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Ping timeout: 260 seconds] 03:57 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has quit [Read error: Connection reset by peer] 03:59 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts 04:04 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has quit [Ping timeout: 240 seconds] 04:07 -!- Ginto8 [~joe@pool-72-82-235-34.cmdnnj.fios.verizon.net] has quit [Remote host closed the connection] 04:10 -!- Ginto8 [~joe@pool-72-82-235-34.cmdnnj.fios.verizon.net] has joined #go-nuts 04:12 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.2] 04:12 -!- lmoura [~lauromour@200.184.118.130] has quit [Ping timeout: 258 seconds] 04:21 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts 04:24 -!- Altercation [~Altercati@pdpc/supporter/active/altercation] has quit [Excess Flood] 04:24 -!- Altercation [~Altercati@pdpc/supporter/active/altercation] has joined #go-nuts 04:32 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts 04:35 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has quit [Ping timeout: 619 seconds] 04:40 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit: This computer has gone to sleep] 04:42 -!- suiside [~suiside@unaffiliated/suiside] has quit [Ping timeout: 260 seconds] 04:59 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has quit [Ping timeout: 248 seconds] 05:04 -!- scm [justme@d070224.adsl.hansenet.de] has quit [Ping timeout: 276 seconds] 05:05 -!- scm [justme@d070084.adsl.hansenet.de] has joined #go-nuts 05:07 -!- kingfishr [~kingfishr@c-24-130-147-77.hsd1.ca.comcast.net] has quit [Remote host closed the connection] 05:09 -!- kingfishr [~kingfishr@c-24-130-147-77.hsd1.ca.comcast.net] has joined #go-nuts 05:31 -!- Project_2501 [~Marvin@82.84.91.160] has joined #go-nuts 05:33 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 05:58 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Ping timeout: 258 seconds] 05:59 -!- iant [~iant@81-233-149-58-no82.tbcn.telia.com] has joined #go-nuts 05:59 -!- mode/#go-nuts [+v iant] by ChanServ 06:07 -!- Sacho [~sacho@95-42-116-4.btc-net.bg] has quit [Remote host closed the connection] 06:15 -!- iant [~iant@81-233-149-58-no82.tbcn.telia.com] has quit [Quit: Leaving.] 06:49 -!- Sacho [~sacho@213.91.244.15] has joined #go-nuts 07:08 -!- uriel_ [~uriel@li43-28.members.linode.com] has joined #go-nuts 07:47 -!- uriel_ [~uriel@li43-28.members.linode.com] has joined #go-nuts 07:49 -!- mikespook [~mikespook@58.61.204.78] has quit [Ping timeout: 265 seconds] 07:52 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has quit [Ping timeout: 246 seconds] 07:53 -!- tvw [~tv@e176006135.adsl.alicedsl.de] has quit [Remote host closed the connection] 07:54 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has joined #go-nuts 07:57 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has joined #go-nuts 07:58 -!- Project_2501 [~Marvin@82.84.91.160] has quit [Read error: Operation timed out] 08:02 -!- sioraiocht [~tomh@unaffiliated/sioraiocht] has quit [Remote host closed the connection] 08:12 -!- mxweas [~max@c-98-225-102-170.hsd1.az.comcast.net] has quit [Quit: Mac has gone to sleep] 08:12 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has quit [Quit: Ex-Chat] 08:13 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 08:23 -!- Kashia [~Kashia@port-92-200-61-111.dynamic.qsc.de] has quit [Quit: This computer has gone to sleep] 08:26 -!- sauerbraten [~sauerbrat@p508CBA98.dip.t-dialin.net] has joined #go-nuts 08:27 -!- ssb [~ssb@213.167.39.150] has quit [Read error: Operation timed out] 08:31 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has joined #go-nuts 08:54 -!- ExtraSpice [~XtraSpice@88.118.32.225] has joined #go-nuts 08:56 -!- visof [~visof@unaffiliated/visof] has joined #go-nuts 09:03 -!- wrtp [~rog@92.17.26.29] has joined #go-nuts 09:05 -!- zozoR [~zozoR@x1-6-00-0e-2e-a3-e0-23.k377.webspeed.dk] has quit [Quit: Morten. Desu~] 09:13 -!- ronny [~quassel@p4FF1CFE6.dip.t-dialin.net] has joined #go-nuts 09:18 -!- rlab_ [~Miranda@91.200.158.34] has joined #go-nuts 09:20 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 240 seconds] 09:35 -!- mikespook1 [~mikespook@219.137.48.37] has quit [Quit: Leaving.] 09:55 -!- wrtp_ [~rog@92.17.26.29] has joined #go-nuts 09:55 -!- Guest27767 [~quassel@p4FF1CFE6.dip.t-dialin.net] has quit [Remote host closed the connection] 09:57 -!- pjm0616 [~user@110.9.28.120] has joined #go-nuts 09:57 -!- suiside [~suiside@unaffiliated/suiside] has joined #go-nuts 09:59 -!- wrtp [~rog@92.17.26.29] has quit [Ping timeout: 276 seconds] 09:59 -!- peterdn [~peterdn@cpc1-oxfd18-2-0-cust914.4-3.cable.virginmedia.com] has quit [Quit: ChatZilla 0.9.86-rdmsoft [XULRunner 1.9.2/20100222071121]] 09:59 -!- peterdn [~peterdn@cpc1-oxfd18-2-0-cust914.4-3.cable.virginmedia.com] has joined #go-nuts 10:38 -!- ssb [~ssb@213.167.39.150] has joined #go-nuts 10:40 -!- peterdn_ [~peterdn@cpc1-oxfd18-2-0-cust914.4-3.cable.virginmedia.com] has joined #go-nuts 10:40 -!- peterdn_ [~peterdn@cpc1-oxfd18-2-0-cust914.4-3.cable.virginmedia.com] has quit [Client Quit] 10:41 -!- wrtp [~rog@92.17.26.29] has quit [Ping timeout: 240 seconds] 10:43 -!- peterdn [~peterdn@cpc1-oxfd18-2-0-cust914.4-3.cable.virginmedia.com] has quit [Ping timeout: 276 seconds] 10:44 -!- angasule [~angasule@190.2.33.49] has joined #go-nuts 10:45 -!- wrtp [~rog@92.17.26.29] has joined #go-nuts 10:50 -!- angasule [~angasule@190.2.33.49] has quit [Read error: Operation timed out] 10:55 -!- tobik [~tobik@p54896FB6.dip.t-dialin.net] has joined #go-nuts 10:56 -!- GeoBSD [~geobsd@lns-bzn-23-82-248-79-26.adsl.proxad.net] has joined #go-nuts 11:02 -!- DavidJones [~DavidJone@dslb-084-056-107-143.pools.arcor-ip.net] has joined #go-nuts 11:08 -!- napsy [~napsy@193.2.66.101] has joined #go-nuts 11:09 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.2] 11:13 -!- ukai [~ukai@220.109.219.244] has quit [Ping timeout: 248 seconds] 11:16 -!- dsmith [~doug@h80.240.141.67.dynamic.ip.windstream.net] has joined #go-nuts 11:18 -!- ukai [~ukai@220.109.219.244] has joined #go-nuts 11:22 -!- wrtp [~rog@92.17.26.29] has quit [Ping timeout: 260 seconds] 11:22 -!- dsmith [~doug@h80.240.141.67.dynamic.ip.windstream.net] has quit [Quit: using sirc version 2.211+KSIRC/1.3.12] 11:26 -!- MizardX- [~MizardX@unaffiliated/mizardx] has joined #go-nuts 11:26 -!- MizardX [~MizardX@unaffiliated/mizardx] has quit [Read error: Connection reset by peer] 11:31 -!- wrtp [~rog@92.17.26.29] has joined #go-nuts 11:38 -!- ukai [~ukai@220.109.219.244] has quit [Ping timeout: 260 seconds] 11:40 -!- ukai [~ukai@220.109.219.244] has joined #go-nuts 11:40 -!- gid [~gid@220-253-151-50.VIC.netspace.net.au] has joined #go-nuts 11:41 -!- artefon [~thiago@189.107.191.58] has joined #go-nuts 11:42 -!- wrtp [~rog@92.17.26.29] has quit [Ping timeout: 265 seconds] 11:50 -!- wrtp [~rog@92.17.26.29] has joined #go-nuts 11:58 -!- tvw [~tv@212.79.9.150] has joined #go-nuts 12:12 -!- General13372 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has joined #go-nuts 12:15 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has quit [Ping timeout: 248 seconds] 12:19 -!- rlab_ [~Miranda@91.200.158.34] has quit [Ping timeout: 252 seconds] 12:20 < DavidJones> do you know why cgo has no problems finding curses.h, but doesn't find panel.h? all the necessary curses files are 12:20 < DavidJones> installed 12:21 -!- sauerbraten [~sauerbrat@p508CBA98.dip.t-dialin.net] has quit [Quit: Bye Bye] 12:21 < DavidJones> found it. 12:22 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 12:22 < str1ngs> check your include directory 12:23 -!- macroron [~ron@c-98-242-168-49.hsd1.fl.comcast.net] has joined #go-nuts 12:23 < str1ngs> I'm not sure what OS you are on. but I'm guessing you are using <panel.h> ? 12:23 -!- macroron [~ron@c-98-242-168-49.hsd1.fl.comcast.net] has quit [Client Quit] 12:24 < str1ngs> err nvm you found it :P 12:24 < DavidJones> huh, I thought I found it, but seemingly I'm wrong 12:24 < DavidJones> i'm on an amd64 Linux 12:25 < DavidJones> and I'm using <curses.h> and <panel.h> 12:25 < DavidJones> my linker flags are "-lpanel -lncurses" 12:26 < str1ngs> find /usr/include -name panel.h 12:26 < str1ngs> sometimes headers get reworked to something like /usr/include/curses 12:27 < DavidJones> yeah... that's true! 12:27 < DavidJones> "/usr/include/ncurses/panel.h" 12:27 < str1ngs> <ncurses/panel.h> should work iirc 12:27 < DavidJones> I'll give it a try 12:28 < DavidJones> yes, it worked : ) thanks a lot. 12:28 < DavidJones> one more question: 12:28 < str1ngs> your going to laugh when I tell you I"m not a C programmer :P 12:28 < DavidJones> nah, just smiling ; ) 12:29 -!- ada [71fe9b5d@gateway/web/freenode/ip.113.254.155.93] has joined #go-nuts 12:29 < str1ngs> btw there is a 3rd party ncurces go package. 12:29 < DavidJones> I forked that one 12:29 < str1ngs> ah gotcha 12:29 -!- napsy [~napsy@193.2.66.101] has quit [Quit: leaving] 12:29 < DavidJones> I worked on it a little, added atomicy, and now I want to add panel support : ) 12:29 < DavidJones> do you know if that behaviour is the same on different machines? 12:30 < str1ngs> it vares on distros/OS 12:30 < DavidJones> so, do I have to fear that my include will no longer work on a different machine? 12:30 < str1ngs> thats why pkg-config is better to use sometimes 12:31 -!- ada [71fe9b5d@gateway/web/freenode/ip.113.254.155.93] has quit [Client Quit] 12:31 < DavidJones> hmh... will learn about pkg-config now. 12:31 < str1ngs> I'm not sure how go would handle that though. I barely understand the C concept 12:31 < DavidJones> I never programmed a single line in C :/ 12:32 < DavidJones> so I'm all new to this kind of stuff ; ) 12:35 < str1ngs> something like pkg-config --variable=includedir pango 12:35 < str1ngs> for some reason I dont have a pkgconfig for ncurses 12:37 -!- GavinTong [71fe9b5d@gateway/web/freenode/ip.113.254.155.93] has joined #go-nuts 12:42 -!- GavinTong [71fe9b5d@gateway/web/freenode/ip.113.254.155.93] has left #go-nuts [] 12:44 -!- GavinTong_ [71fe9b5d@gateway/web/freenode/ip.113.254.155.93] has joined #go-nuts 12:49 -!- wrtp [~rog@92.17.26.29] has quit [Ping timeout: 240 seconds] 12:50 -!- GavinTong_ [71fe9b5d@gateway/web/freenode/ip.113.254.155.93] has quit [Quit: Page closed] 12:52 -!- GavinTong [71fe9b5d@gateway/web/freenode/ip.113.254.155.93] has joined #go-nuts 12:54 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 12:54 -!- wrtp [~rog@92.17.26.29] has joined #go-nuts 12:54 -!- geocalc [~geobsd@83.158.142.95] has joined #go-nuts 12:56 -!- GeoBSD [~geobsd@lns-bzn-23-82-248-79-26.adsl.proxad.net] has quit [Ping timeout: 246 seconds] 12:56 < GavinTong> Hi all, are there any advantage and drawback to write a kernel in GO? would you mind giving some opinion? thx 12:57 < jessta> GavinTong: there is a toy kernel written in Go 12:58 < bartbes> heh nice 12:58 < GavinTong> is it Tiny in the runtime pkg? 12:59 < jessta> yeah 12:59 -!- sioraiocht [~tomh@unaffiliated/sioraiocht] has joined #go-nuts 12:59 -!- sioraiocht [~tomh@unaffiliated/sioraiocht] has quit [Remote host closed the connection] 12:59 < bartbes> how do i use it? 13:00 < GavinTong> follow the readme, I just try it b4 13:01 < bartbes> what readme? 13:03 < GavinTong> inside the "go/src/pkg/runtime/tiny", is it? 13:04 < bartbes> oh 13:04 < bartbes> heh 13:04 < bartbes> ofc it's in src 13:04 < bartbes> :D 13:08 -!- thiago__ [~thiago@189.107.191.58] has joined #go-nuts 13:08 -!- wrtp [~rog@92.17.26.29] has quit [Ping timeout: 265 seconds] 13:10 -!- photron [~photron@port-92-201-95-193.dynamic.qsc.de] has quit [Read error: Operation timed out] 13:11 -!- wrtp [~rog@92.17.26.29] has joined #go-nuts 13:11 -!- artefon [~thiago@189.107.191.58] has quit [Ping timeout: 258 seconds] 13:33 -!- crashR [~crasher@codextreme.pck.nerim.net] has joined #go-nuts 13:33 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined #go-nuts 13:38 -!- ronny [~quassel@p4FF1CFE6.dip.t-dialin.net] has joined #go-nuts 13:44 -!- Xiaobo [~Xiaobo@114.243.78.128] has joined #go-nuts 13:51 -!- alloy-d [~adam@pool-71-125-149-202.cmdnnj.east.verizon.net] has joined #go-nuts 13:52 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit: This computer has gone to sleep] 13:57 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has joined #go-nuts 14:05 -!- Venom_X [~pjacobs@71.21.124.111] has joined #go-nuts 14:18 < sahid> someone an idea on how to fix this bug? http://goo.gl/mjO6 14:19 < DavidJones> isn't that a python problem? 14:20 < sahid> i dont think 14:20 < DavidJones> also it has a "Solved the issue by:" 14:23 -!- visof [~visof@unaffiliated/visof] has quit [Quit: Leaving] 14:24 < sahid> yes, i will try 14:27 -!- gid [~gid@220-253-151-50.VIC.netspace.net.au] has quit [Quit: Leaving.] 14:31 -!- wrtp_ [~rog@92.17.26.29] has joined #go-nuts 14:33 -!- wrtp_ [~rog@92.17.26.29] has quit [Remote host closed the connection] 14:33 -!- wrtp_ [~rog@92.17.26.29] has joined #go-nuts 14:34 -!- wrtp__ [~rog@92.17.26.29] has joined #go-nuts 14:35 -!- wrtp [~rog@92.17.26.29] has quit [Ping timeout: 246 seconds] 14:37 -!- Xiaobo [~Xiaobo@114.243.78.128] has quit [Quit: Leaving] 14:38 -!- wrtp_ [~rog@92.17.26.29] has quit [Ping timeout: 265 seconds] 14:41 -!- Kashia [~Kashia@port-92-200-61-111.dynamic.qsc.de] has joined #go-nuts 14:49 -!- thiago__ [~thiago@189.107.191.58] has quit [Quit: bye] 14:49 -!- wrtp [~rog@92.17.26.29] has quit [Remote host closed the connection] 14:50 -!- wrtp [~rog@92.17.26.29] has joined #go-nuts 14:50 -!- wrtp_ [~rog@92.17.26.29] has joined #go-nuts 14:53 -!- lmoura [~lauromour@200.184.118.130] has joined #go-nuts 14:54 -!- wrtp_ [~rog@92.17.26.29] has quit [Remote host closed the connection] 14:54 -!- wrtp [~rog@92.17.26.29] has quit [Ping timeout: 240 seconds] 14:54 -!- wrtp [~rog@92.17.26.29] has joined #go-nuts 15:08 < nsf> is it possible with utf-8 to move backwards? like I see this char in arbitary position and now I want to find out previous char 15:09 < exch> treat a string of utf8 characters as an array of runes instead of bytes. 15:10 < nsf> well, I can't do that 15:10 < exch> why not? 15:10 < taruti> why not? 15:10 < nsf> because I have a byte buffer and a position 15:10 < nsf> and I don't want to decode everything that is before that position 15:10 < taruti> you are decoding when searching 15:11 < nsf> I don't search! 15:11 < taruti> thus the problem becomes "how do I match /.x/ on a string" 15:11 < taruti> how do you know the position? 15:11 < nsf> just know it 15:12 < taruti> well if you sync back 4 bytes you can find the character boundary 15:12 < nsf> ok, I took a look at wiki 15:12 < nsf> it is possible with utf-8 to move backwards 15:13 < nsf> question answered 15:13 < ampleyfly> =) 15:15 < nsf> I should look at first two bytes, if it's 10 then the byte is a part of a sequence, if it's 11 or 0X (X as any byte) then it's a first byte of a sequence or a standalone char 15:15 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts 15:15 < nsf> bits*, sorry 15:16 < nsf> therefore it's possible to move backwards that way, which is great :) 15:17 -!- iant [~iant@62-20-124-50.customer.telia.com] has quit [Ping timeout: 260 seconds] 15:17 < nsf> and actually go utf8 lib has this function: utf8.RuneStart 15:18 < nsf> which is twice as great as it was before :) 15:19 -!- wrtp [~rog@92.17.26.29] has quit [Read error: Operation timed out] 15:21 -!- awidegreen [~quassel@62.176.237.78] has joined #go-nuts 15:31 -!- alloy-d [~adam@pool-71-125-149-202.cmdnnj.east.verizon.net] has quit [Ping timeout: 265 seconds] 15:31 -!- wrtp [~rog@92.17.26.29] has joined #go-nuts 15:35 -!- alloy-d [~adam@pool-71-125-149-202.cmdnnj.east.verizon.net] has joined #go-nuts 15:38 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has joined #go-nuts 15:40 -!- General13372 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has quit [Ping timeout: 260 seconds] 15:41 -!- wrtp [~rog@92.17.26.29] has quit [Ping timeout: 240 seconds] 15:42 -!- macroron [~ron@c-98-242-168-49.hsd1.fl.comcast.net] has joined #go-nuts 15:42 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.2] 15:43 -!- artefon [~thiagon@150.164.2.20] has joined #go-nuts 15:44 -!- carrus85 [~carrus85@64.0.193.15] has joined #go-nuts 15:48 -!- sakirious [~saki@c-98-223-212-96.hsd1.il.comcast.net] has quit [Read error: No route to host] 15:49 -!- wrtp [~rog@92.17.26.29] has joined #go-nuts 15:51 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has quit [Quit: Leaving] 15:55 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Quit: WeeChat 0.3.2] 15:56 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts 16:05 -!- GavinTong [71fe9b5d@gateway/web/freenode/ip.113.254.155.93] has quit [Quit: Page closed] 16:06 -!- xuwen [~xuwen@adsl-75-61-119-20.dsl.pltn13.sbcglobal.net] has quit [Remote host closed the connection] 16:06 < plexdev> http://is.gd/dCgxV by [Russ Cox] in go/test/ -- test: fail is for bad exit status only 16:06 < plexdev> http://is.gd/dCgyt by [Russ Cox] in go/src/cmd/8l/ -- fix build 16:07 < plexdev> http://is.gd/dCgyU by [Russ Cox] in 2 subdirs of go/src/ -- libmach: correct handling of .5 files with D_REGREG addresses 16:09 -!- sioraiocht [~tomh@unaffiliated/sioraiocht] has joined #go-nuts 16:10 -!- peterdn [~peterdn@cpc1-oxfd18-2-0-cust914.4-3.cable.virginmedia.com] has joined #go-nuts 16:11 -!- Kashia [~Kashia@port-92-200-61-111.dynamic.qsc.de] has quit [Quit: Leaving] 16:11 -!- Sh4pe [~david@dslb-088-066-056-065.pools.arcor-ip.net] has joined #go-nuts 16:12 -!- sioraiocht [~tomh@unaffiliated/sioraiocht] has quit [Remote host closed the connection] 16:16 -!- sioraiocht [~tomh@unaffiliated/sioraiocht] has joined #go-nuts 16:17 -!- Altercation [~Altercati@pdpc/supporter/active/altercation] has quit [Excess Flood] 16:17 -!- Altercation [~Altercati@pdpc/supporter/active/altercation] has joined #go-nuts 16:22 -!- kanru [~kanru@118-168-232-227.dynamic.hinet.net] has joined #go-nuts 16:32 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has quit [Quit: Ex-Chat] 16:38 -!- skelterjohn [~jasmuth@wsip-98-175-243-116.sd.sd.cox.net] has joined #go-nuts 16:40 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has quit [Quit: Verlassend] 16:44 -!- skelterjohn [~jasmuth@wsip-98-175-243-116.sd.sd.cox.net] has quit [Quit: skelterjohn] 16:45 -!- Guest56501 [~quassel@p4FF1CFE6.dip.t-dialin.net] has quit [Remote host closed the connection] 16:46 -!- Fish [~Fish@9fans.fr] has joined #go-nuts 16:49 -!- ExtraSpice [~XtraSpice@88.118.32.225] has quit [Quit: Leaving] 16:51 -!- willdye [~willdye@162.40.127.30] has joined #go-nuts 16:59 -!- photron [~photron@port-92-201-95-193.dynamic.qsc.de] has joined #go-nuts 17:03 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 17:09 -!- alloy-d [~adam@pool-71-125-149-202.cmdnnj.east.verizon.net] has quit [Quit: alloy-d] 17:13 -!- pjm0616 [~user@110.9.28.120] has quit [Ping timeout: 264 seconds] 17:14 -!- Adys [~Adys@unaffiliated/adys] has quit [Ping timeout: 265 seconds] 17:16 -!- Sacho [~sacho@213.91.244.15] has quit [Remote host closed the connection] 17:22 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 17:27 -!- pjm0616 [~user@110.9.28.120] has joined #go-nuts 17:31 -!- Ginto8 [~joe@pool-72-82-235-34.cmdnnj.fios.verizon.net] has joined #go-nuts 17:40 -!- kanru [~kanru@118-168-232-227.dynamic.hinet.net] has quit [Ping timeout: 264 seconds] 17:42 -!- Shyde [~shyde@HSI-KBW-078-043-070-132.hsi4.kabel-badenwuerttemberg.de] has joined #go-nuts 17:44 -!- sioraiocht [~tomh@unaffiliated/sioraiocht] has quit [Remote host closed the connection] 17:44 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has quit [Read error: Connection reset by peer] 17:46 -!- Shyde [~shyde@HSI-KBW-078-043-070-132.hsi4.kabel-badenwuerttemberg.de] has quit [Remote host closed the connection] 17:47 -!- tvw [~tv@212.79.9.150] has quit [Remote host closed the connection] 17:50 -!- tobiassjosten [~tobias@c-919ee253.04-114-73746f13.cust.bredbandsbolaget.se] has joined #go-nuts 17:56 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts 17:59 < tobiassjosten> The Read method for TCPConn takes argument "b []byte". What kind of data is that? 18:02 -!- jefferai [~quassel@kde/amarok/mitchell] has joined #go-nuts 18:03 -!- bmizerany [~bmizerany@c-24-6-37-113.hsd1.ca.comcast.net] has quit [Remote host closed the connection] 18:04 < tobiassjosten> Found an usage example: http://github.com/purex01/netsnail/blob/09e2cf24a17d1bbe881af9c8c88499e8d6c57380/src/delayproxy.go#L54 18:05 < exch> it will be filled with the received data 18:09 < jessta> tobiassjosten: yeah, the read method with attempt to read cap(b) bytes in to b, it will block until it does 18:12 < tobiassjosten> exch, jessta: How can i print that buffer? 18:14 < exch> if it's a slice, you can do string(mybuffer) 18:14 < exch> not sure if that works with a fixed size array. I dount it. In which case yuo'll have to extract the data as a slice first 18:14 < exch> *doubt 18:15 < exch> string(mybuffer[0:size]) should work 18:15 < exch> where siz eis the number of bytes that have been read 18:16 -!- wrtp [~rog@92.17.26.29] has quit [Read error: Connection reset by peer] 18:16 < exch> I find it a little more convenient to wrap the tcp connection in a bufio.Reader and/or Writer and use those to do the reading/writing 18:20 -!- peterdn [~peterdn@cpc1-oxfd18-2-0-cust914.4-3.cable.virginmedia.com] has quit [Ping timeout: 265 seconds] 18:20 < tobiassjosten> exch: That casted it correctly. Thanks! 18:20 < tobiassjosten> Woo! It's connected and printing. :D 18:20 < exch> yay :) 18:20 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 18:27 -!- wrtp [~rog@92.17.26.29] has joined #go-nuts 18:27 -!- thiago__ [~thiago@189.107.163.141] has joined #go-nuts 18:28 -!- bartbes [~bartbes@uapps.org] has left #go-nuts [] 18:29 -!- peterdn [~peterdn@cpc1-oxfd18-2-0-cust914.4-3.cable.virginmedia.com] has joined #go-nuts 18:30 -!- Adys [~Adys@unaffiliated/adys] has quit [Ping timeout: 265 seconds] 18:34 -!- mxweas [~max@c-98-225-102-170.hsd1.az.comcast.net] has joined #go-nuts 18:37 -!- wrtp [~rog@92.17.26.29] has quit [Ping timeout: 265 seconds] 18:40 -!- wrtp [~rog@92.17.26.29] has joined #go-nuts 18:44 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts 18:46 -!- bmizerany [~bmizerany@dsl081-064-072.sfo1.dsl.speakeasy.net] has joined #go-nuts 18:47 -!- tobik [~tobik@p54896FB6.dip.t-dialin.net] has quit [Read error: No route to host] 18:48 -!- tobik [~tobik@p54896FB6.dip.t-dialin.net] has joined #go-nuts 18:48 -!- tobik [~tobik@p54896FB6.dip.t-dialin.net] has quit [Read error: Connection reset by peer] 18:50 -!- wrtp_ [~rog@92.17.26.29] has joined #go-nuts 18:55 -!- wrtp [~rog@92.17.26.29] has quit [Ping timeout: 265 seconds] 18:57 -!- wrtp_ [~rog@92.17.26.29] has quit [Ping timeout: 264 seconds] 19:06 < kmeyer> jessta: cap(b) or len(b)? 19:09 -!- tvw [~tv@e176006135.adsl.alicedsl.de] has joined #go-nuts 19:10 -!- wrtp [~rog@92.17.26.29] has joined #go-nuts 19:18 -!- Adys [~Adys@cpc7-chap4-0-0-cust126.aztw.cable.virginmedia.com] has joined #go-nuts 19:18 -!- Adys [~Adys@cpc7-chap4-0-0-cust126.aztw.cable.virginmedia.com] has quit [Changing host] 19:18 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 19:19 -!- macroron [~ron@c-98-242-168-49.hsd1.fl.comcast.net] has quit [Quit: Leaving] 19:19 -!- mxweas [~max@c-98-225-102-170.hsd1.az.comcast.net] has quit [Ping timeout: 240 seconds] 19:20 -!- mxweas [~max@c-98-225-102-170.hsd1.az.comcast.net] has joined #go-nuts 19:21 -!- mxweas [~max@c-98-225-102-170.hsd1.az.comcast.net] has quit [Client Quit] 19:23 -!- Adys_ [~Adys@unaffiliated/adys] has joined #go-nuts 19:24 -!- Sacho [~sacho@79-100-169-151.btc-net.bg] has joined #go-nuts 19:24 < DavidJones> kmeyer ? 19:25 -!- Adys [~Adys@unaffiliated/adys] has quit [Ping timeout: 265 seconds] 19:26 -!- carllerche [~carllerch@enginey-9.border1.sfo002.pnap.net] has joined #go-nuts 19:27 -!- wrtp [~rog@92.17.26.29] has quit [Ping timeout: 276 seconds] 19:28 -!- wrtp [~rog@92.17.26.29] has joined #go-nuts 19:28 -!- wrtp_ [~rog@92.17.26.29] has joined #go-nuts 19:32 < kmeyer> DavidJones: ? 19:33 -!- wrtp [~rog@92.17.26.29] has quit [Ping timeout: 276 seconds] 19:34 < DavidJones> kmeyer: "cap or len" what do you mean? 19:42 < kmeyer> earlier jessta made a comment and mentioned cap(b). I thought it used len(b). That's all 19:43 < kmeyer> if you don't know what cap(b) and len(b) mean, read the tutorial 19:43 -!- Adys_ [~Adys@unaffiliated/adys] has quit [Quit: I ♥ Unicode] 19:44 < KirkMcDonald> Or the spec. 19:45 -!- wrtp [~rog@92.17.26.29] has quit [Read error: Connection reset by peer] 19:45 -!- wrtp [~rog@92.17.26.29] has joined #go-nuts 19:47 -!- Sh4pe [~david@dslb-088-066-056-065.pools.arcor-ip.net] has left #go-nuts [] 19:47 -!- Sh4pe [~david@dslb-088-066-056-065.pools.arcor-ip.net] has joined #go-nuts 19:48 -!- Sh4pe [~david@dslb-088-066-056-065.pools.arcor-ip.net] has left #go-nuts [] 19:48 < DavidJones> kmeyer, I know perfectly what cap and len mean 19:48 < DavidJones> kmeyer, I was just thinking you had a question about them 19:48 < DavidJones> kmeyer and wanted to help you ; ) 19:49 -!- Daryonius [~david@dslb-088-066-056-065.pools.arcor-ip.net] has joined #go-nuts 19:56 -!- Daryonius [~david@dslb-088-066-056-065.pools.arcor-ip.net] has left #go-nuts [] 19:56 -!- wrtp_ [~rog@92.17.26.29] has joined #go-nuts 19:57 -!- wrtp [~rog@92.17.26.29] has quit [Ping timeout: 246 seconds] 20:04 -!- ericfode [c0961605@gateway/web/freenode/ip.192.150.22.5] has joined #go-nuts 20:12 < kmeyer> ah, I see 20:13 -!- ericfode [c0961605@gateway/web/freenode/ip.192.150.22.5] has quit [Quit: Page closed] 20:15 -!- DavidJones [~DavidJone@dslb-084-056-107-143.pools.arcor-ip.net] has quit [Remote host closed the connection] 20:24 -!- wrtp_ [~rog@92.17.26.29] has joined #go-nuts 20:25 -!- wrtp_ [~rog@92.17.26.29] has quit [Remote host closed the connection] 20:25 -!- wrtp [~rog@92.17.26.29] has quit [Read error: Operation timed out] 20:25 -!- wrtp [~rog@92.17.26.29] has joined #go-nuts 20:26 -!- wrtp [~rog@92.17.26.29] has quit [Client Quit] 20:32 < tobiassjosten> I'm having some problems with threading in Go. Would anyone be so kind and check my 59 lines of code out and tell me why it's not printing output from the server it connects to? http://pastebin.com/A1Qv9558 20:35 < Ginto8> threading? you mean goroutines? 20:35 < tobiassjosten> Ginto8: Yeah, those. :) 20:36 -!- bartbes [~bartbes@uapps.org] has joined #go-nuts 20:36 < Ginto8> is this supposed to be an intermediate server or something? 20:37 -!- bmizerany [~bmizerany@dsl081-064-072.sfo1.dsl.speakeasy.net] has quit [Read error: Connection reset by peer] 20:37 -!- bmizerany [~bmizerany@209.sub-75-208-206.myvzw.com] has joined #go-nuts 20:38 < tobiassjosten> Ginto8: Exactly, a proxy. 20:38 < Ginto8> hm 20:39 -!- Fish [~Fish@9fans.fr] has quit [Remote host closed the connection] 20:46 -!- sioraiocht [~tomh@unaffiliated/sioraiocht] has joined #go-nuts 20:53 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 21:07 -!- Ginto8 [~joe@pool-72-82-235-34.cmdnnj.fios.verizon.net] has quit [Remote host closed the connection] 21:08 -!- Ginto8 [~joe@pool-72-82-235-34.cmdnnj.fios.verizon.net] has joined #go-nuts 21:12 -!- thiago__ [~thiago@189.107.163.141] has quit [Quit: bye] 21:16 -!- JayWork [~jwilliams@wsip-98-174-186-109.ok.ok.cox.net] has joined #go-nuts 21:17 < JayWork> Hey guys.. Anyone know if there's a way to get the length of the Request.Body buffer from http when ContentLength is -1? 21:31 < JayWork> I don't want to set a static buffer, so I'm not sure how else to do it 21:31 < JayWork> this is my first from-scratch go project 21:33 -!- tobiassjosten [~tobias@c-919ee253.04-114-73746f13.cust.bredbandsbolaget.se] has quit [Ping timeout: 240 seconds] 21:35 < Ginto8> JayWork: lemme look up what a Request.Body buffer is =P 21:35 < JayWork> mmk. It's in the http package 21:35 < Ginto8> yep 21:35 < MaybeSo> I think it's an io.ReadCloser made up of a struct holding the buffered reader and the actual socket 21:36 < Ginto8> yes 21:37 < Ginto8> you want a buffer (aka []byte) and read in all the data, check the length of the read, and if there's an EOF 21:38 < Ginto8> then concatenate it to another buffer that will be the final product 21:38 < Ginto8> the final product can be a string 21:38 < Ginto8> you just have to cast from the []byte explicitly 21:39 < JayWork> Wait... so I can just say []byte and not give it a size and it'll do it dynamically? 21:39 < JayWork> buf_size = response.ContentLength; buf := make ([]byte, buf_size); is what I had.. but ContentLength is giving me -1 a lot 21:40 < Ginto8> then have a default buffer size 21:40 -!- jhawk28 [~jhawk28@72.40.31.201] has joined #go-nuts 21:40 < Ginto8> and then read until there isn't anything left in the Body buffer 21:40 < Ginto8> actually 21:41 < JayWork> So like fgetc style where you read until there's not an error? 21:41 < Ginto8> wait 21:41 < JayWork> until theres an error** 21:41 < Ginto8> one sec 21:41 < JayWork> ok 21:41 < Ginto8> theres a func to read in a whole io.Reader and spit out a []byte 21:41 < Ginto8> or not 21:41 < Ginto8> look into io.ReadFull 21:42 < Ginto8> no wait 21:42 < Ginto8> look up ioutil.ReadAll 21:42 < Ginto8> it reads a whole io.Reader buffer and returns a []byte 21:43 < Ginto8> anyway good luck I'll bbl if you're still having trouble 21:44 < JayWork> Alright, thanks :D 21:48 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Ping timeout: 246 seconds] 21:50 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts 21:56 -!- terrex [~terrex@84.122.67.111.dyn.user.ono.com] has joined #go-nuts 22:00 -!- skelterjohn [~jasmuth@wsip-98-175-243-116.sd.sd.cox.net] has joined #go-nuts 22:03 -!- angasule [~angasule@190.2.33.49] has joined #go-nuts 22:06 -!- skelterjohn [~jasmuth@wsip-98-175-243-116.sd.sd.cox.net] has quit [Quit: skelterjohn] 22:11 -!- awidegreen [~quassel@62.176.237.78] has quit [Remote host closed the connection] 22:11 -!- skelterjohn [~jasmuth@wsip-98-175-243-116.sd.sd.cox.net] has joined #go-nuts 22:15 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has quit [Quit: Verlassend] 22:19 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Ping timeout: 265 seconds] 22:22 < JayWork> Anyone know of anyone working on a Go compiler in Go and/or a Go OS? 22:23 < i__> i only know of http://gitorious.org/gogo 22:24 < exch> For a Go OS you need a runtime that is entirely independent of libc and such. There has been some work in that department, but I'm not sure what it's state is 22:25 < JayWork> exch, Yeah.. I wrote an OS in D when that came out and got the runtime stuff working 22:25 < JayWork> I just didn't know if anyone had worked on it for Go yet 22:25 < exch> there is a tiny go runtime for 386 architecture somewhere 22:25 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org] 22:25 < exch> i'm trying to find it atm 22:27 < exch> https://code.google.com/p/go/source/browse/src/pkg/runtime/tiny/README?r=5b03f43f67486d9e39c2e82434bffa0e5c14fbff 22:28 < exch> the source is also in your go dir. $GOROOT/src/pkg/runtime/tiny 22:30 < JayWork> Ahh.. sweet. 22:31 < JayWork> i'll see if I can get basic fmt working 22:31 < JayWork> inside it's on OS that is * :) 22:34 < MaybeSo> anyone here use the go ebnf library? 22:45 -!- tobiassjosten [~tobias@c-919ee253.04-114-73746f13.cust.bredbandsbolaget.se] has joined #go-nuts 22:47 -!- tvw [~tv@e176006135.adsl.alicedsl.de] has quit [Remote host closed the connection] 22:47 -!- MizardX [~MizardX@unaffiliated/mizardx] has quit [Ping timeout: 276 seconds] 22:48 < tobiassjosten> What's the state of regexp in Go? I noticed it's quite slow but I also found discussions about it being worked on. 22:49 < exch> it's a very simple implementation. Missing a fair bit of stuff to. Apparently there's a go port of RE2 in the works, but I haven't seen it yet 22:51 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts 22:52 < tobiassjosten> exch: A shame. :/ That's a critical part of the project I was going to build in Go. 22:52 < Ginto8> tobiassjosten: yeah atm it's just stopgap 22:53 < MaybeSo> tobiassjosten: right now I'd say it was unusable unless you don't plan to execute it often (e.g., I'd consider using it once to validate a command line input argument, but wouldn't use it to check hundreds of lines of input) 22:54 < Ginto8> it might be a good idea to create a pipe and spawn a child sed/grep process to retrieve data 22:55 < Ginto8> that may actually be a little faster 22:55 < Ginto8> idk tho I'm kinda clueless with that stuff =/ 22:55 < tobiassjosten> Ginto8: Worth trying. 22:55 < tobiassjosten> I'll be parsing lots of small text snippets and patterns though, so maybe the overhead makes it not worth it. But I'll try. 22:56 < Ginto8> tobiassjosten: you may even be able to use a C regexp library via cgo 22:56 < tobiassjosten> And regexp is bulky and slow in all implementations, so maybe I should look for alternatives anyway. 22:57 < tobiassjosten> Ginto8: cgo? I'll look that up. Thanks! 22:57 < Ginto8> that too =P 22:57 < Ginto8> cgo is an amazingly useful tool for go 22:57 < Ginto8> I'm using it to interface with SDL/OpenGL for my current project 22:59 < tobiassjosten> Ginto8: What are you building? 23:00 < Ginto8> currently a graphics engine for a game, I'll probably end up making a platformer/shooter along the lines of teeworlds 23:01 < tobiassjosten> Cool. Sounds like quite the undertaking. :) 23:01 < Ginto8> yes it is 23:01 < Ginto8> but I need to make something worth showing off 23:01 < Ginto8> and this'll be it 23:01 < Ginto8> ;) 23:06 -!- skelterjohn [~jasmuth@wsip-98-175-243-116.sd.sd.cox.net] has quit [Quit: skelterjohn] 23:06 < tobiassjosten> So I'm building a proxy, where I dial a TCP connection and start listening for incoming connections. Problem is I can't seem to get around either of them blocking reading/writing of the other. Can Go work asynchronous/"event-based" with this, somehow? 23:06 < Ginto8> tobiassjosten: buffered channels? 23:07 < tobiassjosten> Ginto8: I tried that, I think, but it wont work. Either the client or the server connection keeps blocking the other. 23:07 < Ginto8> look at the $GOROOT/GoDay*.pdf's 23:07 < Ginto8> hm 23:08 < tobiassjosten> http://pastebin.com/UTPEy5AR is my current code. 23:08 < Ginto8> ah 23:08 < tobiassjosten> Checking those PDFs. 23:08 < Ginto8> SetTimeout() 23:08 < Ginto8> look at Conn.SetTimeout() 23:08 < Ginto8> http://golang.org/pkg/net/#Conn 23:09 < tobiassjosten> Takes an integer. Does that mean it'll block for a minimum of one second? That's a bit too much I'm afraid. 23:10 < Ginto8> SetReadTimeout sets the time (in nanoseconds) 23:10 < Ginto8> same for SetWriteTimeout and SetTimeout 23:10 < Ginto8> right from the comments on the Conn interface 23:11 < tobiassjosten> Ohh, I missed that part. :) 23:11 < Ginto8> ok I'll bbl 23:11 < tobiassjosten> Feels kind of like a hack though, don't you think? 23:11 < Ginto8> a little 23:11 < Ginto8> not really 23:11 < Ginto8> unless you have another goroutine 23:12 < Ginto8> and let that one hang 23:12 < Ginto8> and have a buffered channel 23:12 < Ginto8> so the main ones don't hang 23:12 < Ginto8> also look into the "comma ok" idiom 23:12 < Ginto8> anyway bye 23:12 < tobiassjosten> Ginto8: Thanks for the help! 23:16 < exch> tobiassjosten: my irc thingy in go has 2 go routines that get spawned after connecting to the irc server. One routine does the reading, the other the writing. They both use buffered channels to read/write data to/from. The main 'thread' is the blocking one which simply polls the incoming channel or data and handles it as needed. From there you can write data into the ougoing channel whenever you want. 23:16 -!- kanru [~kanru@118-168-236-243.dynamic.hinet.net] has joined #go-nuts 23:17 < tobiassjosten> exch: Sounds like I could learn from that. Would you mind sharing (some of) your code? 23:17 < exch> http://github.com/jteeuwen/calculon/blob/master/bot/net/network.go and http://github.com/jteeuwen/calculon/blob/master/bot/main.go#L39 show how that works 23:18 < tobiassjosten> exch: Awesome! 23:18 -!- thiago__ [~thiago@189.107.224.222] has joined #go-nuts 23:20 < exch> Incidentally, that program uses the current go regexp package to parse all incoming irc data. it works, but it is a bit of a hack and not very fast as far as I can tell. So while it works, you may want to go for something else if you need speed 23:21 < tobiassjosten> exch: Right. Even more juicy reading for my specific case then. :) 23:21 < exch> should be fun then :) 23:21 < tobiassjosten> Is there a coding standard for Go that promotes tab for indention? 23:22 < exch> I prefer tabs myself, but you can use spaces. I do think 4 spaces are the accepted standard there 23:22 < exch> the gofmt tool converts spaces to tabs by default, unless you specify some commandline flag I believe 23:23 < tobiassjosten> I prefer tabs as well but have yet to work with a project where that's the standard. So I was hoping. :P 23:24 < tobiassjosten> exch: Whoa! Nice track record for Go packages there. 23:24 < exch> I've been busy :p 23:25 < tobiassjosten> exch: Why is you network.go in the "main" package and not in a "network" one like how I've seen others do? 23:26 < exch> because in this particular app I don't need it in any other apps/packages 23:26 < exch> So may as well just put in with the rest of the app 23:26 < exch> Putting code in separate packages is really only usful if you are going to reuse the code in several places 23:27 < tobiassjosten> Makes sense. 23:28 -!- Venom_X [~pjacobs@71.21.124.111] has quit [Quit: Venom_X] 23:28 <+danderson> you can buy a protective sleeve for it that will solve the connection issues however! 23:28 <+danderson> gah, fail 23:37 < tobiassjosten> This line: func (this *Network) Open() (err os.Error) { 23:38 < tobiassjosten> As I understand it, it defines the Open() method for the Network "class". But what is the "(err os.Error)" part? 23:40 < exch> it defines the return type as os.Error 23:40 < exch> and err names it explicitely 23:40 < exch> it's the same as saying just 'os.Error' and then manually defining the err var inside the function 23:41 < tobiassjosten> Ahh. 23:44 * araujo greets around 23:50 -!- jhawk28 [~jhawk28@72.40.31.201] has quit [Ping timeout: 265 seconds] 23:50 < Ginto8> tobiassjosten: you should at least skim the spec, it goes over stuff like that ;) 23:51 < Ginto8> that and the tuts on the website 23:51 < tobiassjosten> Ginto8: Oh I am, in tiny chunks. It's a bit much to take in at once so I try some trial and error. Sorry for noobing out, I'll RTFM better. ;) 23:52 < Ginto8> no it's fine 23:52 < Ginto8> just makin sure you put it on the agenda 23:53 < Ginto8> cuz go's spec is actually a fairly easy read (as far as specs go), and it's definitely worth it --- Log closed Fri Jul 23 00:00:05 2010