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

--- Log opened Sun Jul 10 00:00:56 2011
00:02 < fvbommel> Usually not, no.
00:03 -!- shvntr [~shvntr@59.35.238.25] has quit [Ping timeout: 276 seconds]
00:04 -!- shvntr [~shvntr@113.84.88.216] has joined #go-nuts
00:05 < fvbommel> In real program it usually only happens if you have a
goroutine that performs a long calculation.
00:05 < fvbommel> Or that has a bug and gets stuck in an infinite loop, I
suppose :).
00:06 < tav> hmz
00:06 < tav> anyone know what the aim is behind the new exp/template package
?
00:10 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Quit:
hcatlin]
00:16 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has quit [Remote host
closed the connection]
00:16 -!- meling [~meling@12.238.254.29] has joined #go-nuts
00:27 -!- cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has joined
#go-nuts
00:29 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has joined #go-nuts
00:34 -!- fotang [~mike@41.220.69.11] has joined #go-nuts
00:37 -!- Wiz126 [Wiz@h229.120.232.68.dynamic.ip.windstream.net] has quit [Ping
timeout: 252 seconds]
00:37 -!- Wiz126 [Wiz@h229.120.232.68.dynamic.ip.windstream.net] has joined
#go-nuts
00:38 <@adg> str1ngs: in what sense?
00:41 < str1ngs> adg: ie I want install to a directory and tarball
00:43 < str1ngs> the way it works now GOPATH installs to the root of the
first entry found.  but if there are no src/pkg/cmds it skips it and installs to
the next one found
00:43 < str1ngs> unless I'm doing it wrong?
00:44 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has quit [Remote host
closed the connection]
00:55 -!- dRbiG [drbig@unhallowed.pl] has quit [Ping timeout: 260 seconds]
00:58 -!- dRbiG [~p@unhallowed.pl] has joined #go-nuts
00:59 -!- brad_ [~brad@cpe-098-026-120-155.nc.res.rr.com] has joined #go-nuts
01:02 -!- Tv__ [~Tv__@cpe-76-168-227-45.socal.res.rr.com] has quit [Ping timeout:
252 seconds]
01:02 -!- dRbiG [~p@unhallowed.pl] has quit [Ping timeout: 260 seconds]
01:06 <@adg> it should install packages to the first GOPAT
01:06 <@adg> if they're not present on the system
01:08 -!- erus` [~chatzilla@host86-186-77-184.range86-186.btcentralplus.com] has
quit [Remote host closed the connection]
01:09 < str1ngs> even if the GOPATH is empty?
01:09 < str1ngs> I mean the GOPATH entry has no sub directories
01:17 <@adg> str1ngs: it should do
01:17 <@adg> it should mkdir src
01:17 <@adg> if not, that's a bug
01:18 < str1ngs> ok I'll look into it more.  and make an issue
01:22 <@adg> thanks
01:28 -!- wallerdev [~wallerdev@72.44.102.30] has joined #go-nuts
01:31 < angasule> if I have a "conn net.Conn" and I do "defer conn.Close()"
then that means that conn will stay in memory until the defer is executed, right?
Also, is it safe to call Close on an already closed connection?  (I'm guessing it
is...)
01:32 < yebyen> check Conn.Close() docs, does it have any chance to throw a
fit?  most likely it can just return error status, which you would ignore
01:32 < yebyen> i don't think you can have an error while closing
01:36 < angasule> I really love gofmt...
01:36 -!- Nitro [~Nitro@unaffiliated/nitro] has joined #go-nuts
01:53 -!- dreadlorde [dreadlorde@c-68-42-82-10.hsd1.mi.comcast.net] has joined
#go-nuts
01:56 <@adg> angasule: the convention is to allow closing more than once
01:56 <@adg> angasule: also, close doesn't release any memory, the gc does
that
01:56 <@adg> angasule: closing a net.Conn closes the underlying socket
(mostly), which is definitely something you should do
01:58 -!- Zoopee [alsbergt@zoopee.org] has quit [Read error: Operation timed out]
02:00 -!- wallerdev [~wallerdev@72.44.102.30] has quit [Quit: wallerdev]
02:03 < angasule> adg: oh, yeah, I'm just thinking that I should be more
careful about where I put the defer
02:11 -!- t04xey [62fb5183@gateway/web/freenode/ip.98.251.81.131] has joined
#go-nuts
02:12 -!- JimPeak [~JimPeak@modemcable022.205-56-74.mc.videotron.ca] has joined
#go-nuts
02:18 -!- srid [~srid@unaffiliated/srid] has joined #go-nuts
02:23 -!- fotang [~mike@41.220.69.11] has quit [Ping timeout: 255 seconds]
02:26 -!- t04xey [62fb5183@gateway/web/freenode/ip.98.251.81.131] has quit [Quit:
Page closed]
02:31 -!- Natch| [~natch@178.73.216.49] has quit [Ping timeout: 264 seconds]
02:40 -!- espeed [~espeed@63.246.231.57] has joined #go-nuts
02:44 -!- Natch| [~natch@178.73.218.39] has joined #go-nuts
02:55 -!- xash [~xash@d025025.adsl.hansenet.de] has quit [Read error: Connection
reset by peer]
02:59 -!- xash [~xash@d075000.adsl.hansenet.de] has joined #go-nuts
03:06 -!- Nitro [~Nitro@unaffiliated/nitro] has quit [Quit: This computer has gone
to sleep]
03:07 -!- JimPeak [~JimPeak@modemcable022.205-56-74.mc.videotron.ca] has quit
[Quit: Leaving.]
03:09 -!- xash [~xash@d075000.adsl.hansenet.de] has quit [Quit: Lost terminal]
03:11 -!- brad_ [~brad@cpe-098-026-120-155.nc.res.rr.com] has quit [Read error:
Connection reset by peer]
03:12 -!- brad_ [~brad@cpe-098-026-120-155.nc.res.rr.com] has joined #go-nuts
03:21 -!- ccc1 [~Adium@220-136-29-155.dynamic.hinet.net] has joined #go-nuts
03:22 -!- JimPeak [~JimPeak@modemcable022.205-56-74.mc.videotron.ca] has joined
#go-nuts
03:23 -!- opt [~opt@S0106001346b791ef.vc.shawcable.net] has quit [Quit: Leaving]
03:23 -!- smw [~stephen@unaffiliated/smw] has quit [Quit: Leaving]
03:30 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has quit [Remote host
closed the connection]
04:04 -!- rejb [~rejb@unaffiliated/rejb] has quit [Disconnected by services]
04:05 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
04:06 -!- angasule [~angasule@190.2.33.49] has quit [Ping timeout: 260 seconds]
04:16 -!- kergoth_ [~kergoth@ip24-251-173-232.ph.ph.cox.net] has joined #go-nuts
04:18 -!- zerofluid [~zerofluid@ip68-96-107-110.lv.lv.cox.net] has joined #go-nuts
04:23 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has joined #go-nuts
04:32 -!- ccc1 [~Adium@220-136-29-155.dynamic.hinet.net] has left #go-nuts []
04:36 -!- dreadlorde [dreadlorde@c-68-42-82-10.hsd1.mi.comcast.net] has quit [Ping
timeout: 258 seconds]
04:37 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
04:39 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
05:01 -!- Cobi [~Cobi@2002:1828:88fb:0:aede:48ff:febe:ef03] has quit [Ping
timeout: 260 seconds]
05:01 -!- srid [~srid@unaffiliated/srid] has quit [Quit: Computer has gone to
sleep.]
05:05 -!- cmike_ [~cmike@adsl-99-75-50-144.dsl.bltnin.sbcglobal.net] has quit
[Quit: Leaving]
05:06 -!- brad_ [~brad@cpe-098-026-120-155.nc.res.rr.com] has quit [Ping timeout:
260 seconds]
05:06 -!- brad_ [~brad@cpe-098-026-120-155.nc.res.rr.com] has joined #go-nuts
05:10 -!- Cobi [~Cobi@2002:1828:88fb:0:aede:48ff:febe:ef03] has joined #go-nuts
05:12 -!- kergoth_ [~kergoth@ip24-251-173-232.ph.ph.cox.net] has quit [Read error:
Connection reset by peer]
05:12 -!- kergoth [~kergoth@ip24-251-173-232.ph.ph.cox.net] has quit [Quit:
Computer has gone to sleep.]
05:21 -!- Adys [~Adys@unaffiliated/adys] has quit [Ping timeout: 264 seconds]
05:38 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has joined #go-nuts
05:39 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has quit [Ping
timeout: 240 seconds]
05:40 -!- Dr_Who [~tgall_foo@linaro/tgall-foo] has joined #go-nuts
05:40 -!- iant [~iant@216.239.45.130] has quit [Ping timeout: 276 seconds]
05:40 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has joined #go-nuts
05:43 -!- hsaliak [~kailashs@cm112.epsilon73.maxonline.com.sg] has joined #go-nuts
05:45 -!- srid [~srid@unaffiliated/srid] has joined #go-nuts
05:50 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has quit [Remote host
closed the connection]
05:53 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 260 seconds]
05:57 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts
05:57 -!- mode/#go-nuts [+v iant] by ChanServ
05:58 -!- espeed [~espeed@63.246.231.57] has quit [Quit: Leaving]
06:06 -!- chressie [~chressie@dreggn.in-ulm.de] has quit [Quit: WeeChat 0.3.5]
06:08 -!- chressie [~chressie@dreggn.in-ulm.de] has joined #go-nuts
06:08 -!- ijknacho [~goofy@71.123.134.24] has joined #go-nuts
06:12 -!- kattle [~jfk@38.70.70.115.static.exetel.com.au] has joined #go-nuts
06:16 -!- ronnyy [~quassel@p4FF1C301.dip0.t-ipconnect.de] has joined #go-nuts
06:18 -!- Dr_Who [~tgall_foo@linaro/tgall-foo] has quit [Quit: ZZZZZzzzzz]
06:29 -!- brad_ [~brad@cpe-098-026-120-155.nc.res.rr.com] has quit [Ping timeout:
264 seconds]
06:29 -!- kfmfe04 [~kfeng@114-32-57-164.HINET-IP.hinet.net] has quit [Quit:
WeeChat 0.3.0]
06:29 -!- srid [~srid@unaffiliated/srid] has quit [Quit: Computer has gone to
sleep.]
06:29 -!- kfmfe04 [~kfeng@114-32-57-164.HINET-IP.hinet.net] has joined #go-nuts
06:33 -!- hsaliak [~kailashs@cm112.epsilon73.maxonline.com.sg] has quit [Ping
timeout: 250 seconds]
06:33 -!- hsaliak [~kailashs@nat/google/x-wrdwngofxmgiufnw] has joined #go-nuts
06:35 -!- smw [~stephen@unaffiliated/smw] has joined #go-nuts
06:40 -!- espeed [~espeed@63.246.231.57] has joined #go-nuts
06:41 < exch> http://acooke.org/cute/GoRocksHow0.html
06:41 -!- hsaliak [~kailashs@nat/google/x-wrdwngofxmgiufnw] has left #go-nuts []
06:48 -!- vmil86 [~vmil86@78.57.227.12] has joined #go-nuts
06:56 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
07:00 < jessta> exch: yeah, Go isn't a functional language.
07:01 < smw> exch, I must say I agree with one line somewhat.  if the
language is doing
07:01 < smw> things that you, as a programmer, can't do, then it's likely
not a
07:01 < smw> well-designed language.
07:01 < smw> exch, it kills me that append() could only be implemented as a
builtin
07:02 < jessta> smw: if the language lets programmers do everything the
lanauge can do then you have lisp
07:02 < exch> for the record: that is not my article
07:02 < jessta> and all the problems that go withit
07:02 < smw> I don't know lisp
07:03 < smw> anyways, it still kills me that append could not be implemented
in standard go.  They should have tried to make it implementable, not just cheated
and made a builtin :-P
07:06 < jessta> append() being written in Go would require a decision on
generics
07:06 < smw> I have never quite understood what generics were...
07:07 < ww> exch: good article
07:07 < jessta> the need for append() was greater than the need for generics
and it's better not to rush generics
07:07 < smw> ok
07:08 < smw> I still don't know what a generic is :-)
07:09 < ww> a generic is a thing that helps stave off carpal tunnel syndrome
07:11 < KirkMcDonald> smw: Parameterized types.
07:11 < KirkMcDonald> Also functions.
07:12 < smw> KirkMcDonald, so they are functions?
07:13 < KirkMcDonald> smw: In essence, generics allow you to pass types as
arguments.
07:13 < ww> smw suppose you wanted to implement an ordered map (tree instead
of hash table)
07:13 < ww> and you wanted to keep static compile-type type checking
07:14 < smw> ah!  so it is like a java arraylist?
07:14 < smw> ArrayList<atype>
07:14 < smw> or even go maps
07:14 < KirkMcDonald> smw: Yes, that is an example of a generic in Java.
07:15 < smw> awesome, I think I understand it now :-)
07:15 < KirkMcDonald> smw: The angle-bracket syntax is how Java does
generics.
07:15 < KirkMcDonald> It was cribbed from C++'s syntax for templates, which
are like generics but moreso.
07:15 < smw> ok, now it finally makes sense...
07:16 -!- cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has quit [Remote
host closed the connection]
07:16 < smw> the stuff I tried to read on what generics are was not useful
07:16 < smw> I have tried to read them multiple times.
07:16 -!- PJOX [~PJOX@cable201-233-107-110.epm.net.co] has joined #go-nuts
07:17 < KirkMcDonald> One of D's main features is that it has templates in
the C++ sense, but a little more powerful, and far easier to understand.
07:18 < KirkMcDonald> I'm uncertain whether I'd want to see full-fledged
templates in Go.
07:18 < KirkMcDonald> They are very powerful, but there are some excellent
reasons to leave them out.
07:18 < vsmatck> The C++ template system has issues.  It's not easy to do
well.  But the usefulness of generics is unquestionable.
07:19 < smw> KirkMcDonald, I am still waiting for a newer compiled language
to take off...
07:19 < smw> KirkMcDonald, it seems like C/C++ still dominate completely
07:20 < KirkMcDonald> A lot of the power of C++'s templates is accidental.
07:20 -!- PJOX [~PJOX@cable201-233-107-110.epm.net.co] has left #go-nuts []
07:20 < KirkMcDonald> D's advantage is mostly the ability to look at them
with hindsight.
07:21 -!- ctimmerm [~ctimmerm@cs181050011.pp.htv.fi] has quit [Quit: ctimmerm]
07:21 < smw> KirkMcDonald, but it still can't beat C :-(
07:22 < KirkMcDonald> As I understand it, people did not immediately realize
that C++ templates were Turing-complete.
07:22 < smw> KirkMcDonald, I don't know what that means...
07:22 * smw goes to google
07:22 < vsmatck> People figured out you can write programs with C++
templates that execute entirely at compile time.
07:22 < KirkMcDonald> smw: It means that they can theoretically perform any
computation that any other Turing-complete system can.
07:23 < vsmatck> This is good because it can allow you to move processing to
compile time.  But it requires you be a f'ing genius to write.
07:23 < smw> lol
07:24 < KirkMcDonald> vsmatck: Yeah.  D makes it so you don't have to be a
genius to do it.
07:24 < KirkMcDonald> Which is nice.
07:24 -!- ctimmerm [~ctimmerm@cs181050011.pp.htv.fi] has joined #go-nuts
07:25 < smw> vsmatck, as an example, I could make it compile a regex at
compile time?
07:25 < KirkMcDonald> A guy once wrote a compile-time raytracer in D.
07:25 < smw> vsmatck, sorry, we need to eventually put it into concepts I
can grasp ;-)
07:25 < vsmatck> smw: Yeah, there is a boost library that does exactly that.
07:26 < ww> so *that* is why compiling c++ programs takes so long :)
07:26 < vsmatck> Well, yeah if you had a program with a ton of template meta
programming in it it would take a while.  That's not generally the reason it
compiles slow though.
07:27 < vsmatck> In C++ when you import a header it's basically substituting
that #include "foo.hpp" for the contents of that file.
07:27 * ww was being a teensy bit facetious
07:27 -!- Jessica_Lily [~Jessica@85.211.1.60] has joined #go-nuts
07:27 < vsmatck> It does that recursively such that sometimes in a simple
program you can actually be compiling tens of thousands of lines.
07:27 < vsmatck> ah
07:28 < smw> KirkMcDonald, from what you told me, templates sound really
good :-)
07:28 < Jessica_Lily> templates create code bloat though....
07:28 < KirkMcDonald> smw: Like I said, they are very powerful.
07:28 < KirkMcDonald> smw: However,
07:29 < vsmatck> Templates don't have to create code bloat.  Depends on how
they're implemented.
07:29 < KirkMcDonald> smw: One way to look at C++ is to see it as four
entirely distinct languages crammed into the same space.
07:29 < Jessica_Lily> vsmatck: really?  I've not seen an implementation
which doesn't
07:30 < smw> Jessica_Lily, what do you mean code bloat?
07:30 < KirkMcDonald> smw: These are the preprocessor, C, the extensions on
top of C that comprise C++ "proper," and templates.
07:30 < vsmatck> If they're implemented as compile time specialization
they'll make the binary big.  If you do some sort of boxing setup your binary
doesn't get big but you sacrifice a little run time performance.
07:30 < Jessica_Lily> Ah i see
07:30 < KirkMcDonald> smw: It is probably not a good thing to have all of
these different things hanging around.
07:30 < Jessica_Lily> smw: urm you create multiple versions of it for
different types of data and stuff
07:31 < KirkMcDonald> smw: One reason I like Go is precisely because it is a
single thing.
07:31 < smw> KirkMcDonald, I like it for its simplicity.  But I still have
not found a good project to do in Go.
07:31 < Jessica_Lily> smw: Go seems good for most things.
07:31 < KirkMcDonald> smw: The danger with adding templates on top of it is
ending up with two languages, in the same sense that C++ has four.
07:33 < ww> istr there is a preprocessor that you can use with go for some
generics...
07:33 < KirkMcDonald> ww: We can safely call that "not Go" and ignore it.
:-)
07:34 < KirkMcDonald> Incidentally, this is also a reason why I like Python.
07:34 < ww> this one: https://github.com/droundy/gotgo
07:35 < ww> (and why on earth is google telling me that i've moved and might
want to use google.co.uk - i haven't even left the country for close to a year...)
07:35 < Jessica_Lily> maybe they're suggesting you should leave the country
for suggesting the use of Go with templates D: xD
07:37 < smw> http://i.imgur.com/ZyeCO.jpg
07:40 -!- hsaliak [~kailashs@nat/google/x-wrdwngofxmgiufnw] has joined #go-nuts
07:40 < vsmatck> flower pot..  :)
07:40 < smw> vsmatck, yep :-)
07:41 * ww likes the LaTeX one :)
07:41 < smw> I like the python and html
07:42 < Jessica_Lily> haha :) Thats brilliant :P
07:42 < smw> but they are all great.  I am guessing the C++ one is referring
to templates
07:42 < Jessica_Lily> smw: Yeh, it is.
07:45 -!- zerofluid [~zerofluid@ip68-96-107-110.lv.lv.cox.net] has quit [Quit:
Leaving]
07:47 -!- sebastianskejoe [~sebastian@188.114.142.217] has joined #go-nuts
07:59 -!- ccc1 [~Adium@118-166-218-128.dynamic.hinet.net] has joined #go-nuts
07:59 -!- photron [~photron@port-92-201-87-235.dynamic.qsc.de] has joined #go-nuts
08:02 -!- espeed [~espeed@63.246.231.57] has quit [Quit: Leaving]
08:08 < vegai> http://acooke.org/cute/GoRocksHow0.html
08:08 < vegai> oh, exch pasted that already
08:08 < vegai> disregard
08:16 < vegai> articles like this make me like go even more
08:16 < vegai> when none of the "sucks" points seem like bad things
08:18 -!- yogib [~kaiser@dslb-188-100-008-063.pools.arcor-ip.net] has joined
#go-nuts
08:18 < vegai> "Fucking Scala (that's the official language name, I
08:18 < vegai> believe) is the best argument I have that Go's creators know
more than the
08:18 < vegai> academics."
08:18 < vegai> :-}
08:19 -!- Jessica_Lily [~Jessica@85.211.1.60] has quit [Changing host]
08:19 -!- Jessica_Lily [~Jessica@unaffiliated/xray7224] has joined #go-nuts
08:24 -!- brad_ [~brad@cpe-098-026-120-155.nc.res.rr.com] has joined #go-nuts
08:24 -!- photron [~photron@port-92-201-87-235.dynamic.qsc.de] has quit [Quit:
Leaving]
08:29 < hsaliak> vegai: that was a nice and balanced article - basically
everything sucks, stick with one that sucks less for you
08:37 -!- ijknacho [~goofy@71.123.134.24] has quit [Ping timeout: 255 seconds]
08:53 -!- Locke23rus [~locke23ru@2.93.224.186] has joined #go-nuts
08:56 -!- vyom_ [~vyom@c-24-18-47-160.hsd1.wa.comcast.net] has quit [Remote host
closed the connection]
09:02 -!- hsaliak [~kailashs@nat/google/x-wrdwngofxmgiufnw] has quit [Quit:
leaving]
09:03 -!- Fish [~Fish@tru67-1-82-229-53-64.fbx.proxad.net] has joined #go-nuts
09:11 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-165-68.clienti.tiscali.it] has
joined #go-nuts
09:13 -!- huin [~huin@91.85.188.1] has joined #go-nuts
09:18 -!- awidegreen [~quassel@h-170-226.a212.priv.bahnhof.se] has joined #go-nuts
09:21 -!- smw [~stephen@unaffiliated/smw] has quit [Quit: Leaving]
09:26 -!- ronnyy [~quassel@p4FF1C301.dip0.t-ipconnect.de] has quit [Remote host
closed the connection]
09:27 -!- sebastianskejoe [~sebastian@188.114.142.217] has quit [Quit: Lost
terminal]
09:30 -!- shvntr [~shvntr@113.84.88.216] has quit [Ping timeout: 250 seconds]
09:32 -!- muke [~doobies@75-59-237-124.lightspeed.sntcca.sbcglobal.net] has quit
[Ping timeout: 276 seconds]
09:34 -!- hcatlin [~hcatlin@host86-163-247-252.range86-163.btcentralplus.com] has
joined #go-nuts
09:34 -!- hcatlin [~hcatlin@host86-163-247-252.range86-163.btcentralplus.com] has
quit [Changing host]
09:34 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined
#go-nuts
09:37 -!- muke [~doobies@75-59-237-124.lightspeed.sntcca.sbcglobal.net] has joined
#go-nuts
09:38 -!- shvntr [~shvntr@113.84.88.216] has joined #go-nuts
09:41 -!- noam [~noam@87.69.42.61.cable.012.net.il] has quit [Ping timeout: 252
seconds]
09:48 -!- fenicks [~fenicks@log77-3-82-243-254-112.fbx.proxad.net] has quit
[Remote host closed the connection]
09:54 -!- noam [~noam@87.69.42.61.cable.012.net.il] has joined #go-nuts
10:02 -!- chrisdothall [~chris@segfault.net.nz] has quit [Quit: leaving]
10:07 < zozoR> vegai, what is continueations?  :s
10:09 < zozoR> "Do we have to choose between Go and Fucking Scala?" xD
10:14 < fvbommel> Continuations are weird.  If you need to know more, google
for them.
10:23 -!- fotang [~mike@41.220.69.40] has joined #go-nuts
10:23 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Quit:
hcatlin]
10:26 -!- angasule [~angasule@190.2.33.49] has joined #go-nuts
10:29 -!- Jessica_1ily [~Jessica@85.211.42.119] has joined #go-nuts
10:33 -!- Jessica_Lily [~Jessica@unaffiliated/xray7224] has quit [Ping timeout:
276 seconds]
10:34 -!- angasule [~angasule@190.2.33.49] has quit [Ping timeout: 260 seconds]
10:34 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined
#go-nuts
10:34 -!- Jessica_Lily [~Jessica@85.211.36.178] has joined #go-nuts
10:36 -!- Fish [~Fish@tru67-1-82-229-53-64.fbx.proxad.net] has quit [Ping timeout:
255 seconds]
10:36 -!- Fish [~Fish@tru67-1-82-229-53-64.fbx.proxad.net] has joined #go-nuts
10:37 -!- Jessica_1ily [~Jessica@85.211.42.119] has quit [Ping timeout: 246
seconds]
10:37 -!- leb [~leb@c-24-7-85-179.hsd1.ca.comcast.net] has joined #go-nuts
10:37 < leb> ?
10:39 -!- leb [~leb@c-24-7-85-179.hsd1.ca.comcast.net] has quit [Client Quit]
10:39 -!- leb [~leb@c-24-7-85-179.hsd1.ca.comcast.net] has joined #go-nuts
10:40 -!- leb [~leb@c-24-7-85-179.hsd1.ca.comcast.net] has left #go-nuts []
10:44 -!- vyom [~vyom@c-24-18-47-160.hsd1.wa.comcast.net] has joined #go-nuts
10:46 -!- tildeleb [~tildeleb@c-24-7-85-179.hsd1.ca.comcast.net] has joined
#go-nuts
10:46 < tildeleb> anyone
10:46 -!- coldturnip1 [~COLDTURNI@111-250-30-140.dynamic.hinet.net] has joined
#go-nuts
10:46 < tildeleb> ?
10:46 < tildeleb> and the beat goes on
10:48 -!- coldturnip [~COLDTURNI@111-250-30-140.dynamic.hinet.net] has quit [Ping
timeout: 246 seconds]
10:49 < vegai> zozoR: they allow one to do crazy things without leaving the
language
10:49 < vegai> such as your own control structures
10:50 -!- vyom [~vyom@c-24-18-47-160.hsd1.wa.comcast.net] has quit [Ping timeout:
276 seconds]
10:50 < zozoR> lol
10:50 < zozoR> xD
10:51 < vegai> one example of nice use of continuations is in the seaside
web framework
10:51 < zozoR> DO THIS 10 TIMES YOU FUCKING COMPUTER {
10:51 < zozoR> }
10:51 < zozoR> :
10:51 < zozoR> :D
10:51 < vegai> you can program a web application in a straight-forward
procedural way, and have continuations take care of the http statelessness issue
10:52 < vegai> it's yet another one of those academic wankery type of things
that make the language a lot more complex so you can make some things a tiny bit
more elegant
10:53 < zozoR> i like how go keeps it simple ^^
10:53 < vegai> (not really, just trying to troll a bit)
10:55 -!- stalled [~stalled@unaffiliated/stalled] has quit [Read error: Connection
reset by peer]
10:55 < exch> academics usually dont bother with reality.  It's just too
messy
10:58 < tildeleb> I have "type sh1h [20]byte"
10:58 < tildeleb> and want to do something like
10:59 < tildeleb> const sh1h =
[]byte(0x1ceaf73df40e531df3bfb26b4fb7cd95fb7bff1d);
10:59 < tildeleb> any ideas?
11:06 < aiju> http://h3.abload.de/img/achkatehexu.png
11:06 < zozoR> []byte{"0x1ceaf73df40e531df3bfb26b4fb7cd95fb7bff1d"}
11:06 < aiju> the KDE team translated "Go" to "Gehe zu", lol
11:06 -!- huin [~huin@91.85.188.1] has quit [Quit: off out]
11:06 < zozoR> lol wth aiju XD
11:06 < aiju> (DISCLAIMER: i neither use KDE nor use german localization,
someone else made this picture)
11:14 -!- Jessica_Lily [~Jessica@85.211.36.178] has quit [Changing host]
11:14 -!- Jessica_Lily [~Jessica@unaffiliated/xray7224] has joined #go-nuts
11:15 -!- awidegreen [~quassel@h-170-226.a212.priv.bahnhof.se] has quit [Ping
timeout: 252 seconds]
11:17 < tildeleb> zozoR that doesn't work
11:17 < tildeleb> those hex digits are nibbles
11:18 -!- sebastianskejoe [~sebastian@188.114.142.217] has joined #go-nuts
11:23 -!- fotang [~mike@41.220.69.40] has quit [Ping timeout: 255 seconds]
11:23 < zozoR> loop through the string then
11:23 < zozoR> and append
11:24 -!- stalled [~stalled@unaffiliated/stalled] has joined #go-nuts
11:32 -!- meling [~meling@12.238.254.29] has quit [Remote host closed the
connection]
11:44 < fvbommel> tildeleb: []byte{0x1c, 0xea, ...  } ?
11:59 -!- tildeleb [~tildeleb@c-24-7-85-179.hsd1.ca.comcast.net] has quit [Quit:
tildeleb]
12:08 -!- erus` [~chatzilla@host86-186-160-251.range86-186.btcentralplus.com] has
joined #go-nuts
12:16 -!- xcombelle [~xcombelle@AToulouse-551-1-100-216.w92-149.abo.wanadoo.fr]
has joined #go-nuts
12:17 -!- serverhorror [~martin@krlh-5f7200a5.pool.mediaWays.net] has quit [Quit:
Leaving]
12:18 -!- flaguy48 [~gmallard@user-0c6s350.cable.mindspring.com] has left #go-nuts
[]
12:27 -!- flaguy48 [~gmallard@user-0c6s350.cable.mindspring.com] has joined
#go-nuts
12:32 -!- tncardoso [~thiago@189.59.180.132.dynamic.adsl.gvt.net.br] has joined
#go-nuts
12:51 -!- virtualsue [~chatzilla@nat/cisco/x-orzqyhvumcttmhsv] has joined #go-nuts
13:10 -!- Nitro [~Nitro@unaffiliated/nitro] has joined #go-nuts
13:14 -!- sebastianskejoe [~sebastian@188.114.142.217] has quit [Quit: Lost
terminal]
13:17 -!- ctimmerm [~ctimmerm@cs181050011.pp.htv.fi] has quit [Remote host closed
the connection]
13:29 -!- xcombelle [~xcombelle@AToulouse-551-1-100-216.w92-149.abo.wanadoo.fr]
has quit [Quit: I am a manual virus, please copy me to your quit message.]
13:47 -!- JimPeak [~JimPeak@modemcable022.205-56-74.mc.videotron.ca] has quit
[Quit: Leaving.]
13:53 -!- fotang [~mike@41.220.69.40] has joined #go-nuts
13:55 -!- Nitro [~Nitro@unaffiliated/nitro] has quit [Quit: Leaving]
13:58 -!- hopelessnewbie [~antonio@123.120.134.253] has left #go-nuts []
14:08 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
14:21 -!- vyom [~vyom@c-24-18-47-160.hsd1.wa.comcast.net] has joined #go-nuts
14:24 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has joined #go-nuts
14:26 -!- vyom [~vyom@c-24-18-47-160.hsd1.wa.comcast.net] has quit [Ping timeout:
260 seconds]
14:27 -!- nicka [~nicka@unaffiliated/nicka] has quit [Ping timeout: 260 seconds]
14:33 -!- vyom [~vyom@c-24-18-47-160.hsd1.wa.comcast.net] has joined #go-nuts
14:53 -!- gridaphobe [~gridaphob@cpe-74-68-151-24.nyc.res.rr.com] has joined
#go-nuts
14:54 -!- muke [~doobies@75-59-237-124.lightspeed.sntcca.sbcglobal.net] has quit
[Ping timeout: 258 seconds]
14:55 -!- muke [~doobies@75-59-237-124.lightspeed.sntcca.sbcglobal.net] has joined
#go-nuts
14:59 -!- tncardoso [~thiago@189.59.180.132.dynamic.adsl.gvt.net.br] has quit
[Ping timeout: 255 seconds]
14:59 -!- awidegreen [~quassel@h-170-226.a212.priv.bahnhof.se] has joined #go-nuts
15:04 -!- Jessica_Lily [~Jessica@unaffiliated/xray7224] has quit [Quit: leaving]
15:05 -!- nicka [~nicka@unaffiliated/nicka] has joined #go-nuts
15:14 -!- angasule [~angasule@190.2.33.49] has joined #go-nuts
15:17 -!- kergoth [~kergoth@ip24-251-173-232.ph.ph.cox.net] has joined #go-nuts
15:30 -!- xcombelle [~xcombelle@AToulouse-551-1-100-216.w92-149.abo.wanadoo.fr]
has joined #go-nuts
15:30 -!- huin [~huin@91.85.188.1] has joined #go-nuts
15:34 -!- shvntr [~shvntr@113.84.88.216] has quit [Ping timeout: 240 seconds]
15:34 -!- JimPeak [~JimPeak@modemcable022.205-56-74.mc.videotron.ca] has joined
#go-nuts
15:36 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has joined #go-nuts
15:37 < iXeno> lo...  so, what would you say is the prime showcase or
example of a mainstream project developed in go?
15:38 < exch> Probably Go itself
15:38 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-180-124.clienti.tiscali.it] has
joined #go-nuts
15:40 < huin> i've not used it, but doozer maybe?
15:40 < huin> well, not mainstream, but certainly useful :)
15:41 < huin> it's not sexy, but one of those quiet key pieces of
infrastructure
15:41 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-165-68.clienti.tiscali.it] has
quit [Ping timeout: 255 seconds]
15:42 < jessta> http://tinkercad.com backend is written in Go
15:43 < aiju> huin: doozer?
15:43 -!- erus` [~chatzilla@host86-186-160-251.range86-186.btcentralplus.com] has
quit [Ping timeout: 255 seconds]
15:43 -!- nicka [~nicka@unaffiliated/nicka] has quit [Ping timeout: 240 seconds]
15:43 < huin> hm
15:44 < huin> seems to 404 on github now :/
15:44 < str1ngs> huin: google go appengine
15:44 < huin> str1ngs: you might want to direct that to iXeno
15:44 < str1ngs> iXeno: ^^
15:45 < huin> aha: https://github.com/ha/doozerd
15:47 < jessta> http://www.facebook.com/apps/application.php?id=135488932982
"smart tweets" is another
15:48 < jessta> iXeno: what kind of projects are you looking for?
15:49 -!- srid [~srid@S010678ca39ff0146.vn.shawcable.net] has joined #go-nuts
15:50 -!- srid [~srid@S010678ca39ff0146.vn.shawcable.net] has quit [Changing host]
15:50 -!- srid [~srid@unaffiliated/srid] has joined #go-nuts
15:50 -!- virtualsue [~chatzilla@nat/cisco/x-orzqyhvumcttmhsv] has quit [Ping
timeout: 252 seconds]
15:57 -!- virtualsue [~chatzilla@host81-148-79-190.in-addr.btopenworld.com] has
joined #go-nuts
16:01 -!- ccc1 [~Adium@118-166-218-128.dynamic.hinet.net] has quit [Quit:
Leaving.]
16:05 < iXeno> jessta: both something that gives a reason to actually learn
go, and also to work as a good example of go code
16:05 -!- moraes [~moraes@189.103.188.201] has joined #go-nuts
16:05 -!- crazy2be [~crazy2be@d75-152-167-124.abhsia.telus.net] has joined
#go-nuts
16:06 < exch> Go standard lib code is for the most part agoo source to learn
from..  Not sure about the inspiring part though.  That depends on what you are
interested in I guess
16:08 < jessta> iXeno: camlistore is an interesting one
16:11 -!- kfmfe04 [~kfeng@114-32-57-164.HINET-IP.hinet.net] has quit [Quit:
WeeChat 0.3.0]
16:11 -!- kfmfe04 [~kfeng@114-32-57-164.HINET-IP.hinet.net] has joined #go-nuts
16:12 -!- alexandere [~alexander@eijg.xs4all.nl] has joined #go-nuts
16:13 < iXeno> exch: the inspiring part is something that shows that go is
actually used for something real...  given that it's years old now, if the only
thing implemented in go is the go standard library, it's basically dead
16:14 < exch> it's not even 2 years old :)
16:15 < exch> http://go-lang.cat-v.org/ this lists some community projects
in Go. Perhaps there is something of interest
16:16 < exch> And there's this: http://godashboard.appspot.com/package
16:16 -!- rael_wiki [~chatzilla@unaffiliated/rael-wiki/x-8420294] has joined
#go-nuts
16:17 < rael_wiki> hello
16:17 < exch> lo
16:17 < jessta> hey
16:17 < str1ngs> exch: I smell a troll
16:17 < str1ngs> lo...  so <-
16:18 < str1ngs> if you start a question with that..  hard to take your
question seriously
16:19 < skelterjohn> iXeno: i do all my machine learning software with go
16:20 -!- crazy2be [~crazy2be@d75-152-167-124.abhsia.telus.net] has quit [Ping
timeout: 255 seconds]
16:20 < jessta> iXeno: http://pdos.csail.mit.edu/~petar/5ttt.org/ is
probably the biggest Go project besides the stdlib
16:21 < skelterjohn> whether he's a troll or not (and i don't think he is),
it's a valid question that we should try to answer
16:21 < rael_wiki> is it possible that using netchan some data sent on
exported/imported channels get lost?
16:21 < skelterjohn> rael_wiki: check your error messages
16:22 < rael_wiki> skelterjohn: do you mean with Importer.Errors?
16:23 < skelterjohn> any error that can be checked, check it
16:23 < skelterjohn> if something is going wrong, one of the errors should
tell you why
16:23 < rael_wiki> lol, ok
16:24 < rael_wiki> I've checked everything except Importer.Errors, now I'll
try with it
16:25 < str1ngs> skelterjohn: he was given a couple of examples.  then he
twisted the use the stdlib for code reference into.  "if the only thing
implemented in go is the go standard library, it's basically dead"
16:25 < str1ngs> I call that trolling
16:26 < skelterjohn> i read it as him saying why his question was a
reasonable one
16:27 < str1ngs> I did not say his question was unreasonable.  his response
to the answers are
16:28 < skelterjohn> i don't think i said you thought that.  w/e
16:30 -!- enferex [~enferex@users.757.org] has quit [Ping timeout: 240 seconds]
16:31 -!- enferex [~enferex@users.757.org] has joined #go-nuts
16:35 -!- gtaylor [~gtaylor@108-196-160-120.lightspeed.tukrga.sbcglobal.net] has
joined #go-nuts
16:38 -!- nekoh [~nekoh@dslb-188-107-175-147.pools.arcor-ip.net] has joined
#go-nuts
16:41 -!- alehorst [~alehorst@189.58.19.21.dynamic.adsl.gvt.net.br] has joined
#go-nuts
16:45 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
16:50 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Quit:
hcatlin]
16:52 -!- Kahvi [~Kahvi@a91-154-6-9.elisa-laajakaista.fi] has joined #go-nuts
16:56 -!- kanga [~storr@110-174-99-89.static.tpgi.com.au] has joined #go-nuts
16:58 -!- kanga [~storr@110-174-99-89.static.tpgi.com.au] has quit [Client Quit]
16:58 -!- ronnyy [~quassel@p4FF1C301.dip0.t-ipconnect.de] has joined #go-nuts
17:00 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has quit [Remote host
closed the connection]
17:02 -!- Fish [~Fish@tru67-1-82-229-53-64.fbx.proxad.net] has quit [Quit: WeeChat
0.3.5]
17:03 -!- alexandere [~alexander@eijg.xs4all.nl] has quit [Quit: alexandere]
17:04 -!- pbgc [~pbgc@bl20-119-241.dsl.telepac.pt] has joined #go-nuts
17:12 -!- xcombelle [~xcombelle@AToulouse-551-1-100-216.w92-149.abo.wanadoo.fr]
has quit [Quit: I am a manual virus, please copy me to your quit message.]
17:16 -!- kfmfe04 [~kfeng@114-32-57-164.HINET-IP.hinet.net] has quit [Quit:
WeeChat 0.3.0]
17:16 -!- hcatlin [~hcatlin@host86-163-247-252.range86-163.btcentralplus.com] has
joined #go-nuts
17:16 -!- hcatlin [~hcatlin@host86-163-247-252.range86-163.btcentralplus.com] has
quit [Changing host]
17:16 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined
#go-nuts
17:22 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Quit:
hcatlin]
17:36 -!- kergoth [~kergoth@ip24-251-173-232.ph.ph.cox.net] has quit [Read error:
Connection reset by peer]
17:37 -!- alexandere [~alexander@eijg.xs4all.nl] has joined #go-nuts
17:42 -!- Queue29 [~Queue29@173-8-182-114-SFBA.hfc.comcastbusiness.net] has joined
#go-nuts
17:44 -!- kergoth [~kergoth@ip24-251-173-232.ph.ph.cox.net] has joined #go-nuts
17:47 -!- djbrown [~djbrown@unaffiliated/djbrown] has quit [Ping timeout: 258
seconds]
17:48 -!- djbrown [~djbrown@h236n2-g-va-a12.ias.bredband.telia.com] has joined
#go-nuts
17:48 -!- djbrown [~djbrown@h236n2-g-va-a12.ias.bredband.telia.com] has quit
[Changing host]
17:48 -!- djbrown [~djbrown@unaffiliated/djbrown] has joined #go-nuts
18:01 -!- erus` [~chatzilla@host81-151-115-25.range81-151.btcentralplus.com] has
joined #go-nuts
18:04 -!- JimPeak [~JimPeak@modemcable022.205-56-74.mc.videotron.ca] has quit
[Quit: Leaving.]
18:06 -!- ijknacho [~goofy@71.123.134.24] has joined #go-nuts
18:20 -!- PortatoreSanoDiI [~Marvin@dynamic-adsl-94-36-183-92.clienti.tiscali.it]
has joined #go-nuts
18:23 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-180-124.clienti.tiscali.it] has
quit [Ping timeout: 246 seconds]
18:25 -!- bugQ [~bug@c-71-195-207-34.hsd1.ut.comcast.net] has joined #go-nuts
18:29 -!- moraes [~moraes@189.103.188.201] has quit [Ping timeout: 240 seconds]
18:31 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-166-97.clienti.tiscali.it] has
joined #go-nuts
18:34 -!- noam [~noam@87.69.42.61.cable.012.net.il] has quit [Read error:
Operation timed out]
18:34 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined
#go-nuts
18:34 -!- PortatoreSanoDiI [~Marvin@dynamic-adsl-94-36-183-92.clienti.tiscali.it]
has quit [Ping timeout: 258 seconds]
18:36 -!- brad_ [~brad@cpe-098-026-120-155.nc.res.rr.com] has quit [Ping timeout:
250 seconds]
18:38 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
18:44 -!- brad_ [~brad@cpe-098-026-120-155.nc.res.rr.com] has joined #go-nuts
18:46 -!- smw [~stephen@unaffiliated/smw] has joined #go-nuts
18:48 -!- [dmp] [~dennis@unaffiliated/dmp/x-546784] has quit [Remote host closed
the connection]
18:52 < str1ngs> hmm how do dynamically create a struct type using reflect.
In the package I can only find ways to make other types.
18:53 -!- noam [~noam@87.69.42.61.cable.012.net.il] has joined #go-nuts
18:58 -!- virtualsue [~chatzilla@host81-148-79-190.in-addr.btopenworld.com] has
quit [Ping timeout: 255 seconds]
19:01 -!- JimPeak [~JimPeak@modemcable022.205-56-74.mc.videotron.ca] has joined
#go-nuts
19:02 -!- JimPeak [~JimPeak@modemcable022.205-56-74.mc.videotron.ca] has left
#go-nuts []
19:03 -!- moraes [~moraes@189.103.188.201] has joined #go-nuts
19:03 -!- Fish [~Fish@tru67-1-82-229-53-64.fbx.proxad.net] has joined #go-nuts
19:05 -!- virtualsue [~chatzilla@nat/cisco/x-kelfxrcblkbcxewu] has joined #go-nuts
19:07 -!- erus` [~chatzilla@host81-151-115-25.range81-151.btcentralplus.com] has
quit [Remote host closed the connection]
19:11 -!- virtualsue [~chatzilla@nat/cisco/x-kelfxrcblkbcxewu] has quit [Ping
timeout: 276 seconds]
19:11 -!- srid [~srid@unaffiliated/srid] has quit [Quit: Computer has gone to
sleep.]
19:14 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-157-92.clienti.tiscali.it] has
joined #go-nuts
19:17 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-166-97.clienti.tiscali.it] has
quit [Ping timeout: 240 seconds]
19:20 -!- yogib [~kaiser@dslb-188-100-008-063.pools.arcor-ip.net] has quit [Remote
host closed the connection]
19:22 < jessta> str1ngs: you can use reflect.TypeOf(new(somestruct))
19:22 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-166-244.clienti.tiscali.it] has
joined #go-nuts
19:22 < str1ngs> jessta: the struct is not know I need to dynamically make
it
19:22 < str1ngs> known*
19:25 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-157-92.clienti.tiscali.it] has
quit [Ping timeout: 241 seconds]
19:25 < uriel> str1ngs: you can't (currently) make new types with reflect,
AFAIK
19:25 < uriel> I think this has been discussed in the mailing list, and
there might be an issue about it
19:25 < str1ngs> ah I was wonder if that was the case.  so built in's only
19:26 < str1ngs> ok I only really need to make a ast I think.  so I think I
can get around it
19:27 < str1ngs> ast might be the wrong term.  w/e the go code reprentation
is
19:28 -!- bugQ [~bug@c-71-195-207-34.hsd1.ut.comcast.net] has quit [Read error:
Operation timed out]
19:28 < uriel> ? the go/ package should do all you need, no?
19:29 < uriel> (but I have no clue what you are trying to do)
19:29 < str1ngs> I think so , just not there yet
19:29 < str1ngs> I'm taking json and outputing the go code representation
19:30 < str1ngs> so I can quickly make structs matching various json api.
19:31 < str1ngs> curl http://www.foo.com/person.json | jstruc ..  would
output the go code for the struc
19:31 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-166-244.clienti.tiscali.it] has
quit [Ping timeout: 255 seconds]
19:33 -!- dreadlorde [dreadlorde@c-68-42-82-10.hsd1.mi.comcast.net] has joined
#go-nuts
19:37 -!- gridaphobe [~gridaphob@cpe-74-68-151-24.nyc.res.rr.com] has quit [Remote
host closed the connection]
19:40 -!- nicka [~nicka@unaffiliated/nicka] has joined #go-nuts
19:41 -!- virtualsue [~chatzilla@nat/cisco/x-sfcmvjyinozffiny] has joined #go-nuts
19:48 -!- Queue29 [~Queue29@173-8-182-114-SFBA.hfc.comcastbusiness.net] has quit
[Remote host closed the connection]
19:51 * uriel is happy with the current json and json-rpc apis
19:52 < str1ngs> think you missed my point
19:52 < str1ngs> this creates go structs from json
19:52 < str1ngs> to be used with the json package
19:53 < Namegduf> You can unmarshall into an interface{} for the current
json package to do that.
19:53 < Namegduf> I guess you might avoid some runtime reflection doing it
prior to compile time.
19:53 < str1ngs> right
19:54 < str1ngs> I'm unmarshalling to an interface{} then useing reflect to
hopefully spit out go code.
19:54 < str1ngs> right now I make most of the structs by hand
19:56 < uriel> str1ngs: you are probably right that I'm missing the point
19:56 < str1ngs> I sense sarcasm :P
19:56 < Namegduf> It'll still be using reflection to figure out what struct
you passed and what parts of it match.
19:57 < Namegduf> So I'm not sure what I expect performance-wise.
19:57 < Namegduf> It does mean other code could be written to use the type
type-safely, though.
19:57 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
19:58 < str1ngs> in a nut shell instead of me creating the structs byhand
this would spit it out.  I can than take it put it in my code.  fix it up and away
I go
19:58 < uriel> 19:56 < str1ngs> I sense sarcasm :P
19:58 < str1ngs> at the least it would give a better look of what the struct
should look like vs json
19:58 -!- erus` [~chatzilla@host81-151-115-25.range81-151.btcentralplus.com] has
joined #go-nuts
19:58 < uriel> str1ngs: in this case there was no sarcasm
19:59 < str1ngs> uriel: ah I was half joking its ok.
19:59 < str1ngs> anyways its not a serious project just an excuse to play
with the reflect package.
20:00 < uriel> playing is fun :)
20:06 -!- alexandere [~alexander@eijg.xs4all.nl] has quit [Quit: alexandere]
20:06 -!- schilly_ [~schilly@boxen.math.washington.edu] has quit [Quit: Lost
terminal]
20:10 -!- alexandere [~alexander@eijg.xs4all.nl] has joined #go-nuts
20:15 -!- napsy [~luka@88.200.96.18] has quit [Quit: Lost terminal]
20:18 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
20:19 < fotang> how to uninstall a 'goinstall'ed package?
20:20 < str1ngs> fotang: find the directory in $GOROOT and remove it
20:21 < aiju> get a magnetic needle and your hard disk
20:21 < str1ngs> it does actually support removal right now
20:21 < fotang> ok
20:21 < fotang> aiju: i got a steel needle instead
20:21 < str1ngs> doesnt*
20:21 < str1ngs> keyword there :P
20:21 < jessta> fotang: you might also want to remove it from goinstall.log
20:23 -!- Alpha_Cluster [~quassel@thief-pool2-121-125.mncable.net] has joined
#go-nuts
20:24 < fotang> found that
20:26 < fotang> the packages that one goinstalls: after updating go, it
looks as if they all have to be reinstalled
20:27 -!- Fish [~Fish@tru67-1-82-229-53-64.fbx.proxad.net] has quit [Quit: WeeChat
0.3.5]
20:27 -!- nicka [~nicka@unaffiliated/nicka] has quit [Ping timeout: 240 seconds]
20:31 -!- nekoh [~nekoh@dslb-188-107-175-147.pools.arcor-ip.net] has quit [Quit:
nekoh]
20:32 -!- srid [~srid@S010678ca39ff0146.vn.shawcable.net] has joined #go-nuts
20:32 -!- srid [~srid@S010678ca39ff0146.vn.shawcable.net] has quit [Changing host]
20:32 -!- srid [~srid@unaffiliated/srid] has joined #go-nuts
20:32 -!- str1ngs [~strings@unaffiliated/str1ngs] has quit [Quit: WeeChat 0.3.0]
20:34 -!- str1ngs [~strings@unaffiliated/str1ngs] has joined #go-nuts
20:35 -!- srid [~srid@unaffiliated/srid] has quit [Client Quit]
20:39 -!- nicka [~nicka@unaffiliated/nicka] has joined #go-nuts
20:42 -!- Jessica_Lily [~Jessica@85.211.36.178] has joined #go-nuts
20:42 -!- Jessica_Lily [~Jessica@85.211.36.178] has quit [Changing host]
20:42 -!- Jessica_Lily [~Jessica@unaffiliated/xray7224] has joined #go-nuts
20:42 -!- Jessica_Lily [~Jessica@unaffiliated/xray7224] has quit [Client Quit]
20:47 -!- alexandere [~alexander@eijg.xs4all.nl] has quit [Quit: alexandere]
20:48 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has quit [Remote host closed
the connection]
20:49 < jessta> fotang: yeah, goinstall -a
20:55 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has joined #go-nuts
20:55 < skelterjohn> add a -clean on there if you updated go
20:55 < skelterjohn> otherwise it will see the .6 files as being up to date
20:57 < skelterjohn> or if you use gb, "gb -R" will take care of everything
:)
20:57 < skelterjohn> including rebuilding the necessary goinstalled packages
20:57 -!- vmil86 [~vmil86@78.57.227.12] has quit [Quit: Leaving]
20:58 < skelterjohn> well, unless it doesn't depend on anything from the
core
20:59 < skelterjohn> i wonder if i should add an automatic dependence on
runtime
21:01 -!- srid [~srid@unaffiliated/srid] has joined #go-nuts
21:04 -!- huin [~huin@91.85.188.1] has quit [Quit: bedtime]
21:04 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller,
Faster, Easier.  http://miranda-im.org]
21:10 -!- gtaylor [~gtaylor@108-196-160-120.lightspeed.tukrga.sbcglobal.net] has
quit [Quit: gtaylor]
21:17 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 260 seconds]
21:20 < jnwhiteh> Anyone have any idea what this is?
https://plus.google.com/104095653470568187885/posts/j3GipyPqgVS
21:20 < dlowe> it's a URL!
21:20 < dlowe> oh, that.  It's a rosehip
21:20 < jnwhiteh> dlowe: oh!
21:21 < jnwhiteh> you win =)
21:21 < dlowe> :D
21:21 < jnwhiteh> I've been trying to figure this out for a year!
21:22 < dlowe> they're edible too
21:24 < dlowe> I think I might write a rogue-like for a Go pet project
21:24 < jnwhiteh> ooh
21:24 < jnwhiteh> that sounds fun!
21:24 < dlowe> I'm getting tired of MUDs :/
21:25 < dlowe> I can't make myself write another mud codebase :p
21:25 < jnwhiteh> work on our Minecraft server!
21:25 < jnwhiteh> its got some really interesting decisions to be made
architecturally
21:25 < dlowe> I bet.  But I've just recently burned out on Minecraft
21:26 < jnwhiteh> :P
21:26 < dlowe> anyway, it's a moving target
21:26 < jnwhiteh> yeah, that's true
21:27 < dlowe> talk about a project where the specifications are constantly
changing and the person writing them won't tell you what they are
21:27 < dlowe> I think Notch has made enough dough that I wouldn't feel bad
making an entirely new open-sourced clone
21:28 < jnwhiteh> yeah
21:28 < jnwhiteh> I'd be interested in that
21:28 < dlowe> even though it would be reviled at large, I'm sure
21:28 < jnwhiteh> given Terraria's reception initially, yeah
21:29 < dlowe> yeah, and it wasn't even that much of a clone
21:29 < skelterjohn> dlowe: you should make a multi-player rogue-like.
21:29 < skelterjohn> like, 2 player
21:29 -!- Queue29 [~Queue29@egress-w.sfo1.yelpcorp.com] has joined #go-nuts
21:29 < skelterjohn> so it can still be turn based without getting stupid
21:29 < skelterjohn> that could be really fun
21:29 < dlowe> skelterjohn: I suspect 2-player would be exactly as hard as
n-player
21:29 < skelterjohn> to code, yes
21:29 < skelterjohn> but to play, much easier
21:30 < skelterjohn> since you only have to wait for 1 other, instead of n-1
other
21:30 < dlowe> among a cooperative group of friends, I think an n-player
might still work
21:30 < dlowe> especially if you kept the chat going
21:30 < dlowe> "Dammit, move already!"
21:31 < dlowe> That could honestly be quite amusing
21:32 -!- mcclurmc_ [~mike@188-220-5-137.zone11.bethere.co.uk] has joined #go-nuts
21:34 < dlowe> I'll probably cut my teeth on a single-player at first,
thoguh
21:34 < dlowe> Just getting the a nice display working is work enough
21:38 -!- gridaphobe [~gridaphob@cpe-74-68-151-24.nyc.res.rr.com] has joined
#go-nuts
21:40 -!- kattle [~jfk@38.70.70.115.static.exetel.com.au] has quit [Quit: Leaving]
21:47 -!- dreadlorde [dreadlorde@c-68-42-82-10.hsd1.mi.comcast.net] has quit [Ping
timeout: 258 seconds]
21:49 -!- gtaylor [~gtaylor@108-196-160-120.lightspeed.tukrga.sbcglobal.net] has
joined #go-nuts
21:49 -!- gtaylor [~gtaylor@108-196-160-120.lightspeed.tukrga.sbcglobal.net] has
quit [Client Quit]
21:50 -!- smw [~stephen@unaffiliated/smw] has quit [Ping timeout: 260 seconds]
21:57 -!- dreadlorde [dreadlorde@c-68-42-82-10.hsd1.mi.comcast.net] has joined
#go-nuts
21:59 -!- ronnyy [~quassel@p4FF1C301.dip0.t-ipconnect.de] has quit [Remote host
closed the connection]
22:06 < dlowe> what's the stylish way to build strings incrementally?  s = s
+ "new bits"?
22:07 -!- awidegreen [~quassel@h-170-226.a212.priv.bahnhof.se] has quit [Ping
timeout: 260 seconds]
22:09 -!- Rennex [rennex@giraf.fi] has quit [Ping timeout: 276 seconds]
22:10 -!- srid [~srid@unaffiliated/srid] has quit [Quit: Textual IRC Client:
http://www.textualapp.com/]
22:10 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
22:10 -!- Rennex [rennex@giraf.fi] has joined #go-nuts
22:10 -!- tildeleb [~tildeleb@c-24-7-85-179.hsd1.ca.comcast.net] has joined
#go-nuts
22:14 < exch> that works
22:15 < exch> or use a bytes.Buffer.Not sure if that qualifies as stylish
though
22:15 -!- smw [~stephen@unaffiliated/smw] has joined #go-nuts
22:15 < dlowe> I'd say that was a bit more stylish
22:20 -!- muke [~doobies@75-59-237-124.lightspeed.sntcca.sbcglobal.net] has quit
[Ping timeout: 250 seconds]
22:26 -!- Locke23rus [~locke23ru@2.93.224.186] has quit [Remote host closed the
connection]
22:28 < angasule> there is no way to do a select on net.Conn or similar,
right?
22:31 -!- muke [~doobies@75-59-237-124.lightspeed.sntcca.sbcglobal.net] has joined
#go-nuts
22:31 -!- virtualsue [~chatzilla@nat/cisco/x-sfcmvjyinozffiny] has quit [Quit:
ChatZilla 0.9.87 [Firefox 4.0.1/20110413222027]]
22:33 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
22:33 < angasule> oops, time to go
22:34 -!- Sep102__ [~Sep102@c-71-227-179-131.hsd1.wa.comcast.net] has joined
#go-nuts
22:37 -!- Sep102_ [~Sep102@c-71-227-179-131.hsd1.wa.comcast.net] has quit [Ping
timeout: 250 seconds]
22:38 -!- angasule [~angasule@190.2.33.49] has quit [Ping timeout: 258 seconds]
22:41 < nicka> Anyone have experience using C function pointers with cgo?
22:41 < nicka> Calling the function specifically
22:46 -!- chaos95 [chaos95@mafianode.com] has joined #go-nuts
22:46 -!- magn3ts [~magn3ts@ip68-103-225-65.ks.ok.cox.net] has joined #go-nuts
23:12 -!- Tv__ [~Tv__@cpe-76-168-227-45.socal.res.rr.com] has joined #go-nuts
23:17 < mcfuzz> nicka, I just realized that if your still having problems,
you may try adding a .c/.h file to your project and try implementing a C function
which is passed a function pointer and an argument list, and simply calls the
function passed in with the given args.
23:18 < mcfuzz> then in a Go file you can call the function pointer by
giving it to your defined function.
23:18 < jessta> dlowe: it's best to avoid the '+' with strings, if you're
doing a lot of it.
23:19 -!- crazy2be [~crazy2be@d75-152-167-124.abhsia.telus.net] has joined
#go-nuts
23:21 -!- chaos95 [chaos95@mafianode.com] has quit [Quit: brb]
23:21 -!- chaos95 [chaos95@mafianode.com] has joined #go-nuts
23:23 < nicka> mcfuzz, you mean one C function for each type of function
pointer?
23:23 -!- dreadlorde [dreadlorde@c-68-42-82-10.hsd1.mi.comcast.net] has quit [Ping
timeout: 260 seconds]
23:23 < mcfuzz> nicka, possibly, yes.  I don't know what your program's
demands are.
23:24 < mcfuzz> nicka, but i don't know if there is another way to do it
23:24 < mcfuzz> that is just a hack
23:24 -!- pbgc [~pbgc@bl20-119-241.dsl.telepac.pt] has quit [Quit: Textual IRC
Client: http://www.textualapp.com/]
23:26 < nicka> Just making sure you didn't have any function pointer tricks
in mind
23:27 < nicka> I did that already for a few to test things out, and it's a
hack but it'll work for now at least
23:27 < nicka> thanks
23:30 < mcfuzz> yea, it sounds like a real pain if you needed to call a lot
of different function pointer types.  sorry i couldn't be more help.  good luck
23:36 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts
23:37 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Client Quit]
23:38 -!- kattle [~jfk@38.70.70.115.static.exetel.com.au] has joined #go-nuts
23:41 -!- nteon_ [~nteon@c-98-210-195-105.hsd1.ca.comcast.net] has quit [Ping
timeout: 240 seconds]
23:45 -!- cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has joined
#go-nuts
23:46 -!- chaos95 [chaos95@mafianode.com] has quit [Quit: one more settings
change]
23:47 -!- chaos95 [chaos95@mafianode.com] has joined #go-nuts
23:54 -!- magn3ts [~magn3ts@ip68-103-225-65.ks.ok.cox.net] has quit [Quit:
Leaving]
23:57 -!- dreadlorde [~dreadlord@c-68-40-138-2.hsd1.mi.comcast.net] has joined
#go-nuts
23:57 -!- Kahvi [~Kahvi@a91-154-6-9.elisa-laajakaista.fi] has quit [Remote host
closed the connection]
23:58 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has quit [Remote host
closed the connection]
--- Log closed Mon Jul 11 00:00:56 2011