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

--- Log opened Thu Sep 09 00:00:06 2010
00:01 -!- enherit [~enherit@cpe-98-149-170-48.socal.res.rr.com] has quit [Quit:
leaving]
00:09 -!- mattikus [~mattikus@wireless-lsusecure-6.net.lsu.edu] has joined
#go-nuts
00:28 -!- steveno [~stevenoli@c-24-131-221-195.hsd1.pa.comcast.net] has joined
#go-nuts
00:28 -!- steveno [~stevenoli@c-24-131-221-195.hsd1.pa.comcast.net] has quit
[Changing host]
00:28 -!- steveno [~stevenoli@paludis/cheerleader/steveno] has joined #go-nuts
00:35 < nickaugust> whats the best way to search for a string inside another
string?
00:36 < nbjoerg> ATM regexp
00:36 < nbjoerg> I guess
00:36 < nickaugust> hm ok i guess that will for for now
00:36 <+iant> strings.Index
00:37 < nickaugust> iant: thx i'll check that out
00:37 < nbjoerg> iant: only for very short strings
00:41 -!- major_majors [~major_maj@c-68-40-195-246.hsd1.mi.comcast.net] has quit
[Quit: major_majors]
00:43 -!- kanru [~kanru@118-160-165-166.dynamic.hinet.net] has quit [Quit: WeeChat
0.3.2]
00:55 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has joined
#go-nuts
00:57 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has joined #go-nuts
00:58 -!- l00t [~i-i3id3r_@189.105.125.72] has quit [Read error: Connection reset
by peer]
01:00 -!- mikespook [~mikespook@219.137.75.6] has joined #go-nuts
01:02 -!- iant [~iant@66.109.106.2] has quit [Quit: Leaving.]
01:04 -!- felipe [~felipe@my.nada.kth.se] has quit [Quit: felipe]
01:08 -!- RobertLJ_ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has joined
#go-nuts
01:09 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has quit [Read
error: Connection reset by peer]
01:09 -!- mbohun [~mbohun@202.124.72.52] has quit [Read error: Connection reset by
peer]
01:09 -!- mbohun [~mbohun@202.124.72.52] has joined #go-nuts
01:14 -!- l00t [~i-i3id3r_@189.105.86.140] has joined #go-nuts
01:16 -!- RobertLJ_ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has quit
[Remote host closed the connection]
01:17 -!- boscop [~boscop@g227157019.adsl.alicedsl.de] has quit [Ping timeout: 252
seconds]
01:22 < nsf> yay!  announcing gocode 'renaming' functionality in the ML
01:27 -!- Bombe [~droden@freenet/developer/Bombe] has quit [Excess Flood]
01:27 -!- Bombe [~droden@weltgehirnmaschine.de] has joined #go-nuts
01:33 -!- enferex [~enferex@users.757.org] has joined #go-nuts
01:35 < enferex> I need an enumerated type.  However, it seems there is
none, at least not reported in the docs, is there a typical convention used
instead?
01:36 < nsf> yes
01:36 < nsf> there is a thing called iota
01:36 < nsf> which works inside of a const clause
01:36 < nsf> you can do an enum that way:
01:36 < nsf> const (
01:36 < nsf> A = iota
01:36 < nsf> B
01:36 < nsf> C
01:36 < nsf> )
01:36 < nsf> a, b, c == 0, 1, 2
01:37 < enferex> ohh nsf Thanks, gkad your not nsfw
01:37 < nsf> as in enum
01:37 < nsf> who is nsfw?  :)
01:37 < enferex> me when I sit here without my pants on
01:37 < enferex> (only kidding)
01:37 < nsf> :DD
01:38 -!- kergoth [~kergoth@ip24-251-170-95.ph.ph.cox.net] has quit [Quit:
kergoth]
01:38 < nsf> actually iota is more powerful than enum
01:38 < enferex> yeah
01:38 < dj2> what does iota stand for?
01:38 < enferex> im looking at the doc for it
01:38 < nsf> iota is evaluated to the number of a statement inside the const
clause
01:38 < exch> the iota value can also be in expressions: 'A = iota * 2' this
expression will be copied automatically to all subsequent values in that same
const block.
01:38 < nsf> starting from 0
01:39 < nsf> and it is mentioned in the docs somewhere
01:39 < nsf> probably FAQs
01:40 < nsf> http://golang.org/doc/effective_go.html#constants
01:40 < nsf> here
01:41 < dj2> oh, iota the greek letter, not an acronym, heh
01:41 < nsf> yes
01:42 < enferex> nsf, so I assume I can wrap the const inside a type
01:43 < enferex> to make a named enumeration
01:43 < nsf> um..
01:43 < nsf> no you can't
01:43 < enferex> In other words, I have a type that has a "status" the
status being an enumerated value
01:44 < nsf> ypu'll have to use TYPE_STATUS
01:44 < nsf> or something
01:44 < nsf> go doesn't have named enums
01:44 < nsf> like C# and C++0x
01:44 < enferex> yeah
01:45 < enferex> So in my "Dude" type, my dude needs a status
01:45 < enferex> status is a const
01:46 < nsf> ah..  I see
01:46 < nsf> you want to assign a const to a field
01:46 < enferex> exactly
01:46 < nsf> and you want to know what type you need to use
01:46 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts
01:46 -!- mode/#go-nuts [+v iant] by ChanServ
01:46 -!- artefon [~thiago@189.107.129.61] has quit [Quit: bye]
01:46 < enferex> correct
01:46 < nsf> well consts are just consts
01:46 < nsf> you can use whatever type you like
01:46 < nsf> int8 int16 int32 or simply int
01:46 < nsf> even float
01:47 < nsf> it will be converted without requiring casts
01:47 < enferex> that looses semantics though, I suppose I can just define
anotehr type and call it Status
01:47 < nsf> or should I say const numbers are just numbers
01:47 < nsf> probably you can
01:47 < nsf> you can actually define an int type that will be called Status
01:47 < nsf> type Status int
01:48 < enferex> basically a typedef
01:48 < nsf> and you can add methods on top of it
01:48 < nsf> something like typedef, yes
01:50 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has quit
[Ping timeout: 265 seconds]
01:51 < enferex> thanks
01:52 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has joined
#go-nuts
01:55 -!- boscop [~boscop@g225226076.adsl.alicedsl.de] has joined #go-nuts
02:00 -!- ukai [~ukai@nat/google/x-euzuyujzpyeetgwh] has quit [Ping timeout: 258
seconds]
02:01 -!- ukai [~ukai@nat/google/x-dibyewoipbnheqdz] has joined #go-nuts
02:02 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has quit
[Ping timeout: 276 seconds]
02:25 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has joined
#go-nuts
02:26 < Boney> hi enferex.
02:26 < Boney> nf: enferex is a guy I work with, he's cool.
02:27 < nsf> omg, google.com has new feature
02:27 < Boney> enferex: nf is a a guy I know, he's equally as cool.
02:27 < nsf> now it searches as you type
02:27 < nsf> cool
02:29 < nbjoerg> google.com watches your pr0n search queries in real time
now
02:31 -!- enferex [~enferex@users.757.org] has left #go-nuts []
02:31 -!- niemeyer [~niemeyer@200-203-56-246.pltce701.dsl.brasiltelecom.net.br]
has quit [Ping timeout: 245 seconds]
02:32 -!- steveno [~stevenoli@paludis/cheerleader/steveno] has quit [Quit:
steveno]
02:35 -!- jcao219_ [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has
joined #go-nuts
02:35 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has quit
[Read error: Connection reset by peer]
02:36 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 272 seconds]
02:40 -!- mattikus [~mattikus@wireless-lsusecure-6.net.lsu.edu] has quit [Remote
host closed the connection]
02:42 -!- markcol [~markcol@64.134.138.104] has joined #go-nuts
02:43 -!- jcao219_ [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has quit
[Ping timeout: 265 seconds]
02:44 -!- jcao219_ [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has
joined #go-nuts
02:44 -!- MorningSon [~MorningSo@cpe-72-177-219-41.satx.res.rr.com] has joined
#go-nuts
02:45 -!- mattikus [~mattikus@wireless-lsusecure-6.net.lsu.edu] has joined
#go-nuts
02:50 -!- Adys [~Adys@unaffiliated/adys] has quit [Quit: I ♥ Unicode]
02:53 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
02:53 -!- markcol [~markcol@64.134.138.104] has quit [Quit: markcol]
02:56 < cbeck> Dear powers that be, I would like it very much if case
statements with a preliminary expression were legal, similar to if ..  blocks
02:56 < cbeck> Warms regards, cbeck
02:58 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has quit
[Remote host closed the connection]
02:58 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has joined
#go-nuts
03:00 -!- steveno [~stevenoli@c-24-131-221-195.hsd1.pa.comcast.net] has joined
#go-nuts
03:00 -!- steveno [~stevenoli@c-24-131-221-195.hsd1.pa.comcast.net] has quit
[Changing host]
03:00 -!- steveno [~stevenoli@paludis/cheerleader/steveno] has joined #go-nuts
03:01 < nsf> uhm..  why?
03:02 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 276 seconds]
03:02 < nsf> I'd like to see this "Init" statements removed from if blocks
03:02 < nsf> I hate them
03:02 < nsf> :D
03:02 < nsf> these*
03:03 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has quit
[Ping timeout: 265 seconds]
03:04 < cbeck> I love em, easy way to have limited scope variables
03:05 < nsf> true, but other than that they are useless
03:05 < nsf> and for every guy who writes tools for Go code
03:05 < nsf> it's an additional headache
03:06 < cbeck> I disagree that they're useless
03:08 < nsf> simply a nice syntax for of that: { x := abc; if x == nil { } }
03:08 < nsf> form*
03:08 -!- steveno [~stevenoli@paludis/cheerleader/steveno] has quit [Quit:
steveno]
03:09 < nsf> with exception that there is only one assign statement is
allowed
03:09 -!- major_majors [~major_maj@173-10-44-57-Michigan.hfc.comcastbusiness.net]
has joined #go-nuts
03:09 -!- mattikus [~mattikus@wireless-lsusecure-6.net.lsu.edu] has quit [Remote
host closed the connection]
03:22 -!- ako [~nya@fuld-4d00d248.pool.mediaWays.net] has quit [Quit:
EXEC_over.METHOD_SUBLIMATION]
03:30 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Ping timeout: 265
seconds]
03:32 < cbeck> Where I use them is thibgs like "if f, err :=
expensiveOp(foo); err != nil ...  else if b, err := expensiveOp(bar); err != nil"
03:34 < cbeck> and it's for that exact reason I miss them in switch
statements, which I much prefer to long if..else if chains
03:35 < nsf> it can be done as a separate function: f, err :==
expensiveOp(foo); if err == nil { return err; } b, err := expensiveOp(bar); if err
== nil { return err; } ...
03:35 < nsf> s/:==/:=/
03:36 < nsf> or even with goto
03:36 < nsf> inside a single function
03:37 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
03:37 < nsf> return early, return often, lol
03:40 < cbeck> That seems easier to parse, and much harder to follow
03:42 -!- gid1 [~gid@220-253-147-183.VIC.netspace.net.au] has joined #go-nuts
03:43 -!- gid [~gid@220.253-227-242.VIC.netspace.net.au] has quit [Ping timeout:
264 seconds]
03:45 < nsf> not for me
03:45 < cbeck> Eh, to each their own
03:46 -!- gid1 [~gid@220-253-147-183.VIC.netspace.net.au] has quit [Client Quit]
03:46 < cbeck> I'm excited to try gocode when I get back to the world, if I
have time I'll write an emacs mode for it
03:46 -!- MorningSon [~MorningSo@cpe-72-177-219-41.satx.res.rr.com] has quit
[Quit: WeeChat 0.3.0]
03:47 < nsf> that's good to hear
04:05 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Ping
timeout: 265 seconds]
04:14 -!- Bombe [~droden@weltgehirnmaschine.de] has quit [Changing host]
04:14 -!- Bombe [~droden@freenet/developer/Bombe] has joined #go-nuts
04:14 < vsmatck> If you have one TCPConn that may need to read or write at
any time does one normally use two go routines?  I'm used to using one thread with
BSD sockets select().
04:20 < vsmatck> I'm writing toy program to learn go.  A server you can
connect to multiple times concurrently (with telnet).  When someone sends text to
the server it sends that text to everyone connected.
04:20 < vsmatck> Exactly like IRC.
04:20 -!- iant [~iant@216.239.45.130] has joined #go-nuts
04:20 -!- mode/#go-nuts [+v iant] by ChanServ
04:21 -!- MaybeSo_ [~jimr@lions.Stanford.EDU] has joined #go-nuts
04:22 < nsf> vsmatck:
http://github.com/ichverstehe/gochat/blob/master/gochat.go
04:22 < nsf> you're not the first one
04:23 < nsf> I guess this source code will answer all your questions
04:23 < vsmatck> nsf: yes it will.  Thanks a lot.  :)
04:26 -!- MaybeSo [~jimr@lions.Stanford.EDU] has quit [Quit: Lost terminal]
04:30 < vsmatck> Yup, he's using two go routines.
04:32 -!- mattikus [~mattikus@ip24-250-73-154.br.br.cox.net] has joined #go-nuts
04:34 -!- b00m_chef [~watr@66.183.100.197] has joined #go-nuts
04:37 < nsf> it makes sense, because receive is blocking
04:38 < nsf> and the communication scheme is async
04:55 -!- b00m_chef [~watr@66.183.100.197] has quit [Ping timeout: 264 seconds]
05:00 -!- scm [justme@d136128.adsl.hansenet.de] has quit [Read error: Operation
timed out]
05:02 -!- sacho [~sacho@213.91.244.15] has joined #go-nuts
05:02 -!- Sseur [~david@mic92-12-88-161-108-143.fbx.proxad.net] has joined
#go-nuts
05:03 -!- scm [justme@d070207.adsl.hansenet.de] has joined #go-nuts
05:05 -!- enferex [~enferex@users.757.org] has joined #go-nuts
05:06 < enferex> I thought I could add a method to an []int.  Mainly
something like: func (MyArray)setSecondField(val int) {[2]=val} But I seem to be
borking the syntax somewhere
05:07 < nsf> func (a MyArray)setSecondField(val int) {a[2]=val}
05:07 < nsf> and []int is not an array
05:07 < nsf> it's a slice
05:07 < enferex> sweet that did i :-)
05:07 < enferex> did it
05:08 < enferex> I thought [2]int is an array
05:08 < nsf> basically it has the same meaning as C's struct { void *data;
int length, capacity; }
05:08 < nsf> [2]int is an array
05:08 < enferex> ok
05:08 < nsf> []int is a slice :)
05:08 < enferex> ok ok
05:08 < enferex> thanks for the clarity!
05:08 < nsf> array has its size attached to the type
05:08 < enferex> yep
05:09 < enferex> im familiar with slices, well im really new to go in
general, i had been a professional c/c++ guy for the past few years
05:10 < nsf> go is easy to learn if you know C/C++ well :D so, you won't
have problems with understanding all that stuff in a week
05:10 < enferex> today is like day 1.5
05:10 < enferex> im thoroughly impressed
05:10 -!- Sseur [~david@mic92-12-88-161-108-143.fbx.proxad.net] has quit [Ping
timeout: 265 seconds]
05:10 < enferex> Main problem my vim needs a syntax file for this
05:10 < enferex> ...  /me googles
05:11 < enferex> found some :-)
05:11 < cbeck> enferex: one comes with the go repo
05:11 < nsf> it's in the Go repo
05:11 < nsf> yes
05:11 < nsf> under misc/vim
05:11 < enferex> Oh it is
05:11 < enferex> hmmm ok coolness
05:12 < enferex> i already have one then ;-)
05:12 < nsf> also consider using this: http://github.com/nsf/gocode
05:12 < nsf> it's an autocompletion/refactoring daemon with vim integration
05:12 < nsf> written by me
05:13 < enferex> saw Rob Pike talk yesterday so it kinda hooked me; plus I
have some stuff id like to extend my PhD research on
05:14 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has quit [Ping
timeout: 240 seconds]
05:15 < nsf> Go is intersting and there is one thing that I really like
about it.  When you have a question like "what is this thing does", most likely
there will be a straight answer to that, without any kind of "if..  in case if.."
05:15 < nsf> one of the things I really like about it*
05:15 < nsf> !
05:15 < enferex> yeah, all your answers today have been on point
05:16 < enferex> im a curmudgeon, err C is the greatestthing since sliced
bagesl *me waves coffee mug*
05:16 < enferex> but now im starting to open my mind a bit
05:16 < enferex> --curmudgeon
05:16 < enferex> oh wait that doesnt work: curmudgeon--
05:16 < enferex> ;-)
05:19 < nsf> :)
05:21 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
05:27 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3]
05:33 -!- dju [dju@fsf/member/dju] has joined #go-nuts
05:36 -!- dju [dju@fsf/member/dju] has quit [Max SendQ exceeded]
05:37 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 276 seconds]
05:37 -!- dju [dju@fsf/member/dju] has joined #go-nuts
05:42 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
05:44 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
05:49 -!- mikeg [~michael@ip68-110-226-15.dc.dc.cox.net] has quit [Ping timeout:
240 seconds]
05:49 -!- piyushmishra [~piyushmis@117.200.225.112] has joined #go-nuts
05:57 -!- mikeg [~michael@ip68-110-226-15.dc.dc.cox.net] has joined #go-nuts
06:04 -!- ikaros [~ikaros@188.107.208.221] has joined #go-nuts
06:24 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts
06:25 -!- Project_2501 [~Marvin@82.84.97.104] has joined #go-nuts
06:39 < enferex> I thought I could have structs with functions (methods)
06:46 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 252 seconds]
06:54 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
06:54 -!- erje [~erje@port-92-201-92-230.dynamic.qsc.de] has quit [Ping timeout:
276 seconds]
06:58 -!- JimmyRcom [~jimmy@adsl-76-201-179-216.dsl.rcsntx.sbcglobal.net] has quit
[Ping timeout: 258 seconds]
07:01 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
07:04 -!- tav [~tav@2001:0:53aa:64c:0:3ffa:a3f8:a4f5] has joined #go-nuts
07:05 -!- ucasano [~ucasano@95.231.79.71] has joined #go-nuts
07:17 -!- major_majors [~major_maj@173-10-44-57-Michigan.hfc.comcastbusiness.net]
has quit [Quit: major_majors]
07:20 < plexdev> http://is.gd/f231L by [Andrew Gerrand] in go/src/pkg/path/
-- path: fix typo in path.Visitor
07:20 < plexdev> http://is.gd/f231Q by [Andrew Gerrand] in go/src/cmd/cgo/
-- cgo: add typedef for uintptr in generated headers
07:20 < plexdev> http://is.gd/f2324 by [Alex Brainman] in
go/src/pkg/runtime/windows/ -- runtime: fix windows build
07:20 < plexdev> http://is.gd/f232c by [Scott Lawrence] in go/src/cmd/gc/ --
gc: implement new slice spec
07:20 < plexdev> http://is.gd/f232r by [Joe Poirier] in 5 subdirs of go/src/
-- build: test for _WIN32, not _MINGW32
07:20 < plexdev> http://is.gd/f232A by [Russ Cox] in go/test/ken/ -- test
new slices
07:20 < plexdev> http://is.gd/f232H by [Ian Lance Taylor] in
go/test/interface/ -- test: Match gccgo error messages.
07:20 < plexdev> http://is.gd/f232Y by [Ian Lance Taylor] in go/test/ --
test: Match gccgo error messages.
07:20 < plexdev> http://is.gd/f233A by [Rob Pike] in
go/src/pkg/runtime/amd64/ -- runtime: fix bug in tracebacks
07:21 < plexdev> http://is.gd/f233X by [Robert Griesemer] in 2 subdirs of
go/src/pkg/go/printer/ -- gofmt, go/printer: update internal estimated position
correctly
07:21 < plexdev> http://is.gd/f234l by [Rob Pike] in go/src/ -- Make.inc:
fix build for tiny.
07:21 < plexdev> http://is.gd/f234u by [Ivan Krasin] in go/src/pkg/path/ --
path: add IsAbs
07:21 < plexdev> http://is.gd/f234O by [Scott Lawrence] in go/test/syntax/
-- test: remove slice syntax test
07:21 < plexdev> http://is.gd/f2350 by [Joe Poirier] in go/src/ -- build:
generate, clean .exe files on Windows
07:28 -!- piyushmishra1 [~piyushmis@117.200.224.132] has joined #go-nuts
07:29 -!- piyushmishra [~piyushmis@117.200.225.112] has quit [Ping timeout: 252
seconds]
07:42 < madari> hi, can someone explain what is the purpose of those ·
'strays' i see occasionally browsing through the go c-files?
07:43 < madari> it's not valid c (afaik), so I'm wondering if those are some
hints to the preprocessor or...  ?
07:43 -!- napsy [~luka@88.200.96.18] has quit [Quit: Lost terminal]
07:44 < madari> seen immediately before functions names, for example: void
·example(void);
07:45 < nsf> it's a go function or something
07:45 < nsf> maybe it has something to do with calling conventions, I don't
know, just a guess
07:47 < Bombe> Are you sure those aren’t added by your editor, madari?
07:47 < madari> yes
07:47 < nsf> no, they aren't
07:48 < madari> nsf: could be...
07:48 < enferex> hmm multidimension arrays...  var foos [width][height]Foo
and many of my other implementations have failed.  I cannot seem to find a doc
online to define a multidimensional array
07:49 -!- rbraley [~rbraley@ip72-222-128-78.ph.ph.cox.net] has joined #go-nuts
07:50 < nsf> madari: yep, it's definitely has something to do with go
07:50 < nsf> lexer turns that symbol into: "".
07:51 < nsf> which basically a Go-style reference to the current package
namespace
07:51 -!- ikaros [~ikaros@188.107.208.221] has quit [Quit: Leave the magic to
Houdini]
07:51 < madari> nsf: yup...  it seems like we have a winner :) thanks
08:01 -!- LeNsTR [~lenstr@unaffiliated/lenstr] has joined #go-nuts
08:01 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
08:07 < plexdev> http://is.gd/f25W5 by [Nigel Tao] in 2 subdirs of
go/src/pkg/exp/draw/ -- exp/draw: rename Context to Window, and add a Close
method.
08:16 -!- ucasano [~ucasano@95.231.79.71] has quit [Quit: ucasano]
08:17 -!- ucasano [~ucasano@95.231.79.71] has joined #go-nuts
08:18 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
08:20 -!- photron [~photron@port-92-201-51-193.dynamic.qsc.de] has joined #go-nuts
08:32 -!- piyushmishra [~piyushmis@117.200.225.136] has joined #go-nuts
08:32 -!- piyushmishra1 [~piyushmis@117.200.224.132] has quit [Ping timeout: 265
seconds]
08:38 -!- piyushmishra1 [~piyushmis@117.200.227.7] has joined #go-nuts
08:38 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has joined
#go-nuts
08:39 -!- piyushmishra [~piyushmis@117.200.225.136] has quit [Ping timeout: 246
seconds]
08:45 -!- dju [dju@fsf/member/dju] has quit [Read error: Connection reset by peer]
08:45 -!- dju_ [dju@fsf/member/dju] has joined #go-nuts
08:53 -!- clip9 [tj@12.81-166-62.customer.lyse.net] has quit [Ping timeout: 264
seconds]
08:53 -!- clip9 [tj@12.81-166-62.customer.lyse.net] has joined #go-nuts
08:56 -!- piyushmishra1 [~piyushmis@117.200.227.7] has quit [Ping timeout: 276
seconds]
09:01 -!- clip9 [tj@12.81-166-62.customer.lyse.net] has quit [Ping timeout: 264
seconds]
09:06 -!- clip9 [~tj@12.81-166-62.customer.lyse.net] has joined #go-nuts
09:08 -!- piyushmishra [~piyushmis@117.200.228.71] has joined #go-nuts
09:24 < plexdev> http://is.gd/f2aXJ by [Nigel Tao] in 2 subdirs of
go/src/pkg/ -- exp/draw: clip destination rectangle to the image bounds.
09:26 -!- jmettraux [~jmettraux@211.19.55.177] has left #go-nuts ["Leaving..."]
09:38 -!- talin [daghenri@lynx.stud.ntnu.no] has joined #go-nuts
09:38 < talin> hello, water buffalos
09:41 -!- mikespook [~mikespook@219.137.75.6] has quit [Quit: Leaving.]
09:44 -!- MaybeSo_ [~jimr@lions.Stanford.EDU] has left #go-nuts []
09:46 -!- MaybeSo [~jimr@lions.Stanford.EDU] has joined #go-nuts
09:55 -!- jmettraux [~jmettraux@PPPbm5391.kanagawa-ip.dti.ne.jp] has joined
#go-nuts
09:56 -!- nsf [~nsf@jiss.convex.ru] has quit [Ping timeout: 265 seconds]
09:57 -!- LeNsTR [~lenstr@unaffiliated/lenstr] has quit [Quit: LeNsTR]
10:17 -!- mbohun [~mbohun@202.124.72.52] has quit [Quit: Leaving]
10:21 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
10:23 -!- virtualsue [~chatzilla@nat/cisco/x-synlzsrtwjidygxi] has joined #go-nuts
10:24 -!- steveno [~stevenoli@c-24-131-221-195.hsd1.pa.comcast.net] has joined
#go-nuts
10:24 -!- steveno [~stevenoli@c-24-131-221-195.hsd1.pa.comcast.net] has quit
[Changing host]
10:24 -!- steveno [~stevenoli@paludis/cheerleader/steveno] has joined #go-nuts
10:33 -!- wrtp [~rog@92.17.45.134] has joined #go-nuts
10:38 < talin> has anyone started using go for any serious projects yet?
10:39 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:e8b1:95f6:331c:8a76] has joined
#go-nuts
10:39 -!- tvw [~tv@212.79.9.150] has joined #go-nuts
10:39 < jessta> talin: google is, but they can't talk about it
10:40 < nsf> talin: why is this important for you?  :)
10:40 < MaybeSo> and do you mean "big" or simply "production" ?
10:41 < talin> i'm just curious whether this language is going to become
popular
10:41 < nsf> we'll see
10:41 < nsf> no one knows
10:41 < talin> not sure whether it's worth learning :)
10:41 -!- steveno [~stevenoli@paludis/cheerleader/steveno] has quit [Quit:
steveno]
10:41 < nsf> it's pretty easy, you need 2 days to learn it
10:41 < talin> it looks like a very nice language, but the world is slow at
adapting to new things
10:42 < nsf> world has problems with that, true
10:42 < MaybeSo> it was worth learning to me simply because it's a nice
language
10:42 < jessta> talin: learning Go is worth it
10:42 < talin> is it a good general purpose language?
10:42 < MaybeSo> I wouldn't learn it if I was looking to put it on my resume
10:42 < MaybeSo> s/looking/only looking/
10:42 < nsf> talin: at least you should learn it to see what
goroutines/channels/interfaces are in Go
10:42 < jessta> talin: it's great for lots of things
10:42 < nsf> they are quite interesting even without Go :)
10:43 < MaybeSo> I think it is, it's more enjoyable for me to program in C
and a **** of a lot nicer, imo, than perl
10:43 < nsf> perl, lol
10:43 < MaybeSo> er, than programming in C
10:43 < nsf> :D
10:44 < MaybeSo> our group uses Java, Perl, and (believe it or not) XSLT.
We've got a handful of us who know how to program in C, and ...  that's it.  So I
see Go as a new language which is inbetween C and the big three in use within my
group
10:44 < talin> okay, great.  i will give it a try.  the community certainly
seems a lot nicer than what you would expect from #C
10:44 < MaybeSo> talin: just don't ask anyone about new() vs make()
10:45 < nsf> :))
10:45 < talin> i was hoping that suddenly, the world would get a desperate
need for the concurrency in Go, and start using it ;)
10:45 < bortzmeyer> To have a case-insensitive comparison of strings, no
simpler way than creating a function Equal(s1,s2) which calls strings.ToLower
before comparing with == ?
10:45 < nsf> bortzmeyer: I think lowering each letter and comparing them is
more effecient
10:46 < nsf> efficient*
10:46 < nsf> because if strings are different you'll have to lower only one
letter
10:46 < nsf> although maybe it's not that important :)
10:46 < bortzmeyer> nsd: thanks, nice idea.  Existing code somewhere,
already?  :-)
10:46 < nsf> nope, I haven't seen anything like that
10:46 < bortzmeyer> nsf: sorry for calling you nsd
10:47 < nsf> don't worry I get used to it
10:47 < nsf> a lot of people call me nfs
10:47 < nsf> :)
10:47 < nsf> for some magical reason
10:47 < bortzmeyer> Even if I have the function Equals, I regret not being
able to call it == :-(
10:48 < nsf> what's wrong with functions
10:48 < nsf> why people love operators that much
10:48 < nsf> I understand using operators on mathematical types like vector,
matrices, but strings..
10:48 < MaybeSo> bortzmeyer: huh, looks like the strings package also has a
function available to deal with lowercasing rules for Unicode, which is nice if
you have to go beyond the ascii subset
10:49 < nsf> :(
10:49 < talin> MaybeSo: so, about this new() and make()...  what's up with
that?
10:49 < nsf> :D
10:49 * MaybeSo flees screaming into the night
10:50 < talin> hahah
10:50 < bortzmeyer> MaybeSo: thanks for the reminder but, in this case (a
DNS server), ascii lower is enough
10:50 < jessta> talin: new() allocate memory, make() constructs built-in
types that need constructing
10:51 < bortzmeyer> nsf: Go has operators on strings like ==
10:51 < nsf> I know
10:51 < jessta> talin: but there is a plan to drop new() and make make() do
the allocations
10:51 < talin> jessta: aaah, excellent
10:52 < bortzmeyer> So why predefined operators and not user-defined ones?
10:52 < bortzmeyer> The only reason I see is the simplification of the
parser
10:52 < nsf> bortzmeyer: well you have a good example
10:52 < nsf> two ways of comparing strings
10:52 < bortzmeyer> But I prefer more work with the Go authors and less for
me :-)
10:52 < nsf> with lowering and without lowering
10:52 < nsf> and both are ==?
10:53 < jessta> bortzmeyer: user defined operators are the devil
10:53 < bortzmeyer> nsf: yes, unless you add the possibiity to define any
combination of non-letters as an operator (Haskell does it)
10:53 < bortzmeyer> jessta: more elaborate reasons would be great :-)
10:53 < photron> jessta: so you probably hate the c++ boost lib
10:53 < nsf> it's not the devil when used properly, but it's a very rare
case when one isn't tempted to use them in a wrong way
10:54 < jessta> bortzmeyer: precedence and vague meaning are the most
important
10:54 < nsf> I hate C++ library, and I don't listen people when they are
comparing something with haskell
10:54 < nsf> :D
10:54 < nsf> C++ boost library*
10:55 < bortzmeyer> nsf: you don't like Haskell?  Defining !-> as an
operator is fun...
10:55 < nsf> yes, I don't
10:55 < nsf> :)
10:55 < jessta> only mathematicians like Haskell and operators
10:55 < drhodes> not true
10:55 < nsf> jessta: false
10:55 < nsf> game developers like operators too
10:55 < bortzmeyer> true == ! false
10:55 < nsf> because you probably haven't seen linear math heavy app without
operators in the language
10:56 < photron> nsf: ever looked at boost::spirit?  :)
10:56 < bortzmeyer> Without the mathematicians, Fortran would have had
add(x,y) instead of x+y
10:56 < nsf> photron: yes
10:56 < nsf> photron: it compiles quite fast
10:56 < nsf> ;)
10:56 -!- lmoura_ [~lauromour@187.112.23.95] has joined #go-nuts
10:57 -!- plainhao [~plainhao@mail.xbiotica.com] has joined #go-nuts
10:57 -!- lmoura [~lauromour@187.58.108.184] has quit [Ping timeout: 272 seconds]
10:58 < nsf> I have a quote of the John Carmack about that: "Crazy template
meta programming also strikes me as a bad, bad idea.  Performance is NOT a
justification to do THAT." (c) John Carmack
10:58 < nsf> really..  THAT!
10:58 < nsf> :)
10:59 < nsf> good old parser generators are better than boost
10:59 < nsf> boost::spirit*
11:00 -!- General1337 [~support@71-84-244-55.dhcp.gldl.ca.charter.com] has joined
#go-nuts
11:01 < photron> nsf: i like simple syntax where i can write my parser by
hand in recursive descent fashion :)
11:03 < nsf> well, that's your opinion
11:03 -!- General13372 [~support@71-84-244-55.dhcp.gldl.ca.charter.com] has quit
[Ping timeout: 276 seconds]
11:03 < nsf> personally I don't think that templates are good for the
language at all
11:05 < photron> templates as c++ has them are too powerful and complex,
people can do too much crazy stuff that is hard to understand
11:05 -!- ucasano [~ucasano@95.231.79.71] has quit [Quit: ucasano]
11:05 < nsf> like boost::spirit
11:05 < nsf> :)
11:05 < photron> exactly
11:07 < photron> on the other hand generic typesafe containers are nice to
have
11:07 < nsf> true
11:07 < nsf> actually that's what I want to see in Go
11:07 < nsf> an ability to define those
11:07 -!- lmoura__ [~lauromour@187.112.26.135] has joined #go-nuts
11:07 < nsf> but I'm not sure that it's a good solution also
11:07 < nsf> for example having generic functions is nice too
11:08 < nsf> like max min
11:09 < nsf> and I don't know the system that is strict enough to disallow
stupidity and yet being able to provide needed flexibility
11:09 -!- lmoura_ [~lauromour@187.112.23.95] has quit [Ping timeout: 252 seconds]
11:10 -!- Shyde [~shyde@HSI-KBW-078-043-070-132.hsi4.kabel-badenwuerttemberg.de]
has joined #go-nuts
11:28 -!- itzik [~quassel@IGLD-84-228-206-237.inter.net.il] has joined #go-nuts
11:30 -!- itzik [~quassel@IGLD-84-228-206-237.inter.net.il] has quit [Remote host
closed the connection]
11:32 -!- eiffelqiu [~eiffel@119.251.53.193] has joined #go-nuts
11:41 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has joined #go-nuts
11:51 -!- lmoura_ [~lauromour@187.113.96.148] has joined #go-nuts
11:52 -!- lmoura__ [~lauromour@187.112.26.135] has quit [Ping timeout: 240
seconds]
11:54 -!- virtualsue [~chatzilla@nat/cisco/x-synlzsrtwjidygxi] has quit [Ping
timeout: 240 seconds]
11:56 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 272 seconds]
12:02 -!- ExtraSpice [~XtraSpice@88.118.32.225] has joined #go-nuts
12:07 -!- navigator [~navigator@p5489250E.dip.t-dialin.net] has joined #go-nuts
12:21 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
12:22 < talin> is anyone doing OS development with Go yet?
12:22 < talin> and does it support inline assembly?
12:24 < talin> also, are there any plans of rewriting Go in Go?
12:27 < nsf> no, no, maybe
12:27 < nsf> (imho)
12:28 < mpl> about 1), isn't there a small example of a kernel written in Go
in the core libs?
12:28 < mpl> I thought I had read something like that
12:30 < mpl> ah, found it
12:30 < mpl> http://golang.org/pkg/runtime/tiny/
12:30 < talin> thank you
12:32 -!- snearch [~snearch@f053004083.adsl.alicedsl.de] has joined #go-nuts
12:38 -!- scm [justme@d070207.adsl.hansenet.de] has quit [Ping timeout: 276
seconds]
12:38 -!- scm [justme@d178037.adsl.hansenet.de] has joined #go-nuts
12:43 -!- JimmyRcom [~jimmy@76.201.179.216] has joined #go-nuts
12:48 -!- skejoe [~skejoe@188.114.142.231] has joined #go-nuts
12:50 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Ping timeout: 265 seconds]
12:52 -!- andrebq [~chatzilla@189.107.167.117] has joined #go-nuts
12:52 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Ping timeout: 246
seconds]
12:57 -!- virtualsue [~chatzilla@nat/cisco/x-dfalxzgjlrxthlcv] has joined #go-nuts
12:58 -!- gnuvince_ [~vince@70.35.168.205] has quit [Ping timeout: 252 seconds]
12:58 -!- gnuvince_ [~vince@70.35.168.205] has joined #go-nuts
13:01 -!- evilhack1rdude [~stephan@evilhackerdu.de] has left #go-nuts []
13:01 -!- lmoura_ [~lauromour@187.113.96.148] has quit [Read error: Connection
reset by peer]
13:03 -!- lmoura_ [~lauromour@187.59.119.243] has joined #go-nuts
13:03 -!- niemeyer [~niemeyer@200-203-56-246.pltce701.dsl.brasiltelecom.net.br]
has joined #go-nuts
13:06 -!- andrebq_ [~chatzilla@189.107.167.117] has joined #go-nuts
13:07 -!- andrebq__ [~chatzilla@189.107.167.117] has joined #go-nuts
13:09 -!- andrebq [~chatzilla@189.107.167.117] has quit [Ping timeout: 264
seconds]
13:10 -!- andrebq__ [~chatzilla@189.107.167.117] has left #go-nuts []
13:11 -!- andrebq_ [~chatzilla@189.107.167.117] has quit [Ping timeout: 264
seconds]
13:11 -!- andrebq [~chatzilla@189.107.167.117] has joined #go-nuts
13:13 -!- lmoura_ [~lauromour@187.59.119.243] has quit [Read error: Connection
reset by peer]
13:14 -!- lmoura_ [~lauromour@187.59.119.217] has joined #go-nuts
13:20 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 240 seconds]
13:21 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3]
13:26 -!- andrebq [~chatzilla@189.107.167.117] has quit [Ping timeout: 264
seconds]
13:29 -!- macroron [~ron@c-98-242-168-49.hsd1.fl.comcast.net] has joined #go-nuts
13:30 -!- Shyde [~shyde@HSI-KBW-078-043-070-132.hsi4.kabel-badenwuerttemberg.de]
has quit [Quit: Shyde]
13:30 -!- kanru [~kanru@118-160-165-166.dynamic.hinet.net] has joined #go-nuts
13:46 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has joined
#go-nuts
13:49 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
13:49 -!- eiffelqiu [~eiffel@119.251.53.193] has left #go-nuts []
13:50 -!- talin [daghenri@lynx.stud.ntnu.no] has quit [Quit: bbl]
14:00 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
14:06 -!- ronnyy [~quassel@2001:6f8:12c6:2a:224:1dff:fed7:9541] has quit [Remote
host closed the connection]
14:09 -!- mattikus [~mattikus@ip24-250-73-154.br.br.cox.net] has quit [Remote host
closed the connection]
14:10 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has joined #go-nuts
14:14 -!- ronnyy [~quassel@2001:6f8:12c6:2a:224:1dff:fed7:9541] has joined
#go-nuts
14:21 -!- virtualsue [~chatzilla@nat/cisco/x-dfalxzgjlrxthlcv] has quit [Ping
timeout: 252 seconds]
14:21 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
14:22 -!- artefon [~thiago@189.107.129.61] has joined #go-nuts
14:25 -!- major_majors [~major_maj@c-68-40-195-246.hsd1.mi.comcast.net] has joined
#go-nuts
14:27 -!- virtualsue [~chatzilla@nat/cisco/x-lllosvtcvzdhckac] has joined #go-nuts
14:35 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller,
Faster, Easier.  http://miranda-im.org]
14:35 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
14:43 -!- snearch [~snearch@f053004083.adsl.alicedsl.de] has quit [Quit:
Verlassend]
14:43 -!- skejoe [~skejoe@188.114.142.231] has quit [Quit: leaving]
14:52 -!- Guest26334 [~none@209-20-72-61.slicehost.net] has quit [Ping timeout:
240 seconds]
14:55 -!- rbetts [~rbetts@173-166-80-33-newengland.hfc.comcastbusiness.net] has
joined #go-nuts
14:58 -!- gigatropolis [~chatzilla@c-76-102-52-104.hsd1.ca.comcast.net] has quit
[Quit: ChatZilla 0.9.86 [Firefox 3.6.8/20100723084720]]
15:01 -!- artefon [~thiago@189.107.129.61] has quit [Remote host closed the
connection]
15:03 -!- drhodes_ [~none@207.3.149.84] has joined #go-nuts
15:04 -!- ExtraSpice [~XtraSpice@88.118.32.225] has quit [Quit: Leaving]
15:08 -!- macroron [~ron@c-98-242-168-49.hsd1.fl.comcast.net] has quit [Quit:
Leaving]
15:11 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
15:14 -!- rbetts [~rbetts@173-166-80-33-newengland.hfc.comcastbusiness.net] has
quit [Quit: rbetts]
15:15 -!- jmettraux [~jmettraux@PPPbm5391.kanagawa-ip.dti.ne.jp] has quit [Remote
host closed the connection]
15:15 -!- felipe [~felipe@my.nada.kth.se] has joined #go-nuts
15:15 -!- Venom_X [~pjacobs@74.61.90.217] has joined #go-nuts
15:16 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 276 seconds]
15:17 -!- awidegreen [~quassel@62.176.237.78] has joined #go-nuts
15:17 -!- rbetts [~rbetts@173-166-80-33-newengland.hfc.comcastbusiness.net] has
joined #go-nuts
15:26 -!- lmoura_ [~lauromour@187.59.119.217] has quit [Read error: Connection
reset by peer]
15:27 -!- skelterjohn [~jasmuth@c-68-32-232-108.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
15:29 -!- lmoura_ [~lauromour@187.113.125.73] has joined #go-nuts
15:33 -!- femtoo [~femto@95-89-248-51-dynip.superkabel.de] has joined #go-nuts
15:36 -!- Xurix [~Luixsia@AToulouse-254-1-7-185.w83-203.abo.wanadoo.fr] has joined
#go-nuts
15:37 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has joined #go-nuts
15:41 -!- awidegreen [~quassel@62.176.237.78] has quit [Remote host closed the
connection]
15:41 -!- rejb [~rejb@p54B64EC1.dip.t-dialin.net] has joined #go-nuts
15:42 -!- rejb [~rejb@p54B64EC1.dip.t-dialin.net] has quit [Changing host]
15:42 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
15:42 -!- awidegreen [~quassel@62.176.237.78] has joined #go-nuts
15:43 -!- kanru [~kanru@118-160-165-166.dynamic.hinet.net] has quit [Ping timeout:
272 seconds]
15:51 -!- ucasano [~ucasano@host153-182-static.227-95-b.business.telecomitalia.it]
has joined #go-nuts
15:54 -!- eikenberry [~jae@ivanova.zhar.net] has joined #go-nuts
16:00 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has quit [Read error:
Connection reset by peer]
16:06 -!- ikaros [~ikaros@188.107.208.221] has joined #go-nuts
16:09 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined
#go-nuts
16:12 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Client
Quit]
16:14 < plexdev> http://is.gd/f2G6e by [Ian Lance Taylor] in go/test/ --
test: Match gccgo error messages.
16:15 -!- artefon [~thiagon@150.164.2.20] has joined #go-nuts
16:16 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has joined #go-nuts
16:18 -!- major_majors [~major_maj@c-68-40-195-246.hsd1.mi.comcast.net] has quit
[Quit: major_majors]
16:21 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 240 seconds]
16:39 -!- ikaros_ [~ikaros@2001:41b8:9bf:fe04:1403:ebff:fecf:d115] has joined
#go-nuts
16:40 -!- ikaros [~ikaros@188.107.208.221] has quit [Ping timeout: 265 seconds]
16:40 -!- wrtp [~rog@92.17.45.134] has quit [Quit: wrtp]
16:43 -!- MizardX [MizardX@unaffiliated/mizardx] has joined #go-nuts
16:48 -!- andrebq [~chatzilla@189.107.167.117] has joined #go-nuts
16:49 -!- andrebq [~chatzilla@189.107.167.117] has quit [Client Quit]
16:49 -!- tvw [~tv@212.79.9.150] has quit [Remote host closed the connection]
17:04 -!- wrtp [~rog@92.17.45.134] has joined #go-nuts
17:05 -!- wrtp [~rog@92.17.45.134] has quit [Client Quit]
17:10 -!- major_majors [~major_maj@99.66.69.175] has joined #go-nuts
17:10 -!- major_majors [~major_maj@99.66.69.175] has left #go-nuts []
17:12 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has quit [Remote host closed the
connection]
17:12 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has quit [Ping timeout: 276
seconds]
17:12 -!- ronnyy [~quassel@2001:6f8:12c6:2a:224:1dff:fed7:9541] has quit [Remote
host closed the connection]
17:12 -!- major_majors_ [~major_maj@adsl-99-118-114-182.dsl.sfldmi.sbcglobal.net]
has joined #go-nuts
17:13 -!- ronnyy [~quassel@2001:6f8:12c6:2a:224:1dff:fed7:9541] has joined
#go-nuts
17:16 -!- enherit [~enherit@cpe-98-149-170-48.socal.res.rr.com] has joined
#go-nuts
17:17 -!- virtualsue [~chatzilla@nat/cisco/x-lllosvtcvzdhckac] has quit [Ping
timeout: 260 seconds]
17:21 -!- major_majors [~major_maj@adsl-99-118-114-182.dsl.sfldmi.sbcglobal.net]
has quit [Quit: major_majors]
17:22 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
17:23 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has quit
[Quit: Ex-Chat]
17:24 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has joined #go-nuts
17:34 -!- Fish [~Fish@9fans.fr] has joined #go-nuts
17:36 -!- wrtp [~rog@92.17.45.134] has joined #go-nuts
17:37 < nickaugust> hey "func Search (pattern *Regexp) <-chan string {"
is throwing "undefined: Regexp".  How do I define a funciton that takes a *Regexp
value as an argument?
17:38 < exch> reg *regexp.Regexp
17:38 < nickaugust> ah :)
17:38 < nickaugust> thx exch
17:38 -!- \toothrot [~mux@71-8-117-228.dhcp.ftwo.tx.charter.com] has joined
#go-nuts
17:39 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
17:39 -!- forgey_ [brook@seahawk.ript.net] has joined #go-nuts
17:40 -!- GoBIR_ [~gobir@res-128-61-89-71.res.gatech.edu] has joined #go-nuts
17:40 -!- major_majors [~major_maj@adsl-99-118-114-182.dsl.sfldmi.sbcglobal.net]
has joined #go-nuts
17:41 -!- wrtp [~rog@92.17.45.134] has quit [Client Quit]
17:41 -!- htoothrot [~mux@71-8-117-228.dhcp.ftwo.tx.charter.com] has quit [Quit:
here we are]
17:41 -!- GoBIR [~gobir@res-128-61-89-71.res.gatech.edu] has quit [Remote host
closed the connection]
17:41 -!- Fish9 [~Fish@86.65.182.207] has quit [Remote host closed the connection]
17:44 -!- sacho [~sacho@213.91.244.15] has quit [Quit: Ex-Chat]
17:45 -!- forgey [brook@seahawk.ript.net] has quit [Ping timeout: 255 seconds]
17:47 -!- peterdn [~peterdn@host81-159-238-152.range81-159.btcentralplus.com] has
quit [Quit: ChatZilla 0.9.86-rdmsoft [XULRunner 1.9.2/20100222071121]]
17:49 -!- awidegreen [~quassel@62.176.237.78] has quit [Remote host closed the
connection]
17:49 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has quit [Ping timeout: 276
seconds]
17:49 < MizardX> Serious bug in syscall/syscall_windows.go, line 396:
http://golang.org/src/pkg/syscall/syscall_windows.go#L390 ...  I think you can
spot it
17:51 -!- awidegreen [~quassel@62.176.237.78] has joined #go-nuts
17:51 -!- MaksimBurnin [~max@44.188-224-87.telenet.ru] has joined #go-nuts
17:51 -!- awidegreen [~quassel@62.176.237.78] has quit [Remote host closed the
connection]
17:52 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has joined #go-nuts
17:54 -!- awidegreen [~quassel@62.176.237.78] has joined #go-nuts
17:55 -!- peterdn [~peterdn@host81-159-238-152.range81-159.btcentralplus.com] has
joined #go-nuts
17:55 < nickaugust> MizardX: hey ^(?=.*arg) doesnt seem to be matching.
does go's regexp package support it?
17:55 -!- major_majors [~major_maj@adsl-99-118-114-182.dsl.sfldmi.sbcglobal.net]
has quit [Quit: major_majors]
17:56 < MizardX> nickaugust: Wrong channel, and no.  Go regex is very
limiter at the moment.
17:56 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
17:56 < MizardX> limited*
17:57 < nickaugust> MizardX: is it possible to do the and search we talked
about with gos regex?
17:57 -!- luruke [~luruke@151.53.37.147] has joined #go-nuts
17:58 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has joined #go-nuts
17:58 < MizardX> nickaugust: No. You have to split it up in several calls.
17:59 < nickaugust> MizardX: ok thanks for your help
18:00 -!- \toothrot [~mux@71-8-117-228.dhcp.ftwo.tx.charter.com] has quit [Excess
Flood]
18:01 -!- htoothrot [~mux@71-8-117-228.dhcp.ftwo.tx.charter.com] has joined
#go-nuts
18:04 -!- Sseur [~david@mic92-12-88-161-108-143.fbx.proxad.net] has joined
#go-nuts
18:06 -!- mattikus [~mattikus@ip24-250-73-154.br.br.cox.net] has joined #go-nuts
18:12 -!- awidegreen [~quassel@62.176.237.78] has quit [Remote host closed the
connection]
18:13 -!- ucasano [~ucasano@host153-182-static.227-95-b.business.telecomitalia.it]
has quit [Quit: ucasano]
18:13 -!- awidegreen [~quassel@62.176.237.78] has joined #go-nuts
18:13 -!- major_majors [~major_maj@173-10-44-57-Michigan.hfc.comcastbusiness.net]
has joined #go-nuts
18:14 -!- major_majors [~major_maj@173-10-44-57-Michigan.hfc.comcastbusiness.net]
has quit [Read error: Connection reset by peer]
18:14 -!- major_majors [~major_maj@173-10-44-57-Michigan.hfc.comcastbusiness.net]
has joined #go-nuts
18:16 -!- sacho [~sacho@95-42-66-249.btc-net.bg] has joined #go-nuts
18:22 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has quit [Quit:
skelterjohn]
18:30 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has joined #go-nuts
18:31 -!- mattikus [~mattikus@ip24-250-73-154.br.br.cox.net] has quit [Remote host
closed the connection]
18:35 -!- Sseur [~david@mic92-12-88-161-108-143.fbx.proxad.net] has left #go-nuts
[]
18:36 -!- Sseur [~david@mic92-12-88-161-108-143.fbx.proxad.net] has joined
#go-nuts
18:36 -!- gnuvince [~vince@70.35.173.114] has quit [Ping timeout: 272 seconds]
18:37 -!- Sseur [~david@mic92-12-88-161-108-143.fbx.proxad.net] has left #go-nuts
[]
18:37 -!- \\localhost [~david@mic92-12-88-161-108-143.fbx.proxad.net] has joined
#go-nuts
18:38 < \\localhost> Hello there, i would like to know if someone can post a
piece of code in go to study it, i would like to see an example of IPC by using
ForkExec , and a pipe for communicatoin . Thanks you
18:38 -!- gnuvince [~vince@70.35.173.114] has joined #go-nuts
18:41 -!- joc1985 [~jose@216.64.28.214] has joined #go-nuts
18:42 < joc1985> hi all, quick question when using flag.parse is there a way
to get the command line arguments without a name?
18:43 < joc1985> that is i want to run program.out COMMAND wihtout having to
do program.out -name COMMAND
18:43 < i__> use os.Args
18:44 < anticw> or flag.Args
18:44 < joc1985> i've looked in the flags package but can't find anything to
that effect
18:44 < anticw> depending if you use flags as well
18:44 < joc1985> oh thanks!
18:44 < joc1985> i'll give that a shot
18:44 < anticw> godos os Args
18:45 < anticw> godoc os Args
18:45 * anticw hides
18:47 < joc1985> worked like a charm thanks
18:48 -!- luruke [~luruke@151.53.37.147] has quit [Quit: Leaving]
18:52 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has quit [Remote
host closed the connection]
18:58 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by
peer]
19:04 -!- peterdn [~peterdn@host81-159-238-152.range81-159.btcentralplus.com] has
quit [Read error: Connection reset by peer]
19:05 -!- peterdn_ [~peterdn@host86-166-21-20.range86-166.btcentralplus.com] has
joined #go-nuts
19:12 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
19:12 < joc1985> is there a way to express this for i :=int64(0) ;
i<number2Gen;i++{ I need to loop on a int64 not an int but that gives me an
error
19:13 -!- stalled [~stalled@unaffiliated/stalled] has quit [Read error: Connection
reset by peer]
19:13 < exch> what kind of error?
19:14 < joc1985> cannot use i (type int64) as type int in function argument
19:14 < exch> your example should work to turn i into int64.
19:14 < joc1985> that's what I thought too
19:14 < exch> If the funciton you pass i into doesn't accept int64, you have
a problem
19:14 < exch> *function
19:15 < joc1985> ah crap the rror was in my intVector.Push
19:15 < joc1985> *slaps forehead Thanks!
19:15 < exch> heh
19:19 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Read error: Connection
reset by peer]
19:20 -!- stalled [~stalled@unaffiliated/stalled] has joined #go-nuts
19:20 -!- napsy [~luka@88.200.96.18] has quit [Read error: Operation timed out]
19:23 -!- peterdn [~peterdn@host86-166-21-20.range86-166.btcentralplus.com] has
joined #go-nuts
19:25 -!- piyushmishra [~piyushmis@117.200.228.71] has quit [Ping timeout: 276
seconds]
19:26 -!- mattikus [~mattikus@ip24-250-73-154.br.br.cox.net] has joined #go-nuts
19:26 -!- peterdn_ [~peterdn@host86-166-21-20.range86-166.btcentralplus.com] has
quit [Ping timeout: 260 seconds]
19:28 -!- \\localhost [~david@mic92-12-88-161-108-143.fbx.proxad.net] has quit
[Ping timeout: 265 seconds]
19:30 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has quit [Quit:
skelterjohn]
19:32 -!- \\localhost [~david@mic92-12-88-161-108-143.fbx.proxad.net] has joined
#go-nuts
19:34 -!- peterdn [~peterdn@host86-166-21-20.range86-166.btcentralplus.com] has
quit [Quit: ChatZilla 0.9.86-rdmsoft [XULRunner 1.9.2/20100222071121]]
19:38 -!- piyushmishra [~piyushmis@117.200.224.134] has joined #go-nuts
19:42 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts
19:43 -!- tautologico [~chema@189.71.43.13] has joined #go-nuts
19:43 -!- markcol [~markcol@nat60-75.kcls.org] has joined #go-nuts
19:47 -!- markcol [~markcol@nat60-75.kcls.org] has left #go-nuts []
19:49 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has quit [Ping timeout: 276
seconds]
19:50 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has joined #go-nuts
19:53 -!- MizardX [MizardX@unaffiliated/mizardx] has quit [Quit: off]
19:56 -!- jhawk28 [~jhawk28@user-142gfte.cable.mindspring.com] has joined #go-nuts
20:01 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:e8b1:95f6:331c:8a76] has quit
[Quit: Leaving.]
20:02 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 276 seconds]
20:03 -!- peterdn [~peterdn@host86-166-21-20.range86-166.btcentralplus.com] has
joined #go-nuts
20:03 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has quit [Ping timeout: 240
seconds]
20:06 -!- \\localhost [~david@mic92-12-88-161-108-143.fbx.proxad.net] has quit
[Ping timeout: 246 seconds]
20:10 -!- \\localhost [~david@mic92-12-88-161-108-143.fbx.proxad.net] has joined
#go-nuts
20:16 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
20:20 -!- joc1985 [~jose@216.64.28.214] has quit [Quit: Leaving]
20:55 < nickaugust> how do I access data piped into my go program?  ie: echo
"find me!" | 8.out
20:56 < KirkMcDonald> nickaugust: os.Stdin
20:56 < nickaugust> KirkMcDonald: thx
20:57 < exch> nickaugust: specifically, like this
http://github.com/jteeuwen/gvm/blob/master/gvm/main.go#L32
20:57 < nickaugust> exch: thx :)
20:57 -!- femtoo [~femto@95-89-248-51-dynip.superkabel.de] has quit [Quit:
Leaving]
21:02 -!- \\localhost [~david@mic92-12-88-161-108-143.fbx.proxad.net] has quit
[Ping timeout: 246 seconds]
21:06 -!- Fish [~Fish@9fans.fr] has quit [Remote host closed the connection]
21:10 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has joined
#go-nuts
21:16 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
21:17 -!- major_majors [~major_maj@173-10-44-57-Michigan.hfc.comcastbusiness.net]
has quit [Quit: major_majors]
21:20 < plexdev> http://is.gd/f33eP by [Russ Cox] in 4 subdirs of
go/src/cmd/ -- gc: more accurate line numbers for ATEXT
21:21 -!- scm_ [justme@d057103.adsl.hansenet.de] has joined #go-nuts
21:21 -!- scm [justme@d178037.adsl.hansenet.de] has quit [Ping timeout: 276
seconds]
21:25 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts
21:34 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
21:35 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has quit [Ping
timeout: 255 seconds]
21:38 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has joined
#go-nuts
21:50 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Quit:
slashus2]
21:52 < plexdev> http://is.gd/f35FV by [Robert Griesemer] in go/src/cmd/gc/
-- fix build
21:59 -!- ukai [~ukai@nat/google/x-dibyewoipbnheqdz] has quit [Ping timeout: 258
seconds]
22:00 -!- ukai [~ukai@nat/google/x-znmfwhuuomwjoimq] has joined #go-nuts
22:04 -!- major_majors [~major_maj@173-10-44-57-Michigan.hfc.comcastbusiness.net]
has joined #go-nuts
22:07 < nickaugust> can i get the file name of the go program being run?  so
if I copy the binary to a different file name the value will change?
22:08 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
22:08 < bartbes> the first command line argument
22:08 < exch> os.Args[0] contains the full path of the current running
binary
22:08 -!- navigator [~navigator@p5489250E.dip.t-dialin.net] has quit [Quit:
WeeChat 0.3.3]
22:09 < nickaugust> oh yeah!  i knew that...  thanks bartbes, exch
22:09 < anticw> path.Split also useful if you're working with that
22:09 < nickaugust> good stuff..  thanks anticw
22:09 < nsf> exch: not really a full path
22:10 < exch> well, the invocation path used
22:10 < anticw> how it was invoked
22:10 < nsf> yep
22:10 < anticw> you still usually expect the last component to be something
you can deal with
22:11 < nsf> has anyone tried gocode renaming stuff?
22:12 < nsf> i guess not :(
22:12 < exch> nope
22:15 < bartbes> heh, I would, if only I had coded go recently
22:15 < bartbes> (yeah, it's that bad)
22:16 < exch> shame on ye
22:18 -!- Netsplit *.net <-> *.split quits: enherit
22:18 -!- Netsplit over, joins: enherit
22:19 < mpl> nsf: out of curiosity, is your go completion thingie for vim
something that's already been done for other languages on vim?  I know IDE's like
Eclipse have that kind of stuff, but I had never seen that in "simple" text
editors before.
22:19 < nsf> yes
22:19 < nsf> although I've discovered that fact only after I started that
work
22:20 < nsf> there is a thing called rsense
22:20 < nsf> http://cx4a.org/software/rsense/
22:20 < nsf> and other things from the same author here
22:20 < nsf> like gccsense
22:20 < mpl> kthx
22:20 < nsf> they use the similar scheme
22:21 < nsf> but that if we're talking about external app integration to vim
22:21 < nsf> other than that vim has autocompletion capabilites for a long
time
22:21 -!- major_majors [~major_maj@173-10-44-57-Michigan.hfc.comcastbusiness.net]
has quit [Quit: major_majors]
22:21 < nsf> capabilities*
22:21 < mpl> yeah
22:22 < mpl> but only of filenames and such.
22:22 < nsf> no, not just that, vim has generic omnicompletion scheme
22:22 < nsf> and you can customize autocompletions using that sort of API in
vim script
22:22 < mpl> oh
22:23 < mpl> didn't know that.
22:23 < nsf> basically it's a callback that is being called when you are
trying to autocomplete something :)
22:23 < nsf> callback is called omnifunc
22:23 < mpl> I'm not genuinely interested as I use acme, but as a former and
occasional vim user it's good to know :)
22:23 < nsf> :)
22:34 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has joined
#go-nuts
22:34 -!- niemeyer [~niemeyer@200-203-56-246.pltce701.dsl.brasiltelecom.net.br]
has quit [Ping timeout: 265 seconds]
22:37 -!- jhawk28 [~jhawk28@user-142gfte.cable.mindspring.com] has quit [Read
error: Operation timed out]
22:39 < nsf>
http://github.com/nsf/gocode/commit/b89be8ea93034d5c70ff7784c60736e9ff803799
22:39 < nsf> renamed term 'module' to term 'package' using gocode rename :)
22:42 < nsf> I think I will make a tool that does renaming only
22:43 < nsf> for those who don't use vim
22:45 -!- kanru [~kanru@118-160-163-20.dynamic.hinet.net] has joined #go-nuts
22:49 -!- photron [~photron@port-92-201-51-193.dynamic.qsc.de] has quit [Ping
timeout: 258 seconds]
22:59 < i__> nsf, how is that different from gofmt rewrite rules?
23:00 -!- General13372 [~support@71-84-244-55.dhcp.gldl.ca.charter.com] has joined
#go-nuts
23:00 < nsf> gofmt rewrite rules operate on AST
23:00 -!- Xurix [~Luixsia@AToulouse-254-1-7-185.w83-203.abo.wanadoo.fr] has quit
[Quit: Leaving]
23:00 < nsf> the do understand the difference between comment and an
identifier for example
23:01 < nsf> gocode rename operates using full semantic information
23:01 < i__> neat, thanks
23:01 -!- Venom_X [~pjacobs@74.61.90.217] has quit [Quit: Venom_X]
23:01 -!- Netsplit *.net <-> *.split quits: enherit
23:01 -!- awidegreen [~quassel@62.176.237.78] has quit [Remote host closed the
connection]
23:01 -!- Netsplit over, joins: enherit
23:02 -!- General1337 [~support@71-84-244-55.dhcp.gldl.ca.charter.com] has quit
[Ping timeout: 240 seconds]
23:02 < nickaugust> so when im returning two values, say results <-chan
string, err os.Error, and i catch an error how do I return?  return nil, err?
23:02 < nsf> well, it means that if you have two types
23:02 < nsf> and both have method named "X"
23:02 < nsf> gocode is able to rename only one of them
23:02 < nsf> without touching the other
23:02 < nsf> gofmt will rename both
23:03 < nsf> nickaugust: yes
23:03 < nsf> nil is a valid channel type value
23:04 -!- ikaros_ [~ikaros@2001:41b8:9bf:fe04:1403:ebff:fecf:d115] has quit [Quit:
Leave the magic to Houdini]
23:04 < exch> If both are named return values, simply using 'return' will
suffice.
23:05 < cbeck> In such cases it seems wise to be explicit that you're
returning nil
23:12 -!- kanru [~kanru@118-160-163-20.dynamic.hinet.net] has quit [Ping timeout:
240 seconds]
23:17 -!- RobertLJ_ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has joined
#go-nuts
23:18 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has quit [Ping
timeout: 245 seconds]
23:19 -!- Project_AFK [~Marvin@82.84.97.104] has quit [Ping timeout: 258 seconds]
23:19 -!- l00t [~i-i3id3r_@189.105.86.140] has quit [Remote host closed the
connection]
23:23 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
23:33 -!- dju [dju@fsf/member/dju] has joined #go-nuts
23:33 -!- dju_ [dju@fsf/member/dju] has quit [Read error: Connection reset by
peer]
23:34 -!- luruke [~luruke@151.53.14.252] has joined #go-nuts
23:34 -!- piyushmishra [~piyushmis@117.200.224.134] has quit [Ping timeout: 252
seconds]
23:48 -!- piyushmishra [~piyushmis@117.200.224.134] has joined #go-nuts
--- Log closed Fri Sep 10 00:00:06 2010