--- Log opened Fri May 20 00:00:50 2011
00:00 -!- gtaylor [~gtaylor@199.15.144.250] has joined #go-nuts
00:04 -!- iant [~iant@216.239.45.130] has quit [Ping timeout: 240 seconds]
00:07 -!- iant [~iant@216.239.45.130] has joined #go-nuts
00:07 -!- mode/#go-nuts [+v iant] by ChanServ
00:09 -!- GeertJohan [~Squarc@D978EC5D.cm-3-1d.dynamic.ziggo.nl] has quit [Quit:
Leaving.]
00:14 -!- jeff_t [266366a5@gateway/web/freenode/ip.38.99.102.165] has joined
#go-nuts
00:15 < jeff_t> hi i am trying to find where the builtin function range is
defined.  can anyone direct me to where i can look?
00:16 < str1ngs> jeff_t: think runtime.c for built in's not 100% sure though
00:16 < str1ngs> jeremy_c: look like that pull was merged.
00:17 -!- jamesr [~jamesr@173-164-251-190-SFBA.hfc.comcastbusiness.net] has quit
[Quit: Leaving]
00:18 < jeremy_c> str1ngs: nice, thanks for that!
00:18 < str1ngs> jeremy_c: np
00:18 < jeff_t> str1ngs: this file?
http://golang.org/src/pkg/runtime/runtime.c?h=runtime.c
00:18 < skelterjohn> jeff_t: it will be defined in assembly
00:19 < skelterjohn> what exactly are you trying to find out?  maybe we can
help
00:21 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit
[Read error: Connection reset by peer]
00:21 -!- jamesr [~jamesr@173-164-251-190-SFBA.hfc.comcastbusiness.net] has joined
#go-nuts
00:22 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined
#go-nuts
00:23 < jeff_t> skelterjohn: i'm currently trying to figure out how go
figures out that it has reached the end of a string
00:23 < jeff_t> skelterjohn: i know that the range function will iterate
correctly over unicode characters in the a string, so i was hoping to look at the
range builtin to get some clues on what they are doing
00:24 < skelterjohn> i see
00:24 < skelterjohn> i can't help you, personally.
00:24 < jeff_t> skelterjohn: im hoping to find where some of the builtins
could be defined
00:25 < skelterjohn> i think you'll need to look in the compiler source
00:25 < skelterjohn> i don't believe you'll find them in the runtime
00:25 -!- gtaylor [~gtaylor@199.15.144.250] has quit [Quit: gtaylor]
00:25 < skelterjohn> but i'm not sure.  you might ask the mailing list
00:25 < str1ngs> ya I think runtime is wrong
00:25 < str1ngs> that for stuff like print
00:25 -!- tvw [~tv@e176006213.adsl.alicedsl.de] has quit [Ping timeout: 246
seconds]
00:26 < str1ngs> was not thinking straight
00:26 < jeff_t> ok i will browse around, thank you guys
00:26 < str1ngs> jeff_t: my guess is that it uses the underlying array
00:27 < skelterjohn> yeah....  go strings are not C strings - they come with
length information
00:27 < skelterjohn> so it probably just counts to the declared length
00:27 < str1ngs> jeff_t: http://golang.org/doc/go_spec.html#String_types
00:27 < jeff_t> that would make sense, i figured it would be something like
that
00:28 < jeff_t> i was hoping that i would be able to do some pointer
arithmetic, but that might not be the case
00:28 < skelterjohn> go frowns upon pointer arithmetic
00:28 < skelterjohn> and provides a number of tools to make it unnecessary
00:29 < jeff_t> i had not realized that
00:29 < jeff_t> thank you for the tip
00:30 < skelterjohn> you can't, for instance, add 1 to a pointer in go
00:30 < skelterjohn> that would be treating the pointer as the head of an
array, which is a Cism that go has not borrowed
00:30 < skelterjohn> instead, you use a slice type
00:30 < skelterjohn> and aslice+1 becomes aslice[1:]
00:31 -!- foocraft_ [~ewanas@78.101.128.89] has joined #go-nuts
00:31 < jeff_t> interesting
00:31 < skelterjohn> think of how many hacks would never have worked if C
strings weren't arbitrarily long and null terminated :)
00:32 < jeff_t> having gone through the trouble learning all the hacks in
school, i am almost used to them by now :)
00:33 < skelterjohn> i'm thinking about malicious hacks
00:33 < skelterjohn> buffer overflows
00:33 < jeff_t> ah that is great point
00:35 -!- _foocraft [~ewanas@78.101.181.81] has quit [Ping timeout: 246 seconds]
00:35 -!- whitespacechar [~whitespac@24-247-159-7.dhcp.klmz.mi.charter.com] has
quit [Quit: whitespacechar]
00:36 < jeff_t> ty for the tip on slices vs pointer arithmetic, i am going
to go try a few experiments
00:38 < skelterjohn> cool
00:39 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has joined
#go-nuts
00:41 -!- twopoint718 [~chris@fsf/member/twopoint718] has quit [Ping timeout: 260
seconds]
00:42 -!- twopoint718 [~chris@fsf/member/twopoint718] has joined #go-nuts
00:43 -!- jeff_t [266366a5@gateway/web/freenode/ip.38.99.102.165] has quit [Quit:
Page closed]
00:45 -!- whitespacechar [~whitespac@24-247-159-7.dhcp.klmz.mi.charter.com] has
joined #go-nuts
00:45 -!- hallas [~hallas@x1-6-30-46-9a-b2-c5-1f.k891.webspeed.dk] has left
#go-nuts []
00:46 -!- [def] [~tobi@CPE0026f3373198-CM0026f3373195.cpe.net.cable.rogers.com]
has quit [Quit: [def]]
00:51 -!- foocraft_ [~ewanas@78.101.128.89] has quit [Ping timeout: 260 seconds]
00:54 -!- pamera1 [~Pam@c-76-102-255-99.hsd1.ca.comcast.net] has joined #go-nuts
00:56 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Quit:
Leaving...]
00:56 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
00:57 -!- pamera [~Pam@c-76-102-255-99.hsd1.ca.comcast.net] has quit [Ping
timeout: 246 seconds]
01:00 -!- nighty__ [~nighty@210.188.173.245] has joined #go-nuts
01:00 < manveru> good morning folks
01:00 < chomp> howdy
01:01 < chomp> so does the goruntime trap SIGINT and ignore it?
01:01 < manveru> not here
01:02 < chomp> i didn't think it was before, but i'm sitting in an tcp
accept() loop and cant break it
01:02 < chomp> annoying
01:02 < manveru> heh
01:02 < chomp> and im having to send SIGKILL from another terminal
01:03 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has joined #go-nuts
01:08 < skelterjohn> is SIGINT the result of ^C?
01:08 < chomp> yes
01:08 < skelterjohn> because that usually works for me
01:08 -!- tncardoso [~thiago@189.115.130.173] has quit [Read error: Connection
reset by peer]
01:08 < chomp> yeah, that's what i thought
01:09 < manveru> chomp: maybe a package you use?
01:09 < chomp> manveru, i thought it was something funky related to the
forking and tty control i was doing, but at this point i have a program that is
literally just a l:=net.Listen() and a for { l.Accept() }
01:09 < chomp> same result
01:10 < skelterjohn> pastebin the code, i'll see if i have the same prob
01:10 < chomp> looking into Accept code now :o
01:10 < manveru> uhm
01:10 < manveru> maybe you should throttle that a bit :)
01:11 < manveru> next := make(chan bool); for{ l.Accept(next); <-next }
01:11 < manveru> something like that
01:11 < skelterjohn> if he isn't getting any incoming connections why should
he throttle it?
01:11 < chomp> gah.  my totally clean test case doesn't reproduce the
problem
01:12 < manveru> no idea...
01:13 -!- whitespacechar [~whitespac@24-247-159-7.dhcp.klmz.mi.charter.com] has
quit [Quit: whitespacechar]
01:15 < chomp> i think it's the os/signal package
01:15 -!- whitespacechar [~whitespac@24-247-159-7.dhcp.klmz.mi.charter.com] has
joined #go-nuts
01:16 < chomp> yup.  that be it.
01:16 < chomp> i guess that makes sense :)
01:16 < chomp> how else coudl the signal.Incoming channel work unless it
trapped everything
01:19 < chomp> os.signal.init() calls runtime.Siginit() which then traps all
signals and forwards them to the os.signal.Incoming channel.  clever, but i think
i might prefer that initialization to be made explicit
01:35 -!- m4dh4tt3r [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has quit [Quit:
Leaving.]
01:41 -!- B00p [~mgray@li226-224.members.linode.com] has quit [Quit: Lost
terminal]
01:49 -!- TMKCodes [~TMKCodes@unaffiliated/tmkcodes] has quit [Ping timeout: 260
seconds]
02:06 -!- tobym [~tobym@cpe-72-229-2-6.nyc.res.rr.com] has quit [Ping timeout: 276
seconds]
02:12 -!- ab3 [~abe@ip-83-134-145-47.dsl.scarlet.be] has quit [Ping timeout: 250
seconds]
02:16 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has joined #go-nuts
02:17 -!- whitespacechar [~whitespac@24-247-159-7.dhcp.klmz.mi.charter.com] has
quit [Quit: whitespacechar]
02:18 -!- whitespacechar [~whitespac@24-247-159-7.dhcp.klmz.mi.charter.com] has
joined #go-nuts
02:19 -!- elephants [~elephants@173-230-160-81.cable.teksavvy.com] has joined
#go-nuts
02:22 -!- dfr|mac_ [~dfr|work@ool-182e3fca.dyn.optonline.net] has joined #go-nuts
02:23 -!- fvbommel [~fvbommel_@86.86.15.250] has quit [Ping timeout: 246 seconds]
02:23 -!- aho [~nya@fuld-590c7616.pool.mediaWays.net] has quit [Quit:
EXEC_over.METHOD_SUBLIMATION]
02:25 -!- sunfmin [~sunfmin@115.238.44.108] has joined #go-nuts
02:25 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has quit [Ping
timeout: 246 seconds]
02:26 -!- jep200404 [~jep@cpe-204-210-242-157.columbus.res.rr.com] has quit [Quit:
using sirc version 2.211+KSIRC/1.3.12]
02:31 -!- sunfmin [~sunfmin@115.238.44.108] has quit [Remote host closed the
connection]
02:32 -!- sunfmin [~sunfmin@ec2-50-18-7-14.us-west-1.compute.amazonaws.com] has
joined #go-nuts
02:34 -!- angasule_ [~angasule@190.2.33.49] has quit [Ping timeout: 246 seconds]
02:35 -!- keithcascio [~keithcasc@nat/google/x-dvxuzyqqrragdqtn] has quit [Quit:
Leaving]
02:37 -!- sunfmin [~sunfmin@ec2-50-18-7-14.us-west-1.compute.amazonaws.com] has
quit [Ping timeout: 276 seconds]
02:46 -!- rejb [~rejb@p4FD7466A.dip.t-dialin.net] has quit [Ping timeout: 246
seconds]
02:46 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
02:59 -!- Sep102_ [~Sep102@c-71-231-176-153.hsd1.wa.comcast.net] has joined
#go-nuts
02:59 -!- twopoint718 [~chris@fsf/member/twopoint718] has quit [Ping timeout: 246
seconds]
03:00 -!- bubb [~strings@S01065cd9985ba2e7.va.shawcable.net] has joined #go-nuts
03:01 -!- bubb [~strings@S01065cd9985ba2e7.va.shawcable.net] has quit [Quit: bubb]
03:01 -!- bubb [~strings@S01065cd9985ba2e7.va.shawcable.net] has joined #go-nuts
03:02 -!- Sep102__ [~Sep102@c-71-231-176-153.hsd1.wa.comcast.net] has quit [Ping
timeout: 246 seconds]
03:02 -!- elephants [~elephants@173-230-160-81.cable.teksavvy.com] has quit
[Remote host closed the connection]
03:05 -!- boscop [~boscop@unaffiliated/boscop] has quit [Ping timeout: 250
seconds]
03:08 -!- bubb [~strings@S01065cd9985ba2e7.va.shawcable.net] has quit [Quit: bubb]
03:10 < chomp> sooo.  what would you expect this code to output:
http://pastie.org/1929856
03:11 -!- boscop [~boscop@unaffiliated/boscop] has joined #go-nuts
03:12 < chomp> i would expect to see lots of "Going." until the system
choked on resources
03:12 < chomp> instead, 5 lines of "Going." are output and then the process
just hangs
03:13 < chomp> as in the runtime is blocking on trying to start a 5th
goroutine
03:14 < chomp> and in fact, it chokes trying to create the ($GOMAXPROCS+1)th
goroutine
03:17 < Namegduf> chomp: Goroutines are scheduled cooperatively.
03:18 < Namegduf> This means that a goroutine which does absolutely nothing
but busyloop may never yield the CPU.
03:18 < str1ngs> ya this is pretty extreme
03:18 < Namegduf> Sending on a channel, allocating, or doing a syscall all
(potentially) yield
03:18 < chomp> i figured as much, but this leads me to wonder what
operations do guarantee a chance at preemption
03:18 < Namegduf> So it isn't a problem in most real code; if it is, you
need to explicitly yield.
03:18 < chomp> ah ok
03:18 < Namegduf> That's from memory
03:19 < chomp> but there is some well defined set of operations
03:19 < Namegduf> Yes.
03:20 < chomp> Ah, and i can call runtime.Gosched() if i want to be explicit
about it
03:20 < Namegduf> Yes.
03:20 -!- niemeyer [~niemeyer@200-102-196-125.pltce701.dsl.brasiltelecom.net.br]
has quit [Ping timeout: 240 seconds]
03:20 < chomp> thanks, this makes sense.
03:21 -!- Viriix [~joseph@c-67-169-172-251.hsd1.ca.comcast.net] has joined
#go-nuts
03:22 -!- benjack [~benjack@bb121-7-168-23.singnet.com.sg] has joined #go-nuts
03:22 < chomp> that's really useful information.  i had assumed that there
was some mechanism to allow pre-emption of a goroutine at any time.  that would be
slow and terrible though.
03:24 -!- tav [~tav@92.7.109.93] has quit [Ping timeout: 260 seconds]
03:30 -!- Viriix [~joseph@c-67-169-172-251.hsd1.ca.comcast.net] has left #go-nuts
["Leaving"]
03:33 -!- tav [~tav@92.7.109.93] has joined #go-nuts
03:36 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit
[Read error: Connection reset by peer]
03:36 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Quit:
Linkinus - http://linkinus.com]
03:37 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined
#go-nuts
03:48 -!- tylerl [18fbe8ab@gateway/web/freenode/ip.24.251.232.171] has left
#go-nuts []
03:48 -!- gtaylor [~gtaylor@97-95-231-85.dhcp.sffl.va.charter.com] has joined
#go-nuts
03:49 -!- whitespacechar [~whitespac@24-247-159-7.dhcp.klmz.mi.charter.com] has
quit [Quit: whitespacechar]
03:50 -!- tylerl [~tylerl@ip24-251-232-171.ph.ph.cox.net] has joined #go-nuts
04:03 -!- benjack [~benjack@bb121-7-168-23.singnet.com.sg] has quit [Quit:
Leaving.]
04:04 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has joined #go-nuts
04:05 -!- tobym [~tobym@cpe-72-229-2-6.nyc.res.rr.com] has joined #go-nuts
04:14 -!- rejb [~rejb@unaffiliated/rejb] has quit [Disconnected by services]
04:14 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
04:15 -!- dsymonds [~dsymonds@nat/google/x-kucsvdzfeykayelv] has joined #go-nuts
04:22 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has quit [Ping
timeout: 276 seconds]
04:26 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has joined #go-nuts
04:27 -!- Bigbear1 [~Cody@d173-181-43-12.abhsia.telus.net] has joined #go-nuts
04:30 -!- muke [~doobies@75-59-237-124.lightspeed.sntcca.sbcglobal.net] has joined
#go-nuts
04:33 -!- tobym [~tobym@cpe-72-229-2-6.nyc.res.rr.com] has quit [Ping timeout: 264
seconds]
04:34 < nteon> is tehre a way to print out a stacktrace for all running
goroutines
04:34 < nteon> ?
04:35 -!- dfr|mac_ [~dfr|work@ool-182e3fca.dyn.optonline.net] has quit [Remote
host closed the connection]
04:35 < vsmatck> If you panic it will do that.
04:36 < nteon> vsmatck: can I instigate a panic in an already running go
app?
04:37 < vsmatck> nteon: not sure.  That's an interesting question.
04:37 < dsymonds> panic("aaaaargh!  zombies!")
04:37 < dsymonds> or, from outside, send it a signal like SIGBUS
04:37 < dsymonds> assuming it's not catching signals
04:38 < vsmatck> Assuming you can modify the program I like dsymonds idea.
04:38 < vsmatck> Like if it's not currently running.
04:39 < nteon> it was currently running
04:39 < nteon> kill -BUS $PID worked great :)
04:40 < vsmatck> Neat!  Well I learned something new.  :D
04:43 < nteon> i need to learn how to use gdb better...  i could see all the
goroutines by attaching but I'm so slow at doing anything in it that a panic is
just easier
04:45 < nteon> hahaha
04:45 < nteon> god go is awesome
04:46 < nteon> debugging go applications is _easy_
04:47 * vsmatck doesn't miss debugging template errors in C++.
04:50 < str1ngs> mah uber awesome clock https://gist.github.com/982382
04:52 < vsmatck> That's neat.  I hadn't seen time.Tick before.
04:53 -!- boscop [~boscop@unaffiliated/boscop] has quit [Ping timeout: 246
seconds]
04:57 -!- pearle [~pearle@blk-224-181-222.eastlink.ca] has quit [Ping timeout: 246
seconds]
05:00 -!- Bigbear1 [~Cody@d173-181-43-12.abhsia.telus.net] has left #go-nuts []
05:01 -!- zcram [~zcram@77-233-76-121.cdma.dyn.kou.ee] has joined #go-nuts
05:01 -!- Bigbear1 [~Cody@d173-181-43-12.abhsia.telus.net] has joined #go-nuts
05:02 -!- wallerdev [~wallerdev@72.44.102.30] has quit [Quit: wallerdev]
05:03 -!- fabled [~fabled@83.145.235.194] has joined #go-nuts
05:05 -!- Bigbear1 [~Cody@d173-181-43-12.abhsia.telus.net] has left #go-nuts []
05:12 -!- gtaylor [~gtaylor@97-95-231-85.dhcp.sffl.va.charter.com] has quit [Quit:
gtaylor]
05:17 -!- ExtraSpice [XtraSpice@78-57-204-104.static.zebra.lt] has joined #go-nuts
05:27 -!- edsrzf [~edsrzf@122-61-221-144.jetstream.xtra.co.nz] has joined #go-nuts
05:27 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has quit
[Ping timeout: 240 seconds]
05:30 -!- dsymonds [~dsymonds@nat/google/x-kucsvdzfeykayelv] has quit [Quit:
dsymonds]
05:38 < nteon> phew.  updating this server from centos 5 to centos 5.6 fixes
the failing go unit tests :-P
05:38 < nteon> centos 5 is OLD
05:55 -!- mibocote_ [~matt@bluemavid.com] has quit [Ping timeout: 264 seconds]
05:55 -!- zanget [~zanget@hurf.durf.me] has quit [Ping timeout: 264 seconds]
05:55 -!- kuroneko [~chris@yayoi.xware.cx] has quit [Ping timeout: 264 seconds]
05:56 -!- iant [~iant@216.239.45.130] has quit [Ping timeout: 276 seconds]
05:56 -!- xb95 [~xb95@dreamwidth/staff/mark] has quit [Ping timeout: 246 seconds]
05:56 -!- xb95 [~xb95@qq.is] has joined #go-nuts
05:56 -!- xb95 [~xb95@qq.is] has quit [Changing host]
05:56 -!- xb95 [~xb95@dreamwidth/staff/mark] has joined #go-nuts
05:56 -!- juster [~juster@juster.us] has quit [Ping timeout: 260 seconds]
05:58 -!- juster [~juster@juster.us] has joined #go-nuts
05:58 -!- zanget [~zanget@hurf.durf.me] has joined #go-nuts
06:01 -!- jarsen [~jarsen@76.8.206.21] has joined #go-nuts
06:02 < jarsen> has the source code for the mustachio app presented in
Google IO been released?
06:04 -!- mibocote [~matt@bluemavid.com] has joined #go-nuts
06:04 -!- kuroneko [~chris@yayoi.xware.cx] has joined #go-nuts
06:12 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts
06:12 -!- mode/#go-nuts [+v iant] by ChanServ
06:26 -!- jarsen [~jarsen@76.8.206.21] has quit [Remote host closed the
connection]
06:28 -!- ExtraSpice [XtraSpice@78-57-204-104.static.zebra.lt] has quit [Ping
timeout: 276 seconds]
06:30 -!- fvbommel [~fvbommel_@86.86.15.250] has joined #go-nuts
06:33 -!- chomp [~chomp@c-67-186-35-69.hsd1.pa.comcast.net] has quit [Quit:
Leaving]
06:33 -!- ExtraSpice [XtraSpice@78-57-204-104.static.zebra.lt] has joined #go-nuts
06:34 -!- dfc [~dfc@eth59-167-133-99.static.internode.on.net] has quit [Ping
timeout: 240 seconds]
06:35 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts
06:36 -!- fvbommel [~fvbommel_@86.86.15.250] has quit [Ping timeout: 276 seconds]
06:36 < jeremy_c> skelterjohn: with gb, how do I tell it the actual package
prefix is: github.com/jcowgar ? Do I have to mkdir github.com/jcowgar and put all
my sources under that dir?
06:43 -!- ucasano [~ucasano@host153-182-static.227-95-b.business.telecomitalia.it]
has joined #go-nuts
06:49 -!- cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has quit [Remote
host closed the connection]
06:56 -!- wrtp [~rog@92.17.91.230] has joined #go-nuts
06:56 -!- rog [~rog@92.17.91.230] has joined #go-nuts
06:56 -!- rog [~rog@92.17.91.230] has left #go-nuts []
07:03 -!- wrtp [~rog@92.17.91.230] has quit [Quit: wrtp]
07:03 -!- wrtp [~rog@92.17.91.230] has joined #go-nuts
07:11 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
07:14 -!- gregschlom [~quassel@187.118.210.62.te-dns.org] has joined #go-nuts
07:20 -!- Fish- [~Fish@9fans.fr] has quit [Quit: So Long, and Thanks for All the
Fish]
07:21 -!- Fish- [~Fish@9fans.fr] has joined #go-nuts
07:28 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller,
Faster, Easier.  http://miranda-im.org]
07:29 -!- Cobi [~Cobi@2002:1828:88fb:0:aede:48ff:febe:ef03] has quit [Ping
timeout: 260 seconds]
07:38 -!- fvbommel [~fvbommel_@dyn068206.nbw.tue.nl] has joined #go-nuts
07:44 -!- Cobi [~Cobi@2002:1828:88fb:0:aede:48ff:febe:ef03] has joined #go-nuts
07:47 < taruti> Was there some terminal gui library in Go?
07:48 < nteon> taruti: i think its called oh
07:48 -!- virtualsue [~chatzilla@nat/cisco/x-brfbdntiqxszxugc] has joined #go-nuts
07:49 < nteon> there was a mailing list post on it in the past week or so
07:49 < taruti> isn't oh a shell
07:49 * taruti would like something like ncurses
07:49 < nteon> oh
07:49 < nteon> nm
07:49 < nteon> misread :)
07:49 < nteon> idk
07:53 < zanget> cat-v is a good place to look stuff like that up
07:56 < wrtp> taruti: oh no!  you don't want cursor addressing!  leave the
80s!
07:56 < wrtp> (yeah i think there is a go curses package)
07:56 < taruti> I think there was a C library that compiled with 8c for this
07:57 -!- piranha [~piranha@92.70.180.162] has joined #go-nuts
07:58 < taruti> https://github.com/nsf/termbox :)
07:58 -!- piranha [~piranha@92.70.180.162] has quit [Client Quit]
08:01 -!- web-temp [18fbe8ab@gateway/web/freenode/ip.24.251.232.171] has joined
#go-nuts
08:01 -!- tylerl [~tylerl@ip24-251-232-171.ph.ph.cox.net] has quit [Quit: leaving]
08:01 -!- web-temp [18fbe8ab@gateway/web/freenode/ip.24.251.232.171] has quit
[Client Quit]
08:12 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
08:12 -!- noodles775 [~michael@canonical/launchpad/noodles775] has joined #go-nuts
08:13 -!- GeertJohan [~geertjoha@s51478c91.adsl.wanadoo.nl] has joined #go-nuts
08:18 -!- tvw [~tv@212.79.9.150] has joined #go-nuts
08:20 -!- jarsen [~jarsen@76.8.206.21] has joined #go-nuts
08:20 -!- jarsen [~jarsen@76.8.206.21] has quit [Remote host closed the
connection]
08:39 -!- piranha [~piranha@92.70.180.162] has joined #go-nuts
08:41 -!- piranha [~piranha@92.70.180.162] has quit [Client Quit]
08:50 -!- nighty__ [~nighty@210.188.173.245] has quit [Remote host closed the
connection]
08:51 -!- piranha [~piranha@92.70.180.162] has joined #go-nuts
09:14 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-149-121.clienti.tiscali.it] has
joined #go-nuts
09:17 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined
#go-nuts
09:19 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit
[Ping timeout: 252 seconds]
09:35 -!- foocraft [~ewanas@78.101.128.89] has joined #go-nuts
09:40 -!- kr [~Keith@c-24-5-193-165.hsd1.ca.comcast.net] has quit [Quit: WeeChat
0.3.4]
09:49 -!- kamaji [~kamaji@cpc2-aztw22-2-0-cust775.aztw.cable.virginmedia.com] has
quit [Quit: bbl]
09:49 -!- Ekspluati [5b98b736@gateway/web/freenode/ip.91.152.183.54] has joined
#go-nuts
09:54 -!- dfc [~dfc@124-149-35-69.dyn.iinet.net.au] has joined #go-nuts
09:55 -!- piranha [~piranha@92.70.180.162] has quit [Quit: Computer has gone to
sleep.]
09:58 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has quit [Quit:
Leaving]
09:59 < electro> ...been working for the last 2hours on why serverA wont
accept data from serverB...  fixed it and now serverA crashes whenever B sends
data
10:00 < electro> well its a step in the right direction i guess...
10:02 -!- shvntr [~shvntr@116.26.139.209] has joined #go-nuts
10:22 -!- COBOL2121 [~Null@usr018.bb160-01.udk.im.wakwak.ne.jp] has joined
#go-nuts
10:28 < vegai> http://pauladamsmith.com/blog/2011/05/go_time.html
10:28 < vegai> does anyone else think that this isn't such a good idea after
all...?
10:28 < vegai> reeks of magic and confusion
10:29 < vegai> but then again, I don't understand at all how it's supposed
to work :-/
10:30 -!- virtualsue [~chatzilla@nat/cisco/x-brfbdntiqxszxugc] has quit [Read
error: Operation timed out]
10:30 -!- alehorst [~alehorst@201.22.42.15.dynamic.adsl.gvt.net.br] has joined
#go-nuts
10:38 -!- foocraft [~ewanas@78.101.128.89] has quit [Quit: Leaving]
10:44 -!- snearch [~snearch@f053010142.adsl.alicedsl.de] has joined #go-nuts
10:45 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has joined #go-nuts
10:46 -!- virtualsue [~chatzilla@nat/cisco/x-bludadtsilkyahnx] has joined #go-nuts
10:49 -!- bse [~bob@178-27-90-21-dynip.superkabel.de] has joined #go-nuts
10:50 -!- prattel [~bob@178-27-90-21-dynip.superkabel.de] has joined #go-nuts
10:52 -!- shvntr [~shvntr@116.26.139.209] has quit [Quit: leaving]
10:53 -!- bse [~bob@178-27-90-21-dynip.superkabel.de] has quit [Ping timeout: 276
seconds]
10:58 < jnwhiteh> vegai: its pretty simple, the date is 1, 2, 3, 4, 5, 6, 7
10:58 < jnwhiteh> so they're unique, so you just specify how they're to be
formatted
10:58 < jnwhiteh> 01/02 03:04:05PM '06 -0700
11:00 < edsrzf> Yeah, but you have to remember the order of the canonical
date format
11:00 -!- angasule_ [~angasule@190.2.33.49] has joined #go-nuts
11:01 < Ekspluati> edsrzf, Doesn't the time package have constants for some
common formats?
11:01 < jnwhiteh> yeah its a bit of voodoo, but well documented =)
11:01 < jnwhiteh> Ekspluati: yep
11:01 < edsrzf> Yes, it does
11:01 -!- TMKCodes [~TMKCodes@unaffiliated/tmkcodes] has joined #go-nuts
11:02 < vegai> jnwhiteh: so the ordering cannot be changed?
11:02 < jnwhiteh> sure it can!
11:02 * vegai blinks slowly
11:03 < jnwhiteh> 02/01/2006 15:04:05 -0700
11:03 < vegai> how does the library know it, then?
11:03 < vegai> that you changed the ordering?
11:03 < jnwhiteh> because it can see where I have '2'
11:03 < jnwhiteh> and it knows that that's the day
11:03 < vegai> ohhh
11:03 < vegai> !
11:03 -!- zcram [~zcram@77-233-76-121.cdma.dyn.kou.ee] has quit [Quit: Leaving]
11:03 < vegai> god damnit :)
11:04 < jnwhiteh> 3 and 15 are the two versions of the hour
11:04 < jnwhiteh> etc.  =)
11:04 < vegai> now I feel mighty stupid.
11:04 < jnwhiteh> don't, it IS voodoo
11:04 < jnwhiteh> =)
11:05 < jnwhiteh> but I'm not sure its any more or less than the
format-string versions :P
11:05 < vegai> well, at least there's now a pattern that's easily learned
11:06 < wrtp> vegai: the "Constants" section of the time package
documentation is pretty clear, i think
11:07 -!- ab3 [~abe@ip-83-134-167-169.dsl.scarlet.be] has joined #go-nuts
11:16 -!- jep200404 [~jep@cpe-204-210-242-157.columbus.res.rr.com] has joined
#go-nuts
11:21 -!- piranha [~piranha@92.70.180.162] has joined #go-nuts
11:26 -!- piranha [~piranha@92.70.180.162] has quit [Client Quit]
11:27 -!- piranha [~piranha@92.70.180.162] has joined #go-nuts
11:33 -!- edsrzf [~edsrzf@122-61-221-144.jetstream.xtra.co.nz] has quit [Remote
host closed the connection]
11:35 -!- fvbommel [~fvbommel_@dyn068206.nbw.tue.nl] has quit [Ping timeout: 240
seconds]
11:40 -!- photron [~photron@port-92-201-248-70.dynamic.qsc.de] has joined #go-nuts
11:40 -!- tncardoso [~thiago@189.115.130.173] has joined #go-nuts
11:47 -!- angasule_ [~angasule@190.2.33.49] has quit [Remote host closed the
connection]
11:49 -!- GeertJohan [~geertjoha@s51478c91.adsl.wanadoo.nl] has quit [Quit:
Leaving.]
11:50 -!- pearle [~pearle@blk-224-181-222.eastlink.ca] has joined #go-nuts
11:50 -!- oal [~oal@5.79-160-122.customer.lyse.net] has joined #go-nuts
11:51 -!- fvbommel [~fvbommel_@wlan073183.nbw.tue.nl] has joined #go-nuts
11:53 -!- quag [~quag@121-98-81-61.bitstream.orcon.net.nz] has quit [Ping timeout:
258 seconds]
11:54 -!- quag [~quag@121-98-81-61.bitstream.orcon.net.nz] has joined #go-nuts
11:57 -!- ctimmerm [~ctimmerm@83.150.80.193] has joined #go-nuts
11:58 -!- piranha [~piranha@92.70.180.162] has quit [Quit: Computer has gone to
sleep.]
11:59 -!- tobym [~tobym@cpe-72-229-2-6.nyc.res.rr.com] has joined #go-nuts
12:04 -!- exch [~exch@c74149.upc-c.chello.nl] has quit [Read error: Connection
reset by peer]
12:05 -!- exch [~exch@c74149.upc-c.chello.nl] has joined #go-nuts
12:07 -!- TMKCodes [~TMKCodes@unaffiliated/tmkcodes] has quit [Quit: Leaving]
12:07 -!- TMKCodes [~TMKCodes@bbwirelessgw2-fee1dc00-62.dhcp.inet.fi] has joined
#go-nuts
12:07 -!- TMKCodes [~TMKCodes@bbwirelessgw2-fee1dc00-62.dhcp.inet.fi] has quit
[Changing host]
12:07 -!- TMKCodes [~TMKCodes@unaffiliated/tmkcodes] has joined #go-nuts
12:10 -!- piranha [~piranha@92.70.180.162] has joined #go-nuts
12:11 -!- piranha [~piranha@92.70.180.162] has quit [Client Quit]
12:12 -!- tobym [~tobym@cpe-72-229-2-6.nyc.res.rr.com] has quit [Ping timeout: 240
seconds]
12:15 -!- wrtp [~rog@92.17.91.230] has quit [Quit: wrtp]
12:18 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined
#go-nuts
12:20 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit
[Ping timeout: 276 seconds]
12:24 -!- piranha [~piranha@92.70.180.162] has joined #go-nuts
12:26 -!- piranha [~piranha@92.70.180.162] has quit [Read error: Connection reset
by peer]
12:26 -!- piranha [~piranha@92.70.180.162] has joined #go-nuts
12:27 < jeremy_c> skelterjohn: gb doesn't seem to work properly with my #cgo
flags.
12:29 -!- piranha [~piranha@92.70.180.162] has quit [Client Quit]
12:30 -!- hallas [~hallas@x1-6-30-46-9a-b2-c5-1f.k891.webspeed.dk] has joined
#go-nuts
12:31 -!- prattel [~bob@178-27-90-21-dynip.superkabel.de] has quit [Quit: Bye!]
12:34 < Ekspluati> I really love gofmt now
12:35 < jeremy_c> Ekspluati: what editor do you use?  I am curious how well
it formats your code vs.  gofmt?
12:35 < Ekspluati> I had almost 2000 lines of c++ defines and consts.  Few
simple regexps and gofmt made it beautiful.
12:35 < jeremy_c> ah!  Yes, that would be nice.
12:36 < Ekspluati> Notepad++
12:37 < Ekspluati> Only thing I did manually was commenting out two or three
typedefs and adding few comments
12:38 < Ekspluati> And few #if(n)defs
12:41 -!- piranha [~piranha@92.70.180.162] has joined #go-nuts
12:41 -!- sauerbraten [~sauerbrat@p5B38B224.dip.t-dialin.net] has joined #go-nuts
12:42 -!- piranha [~piranha@92.70.180.162] has quit [Client Quit]
12:48 -!- noodles775 [~michael@canonical/launchpad/noodles775] has quit [Ping
timeout: 252 seconds]
12:51 -!- noodles775 [~michael@g225093045.adsl.alicedsl.de] has joined #go-nuts
12:51 -!- noodles775 [~michael@g225093045.adsl.alicedsl.de] has quit [Changing
host]
12:51 -!- noodles775 [~michael@canonical/launchpad/noodles775] has joined #go-nuts
12:52 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has joined
#go-nuts
12:54 -!- alehorst [~alehorst@201.22.42.15.dynamic.adsl.gvt.net.br] has quit [Ping
timeout: 246 seconds]
12:55 -!- moraes [~moraes@189.103.179.31] has quit [Ping timeout: 258 seconds]
12:55 -!- moraes [~moraes@189.103.179.31] has joined #go-nuts
12:58 -!- alehorst [~alehorst@201.47.21.240.dynamic.adsl.gvt.net.br] has joined
#go-nuts
12:59 -!- sunfmin [~sunfmin@115.206.253.191] has joined #go-nuts
13:02 -!- piranha [~piranha@92.70.180.162] has joined #go-nuts
13:07 -!- moraes [~moraes@189.103.179.31] has quit [Ping timeout: 258 seconds]
13:10 -!- alehorst [~alehorst@201.47.21.240.dynamic.adsl.gvt.net.br] has quit
[Remote host closed the connection]
13:11 -!- tvw [~tv@212.79.9.150] has quit [Remote host closed the connection]
13:11 -!- alehorst [~alehorst@201.47.21.240.dynamic.adsl.gvt.net.br] has joined
#go-nuts
13:11 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has quit
[Ping timeout: 244 seconds]
13:12 -!- freetz [~fritz@bc-proxy-2.sandia.gov] has joined #go-nuts
13:13 -!- alehorst [~alehorst@201.47.21.240.dynamic.adsl.gvt.net.br] has quit
[Read error: Connection reset by peer]
13:13 -!- COBOL2121 [~Null@usr018.bb160-01.udk.im.wakwak.ne.jp] has quit [Remote
host closed the connection]
13:15 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has quit [Quit: Leaving.]
13:21 -!- niemeyer [~niemeyer@200-102-196-125.pltce701.dsl.brasiltelecom.net.br]
has joined #go-nuts
13:24 -!- Ekspluati [5b98b736@gateway/web/freenode/ip.91.152.183.54] has quit
[Ping timeout: 252 seconds]
13:24 -!- alehorst [~alehorst@189.114.178.70.dynamic.adsl.gvt.net.br] has joined
#go-nuts
13:25 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
13:26 -!- wallerdev [~wallerdev@72.44.102.30] has joined #go-nuts
13:27 -!- Venom_X [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has
joined #go-nuts
13:35 -!- snearch [~snearch@f053010142.adsl.alicedsl.de] has quit [Quit:
Verlassend]
13:37 -!- virtualsue [~chatzilla@nat/cisco/x-bludadtsilkyahnx] has quit [Ping
timeout: 260 seconds]
13:37 -!- alehorst [~alehorst@189.114.178.70.dynamic.adsl.gvt.net.br] has quit
[Ping timeout: 246 seconds]
13:38 -!- dlowe [~dlowe@ita4fw1.itasoftware.com] has joined #go-nuts
13:43 -!- piranha [~piranha@92.70.180.162] has quit [Quit: Computer has gone to
sleep.]
13:45 -!- Project-2501 [~Marvin@82.84.89.53] has joined #go-nuts
13:46 -!- jbooth1 [~jay@209.249.216.2] has joined #go-nuts
13:47 -!- pharris [~Adium@rhgw.opentext.com] has joined #go-nuts
13:48 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has joined #go-nuts
13:48 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-149-121.clienti.tiscali.it] has
quit [Ping timeout: 244 seconds]
13:50 < skelterjohn> jeremy_c: one way is to mimic the actual directory
structure
13:50 -!- alehorst [~alehorst@201.47.15.65.dynamic.adsl.gvt.net.br] has joined
#go-nuts
13:50 < skelterjohn> another way is to put a comment right before the
package statement in one of your sources //target:github.com/yourname/yourproject
13:50 < skelterjohn> and it will filter to subdirectories
13:51 -!- rcrowley [~rcrowley@c-71-202-44-233.hsd1.ca.comcast.net] has joined
#go-nuts
13:51 < skelterjohn> as for the #cgo issue, once we're both sitting on irc
we'll work that out
13:51 < jeremy_c> skelterjohn: great.  sounds good.
13:51 < skelterjohn> heh, and right now doesn't count :)
13:52 < skelterjohn> i just got up, need to shower, get to campu
13:52 < skelterjohn> s
13:52 < jeremy_c> skelterjohn: about the #cgo issue, I don't have time to
work with it right now.  I'm getting ready for a weekend trip and will be leaving
shortly.
13:52 < jeremy_c> will not be avail prob till monday for any real computer
work.
13:52 < skelterjohn> ok - i have access to a linux machine
13:52 < skelterjohn> is it possible to get your code?
13:52 < skelterjohn> i can try and build it
13:52 < jeremy_c> what I can say is goinstall compiles the package fine but
gb says every C func is undefined.
13:53 < jeremy_c> skelterjohn: I have not committed the mass dir change yet
to make it gb compatible because it's not all done.  I hate to commit DEFUNCT code
:-/
13:53 < skelterjohn> zip it and email it to me
13:53 < skelterjohn> i understand not wanting to commit
13:54 < jeremy_c> skelterjohn: You can see the #cgo lines:
https://github.com/jcowgar/go-iup/blob/master/iup/core.go
13:54 < skelterjohn> oh, i know the issue
13:54 < skelterjohn> make those // comments :)
13:54 < jeremy_c> skelterjohn: ok.  I'll do that before I leave.
13:54 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts
13:54 -!- alehorst [~alehorst@201.47.15.65.dynamic.adsl.gvt.net.br] has quit [Ping
timeout: 246 seconds]
13:54 < jeremy_c> hm, there is a TON of C stuff there, all of them would
have to hcange to // ?
13:54 < skelterjohn> this is a gb bug - never occurred to me
13:55 < skelterjohn> but that is what is making it not work
13:55 < skelterjohn> i'll fix it today
13:55 < jeremy_c> oh.  wait.  No, that one is simple.
13:55 < jeremy_c> but some of my others have a ton of C code :-)
13:55 < str1ngs> jeremy_c: imo thats what branches are for :P
13:56 < jeremy_c> It is in a branch :-)
13:56 -!- virtualsue [~chatzilla@nat/cisco/x-hpmkvcnkpsxzobht] has joined #go-nuts
13:56 < str1ngs> git push orgin :defunct
13:56 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has quit [Remote host
closed the connection]
13:57 < str1ngs> jeremy_c: if you are getting unresolved functions sounds to
mike like LDFLAGS issue?
13:57 < str1ngs> me*
13:57 < skelterjohn> right...  as he said...  gb is missing the LDFLAGS
13:57 < jeremy_c> yeah, but an issue w/gb not reading my #cgo lines cause
they are inside /* ...  */ and not // ...
13:57 < str1ngs> ah sorry gb
13:57 < skelterjohn> easy error to fix
13:58 < str1ngs> my pageup is not working I only saw the tail end
13:59 < str1ngs> :defunct is wrong to unless you want to delete the branch
13:59 < str1ngs> :(
13:59 * str1ngs throw hands in air
14:00 -!- alehorst [~alehorst@189.58.135.203] has joined #go-nuts
14:02 -!- chad_ [~chad@ice.superfrink.net] has joined #go-nuts
14:05 -!- zaero [~eclark@2001:470:1f11:b82:e163:54ed:e02c:2a45] has joined
#go-nuts
14:08 < skelterjohn> jeremy_c: it's worth noting that
http://golang.org/cmd/cgo/ only has // comments
14:08 < skelterjohn> does cgo get headers right with /* comments?
14:08 < skelterjohn> are all the errors link errors, no compile errors?
14:15 -!- jep200404 [~jep@cpe-204-210-242-157.columbus.res.rr.com] has quit [Quit:
using sirc version 2.211+KSIRC/1.3.12]
14:17 < jeremy_c> goinstall works fine.
14:17 < jeremy_c> right, no compile errors.
14:17 < jeremy_c> there are no CFLAGS that would cause issues if they were
not parsed.
14:19 < jeremy_c> skelterjohn: above was for you.
14:19 < skelterjohn> if goinstall works fine, then gb needs to be fixed
14:19 < skelterjohn> i'll take care of it today
14:20 < jeremy_c> goinstall indeed works.
14:20 < skelterjohn> thanks for the bug report
14:20 < jeremy_c> it'll cost you $10 :-)
14:20 < skelterjohn> as it happens that's what the next version of gb costs,
too
14:21 < jeremy_c> ha...  for real though, thanks for gb.
14:21 < skelterjohn> my pleasure
14:21 -!- jep200404 [~jep@cpe-204-210-242-157.columbus.res.rr.com] has joined
#go-nuts
14:24 -!- jep200404 [~jep@cpe-204-210-242-157.columbus.res.rr.com] has quit
[Remote host closed the connection]
14:26 -!- sauerbraten [~sauerbrat@p5B38B224.dip.t-dialin.net] has quit [Quit:
Leaving]
14:31 -!- awidegreen [~quassel@85.24.170.226] has joined #go-nuts
14:33 -!- virtualsue [~chatzilla@nat/cisco/x-hpmkvcnkpsxzobht] has quit [Ping
timeout: 246 seconds]
14:33 -!- jep200404 [~jep@cpe-204-210-242-157.columbus.res.rr.com] has joined
#go-nuts
14:34 -!- fvbommel [~fvbommel_@wlan073183.nbw.tue.nl] has quit [Ping timeout: 276
seconds]
14:41 -!- virtualsue [~chatzilla@nat/cisco/x-flyxlbbonpbdxwic] has joined #go-nuts
14:43 -!- piranha [~piranha@92.70.180.162] has joined #go-nuts
14:44 -!- tobym [~tobym@cpe-72-229-2-6.nyc.res.rr.com] has joined #go-nuts
14:45 -!- piranha [~piranha@92.70.180.162] has quit [Read error: Connection reset
by peer]
14:45 -!- piranha_ [~piranha@92.70.180.162] has joined #go-nuts
14:48 -!- r_linux [~r_linux@smtp.mandique.com.br] has joined #go-nuts
14:48 -!- fvbommel [~fvbommel_@ip212-238-65-58.hotspotsvankpn.com] has joined
#go-nuts
14:50 -!- piranha_ [~piranha@92.70.180.162] has quit [Client Quit]
14:51 -!- jep200404 [~jep@cpe-204-210-242-157.columbus.res.rr.com] has quit
[Remote host closed the connection]
14:52 -!- virtualsue [~chatzilla@nat/cisco/x-flyxlbbonpbdxwic] has quit [Quit:
ChatZilla 0.9.86.1 [Firefox 4.0.1/20110413222027]]
14:53 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has quit [Quit:
skelterjohn]
14:54 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has joined #go-nuts
14:54 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has left #go-nuts []
14:55 -!- moraes [~moraes@189.103.179.31] has joined #go-nuts
15:02 -!- Project_2501 [~Marvin@82.84.76.46] has joined #go-nuts
15:03 -!- ctimmerm [~ctimmerm@83.150.80.193] has quit [Quit: Lost terminal]
15:03 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined
#go-nuts
15:04 -!- Project-2501 [~Marvin@82.84.89.53] has quit [Ping timeout: 240 seconds]
15:06 -!- fvbommel [~fvbommel_@ip212-238-65-58.hotspotsvankpn.com] has quit [Ping
timeout: 264 seconds]
15:08 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-165-23.clienti.tiscali.it] has
joined #go-nuts
15:10 -!- Project_2501 [~Marvin@82.84.76.46] has quit [Ping timeout: 250 seconds]
15:15 -!- chomp [~chomp@dap-209-166-184-50.pri.tnt-3.pgh.pa.stargate.net] has
joined #go-nuts
15:16 -!- sunfmin [~sunfmin@115.206.253.191] has quit [Quit: sunfmin]
15:17 -!- cenuij [~cenuij@237.129.26.93.rev.sfr.net] has joined #go-nuts
15:17 -!- cenuij [~cenuij@237.129.26.93.rev.sfr.net] has quit [Changing host]
15:17 -!- cenuij [~cenuij@base/student/cenuij] has joined #go-nuts
15:17 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has quit [Quit:
Leaving]
15:18 < ww> hmmm...  so i get the ebnf package to parse a grammar and give
me a set of productions...
15:19 < ww> how do i use that grammar to parse a string that supposedly
conforms to it?
15:19 < ww> or is ebnf just for checking documentation?
15:19 < chomp> Grammar.Parse?
15:20 < ww> chomp: that gives you the grammar from the ebnf description
15:20 < chomp> ahh.
15:20 -!- fabled [~fabled@83.145.235.194] has quit [Quit: Ex-Chat]
15:20 < ww> but the only obvious thing that can be done with the grammar is
to call Verify to check that it is coherent
15:25 -!- fabled [~fabled@83.145.235.194] has joined #go-nuts
15:28 -!- tncardoso [~thiago@189.115.130.173] has quit [Quit: bye]
15:29 -!- noodles775 [~michael@canonical/launchpad/noodles775] has quit [Quit:
leaving]
15:29 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit
[Read error: Connection reset by peer]
15:30 < gmilleramilar> is there a one-liner to empty a map?
15:30 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined
#go-nuts
15:32 < chomp> allocate a new one and use it?  :)
15:32 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has quit [Quit: Leaving.]
15:32 < gmilleramilar> yeah, I'm currently doing an allocation optimization
pass, so no.  :)
15:32 < chomp> heh
15:33 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Quit:
peace in teh middle east]
15:34 -!- ab3 [~abe@ip-83-134-167-169.dsl.scarlet.be] has quit [Ping timeout: 276
seconds]
15:37 -!- TMKCodes [~TMKCodes@unaffiliated/tmkcodes] has quit [Ping timeout: 276
seconds]
15:38 < ww> for k, _ := range mymap { mymap[k] = zero_value_of_map_rhs,
false }
15:39 -!- tav [~tav@92.7.109.93] has quit [Ping timeout: 246 seconds]
15:39 < ww> not especially efficient
15:39 < gmilleramilar> will try.
15:39 < dlowe> I don't think you need the _
15:40 < dlowe> ww: why , false?
15:40 < ww> because that deletes the entry
15:40 < fzzbt> to delete?
15:40 < Namegduf> dlowe: Just assigning it as zero just sets it to zero.
You have to ,false to delete.
15:41 < dlowe> ah, I see
15:43 -!- skelterjohn [~jasmuth@128.6.168.245] has joined #go-nuts
15:44 < chomp> how slow is allocation that it becomes more desirable to
erase each individual element rather than simply start over with a new map?
15:44 < chomp> i guess for relatively small maps...
15:45 < gmilleramilar> This one line is currently 44% of my allocated memory
in the last profile run.
15:45 -!- jiunec [~cenuij@98.16.8.109.rev.sfr.net] has joined #go-nuts
15:46 < gmilleramilar> and yes, they're relatively small maps, a few tens of
elements.
15:46 -!- cenuij [~cenuij@base/student/cenuij] has quit [Ping timeout: 276
seconds]
15:50 -!- tav [~tav@92.7.93.41] has joined #go-nuts
15:59 -!- ShadowIce
[~pyoro@HSI-KBW-109-193-120-162.hsi7.kabel-badenwuerttemberg.de] has joined
#go-nuts
15:59 -!- ShadowIce
[~pyoro@HSI-KBW-109-193-120-162.hsi7.kabel-badenwuerttemberg.de] has quit
[Changing host]
15:59 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
16:01 -!- halvor5m [~halvor@95.13.189.109.customer.cdi.no] has joined #go-nuts
16:02 -!- TMKCodes [~TMKCodes@unaffiliated/tmkcodes] has joined #go-nuts
16:12 -!- Bigbear1 [~Cody@d173-181-43-12.abhsia.telus.net] has joined #go-nuts
16:15 -!- hargettp_ [~hargettp_@dhcp-162.mirrorimage.net] has joined #go-nuts
16:15 -!- dolch [~ftw@CPE002584096773-CM78cd8e5c9ddd.cpe.net.cable.rogers.com] has
joined #go-nuts
16:18 -!- fvbommel [~fvbommel_@86.86.15.250] has joined #go-nuts
16:22 -!- tncardoso [~thiago@150.164.2.20] has joined #go-nuts
16:23 -!- ucasano [~ucasano@host153-182-static.227-95-b.business.telecomitalia.it]
has quit [Quit: ucasano]
16:24 -!- keithcascio [~keithcasc@nat/google/x-kqwqjofmherigfxz] has joined
#go-nuts
16:29 -!- Venom_X [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has quit
[Quit: Venom_X]
16:30 -!- Bigbear1 [~Cody@d173-181-43-12.abhsia.telus.net] has quit [Read error:
Connection reset by peer]
16:31 -!- Bigbear1 [~Cody@d173-181-43-12.abhsia.telus.net] has joined #go-nuts
16:36 -!- ab3 [~abe@83.101.72.80] has joined #go-nuts
16:36 -!- partel [~bob@prag322.server4you.de] has joined #go-nuts
16:48 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has quit [Ping timeout: 276
seconds]
16:50 -!- halvor5m [~halvor@95.13.189.109.customer.cdi.no] has quit [Quit: Lost
terminal]
16:50 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit
[Read error: Connection reset by peer]
16:52 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined
#go-nuts
16:53 -!- vinisterx [~ryan@74-129-201-27.dhcp.insightbb.com] has quit [Ping
timeout: 240 seconds]
16:54 -!- vinisterx [~ryan@74-129-201-27.dhcp.insightbb.com] has joined #go-nuts
16:58 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has joined #go-nuts
17:02 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has quit [Client
Quit]
17:02 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has joined #go-nuts
17:05 -!- tobier [~tobier@c-1c9de055.712-1-64736c11.cust.bredbandsbolaget.se] has
quit [Read error: Operation timed out]
17:05 -!- tobier [~tobier@c-1c9de055.712-1-64736c11.cust.bredbandsbolaget.se] has
joined #go-nuts
17:06 -!- chomp [~chomp@dap-209-166-184-50.pri.tnt-3.pgh.pa.stargate.net] has quit
[Quit: Leaving]
17:12 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Quit:
Leaving.]
17:12 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
17:19 < xyproto> Anyone knows how to make friends with latex when it comes
to the canonical hello world example for Go? fmt.Println("Hello, 世界!")
17:19 < aiju> hehe
17:19 < aiju> xyproto: use xelatex
17:20 < xyproto> aiju: ok, thx :)
17:20 < aiju> i typeset an assignment with lots of kanji using it
17:20 < xyproto> aiju: I see.  It seems like utf8 and kanji can be a hassle.
17:20 < aiju> \newfontfamily{\jap}{IPAMincho}
17:20 < aiju> i think that's the only think you might need
17:20 -!- halvor [~halvor@95.13.189.109.customer.cdi.no] has joined #go-nuts
17:20 < aiju> with xelatex, that is
17:21 -!- sjbrown [~sjbrown@adsl-99-189-162-6.dsl.pltn13.sbcglobal.net] has joined
#go-nuts
17:21 < aiju> for fixed width you probably need a different font though
17:21 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit
[Read error: Connection reset by peer]
17:22 < xyproto> aiju: So there's no equivivalent to \texttt?
17:22 < aiju> xyproto: no clue
17:23 < xyproto> aiju: ok.  thx
17:23 < aiju> the mincho font is for a serif font iirc
17:23 < aiju> oh {\jap 絶望}
17:23 < aiju> write them like this
17:23 -!- mgampkay [~mgampkay@183.3.173.207] has joined #go-nuts
17:25 -!- boscop [~boscop@unaffiliated/boscop] has joined #go-nuts
17:29 < xyproto> aiju: I found an example for pdflatex here that worked:
http://blogs.fsfe.org/ciaran/?p=150
17:31 -!- jstemmer [~cheetah@mrpwn.stemmertech.com] has joined #go-nuts
17:31 -!- aho [~nya@fuld-590c68b4.pool.mediaWays.net] has joined #go-nuts
17:32 -!- sjbrown [~sjbrown@adsl-99-189-162-6.dsl.pltn13.sbcglobal.net] has quit
[Quit: Leaving]
17:33 < skelterjohn> is xelatex just like latex except extra fonts?
17:33 -!- sacho [~sacho@95-42-72-242.btc-net.bg] has joined #go-nuts
17:33 < skelterjohn> the wikipedia entry didn't answer that question in the
first paragraph, so i stopped readin git
17:33 -!- a2800276 [~a2800276@xdsl-87-78-22-156.netcologne.de] has joined #go-nuts
17:33 < aiju> skelterjohn: different implementation or so
17:33 < skelterjohn> but functionality-wise?
17:34 < aiju> mainly UTF-8 support
17:36 -!- alehorst [~alehorst@189.58.135.203] has quit [Ping timeout: 246 seconds]
17:40 -!- b33p [~mgray@li226-224.members.linode.com] has joined #go-nuts
17:41 -!- chomp [~chomp@c-67-186-35-69.hsd1.pa.comcast.net] has joined #go-nuts
17:43 < skelterjohn> i hate it when i accidentally quit chrome when i intend
to do cmd-1
17:44 < skelterjohn> to go to the first window
17:44 < aiju> i always do ^W
17:46 < xyproto> I don't usually close my browser, and close windows with
alt-shift-w :P
17:46 < xyproto> (been using custom keybindings for a decade)
17:46 < aiju> the thing is, i press ^W to delete words
17:46 < aiju> and then it closes fucking windows
17:47 < xyproto> aiju: see, emacs is the real penance, not vi ;)
17:47 < aiju> ^W has nothing to do with emacs
17:47 < aiju> emacs is good enough to adhere to it
17:47 < aiju> ^W goes back to TOPS-20
17:47 < xyproto> oh, ok
17:47 < xyproto> I didn't know.  What did ^W do on TOPS-20?
17:47 < aiju> delete a word
17:48 < xyproto> At least there's some connection, as ^W could be said to
delete windows, in X-lingo
17:48 < aiju> one half of all programs deletes words and the other windows
with ^W
17:50 < aiju> i think uriel would patches to fix the second kind
17:50 < ww> @sing "Welcome to GNU Emacs"
17:50 -!- TheMue [~TheMue@p5DDF4BFE.dip.t-dialin.net] has joined #go-nuts
17:50 < aiju> http://unix-kb.cat-v.org/
17:50 -!- iant [~iant@216.239.45.130] has joined #go-nuts
17:50 -!- mode/#go-nuts [+v iant] by ChanServ
17:51 < ww> could someone who is mode +o do /invite zoia and see if it
works?
17:51 * ww misses zoia
17:51 < aiju> haha
17:53 < skelterjohn> i use opt-delete to delete a word
17:53 -!- Venom_X [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has
joined #go-nuts
17:57 -!- mgampkay [~mgampkay@183.3.173.207] has left #go-nuts []
18:00 -!- alehorst [~alehorst@201.47.25.26.dynamic.adsl.gvt.net.br] has joined
#go-nuts
18:01 -!- skelterjohn [~jasmuth@128.6.168.245] has quit [Quit: skelterjohn]
18:03 -!- alehorst [~alehorst@201.47.25.26.dynamic.adsl.gvt.net.br] has quit [Read
error: Connection reset by peer]
18:09 -!- kr [~Keith@204.14.152.118] has joined #go-nuts
18:10 < xyproto> Have a brilliant weekend, may all your code compile the
first time.
18:15 -!- alehorst [~alehorst@186.212.208.49] has joined #go-nuts
18:34 -!- ab3 [~abe@83.101.72.80] has quit [Ping timeout: 250 seconds]
18:34 -!- willdye [~willdye@fern.dsndata.com] has left #go-nuts []
18:35 -!- bakkal [~hawk@41.141.5.217] has quit [Read error: Connection reset by
peer]
18:40 -!- tobier_ [~tobier@c-1c9de055.712-1-64736c11.cust.bredbandsbolaget.se] has
joined #go-nuts
18:41 -!- tobier [~tobier@c-1c9de055.712-1-64736c11.cust.bredbandsbolaget.se] has
quit [Read error: Operation timed out]
18:41 < kevlar_work> It's the end of the world!  Make sure your code is
clean, so the next civilization to develop will look kindly upon you.
18:42 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined
#go-nuts
18:44 < chomp> hey i think we still have like 27 hours until that happens
18:44 < chomp> plenty of time to get in a few last commits
18:44 < aiju> the day after tomorrow will be fun
18:45 < aiju> when those religious nutsacks are looking for the mistake in
their calculations
18:45 < chomp> did we say 2011?  oh dear, we meant 2021.  typo.
18:45 -!- bmizerany [~bmizerany@204.14.152.118] has joined #go-nuts
18:47 -!- bmizerany [~bmizerany@204.14.152.118] has quit [Remote host closed the
connection]
18:48 -!- pearle [~pearle@blk-224-181-222.eastlink.ca] has quit [Quit: Leaving]
18:49 < nick125> 2011?  We meant 2110..stupid scientific notation :(
18:50 -!- tobier_ [~tobier@c-1c9de055.712-1-64736c11.cust.bredbandsbolaget.se] has
quit [Read error: Operation timed out]
18:51 -!- tobier [~tobier@c-1c9de055.712-1-64736c11.cust.bredbandsbolaget.se] has
joined #go-nuts
18:51 -!- sacho [~sacho@95-42-72-242.btc-net.bg] has quit [Quit: Ex-Chat]
18:52 -!- tncardoso [~thiago@150.164.2.20] has quit [Quit: bye]
18:53 -!- bakkal [~hawk@41.143.57.233] has joined #go-nuts
18:53 < chomp> hrm.
18:54 -!- willdye [~willdye@fern.dsndata.com] has joined #go-nuts
18:54 < chomp> i'm being stupid about something.  i have several goroutines
that each perform some useful blocking i/o.  any of them might fail at any point,
and when they do i'd like them to signal to everyone else that it's time to stop
running.
18:55 < chomp> i'm having trouble deducing an elegant solution apart from
say a shared bool, which feels wrong to me
18:55 -!- huin [~huin@91.85.171.238] has joined #go-nuts
18:59 -!- jiunec [~cenuij@98.16.8.109.rev.sfr.net] has quit [Remote host closed
the connection]
19:01 < skelterjohn> chomp: use a quit channel
19:02 < skelterjohn> though a shared bool seems fine
19:02 < skelterjohn> as long as it is set to "keep running" explicitly
before any of the goroutines are launched
19:02 < chomp> what would that look like with multiple receivers selecting
it but potentially only one sender
19:02 < chomp> yeah
19:02 < skelterjohn> chomp: send once for every chan
19:02 < skelterjohn> the only problem with a shared bool is you have to poll
it
19:03 < skelterjohn> where with a channel you can select on it
19:03 < chomp> yep
19:03 < skelterjohn> what kinds of things are these other goroutines doign?
19:03 < skelterjohn> and is it easy to interrupt them?
19:03 < chomp> so anyone who wishes to signal a quit would have to write n
times
19:03 < chomp> yeah, they are processing readers
19:03 < skelterjohn> chomp: or once you read from quit, you write to it
again
19:03 < huin> what about closing the channel?
19:04 < skelterjohn> there's that too - everyone can see when that happens
19:04 < chomp> ooohoho..  forgot about that
19:04 < skelterjohn> if you have everyone send back on quit hwen they read
from it, remember to have a buffer of size one
19:04 < skelterjohn> so the last one to write doesn't block forever
19:04 < chomp> aye
19:04 -!- tobier_ [~tobier@c-1c9de055.712-1-64736c11.cust.bredbandsbolaget.se] has
joined #go-nuts
19:05 -!- tobier [~tobier@c-1c9de055.712-1-64736c11.cust.bredbandsbolaget.se] has
quit [Read error: Operation timed out]
19:05 < skelterjohn> but if all the goroutines do something like "process
for a significant block of time; check if quit; repeat"
19:05 < skelterjohn> then polling is fine
19:05 < skelterjohn> since you won't poll that often
19:06 < chomp> hrmm another point of confusion though.  normally these
goroutines will be blocking on a reader
19:08 < skelterjohn> a good way to handle that is like the upcoming pastebin
19:10 -!- sacho [~sacho@90.154.196.144] has joined #go-nuts
19:10 < skelterjohn> http://pastebin.com/xadXcmC4
19:11 < huin> skelterjohn: that that abortAndKillDataRead involve maybe
closing the thing that's being read from?
19:11 < huin> s/that/would/
19:11 < skelterjohn> implementation specific :)
19:11 < huin> but in principle?
19:11 < chomp> heh
19:12 < chomp> in thise case yeah i would close the associated Conn
19:12 < skelterjohn> i can't say.  what happens if you close a file that is
being read from?
19:12 < skelterjohn> if that works, then that works
19:12 < chomp> which woudl signal a read error in its goroutine
19:12 < skelterjohn> if not, do something else
19:12 < huin> err = thing.Read(data)
19:12 < huin> err, n even
19:12 < skelterjohn> n, err
19:12 < huin> yeah, that's it
19:12 < skelterjohn> but yeah - that looks like it'd work in this case
19:12 < chomp> o_O what's with the argument type in the goroutine
19:12 < huin> anyway, err is useful there
19:12 < chomp> i hvaen't seen that type syntax
19:12 < skelterjohn> <-chan?
19:12 < chomp> yeah
19:13 < skelterjohn> you can specify a chan as send or recv only
19:13 < chomp> very cool.
19:13 < skelterjohn> <-chan is send only, chan<- is recv only
19:13 < chomp> i could have guessed, but wasn't sure :)
19:13 < huin> skelterjohn: or the other way around?
19:13 < skelterjohn> yes
19:13 < skelterjohn> :)
19:14 < huin> that's pretty much a pattern i think i'll have to use in a
server i'm working on
19:14 < skelterjohn> wrapping a .Read input into a goroutine w/ channel is a
good pattern to have in your toolbox
19:14 < huin> might involve 3 goroutines per client connection, but i think
it'll make sense
19:15 < skelterjohn> gives you access to all the concurrency support that go
provides
19:15 < chomp> yeah, i like that
19:16 < huin> (in my case, one for read from TCP, one for write to TCP and
another for control/logic)
19:16 < skelterjohn> i don't know if that select{} will catch quitchan being
closed
19:16 < skelterjohn> probably not
19:16 < huin> _, ok := quitchan ?
19:16 < chomp> im going to go the select-and-resend route
19:16 < huin> sure i've seen people use something like that
19:16 < skelterjohn> huin: _, ok := <- quitchan will work outside a
select
19:17 < skelterjohn> maybe it will work inside too
19:17 < huin> i think i've seen it inside
19:17 < skelterjohn> worth experimenting and reporting back ;)
19:17 < aiju> skelterjohn: huh?  that one was removed long time ago
19:17 < skelterjohn> aiju: it's meaning has changed
19:17 < skelterjohn> its
19:17 < aiju> oh they added the close thing now?
19:17 < skelterjohn> it's no longer a non-blocking recv
19:17 < skelterjohn> now ok will be true if you actually read something,
false if the chan closed before you got anything
19:18 * huin writes test code
19:18 < skelterjohn> been this way for two months =p
19:18 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
19:24 -!- keeth [~keeth@207.102.25.19] has joined #go-nuts
19:25 -!- chipnt [~ciprian.o@paris-18.progdev.fr] has joined #go-nuts
19:25 -!- willdye [~willdye@fern.dsndata.com] has left #go-nuts []
19:26 -!- Venom_X [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has quit
[Ping timeout: 276 seconds]
19:26 < huin> http://pastebin.com/Fm4TsTig
19:26 < huin> without select {}, mind you
19:26 < huin> it seems to work as you would expect
19:27 < skelterjohn> yes
19:30 < skelterjohn> http://pastebin.com/xDuSXCJW
19:30 < skelterjohn> false false read from c2
19:30 < skelterjohn> admittedly there is a race condition in this code, but
it proves case val, ok := <- ch makes sense in select
19:30 < skelterjohn> and will detect a channel closing
19:31 < huin> i should hope so :)
19:31 -!- Venom_X [~pjacobs@66.54.185.131] has joined #go-nuts
19:32 < huin> might be best to loop over that select {} twice
19:32 < skelterjohn> http://pastebin.com/8pwNxsjv
19:32 < skelterjohn> false read from c2
19:33 -!- prudhvi [~prudhvi@look.ma.i.am.on.ipv6.at.prudhvi.de] has joined
#go-nuts
19:33 < skelterjohn> so even if you don't check closed, it still will get
picked up by select
19:33 < skelterjohn> you may say "of course", but it's good to know for sure
19:33 < huin> curious
19:33 < huin> the "zero" value emitted for closing the channel...  actually
that sounds familiar
19:38 -!- tncardoso [~thiago@189.115.130.173] has joined #go-nuts
19:38 -!- tobier [~tobier@c-1c9de055.712-1-64736c11.cust.bredbandsbolaget.se] has
joined #go-nuts
19:38 -!- tobier_ [~tobier@c-1c9de055.712-1-64736c11.cust.bredbandsbolaget.se] has
quit [Read error: Operation timed out]
19:44 -!- cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has joined
#go-nuts
19:44 -!- ExtraSpice [XtraSpice@78-57-204-104.static.zebra.lt] has quit [Remote
host closed the connection]
19:45 -!- Venom_X_ [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has
joined #go-nuts
19:48 -!- Venom_X [~pjacobs@66.54.185.131] has quit [Ping timeout: 246 seconds]
19:48 -!- sacho [~sacho@90.154.196.144] has quit [Read error: Operation timed out]
19:55 -!- photron [~photron@port-92-201-248-70.dynamic.qsc.de] has quit [Ping
timeout: 276 seconds]
19:55 -!- sacho [~sacho@90.154.196.144] has joined #go-nuts
20:00 -!- tobier [~tobier@c-1c9de055.712-1-64736c11.cust.bredbandsbolaget.se] has
quit [Read error: Operation timed out]
20:00 -!- tobier_ [~tobier@c-1c9de055.712-1-64736c11.cust.bredbandsbolaget.se] has
joined #go-nuts
20:00 -!- sacho [~sacho@90.154.196.144] has quit [Ping timeout: 276 seconds]
20:00 -!- TMKCodes [~TMKCodes@unaffiliated/tmkcodes] has quit [Ping timeout: 250
seconds]
20:01 -!- tvw [~tv@e176002018.adsl.alicedsl.de] has joined #go-nuts
20:02 -!- vinisterx [~ryan@74-129-201-27.dhcp.insightbb.com] has quit [Ping
timeout: 240 seconds]
20:04 -!- vinisterx [~ryan@74-129-201-27.dhcp.insightbb.com] has joined #go-nuts
20:05 -!- m4dh4tt3r [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has joined
#go-nuts
20:08 -!- iant [~iant@216.239.45.130] has quit [Quit: Leaving.]
20:20 -!- fabled [~fabled@83.145.235.194] has quit [Quit: Ex-Chat]
20:23 -!- jbooth1 [~jay@209.249.216.2] has quit [Quit: Leaving.]
20:25 -!- alehorst [~alehorst@186.212.208.49] has quit [Quit: Leaving.]
20:26 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Quit:
Linkinus - http://linkinus.com]
20:28 -!- dlowe [~dlowe@ita4fw1.itasoftware.com] has quit [Quit: Leaving.]
20:31 -!- gregschlom [~quassel@187.118.210.62.te-dns.org] has quit [Ping timeout:
244 seconds]
20:32 -!- hargettp_ [~hargettp_@dhcp-162.mirrorimage.net] has quit [Quit:
hargettp_]
20:32 -!- hargettp_ [~hargettp_@dhcp-162.mirrorimage.net] has joined #go-nuts
20:35 -!- edsrzf [~edsrzf@122-61-221-144.jetstream.xtra.co.nz] has joined #go-nuts
20:38 -!- vinisterx [~ryan@74-129-201-27.dhcp.insightbb.com] has quit [Ping
timeout: 240 seconds]
20:38 -!- vinisterx [~ryan@74-129-201-27.dhcp.insightbb.com] has joined #go-nuts
20:41 -!- b33p [~mgray@li226-224.members.linode.com] has quit [Remote host closed
the connection]
20:42 -!- ab3 [~abe@83.101.90.66] has joined #go-nuts
20:47 -!- vinisterx [~ryan@74-129-201-27.dhcp.insightbb.com] has quit [Ping
timeout: 240 seconds]
20:48 -!- vinisterx [~ryan@74-129-201-27.dhcp.insightbb.com] has joined #go-nuts
20:54 -!- oal [~oal@5.79-160-122.customer.lyse.net] has quit [Remote host closed
the connection]
20:56 -!- vinisterx [~ryan@74-129-201-27.dhcp.insightbb.com] has quit [Ping
timeout: 240 seconds]
20:57 -!- B33p [~mgray@li226-224.members.linode.com] has joined #go-nuts
20:57 -!- Wiz126 [~Wiz@24.229.245.72.res-cmts.sm.ptd.net] has quit [Ping timeout:
260 seconds]
20:59 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-165-23.clienti.tiscali.it] has
quit [Quit: E se abbasso questa leva che succ...]
20:59 -!- vinisterx [~ryan@74-129-201-27.dhcp.insightbb.com] has joined #go-nuts
20:59 -!- Wiz126 [~Wiz@24.229.245.72.res-cmts.sm.ptd.net] has joined #go-nuts
21:00 -!- TheMue [~TheMue@p5DDF4BFE.dip.t-dialin.net] has quit [Quit: TheMue]
21:05 < chomp> would be nice to have some syntactic sugar for for stm; expr;
stm {}, where both stm's are the same simple statement
21:05 -!- sauerbraten [~sauerbrat@p5B38B224.dip.t-dialin.net] has joined #go-nuts
21:05 < chomp> essentially liek a while simplestmt; cond {}
21:07 < sauerbraten> good evening :) I once used a package made to easily
measure the time of a go program, I found it on some blog and it was used somehow
like this: timer.Start(timer.Now())...  does anyone know it and can send me a
link?  can't find it on google :/
21:09 < chomp> you could always just use time.Nanoseconds()
21:10 < sauerbraten> I know...  but the package was so easy to use and
practical because you could just import it and use two lines to get useful output
:) instead of wrting it all in every new project you make
21:11 < sauerbraten> btw: how would I measure the time of a goroutine at
all?
21:12 < sauerbraten> su
21:12 < sauerbraten> *using a ticker?
21:13 -!- gtaylor [~gtaylor@host-209-149-113-30.ghs.org] has joined #go-nuts
21:13 -!- huin [~huin@91.85.171.238] has quit [Quit: leaving]
21:14 -!- init6 [~chad@ice.superfrink.net] has quit [Quit: Leaving]
21:17 < str1ngs> sauerbraten: http://code.google.com/p/gotimer/
21:17 < str1ngs> need a slight fix to float
21:18 < sauerbraten> str1ngs, :) That's exaclty what I meant :)
21:20 -!- napsy [~luka@88.200.96.18] has quit [Quit: Lost terminal]
21:20 < str1ngs> I have good memory
21:20 < str1ngs> when I'm not drunk :P
21:20 < chomp> haha
21:20 * str1ngs hic
21:21 < chomp> it *is* friday.
21:21 < chomp> i think there's a song about it >.>
21:21 -!- jep200404 [~jep@cpe-204-210-242-157.columbus.res.rr.com] has joined
#go-nuts
21:23 -!- erus` [~chatzilla@host86-162-227-192.range86-162.btcentralplus.com] has
joined #go-nuts
21:29 < kevlar_work> sauerbraten, it's frighteningly simple to instrument
your own code with just a few lines of Go. See http://pastie.org/1933667
21:29 < kevlar_work> and it doesn't add any external dependencies to any
packages that may fail to build in the future (I got bitten by this with a few
packages before)
21:31 -!- Fish- [~Fish@9fans.fr] has quit [Quit: So Long, and Thanks for All the
Fish]
21:31 < str1ngs> or my awesome clock https://gist.github.com/982382
21:32 -!- tobier_ [~tobier@c-1c9de055.712-1-64736c11.cust.bredbandsbolaget.se] has
quit [Read error: Operation timed out]
21:32 < kevlar_work> I dunno, there's something incredibly gratifying about
adding "defer timer()()" to the top of any function.
21:32 < Fib> http://www.youtube.com/watch?v=5kj5ApnhPAE hadn't seen this
talk before, it's short and sweet
21:32 -!- tobier [~tobier@c-1c9de055.712-1-64736c11.cust.bredbandsbolaget.se] has
joined #go-nuts
21:34 < sauerbraten> How do I save the returned value of a function which is
excuted via defer?  like " i := defer strconv.Atoi("123")"?
21:35 < str1ngs> kevlar_work: actually the nice part about that is how it
handles runtime.Caller
21:35 < edsrzf> sauerbraten: You'd have to create a closure and defer the
closure
21:35 < kevlar_work> I find that runtime.Caller() makes for some *really*
snazzy things, but it's way to magical for me to use very often.
21:36 < str1ngs> kevlar_work: in this case though its solves a problem I was
having with it
21:36 < kevlar_work> sauerbraten, defer doesn't run until after you
return...  so you can't get its value within the function
21:36 < str1ngs> which is figuring out where in the call chain it is
21:36 < sauerbraten> :/
21:37 < edsrzf> If you put it in a closure like func() { i =
strconv.Atoi("123") }, where i is a return value for the outer function, you can
save it.
21:37 < kevlar_work> sauerbraten, why are you wanting to use defer?
21:37 < sauerbraten> for that timer, it needs the defer
timer.From(timer.Now))
21:38 < chomp> doesnt From just print to stdout though?
21:38 < chomp> i.e.  no return
21:38 < str1ngs> kevlar_work: mind I use that function?
21:39 < sauerbraten> chomp, I modified it
21:39 < kevlar_work> str1ngs, haha, I wrote it up in like 30 seconds for the
purpose of you guys stealing it ^_^
21:39 < chomp> ah
21:39 < kevlar_work> To me, that little function is one example of why Go is
awesome.
21:40 -!- Niedar [~bleh@ip68-99-166-222.hr.hr.cox.net] has quit [Read error:
Connection reset by peer]
21:40 < chomp> well, var t int64; defer func() { fmt.Printf("I am evil and
t=%v\n", t) } defer func() { t = timer.From(timer.Now) } // that would "work" yes?
21:41 < chomp> not that it seems like a good idea in any case
21:41 -!- Niedar [~bleh@68.99.166.222] has joined #go-nuts
21:41 -!- freetz [~fritz@bc-proxy-2.sandia.gov] has quit [Ping timeout: 264
seconds]
21:42 -!- tncardoso [~thiago@189.115.130.173] has quit [Quit: bye]
21:42 < chomp> actually i guess i could see how that might end up being
useful, if not pretty
21:43 < chomp> also, the second defer would actually be defer func(now
int64) { t = timer.From(now) }(timer.Now())
21:43 < kevlar_work> chomp, I may be missing something, but that does not
seem like it would work
21:44 < chomp> por que?
21:45 < kevlar_work> both defers run after the function is done...
21:45 < chomp> yes, in reverse order
21:47 < kevlar_work> indeed.  but still, it doesn't time anything.
21:47 < chomp> doh.  you're right :)
21:48 < chomp> now := timer.Now() ...  defer func() { t = timer.From(now)
}()
21:48 < chomp> that'll do it
21:48 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
21:48 < chomp> assuming the things you want to time are after the now
assignment
21:48 < kevlar_work> yeah.
21:49 < kevlar_work> But it still requires two lines instead of one, and you
have to print timer.From or lose it.
21:50 < chomp> or pass it to someone else who cares, write it to a channel
etc
21:50 < chomp> not suggesting that i have a good use for it, but he wanted
to do something to the result of a deferred From
21:51 -!- TMKCodes [~TMKCodes@unaffiliated/tmkcodes] has joined #go-nuts
21:51 < kevlar_work> but that doesn't really use the result of it.  You
actually *cannot* use the result of a function run from go or defer
21:52 < kevlar_work> you can store them in external variables (e.g.  the
named return value, especially in the case of the defer), but that's not the same
as the return
21:53 < chomp> it's not using the result of a defer, it's using the result
of something called within a defer
21:53 < chomp> of course that code is needlessly complex anyway
21:53 < chomp> because if you're going to wrap From in a closure you can do
whatever you want with it there
21:54 < chomp> ala, defer func() { timerChan <- timer.From(now) }
21:54 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by
peer]
21:56 -!- erus` [~chatzilla@host86-162-227-192.range86-162.btcentralplus.com] has
left #go-nuts []
22:04 -!- tobier_ [~tobier@c-1c9de055.712-1-64736c11.cust.bredbandsbolaget.se] has
joined #go-nuts
22:04 -!- jstemmer [~cheetah@mrpwn.stemmertech.com] has quit [Quit: leaving]
22:04 -!- tobier [~tobier@c-1c9de055.712-1-64736c11.cust.bredbandsbolaget.se] has
quit [Read error: Operation timed out]
22:04 -!- hargettp_ [~hargettp_@dhcp-162.mirrorimage.net] has quit [Quit:
hargettp_]
22:14 -!- r_linux [~r_linux@smtp.mandique.com.br] has quit [Quit: Lost terminal]
22:14 -!- angasule [~angasule@gw.dc.uba.ar] has joined #go-nuts
22:14 -!- keithcascio [~keithcasc@nat/google/x-kqwqjofmherigfxz] has quit [Quit:
Leaving]
22:22 -!- angasule [~angasule@gw.dc.uba.ar] has quit [Ping timeout: 240 seconds]
22:30 -!- pamera1 [~Pam@c-76-102-255-99.hsd1.ca.comcast.net] has quit [Read error:
Connection reset by peer]
22:31 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has joined
#go-nuts
22:37 -!- pamera [~Pam@c-76-102-255-99.hsd1.ca.comcast.net] has joined #go-nuts
22:50 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined
#go-nuts
22:55 -!- gtaylor [~gtaylor@host-209-149-113-30.ghs.org] has quit [Quit: gtaylor]
22:56 -!- Venom_X [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has quit
[Quit: Venom_X]
23:02 -!- pharris [~Adium@rhgw.opentext.com] has quit [Quit: Leaving.]
23:02 -!- keeth_ [~keeth@74.198.151.9] has joined #go-nuts
23:03 -!- keeth_ [~keeth@74.198.151.9] has quit [Client Quit]
23:03 -!- tobier_ [~tobier@c-1c9de055.712-1-64736c11.cust.bredbandsbolaget.se] has
quit [Read error: Operation timed out]
23:03 -!- tobier [~tobier@c-1c9de055.712-1-64736c11.cust.bredbandsbolaget.se] has
joined #go-nuts
23:03 -!- ampleyfl1 [ampleyfly@gateway/shell/blinkenshell.org/x-auzbktdzyjjsjgmt]
has joined #go-nuts
23:04 -!- sauerbraten [~sauerbrat@p5B38B224.dip.t-dialin.net] has quit [Remote
host closed the connection]
23:04 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 246 seconds]
23:04 -!- ampleyfly [ampleyfly@gateway/shell/blinkenshell.org/x-ylsyyynhnxegxavn]
has quit [Ping timeout: 246 seconds]
23:04 -!- ukai_ [~ukai@nat/google/x-votwzbzpxzpxgotb] has quit [Ping timeout: 246
seconds]
23:04 -!- prip [~foo@host72-9-dynamic.7-79-r.retail.telecomitalia.it] has quit
[Ping timeout: 246 seconds]
23:05 -!- prip [~foo@host72-9-dynamic.7-79-r.retail.telecomitalia.it] has joined
#go-nuts
23:05 -!- keeth [~keeth@207.102.25.19] has quit [Ping timeout: 276 seconds]
23:06 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
23:07 -!- m4dh4tt3r [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has quit [Quit:
Leaving.]
23:07 < homa_rano> what's the name of that package with the high-level
subprocess api?
23:08 < homa_rano> ah found it, exec
23:10 -!- gtaylor [~gtaylor@host-209-149-113-30.ghs.org] has joined #go-nuts
23:15 < skelterjohn> os also has some stuff
23:15 < skelterjohn> there is os.StartProcess and exec.Run, one of them
calls the other
23:15 < skelterjohn> i forget which
23:16 -!- tobier_ [~tobier@c-1c9de055.712-1-64736c11.cust.bredbandsbolaget.se] has
joined #go-nuts
23:16 -!- tobier [~tobier@c-1c9de055.712-1-64736c11.cust.bredbandsbolaget.se] has
quit [Read error: Operation timed out]
23:16 -!- cco3 [~conleyo@nat/google/x-zebdkgotubmvirvv] has quit [Quit: Leaving.]
23:17 -!- eestolano [~Adium@4.78.243.126] has joined #go-nuts
23:18 < chomp> exec.Run calls os.StartProcess, which in turn (at least on
unix/posix) calls syscall.StartProcess :p
23:20 -!- gtaylor [~gtaylor@host-209-149-113-30.ghs.org] has quit [Quit: gtaylor]
23:21 -!- tobier [~tobier@c-1c9de055.712-1-64736c11.cust.bredbandsbolaget.se] has
joined #go-nuts
23:21 -!- tobier_ [~tobier@c-1c9de055.712-1-64736c11.cust.bredbandsbolaget.se] has
quit [Read error: Operation timed out]
23:21 < homa_rano> I was looking for the one that automagically provides
pipes for stdin etc
23:21 < chomp> os.StartProcess does that, sort of
23:22 < chomp> you have to provide the files, but it will dup them in the
child process
23:22 < homa_rano> exec.Run seems to be the perfect level of abstraction
23:22 < chomp> oh, i see it takes fds.  didn't realize that
23:23 < chomp> i had to write my own version of StartProcess last night to
give children their own controlling terminal
23:23 < chomp> homa_rano, out of curiosity, whatcha doin?
23:23 < skelterjohn> easy to use exec.Run to pipe stdin, stdout and stderr
however you like
23:23 < chomp> yeah unfortunately you don't get your own session or tty
23:24 < skelterjohn> hmm
23:24 < chomp> which sucks if you're trying to spawn a new login shell :)
23:24 < chomp> there's really no way to do it with the current stdlib.
syscall.StartProcess does internally provide a flag to ask for a new session, but
even then theres no option to set up a controlling tty
23:25 < chomp> it only requires one element to be added to ProcAttr and an
additional syscall ioctl to make it work
23:26 < chomp> additional syscall in the child process, that is
23:26 < chomp> https://github.com/krockot/goterm/blob/master/term/exectty.go
23:27 -!- ukai_ [~ukai@nat/google/x-mcxbzgpootkgewbw] has joined #go-nuts
23:28 < homa_rano> chomp: just calling a program which I to stream stdin and
stdout
23:28 < chomp> basically i added lines 118-123 and the Ctty member to
procattr.
23:28 < chomp> homa_rano, word
23:28 -!- gtaylor [~gtaylor@host-209-149-113-30.ghs.org] has joined #go-nuts
23:30 < skelterjohn> chomp: consider making a contribution
23:31 -!- jarsen [~jarsen@76.8.206.21] has joined #go-nuts
23:31 < skelterjohn> mention it on go-dev and see what they say
23:31 < chomp> i'd be happy to.  haven't looked into that whole process yet.
guess i should join the mailing list
23:31 < skelterjohn> i just use the web interface
23:31 < skelterjohn> https://groups.google.com/forum/#!forum/golang-nuts
https://groups.google.com/forum/#!forum/golang-dev
23:32 < chomp> ah sweet
23:38 -!- tvw [~tv@e176002018.adsl.alicedsl.de] has quit [Read error: Connection
reset by peer]
23:38 -!- shvntr [~shvntr@113.84.148.11] has joined #go-nuts
23:40 -!- Wiz126 [~Wiz@24.229.245.72.res-cmts.sm.ptd.net] has quit [Ping timeout:
264 seconds]
23:41 -!- gtaylor [~gtaylor@host-209-149-113-30.ghs.org] has quit [Quit: gtaylor]
23:51 -!- tobym [~tobym@cpe-72-229-2-6.nyc.res.rr.com] has quit [Ping timeout: 240
seconds]
23:55 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has quit
[Ping timeout: 276 seconds]
23:56 -!- tobym [~tobym@cpe-72-229-2-6.nyc.res.rr.com] has joined #go-nuts
23:58 -!- tobier_ [~tobier@c-1c9de055.712-1-64736c11.cust.bredbandsbolaget.se] has
joined #go-nuts
23:59 -!- Bigbear1 [~Cody@d173-181-43-12.abhsia.telus.net] has quit [Read error:
Connection reset by peer]
23:59 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has joined #go-nuts
--- Log closed Sat May 21 00:00:50 2011