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

--- Log opened Mon Apr 26 00:00:50 2010
00:05 -!- marsu [~marsu@93.10.93.159] has quit [Read error: Operation timed out]
00:06 -!- prudhvi [~prudhvi@aldebaran.surapaneni.in] has joined #go-nuts
00:06 < prudhvi> Hi, is there any SOAP Api for Go lang to write web services
and Clients?
00:11 -!- Macpunk [~macpunk@cpe-72-177-26-221.austin.res.rr.com] has joined
#go-nuts
00:12 < kimelto> http://golang.org/pkg/rpc/ ?
00:16 < prudhvi> kimelto: thanks :)
00:16 < prudhvi> any ORM libraries available too?
00:50 -!- slashus2 [~slashus2@173-25-18-77.client.mchsi.com] has quit [Quit:
slashus2]
00:58 -!- Xera` [~brit@87-194-208-246.bethere.co.uk] has quit [Read error:
Connection reset by peer]
01:13 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts
01:15 -!- SRabbelier [~SRabbelie@ip138-114-211-87.adsl2.static.versatel.nl] has
quit [Ping timeout: 265 seconds]
01:20 -!- meatmanek [~meatmanek@mesingw.STUDENT.CWRU.Edu] has joined #go-nuts
01:24 -!- SRabbelier [~SRabbelie@ip138-114-211-87.adsl2.static.versatel.nl] has
joined #go-nuts
01:25 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
01:25 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts
01:32 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
01:36 -!- Macpunk [~macpunk@cpe-72-177-26-221.austin.res.rr.com] has quit [Ping
timeout: 240 seconds]
01:53 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
01:54 < kimelto> that's fun how the regex implementation is slow :)
01:55 < kimelto> especially if you compare to v8
02:00 < kmeyer> the regex implementation could get a lot better
02:10 -!- b00m_chef [~watr@d64-180-45-230.bchsia.telus.net] has quit [Read error:
Connection reset by peer]
02:11 < uriel> I'm pretty certain the regexp implementation *will* get a lot
better
02:13 -!- addos [~18d3aa3d@gateway/web/freenode/x-txjsryrgepbhabxp] has quit [Ping
timeout: 252 seconds]
02:14 -!- neopallium
[~neopalliu@neoawareness-2-pt.tunnel.tserv14.sea1.ipv6.he.net] has left #go-nuts
["Leaving"]
02:18 < kimelto> dho_plan9: I may have a lead about my problem
02:19 < kimelto> dho_plan9: stopped all the services till it builds
successfully, the bad guy seems to be symon http://www.xs4all.nl/~wpd/symon/
02:19 < kimelto> dunno why yet
02:19 < KirkMcDonald> Perhaps RE2 will get ported to Go? Or at least,
perhaps there will be bindings to it.
02:22 < kimelto> KirkMcDonald: that'd be nice
02:22 -!- TR2N [email@89-180-228-36.net.novis.pt] has quit [Ping timeout: 260
seconds]
02:23 -!- ContraSF [email@89-180-229-37.net.novis.pt] has joined #go-nuts
02:25 -!- akrill [~akrill@reserved-216-231-57-73.sea0.krillr.com] has joined
#go-nuts
02:25 -!- kota1111 [~kota1111@gw2.kbmj.jp] has joined #go-nuts
02:28 -!- nighty__ [~nighty@210.188.173.245] has joined #go-nuts
02:30 -!- gmurphy [~gmurphy@203.217.43.13] has joined #go-nuts
02:31 -!- gmurphy [~gmurphy@203.217.43.13] has left #go-nuts []
02:34 -!- ContraSF [email@89-180-229-37.net.novis.pt] has quit [Ping timeout: 264
seconds]
02:34 -!- millertimek1a2m3 [~adam@rrcs-67-79-54-130.sw.biz.rr.com] has joined
#go-nuts
02:36 -!- gmurphy [~gmurphy@203.217.43.13] has joined #go-nuts
02:36 -!- gmurphy [~gmurphy@203.217.43.13] has left #go-nuts []
02:39 -!- ContraSF [email@89.180.196.239] has joined #go-nuts
02:42 < kmeyer> KirkMcDonald: I imagine the former is what's going to happen
02:42 < kmeyer> but I imagine it depends mostly upon someone caring
02:43 < kimelto> dont care the langage its implemented in as long as it
comes with the standard distribution :)
02:44 < kmeyer> yep
02:50 -!- Macpunk [~macpunk@cpe-72-177-26-221.austin.res.rr.com] has joined
#go-nuts
02:56 -!- dizm [~dizm@121.98.168.127] has joined #go-nuts
03:03 -!- dizm [~dizm@121.98.168.127] has left #go-nuts []
03:22 -!- aho [~nya@g230131083.adsl.alicedsl.de] has quit [Quit:
EXEC_over.METHOD_SUBLIMATION]
03:23 < KirkMcDonald> kmeyer: Given that the authors of RE2 are also
developers of Go, I would only assume they have an interest in it.
03:24 -!- Boriskr [~Boriskr@95.104.195.1] has quit []
03:24 < kmeyer> well, I'm not sure
03:24 < kmeyer> I think rsc is the RE2 author (or at least he's blogged
about it)
03:24 < kmeyer> I'm not sure he has the time to do the port
03:30 < uriel> russ *is* hte RE2 author, ken is the author of the original
Unix regexps, and Rob is the author of the Plan 9 regexp engine
03:31 < uriel> so, as I said, it is pretty certain the regexp system for Go
is going to be improved considerably
03:31 < uriel> (and the Google folks have said as much)
03:32 -!- dignan [~tdignan@207-180-158-56.c3-0.wak-ubr1.sbo-wak.ma.cable.rcn.com]
has joined #go-nuts
03:32 < dignan> So, what was google's motive in creating Go?
03:33 < dignan> I just checked out a code sample, and like I read it looks
like the child of c and python
03:33 < dignan> I guess my question is did they have a specific application
in mind for it
03:34 < dignan> is it just geek bait?
03:34 < kmeyer> dignan: a replacement for C, for a wide range of things C is
used for today
03:34 < dignan> i love C
03:35 < kmeyer> me too :)
03:35 < dignan> I am going to learn it just because ken thompson helped to
invent it
03:35 < uriel> dignan: watch Rob's talk
03:35 < kmeyer> I think the Go tutorial and Effective Go are actually better
intros
03:35 < kmeyer> but I prefer reading to videos
03:36 < dignan> the tech talk should be good motivation, i'll do the
tutorial after
03:36 < kimelto> Personally I see go as a python replacementm not as a C
replacement.
03:36 < kimelto> the go runtime is written in C, isnt it?
03:36 < dignan> Everything is written in C
03:36 < kimelto> :)
03:46 -!- alc [~alc@222.128.139.161] has joined #go-nuts
03:47 < kmeyer> kimelto: no, actually
03:47 < kmeyer> it's written in assembly
03:48 < KirkMcDonald> Go is missing Python's most important feature: A vast
and mature standard library.
03:49 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has quit [Quit:
leaving]
03:49 < kimelto> only time can improve that :)
03:49 < KirkMcDonald> Indeed.
03:50 < kmeyer> Pfff
03:50 < kimelto> I like to tell myself that there are room for optimization
in Go. Cause in benchmarks, Go is 2 times slower than java.
03:50 < kmeyer> python's stdlib isn't that great
03:54 < KirkMcDonald> kmeyer: Well, and beyond the standard library.
03:54 < KirkMcDonald> kmeyer: There are tons of third-party libraries.
03:55 < kmeyer> That's true
03:57 < KirkMcDonald> And this includes bindings to any C library you could
think of.
03:57 < KirkMcDonald> Go is still getting there.
04:01 < dignan> Go seems really cool
04:02 < dignan> I am excited to be one of the early adopters of a
programming language..  All the other ones i've learned have been at least 5 or so
years old, more likely 20 or more years old..
04:03 < dignan> Basically I think it would help me to master something
before it gets popular.
04:03 < dignan> and i like the syntax so far
04:04 < dignan> Actually popularity seems somewhat explosive
04:04 < dignan> although, it's still cooler than java or something
04:05 < kimelto> duck typing is cool too
04:08 -!- warthurton [~warthurto@pdpc/supporter/active/warthurton] has quit [Quit:
warthurton]
04:09 -!- defectiv [~clays@c-24-5-65-40.hsd1.ca.comcast.net] has joined #go-nuts
04:10 < defectiv> i'm wondering whether golang provides any facility similar
to what can be accomplished with class methods in ruby, particularly with regard
to the validations in Rails's ActiveRecord.  basically a class definition like
User inherits the class method validates_prencese_of and could pass to it
something like :name, so that all new objects have to have a name defined, or they
fail.
04:11 < defectiv> but i can't think of anything similar in golang.
04:12 < defectiv> the idea is that if you say bob = User{name: 'Bob', age:
39} that validation is executed.  or something different but equally powerful and
straightforward.
04:13 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Quit:
slashus2]
04:17 < KirkMcDonald> defectiv: It is difficult for me to answer this, since
I don't know anything about Ruby.
04:18 < KirkMcDonald> defectiv: But Go is statically typed.
04:19 < KirkMcDonald> defectiv: An instance of a given struct will have all
of the fields declared in the struct by definition.
04:25 -!- adu [~ajr@pool-173-66-9-50.washdc.fios.verizon.net] has joined #go-nuts
04:25 < defectiv> but they won't all get set.
04:26 < defectiv> the idea here is that active record is letting you say
what constitutes a valid database record.
04:26 -!- Macpunk [~macpunk@cpe-72-177-26-221.austin.res.rr.com] has quit [Read
error: Operation timed out]
04:26 -!- tsung [~jon@112.104.53.151] has quit [Ping timeout: 240 seconds]
04:26 < defectiv> but there's nothing in go that you can do so that every
time you make a new instance of some type, some functionality is executed?
04:26 < defectiv> without initializers, the goal seems unachievable.
04:27 < KirkMcDonald> defectiv: This is why there is the NewFoo function
convention.
04:27 < defectiv> that's just a convention though, right?
04:27 < defectiv> well, it basically solves that part of the problem..
04:28 < defectiv> the cool thing about ruby is that you can have class
methods, that you call inside the class definition.  they are methods of the
class, not instances of the class.
04:29 < KirkMcDonald> defectiv: Yes, Python has the same thing.
04:29 < defectiv> your model class, e.g.  User, inherits them from
ActiveRecord::Base.  i'm trying to think of how to accomplish something similar
with go.
04:29 < KirkMcDonald> Go doesn't even has inheritance as such.
04:29 < KirkMcDonald> s/has/have/
04:30 < dignan> has anyone set up a mirror or downloaded all the go docs and
spec stuff in entirety?
04:30 < dignan> obviously it changes rapidly, but i could use rsync ;/
04:30 < defectiv> well it has interfaces.
04:36 -!- alc [~alc@222.128.139.161] has quit [Quit: alc]
04:37 < uriel> defectiv: Go has no classes, don't try to apply the ideas of
other OO languages to Go, it just doesn't make sense
04:38 -!- pshahmumbai [~prashant@58.146.97.159] has joined #go-nuts
04:38 < defectiv> that's precisely my point.
04:39 < defectiv> you have to come up with a way to get a similar kind of
solution from things like interfaces, since you don't have inheritance.
04:41 * uriel would question the cliam that "a similiar kindof solution" is needed
04:41 < uriel> what is needed is to re-state the problem in a way that makes
sense in Go
04:42 < defectiv> that's my point.
04:43 -!- Xeon [~chatzilla@222.73.189.45] has joined #go-nuts
04:45 -!- kashia_ [~Kashia@port-92-200-160-189.dynamic.qsc.de] has joined #go-nuts
04:46 -!- Kashia [~Kashia@port-92-200-54-59.dynamic.qsc.de] has quit [Ping
timeout: 252 seconds]
04:49 -!- robot12 [~robot12@robot12.kgts.ru] has joined #go-nuts
04:51 -!- alehorst [~alehorst@201.47.23.164.dynamic.adsl.gvt.net.br] has quit
[Ping timeout: 248 seconds]
04:55 -!- alehorst [~alehorst@201.47.23.164.dynamic.adsl.gvt.net.br] has joined
#go-nuts
04:56 -!- cyonyx [~chatzilla@c-76-126-250-10.hsd1.ca.comcast.net] has joined
#go-nuts
04:58 -!- Macpunk [~macpunk@cpe-72-177-26-221.austin.res.rr.com] has joined
#go-nuts
05:03 -!- scm [justme@c210192.adsl.hansenet.de] has quit [Ping timeout: 246
seconds]
05:04 -!- scm [justme@c222097.adsl.hansenet.de] has joined #go-nuts
05:13 < kmeyer> dignan: it's available in hg...
05:15 < dignan> i am currently installing, just a passing thought
05:16 < dignan> i want to get in the habit of not depending on viewing all
my docs online..  its not green and that way I can't plan to build my own private
store of stuff that I have indexed locally for fast searches..
05:16 < dignan> i think i might undertake a project with Go to build out an
index of all my local docs or something
05:16 < dignan> full text
05:22 -!- nettok [~netto@200.119.154.175] has joined #go-nuts
05:27 -!- nettok_ [~netto@200.119.154.175] has joined #go-nuts
05:31 -!- nettok [~netto@200.119.154.175] has quit [Ping timeout: 245 seconds]
05:36 -!- nettok_ [~netto@200.119.154.175] has quit [Ping timeout: 246 seconds]
05:38 -!- micrypt [~micrypt@41-184-21-79.rv.ipnxtelecoms.com] has quit [Quit:
Leaving.]
05:47 -!- cyonyx [~chatzilla@c-76-126-250-10.hsd1.ca.comcast.net] has quit [Quit:
ChatZilla 0.9.86 [Firefox 3.6.3/20100401080539]]
05:52 -!- millertimek1a2m3 [~adam@rrcs-67-79-54-130.sw.biz.rr.com] has quit [Ping
timeout: 265 seconds]
05:53 -!- bcgraham [~bcgraham@cpe-67-250-13-100.nyc.res.rr.com] has quit [Quit:
bcgraham]
05:54 < chressie> dignan: you could give godoc a try (i.e.  godoc
-http=:6060)
05:57 -!- warthurton [~warthurto@cpe-67-246-229-53.rochester.res.rr.com] has
joined #go-nuts
05:57 -!- warthurton [~warthurto@cpe-67-246-229-53.rochester.res.rr.com] has quit
[Changing host]
05:57 -!- warthurton [~warthurto@pdpc/supporter/active/warthurton] has joined
#go-nuts
05:59 -!- nettok_ [~netto@200.119.154.175] has joined #go-nuts
06:14 -!- Xeon [~chatzilla@222.73.189.45] has quit [Ping timeout: 264 seconds]
06:25 -!- nettok_ [~netto@200.119.154.175] has quit [Quit: Ex-Chat]
06:25 -!- franksalim [~frank@adsl-75-61-84-181.dsl.pltn13.sbcglobal.net] has quit
[Quit: Ex-Chat]
06:29 -!- Cyprien_ [~Cyprien@pub1.heig-vd.ch] has joined #go-nuts
06:33 -!- tvw [~tv@e182076036.adsl.alicedsl.de] has joined #go-nuts
06:38 -!- mbarkhau [~koloss@dslb-084-059-161-165.pools.arcor-ip.net] has joined
#go-nuts
06:42 -!- adu [~ajr@pool-173-66-9-50.washdc.fios.verizon.net] has quit [Quit: adu]
06:45 -!- kimelto [~kimelto@sd-13453.dedibox.fr] has quit [Ping timeout: 258
seconds]
06:48 -!- alehorst [~alehorst@201.47.23.164.dynamic.adsl.gvt.net.br] has quit
[Ping timeout: 248 seconds]
06:48 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
06:51 -!- kimelto [~kimelto@sd-13453.dedibox.fr] has joined #go-nuts
06:55 -!- mbarkhau [~koloss@dslb-084-059-161-165.pools.arcor-ip.net] has quit
[Quit: Leaving.]
06:56 -!- cyonyx [~chatzilla@c-76-126-250-10.hsd1.ca.comcast.net] has joined
#go-nuts
06:57 -!- robot12 [~robot12@robot12.kgts.ru] has left #go-nuts []
06:58 -!- cyonyx [~chatzilla@c-76-126-250-10.hsd1.ca.comcast.net] has quit [Client
Quit]
07:00 -!- SRabbelier [~SRabbelie@ip138-114-211-87.adsl2.static.versatel.nl] has
quit [Ping timeout: 246 seconds]
07:00 -!- kssreeram [~kssreeram@122.174.68.151] has quit [Quit: value semantics ==
42]
07:01 -!- alehorst [~alehorst@201.47.12.150.dynamic.adsl.gvt.net.br] has joined
#go-nuts
07:04 -!- SRabbelier [~SRabbelie@ip138-114-211-87.adsl2.static.versatel.nl] has
joined #go-nuts
07:31 -!- pshahmumbai [~prashant@58.146.97.159] has quit [Quit: Ex-Chat]
07:32 -!- rlab [~Miranda@161-67-113-92.pool.ukrtel.net] has joined #go-nuts
07:38 -!- adu [~ajr@pool-173-66-9-50.washdc.fios.verizon.net] has joined #go-nuts
07:40 -!- gmurphy [~gmurphy@203.217.43.13] has joined #go-nuts
07:44 -!- rlab_ [~Miranda@67-197-95-178.pool.ukrtel.net] has joined #go-nuts
07:45 -!- rlab [~Miranda@161-67-113-92.pool.ukrtel.net] has quit [Ping timeout:
246 seconds]
07:46 -!- rlab_ [~Miranda@67-197-95-178.pool.ukrtel.net] has quit [Client Quit]
07:46 -!- rlab [~Miranda@67-197-95-178.pool.ukrtel.net] has joined #go-nuts
07:46 -!- manveru_ [kailan@make-world.info] has joined #go-nuts
07:48 -!- manveru_ [kailan@make-world.info] has quit [Remote host closed the
connection]
07:48 -!- manveru_ [kailan@make-world.info] has joined #go-nuts
07:50 -!- manveru_ [kailan@make-world.info] has quit [Remote host closed the
connection]
07:51 -!- manveru_ [kailan@make-world.info] has joined #go-nuts
07:51 -!- rlab_ [~Miranda@192-68-95-178.pool.ukrtel.net] has joined #go-nuts
07:54 -!- rlab [~Miranda@67-197-95-178.pool.ukrtel.net] has quit [Ping timeout:
252 seconds]
07:55 -!- manveru_ [kailan@make-world.info] has quit [Remote host closed the
connection]
07:55 -!- gmurphy [~gmurphy@203.217.43.13] has quit [Quit: zzzzzz...]
07:57 -!- rlab_ [~Miranda@192-68-95-178.pool.ukrtel.net] has quit [Read error:
Connection reset by peer]
07:58 -!- rlab [~Miranda@216-197-113-92.pool.ukrtel.net] has joined #go-nuts
07:59 -!- maht [~maht__@85-189-31-174.proweb.managedbroadband.co.uk] has joined
#go-nuts
07:59 -!- manveru_ [kailan@make-world.info] has joined #go-nuts
08:00 -!- manveru_ [kailan@make-world.info] has quit [Remote host closed the
connection]
08:04 -!- rlab [~Miranda@216-197-113-92.pool.ukrtel.net] has quit [Ping timeout:
258 seconds]
08:05 -!- manveru_ [kailan@make-world.info] has joined #go-nuts
08:05 -!- manveru [kailan@make-world.info] has quit [Disconnected by services]
08:05 -!- manveru [kailan@66.252.28.2] has joined #go-nuts
08:06 -!- manveru [kailan@66.252.28.2] has quit [Disconnected by services]
08:06 -!- manveru_ [kailan@66.252.28.2] has joined #go-nuts
08:08 -!- manveru [kailan@make-world.info] has quit [Remote host closed the
connection]
08:08 -!- manveru [kailan@make-world.info] has joined #go-nuts
08:09 -!- akrill [~akrill@reserved-216-231-57-73.sea0.krillr.com] has quit [Quit:
akrill]
08:09 -!- kssreeram [~kssreeram@122.174.68.151] has joined #go-nuts
08:12 < manveru> yay, my first version of pong is almost done :)
08:12 < uriel> cool!  :)
08:12 < uriel> make sure to post about it to http://www.reddit.com/r/golang/
when you are done ;)
08:13 < manveru> heh, k
08:13 < manveru> don't think i have an account there, though
08:13 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined
#go-nuts
08:14 -!- ikaros [~ikaros@f051060187.adsl.alicedsl.de] has joined #go-nuts
08:15 -!- kashia_ [~Kashia@port-92-200-160-189.dynamic.qsc.de] has quit [Read
error: Connection reset by peer]
08:17 -!- kashia_ [~Kashia@port-92-200-160-189.dynamic.qsc.de] has joined #go-nuts
08:22 < plexdev> http://is.gd/bI8kY by [Russ Cox] in go/src/libmach/ --
libmach: disassemble MOVLQZX correctly
08:29 -!- crashR [~crasher@codextreme.pck.nerim.net] has joined #go-nuts
08:31 -!- adu [~ajr@pool-173-66-9-50.washdc.fios.verizon.net] has quit [Quit: adu]
08:33 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has quit [Ping
timeout: 276 seconds]
08:33 -!- scm [justme@c222097.adsl.hansenet.de] has quit [Ping timeout: 276
seconds]
08:33 -!- akheron [~akheron@lilja.asteriski.fi] has quit [Ping timeout: 276
seconds]
08:33 -!- chressie [~chressie@dreggn.in-ulm.de] has quit [Ping timeout: 276
seconds]
08:34 -!- chressie [~chressie@dreggn.in-ulm.de] has joined #go-nuts
08:34 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts
08:34 -!- akheron [~akheron@lilja.asteriski.fi] has joined #go-nuts
08:34 -!- scm [justme@c222097.adsl.hansenet.de] has joined #go-nuts
08:35 -!- eiro [~marc@phear.org] has quit [Ping timeout: 260 seconds]
08:35 < manveru> that's about it...
08:35 < manveru> now i just wish i could bundle the font in the binary
08:36 -!- kaigan|work
[~kaigan@c-8290e255.1411-10-64736c14.cust.bredbandsbolaget.se] has joined #go-nuts
08:36 < manveru> maybe as a byte array...
08:37 -!- gmurphy [~gmurphy@203.217.43.13] has joined #go-nuts
08:38 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has joined #go-nuts
08:38 < manveru> nah, sdl/ttf only allows filename
08:45 < manveru> hrm
08:45 < manveru> i guess i'll just display the score another way then
08:47 -!- tvw [~tv@e182076036.adsl.alicedsl.de] has quit [Remote host closed the
connection]
08:49 < uriel> not sure if that is of any help, but there is a freetype
re-implementation in Go
08:49 < manveru> that would just add more dependencies
08:50 < manveru> sdl can use fonts, but i dunno what fonts are available on
the target machines
08:50 < manveru> and i'd rather distribute a single file than a tarball
08:51 < manveru> (as source, that is)
08:51 < manveru> anw, i can make a simple and nice visual counter without
text
08:52 -!- micrypt [~micrypt@41-184-21-79.rv.ipnxtelecoms.com] has joined #go-nuts
08:54 -!- Svarthandske [~nn@dsl-tkubrasgw1-fe3cdc00-28.dhcp.inet.fi] has joined
#go-nuts
08:56 -!- kashia_ [~Kashia@port-92-200-160-189.dynamic.qsc.de] has quit [Read
error: Operation timed out]
08:56 -!- ikaros [~ikaros@f051060187.adsl.alicedsl.de] has quit [Quit: Leave the
magic to Houdini]
08:58 -!- ikaros [~ikaros@e179200238.adsl.alicedsl.de] has joined #go-nuts
08:59 -!- kashia_ [~Kashia@port-92-200-160-189.dynamic.qsc.de] has joined #go-nuts
08:59 -!- eiro [~marc@phear.org] has joined #go-nuts
09:09 -!- kashia_ [~Kashia@port-92-200-160-189.dynamic.qsc.de] has quit [Quit:
Leaving]
09:13 < taruti> Are finalizers documented somewhere properly?
09:14 -!- gwaut [~wautergu@ns.milieuinfo.be] has joined #go-nuts
09:15 < manveru> taruti: there are none, afaik
09:18 -!- gmurphy [~gmurphy@203.217.43.13] has quit [Quit: Laters]
09:18 -!- Xeon [~chatzilla@222.73.189.45] has joined #go-nuts
09:20 -!- path[l] [UPP@120.138.102.34] has quit [Quit: path[l]]
09:23 -!- Macpunk [~macpunk@cpe-72-177-26-221.austin.res.rr.com] has quit [Ping
timeout: 245 seconds]
09:28 < uriel> I think there were some explanations when they were
implemented some months ago (although they are not exactly 'finalizers' AFAIK)
09:28 < uriel> searching the go-lang-nuts archives or the dev list archives
probably will help
09:28 < uriel> but I don't think it is recomended using them 99% of the time
09:30 < taruti> uriel: thinking about issue 737
09:30 -!- GilJ [~gilles@zeus.ugent.be] has joined #go-nuts
09:31 < taruti> hmm, runtime.SetFinalizer has docs
09:34 < taruti> I am thinking of adding a finalizer doing easCipher.Reset()
if that code is rejected
09:42 -!- OpenSpace [~ja@91.150.122.225] has quit [Quit: Leaving]
09:42 -!- OpenSpace [~ja@91.150.122.225] has joined #go-nuts
09:49 -!- perdix [~perdix@g227001131.adsl.alicedsl.de] has joined #go-nuts
09:49 -!- perdix [~perdix@g227001131.adsl.alicedsl.de] has quit [Changing host]
09:49 -!- perdix [~perdix@sxemacs/devel/perdix] has joined #go-nuts
10:00 -!- Xeon [~chatzilla@222.73.189.45] has quit [Ping timeout: 258 seconds]
10:02 < dignan> woot
10:02 < dignan> I built sqlite with cgo
10:03 < dignan> i want to write some bindings now ;/
10:03 < dignan> no one did this yet, right?
10:05 < jessta> someone did
10:06 < dignan> oh really
10:06 < jessta> dignan: http://github.com/kuroneko/gosqlite3
10:06 < uriel> dignan: it is a good idea to check
http://go-lang.cat-v.org/library-bindings ;)
10:07 < uriel> (there are at least two sets of sqllite bindings)
10:07 -!- Svarthandske [~nn@dsl-tkubrasgw1-fe3cdc00-28.dhcp.inet.fi] has quit
[Quit: Svarthandske]
10:08 < dignan> Do bindings get subsumed into Go?
10:08 < uriel> subsumed?
10:09 < uriel> if you mean if bindings are accepted into the main Go
distribution, the answer seems to be: No
10:09 -!- ikaros [~ikaros@e179200238.adsl.alicedsl.de] has quit [Quit: Leave the
magic to Houdini]
10:09 < dignan> ah ha
10:09 < uriel> the go distribution includes (almost?) exclusively libraries
in pure Go
10:11 < dignan> thats what it looked like
10:12 < dignan> then i saw misc/cgo, but i guess those are just examples of
how to do your own bindings with cgo
10:12 < uriel> YUP
10:13 < dignan> well, bindings exist, so I can work on my actual project
probably by just copying this bindings file.  I suppose I can just contribute to
it
10:13 < dignan> thanks for the link
10:13 -!- tsung [~jon@112.104.53.151] has joined #go-nuts
10:15 -!- path[l] [~path@122.182.0.38] has joined #go-nuts
10:23 -!- General13372 [~support@71-93-97-216.dhcp.mtpk.ca.charter.com] has joined
#go-nuts
10:27 -!- General1337 [~support@71-93-97-216.dhcp.mtpk.ca.charter.com] has quit
[Ping timeout: 264 seconds]
10:46 -!- rlab [~Miranda@196-86-95-178.pool.ukrtel.net] has joined #go-nuts
10:55 -!- GilJ [~gilles@zeus.ugent.be] has quit [Ping timeout: 264 seconds]
11:01 -!- outrageousness [~andrewz@c-71-229-148-51.hsd1.co.comcast.net] has quit
[Read error: Connection reset by peer]
11:02 -!- outrageousness [~andrewz@c-71-229-148-51.hsd1.co.comcast.net] has joined
#go-nuts
11:07 -!- kota1111 [~kota1111@gw2.kbmj.jp] has quit [Quit: Leaving...]
11:12 -!- Wiz126 [~Wiz126@24.115.240.60.res-cmts.sm.ptd.net] has quit []
11:24 < taruti> Is there a way to serialize an extensible heterogenous
collection in Go?
11:25 < uriel> I'm not sure what you mean, but I'd look into the json and
gob packages
11:27 -!- tvw [~tv@212.79.9.150] has joined #go-nuts
11:28 < taruti> uriel: the problem with gob is that I have to know the type
of values when decoding
11:28 < taruti> uriel: basicaly I have "[]*myInterface" that I would like to
serialize.
11:29 < taruti> now the types can have a Serialize() method, but they would
need unique persistent type tags
11:30 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Quit: WeeChat
0.3.2]
11:30 -!- ikaros [~ikaros@guests62.externals.de] has joined #go-nuts
11:43 < taruti> Does the library have a function for testing equality of
slice contents?
11:43 * taruti seems to add it to every package
11:43 -!- nighty__ [~nighty@210.188.173.245] has quit [Quit: Disappears in a puff
of smoke]
11:46 -!- perdix [~perdix@sxemacs/devel/perdix] has quit [Quit: A cow.  A
trampoline.  Together they fight crime!]
11:55 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has joined #go-nuts
11:55 -!- ikaros [~ikaros@guests62.externals.de] has quit [Quit: Leave the magic
to Houdini]
11:59 < jessta> taruti: what type of slice?
12:06 -!- soo2`` [~user@bas3-toronto02-1279400610.dsl.bell.ca] has joined #go-nuts
12:07 < taruti> jessta: []byte
12:08 < taruti> also wanted xor on []byte:s
12:09 -!- soo2` [~user@bas3-toronto02-1279612289.dsl.bell.ca] has quit [Ping
timeout: 245 seconds]
12:12 -!- ikaros [~ikaros@guests62.externals.de] has joined #go-nuts
12:18 -!- dignan [~tdignan@207-180-158-56.c3-0.wak-ubr1.sbo-wak.ma.cable.rcn.com]
has quit [Ping timeout: 258 seconds]
12:21 -!- kssreeram [~kssreeram@122.174.68.151] has quit [Quit: value semantics ==
42]
12:21 -!- kssreeram [~kssreeram@122.174.68.151] has joined #go-nuts
12:21 -!- rlab [~Miranda@196-86-95-178.pool.ukrtel.net] has quit [Quit: Miranda
IM! Smaller, Faster, Easier.  http://miranda-im.org]
12:25 -!- rlab [~Miranda@196-86-95-178.pool.ukrtel.net] has joined #go-nuts
12:25 -!- fhs [~fhs@pool-71-167-84-226.nycmny.east.verizon.net] has quit [Quit:
leaving]
12:36 -!- GilJ [~gilles@zeus.ugent.be] has joined #go-nuts
12:40 -!- lmoura [~lauromour@200.184.118.130] has joined #go-nuts
12:42 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has quit [Remote host closed the
connection]
12:46 -!- rlab_ [~Miranda@16-209-95-178.pool.ukrtel.net] has joined #go-nuts
12:48 -!- rlab [~Miranda@196-86-95-178.pool.ukrtel.net] has quit [Ping timeout:
240 seconds]
12:52 -!- soo2`` [~user@bas3-toronto02-1279400610.dsl.bell.ca] has quit [Ping
timeout: 240 seconds]
12:53 -!- GilJ [~gilles@zeus.ugent.be] has quit [Ping timeout: 264 seconds]
12:55 -!- ikaros [~ikaros@guests62.externals.de] has quit [Quit: Leave the magic
to Houdini]
13:06 -!- rlab_ [~Miranda@16-209-95-178.pool.ukrtel.net] has quit [Ping timeout:
258 seconds]
13:06 -!- rlab [~Miranda@172-237-95-178.pool.ukrtel.net] has joined #go-nuts
13:08 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
13:16 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts
13:26 -!- GilJ [~gilles@zeus.ugent.be] has joined #go-nuts
13:28 -!- zyichi [~zyichi@125.39.108.16] has joined #go-nuts
13:34 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
13:38 -!- kssreeram [~kssreeram@122.174.68.151] has quit [Quit: value semantics ==
42]
13:40 -!- path[l] [~path@122.182.0.38] has quit [Ping timeout: 264 seconds]
13:48 -!- path[l] [~path@122.182.0.38] has joined #go-nuts
13:48 -!- drry [~drry@unaffiliated/drry] has quit [Ping timeout: 258 seconds]
13:49 -!- cmarcelo [~cmarcelo@200.184.118.130] has joined #go-nuts
13:49 -!- cmarcelo [~cmarcelo@200.184.118.130] has quit [Changing host]
13:49 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has joined
#go-nuts
13:50 -!- drry [~drry@unaffiliated/drry] has joined #go-nuts
13:50 -!- drry [~drry@unaffiliated/drry] has quit [Excess Flood]
13:51 -!- drry [~drry@unaffiliated/drry] has joined #go-nuts
13:51 -!- kssreeram [~kssreeram@122.174.68.151] has joined #go-nuts
13:54 -!- Nexoro [~nexo@c-71-192-75-183.hsd1.ma.comcast.net] has joined #go-nuts
13:56 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Quit:
slashus2]
14:05 -!- oal [~olav@5.79-160-122.customer.lyse.net] has joined #go-nuts
14:05 -!- rv2733 [~rv2733@c-98-242-168-49.hsd1.fl.comcast.net] has joined #go-nuts
14:08 -!- alehorst [~alehorst@201.47.12.150.dynamic.adsl.gvt.net.br] has quit
[Remote host closed the connection]
14:15 -!- micrypt [~micrypt@41-184-21-79.rv.ipnxtelecoms.com] has quit [Ping
timeout: 240 seconds]
14:16 -!- gwaut [~wautergu@ns.milieuinfo.be] has left #go-nuts []
14:23 -!- Venom_X [~pjacobs@71.20.102.220] has joined #go-nuts
14:26 -!- Cyprien_ [~Cyprien@pub1.heig-vd.ch] has quit [Ping timeout: 246 seconds]
14:26 -!- SecretAgent [sa@quake.nitemare.name] has quit [Ping timeout: 246
seconds]
14:27 -!- SecretAgent [sa@quake.nitemare.name] has joined #go-nuts
14:28 -!- awidegreen [~quassel@62.176.237.78] has joined #go-nuts
14:37 -!- terrex [~terrex@194.38.222.87.dynamic.jazztel.es] has joined #go-nuts
14:42 -!- Gracenotes [~person@wikipedia/Gracenotes] has quit [Ping timeout: 248
seconds]
14:44 -!- fwiffo [~none@unaffiliated/fwiffo] has joined #go-nuts
14:45 -!- zyichi [~zyichi@125.39.108.16] has left #go-nuts []
14:45 -!- douglas19 [~douglas19@200.204.237.237] has joined #go-nuts
14:50 -!- TR2N` [email@89-180-143-148.net.novis.pt] has joined #go-nuts
14:50 -!- TR2N [email@89.180.196.239] has quit [Ping timeout: 276 seconds]
14:50 -!- alehorst [~alehorst@201.47.12.150.dynamic.adsl.gvt.net.br] has joined
#go-nuts
15:02 -!- micrypt [~micrypt@41-184-21-79.rv.ipnxtelecoms.com] has joined #go-nuts
15:04 -!- rlab [~Miranda@172-237-95-178.pool.ukrtel.net] has quit [Quit: Miranda
IM! Smaller, Faster, Easier.  http://miranda-im.org]
15:15 -!- millertimek1a2m3 [~adam@rrcs-67-79-54-130.sw.biz.rr.com] has joined
#go-nuts
15:19 -!- kaigan|work
[~kaigan@c-8290e255.1411-10-64736c14.cust.bredbandsbolaget.se] has quit [Quit:
kaigan|work]
15:20 -!- GilJ [~gilles@zeus.ugent.be] has quit [Remote host closed the
connection]
15:22 -!- dho_plan9 [~devon@onager.omniti.com] has quit [Read error: Connection
reset by peer]
15:31 -!- b00m_chef [~watr@d64-180-45-230.bchsia.telus.net] has joined #go-nuts
15:33 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts
15:36 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-159-87.clienti.tiscali.it] has
joined #go-nuts
15:38 -!- millertimek1a2m3 [~adam@rrcs-67-79-54-130.sw.biz.rr.com] has quit [Ping
timeout: 245 seconds]
15:40 -!- Netsplit *.net <-> *.split quits: d_m_, jackman, michael|,
Guest42955, ukai, rbn, Project_2501
15:40 -!- Netsplit over, joins: Project_2501
15:41 -!- dho_plan9 [~devon@onager.omniti.com] has joined #go-nuts
15:41 -!- Netsplit over, joins: Guest42955, jackman, ukai, d_m_, rbn, michael|
15:44 < uriel> oh, joan has been spamming the python lists too, well, at
least now we know somebody shares our pain!
15:46 -!- micrypt [~micrypt@41-184-21-79.rv.ipnxtelecoms.com] has quit [Ping
timeout: 246 seconds]
15:49 -!- mythmon [~mythmon@osuosl/staff/Mythmon] has left #go-nuts []
15:52 -!- brrant [~John@65-102-225-46.hlrn.qwest.net] has quit [Quit: Leaving]
15:53 -!- bcgraham_ [~bcgraham@cpe-67-250-13-100.nyc.res.rr.com] has joined
#go-nuts
15:56 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
15:58 -!- millertimek1a2m3 [~adam@rrcs-67-79-54-130.sw.biz.rr.com] has joined
#go-nuts
16:04 -!- OpenSpace [~ja@91.150.122.225] has quit [Quit: Leaving]
16:14 -!- GilJ [~gilles@85.10.78.123] has joined #go-nuts
16:14 -!- path[l] [~path@122.182.0.38] has quit [Quit: path[l]]
16:15 -!- path[l] [~path@59.162.86.164] has joined #go-nuts
16:16 < kmeyer> heh
16:23 -!- Svarthandske [~nn@dsl-tkubrasgw1-fe3cdc00-28.dhcp.inet.fi] has joined
#go-nuts
16:27 < taruti> Is there a nondirty way of reading structs from memory?
16:28 < taruti> Or just using unsafe.Pointer...
16:30 -!- millertimek1a2m3 [~adam@rrcs-67-79-54-130.sw.biz.rr.com] has left
#go-nuts []
16:30 -!- millertimek1a2m3 [~adam@rrcs-67-79-54-130.sw.biz.rr.com] has joined
#go-nuts
16:30 < kmeyer> in what context?
16:30 -!- douglas19 [~douglas19@200.204.237.237] has quit [Quit: douglas19]
16:30 < kmeyer> why would they be in memory and not have associated type
information?
16:32 < taruti> kmeyer: I am reading C structs written through a pipe.
16:33 -!- bcgraham [~bcgraham@cpe-67-250-13-100.nyc.res.rr.com] has joined
#go-nuts
16:34 -!- bcgraham_ [~bcgraham@cpe-67-250-13-100.nyc.res.rr.com] has quit [Read
error: Operation timed out]
16:36 < kmeyer> Ahhh.  Then, yep.
16:36 -!- tvw [~tv@212.79.9.150] has quit [Remote host closed the connection]
16:38 -!- path[l] [~path@59.162.86.164] has quit [Quit: path[l]]
16:54 -!- r1ito [~r1ito@pha75-21-78-228-187-206.fbx.proxad.net] has joined
#go-nuts
17:09 -!- millertimek1a2m3 [~adam@rrcs-67-79-54-130.sw.biz.rr.com] has quit [Ping
timeout: 265 seconds]
17:13 < plexdev> http://is.gd/bIJhY by [Russ Cox] in go/src/pkg/regexp/ --
regexp: allow escaping of any punctuation
17:13 < plexdev> http://is.gd/bIJi5 by [Russ Cox] in go/src/pkg/template/ --
template: fix handling of pointer inside interface
17:13 < plexdev> http://is.gd/bIJid by [Russ Cox] in go/src/pkg/xml/ -- xml:
fix innerxml handling of & escapes
17:13 < plexdev> http://is.gd/bIJim by [Russ Cox] in go/src/pkg/bytes/ --
bytes: add Next method to Buffer, simplify Read.
17:15 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Read error:
Connection timed out]
17:17 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts
17:17 -!- tvw [~tv@e182076036.adsl.alicedsl.de] has joined #go-nuts
17:23 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has joined #go-nuts
17:23 < taruti> Has anyone got code to receive fd:s over unix sockets?
17:27 -!- Fish [~Fish@9fans.fr] has joined #go-nuts
17:30 -!- millertimek1a2m3 [~adam@rrcs-67-79-54-130.sw.biz.rr.com] has joined
#go-nuts
17:30 -!- illya77 [~illya77@249-152-112-92.pool.ukrtel.net] has joined #go-nuts
17:36 -!- carllerche [~carllerch@enginey-9.border1.sfo002.pnap.net] has joined
#go-nuts
17:38 -!- alehorst [~alehorst@201.47.12.150.dynamic.adsl.gvt.net.br] has quit
[Ping timeout: 248 seconds]
17:38 -!- Boriskr [~Boriskr@95.104.195.1] has joined #go-nuts
17:38 -!- marsu [~marsu@93.15.207.117] has joined #go-nuts
17:39 -!- OpenSpace [~ja@91.150.122.225] has joined #go-nuts
17:42 -!- millertimek1a2m3 [~adam@rrcs-67-79-54-130.sw.biz.rr.com] has quit [Ping
timeout: 265 seconds]
17:42 -!- alehorst [~alehorst@187.59.22.30] has joined #go-nuts
17:44 < plexdev> http://is.gd/bILqO by [Russ Cox] in go/src/pkg/net/ -- net:
add Pipe
17:44 < taruti> hmm, so how do I do the unsafe cast?
17:45 < taruti> []byte -> foo*
17:45 <+iant> (*foo)(unsafe.Pointer(&a[0]))
17:46 < taruti> thanks
17:54 -!- micrypt [~micrypt@41-184-21-79.rv.ipnxtelecoms.com] has joined #go-nuts
17:54 -!- L29Ah [~l29ah@ns2.openhardware.ru] has joined #go-nuts
18:02 < taruti> What would be the Go way of handling callback modules?  i.e.
my library code reads heterogenous values from the pipe and wants to serve them to
client code after parsing them.
18:03 < taruti> Pass a very large interface to the demarshaling function?
18:03 < taruti> the functions are of the type HandleFoo, HandleBar, ...
18:08 -!- L29Ah [~l29ah@ns2.openhardware.ru] has left #go-nuts []
18:13 -!- L29Ah [~l29ah@ns2.openhardware.ru] has joined #go-nuts
18:22 -!- peterdn [~peterdn@cpc1-oxfd18-2-0-cust512.4-3.cable.virginmedia.com] has
quit [Quit: ChatZilla 0.9.86-rdmsoft [XULRunner 1.9.0.15/2009101909]]
18:23 < manveru> taruti: probably interface{} if you don't know beforehand
18:24 < manveru> look for example at container/vector Vector.Do
18:24 < taruti> point.
18:24 < manveru> you can always put that into a custom struct and shadow the
functions that you use to use more specific types
18:31 -!- Gracenotes [~person@wikipedia/Gracenotes] has joined #go-nuts
18:32 -!- addos [~addos@vnet503-hosoc.mcclatchyinteractive.com] has joined
#go-nuts
18:33 -!- rv2733 [~rv2733@c-98-242-168-49.hsd1.fl.comcast.net] has quit [Quit:
Leaving]
18:35 -!- addos [~addos@vnet503-hosoc.mcclatchyinteractive.com] has quit [Client
Quit]
18:37 -!- aho [~nya@g226138131.adsl.alicedsl.de] has joined #go-nuts
18:37 < taruti> hmm, got the interface and pointer things working :)
18:38 < taruti> is there a memcpy lurking in the libraries?
18:44 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has joined #go-nuts
18:45 -!- gilles [~gilles@85.10.78.123] has joined #go-nuts
18:45 < kmeyer> Go doesn't have function overloading, right?
18:46 < exch> nope
18:47 -!- terrex [~terrex@194.38.222.87.dynamic.jazztel.es] has quit [Quit:
Leaving.]
18:47 -!- terrex [~terrex@194.38.222.87.dynamic.jazztel.es] has joined #go-nuts
18:47 -!- gilles [~gilles@85.10.78.123] has quit [Remote host closed the
connection]
18:50 -!- micrypt [~micrypt@41-184-21-79.rv.ipnxtelecoms.com] has quit [Ping
timeout: 258 seconds]
18:51 -!- mehrheit [~mehrheit@lan-84-240-55-160.vln.skynet.lt] has joined #go-nuts
18:51 < manveru> uriel: http://gist.github.com/379723
18:51 < manveru> hrm, forgot to run it through gofmt
18:52 -!- illya77 [~illya77@249-152-112-92.pool.ukrtel.net] has quit [Read error:
Connection reset by peer]
18:53 < manveru> alright :)
18:54 < manveru> turned out bigger than i expected...  nasty math...
18:55 < uriel> manveru: heh, cool
18:57 -!- micrypt [~micrypt@41-184-21-79.rv.ipnxtelecoms.com] has joined #go-nuts
18:59 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts
18:59 < manveru> now i just hope that goinstall will actually work for
Go-SDL for some people
19:13 -!- micrypt [~micrypt@41-184-21-79.rv.ipnxtelecoms.com] has quit [Ping
timeout: 265 seconds]
19:17 -!- gnuvince [~vince@70.35.173.48] has quit [Quit: What the fruit is goin'
on here!?]
19:19 -!- rhelmer [~rhelmer@adsl-71-139-219-78.dsl.snfc21.pacbell.net] has joined
#go-nuts
19:28 -!- millertimek1a2m3 [~adam@rrcs-67-79-54-130.sw.biz.rr.com] has joined
#go-nuts
19:30 -!- ayo [~nya@f052219139.adsl.alicedsl.de] has joined #go-nuts
19:31 -!- aho [~nya@g226138131.adsl.alicedsl.de] has quit [Ping timeout: 276
seconds]
19:36 -!- Gracenotes [~person@wikipedia/Gracenotes] has quit [Ping timeout: 260
seconds]
19:42 -!- Wiz126 [Wiz126@72.20.221.137] has joined #go-nuts
19:44 < taruti> meh cannot find the memcpy
19:45 < taruti> basically I have 2 structures that I need to write out with
a single write call and thus would like to memcpy them to a buffer.
19:45 < taruti> native endian etc
19:47 < uriel> taruti: copy()
19:47 < uriel> is a builtin
19:47 < taruti> uriel: that wants slices
19:47 < uriel> oh, sorry, only read your first comment ;P
19:48 < taruti> maybe if I can convert the pointers into slices...
19:48 < uriel> what are you writting that is so sensitive to a tiny copy?
19:49 < taruti> uriel: fuse.  It really wants everything in a single write
call.
19:49 * uriel smells premature optimization
19:50 < uriel> then copy both structures into a buffer, and then do the
write
19:50 < taruti> uriel: yes, and thus "how do I memcpy a structure into a
buffer" issue :)
19:50 < taruti> encoding.binary has explicit endianess so it doesn't help
very much.
19:51 < uriel> sorry, I'm totally dense, and I should learn not to have
dinner and chat in irc at the same time ;P
19:51 < taruti> =P
19:51 < taruti> I'll try to explain
19:54 < taruti> buf := make([]byte, largeEnough); myfoo := F1(); mybar :=
F2(); somehowPokeIntoBuf(&buf[0], myfoo); somehowPokeIntoBuf(&buf[16], mybar); ...
20:02 -!- Gracenotes [~person@wikipedia/Gracenotes] has joined #go-nuts
20:03 -!- oal [~olav@5.79-160-122.customer.lyse.net] has quit [Remote host closed
the connection]
20:05 -!- Nexoro [~nexo@c-71-192-75-183.hsd1.ma.comcast.net] has left #go-nuts []
20:12 < manveru> taruti: you could try the bytes.Buffer from stdlib
20:15 -!- awidegreen [~quassel@62.176.237.78] has quit [Remote host closed the
connection]
20:16 -!- kssreeram_ [~kssreeram@122.174.67.162] has joined #go-nuts
20:17 -!- Gracenotes [~person@wikipedia/Gracenotes] has quit [Ping timeout: 240
seconds]
20:17 -!- bmizerany [~bmizerany@dsl081-064-072.sfo1.dsl.speakeasy.net] has joined
#go-nuts
20:18 -!- kssreeram [~kssreeram@122.174.68.151] has quit [Ping timeout: 245
seconds]
20:19 -!- micrypt [~micrypt@41-184-21-79.rv.ipnxtelecoms.com] has joined #go-nuts
20:22 < kmeyer> taruti: use unsafe.
20:24 < taruti> so I would use unsafe to convert the structs into []byte and
then write those to bytes.Buffer?
20:25 < taruti> I know how to use bytes.Buffer, and how to get from pointer
to struct to Pointer/uintptr but not sure how to get to a slice.
20:29 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has quit [Ping
timeout: 240 seconds]
20:45 -!- Kashia [~Kashia@port-92-200-115-121.dynamic.qsc.de] has joined #go-nuts
20:48 -!- fwiffo [~none@unaffiliated/fwiffo] has quit [Quit: Lost terminal]
20:53 -!- r1ito [~r1ito@pha75-21-78-228-187-206.fbx.proxad.net] has quit [Ping
timeout: 260 seconds]
20:57 -!- bmizerany [~bmizerany@dsl081-064-072.sfo1.dsl.speakeasy.net] has quit
[Quit: Leaving...]
20:59 -!- Gracenotes [~person@wikipedia/Gracenotes] has joined #go-nuts
21:00 -!- dizm [~dizm@121.98.168.127] has joined #go-nuts
21:00 -!- dizm [~dizm@121.98.168.127] has left #go-nuts []
21:02 -!- ikaros [~ikaros@g227087107.adsl.alicedsl.de] has joined #go-nuts
21:03 -!- dizm [~dizm@121.98.168.127] has joined #go-nuts
21:03 -!- diabolix [~jsoyke@206.210.81.55] has joined #go-nuts
21:05 -!- homiziado [~ernestofr@78.130.67.101.rev.optimus.pt] has joined #go-nuts
21:05 -!- dizm [~dizm@121.98.168.127] has left #go-nuts []
21:07 -!- dizm [~dizm@121.98.168.127] has joined #go-nuts
21:07 -!- dizm [~dizm@121.98.168.127] has left #go-nuts []
21:10 -!- Gracenotes [~person@wikipedia/Gracenotes] has quit [Ping timeout: 248
seconds]
21:11 -!- dizm [~dizm@121.98.168.127] has joined #go-nuts
21:11 -!- dizm [~dizm@121.98.168.127] has left #go-nuts []
21:11 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Quit:
slashus2]
21:13 -!- cmarcelo [~cmarcelo@200.184.118.130] has joined #go-nuts
21:13 -!- cmarcelo [~cmarcelo@200.184.118.130] has quit [Changing host]
21:13 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has joined
#go-nuts
21:14 -!- ikaros [~ikaros@g227087107.adsl.alicedsl.de] has quit [Quit: Leave the
magic to Houdini]
21:15 < kimelto> dho_plan9: did you get my message about the panic?
21:16 < dho_plan9> Nope
21:16 -!- Wiz126 [Wiz126@72.20.221.137] has quit [Ping timeout: 245 seconds]
21:16 -!- ikaros [~ikaros@g227087107.adsl.alicedsl.de] has joined #go-nuts
21:16 < dho_plan9> kmeyer: The Go runtime is written in several languages,
and a significant portion of it is C
21:16 < kimelto> I was able to determine which software "cause" it
21:17 < dho_plan9> kimelto: oh?
21:17 < kimelto> the next step is to determine if its a bug in this software
or in go (or both)
21:17 < dho_plan9> kimelto: What's your theory?
21:18 < kimelto> no theory, just facts: when the symon monitoring tool is
running it fails, when it is stopped all works fine
21:18 < kimelto> weird :)
21:18 < dho_plan9> What is symon?
21:18 < kimelto> http://www.xs4all.nl/~wpd/symon/
21:19 < dho_plan9> mm
21:20 < dho_plan9> That's *really* weird.
21:21 < kimelto> I like it :)
21:21 < dho_plan9> that it has that side-effect.
21:21 -!- bert2 [~IceChat7@p4FDCAB71.dip.t-dialin.net] has joined #go-nuts
21:21 < dho_plan9> I wonder if it has anything to do with the procs stuff.
21:22 < dho_plan9> What's your symon conf look like?
21:23 < kimelto> http://pastebin.com/hU1Y4SXD
21:24 < dho_plan9> meh, you don't even have proc turned on.
21:24 < dho_plan9> or does it do that by default?
21:25 < dho_plan9> no, it doesn't
21:25 < kimelto> by proc you mean procfs?
21:25 < dho_plan9> no
21:25 < dho_plan9> the proc monitor in symon pokes around in kmem
21:25 < dho_plan9> turn off mem, then cpu
21:26 -!- Fish [~Fish@9fans.fr] has quit [Remote host closed the connection]
21:27 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
21:28 < kimelto> building :)
21:28 < dho_plan9> ok
21:30 -!- tor5 [~tor@c-627471d5.04-50-6c756e10.cust.bredbandsbolaget.se] has
joined #go-nuts
21:30 -!- bert2 [~IceChat7@p4FDCAB71.dip.t-dialin.net] has quit [Ping timeout: 258
seconds]
21:31 -!- homiziado [~ernestofr@78.130.67.101.rev.optimus.pt] has left #go-nuts []
21:31 -!- rup [Rupert@deathcoil.net] has quit [Ping timeout: 252 seconds]
21:34 < kimelto> well its not mem, testing without cpu in about 20min
21:35 < dho_plan9> hm
21:35 < dho_plan9> rats, because I doubt it's cpu either.
21:35 < dho_plan9> but that's really, really weird.
21:36 -!- Gracenotes [~person@wikipedia/Gracenotes] has joined #go-nuts
21:37 -!- Venom_X [~pjacobs@71.20.102.220] has quit [Ping timeout: 240 seconds]
21:40 -!- bmizerany [~bmizerany@dsl081-064-072.sfo1.dsl.speakeasy.net] has joined
#go-nuts
21:40 -!- bmizerany [~bmizerany@dsl081-064-072.sfo1.dsl.speakeasy.net] has quit
[Remote host closed the connection]
21:40 -!- bmizerany [~bmizerany@dsl081-064-072.sfo1.dsl.speakeasy.net] has joined
#go-nuts
21:41 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller,
Faster, Easier.  http://miranda-im.org]
21:41 -!- Nexoro [~nexo@c-71-192-75-183.hsd1.ma.comcast.net] has joined #go-nuts
21:41 -!- tvw [~tv@e182076036.adsl.alicedsl.de] has quit [Read error: Connection
reset by peer]
21:47 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has quit [Quit: Leaving]
21:51 -!- GilJ [~gilles@85.10.78.123] has quit [Remote host closed the connection]
21:54 -!- nettok [~netto@200.9.74.14] has joined #go-nuts
21:55 -!- terrex [~terrex@194.38.222.87.dynamic.jazztel.es] has quit [Quit:
Leaving.]
21:55 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has quit [Remote host closed the
connection]
22:00 < kimelto> dho_plan9: failed :)
22:01 < kimelto> will comment all options
22:01 < dho_plan9> alskdgjasldbkjaslkbj
22:05 -!- rup [Rupert@deathcoil.net] has joined #go-nuts
22:06 -!- Wiz126 [Wiz126@72.20.223.159] has joined #go-nuts
22:07 < kimelto> dho_plan9: aha!
22:07 < dho_plan9> ?
22:07 < Tonnerre> Heh, I actually thought the same
22:08 < kimelto> works with only df().  that means its rather if() or io()
22:08 < kimelto> let's bet
22:08 < dho_plan9> guessing io
22:08 < dho_plan9> got a dinner to go to, be back later tonight.
22:08 < kimelto> ok, bon appetit ;)
22:10 -!- Gracenotes [~person@wikipedia/Gracenotes] has quit [Ping timeout: 264
seconds]
22:14 -!- ville- [~ville@a107.ath.cx] has quit [Ping timeout: 248 seconds]
22:14 -!- ville- [~ville@a107.ath.cx] has joined #go-nuts
22:18 -!- XenoPhoenix [~Xeno@cpc5-aztw24-2-0-cust39.aztw.cable.virginmedia.com]
has quit [Ping timeout: 260 seconds]
22:19 -!- diabolix [~jsoyke@206.210.81.55] has quit [Quit: Leaving]
22:21 -!- b0gg1e [~boman@pool-94-37-196-89.dbd-ipconnect.net] has joined #go-nuts
22:21 < b0gg1e> Hi
22:22 < b0gg1e> Is there a good way to cast a *byte into an []byte in cgo?
22:22 < b0gg1e> Or what is the best way to fill a Buffer with the content of
a *byte
22:23 -!- General1337 [~support@71-93-97-216.dhcp.mtpk.ca.charter.com] has joined
#go-nuts
22:26 < taruti> b0gg1e: if you find an answer please poke me too
22:26 < b0gg1e> Hmm have a plan: Impl Reader for *byte, Call
buf.ReadFrom(reader)
22:26 < b0gg1e> Reader interface turns this into a write problem
22:27 -!- General13372 [~support@71-93-97-216.dhcp.mtpk.ca.charter.com] has quit
[Ping timeout: 276 seconds]
22:27 < b0gg1e> X.Pointer(&bytes[0]) gets the pointer to write to, so I can
use C.memmove
22:28 -!- Svarthandske [~nn@dsl-tkubrasgw1-fe3cdc00-28.dhcp.inet.fi] has quit
[Quit: Svarthandske]
22:29 < b0gg1e> This way one should be able to directly fill the buffers
underlying []byte without an intermediary allocation.
22:30 < b0gg1e> Off to try...  :)
22:30 -!- nettok [~netto@200.9.74.14] has quit [Quit: Ex-Chat]
22:32 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has quit [Quit:
leaving]
22:37 -!- avansc|mac [~Adium@adsl-065-005-195-064.sip.rdu.bellsouth.net] has
joined #go-nuts
22:38 < avansc|mac> Hey, i was curious.  is it possible to embed go into a
C++ application, for use like a scripting language?
22:38 < avansc|mac> thanks in advance for any answers.
22:41 -!- DerHorst [~Horst@e176115149.adsl.alicedsl.de] has joined #go-nuts
22:43 -!- rv2733 [~rv2733@c-98-242-168-49.hsd1.fl.comcast.net] has joined #go-nuts
22:45 < b00m_chef> avansc|mac: take a look at cgo
22:45 < avansc|mac> thx
22:45 < b00m_chef> avansc|mac:
http://groups.google.com/group/golang-nuts/msg/d78bf0e03c38299c
22:46 -!- Venom_X [~pjacobs@71.20.102.220] has joined #go-nuts
22:47 < avansc|mac> ah, yeah that would require a recompile it seems.
22:48 -!- ryan_baker [~ryan_bake@128-193-249-134.resnet.oregonstate.edu] has
joined #go-nuts
22:50 -!- oblique- [~oblique@212.50.114.126] has joined #go-nuts
22:51 -!- mehrheit [~mehrheit@lan-84-240-55-160.vln.skynet.lt] has quit [Quit:
Leaving.]
22:51 -!- oblique- [~oblique@212.50.114.126] has quit [Client Quit]
22:51 -!- Ginto8 [~Ginto8@pool-72-82-235-34.cmdnnj.fios.verizon.net] has joined
#go-nuts
22:53 -!- oblique- [~oblique@212.50.114.126] has joined #go-nuts
22:54 -!- oblique- [~oblique@212.50.114.126] has quit [Client Quit]
22:57 -!- ikaros [~ikaros@g227087107.adsl.alicedsl.de] has quit [Quit: Leave the
magic to Houdini]
23:00 -!- gisikw|zzz [~gisikw@137.28.246.34] has quit [Ping timeout: 246 seconds]
23:09 < fuzzybyte> are there Qt bindings for go?
23:11 < kimelto> dho_plan9: io() is the one!!!
23:12 < uriel> fuzzybyte: not AFAIK:
http://go-lang.cat-v.org/library-bindings
23:12 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-159-87.clienti.tiscali.it] has
quit [Quit: E se abbasso questa leva che succ...]
23:13 < uriel> I'm not even sure if bindings for C++ libs are yet possible,
I know iant has been working hard on it
23:13 <+iant> indeed
23:13 <+iant> but does Qt not have a C interface?
23:14 -!- DerHorst_ [~Horst@e176104062.adsl.alicedsl.de] has joined #go-nuts
23:17 -!- DerHorst [~Horst@e176115149.adsl.alicedsl.de] has quit [Ping timeout:
240 seconds]
23:18 -!- Gracenotes [~person@wikipedia/Gracenotes] has joined #go-nuts
23:20 -!- marsu [~marsu@93.15.207.117] has quit [Quit: Leaving]
23:22 < fuzzybyte> according to this it does not have
http://stackoverflow.com/questions/1728509/does-qt-have-a-c-interface
23:24 -!- nettok [~netto@200.9.74.51] has joined #go-nuts
23:26 -!- wuehlmaus [~wuehlmaus@p4FCC7AF7.dip.t-dialin.net] has quit [Ping
timeout: 258 seconds]
23:26 -!- wuehlmaus [~wuehlmaus@p4FCC7995.dip.t-dialin.net] has joined #go-nuts
23:32 -!- oblique- [~oblique@212.50.114.126] has joined #go-nuts
23:32 -!- millertimek1a2m3 [~adam@rrcs-67-79-54-130.sw.biz.rr.com] has quit [Ping
timeout: 265 seconds]
23:33 -!- rhelmer [~rhelmer@adsl-71-139-219-78.dsl.snfc21.pacbell.net] has quit
[Quit: rhelmer]
23:37 -!- oblique- [~oblique@212.50.114.126] has quit [Quit: Digital Love]
23:42 -!- Wiz126 [Wiz126@72.20.223.159] has quit [Ping timeout: 258 seconds]
23:44 < b0gg1e> @taruti This is how I did it now, just tested it.
http://pastebin.com/4i16hLMz
23:45 < b0gg1e> This means I have a bloody early working prototype of libzmq
bindingds :-)
23:45 < taruti> b0gg1e: thanks
23:59 -!- nettok [~netto@200.9.74.51] has quit [Quit: Ex-Chat]
--- Log closed Tue Apr 27 00:00:30 2010