--- Log opened Mon Apr 04 00:00:40 2011
--- Day changed Mon Apr 04 2011
00:00 -!- tgall_foo [~tgall@206.9.88.154] has quit [Ping timeout: 250 seconds]
00:00 -!- cw [~anticw@parsec.stupidest.org] has quit [Ping timeout: 250 seconds]
00:00 -!- Boney [~paul@203-158-33-103.dyn.iinet.net.au] has quit [Ping timeout:
250 seconds]
00:00 -!- cw_ [~anticw@parsec.stupidest.org] has joined #go-nuts
00:00 -!- prip [~foo@host35-123-dynamic.35-79-r.retail.telecomitalia.it] has quit
[Ping timeout: 252 seconds]
00:00 -!- eikenberry [~jae@ivanova.zhar.net] has quit [Ping timeout: 250 seconds]
00:01 -!- d2biG [drbig@unhallowed.pl] has quit [Ping timeout: 252 seconds]
00:01 -!- roto [~roto@64.79.202.154] has quit [Ping timeout: 252 seconds]
00:01 -!- tav [~tav@92.7.141.101] has quit [Ping timeout: 250 seconds]
00:02 -!- eikenberry [~jae@ivanova.zhar.net] has joined #go-nuts
00:02 -!- dRbiG [drbig@unhallowed.pl] has joined #go-nuts
00:02 -!- prip [~foo@host35-123-dynamic.35-79-r.retail.telecomitalia.it] has
joined #go-nuts
00:04 -!- crazy2be [~crazy2be@S01060012171a573b.cg.shawcable.net] has joined
#go-nuts
00:04 < crazy2be> gah
00:04 < crazy2be> so there seems to be this bug
00:04 < crazy2be> where the Path=blar part of a cookie header is url-escaped
00:04 < crazy2be> that is, Path=/ becomes Path=%2f
00:05 < crazy2be> which is NOT what the spec advocates
00:05 < crazy2be> and does NOT work in firefox
00:05 < crazy2be> or anything other than chrome afaik
00:05 -!- stalled [~stalled@unaffiliated/stalled] has joined #go-nuts
00:05 < crazy2be> and it only sort of works in chrome
00:05 < crazy2be> has anyone else encountered this problem?
00:07 -!- skelterjohn [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has quit [Read
error: Connection reset by peer]
00:08 -!- Boney [~paul@203-158-33-103.dyn.iinet.net.au] has joined #go-nuts
00:08 -!- littlebobby [~bob@unaffiliated/littlebobby] has joined #go-nuts
00:09 -!- skelterjohn [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has joined
#go-nuts
00:11 -!- roto [~roto@64.79.202.154] has joined #go-nuts
00:11 < plexdev> http://is.gd/t0mVHP by [Andrew Gerrand] in go/src/ --
version.bash: strip changeset hash from 'hg tags' output
00:12 < steven> skelterjohn: really?
00:15 < justinlilly> How can I make a one-time use struct?  I'm attempting
new(struct{Issue Issue}) (where Issue is a type I've defined)
00:16 < justinlilly> doesn't seem to fail explictly, but I can't seem to
unmarshal a json object into it.  It comes back as empty (0 initialized)
00:16 < crazy2be> justinlily: why?
00:17 < justinlilly> crazy2be: why am I attempting to use it?  I don't want
to declare a type which is effectively just used to unmarshal an object.
00:17 < steven> justinlilly: a struct is just an unnamed type
00:17 < steven> oh, is ee your problm
00:18 < justinlilly> I have the json format {'issue':{...}} where {...} is
an unmarshalable Issue type.
00:18 < justinlilly> Seems silly to make something more permenant just to
get the object I really want out of that json stream.
00:18 -!- Cobi [~Cobi@2002:1828:88fb:0:aede:48ff:febe:ef03] has quit [Ping
timeout: 260 seconds]
00:18 < steven> you might be in trouble because its unnamed.  im not sure if
the reflect package cares about that though.  but its worth a try to name it
temprarily and see if that fixes the problem
00:18 < steven> but i doubt thats the issue.  im suggesting it more as a way
of process of elim
00:19 < crazy2be> struct Issue{Issue} might work
00:19 < crazy2be> hm
00:19 < justinlilly> defining the type doesn't seem to help..
00:19 < crazy2be> but what you are trying to do is more of something you
would use python for.
00:20 < crazy2be> a concrete type is probably your best bet
00:20 < justinlilly> I find that response a bit alarming.
00:20 * justinlilly gets over it.
00:20 < crazy2be> lol
00:20 < crazy2be> why?
00:21 < justinlilly> Want to parse arbitrary json?  Oh, you're probably
looking for Python.  Nothing to see here, move along.
00:21 < crazy2be> no, i'm just saying that if you want to parse json without
struct fields that are named at compile-time, you would be better off with python
00:22 < crazy2be> if you do know them at compile time, it's trivial to make
a struct within a struct
00:22 < crazy2be> as many times as you want
00:22 < crazy2be> to unmarshal the json object
00:22 < crazy2be> i had picasa feeds i had to deal with, now that was a pain
00:22 < crazy2be> they had $ in the field names
00:22 < crazy2be> so i couldn't unmarshal them
00:23 < justinlilly> just seems like unnecessary overhead to create an
object for each response you want to handle in your app.
00:23 < justinlilly> s/object/type/
00:23 < crazy2be> justinlilly: If it seems that way for what you are trying
to do, you'd find python more fun
00:23 < crazy2be> go does that to provide type safety
00:23 < justinlilly> I'm quite familiar with Python, thank you.  No need to
sell me on it.
00:24 < crazy2be> ok :)
00:25 -!- bugQ [~bug@c-67-171-127-76.hsd1.ut.comcast.net] has joined #go-nuts
00:27 -!- nettok [~quassel@200.119.183.244] has joined #go-nuts
00:27 < crazy2be> gah this bug is super annoying
00:27 -!- skelterjohn [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has quit [Read
error: Connection reset by peer]
00:27 < crazy2be> and i can't seem to figure out what causes it :/
00:29 -!- skelterjohn [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has joined
#go-nuts
00:32 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has joined
#go-nuts
00:34 -!- mpl__ [~mpl@smgl.fr.eu.org] has joined #go-nuts
00:34 -!- Stiletto [7f000001@69.195.144.4] has quit [Disconnected by services]
00:34 -!- Stiletto_ [7f000001@69.195.144.4] has joined #go-nuts
00:34 -!- djbrown_ [~djbrown@h236n2-g-va-a12.ias.bredband.telia.com] has joined
#go-nuts
00:35 -!- mpl_ [~mpl@smgl.fr.eu.org] has quit [Ping timeout: 240 seconds]
00:35 -!- djbrown [~djbrown@unaffiliated/djbrown] has quit [Ping timeout: 240
seconds]
00:35 -!- tylergillies [~quassel@unaffiliated/tylergillies] has quit [Ping
timeout: 240 seconds]
00:35 -!- d_m [~d_m@64.186.128.169] has quit [Ping timeout: 240 seconds]
00:35 -!- pingveno [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has quit [Ping
timeout: 240 seconds]
00:35 -!- electro__ [electro@c-bef570d5.033-10-67626721.cust.bredbandsbolaget.se]
has quit [Ping timeout: 240 seconds]
00:35 -!- electro_ [electro@c-bef570d5.033-10-67626721.cust.bredbandsbolaget.se]
has joined #go-nuts
00:36 -!- tensai_cirno [~cirno@77.232.15.216] has quit [Ping timeout: 240 seconds]
00:36 -!- tylergillies [~quassel@204-232-205-180.static.cloud-ips.com] has joined
#go-nuts
00:36 -!- tylergillies [~quassel@204-232-205-180.static.cloud-ips.com] has quit
[Changing host]
00:36 -!- tylergillies [~quassel@unaffiliated/tylergillies] has joined #go-nuts
00:36 -!- tensai_cirno [~cirno@77.232.15.216] has joined #go-nuts
00:37 -!- Adys [~Adys@unaffiliated/adys] has quit [Ping timeout: 240 seconds]
00:37 -!- pingveno [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has joined
#go-nuts
00:43 -!- d_m [~d_m@64.186.128.169] has joined #go-nuts
00:44 < crazy2be> There!
00:44 < crazy2be> 190 if len(c.Path) > 0 {
00:44 < crazy2be> 191 fmt.Fprintf(&b, "; Path=%s", URLEscape(c.Path))
00:44 < crazy2be> 192 }
00:44 < crazy2be> THAT IS WRONG
00:45 < crazy2be> in http/cookie.go
00:45 < btipling_> https://github.com/jteeuwen/ that guy has written a lot
of go stuff
00:47 < crazy2be> btipling_: Heh, a lot of that looks like stuff i wrote.
Great minds think alike :P
00:48 -!- skelterjohn [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has quit [Read
error: Connection reset by peer]
00:48 < str1ngs> thats exch
00:48 -!- Fish- [~Fish@exo3753.pck.nerim.net] has joined #go-nuts
00:49 -!- skelterjohn [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has joined
#go-nuts
00:49 -!- stalled [~stalled@unaffiliated/stalled] has quit [Ping timeout: 252
seconds]
00:50 < btipling_> he got an amazing amount of stuff done.  An ID3 tag
library, an rss and atom parser, a couple of irc bots, ...
00:50 < btipling_> usually people like work one one such thing and just make
it better
00:52 -!- impl [impl@atheme/member/impl] has quit [Ping timeout: 250 seconds]
00:53 -!- impl [impl@224-74.ip4.durham0.network.cynigram.com] has joined #go-nuts
00:53 -!- impl [impl@224-74.ip4.durham0.network.cynigram.com] has quit [Changing
host]
00:53 -!- impl [impl@atheme/member/impl] has joined #go-nuts
00:54 -!- str1ngs [~strings@unaffiliated/str1ngs] has quit [Ping timeout: 250
seconds]
00:55 * crazy2be is still confused why cookie paths are URLEscape()d by go's http
library
00:55 < dfc> crazy2be: have you signed the contributor CLA ?
00:55 < dfc> you should submit a CL with a fix for that problem
00:55 < crazy2be> dfc: How do i do that?
00:55 < dfc> http://golang.org/doc/contribute.html
00:55 < crazy2be> i might as well after spending 4 hours digging for the
problem :P
00:55 -!- SecretAgent [sa@28.158.143.98.nitemare.name] has quit [Ping timeout: 250
seconds]
00:56 -!- SecretAgent [sa@28.158.143.98.nitemare.name] has joined #go-nuts
00:58 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Ping timeout: 252 seconds]
00:58 -!- _nil [~nil@users.vu.union.edu] has quit [Ping timeout: 252 seconds]
00:58 -!- _nil [~nil@users.vu.union.edu] has joined #go-nuts
00:59 -!- bXi [bluepunk@irssi.co.uk] has quit [Ping timeout: 252 seconds]
00:59 -!- eikenberry [~jae@ivanova.zhar.net] has quit [Ping timeout: 252 seconds]
00:59 -!- roto [~roto@64.79.202.154] has quit [Ping timeout: 250 seconds]
00:59 -!- tsung [~jon@112.104.53.151] has quit [Ping timeout: 250 seconds]
00:59 -!- tgall_foo [~tgall@206.9.88.154] has joined #go-nuts
01:00 -!- bXi [bluepunk@irssi.co.uk] has joined #go-nuts
01:00 -!- tsung [~jon@112.104.53.151] has joined #go-nuts
01:04 -!- boscop [~boscop@f055066252.adsl.alicedsl.de] has quit [Ping timeout: 255
seconds]
01:05 -!- boscop [~boscop@f055066252.adsl.alicedsl.de] has joined #go-nuts
01:06 -!- roto [~roto@64.79.202.154] has joined #go-nuts
01:07 -!- skelterjohn [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has quit [Read
error: Connection reset by peer]
01:09 -!- boscop [~boscop@f055066252.adsl.alicedsl.de] has quit [Read error:
Connection reset by peer]
01:09 -!- skelterjohn [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has joined
#go-nuts
01:11 -!- boscop [~boscop@f055066252.adsl.alicedsl.de] has joined #go-nuts
01:11 -!- boscop [~boscop@f055066252.adsl.alicedsl.de] has quit [Excess Flood]
01:12 -!- stalled [~stalled@unaffiliated/stalled] has joined #go-nuts
01:12 -!- boscop [~boscop@f055066252.adsl.alicedsl.de] has joined #go-nuts
01:13 -!- eikenberry [~jae@ivanova.zhar.net] has joined #go-nuts
01:15 < mthreat> any unicode experts in the house?
01:16 < mthreat> i have an array of sorted strings.  given a prefix, i'm
querying this array for strings with this prefix
01:16 < mthreat> i first do a binary search to find the first string with
the prefix
01:16 < mthreat> then scan forward until the current string is no longer a
prefix match
01:17 < mthreat> but i'd rather do a second binary search to find the last
prefix match, so i don't have to do a "strings.HasPrefix()" call for each string
01:18 < mthreat> so i'm appending "~" to my prefix string for this second
binary search, and it works fine for western alphabets
01:19 < mthreat> but I want to know which character I can append on that
will work for any alphabet
01:20 -!- boscop [~boscop@f055066252.adsl.alicedsl.de] has quit [Ping timeout: 246
seconds]
01:27 -!- skelterjohn [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has quit [Read
error: Connection reset by peer]
01:29 -!- skelterjohn [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has joined
#go-nuts
01:34 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
01:38 -!- aho [~nya@fuld-590c7329.pool.mediaWays.net] has joined #go-nuts
01:38 -!- vsayer [~vivek@2001:470:1f04:1a6b:21a:6bff:fe35:d2a5] has joined
#go-nuts
01:40 -!- pphalen [~pphalen@66.92.11.149] has joined #go-nuts
01:42 -!- dropdrive [~dropdrive@cpe-72-227-159-70.nyc.res.rr.com] has quit [Read
error: Operation timed out]
01:45 -!- bugQ [~bug@c-67-171-127-76.hsd1.ut.comcast.net] has quit [Ping timeout:
240 seconds]
01:47 -!- skelterjohn [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has quit [Read
error: Connection reset by peer]
01:48 -!- alexandere [~alexander@eijg.xs4all.nl] has quit [Quit: alexandere]
01:48 -!- Wiz126 [Wiz@h187.120.232.68.ip.windstream.net] has quit [Ping timeout:
246 seconds]
01:49 -!- ampleyfly [ampleyfly@gateway/shell/blinkenshell.org/x-upvcwhnrolssdfpn]
has quit [Ping timeout: 248 seconds]
01:49 -!- skelterjohn [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has joined
#go-nuts
01:50 -!- ako [~nya@fuld-590c7338.pool.mediaWays.net] has joined #go-nuts
01:52 -!- aho [~nya@fuld-590c7329.pool.mediaWays.net] has quit [Ping timeout: 246
seconds]
01:55 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has quit
[Ping timeout: 276 seconds]
01:56 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has joined
#go-nuts
01:59 < manveru> mthreat: the highest possible unicode value?
01:59 -!- nictuku [~nictuku@cetico.org] has joined #go-nuts
02:01 -!- ampleyfly [ampleyfly@gateway/shell/blinkenshell.org/session] has joined
#go-nuts
02:01 -!- Wiz126 [Wiz@h187.120.232.68.ip.windstream.net] has joined #go-nuts
02:07 -!- Cobi [~Cobi@2002:1828:88fb:0:aede:48ff:febe:ef03] has joined #go-nuts
02:07 -!- skelterjohn [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has quit [Read
error: Connection reset by peer]
02:09 -!- skelterjohn [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has joined
#go-nuts
02:10 -!- vsayer [~vivek@2001:470:1f04:1a6b:21a:6bff:fe35:d2a5] has quit [Read
error: Operation timed out]
02:10 -!- vsayer [~vivek@2001:470:1f04:1a6b:21a:6bff:fe35:d2a5] has joined
#go-nuts
02:13 < mthreat> manveru: yeah, I guess that's what I need.  I'm trying it
with 0x10FFFF (unicode.MaxRune)
02:14 -!- tav [~tav@92.7.141.101] has joined #go-nuts
02:16 -!- dropdrive [~dropdrive@cpe-72-227-159-70.nyc.res.rr.com] has joined
#go-nuts
02:20 -!- itrekkie [~itrekkie@ip70-190-110-197.ph.ph.cox.net] has quit [Quit:
itrekkie]
02:22 -!- shvntr [~shvntr@119.121.27.90] has joined #go-nuts
02:24 -!- nictuku [~nictuku@cetico.org] has quit [Ping timeout: 240 seconds]
02:26 -!- cafesofie [~cafesofie@ool-4a5a6ee5.dyn.optonline.net] has quit [Remote
host closed the connection]
02:27 -!- tensai_cirno [~cirno@77.232.15.216] has quit [Quit: Leaving]
02:27 -!- skelterjohn [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has quit [Read
error: Connection reset by peer]
02:29 -!- skelterjohn [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has joined
#go-nuts
02:40 -!- str1ngs [~strings@unaffiliated/str1ngs] has joined #go-nuts
02:47 -!- skelterjohn [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has quit [Read
error: Connection reset by peer]
02:49 -!- skelterjohn [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has joined
#go-nuts
02:50 -!- Niedar [~bleh@ip68-99-166-222.hr.hr.cox.net] has joined #go-nuts
02:52 -!- Netsplit *.net <-> *.split quits: scoeri, evildho, steven,
suiside, prip, pjm0616, Innominate, [dmp]_, homa_rano, nsfx, (+10 more, use
/NETSPLIT to show all of them)
02:52 -!- Netsplit over, joins: Innominate
02:53 -!- larlup [~afhawe@61.69.3.34] has left #go-nuts ["leaf"]
02:53 -!- Netsplit over, joins: prip
02:55 -!- [dmp] [~dennis@users.d75.net] has joined #go-nuts
02:56 -!- Netsplit *.net <-> *.split quits: rejb, bXi, larva_, electro_,
jessta_, werdan7, prasmuss1n, aimxhaisse, Cobi, iTonnerre, (+133 more, use
/NETSPLIT to show all of them)
02:58 -!- j3parker [j3parker@artificial-flavours.csclub.uwaterloo.ca] has joined
#go-nuts
02:58 -!- scoeri [~jdekoste@progftp.vub.ac.be] has joined #go-nuts
02:58 -!- dario_ [~dario@domina.zerties.org] has joined #go-nuts
02:58 -!- kevinwatt [~kevin@59-125-147-75.HINET-IP.hinet.net] has joined #go-nuts
02:58 -!- ampleyfly [ampleyfly@gateway/shell/blinkenshell.org/session] has joined
#go-nuts
02:58 -!- yugui_zzz [~yugui@yugui.jp] has joined #go-nuts
02:58 -!- steven [~steven@209.20.91.86] has joined #go-nuts
02:58 -!- Mr_Dark` [~dk@poviko.demon.nl] has joined #go-nuts
02:58 -!- pjm0616 [~user@110.9.28.45] has joined #go-nuts
02:58 -!- evildho [~dho@onager.omniti.com] has joined #go-nuts
02:58 -!- nsfx [~nsfx@pool-96-225-70-167.nwrknj.fios.verizon.net] has joined
#go-nuts
02:58 -!- tylergillies [~quassel@unaffiliated/tylergillies] has joined #go-nuts
02:58 -!- Netsplit over, joins: dreadlorde, yiyus, Fish-, taruti, foocraft,
nixness, rejb, xyproto, aimxhaisse, i__ (+133 more)
02:59 -!- Paradox924X [~Paradox92@vaserv/irc/founder] has quit [Ping timeout: 248
seconds]
02:59 -!- Mr_Dark [~dk@poviko.demon.nl] has quit [Ping timeout: 248 seconds]
02:59 -!- manveru [~manveru@b08s28ur.corenetworks.net] has quit [Ping timeout: 248
seconds]
03:00 -!- jnwhiteh [~jnwhiteh@WoWUIDev/WoWI/Featured/Dongle/cladhaire] has quit
[Ping timeout: 248 seconds]
03:01 -!- pothos [~pothos@111-240-164-208.dynamic.hinet.net] has quit [Ping
timeout: 248 seconds]
03:01 -!- suiside [tajnyman@unaffiliated/suiside] has joined #go-nuts
03:01 -!- nettok [~quassel@200.119.183.244] has joined #go-nuts
03:01 -!- dforsyth [~dforsyth@ec2-50-18-22-230.us-west-1.compute.amazonaws.com]
has joined #go-nuts
03:01 -!- larva_ [~larvanitr@ec2-46-51-171-183.eu-west-1.compute.amazonaws.com]
has quit [Quit: No Ping reply in 180 seconds.]
03:01 -!- Zoopee [alsbergt@zoopee.org] has quit [Ping timeout: 251 seconds]
03:01 -!- larva [~larvanitr@ec2-46-51-171-183.eu-west-1.compute.amazonaws.com] has
joined #go-nuts
03:01 -!- enferex [~enferex@users.757.org] has joined #go-nuts
03:02 -!- manveru [~manveru@b08s28ur.corenetworks.net] has joined #go-nuts
03:02 -!- Zoopee [alsbergt@zoopee.org] has joined #go-nuts
03:02 -!- jnwhiteh [~jnwhiteh@WoWUIDev/WoWI/Featured/Dongle/cladhaire] has joined
#go-nuts
03:02 -!- pothos [~pothos@111-240-164-208.dynamic.hinet.net] has joined #go-nuts
03:04 -!- homa_rano [~erice@hmsvelociraptor.csail.mit.edu] has joined #go-nuts
03:06 -!- pphalen [~pphalen@66.92.11.149] has left #go-nuts []
03:06 -!- Paradox924X [~Paradox92@c-68-35-229-34.hsd1.fl.comcast.net] has joined
#go-nuts
03:16 -!- vsmatck [~smack@64-142-40-6.dsl.static.sonic.net] has joined #go-nuts
03:16 -!- boscop [~boscop@f055066252.adsl.alicedsl.de] has joined #go-nuts
03:16 < vsmatck> Is this expected or a compiler/language bug?
http://pastie.org/1752916
03:18 < vsmatck> Doesn't seem like the variable from the "if" scope should
be in the scope of the "else if".  Dunno.
03:18 < dfc> val is being aliased
03:18 -!- Paradox924X [~Paradox92@c-68-35-229-34.hsd1.fl.comcast.net] has quit
[Changing host]
03:18 -!- Paradox924X [~Paradox92@vaserv/irc/founder] has joined #go-nuts
03:19 < skelterjohn> i'm not sure "alias" is the right word to use here
03:19 < vsmatck> I don't know what "aliased" means.  I've just done a search
on the language pec.
03:19 < vsmatck> spec
03:19 < dfc> /s/aliases/scoped
03:19 < skelterjohn> (alias has a specific meaning in some other programming
languages)
03:20 < dfc> apollogies
03:20 < vsmatck> Ah, k we'll set that one aside then.
03:20 < dfc> gah
03:20 < vsmatck> np
03:20 < skelterjohn> but it appears that, as you said, the var declared in
the if scope makes it into the else
03:20 < dfc> yup, that is how it works
03:20 -!- ayo [~nya@fuld-590c7338.pool.mediaWays.net] has joined #go-nuts
03:20 < dfc> as i understand it
03:20 < dfc> the scope of the variables defined in the if clause extends
around the else as well
03:20 < skelterjohn> certainly in the AST, the else is a child of the if
03:20 < vsmatck> Is that right?  It's not what I'd expect.  I'd expect a new
block to be started for each "if"/"else if".
03:21 < dfc> i wasn't sure that go did else if
03:21 < dfc> i thought it was
03:21 < dfc> if ...  := ...  { } else { if ...  := } }
03:22 < vsmatck> Ah! Like I may want to do if a, ok := bla.(type); ok {}
else {...  And I may want to use the declared a in the else case.
03:22 -!- boscop_ [~boscop@f055066252.adsl.alicedsl.de] has joined #go-nuts
03:22 < skelterjohn> you could also name it something else O:-)
03:22 -!- ww_ [~ww@river.styx.org] has joined #go-nuts
03:22 * dfc agrees
03:22 < skelterjohn> i generally try to avoid reusing names in the same
block
03:22 < skelterjohn> i get confused
03:22 < dfc> reusing variable names with the := syntax is complicated
03:23 < vsmatck> Hm. Strange.  In this instance it's less complicated (for
me).  I think "use as structval", "use as mapval", etc with each case.
03:23 < skelterjohn> use a type switch
03:23 < dfc> vsmatck: you should use a switch
03:24 * dfc jinx!
03:24 < vsmatck> Ah. That'd be nice.  I will do that.
03:24 < skelterjohn> wait, what does this code even mean?
03:24 < skelterjohn> val = val?
03:24 -!- SecretAg1nt [sa@28.158.143.98.nitemare.name] has joined #go-nuts
03:24 < skelterjohn> how can that be anything other than a no-op?
03:25 < vsmatck> That's to stop the compiler from complaining for the
purpose of demonstration.
03:25 < skelterjohn> or were you trying to make it not complain about unused
vars
03:25 < skelterjohn> ok
03:25 < dfc> _ = val
03:25 -!- Boney_ [~paul@203-158-33-103.dyn.iinet.net.au] has joined #go-nuts
03:25 < skelterjohn> http://pastie.org/1752939
03:26 < skelterjohn> i have a feeling it will be a StringValue, though :)
03:26 < vsmatck> skelterjohn/dfc: I agree that "use a switch" is the right
answer.
03:26 < vsmatck> Thanks for taking a look at it for me guys.  :)
03:26 < dfc> no worries
03:27 < dfc> thanks for showing me else if
03:27 < dfc> i didn't know go had it
03:27 -!- boscop_ [~boscop@f055066252.adsl.alicedsl.de] has quit [Ping timeout:
240 seconds]
03:27 < vsmatck> I bet I know why I use "else if" when I shouldn't.  I'm a
C++ programmer.  heh
03:28 < vsmatck> In C++ the switch is very limited.
03:29 -!- boscop [~boscop@f055066252.adsl.alicedsl.de] has quit [Ping timeout: 246
seconds]
03:29 -!- tav [~tav@92.7.141.101] has quit [Ping timeout: 246 seconds]
03:29 -!- SecretAgent [sa@28.158.143.98.nitemare.name] has quit [Ping timeout: 246
seconds]
03:29 -!- ako [~nya@fuld-590c7338.pool.mediaWays.net] has quit [Ping timeout: 246
seconds]
03:29 -!- espeed [~espeed@63.246.231.57] has quit [Ping timeout: 246 seconds]
03:29 -!- archevan [~archevan@67.69.227.99] has quit [Ping timeout: 246 seconds]
03:29 -!- littlebobby [~bob@unaffiliated/littlebobby] has quit [Ping timeout: 246
seconds]
03:29 -!- Boney [~paul@203-158-33-103.dyn.iinet.net.au] has quit [Ping timeout:
246 seconds]
03:29 -!- ww [~ww@river.styx.org] has quit [Ping timeout: 246 seconds]
03:30 < skelterjohn> go does switch in a much nicer way than C++
03:30 < vsmatck> Apparently I'm a good C++ programmer since I can program
C++ in Go.
03:30 < skelterjohn> but C++'s switch makes a lot of sense on the machine
code level
03:31 -!- nu11ptr [~nu11ptr@adsl-76-235-222-18.dsl.klmzmi.sbcglobal.net] has quit
[Quit: Leaving]
03:31 < skelterjohn> if you think about it as a slightly structured goto
03:31 -!- espeed [~espeed@63.246.231.57] has joined #go-nuts
03:31 -!- archevan [~archevan@67.69.227.99] has joined #go-nuts
03:32 < steven> superfast
03:32 < steven> s/C++/C/g
03:33 < skelterjohn> is there a difference in how C and C++ do a switch?
03:33 < jesusaurus> nope
03:34 < skelterjohn> i didn't think so.
03:35 -!- littlebobby [~bob@unaffiliated/littlebobby] has joined #go-nuts
03:42 -!- littlebobby [~bob@unaffiliated/littlebobby] has left #go-nuts
["Ex-Chat"]
03:50 -!- karpar [~karpar@112.96.254.17] has joined #go-nuts
03:57 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has quit
[Ping timeout: 240 seconds]
04:01 -!- fluffle [~camelid@s.pl0rt.org] has quit [Read error: Connection reset by
peer]
04:02 -!- uriel_ [~uriel@li43-28.members.linode.com] has joined #go-nuts
04:03 -!- j3parker_ [j3parker@artificial-flavours.csclub.uwaterloo.ca] has joined
#go-nuts
04:03 -!- JBeshir [~namegduf@eu.beshir.org] has joined #go-nuts
04:04 -!- lmoura__ [~lauromour@187.113.126.201] has joined #go-nuts
04:05 -!- Netsplit *.net <-> *.split quits: ukai, Xenith, arun, Urtie,
rphillips_, XenoPhoenix, KBme, vsayer, j3parker, lmoura_, (+10 more, use /NETSPLIT
to show all of them)
04:06 -!- ukai [~ukai@nat/google/x-uapxhpicdvwqfilu] has joined #go-nuts
04:09 -!- XenoPhoenix [~Xeno@cpc13-aztw24-2-0-cust23.aztw.cable.virginmedia.com]
has joined #go-nuts
04:11 -!- tobier [~tobier@c-1e9de055.712-1-64736c11.cust.bredbandsbolaget.se] has
joined #go-nuts
04:11 -!- Natch| [~natch@c-84cce155.25-4-64736c10.cust.bredbandsbolaget.se] has
joined #go-nuts
04:11 -!- vsayer [~vivek@2001:470:1f04:1a6b:21a:6bff:fe35:d2a5] has joined
#go-nuts
04:11 -!- rphillips_ [~rphillips@2001:470:21:31::42dc:59] has joined #go-nuts
04:11 -!- KBme [~KBme@9angled-2-pt.tunnel.tserv5.lon1.ipv6.he.net] has joined
#go-nuts
04:11 -!- cbeck [cbeck@gateway/shell/pdx.edu/x-injwiikyeianenxm] has joined
#go-nuts
04:11 -!- niekie [~niek@CAcert/Assurer/niekie] has joined #go-nuts
04:11 -!- arun [~arun@unaffiliated/sindian] has joined #go-nuts
04:11 -!- Xenith [~xenith@xenith.org] has joined #go-nuts
04:11 -!- Urtie [~urtie@2a01:2b0:301d:100:e2cb:4eff:fecd:72d2] has joined #go-nuts
04:11 -!- [dmp] [~dennis@unaffiliated/dmp/x-546784] has joined #go-nuts
04:15 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
04:24 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 246 seconds]
04:26 -!- itrekkie [~itrekkie@ip72-211-131-205.tc.ph.cox.net] has joined #go-nuts
04:27 -!- nettok [~quassel@200.119.183.244] has quit [Ping timeout: 246 seconds]
04:32 -!- yugui_zzz [~yugui@yugui.jp] has quit [Quit: yugui_zzz]
04:32 -!- yugui_zzz [~yugui@yugui.jp] has joined #go-nuts
04:33 -!- tensai_cirno [~cirno@80.250.216.102] has joined #go-nuts
04:34 -!- littlebobby [~bob@unaffiliated/littlebobby] has joined #go-nuts
04:37 -!- zozoR [~Morten@56344e3e.rev.stofanet.dk] has joined #go-nuts
04:39 -!- djbrown [~djbrown@h236n2-g-va-a12.ias.bredband.telia.com] has quit
[Changing host]
04:39 -!- djbrown [~djbrown@unaffiliated/djbrown] has joined #go-nuts
04:44 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
04:51 -!- tensorpudding [~user@99.148.205.193] has quit [Read error: Connection
reset by peer]
04:52 -!- tensorpudding [~user@99.148.205.193] has joined #go-nuts
04:52 -!- tensorpudding [~user@99.148.205.193] has quit [Remote host closed the
connection]
04:52 -!- erutinruf [~afhawe@61.69.3.34] has joined #go-nuts
05:09 -!- fabled [~fabled@83.145.235.194] has joined #go-nuts
05:14 -!- kvey [~xantosfla@150.135.210.46] has joined #go-nuts
05:17 -!- zozoR [~Morten@56344e3e.rev.stofanet.dk] has quit [Remote host closed
the connection]
05:24 -!- edsrzf [~chickench@122-61-221-144.jetstream.xtra.co.nz] has joined
#go-nuts
05:29 -!- karpar [~karpar@112.96.254.17] has quit [Ping timeout: 240 seconds]
05:37 -!- ExtraSpice [XtraSpice@88.118.35.153] has joined #go-nuts
05:44 -!- kevinwatt [~kevin@59-125-147-75.HINET-IP.hinet.net] has quit [Ping
timeout: 240 seconds]
05:44 -!- kevinwatt [~kevin@59-125-147-75.HINET-IP.hinet.net] has joined #go-nuts
05:46 -!- karpar [~user@112.96.224.12] has joined #go-nuts
05:46 -!- venk [~user@203.111.33.203] has joined #go-nuts
05:50 -!- vpit3833 [~user@203.111.33.203] has quit [Ping timeout: 250 seconds]
05:52 -!- crazy2be [~crazy2be@S01060012171a573b.cg.shawcable.net] has quit [Remote
host closed the connection]
06:05 -!- boscop [~boscop@f055066252.adsl.alicedsl.de] has joined #go-nuts
06:09 -!- boscop [~boscop@f055066252.adsl.alicedsl.de] has quit [Read error:
Connection reset by peer]
06:13 -!- boscop_ [~boscop@f055066252.adsl.alicedsl.de] has joined #go-nuts
06:17 -!- boscop_ [~boscop@f055066252.adsl.alicedsl.de] has quit [Read error:
Connection reset by peer]
06:19 -!- karpar [~user@112.96.224.12] has quit [Remote host closed the
connection]
06:25 -!- karpar [~user@112.96.224.12] has joined #go-nuts
06:26 -!- boscop [~boscop@f055066252.adsl.alicedsl.de] has joined #go-nuts
06:31 -!- boscop [~boscop@f055066252.adsl.alicedsl.de] has quit [Ping timeout: 240
seconds]
06:39 -!- jokoon [~jorinovsk@LMontsouris-156-26-32-176.w80-14.abo.wanadoo.fr] has
joined #go-nuts
06:50 -!- itrekkie [~itrekkie@ip72-211-131-205.tc.ph.cox.net] has quit [Quit:
itrekkie]
06:58 -!- piranha [~piranha@D57D1AB3.static.ziggozakelijk.nl] has joined #go-nuts
07:02 -!- dfc [~dfc@eth59-167-133-99.static.internode.on.net] has quit [Ping
timeout: 260 seconds]
07:07 -!- skejoe [~skejoe@188.114.142.217] has joined #go-nuts
07:21 -!- tvw [~tv@e176001096.adsl.alicedsl.de] has joined #go-nuts
07:22 -!- clip9 [clip9@er.en.svarteper.com] has quit [Ping timeout: 260 seconds]
07:28 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
07:31 -!- skejoe_ [~skejoe@188.114.142.217] has joined #go-nuts
07:33 -!- itrekkie [~itrekkie@ip72-211-131-205.tc.ph.cox.net] has joined #go-nuts
07:34 -!- skejoe [~skejoe@188.114.142.217] has quit [Ping timeout: 250 seconds]
07:35 -!- clip9 [clip9@er.en.svarteper.com] has joined #go-nuts
07:36 -!- wrtp [~rog@2.97.144.60] has joined #go-nuts
07:42 -!- pilgrum [~pilgrum@cpe-67-49-71-222.socal.res.rr.com] has joined #go-nuts
07:45 -!- skejoe_ [~skejoe@188.114.142.217] has quit [Quit: Lost terminal]
08:10 -!- statik_ [u986@gateway/web/irccloud.com/x-awbzzfbmlympnygp] has joined
#go-nuts
08:11 -!- Pete_27 [~noname@110-174-103-31.static.tpgi.com.au] has joined #go-nuts
08:13 -!- prip_ [~foo@host35-123-dynamic.35-79-r.retail.telecomitalia.it] has
joined #go-nuts
08:14 -!- GoBIR_ [~gobir@70-90-168-189-SFBACalifornia.hfc.comcastbusiness.net] has
joined #go-nuts
08:15 -!- xulfer_ [~xulfer@cheapbsd.net] has joined #go-nuts
08:16 -!- mpl_ [~mpl@smgl.fr.eu.org] has joined #go-nuts
08:16 -!- AndyP_ [~andyp@baud.org.uk] has joined #go-nuts
08:16 -!- _nil_ [~nil@users.vu.union.edu] has joined #go-nuts
08:16 -!- GilJ_ [~GilJ@zeus.ugent.be] has joined #go-nuts
08:16 -!- irc [~irc@209.17.191.58] has joined #go-nuts
08:17 -!- anticw_ [~anticw@c-67-169-68-180.hsd1.ca.comcast.net] has joined
#go-nuts
08:17 -!- Erzwurm [~archwyrm@archwyrm.net] has joined #go-nuts
08:17 -!- ako [~nya@fuld-590c7338.pool.mediaWays.net] has joined #go-nuts
08:18 -!- yebyen_ [~yebyen@martyfunkhouser.csh.rit.edu] has joined #go-nuts
08:18 -!- jesusaurus1 [jesusaur@firefly.cat.pdx.edu] has joined #go-nuts
08:19 -!- Netsplit *.net <-> *.split quits: Cobi, GoBIR, mdxi, @adg_, venk,
GilJ, [Pete_27], davisp, itrekkie, prip, (+24 more, use /NETSPLIT to show all of
them)
08:19 -!- venk` [~user@203.111.33.203] has joined #go-nuts
08:19 -!- Netsplit over, joins: nixness, itrekkie, nsfx, Cobi, cw_, hokapoka,
mdxi, @adg_, htoothrot
08:20 -!- Netsplit over, joins: czr_
08:23 -!- fzzbt [~jahman@melkinpaasi.cs.helsinki.fi] has joined #go-nuts
08:25 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Quit: Leaving]
08:26 -!- d_m [~d_m@64.186.128.169] has joined #go-nuts
08:26 -!- espeed [~espeed@63.246.231.57] has joined #go-nuts
08:27 -!- zimsim [~simon@87.72.77.195] has joined #go-nuts
08:29 -!- sacho [~sacho@87-126-50-194.btc-net.bg] has joined #go-nuts
08:29 -!- gmilleramilar [~gmiller@pool-74-101-133-165.nycmny.fios.verizon.net] has
joined #go-nuts
08:31 -!- xyproto [~alexander@77.40.159.131] has joined #go-nuts
08:51 -!- wtfness [~dsc@86.36.49.200] has joined #go-nuts
09:09 -!- Netsplit *.net <-> *.split quits: dfr|work
09:09 -!- TheColonial [~oj@115-64-213-55.static.tpgi.com.au] has joined #go-nuts
09:09 -!- dfr|work [~dfr|work@nat/google/x-jejyxdvtskkfptns] has joined #go-nuts
09:14 -!- pilgrum [~pilgrum@cpe-67-49-71-222.socal.res.rr.com] has quit [Quit:
Leaving]
09:27 -!- mklencke [~mklencke@62.21.178.171] has joined #go-nuts
09:28 < mklencke> hi!  about this bug:
http://code.google.com/p/go/issues/detail?id=1620&colspec=ID%20Status%20Stars%20Priority%20Owner%20Reporter%20Summary
09:28 < mklencke> I can reproduce it consistently right now, always getting
the same stack trace
09:29 < mklencke> however, if I insert some very simple code that does
nothing: "x := 2; _ = x" it doesn't happen anymore
09:30 < mklencke> seems to be a compiler/runtime bug.  can I help someone
fix it with more information/
09:30 -!- ako [~nya@fuld-590c7338.pool.mediaWays.net] has quit [Quit:
EXEC_over.METHOD_SUBLIMATION]
09:37 -!- Netsplit *.net <-> *.split quits: drhodes, yiyus, ssb, iTonnerre,
hachiya, Tonnerre, tylergillies, ekontsev1y, littlebobby, grumpytoad, (+6 more,
use /NETSPLIT to show all of them)
09:38 -!- serbaut [~joakims@88.80.182.68] has joined #go-nuts
09:39 -!- tylergillies [~quassel@204-232-205-180.static.cloud-ips.com] has joined
#go-nuts
09:39 -!- tylergillies [~quassel@204-232-205-180.static.cloud-ips.com] has quit
[Changing host]
09:39 -!- tylergillies [~quassel@unaffiliated/tylergillies] has joined #go-nuts
09:40 -!- Netsplit over, joins: rm445
09:40 -!- Netsplit over, joins: electro_
09:40 -!- Tonnerre [tonnerre@ds1789693.dedicated.solnet.ch] has joined #go-nuts
09:40 -!- ekontsevoy [~ekontsevo@209.20.66.251] has joined #go-nuts
09:41 -!- Tonnerre [tonnerre@ds1789693.dedicated.solnet.ch] has quit [Changing
host]
09:41 -!- Tonnerre [tonnerre@netbsd/developer/tonnerre] has joined #go-nuts
09:41 -!- Netsplit over, joins: evildho
09:41 -!- Netsplit over, joins: drhodes
09:41 -!- Netsplit over, joins: iTonnerre, yiyus, hachiya, littlebobby,
grumpytoad, kkress, ssb
09:47 -!- suiside [tajnyman@unaffiliated/suiside] has joined #go-nuts
09:49 -!- karpar [~user@112.96.224.12] has quit [Quit: ERC Version 5.3 (IRC client
for Emacs)]
10:03 -!- virtualsue [~chatzilla@nat/cisco/x-qjskuxclcphbzmvp] has joined #go-nuts
10:08 < xyproto> What's an easy way for javascript in a browser to
communicate with a Go server?  WebSockets?  Post?  Using JSON somehow?
10:09 < taruti> jsonrpc
10:09 < xyproto> taruti: with for instance jQuery?
10:09 * taruti has done some code with dojo and her jsonrpc-server implementation
10:14 -!- homa_rano [~erice@hmsvelociraptor.csail.mit.edu] has quit [Read error:
Operation timed out]
10:14 -!- yebyen_ [~yebyen@martyfunkhouser.csh.rit.edu] has quit [Read error:
Operation timed out]
10:14 -!- anticw_ [~anticw@c-67-169-68-180.hsd1.ca.comcast.net] has quit [Ping
timeout: 240 seconds]
10:15 -!- vsmatck [~smack@64-142-40-6.dsl.static.sonic.net] has quit [Ping
timeout: 240 seconds]
10:15 -!- uriel [~uriel@li43-28.members.linode.com] has quit [Ping timeout: 240
seconds]
10:15 -!- uriel_ [~uriel@li43-28.members.linode.com] has joined #go-nuts
10:16 -!- larva_ [~larvanitr@ec2-46-51-171-183.eu-west-1.compute.amazonaws.com]
has joined #go-nuts
10:16 -!- ampleyfl1 [ampleyfly@gateway/shell/blinkenshell.org/x-kjbadzeqqnftthqd]
has joined #go-nuts
10:17 -!- homa_rano [~erice@hmsvelociraptor.csail.mit.edu] has quit [Read error:
Operation timed out]
10:17 -!- yebyen_ [~yebyen@martyfunkhouser.csh.rit.edu] has quit [Read error:
Operation timed out]
10:17 -!- anticw_ [~anticw@c-67-169-68-180.hsd1.ca.comcast.net] has quit [Ping
timeout: 240 seconds]
10:17 -!- vsmatck [~smack@64-142-40-6.dsl.static.sonic.net] has quit [Ping
timeout: 240 seconds]
10:17 -!- uriel [~uriel@li43-28.members.linode.com] has quit [Ping timeout: 240
seconds]
10:17 -!- statik_ [u986@gateway/web/irccloud.com/x-awbzzfbmlympnygp] has quit
[Ping timeout: 240 seconds]
10:17 -!- GoBIR_ [~gobir@70-90-168-189-SFBACalifornia.hfc.comcastbusiness.net] has
quit [Ping timeout: 240 seconds]
10:17 -!- larva [~larvanitr@ec2-46-51-171-183.eu-west-1.compute.amazonaws.com] has
quit [Ping timeout: 240 seconds]
10:17 -!- ampleyfly [ampleyfly@gateway/shell/blinkenshell.org/session] has quit
[Ping timeout: 240 seconds]
10:17 -!- statik_ [u986@gateway/web/irccloud.com/x-uktqukhxctfqxqrx] has joined
#go-nuts
10:18 -!- GoBIR [~gobir@70-90-168-189-SFBACalifornia.hfc.comcastbusiness.net] has
joined #go-nuts
10:22 -!- vsmatck [~smack@64-142-40-6.dsl.static.sonic.net] has joined #go-nuts
10:26 -!- scoeri [~jdekoste@progftp.vub.ac.be] has quit [Ping timeout: 240
seconds]
10:26 -!- scoeri [~jdekoste@soft.vub.ac.be] has joined #go-nuts
10:26 -!- dario_ [~dario@domina.zerties.org] has quit [Ping timeout: 240 seconds]
10:26 -!- dario [~dario@domina.zerties.org] has joined #go-nuts
10:27 -!- davisp [~davisp@li203-51.members.linode.com] has joined #go-nuts
10:31 -!- roto [~roto@64.79.202.154] has quit [Ping timeout: 252 seconds]
10:34 -!- roto [~roto@64.79.202.154] has joined #go-nuts
10:44 -!- welterde [welterde@thinkbase.srv.welterde.de] has joined #go-nuts
10:46 -!- boscop [~boscop@f050128232.adsl.alicedsl.de] has joined #go-nuts
10:56 -!- hargettp [~hargettp@96.237.121.111] has joined #go-nuts
10:58 -!- foocraft [~dsc@86.36.49.200] has quit [Ping timeout: 250 seconds]
10:58 -!- wtfness [~dsc@86.36.49.200] has quit [Ping timeout: 246 seconds]
10:58 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts
11:09 -!- piranha_ [~piranha@D57D1AB3.static.ziggozakelijk.nl] has joined #go-nuts
11:09 -!- piranha [~piranha@D57D1AB3.static.ziggozakelijk.nl] has quit [Ping
timeout: 246 seconds]
11:09 -!- hargettp [~hargettp@96.237.121.111] has quit [Ping timeout: 246 seconds]
11:09 -!- yebyen [~yebyen@martyfunkhouser.csh.rit.edu] has quit [Ping timeout: 246
seconds]
11:09 -!- tvw [~tv@e176001096.adsl.alicedsl.de] has quit [Ping timeout: 246
seconds]
11:09 -!- Adys [~Adys@unaffiliated/adys] has quit [Ping timeout: 246 seconds]
11:09 -!- davisp [~davisp@li203-51.members.linode.com] has quit [Ping timeout: 246
seconds]
11:09 -!- mklencke [~mklencke@62.21.178.171] has quit [Ping timeout: 246 seconds]
11:09 -!- sacho [~sacho@87-126-50-194.btc-net.bg] has quit [Ping timeout: 246
seconds]
11:10 -!- boscop [~boscop@f050128232.adsl.alicedsl.de] has quit [Ping timeout: 246
seconds]
11:10 -!- yebyen [~yebyen@martyfunkhouser.csh.rit.edu] has joined #go-nuts
11:10 -!- sacho [~sacho@87-126-50-194.btc-net.bg] has joined #go-nuts
11:10 -!- davisp [~davisp@li203-51.members.linode.com] has joined #go-nuts
11:10 -!- boscop [~boscop@f050128232.adsl.alicedsl.de] has joined #go-nuts
11:11 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
11:15 -!- mklencke [~mklencke@62.21.178.171] has joined #go-nuts
11:21 -!- hargettp [~hargettp@96.237.121.111] has joined #go-nuts
11:27 -!- TheColonial [~oj@115-64-213-55.static.tpgi.com.au] has quit [Remote host
closed the connection]
11:27 < wrtp> xyproto: i'd probably use JSON
11:28 < wrtp> as it's easy to code in both javascript and go
11:28 < wrtp> depends what you're trying to do though
11:29 < taruti> with the right libraries one does not need to write any json
at all
11:33 -!- d_m_ [~d_m@64.186.128.169] has joined #go-nuts
11:33 -!- tteras_ [~fabled@83.145.235.194] has joined #go-nuts
11:34 -!- mklencke [~mklencke@62.21.178.171] has quit [Ping timeout: 246 seconds]
11:34 -!- wrtp [~rog@2.97.144.60] has quit [Ping timeout: 246 seconds]
11:34 -!- d_m [~d_m@64.186.128.169] has quit [Ping timeout: 246 seconds]
11:34 -!- fabled [~fabled@83.145.235.194] has quit [Ping timeout: 246 seconds]
11:34 -!- hargettp [~hargettp@96.237.121.111] has quit [Ping timeout: 246 seconds]
11:34 -!- sacho [~sacho@87-126-50-194.btc-net.bg] has quit [Ping timeout: 246
seconds]
11:34 -!- mklencke [~mklencke@62.21.178.171] has joined #go-nuts
11:35 -!- sacho [~sacho@87-126-50-194.btc-net.bg] has joined #go-nuts
11:36 -!- sacho [~sacho@87-126-50-194.btc-net.bg] has quit [Max SendQ exceeded]
11:41 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has joined
#go-nuts
11:51 -!- wrtp [~rog@2.97.144.60] has joined #go-nuts
11:51 < wrtp> taruti: the right javascript libraries, yes?
11:52 < wrtp> yeah, i could imagine it would be fairly straightforward to
write a go JSON rpc client in javascript
11:53 < taruti> wrtp: yes.  e.g.  I have code with dojo and my go jsonrpc
server library, but there are probably other alternatives too
11:53 < wrtp> taruti: link?
11:55 < taruti> https://bitbucket.org/taruti/http_jsonrpc.go/wiki/Home
11:57 -!- artefon [~thiago@bananal.lbd.dcc.ufmg.br] has joined #go-nuts
11:58 < wrtp> taruti: any particular reason you didn't just write an
implementation of rpc.ServerCodec?
11:59 -!- karpar [~karpar@112.96.224.12] has joined #go-nuts
11:59 < taruti> wrtp: I think the marshaling interface used there is clunky,
I don't like the "two structures as arguments" way
12:02 < wrtp> taruti: i kind of agree, but the advantage of doing it that
way is that your http json implementation becomes interchangable with all the
other server implementations
12:06 -!- skejoe [~skejoe@188.114.142.217] has joined #go-nuts
12:10 -!- zhuzhu [~root@61.150.43.96] has joined #go-nuts
12:10 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
12:11 -!- jgonzalez [~jgonzalez@173-14-137-134-NewEngland.hfc.comcastbusiness.net]
has joined #go-nuts
12:12 < zhuzhu> :-D
12:13 -!- zhuzhu [~root@61.150.43.96] has left #go-nuts []
12:15 -!- KBme [~KBme@9angled-2-pt.tunnel.tserv5.lon1.ipv6.he.net] has quit
[Excess Flood]
12:16 -!- tensai_cirno [~cirno@80.250.216.102] has quit [Quit: Leaving]
12:16 -!- KBme [~KBme@9angled-2-pt.tunnel.tserv5.lon1.ipv6.he.net] has joined
#go-nuts
12:18 < wrtp> taruti: could you explain these two lines of js?
12:18 < wrtp> srv.add(document.getElementById('a').value,
document.getElementById('b').value).addCallback(doCalcCallback);
12:18 < wrtp>
srv.negate(document.getElementById('a').value).addCallback(doCalcCallback);
12:19 < taruti> wrtp: that is dojo.js way of doing it
12:20 < taruti> wrtp: basically it loads description of the methods the
jsonrpc server exports and does reflection on that and then creates the srv object
based on the reflected function types.
12:20 < wrtp> i thought the srv object was created here: srv = new
dojo.rpc.JsonService(smdURL);
12:20 < taruti> wrtp: thus jsonrpc-calls get reduced to javascript calls.
12:21 < taruti> "srv = new dojo.rpc.JsonService(smdURL)" <- create a new
object containing methods based on the reflection information at smdurl
(automatically created by http_jsonrpc)
12:22 < taruti> "srv.add(...,...)" <- call the jsonrpc service defined in
go and get the result
12:22 < wrtp> what's SMD?
12:23 -!- hypertux [~hypertux@vps1.joelegasse.com] has joined #go-nuts
12:23 < taruti> service mapping description
12:23 < wrtp> ah, i'm a bit confused; from the looks of this
http://dojotoolkit.org/api/1.5/dojo/rpc/JsonService there's a namespace conflict.
would it be possible to have an RPC method called "bind" ?
12:24 -!- karpar [~karpar@112.96.224.12] has quit [Ping timeout: 240 seconds]
12:24 < taruti> I don't understand half the JS stuff myself :)
12:24 < taruti> just that it works to make jsonrpc into simple function
calls
12:24 < taruti> and enough of SMD to produce it automatically from the go
funcions exported
12:25 < wrtp> usual inevitable cargo cult JS :-)
12:26 < taruti> wrtp: feel free to create a js backend to gc so we can write
all the frontend code in Go ;)
12:27 < wrtp> no way!
12:27 < wrtp> although it might be nice...
12:30 < wrtp> taruti: so what happens when if the RPC call blocks?  does all
the other javascript block too?
12:33 < taruti> wrtp: yes.  or you can use asynchronous calls that define a
callback to be called when the result is ready and thus avoid blocking.
12:34 < wrtp> i guess in practice you'd always use that
12:40 -!- niemeyer [~niemeyer@201-11-229-180.pltce701.dsl.brasiltelecom.net.br]
has joined #go-nuts
12:46 -!- karpar [~user@112.96.225.31] has joined #go-nuts
12:47 -!- karpar [~user@112.96.225.31] has quit [Client Quit]
12:50 -!- zozoR [~Morten@56344e3e.rev.stofanet.dk] has joined #go-nuts
12:50 -!- zerosanity [~josh@8.20.178.82] has joined #go-nuts
12:56 -!- karpar [~user@112.96.225.31] has joined #go-nuts
12:58 -!- nsf [~nsf@jiss.convex.ru] has quit [Ping timeout: 252 seconds]
13:04 -!- tensorpudding [~user@99.148.205.193] has joined #go-nuts
13:07 -!- karpar [~user@112.96.225.31] has quit [Quit: Yow!  Legally-imposed
CULTURE-reduction is CABBAGE-BRAINED!]
13:07 -!- femtoo [~femto@95-89-249-242-dynip.superkabel.de] has joined #go-nuts
13:09 -!- skejoe_ [~skejoe@188.114.142.217] has joined #go-nuts
13:10 -!- shvntr [~shvntr@119.121.27.90] has quit [Ping timeout: 252 seconds]
13:11 -!- plainhao [~plainhao@208.75.85.237] has joined #go-nuts
13:14 -!- tvw [~tv@212.79.9.150] has joined #go-nuts
13:14 -!- Netsplit *.net <-> *.split quits: skejoe
13:22 -!- nixness [~dsc@78.101.82.30] has quit [Ping timeout: 260 seconds]
13:23 -!- jbooth1 [~jay@209.249.216.2] has joined #go-nuts
13:26 -!- imsplitbit [~imsplitbi@64.39.4.132] has joined #go-nuts
13:28 -!- skejoe_ [~skejoe@188.114.142.217] has quit [Quit: Lost terminal]
13:53 -!- jokoon [~jorinovsk@LMontsouris-156-26-32-176.w80-14.abo.wanadoo.fr] has
quit [Quit: Quitte]
13:53 -!- TheColonial [~oj@115-64-213-55.static.tpgi.com.au] has joined #go-nuts
13:57 -!- tensai_cirno [~cirno@77.232.15.216] has joined #go-nuts
14:02 -!- Netsplit *.net <-> *.split quits: drhodes, Natch|, rlab, cbeck,
dfr|work, arun, KBme, statik_, Urtie, niekie, (+10 more, use /NETSPLIT to show all
of them)
14:03 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
14:03 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has quit
[Ping timeout: 252 seconds]
14:03 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has joined
#go-nuts
14:03 < nsf> interesting
14:03 < nsf> var x = iota
14:03 < nsf> is valid Go O_o
14:03 < nsf> I think it's a bug actually
14:04 < nsf> because spec says only about "within a constant declaration"
14:04 < wrtp> nsf: i agree
14:04 < nsf> http://pastie.org/1754380
14:04 < nsf> this prints three zeros
14:04 < nsf> I will report it
14:04 < nsf> http://code.google.com/p/go/issues/detail?id=1662
14:04 -!- sacho [~sacho@87-126-50-194.btc-net.bg] has joined #go-nuts
14:04 < nsf> funny though, I am implementing iota in my crawl and wanted to
see what Go compiler prints when 'iota' is used outside const declaration :)
14:04 -!- felipe [~felipe@unaffiliated/felipe] has quit [Ping timeout: 276
seconds]
14:04 -!- Netsplit over, joins: KBme, arun, niekie, femtoo, rlab, artefon, tteras,
GoBIR, statik_, drhodes (+10 more)
14:04 -!- TheColonial [~oj@115-64-213-55.static.tpgi.com.au] has quit [Quit:
leaving]
14:05 < nsf> hehe, it's actually serious
14:05 < nsf> var b = 10; var a = iota + b;
14:05 < nsf> even that works
14:05 < nsf> it's clearly a non-const context here
14:06 -!- cafesofie [~cafesofie@ool-4a5a6ee5.dyn.optonline.net] has joined
#go-nuts
14:06 < nsf> lol
14:06 < nsf> even more
14:06 < nsf> func X() int { return 1 }
14:06 < nsf> var b = X(); var a = iota + b
14:06 < nsf> works :(
14:07 < nsf> Go has amazing interprocedural analysis or iota is declared
internally as a 'const iota = 0'
14:07 < nsf> and handled specially inside const declarations
14:08 -!- lmoura__ [~lauromour@187.113.126.201] has quit [Quit: Leaving]
14:08 -!- lmoura__ [~lauromour@187.113.126.201] has joined #go-nuts
14:09 < nsf> or, nice
14:09 < nsf> [nsf @ go]$ grep "iota is" *
14:09 < nsf> expressions.cc: "iota is only defined in const declarations");
14:09 < nsf> gofrontend has an error message for that :)
14:13 -!- lmoura__ [~lauromour@187.113.126.201] has quit [Quit: Leaving]
14:16 -!- Netsplit *.net <-> *.split quits: drhodes, Natch|, rlab, cbeck,
dfr|work, arun, KBme, statik_, Urtie, niekie, (+10 more, use /NETSPLIT to show all
of them)
14:17 < nsf> s/or/oh/
14:17 -!- lmoura [~lauromour@187.113.126.201] has joined #go-nuts
14:17 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
14:17 -!- Netsplit over, joins: KBme, arun, niekie, femtoo, rlab, artefon, tteras,
GoBIR, statik_, drhodes (+10 more)
14:18 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has quit
[Ping timeout: 240 seconds]
14:18 < steven> so uh, what?
14:19 -!- kvey [~xantosfla@150.135.210.46] has quit [Ping timeout: 248 seconds]
14:26 < mpl> nsf: so it's undefined.  but does that mean that it should not
be allowed to use it?
14:26 < nsf> mpl: personally, I don't care, but in my compiler it will be
disallowed to do that
14:26 < nsf> I mean I don't care how it will be in Go
14:26 < nsf> maybe it's a undocumented compiler extension, who knows
14:26 < nsf> it won't hurt me
14:26 < skelterjohn> probably just an oversight
14:26 < skelterjohn> the parsing of vars and consts is identical
14:26 < nsf> but using 'iota' that way is a mistake, because gccgo thinks
it's an invalid code
14:26 < skelterjohn> it seems gccgo is correct
14:26 < skelterjohn> file an issue
14:26 < nsf> I did
14:26 < nsf> http://code.google.com/p/go/issues/detail?id=1662
14:27 -!- emjayess [~emjayess@pix1.i29.net] has joined #go-nuts
14:27 < skelterjohn> i think if you want it to be 0, 1, 2 you have to take
the "= iota" off the 2nd and 3rd decls
14:28 < steven> that too
14:29 < nsf> skelterjohn: no
14:30 < skelterjohn> somethign interesting - if you do what i just said, it
doesn't compile (with a weird message)
14:30 < skelterjohn> then if you change var to const, it compiles
14:30 < nsf> const ( a = iota; b = iota; c = iota )
14:30 < nsf> is valid
14:30 < nsf> at it will be:
14:30 < skelterjohn> i didn't say it wasn't valid
14:30 < nsf> a == 0, b == 1, c == 2
14:30 < skelterjohn> are you sure about htat?
14:30 < nsf> yes
14:30 < nsf> http://golang.org/doc/go_spec.html#Iota
14:30 < nsf> it's in spec examples
14:30 < skelterjohn> ah, you're right
14:30 < skelterjohn> ok, so there are a number of bugs at play here
14:34 < wrtp> nsf: well, at least var (x = iota; y = iota; z = iota)
14:34 < wrtp> doesn't define x y and z as different values...
14:35 < nsf> whatever, it should be invalid in my opinion
14:36 < wrtp> sure
14:45 < nsf> http://pastie.org/1754556
14:45 < nsf> nice, iota works
14:45 < nsf> :)
14:46 * nsf cheated a bit, by hacking value printer (in the second run it prints
integers using base 2 conversion)
14:47 -!- Jamra [~Jamra@109.226.14.237] has joined #go-nuts
14:54 -!- davisp [~davisp@li203-51.members.linode.com] has quit [Changing host]
14:54 -!- davisp [~davisp@couchdb/developer/davisp] has joined #go-nuts
15:09 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has joined #go-nuts
15:09 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has left #go-nuts []
15:09 -!- awidegreen [~quassel@c-0acfe555.08-2-73746f39.cust.bredbandsbolaget.se]
has joined #go-nuts
15:10 -!- mklencke [~mklencke@62.21.178.171] has quit [Quit: mklencke]
15:21 -!- cafesofie [~cafesofie@ool-4a5a6ee5.dyn.optonline.net] has quit [Remote
host closed the connection]
15:22 < plexdev> http://is.gd/7VVV9B by [Brad Fitzpatrick] in
go/src/pkg/http/ -- http: make triv.go example compile again
15:22 -!- piranha_ [~piranha@D57D1AB3.static.ziggozakelijk.nl] has quit [Quit:
Computer has gone to sleep.]
15:23 -!- Jamra [~Jamra@109.226.14.237] has left #go-nuts []
15:29 -!- skelterjohn [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
15:33 -!- mattn_jp [~mattn@112-68-87-78f1.hyg1.eonet.ne.jp] has joined #go-nuts
15:37 < plexdev> http://is.gd/l7Pqkf by [Brad Fitzpatrick] in 3 subdirs of
go/src/pkg/ -- httptest: add NewTLSServer
15:47 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.4]
15:50 -!- karpar [~user@112.96.225.26] has joined #go-nuts
15:59 -!- virtualsue [~chatzilla@nat/cisco/x-qjskuxclcphbzmvp] has quit [Ping
timeout: 240 seconds]
16:01 -!- emjayess [~emjayess@pix1.i29.net] has quit [Ping timeout: 276 seconds]
16:03 -!- piranha [~piranha@5ED43A0B.cm-7-5a.dynamic.ziggo.nl] has joined #go-nuts
16:08 -!- niemeyer_lunch
[~niemeyer@201-11-229-180.pltce701.dsl.brasiltelecom.net.br] has quit [Remote host
closed the connection]
16:13 -!- foocraft [~dsc@86.36.41.75] has joined #go-nuts
16:16 -!- emjayess [~emjayess@pix1.i29.net] has joined #go-nuts
16:22 -!- exch [~exch@31-151-123-254.dynamic.upc.nl] has joined #go-nuts
16:22 -!- rphillips [~rphillips@2001:470:21:31::42dc:59] has quit [Changing host]
16:22 -!- rphillips [~rphillips@unaffiliated/rphillips] has joined #go-nuts
16:27 -!- niemeyer [~niemeyer@201-11-229-180.pltce701.dsl.brasiltelecom.net.br]
has joined #go-nuts
16:30 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has joined
#go-nuts
16:30 -!- TheMue [~TheMue@p5DDF780F.dip.t-dialin.net] has joined #go-nuts
16:38 -!- tvw [~tv@212.79.9.150] has quit [Remote host closed the connection]
16:38 -!- niemeyer [~niemeyer@201-11-229-180.pltce701.dsl.brasiltelecom.net.br]
has quit [Ping timeout: 240 seconds]
16:39 -!- skelterjohn [~jasmuth@lawn-gw.rutgers.edu] has joined #go-nuts
16:41 -!- virtualsue [~chatzilla@nat/cisco/x-gkqhskqwinmtpbhc] has joined #go-nuts
16:41 -!- artefon [~thiago@bananal.lbd.dcc.ufmg.br] has quit [Read error:
Operation timed out]
16:42 -!- artefon [~thiago@bananal.lbd.dcc.ufmg.br] has joined #go-nuts
16:42 -!- AndyP_ [~andyp@baud.org.uk] has quit [Ping timeout: 276 seconds]
16:44 -!- archevan [~archevan@67.69.227.99] has quit [Ping timeout: 248 seconds]
16:46 -!- keithcascio [~keithcasc@nat/google/x-asbyxwyrtasnzfqs] has joined
#go-nuts
16:48 -!- skejoe [~skejoe@188.114.142.217] has joined #go-nuts
16:53 -!- TheMue [~TheMue@p5DDF780F.dip.t-dialin.net] has quit [Quit: TheMue]
16:55 -!- emjayess [~emjayess@pix1.i29.net] has quit [Ping timeout: 260 seconds]
17:00 -!- cafesofie [~cafesofie@ool-4a5a6ee5.dyn.optonline.net] has joined
#go-nuts
17:08 -!- aho [~nya@fuld-590c7386.pool.mediaWays.net] has joined #go-nuts
17:09 -!- femtoo [~femto@95-89-249-242-dynip.superkabel.de] has quit [Read error:
Connection reset by peer]
17:17 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has quit
[Ping timeout: 248 seconds]
17:17 -!- xyproto [~alexander@77.40.159.131] has quit [Read error: Connection
reset by peer]
17:18 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 264 seconds]
17:19 -!- xyproto [~alexander@77.40.159.131] has joined #go-nuts
17:20 -!- rlab_ [~Miranda@91.200.158.34] has joined #go-nuts
17:20 -!- karpar [~user@112.96.225.26] has quit [Quit: Yow!  Legally-imposed
CULTURE-reduction is CABBAGE-BRAINED!]
17:20 -!- archevan [~archevan@67.69.227.99] has joined #go-nuts
17:23 -!- tensai_cirno [~cirno@77.232.15.216] has quit [Quit: Leaving]
17:26 -!- yebyen [~yebyen@martyfunkhouser.csh.rit.edu] has quit [Ping timeout: 276
seconds]
17:26 -!- yebyen [~yebyen@martyfunkhouser.csh.rit.edu] has joined #go-nuts
17:27 -!- ShadowIce
[~pyoro@HSI-KBW-109-193-120-162.hsi7.kabel-badenwuerttemberg.de] has joined
#go-nuts
17:27 -!- ShadowIce
[~pyoro@HSI-KBW-109-193-120-162.hsi7.kabel-badenwuerttemberg.de] has quit
[Changing host]
17:27 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
17:28 -!- tvw [~tv@e176001096.adsl.alicedsl.de] has joined #go-nuts
17:37 -!- ahihi2 [~transient@cs27123003.pp.htv.fi] has joined #go-nuts
17:39 < ahihi2> hi, I'm planning to write a rasterizer in Go and I was
wondering what you'd recommend for creating a window and painting a bitmap onto it
17:41 < uriel> exp/draw?
17:41 < uriel> or use one of the sdl bindings
17:42 < uriel> or output a png
17:43 < ahihi2> and I guess some sort of input handling would be nice too
17:43 < KirkMcDonald> SDL is probably the simplest thing, though I don't
know what the state of Go bindings for it is.
17:43 -!- eikenberry [~jae@ivanova.zhar.net] has quit [Quit: End of line.]
17:43 < skelterjohn> i guy who used ot hang out here made a rasterizer that
outputted to an image file
17:43 -!- eikenberry [~jae@ivanova.zhar.net] has joined #go-nuts
17:43 < skelterjohn> https://github.com/tm1rbrt/Tracer
17:43 < ahihi2> well, I'd like to have interactivity :)
17:43 < ahihi2> I'll give the SDL bindings a try, thanks
17:43 < skelterjohn> exp/draw exists, and can work, but it is not flexible
17:43 < skelterjohn> you can't, for instance, resize windows :)
17:45 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-171-173.clienti.tiscali.it] has
joined #go-nuts
17:45 < ahihi2> hmm
17:45 < ahihi2> is it portable?  it kind of looks like there's only an X11
backend
17:45 < skelterjohn> works on mac
17:45 < skelterjohn> don't know about windows
17:45 < skelterjohn> certainly works on unix-based
17:46 < exch> glfw is a much simpler lib used to create a window and get an
opengl context.  It also handles input (mouse/kb/joysticks).  Window is
controllable, unlike exp/draw.
17:49 -!- pphalen [~pphalen@66.92.11.149] has joined #go-nuts
17:49 < exch> requires cgo bidings + full opengl bindings though
17:49 < skelterjohn> exch: link?  it doesn't come up with ctrl-f on the
dashboard
17:49 < ahihi2> oh, I guess I could use that and render to a texture
17:50 -!- Fish-- [~Fish@9fans.fr] has joined #go-nuts
17:50 < exch> I dont know if anyone else bound it yet.  I started it a while
back.  GLFW is done, but opengl isn't.  Not sure how it all works together with
the existing GL bindings.  Haven't tried that yet
17:50 -!- rlab_ [~Miranda@91.200.158.34] has quit [Ping timeout: 246 seconds]
17:50 < katakuna> http://3d.xkcd.com/873/ my god.
17:52 -!- thiago__ [~thiago@bananal.lbd.dcc.ufmg.br] has joined #go-nuts
17:54 < skelterjohn> lol
17:55 -!- artefon [~thiago@bananal.lbd.dcc.ufmg.br] has quit [Ping timeout: 252
seconds]
17:55 < dforsyth> can you call go from c yet?
17:55 < wrtp> dforsyth: you've been able to do that for a while, but only if
go calls C first...
17:55 < dforsyth> ahh, okay
17:55 < dforsyth> i knew i had read it somewhere, but i dont trust my own
brain
17:56 < wrtp> it's not entirely straightforward BTW
17:56 -!- niemeyer [~niemeyer@189.27.153.77.dynamic.adsl.gvt.net.br] has joined
#go-nuts
17:57 -!- kamaji [~kamaji@cpc2-aztw22-2-0-cust775.aztw.cable.virginmedia.com] has
joined #go-nuts
17:59 < wrtp> i'm sure i saw a link this morning to someone that had done a
cgo binding for a javascript interpreter
17:59 < wrtp> but i can't find it now
17:59 < wrtp> anyone help me out?
17:59 -!- mattn_jp [~mattn@112-68-87-78f1.hyg1.eonet.ne.jp] has quit [Ping
timeout: 248 seconds]
18:00 < skelterjohn> in irc?
18:00 < skelterjohn> my screen only goes back 6 hours or so
18:01 < wrtp> i don't think so
18:03 < wrtp> maybe twitter or some blog or on golang-nuts
18:03 < wrtp> too many feeds!  :-)
18:03 < JBeshir> I don't think it was golang-nuts
18:04 < wrtp> i ignored it because i couldn't think of any way i'd use it
18:04 < JBeshir> I skimmed that about an hour ago for everything today and
didn't see anything.
18:04 < wrtp> i can't even remember the name of the interpreter!
18:04 < skelterjohn> you're going senile
18:04 < skelterjohn> and i mean that in the nicest possible way O:-)
18:04 < wrtp> past tense!
18:04 -!- felipe [~felipe@unaffiliated/felipe] has joined #go-nuts
18:05 < dforsyth> there was a post about trying to beat node.js or something
18:05 < Namegduf> I think that was about writing a web application
18:06 < Namegduf> People thinking Node.js is superinnovative because it's
asynchronous and no one has ever written asynchronous servers before
18:06 < wrtp> i don't think that was it
18:07 < exch> it's bad enough that one is relegated to javascript on the
client side..  But mvoing it to the server as well is just pushing it
18:07 < btipling_> what
18:07 < btipling_> node.js is awesome
18:08 < skelterjohn> i got fed up with trying to do go-server/js-client for
UI apps
18:08 < skelterjohn> it was trivial to write the go side
18:08 < Namegduf> I agree, I often wish I could pass the wrong number of
parameters to a function and just have it work
18:08 < skelterjohn> sooo much effort to get simple things working on the
client side
18:08 < wrtp> ah!  found it:
http://bravenewmethod.wordpress.com/2011/03/30/embedding-v8-javascript-engine-and-go/
18:10 < btipling_> I think JavaScript + node.js is on the cusp of becoming a
very popular systems programming language in the way that go aims to be
18:10 < wrtp> yuk
18:10 < btipling_> the entire event emitter concept in node.js is very
powerful
18:10 < Namegduf> Also very old
18:10 < Namegduf> It's not anything new
18:11 < btipling_> and yet it's finding widespread use in node.js when it
hasn't before
18:11 < Namegduf> Oh yes it has.
18:11 < steven> pfft thats easy to implmenet, wrtp: func (v8runner
*V8Runner) RunV8(str string) { return str[1:-1]; }
18:11 < steven> ;)
18:14 < btipling_> I'm detecting defensiveness
18:14 < Namegduf> No, not really.
18:14 < btipling_> probably something to do with the immense momentum that
node.js is enjoying right now
18:14 < Namegduf> You're making big assertions and I'm saying I disagree.
18:14 < skelterjohn> btipling_: you're projecting
18:14 < steven> hehe
18:14 < btipling_> possibly
18:14 < steven> cant we all just get along?
18:14 < Namegduf> You're then saying you sense defensiveness instead of
backing them up.
18:16 < steven> <3
18:16 < btipling_> just compare the node.js modules page with go's
18:16 < btipling_> I like go
18:16 < btipling_> I like node.js
18:16 < Namegduf> I don't think node.js has anything new but existing ideas
done in JS
18:16 < skelterjohn> Namegduf wasn't making a comparison with node.js and go
18:16 < aiju> node.js ...
18:16 < exch> nodejs is popular for all the wrong reasons.  One keeps saying
it super innovative, while it isn't
18:16 < Namegduf> And I don't think it has anything to offer over, say,
Python or even Ruby for system app development.
18:16 < aiju> node.js is a crime against humanity
18:16 < skelterjohn> he was saying that the node.js features you've
mentioned aren't novel to node.js
18:16 < Namegduf> Python has *many* web app frameworks which are in
significant usage
18:16 < Namegduf> Or at least several
18:16 < jnwhiteh> node.js is such a bizarre phenomenon, but then again most
trendy things really are =)
18:16 < btipling_> it takes very little effort to get concurrent services
running in node.js, it's much better than python's twistd for example
18:16 < aiju> but it's still javascript
18:16 < btipling_> what's wrong with JavaScript
18:16 < aiju> many things
18:16 < aiju> you can redefine undefined!
18:16 < btipling_> such as
18:16 < wrtp> btipling_: erm, it's got some terrible flaws
18:16 < aiju> the broken class system
18:16 < Namegduf> As languages go, JS is poorly optimised for anything
18:16 < wrtp> broken semicolons
18:16 < btipling_> well don't redefine undfined
18:16 < btipling_> problem solved?
18:16 < aiju> don't define classes
18:16 < Namegduf> No safety checks on anything.
18:16 < wrtp> no namespaces
18:16 < aiju> another problem solved
18:16 < exch> I recently saw a quote from the creator of js.  Even he thinks
it's shit
18:16 < aiju> do not use data structures
18:16 < Namegduf> Language syntax rules designed for making it easy to
decide what to do when JS is bad
18:16 < Namegduf> Because web browsers have to deal with that
18:16 < aiju> exch: as i get it, js was meant like "WATCH MY FUNNY IN
BROWSER TIC TAC TOE GAME"
18:16 < wrtp> given that i'm likely to write some javascript for a web app,
i think i might use coffeescript
18:16 < Namegduf> Rather than for elegance or simplicity or safety or speed
of development or anything else.
18:16 < btipling_> there are tools for safety checks for people who want
them, closure compiler, jslint, closure linter
18:16 < aiju> the only thing worse than JS are the shitty wrappers people
put around it
18:16 < wrtp> which is why i was looking at embedding a JS interpreter
18:16 < aiju> btipling_: hahahha closure compiler
18:16 < aiju> you have to enable error messages
18:16 < aiju> it is FUCKING slow
18:16 < btipling_> it could be faster
18:16 < wrtp> btipling_: all of those are just trying to paper over a badly
designed language that nobody can change because it's embedded in so many browsers
18:16 < Namegduf> Everything could hypothetically be faster
18:16 < wrtp> and that's the only reason that people use it
18:16 < Namegduf> Because all the languages are Turing complete
18:16 < btipling_> I use it because I love the language
18:16 < aiju> Namegduf: even light can be faster!
18:16 < btipling_> as do my coworkers
18:16 < btipling_> we use node.js at Rackspace
18:17 < wrtp> (and, i guess, because people are familiar with it)
18:17 < aiju> (you can annoy the fuck out of physicists with GR + strong
gravity + light)
18:17 < Namegduf> Whether something can feasibly be made faster is an
entirely different question needing a good point
18:17 < jnwhiteh> and do you love javascript or do you love node.js?
18:17 < btipling_> both
18:17 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
18:17 < Namegduf> I think most people who love node.js love JS
18:17 < btipling_> I've have been writing JavaScript for 7 years
18:17 < jnwhiteh> you're certainly welcome to that opinion
18:17 < wrtp> btipling_: you like the syntax, *really* ?
18:17 < jnwhiteh> Personally, given the close lineage between the two, I
would take Lua in an *instant* over Javascript.
18:17 < btipling_> I'm not particular to any syntax
18:17 < aiju> javascript has implicit truncation to 32-bit
18:17 < aiju> *really* fun
18:17 < jnwhiteh> and implementing a node.lua would not be difficult in the
least
18:17 < jnwhiteh> but that's just my preference for syntax, etc.
18:17 < aiju> x ^ 0 is not a No-Op
18:18 < wrtp> mandatory variable declarations even though they have no
types?
18:18 < btipling_> I like the go syntax better than JavaScript
18:18 < btipling_> I think go is a better language
18:18 < wrtp> well, of course, the go syntax is The Best :-)\
18:18 < steven> guys, what really defines a terminal session?  is it just
the pwd and env and bg processes?
18:18 < aiju> steven: no
18:18 < btipling_> I'd still prefer JavaScript over python
18:18 < aiju> steven: there is also the controlling terminal
18:18 < btipling_> or Java
18:19 -!- GilJ_ [~GilJ@zeus.ugent.be] has quit [Ping timeout: 246 seconds]
18:19 < steven> java?  ouch.
18:19 < aiju> you prefer java over python?
18:19 < btipling_> C is in a class of it's own
18:19 < wrtp> python's better designed than js
18:19 < steven> thats like comparing C++ to QBasic
18:19 < btipling_> I prefer JavaScript over Java
18:19 < aiju> oh yeah, me too
18:19 < steven> yeah, C++ sucks, but at least it can do things better than
qbasic
18:19 < btipling_> I don't know anything about C++
18:19 < steven> like, anonymous functions
18:19 < Namegduf> I would prefer Java over JS
18:19 < btipling_> I love C though
18:19 < aiju> steven: qbasic is not as insane as C++ ...
18:19 < Namegduf> It will run faster and use less RAM
18:19 < steven> ok bad example
18:19 < Namegduf> And I *hate* Java
18:19 < aiju> oh yeah, javascript memory usage is BAD
18:20 < steven> saying java > python is like saying qbasic > lisp
18:20 < btipling_> depends on the implementation
18:20 < Namegduf> It always does.
18:20 < aiju> i love it when people say "javascript is fast"
18:20 < aiju> i just continue shaking my head
18:20 < btipling_> v8 is very fast
18:20 < aiju> hahahahahahaha
18:20 < skelterjohn> it's fast*er than it used to be*
18:20 < aiju> V8 is FUCKING SLOW
18:20 < btipling_> heh
18:20 < steven> Go is fast
18:20 < Namegduf> V8 uses metric fucktons of RAM
18:20 < aiju> saying V8 is slow is like saying a bicycle is fast
18:20 < aiju> because it's faster than a turtle
18:20 < btipling_> haha
18:21 < btipling_> ok
18:21 < aiju> ehm
18:21 < aiju> s/is slow/is fast
18:21 < skelterjohn> we know what you eant
18:21 < btipling_> I don't know, it's fast enough for thousands of requests
per seconds
18:21 < btipling_> 8K per second or something like that
18:21 < Namegduf> Anyways, it's been a good decade since the first fancy
high level languages came along
18:21 < btipling_> what about C#?
18:21 < aiju> C# is a POS
18:21 < btipling_> hrm
18:21 < skelterjohn> better than java
18:21 < Namegduf> With the first promises of dynamic languages being
optimised to C speed
18:21 < aiju> i can't really decide whether it's worse or better than java
18:21 < btipling_> but doesn't it count as a fancy high level language newer
than a decade?
18:22 < aiju> C# code is INSANE
18:22 < Namegduf> It hasn't happened yet and it won't happen.
18:22 < aiju> but i don't know whether C# or C# programmers are to blame
18:22 < skelterjohn> i spent a few years writing java code, a few months
writing C# about a year ago
18:22 < steven> objc is interesting
18:22 < aiju> i know a professional C# programmer, he says all lines exceeds
80 characters
18:22 < Namegduf> Just because you could hypothetically convert a program in
one language to an equivalent program in another
18:22 < skelterjohn> the C# experience was positive, compared to java
18:22 < btipling_> I don't think objective c counts as a systems programming
language
18:23 < Namegduf> Does not mean we will ever have a way to convert a program
into a fast program.
18:23 < btipling_> it's more of an application level language
18:23 < steven> btipling_: why not?
18:23 < aiju> objective C is based on the message passing model
18:23 < aiju> which i hate
18:23 < skelterjohn> btipling_: how can you say that when you called node.js
a systems language earlier?  :)
18:23 < steven> it suffices just fine if you only include Foundation and
exclude Cocoa
18:23 < btipling_> node.js isn't a language
18:23 < steven> aiju: meh
18:23 < btipling_> it's an I/O event emitter for JavaScript
18:23 < skelterjohn> i think you said js/node.js
18:23 < steven> your face is an I/O event emitter for JavaScript
18:23 < btipling_> and yes you can use JavaScript + node.js for systems
programming
18:23 < steven> :)
18:23 < btipling_> and many do
18:23 < btipling_> steven: haha
18:23 < aiju> your mom is as huge as JS' memory usage
18:23 < Namegduf> Ouch.
18:23 < Namegduf> Who are these many?
18:23 < btipling_> :P
18:24 < skelterjohn> btipling_: I was comparing that statement to you saying
that obj is not a systems language
18:24 < Namegduf> And what kind of "systems" are you meaning?
18:24 < steven> you can use a light-switch for systems programming
18:24 < skelterjohn> which is really a silly thing to say
18:24 < skelterjohn> since it's the primary systems language for os x
18:24 < aiju> "systems language" is a stupid term
18:24 < steven> as long as you have all the wiring right and the program is
simple
18:24 < aiju> and by stupid i mean entirely meaningless
18:24 < Namegduf> aiju: Agree
18:24 < btipling_> I don't think it's silly
18:24 < btipling_> objective c is used to write cocoa and ios applications
18:24 < aiju> there are OS languages
18:24 < aiju> namely C and ASM
18:24 < wrtp> aiju: go's interfaces are based on the message passing model
18:24 < Namegduf> People don't agree about what it means
18:24 < btipling_> people aren't writing http servers in objective c
18:24 < aiju> wrtp: my ass is based on the feces passing model
18:24 < btipling_> they're not writing message queues in objective c
18:25 < btipling_> people are writing those things with node.js
18:25 < btipling_> so I don't think it's silly
18:25 < steven> btipling_: objc is also used to write system utilities that
have no UI, or only a commandline UI
18:25 -!- zimsim [~simon@87.72.77.195] has quit [Ping timeout: 276 seconds]
18:25 < Namegduf> I think that has more to do with the lack of interest in
ObjC outside of OS X
18:25 < aiju> the obj in objc stands for objectionable
18:25 < Namegduf> And OS X's irrelevance as a server
18:25 < steven> the reason websites and message queues arent written in ObjC
is because the free implementation isnt near as useful or good as Apple's
18:25 < btipling_> possibly
18:26 < btipling_> I'd say the vast majority of the libraries and modules
available for ObjC are aimed for application developers
18:26 < steven> but ObjC itself is fine for these tasks
18:26 < steven> especially if you have apple hardware to run it on
18:26 < Namegduf> btipling_: On OS X?
18:26 < steven> btipling_: then you would be mistaken.
18:26 < btipling_> I could be
18:29 < aiju> heh i've been writing just some C
18:29 < aiju> and now i want to put void in empty parentheses in Go function
declarations :\
18:29 < Namegduf> :(
18:29 < Namegduf> C's rules leading to that void are insane
18:29 < aiju> not really
18:29 < aiju> () -> unknown arguments
18:29 < aiju> (void) -> no arguments
18:29 < aiju> gcc ignores it even with -pedantic
18:29 < Namegduf> Unknown arguments is insane
18:30 < aiju> well heh
18:31 < aiju> does &*Struct copy?
18:31 < aiju> in Go
18:31 < skelterjohn> not sure what that means
18:31 < skelterjohn> what is &*Struct
18:32 < skelterjohn> ah
18:32 < aiju> Struct is a pointer to a struct
18:32 < skelterjohn> i don't know
18:32 < skelterjohn> i think probably not
18:32 -!- GilJ [~GilJ@zeus.ugent.be] has joined #go-nuts
18:32 < nsf> aiju: compiler eliminates that kind of stuff
18:32 < skelterjohn> now that i think a little more, i think it almost
certainly doesn't copy
18:32 < nsf> &*Struct == Struct
18:32 < nsf> I've seen it in both gc's code and gccgo's code
18:32 -!- ahihi2 [~transient@cs27123003.pp.htv.fi] has quit [Ping timeout: 248
seconds]
18:33 < aiju> blah
18:33 -!- ahihi2 [~transient@cs27123003.pp.htv.fi] has joined #go-nuts
18:33 < Namegduf> In C++, not essentially
18:33 < Namegduf> If Struct is an iterator, * often returns the item
18:33 < skelterjohn> oh, i was talking go
18:33 < Namegduf> And the & will then take the address of that.
18:33 < Namegduf> Oh, I see.
18:33 < Namegduf> I had no idea why you'd do that in Go.
18:33 < skelterjohn> those rules are too complex in C++ for me to really
know
18:33 < aiju> C++ is too complex for any human being to know
18:34 < Namegduf> (*Struct).blah doesn't copy
18:34 < Namegduf> (And is implicit)
18:34 < Namegduf> So I'd assume &* wouldn't, yeah.
18:35 -!- itrekkie [~itrekkie@ip72-211-131-205.tc.ph.cox.net] has quit [Quit:
itrekkie]
18:39 < skelterjohn> i'll often shallow-clone pointers with "var x *T; *x =
*y"
18:40 < nsf> what a weird term
18:40 < nsf> shallow-clone pointers
18:42 -!- niemeyer_ [~niemeyer@189.27.153.77.dynamic.adsl.gvt.net.br] has joined
#go-nuts
18:42 < skelterjohn> it's the name of my new band
18:42 < skelterjohn> we're a bad idea
18:42 < nsf> :D
18:42 -!- zimsim [~simon@87.72.77.195] has joined #go-nuts
18:43 -!- niemeyer [~niemeyer@189.27.153.77.dynamic.adsl.gvt.net.br] has quit
[Ping timeout: 240 seconds]
18:43 < wrtp> i didn't think you can do &*x
18:44 < nsf> if x is a pointer, can't you?
18:44 < nsf> otherwise it makes no sense
18:49 < skelterjohn> there are many things you can't take the address of in
go
18:49 < wrtp> yeah, it seems you can
18:49 < skelterjohn> calls to functions, for instance
18:49 < wrtp> nsf: you can do &*&*&*&*&*&*&*x
18:49 < wrtp> :-)
18:49 -!- aho [~nya@fuld-590c7386.pool.mediaWays.net] has quit [Quit:
EXEC_over.METHOD_SUBLIMATION]
18:50 < KirkMcDonald> skelterjohn: Literals.
18:50 < skelterjohn> those too
18:50 < nsf> wrtp: and 1+-+-+-+-+-+-+-+-+-+-+-+-+-2
18:50 < skelterjohn> just saying why someone might initially think &*x is
not allowed
18:50 < wrtp> i can't think of any reason why you'd ever use &*x though -
it's just equivalent to x
18:50 -!- emjayess [~emjayess@pix1.i29.net] has joined #go-nuts
18:50 < wrtp> *&*&*&*&*x+-+-+-+-+-*&*&*&*&*&*y
18:51 < skelterjohn> i feel like some really awful go poetry is going to be
written tonight
18:56 -!- itrekkie [~itrekkie@150.135.210.56] has joined #go-nuts
18:58 -!- niemeyer_ [~niemeyer@189.27.153.77.dynamic.adsl.gvt.net.br] has quit
[Quit: Leaving]
18:59 -!- niemeyer [~niemeyer@189.27.153.77.dynamic.adsl.gvt.net.br] has joined
#go-nuts
19:06 -!- AndyP [~andyp@ubuntu/member/andyp] has joined #go-nuts
19:06 < wrtp> x**&*&**y
19:06 < wrtp> also valid...
19:06 < skelterjohn> oh - one of those is a multiplication i guess
19:09 -!- TheMue [~TheMue@p5DDF780F.dip.t-dialin.net] has joined #go-nuts
19:09 -!- artefon [~thiago@bananal.lbd.dcc.ufmg.br] has quit [Quit: bye]
19:10 < wrtp> yeah
19:12 < wrtp> <-<-<-x<<-<-<-x
19:12 < wrtp> not quite so palindromic though
19:15 < wrtp> and it's not valid without an extra space
19:22 -!- lmoura_ [~lauromour@187.113.79.138] has joined #go-nuts
19:24 -!- lmoura [~lauromour@187.113.126.201] has quit [Ping timeout: 240 seconds]
19:26 -!- niemeyer [~niemeyer@189.27.153.77.dynamic.adsl.gvt.net.br] has quit
[Ping timeout: 240 seconds]
19:31 -!- tvw [~tv@e176001096.adsl.alicedsl.de] has quit [Remote host closed the
connection]
19:31 -!- femtoo [~femto@95-89-249-242-dynip.superkabel.de] has joined #go-nuts
19:38 -!- boscop_ [~boscop@f050128232.adsl.alicedsl.de] has joined #go-nuts
19:39 -!- boscop_ [~boscop@f050128232.adsl.alicedsl.de] has quit [Read error:
Connection reset by peer]
19:39 -!- niemeyer [~niemeyer@189.27.153.77.dynamic.adsl.gvt.net.br] has joined
#go-nuts
19:40 -!- boscop [~boscop@f050128232.adsl.alicedsl.de] has quit [Ping timeout: 258
seconds]
19:40 < plexdev> http://is.gd/cpLuKe by [Mikio Hara] in go/src/pkg/syscall/
-- syscall: add BPF support for freebsd/386, freebsd/amd64
19:43 -!- exch [~exch@31-151-123-254.dynamic.upc.nl] has quit [Ping timeout: 258
seconds]
19:44 -!- exch [~exch@31-151-123-254.dynamic.upc.nl] has joined #go-nuts
19:45 -!- artefon [~thiago@189.59.198.32] has joined #go-nuts
19:46 -!- femtooo [~femto@95-89-249-242-dynip.superkabel.de] has joined #go-nuts
19:47 -!- tensorpudding [~user@99.148.205.193] has quit [Read error: Connection
reset by peer]
19:48 -!- femtoo [~femto@95-89-249-242-dynip.superkabel.de] has quit [Ping
timeout: 246 seconds]
19:48 -!- jgonzalez [~jgonzalez@173-14-137-134-NewEngland.hfc.comcastbusiness.net]
has quit [Ping timeout: 246 seconds]
19:48 -!- jgonzalez [~jgonzalez@173-14-137-134-NewEngland.hfc.comcastbusiness.net]
has joined #go-nuts
19:52 -!- itrekkie [~itrekkie@150.135.210.56] has quit [Quit: itrekkie]
19:53 -!- huin [~huin@91.85.185.181] has joined #go-nuts
19:54 < nsf> http://pastie.org/1755758
19:54 < skelterjohn> i just accidentally did rm -r $GOROOT instead of ls
$GOROOT
19:54 < nsf> guys, check this out please
19:54 < nsf> looks like another compiler bug
19:54 < aiju> skelterjohn: how can you do THAT?
19:54 < nsf> try to compile that code
19:54 < aiju> don't tell me you have a "ls" and a "rm -r" key
19:54 < skelterjohn> aiju: i was removing something from $GOROOT/pkg
19:54 < nsf> [nsf @ ~]$ 8g test.go
19:54 < nsf> [nsf @ ~]$ 8l -o test test.8
19:54 < nsf> main.main: doasm: notfound t2=0 from=42 to=b
(7)ADDL$(40120000,00000000),BX
19:54 < skelterjohn> and then i wanted to ls it to see why it didn't find it
19:54 < nsf> that's what my version of the gc says
19:54 -!- littlebobby [~bob@unaffiliated/littlebobby] has quit [Quit: Ex-Chat]
19:54 < skelterjohn> then i tried to ls $GOROOT by modifying a previous
command
19:55 < skelterjohn> but i modified the wrong one
19:55 < skelterjohn> well, it's not like i was working on something in there
19:57 < plexdev> http://is.gd/8ChE9B by [Albert Strasheim] in go/src/pkg/os/
-- os: Fix MkdirAll("/thisdoesnotexist").
19:58 < plexdev> http://is.gd/HhPuVq by [Russ Cox] in go/lib/codereview/ --
codereview: only retry on HTTP 500 error
19:58 < plexdev> http://is.gd/waNrZF by [Russ Cox] in go/ -- CONTRIBUTORS:
add Matt Jones (Google CLA)
19:58 < plexdev> http://is.gd/s37vEW by [Matt Jones] in go/src/pkg/http/ --
http: use upper case hex in URL escaping
19:58 < plexdev> http://is.gd/mFRYjK by [Evan Shaw] in go/src/pkg/bufio/ --
bufio: Write and WriteString cleanup
19:58 -!- femtooo [~femto@95-89-249-242-dynip.superkabel.de] has quit [Read error:
Connection reset by peer]
20:01 -!- itrekkie [~itrekkie@uawifi-nat-210-28.arizona.edu] has joined #go-nuts
20:01 -!- czr_ [czr@nexus.iohazard.net] has quit [Remote host closed the
connection]
20:03 -!- vsayer [~vivek@2001:470:1f04:1a6b:21a:6bff:fe35:d2a5] has quit [Read
error: Operation timed out]
20:09 < nsf> iant: are you here?  what will gccgo say on that?:
http://pastie.org/1755758
20:09 < nsf> gc fails to link that code, another bug :)
20:09 -!- tensorpudding [~user@99.148.205.193] has joined #go-nuts
20:09 < nsf> but it compiles the code just fine, to me it looks like a type
error
20:09 < skelterjohn> i don't think it should compile
20:09 < nsf> because abstract float type wins in binary op and it should be
transfered to '1'
20:09 < nsf> and then it should be a type error
20:09 < nsf> http://code.google.com/p/go/issues/list?thanks=1664
20:09 < nsf> and here's the bug
20:09 < nsf> does anyone have a working gccgo?
20:09 < nsf> I'm wondering what will it say on that
20:11 < aiju> iant sure has
20:11 < aiju> ..  i hope
20:11 < nsf> I'm sure he is
20:11 < skelterjohn> man, i hate eclipse
20:11 < aiju> skelterjohn: who doesn't?
20:11 < skelterjohn> so slow
20:11 < skelterjohn> for such simple things
20:12 < nsf> archlinux will have a binary gccgo package soon
20:12 < nsf> in fact it already has, but in 'testing'
20:12 < nsf> gcc 4.6 yay!
20:12 < skelterjohn> i just want an "ide" that has a little panel on the
side that has a directory browser, and will edit the files i click on
20:12 < nsf> skelterjohn: try geany
20:12 < skelterjohn> googling
20:13 < nsf> http://www.geany.org/
20:13 < skelterjohn> seems windows-only-ish
20:13 < nsf> uhm?
20:13 < nsf> nowai
20:13 < zozoR> kate?
20:13 < nsf> it's written in gtk
20:13 < skelterjohn> or maybe what i meant was not-os-x ish
20:13 < zozoR> kate is kde :D
20:14 < zozoR> but is exactly like you describe
20:14 < nsf> Geany is known to run under Linux, FreeBSD, NetBSD, OpenBSD,
MacOS X, AIX v5.3, Solaris Express and Windows.
20:14 < plexdev> http://is.gd/J4QbgV by [Rob Pike] in 2 subdirs of go/src/
-- path/filepath.Glob: add an error return.
20:14 < nsf> but I use vim
20:15 < skelterjohn> does kate work on os x?
20:15 < zozoR> no idea
20:15 < nsf> oops I gave a wrong link to an issue
20:15 < nsf> http://code.google.com/p/go/issues/detail?id=1664
20:15 < nsf> here's the real one
20:15 < nsf> :)
20:16 < skelterjohn> kate is kinda on os x, but it wants me to mess around
with fink and macporks
20:16 < skelterjohn> to get kde working
20:18 < nsf> skelterjohn: uhm, wait
20:18 < nsf> it's mac, it has textmate
20:18 < nsf> what's wrong with it?
20:18 < skelterjohn> i tried that
20:18 < skelterjohn> i don't remember
20:18 < skelterjohn> there was some reason i disliked it
20:18 < skelterjohn> i'll try again
20:18 < skelterjohn> they do ask for money, though
20:18 < skelterjohn> and i'd prefer not to give someone money
20:18 < nsf> smart people had invented cracks
20:18 < nsf> :D
20:18 < nsf> although if you really want "free" software I wouldn't use mac
20:18 < nsf> :D
20:18 < nsf> don't listen me, I give bad advices
20:18 < aiju> textmate is flashy emacs
20:19 < skelterjohn> i don't mind flashy emacs
20:19 < steven> textmate ftw
20:20 < steven> skelterjohn: you prefer not giving people money?
20:20 < skelterjohn> yes
20:20 < nsf> haha, I simply don't have any money
20:20 < nsf> lol
20:20 < steven> good thing nobody else feels that way, eh?  then you'd be
out of a job
20:20 < steven> er, i mean not everybody else.
20:20 < zerosanity> vim is dead...  long live vim
20:20 < dforsyth> im just rolling my own editor
20:21 < nsf> zerosanity: indeed
20:21 < steven> we all do dforsyth
20:21 -!- piranha [~piranha@5ED43A0B.cm-7-5a.dynamic.ziggo.nl] has quit [Quit:
Computer has gone to sleep.]
20:21 < skelterjohn> steven: i have no problem buying things, but i prefer
free, when quality doesn't suffer
20:21 < dforsyth> really?  most people make fun of me when i say im writing
my own editor
20:21 < skelterjohn> i don't see what that has to do with a job
20:21 < zerosanity> dforsyth: do you see the "nuts" in the channel name?
20:21 < steven> a good programmer will at some point write their own http
server, irc client, text editor, ide, terminal emulator, etc etc
20:21 -!- zozoR [~Morten@56344e3e.rev.stofanet.dk] has quit [Remote host closed
the connection]
20:21 < nsf> for the last 10 years I have bought only two software products
20:21 < skelterjohn> if you prefer giving people money, i'll give you my
paypal id and you can just send me a bunch
20:21 < steven> skelterjohn: of course quality suffers
20:22 < nsf> team fortress 2 (10$) and magicka (10$)
20:22 < steven> whatever anyway
20:22 < nsf> I think it was worth it
20:22 < dforsyth> steven: sounds like someone with way too much time on
their hands
20:22 < kamaji> magicka is 10 buckeroos?
20:22 < nsf> kamaji: yes
20:22 < dforsyth> writing your own ide?  i thin know
20:22 < dforsyth> not*
20:22 < kamaji> nsf: schwing
20:22 < aiju> or just don't use any darn ide!
20:22 < kamaji> nsf: does it run on linux?
20:22 < dforsyth> majicka is awesome
20:22 < kamaji> oh no it's XNA isn' tit
20:22 < kamaji> boooo
20:22 < nsf> kamaji: no
20:22 < nsf> yeah, XNA
20:22 < mpl> skelterjohn: 22:15 < skelterjohn> i just want an "ide"
that has a little panel on the side that has a directory browser, and will edit
the files i click on <-- acme + xplor :)
20:22 < nsf> and eats about 1-1.5 gigs of ram
20:23 < kamaji> wat
20:23 < skelterjohn> i tried acme.  it was way too foreign feeling
20:23 < kamaji> welp, no magicka for me
20:23 < nsf> and it's buggy in multiplayer
20:23 < dforsyth> vim and nerdtree :)
20:23 < nsf> but single is really amazing :)
20:23 < kamaji> I'll get it for summer holidays :D
20:23 < nsf> funny and entertaining
20:23 < dforsyth> mmm summer holidays
20:23 < skelterjohn> wrtp: your parser.ImportPathToName function is messing
up gorf :\
20:23 < dforsyth> i miss school
20:24 < aiju> i'll be fucking happy when i leave it
20:24 < taruti> mpl: is there a port of xplor to plan9 yet?
20:24 < mpl> skelterjohn: well, there is a little learning curve, but it's
pretty easy to overcome.
20:24 < mpl> taruti: sure.  I've announced it on 9fans.
20:24 < skelterjohn> not to look a gift horse in the mouth (or that i think
you're a horse) but i don't understand why ImportPathToName exists in the first
place
20:24 < taruti> mpl: nice :)
20:27 -!- vsayer [~vivek@c-67-170-236-166.hsd1.ca.comcast.net] has joined #go-nuts
20:29 < mpl> taruti: https://bitbucket.org/mpl/xplor9/overview
20:29 < mpl> taruti: doesn't matter much though, since go will soon work on
plan 9 ;)
20:29 < nsf> http://code.google.com/p/go/issues/detail?id=1664
20:29 < nsf> hehe, indeed
20:29 < nsf> should be a type error
20:29 < nsf> one more bug, yay!
20:29 < dforsyth> aiju: you say that now :)
20:29 < dforsyth> unless youre a phd or something, then i can understand it
20:29 < aiju> i find it extremely depressing
20:29 < skelterjohn> you should never argue from authority, or use lack of
authority as a reason to reject an argument
20:29 < skelterjohn> if you like, i can parrot what aiju just said, so it
can come from somewhere you'd accept
20:29 < mpl> taruti: apparently some ppl didn't get it, so I'll put a readme
about it; but jsyk it makes heavy use of chording 2+1, with the Win and Xplor
commands.
20:29 < aiju> hahahha
20:29 -!- Fish-- [~Fish@9fans.fr] has quit [Quit: So Long, and Thanks for All the
Fish]
20:29 < mpl> has anyone else been contacted by this Vertika Srivastava dude?
20:29 < aiju> i just misread that for swastika
20:29 < aiju> 卐 <-- free swastikas for everyone!
20:29 < mpl> aiju: that's because you're _20h_ disciple.
20:29 < nsf> font failure
20:29 < nsf> :(
20:29 -!- TheMue [~TheMue@p5DDF780F.dip.t-dialin.net] has quit [Quit: TheMue]
20:31 < skelterjohn> can't try textmate, since I already tried it some time
ago, and my 30 day free trial has run out
20:31 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-171-173.clienti.tiscali.it] has
quit [Quit: E se abbasso questa leva che succ...]
20:31 < bartbes> aiju: wow, I wonder why that's in my font..
20:31 < aiju> haha
20:31 < bartbes> then again, the swastika wasn't originally a nazi symbol
20:31 < aiju> fonts without it don't get the Hitler Seal of Approval
20:31 < bartbes> hitler didn't like seals
20:31 < aiju> bartbes: 卍 is much more common in fonts than 卐, though
20:32 < bartbes> it's drawn better too
20:32 < aiju> same here
20:32 < bartbes> the first one has clear edges where the second is a bit
vague
20:32 < dforsyth> hmm, get up to get a drink, come back to a screen full of
swastikas
20:32 < bartbes> dejavu?
20:32 < bartbes> (font)
20:32 < aiju> i meant to say "both look the same here"
20:32 < aiju> not "same as yours"
20:32 < bartbes> oh heh
20:33 < skelterjohn> they look the same to me too
20:34 < bartbes> I wonder what would happen to germans in this channel if
the swastika was used as a symbol of nazism
20:34 < bartbes> as it's illegal to use it that way in germany
20:34 < aiju> bartbes: yeah
20:34 < aiju> but we're educating people
20:34 < aiju> so it's ok
20:43 -!- tensorpudding [~user@99.148.205.193] has quit [Remote host closed the
connection]
20:45 -!- tensorpudding [~user@99.148.205.193] has joined #go-nuts
20:46 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.4]
20:46 < plexdev> http://is.gd/OVw7nn by [Russ Cox] in go/src/cmd/gotest/ --
gotest: fix build
20:46 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has joined #go-nuts
20:51 -!- zerosanity [~josh@8.20.178.82] has quit [Remote host closed the
connection]
20:58 -!- Netsplit *.net <-> *.split quits: rejb, str1ngs, jbooth1,
djcapelis, dario, steven, pothos, jessta_, andman_, madari, (+143 more, use
/NETSPLIT to show all of them)
20:59 -!- Netsplit over, joins: Fish-, xyproto, rejb, j3parker, taruti,
aimxhaisse, andman_, aiju, i__, Cobi (+142 more)
20:59 -!- espeed [~espeed@63.246.231.57] has quit [Max SendQ exceeded]
21:01 -!- espeed [~espeed@63.246.231.57] has joined #go-nuts
21:03 < plexdev> http://is.gd/8HPqdP by [Brad Fitzpatrick] in 6 subdirs of
go/src/pkg/ -- os: add Seek whence constants
21:03 -!- huin [~huin@91.85.185.181] has quit [Quit: bedtime]
21:05 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has quit [Ping
timeout: 240 seconds]
21:07 -!- skejoe [~skejoe@188.114.142.217] has quit [Quit: Lost terminal]
21:11 -!- plainhao [~plainhao@208.75.85.237] has quit [Quit: plainhao]
21:12 -!- apexo [~apexo@2a01:238:436b:8301:5054:ff:fe87:82fb] has quit [Ping
timeout: 248 seconds]
21:14 -!- leczb__ [~leczb@nat/google/x-lebjyuxoxxofdqce] has joined #go-nuts
21:14 -!- leczb_ [~leczb@nat/google/x-irwctlsrkjylxdyk] has quit [Read error:
Connection reset by peer]
21:14 -!- apexo [~apexo@2a01:238:436b:8301:5054:ff:fe87:82fb] has joined #go-nuts
21:18 -!- wrtp [~rog@2.97.144.60] has quit [Quit: wrtp]
21:20 -!- katakuna [pie@kjal.demon.co.uk] has quit [Ping timeout: 250 seconds]
21:29 -!- awidegreen [~quassel@c-0acfe555.08-2-73746f39.cust.bredbandsbolaget.se]
has quit [Remote host closed the connection]
21:35 -!- emjayess [~emjayess@pix1.i29.net] has quit [Ping timeout: 240 seconds]
21:36 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
21:38 -!- m4dh4tt3r [~Adium@c-69-181-223-245.hsd1.ca.comcast.net] has joined
#go-nuts
21:42 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
21:44 -!- imsplitbit [~imsplitbi@64.39.4.132] has quit [Quit: Bye!]
21:48 -!- skelterjohn [~jasmuth@lawn-gw.rutgers.edu] has quit [Quit: skelterjohn]
21:53 -!- pothos [~pothos@111-240-164-208.dynamic.hinet.net] has quit [Read error:
Connection reset by peer]
21:54 -!- itrekkie [~itrekkie@uawifi-nat-210-28.arizona.edu] has quit [Quit:
itrekkie]
21:55 -!- pothos [~pothos@111-240-167-241.dynamic.hinet.net] has joined #go-nuts
22:05 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller,
Faster, Easier.  http://miranda-im.org]
22:08 -!- artefon [~thiago@189.59.198.32] has quit [Quit: bye]
22:09 -!- itrekkie [~itrekkie@ip72-211-131-205.tc.ph.cox.net] has joined #go-nuts
22:17 -!- matti_ [~mumboww@c-24-6-22-101.hsd1.ca.comcast.net] has joined #go-nuts
22:26 -!- ExtraSpice [XtraSpice@88.118.35.153] has quit [Read error: Connection
reset by peer]
22:29 -!- Venom_X [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has
joined #go-nuts
22:32 -!- Cobi [~Cobi@2002:1828:88fb:0:aede:48ff:febe:ef03] has quit [Read error:
Operation timed out]
22:36 -!- Cobi [~Cobi@2002:1828:88fb:0:aede:48ff:febe:ef03] has joined #go-nuts
22:39 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has joined
#go-nuts
22:41 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
22:46 -!- dRbiG [drbig@unhallowed.pl] has quit [Ping timeout: 240 seconds]
22:47 -!- dRbiG [drbig@unhallowed.pl] has joined #go-nuts
22:53 -!- Scorchin [~Scorchin@host109-157-105-47.range109-157.btcentralplus.com]
has joined #go-nuts
22:54 -!- dRbiG [drbig@unhallowed.pl] has quit [Ping timeout: 276 seconds]
22:55 -!- dRbiG [drbig@unhallowed.pl] has joined #go-nuts
22:55 -!- hargettp [~hargettp@96.237.120.24] has joined #go-nuts
23:02 -!- foocraft [~dsc@78.101.82.30] has joined #go-nuts
23:05 -!- Tuller [~tuller@c-68-33-63-208.hsd1.va.comcast.net] has joined #go-nuts
23:11 -!- anth [~a@72-160-98-179.dyn.centurytel.net] has joined #go-nuts
23:17 < justinlilly> is there a shortcut for doing
fmt.Println(fmt.Sprintf("mystr: %v", foo)) ?
23:17 < justinlilly> preferrable something like fmt.Sprintln that actually
prints the line, not just adds a newline char?
23:19 < exch> fmt.Printf("mystr: %v\n", foo)
23:20 < justinlilly> thx :)
23:28 -!- prip_ [~foo@host35-123-dynamic.35-79-r.retail.telecomitalia.it] has quit
[Ping timeout: 258 seconds]
23:29 -!- dfc [~dfc@eth59-167-133-99.static.internode.on.net] has joined #go-nuts
23:34 -!- Scorchin [~Scorchin@host109-157-105-47.range109-157.btcentralplus.com]
has quit [Quit: Scorchin]
23:35 -!- skelterjohn [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has joined
#go-nuts
23:41 -!- prip_ [~foo@host29-194-dynamic.17-79-r.retail.telecomitalia.it] has
joined #go-nuts
23:47 -!- Cobi [~Cobi@2002:1828:88fb:0:aede:48ff:febe:ef03] has quit [Ping
timeout: 260 seconds]
23:50 < KirkMcDonald> Clearly what is needed is a fmt.Printfln()
23:51 -!- jgonzalez [~jgonzalez@173-14-137-134-NewEngland.hfc.comcastbusiness.net]
has quit [Ping timeout: 264 seconds]
23:51 -!- kvey [~xantosfla@75-164-97-85.tcso.qwest.net] has joined #go-nuts
23:56 -!- hargettp [~hargettp@96.237.120.24] has quit [Quit: Linkinus -
http://linkinus.com]
23:58 -!- Cobi [~Cobi@2002:1828:88fb:0:aede:48ff:febe:ef03] has joined #go-nuts
23:58 < skelterjohn> yep
23:59 -!- virtualsue [~chatzilla@nat/cisco/x-gkqhskqwinmtpbhc] has quit [Quit:
ChatZilla 0.9.86.1 [Firefox 4.0/20110318052756]]
--- Log closed Tue Apr 05 00:00:50 2011