--- Log opened Sun Jul 03 00:00:54 2011
00:01 -!- Slant [~scott@124-148-170-52.dyn.iinet.net.au] has joined #go-nuts
00:02 -!- mkb218 [~mkb@pool-96-233-4-238.bstnma.east.verizon.net] has quit [Read
error: Operation timed out]
00:06 -!- mkb218 [~mkb@pool-96-233-4-238.bstnma.east.verizon.net] has joined
#go-nuts
00:08 -!- Tv [~Tv@cpe-76-168-227-45.socal.res.rr.com] has quit [Quit: Tv]
00:10 -!- Avlar [c1a90437@gateway/web/freenode/ip.193.169.4.55] has joined
#go-nuts
00:11 -!- lucian [~lucian@78-86-217-168.zone2.bethere.co.uk] has quit [Remote host
closed the connection]
00:12 -!- Avlar [c1a90437@gateway/web/freenode/ip.193.169.4.55] has left #go-nuts
[]
00:14 -!- chomp [~chomp@c-67-186-35-69.hsd1.pa.comcast.net] has quit [Read error:
Connection reset by peer]
00:16 -!- thomas___ [~thomas@50.55.235.119] has quit [Quit: leaving]
00:19 -!- Zoopee [alsbergt@zoopee.org] has quit [Quit: Ejected]
00:19 -!- Zoopee [alsbergt@zoopee.org] has joined #go-nuts
00:24 < crazy2be> what is the · character?
00:25 < crazy2be> go uses it like this: runtime·noteclear(Note *n)
00:25 < crazy2be> er, the go std library does
00:25 < crazy2be> at least in the runtime package
00:26 -!- cmike_ [~mcrosby@adsl-99-75-50-230.dsl.bltnin.sbcglobal.net] has joined
#go-nuts
00:32 < cmike_> how is everyone doing today?
00:37 < serialhex> doing well cmike_
00:39 -!- Natch| [~natch@46.246.126.14] has quit [Remote host closed the
connection]
00:41 -!- Dr_Who [~tgall_foo@linaro/tgall-foo] has joined #go-nuts
00:43 -!- b33p [~mgray@li226-224.members.linode.com] has joined #go-nuts
00:44 < cmike_> setting up ubuntu enterprise cloud today
00:45 < cmike_> fairly easy but registering nodes puts up a little fight
00:45 < serialhex> sounds like fun :D
00:49 -!- cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has quit [Remote
host closed the connection]
00:53 -!- cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has joined
#go-nuts
00:58 -!- nteon [~nteon@c-98-210-195-105.hsd1.ca.comcast.net] has joined #go-nuts
00:59 -!- odie5533 [lext@wikipedia/odie5533] has joined #go-nuts
00:59 < odie5533> What sites use Go?
00:59 < Jessica_Lily> golang.org
00:59 < Jessica_Lily> :P
00:59 < cmike_> lol
00:59 < cmike_> quick answer
01:01 < odie5533> so mostly just the one site?
01:02 < Jessica_Lily> im sure there are more I just don't know of any off
the top of my head
01:03 < cmike_> why does it matter what sites use it?
01:05 < cmike_> http://www.getwebgo.com/
01:06 < cmike_> https://github.com/garyburd/twister#readme
01:06 < odie5533> I'm curious what type of sites have been built with Go.
01:06 -!- cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has quit [Remote
host closed the connection]
01:06 < fzzbt> i built a browser chat thingy
01:07 < fzzbt> oddly, most of the time went coding javascript crap than go
01:19 < crazy2be> someone should make a go to javascript compiler
01:20 < serialhex> that'd be cool...  but i hear coffee script is coller
than javascript http://jashkenas.github.com/coffee-script/
01:21 < crazy2be> but not as cool as go :P
01:22 < crazy2be> silly unexpected faults
01:22 < serialhex> very true :D
01:23 < crazy2be> unexpected fault address 0x3ff80000
01:23 < crazy2be> throw: fault
01:24 < cmike_> fzzbt: did you use sockets for your chat program?
01:24 < crazy2be> odie5533: I used it for a small internal site
01:25 < crazy2be> wrote the wfdr web framework in order to do so
01:25 < crazy2be> http://github.com/crazy2be/wfdr
01:27 < fzzbt> cmike_: i used the websocket package at first, but then i
rewrote it using socketio (https://github.com/madari/go-socket.io)
01:30 < cmike_> i made one with nodejs backend but havn't tried it in go
01:33 -!- Tukeke [~Tukeke@unaffiliated/tukeke] has joined #go-nuts
01:33 < Tukeke> :O
01:33 < Tukeke> O_O
01:33 < Tukeke> Hello World!
01:33 < Tukeke> xD
01:36 < cmike_> setting up nodes on ubuntu enterprise cloud is the worst
thing I have messed with in a long time
01:36 < cmike_> does not connect to nodes
01:36 * serialhex is not a fan of ubuntu
01:37 < cmike_> i am losing interest in it fast
01:38 < fzzbt> try arch.  at least it doesnt mess up and break upstream
packages
01:39 < serialhex> ++arch - i'm running it now
01:39 < cmike_> 6hrs and it will not connect to any nodes
01:39 < serialhex> :-/
01:40 < cmike_> about ready to switch, I already have arch downloaded
01:42 < cmike_> you guys run arch on your servers?
01:42 -!- n2vi [~ehg@c-76-21-105-205.hsd1.ca.comcast.net] has joined #go-nuts
01:45 < fzzbt> only debian due to circumstances
01:45 < serialhex> debian >> ubuntu imho :P
01:46 < crazy2be> what's with all the ubuntu hate?
01:46 < crazy2be> I probably wouldn't use it for a production server, but is
arch actually all that much better?
01:47 < crazy2be> I mean, it has more geek cred, but is it actually more
useful?  Does it actually work better?
01:48 < cmike_> i liked ubuntu until today where have have spent 6hrs just
trying to get nodes registers on a cloud controller
01:48 < crazy2be> granted
01:48 < cmike_> i am using ubuntu server because it is supposed to automate
a lot of this but it's failing big time
01:49 < fzzbt> afaik, arch was not primarily designed to be used as a server
distro, but nothing stops one from using it as one.
01:49 -!- Slant [~scott@124-148-170-52.dyn.iinet.net.au] has quit [Quit: Slant]
01:49 < serialhex> well, in my expierence, it's more logical to work with
and theres no 'fluff'...  also all the packages are up-to-date, so you can `pacman
-S go` an you get the latest go release
01:50 < crazy2be> well, that may be nice on a dev box, but it's often nice
to have stable versions instead
01:50 < serialhex> i had ubuntu installed for a while and had a bunch of
problems...  with arch it's much easier to have what i want on my system, and just
what i want
01:51 < crazy2be> I mean, I have friends who rave about how arch is a
"rolling release", so you never have to update between major versions
01:51 < serialhex> yeah, but you dont always have to be on the bleeding
edge...
01:51 < crazy2be> but without those major version changes, you have no place
to easily introduce breaking changes
01:51 < crazy2be> I've never had an ubuntu box break when staying on the
same version
01:52 < serialhex> bt like, i have the latest stable version of both python
2 & 3...  and it's set p for that
01:52 < cmike_> i have always used ubuntu but this 11.04 release has given
me problems on my desktop and servers
01:52 < crazy2be> that's what everyone says, and i've not used it much
myself
01:53 < crazy2be> but I have to wonder how much of it is just slashdot and
general opinion
01:53 < serialhex> yeah, that's just it, if you *need* version X of package
Y and your version of ubuntu dosnt support it yet, then you have to install from
source or break something
01:53 < vsmatck> Debian basically does security updates on old versions of
software to try to minimize breaks.  Important for server.  You never update
between releases on a production system without failure being ok to happen.
01:53 < cmike_> about 11.04 crazy2be ?
01:53 < crazy2be> cmike_: yeah
01:54 < crazy2be> like is it actually much worse, or do people just say that
because that's what the general opinion seems to be?
01:54 < cmike_> no it's not just talk on slashdot, it's real, it has caused
problems for me, I had to roll back to 10.04
01:54 < crazy2be> serialhex: You can get a ppa or install a deb directly if
it is provided
01:55 < crazy2be> vsmatck: Yeah, debian is probably a good choice for a
server
01:55 < crazy2be> cmike_: What kind of problems have you encountered on the
desktop front?
01:55 < serialhex> same with me & 10.10-> 11.04...  didn't work nicely &
fscked up my sys (they don't have the nvidia drivers - just the open source ones
which don't work very well)
01:56 < crazy2be> serialhex: I never upgrade, just do a full backup when I
have time and reinstall fresh
01:56 < cmike_> wifi not working, wifi worked fine on 10.04 out of the box,
11.04 no wifi
01:56 < serialhex> ...
01:56 < crazy2be> it never works properly if you have lots of customized
packages and such
01:56 < cmike_> serious lag on Unity, so i went back to classic desktop, lag
stayed
01:57 < crazy2be> cmike_: Graphics drivers?  I had an issue like that a few
versions back
01:57 < crazy2be> well, andything 3d was super slow
01:58 < serialhex> yeah, personally i never like shutting down / rebooting
my computer...  and a re-install is only reserved for a unsalvagable system
01:58 -!- odie5533 [lext@wikipedia/odie5533] has left #go-nuts []
01:58 -!- ccmike [~cmike@adsl-99-75-50-230.dsl.bltnin.sbcglobal.net] has joined
#go-nuts
01:58 < crazy2be> eh, I use mine enough that it becomes full of cruft if i
don't reinstall for too long
01:58 -!- cmike_ [~mcrosby@adsl-99-75-50-230.dsl.bltnin.sbcglobal.net] has quit
[Quit: cmike_]
01:59 < crazy2be> and hibernating sucks on linux in general
01:59 < crazy2be> so slow
01:59 < crazy2be> slower than a reboot
01:59 < ccmike> you guys running kde or gnome on arch?
01:59 < serialhex> even with installing stuff a lot, i don't expect my
computer to mess up unless i'm running windows :D
02:00 < serialhex> xfce b/c my computer is slow :P
02:00 < crazy2be> well it doesn't mess up, just gets full of files
02:00 < serialhex> but i prefer kde, though you can un any of em equally
well
02:00 < serialhex> ahh
02:02 < ccmike> i care about speed more than looks
02:02 < serialhex> and btw: my computer dosn't hibernate either...  it's on
24/7 (well, as 24/7 as i can be with storms & having the electric company over to
fix stuff)
02:02 < crazy2be> anyway ubuntu isn't always stable, but I think they do a
lot for the Linux community, and people attack them a lot
02:02 < serialhex> then use xfce or lxde, i've never used lxde before, but i
hear it's faster than xfce
02:02 < ccmike> i am not attacking ubuntu, i have wasted 6hrs today and the
stupid thing wont work
02:03 < serialhex> oh, no, don't get me wrong, for someone new whos just
getting into linux and wont do much i'll probably reccomend ubuntu...  just
professionally i wont
02:04 < crazy2be> I mean, Linux used to be horrid before ubuntu, even in the
early versions
02:04 < crazy2be> especially for new users
02:04 < ccmike> i am going to try 10.04 server to see if I can get the cloud
nodes to connect, if not going with Centos or something else on my servers
02:04 < crazy2be> ccmike: How do cloud nodes work?
02:05 < ccmike> one computer is the cloud controller, than you have multiple
nodes that allow you to launch instnaces on them and share resources
02:05 < serialhex> suse was really nice back in the day, and before ubuntu
i'd reccomend that (my bro is running opensuse now b/c of ubuntu-related
headaches)
02:06 < ccmike> ubuntu enterprise cloud does much of the setup for you, but
it is not working on (using 11.04)
02:08 < ccmike> i have always ran ubuntu server for my backends, everything
works fine usually
02:08 -!- shvntr [~shvntr@113.84.124.232] has joined #go-nuts
02:11 < ccmike> what is a good debian based distro for desktops?
02:11 < crazy2be> ubuntu :P
02:11 < ccmike> lol
02:11 < crazy2be> But mint is pretty good i hear too
02:15 < serialhex> why not just use debian for a desktop?  i've never used
it before, but shouldn't it be ~as easy/good??
02:15 -!- foocraft [~ewanas@78.100.167.96] has quit [Quit: leaving]
02:21 -!- twolfe18 [~twolfe18@c-71-61-180-11.hsd1.pa.comcast.net] has joined
#go-nuts
02:21 < ccmike> i guess i could start from a base debian install
02:21 * exch hugs his Arch Linux
02:22 < ccmike> fine, arch it is
02:22 < serialhex> lol..  i'm rather fond of my arch box too :P
02:22 < exch> it's not based on debian :)
02:23 < serialhex> true
02:25 < ccmike> i know i am going to have to learn rpm
02:25 < serialhex> uhm...  you cant use rpm or debs on arch (by default
anyway...  there might be a way to use them some other way)
02:26 < exch> its package manager has no use for rpms
02:28 < serialhex> well afaik you can install non-arch-compiled packages and
maybe theres a way to install deb or rpms that way...  but i havnt delved too deep
into that as there really isnt anything that they dont have i can't get the source
for
02:29 < ccmike> ahh nvm then
02:29 < ccmike> what is arch based on?
02:30 < serialhex> nothing, really, it's kind of like asking what debian or
redhat is based on :P
02:30 < exch> On arch :p
02:31 < ccmike> well ubuntu based on deb so i wasnt sure that arch was based
on
02:31 < serialhex> np
02:32 -!- bugQ [~bug@c-71-195-207-34.hsd1.ut.comcast.net] has quit [Ping timeout:
276 seconds]
02:34 < serialhex> according to this it's the base of 5 other distros:
http://upload.wikimedia.org/wikipedia/commons/8/8c/Gldt.svg
02:34 < serialhex> (about 3/4 the way down)
02:36 < serialhex> wow...  theres even a hurd implementation!  :P
02:37 -!- Slant [~scott@124-148-170-52.dyn.iinet.net.au] has joined #go-nuts
02:39 < ccmike> i will probably install arch on my laptop, may need your
help if I run into some problems serialhex
02:39 < serialhex> np ccmike
02:40 -!- ccc1 [~Adium@114-45-0-197.dynamic.hinet.net] has joined #go-nuts
02:40 < ccmike> i will try rolling back to 10.04 and see if that helps my
cloud problems
02:40 < ccmike> before I give up on ubuntu server
02:41 < serialhex> ok, let me know if ya need anything!
02:43 -!- Queue29_ [~seth@173-8-182-114-SFBA.hfc.comcastbusiness.net] has joined
#go-nuts
02:44 -!- Queue29_ [~seth@173-8-182-114-SFBA.hfc.comcastbusiness.net] has left
#go-nuts []
02:44 -!- Queue29_ [~seth@173-8-182-114-SFBA.hfc.comcastbusiness.net] has joined
#go-nuts
02:44 -!- Queue29_ [~seth@173-8-182-114-SFBA.hfc.comcastbusiness.net] has quit
[Client Quit]
02:46 -!- Natch| [~natch@46.246.125.142] has joined #go-nuts
02:49 -!- Queue29 [~Queue29@173-8-182-114-SFBA.hfc.comcastbusiness.net] has joined
#go-nuts
02:53 -!- ccmike [~cmike@adsl-99-75-50-230.dsl.bltnin.sbcglobal.net] has quit
[Ping timeout: 258 seconds]
02:58 -!- Leon_Nardella [~Leon@201-92-241-106.dsl.telesp.net.br] has joined
#go-nuts
03:05 -!- ccmike [~cmike@adsl-99-75-51-121.dsl.bltnin.sbcglobal.net] has joined
#go-nuts
03:10 < ccmike> you running 64bit arch serialhex ?
03:11 < serialhex> nope...  P4's arent 64 bit :(
03:13 < ccmike> you know what you can get a 750 computing hours on amazon
ec2
03:13 < ccmike> if you need to do some heavy lifting
03:14 < smw> yep, ec2 gives you a free server :-)
03:16 < ccmike> i wish it was 750 free hours / year forever, not just the
first year
03:19 < serialhex> niice!
03:23 < ccmike> it's a micro instance with 1 core and 618mb of ram.  But
it's still very fast
03:23 -!- Slant [~scott@124-148-170-52.dyn.iinet.net.au] has quit [Quit: Slant]
03:23 < ccmike> good enough for a dev testing box and to run go apps on
03:23 < smw> yep
03:24 -!- alehorst [~alehorst@201.47.21.103.dynamic.adsl.gvt.net.br] has quit
[Quit: Leaving.]
03:24 < serialhex> yeah, not bad at all
03:24 < smw> I am an aws person.  Has the http lib gotten any good?
03:24 < smw> Should I make aws libs?
03:25 < ccmike> i have not seen data transfers less than 50MBps on there
03:25 < nteon> smw: what do you mean aws libs?  a library to interact with
the ec2 apis?
03:25 < smw> yes
03:26 < nteon> that could be interesting :)
03:26 < smw> nteon, it is all http based.  Has go fixed its httpd client lib
yet?
03:27 < vsmatck> smw: The go http library has been getting better rapidly.
The current state of it is high quality IMO.
03:28 < smw> sweet
03:28 < smw> I will look into it
03:34 < ccmike> what are you going to do with it smw?  with Go?
03:35 < smw> ccmike, nah, I was planning on doing it with python :-P
03:35 < smw> ccmike, every other language has libraries for aws, go does not
03:35 < ccmike> what are you going to build?
03:35 < ccmike> monitor, management console
03:35 < smw> not sure
03:36 < smw> still trying to figure out what I want to do with go
03:36 < ccmike> same here
03:36 < smw> I have come up with very few ideas that go could do better at
than python.
03:36 < smw> (few ideas I would consider doing)
03:39 < ccmike> ya, still thinking of something to build in Go that I need
03:39 -!- Jessica_Lily [~Jessica@unaffiliated/xray7224] has quit [Read error:
Connection reset by peer]
03:39 -!- Jessica_Lily [~Jessica@85.211.57.20] has joined #go-nuts
03:39 -!- Jessica_Lily [~Jessica@85.211.57.20] has quit [Changing host]
03:39 -!- Jessica_Lily [~Jessica@unaffiliated/xray7224] has joined #go-nuts
03:40 -!- shvntr [~shvntr@113.84.124.232] has quit [Quit: leaving]
03:43 < smw> ccmike, I just thought of something I want.  But I would make
it faster in python and it would require me to learn GUI programming :-P
03:43 -!- Tukeke [~Tukeke@unaffiliated/tukeke] has left #go-nuts ["Saliendo"]
03:44 -!- twolfe18 [~twolfe18@c-71-61-180-11.hsd1.pa.comcast.net] has quit [Quit:
twolfe18]
03:45 < ccmike> i could make something to update my external IP, kinda like
dyndns but to my own domain name
03:45 < ccmike> does go have sleep or wait timers?
03:45 < ccmike> smw, i chose to learn Go instead of py
03:46 < smw> ccmike, go has both timers and sleep
03:46 < smw> I thought of making a dyndns client also
03:46 < smw> the http lib drove me nuts...
03:46 < vsmatck> ccmike: The way people do it generally is to use a go
routine in combination with sleep.  time.After is good for this.
03:47 < vsmatck> You can block on a channel and you'll get a message after
the specified time.
03:47 < ccmike> thanks vsmatck , that would be a nice little starter program
for me
03:48 < ccmike> learn some goroutines in it
03:48 < vsmatck> Er. But you can also just call time.Sleep.  Depends on the
situation.
03:48 < ccmike> since it's a learning opportunity for me, i will just use
both
03:49 < vsmatck> Hm. This is bad advice I offered.
03:50 < serialhex> why?
03:50 < vsmatck> If you want to do something like fire a function after so
much time then time.AfterFunc would be best.
03:52 < serialhex> oh
03:54 < vsmatck> Sorry for being confusing.  I think a good plan would be to
have a function called with time.AfterFunc.  Then in that function you do all the
http stuff to update the dyndns stuff.
03:54 -!- ccmike [~cmike@adsl-99-75-51-121.dsl.bltnin.sbcglobal.net] has quit
[Ping timeout: 276 seconds]
03:55 -!- Dr_Who [~tgall_foo@linaro/tgall-foo] has quit [Quit: ZZZZZzzzzz]
04:01 < nteon> so I have a Request r where Request is defined as 'type
Request struct {*http.Request}'.  how do I pass r to a function that expects a
*http.Request?
04:01 < nteon> i get the error 'cannot use *env.Request() (type Request) as
type *http.Request in assignment'
04:04 < nteon> nm :) I can just do r.Request to refer to the embedded field
04:06 -!- ccmike [~cmike@99.186.237.85] has joined #go-nuts
04:06 -!- rejb [~rejb@unaffiliated/rejb] has quit [Disconnected by services]
04:06 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
04:14 -!- hopelessnewbie [~antonio@123.120.135.130] has quit [Ping timeout: 240
seconds]
04:15 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has quit [Remote host
closed the connection]
04:18 < ccmike> later all
04:18 -!- ccmike [~cmike@99.186.237.85] has quit [Quit: Leaving]
04:21 < nteon> l8r
04:28 -!- ccc1 [~Adium@114-45-0-197.dynamic.hinet.net] has quit [Quit: Leaving.]
04:28 -!- b33p [~mgray@li226-224.members.linode.com] has quit [Quit: Lost
terminal]
04:35 -!- franciscosouza [~francisco@189.63.146.201] has joined #go-nuts
04:41 -!- twolfe18 [~twolfe18@c-71-61-180-11.hsd1.pa.comcast.net] has joined
#go-nuts
04:44 -!- twolfe18 [~twolfe18@c-71-61-180-11.hsd1.pa.comcast.net] has quit [Client
Quit]
04:45 -!- twolfe18 [~twolfe18@c-71-61-180-11.hsd1.pa.comcast.net] has joined
#go-nuts
04:54 -!- twolfe18 [~twolfe18@c-71-61-180-11.hsd1.pa.comcast.net] has quit [Quit:
twolfe18]
04:55 -!- twolfe18 [~twolfe18@c-71-61-180-11.hsd1.pa.comcast.net] has joined
#go-nuts
05:00 -!- powerje [~heathen@li110-138.members.linode.com] has quit [Quit: Lost
terminal]
05:02 -!- twolfe18 [~twolfe18@c-71-61-180-11.hsd1.pa.comcast.net] has quit [Quit:
twolfe18]
05:02 -!- twolfe18 [~twolfe18@c-71-61-180-11.hsd1.pa.comcast.net] has joined
#go-nuts
05:03 -!- hopelessnewbie [~antonio@123.120.133.75] has joined #go-nuts
05:04 -!- twolfe18 [~twolfe18@c-71-61-180-11.hsd1.pa.comcast.net] has quit [Client
Quit]
05:09 -!- Dr_Who [~tgall_foo@linaro/tgall-foo] has joined #go-nuts
05:11 -!- Dr_Who [~tgall_foo@linaro/tgall-foo] has quit [Client Quit]
05:12 < crazy2be> night all
05:15 -!- franksalim [~frank@64-71-23-250.static.wiline.com] has quit [Quit:
Leaving]
05:15 -!- n2vi_ [~ehg@c-76-21-105-205.hsd1.ca.comcast.net] has left #go-nuts []
05:24 -!- franciscosouza_ [~francisco@189.63.146.101] has joined #go-nuts
05:26 -!- hopelessnewbie [~antonio@123.120.133.75] has left #go-nuts []
05:26 -!- majerk [~jsherman@li110-138.members.linode.com] has quit [Remote host
closed the connection]
05:27 -!- franciscosouza [~francisco@189.63.146.201] has quit [Ping timeout: 258
seconds]
05:31 -!- franciscosouza [~francisco@189.63.146.101] has quit [Quit:
franciscosouza]
05:35 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has joined #go-nuts
05:38 -!- crazy2be [~crazy2be@d75-152-167-124.abhsia.telus.net] has quit [Ping
timeout: 255 seconds]
06:24 -!- DisposaBoy [~DisposaBo@79.142.65.51] has joined #go-nuts
06:24 -!- adlan [~adlan@175.138.40.63] has joined #go-nuts
06:45 -!- Locke23rus [~locke23ru@2.93.228.19] has joined #go-nuts
06:48 -!- b33p [~mgray@li226-224.members.linode.com] has joined #go-nuts
06:53 -!- brad_ [~brad@cpe-098-026-120-155.nc.res.rr.com] has joined #go-nuts
06:55 -!- Nisstyre [~nisstyre@109.74.204.224] has quit [Remote host closed the
connection]
06:55 -!- marchdown [~marchdown@erinia.xenoethics.org] has joined #go-nuts
06:56 -!- Nisstyre [~nisstyre@109.74.204.224] has joined #go-nuts
06:56 -!- adlan [~adlan@175.138.40.63] has quit [Remote host closed the
connection]
06:56 -!- Nisstyre [~nisstyre@109.74.204.224] has quit [Remote host closed the
connection]
06:58 -!- Nisstyre [~nisstyre@109.74.204.224] has joined #go-nuts
07:10 -!- Nisstyre [~nisstyre@109.74.204.224] has quit [Remote host closed the
connection]
07:11 -!- Nisstyre [~nisstyre@109.74.204.224] has joined #go-nuts
07:20 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
07:29 -!- Nisstyre [~nisstyre@109.74.204.224] has quit [Remote host closed the
connection]
07:30 -!- Nisstyre [~nisstyre@109.74.204.224] has joined #go-nuts
07:32 -!- zippoxer [~zippoxer@bzq-79-181-208-126.red.bezeqint.net] has quit [Ping
timeout: 250 seconds]
07:32 -!- Skola [~bas@5352A3FB.cm-6-3c.dynamic.ziggo.nl] has joined #go-nuts
07:35 -!- photron [~photron@port-92-201-27-49.dynamic.qsc.de] has joined #go-nuts
07:49 -!- virtualsue
[~chatzilla@cpc6-haye15-0-0-cust125.haye.cable.virginmedia.com] has joined
#go-nuts
07:54 -!- sacho [~sacho@46.10.23.185] has joined #go-nuts
08:00 -!- ronnyy [~quassel@p4FF1C4C8.dip0.t-ipconnect.de] has joined #go-nuts
08:01 -!- DisposaBoy [~DisposaBo@79.142.65.51] has quit [Remote host closed the
connection]
08:03 -!- Project_2501 [~Marvin@82.84.85.87] has joined #go-nuts
08:07 -!- awidegreen [~quassel@h-170-226.a212.priv.bahnhof.se] has joined #go-nuts
08:21 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-156-32.clienti.tiscali.it] has
joined #go-nuts
08:24 -!- Project_2501 [~Marvin@82.84.85.87] has quit [Ping timeout: 244 seconds]
08:25 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has joined #go-nuts
08:27 -!- vmil86 [~vmil86@88.118.37.245] has joined #go-nuts
08:28 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has left #go-nuts []
08:37 -!- huin [~huin@91.85.188.1] has joined #go-nuts
08:50 -!- brad_ [~brad@cpe-098-026-120-155.nc.res.rr.com] has quit [Ping timeout:
244 seconds]
08:50 -!- virtualsue
[~chatzilla@cpc6-haye15-0-0-cust125.haye.cable.virginmedia.com] has quit [Ping
timeout: 255 seconds]
08:53 -!- nteon [~nteon@c-98-210-195-105.hsd1.ca.comcast.net] has quit [Ping
timeout: 240 seconds]
08:55 -!- nteon [~nteon@c-98-210-195-105.hsd1.ca.comcast.net] has joined #go-nuts
09:04 -!- nteon [~nteon@c-98-210-195-105.hsd1.ca.comcast.net] has quit [Quit:
leaving]
09:05 -!- gmrph [~gmurphy@124-148-63-232.dyn.iinet.net.au] has joined #go-nuts
09:05 -!- Slant [~scott@124-148-170-52.dyn.iinet.net.au] has joined #go-nuts
09:07 -!- zimsim [~simon@ip1.c294.amb153.cust.comxnet.dk] has joined #go-nuts
09:10 -!- b33p [~mgray@li226-224.members.linode.com] has quit [Quit: Lost
terminal]
09:12 -!- zippoxer [~zippoxer@bzq-79-181-208-126.red.bezeqint.net] has joined
#go-nuts
09:27 -!- photron [~photron@port-92-201-27-49.dynamic.qsc.de] has quit [Quit:
Leaving]
09:30 -!- shachaf [~shachaf@204.109.63.130] has quit [Ping timeout: 260 seconds]
09:34 -!- zcram [~zcram@77-233-71-195.cdma.dyn.kou.ee] has joined #go-nuts
09:35 -!- hcatlin [~hcatlin@host86-161-143-119.range86-161.btcentralplus.com] has
joined #go-nuts
09:35 -!- hcatlin [~hcatlin@host86-161-143-119.range86-161.btcentralplus.com] has
quit [Changing host]
09:35 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined
#go-nuts
09:37 -!- noam [~noam@87.69.42.61.cable.012.net.il] has quit [Ping timeout: 240
seconds]
09:37 -!- yogib [~kaiser@dslb-188-100-013-185.pools.arcor-ip.net] has joined
#go-nuts
09:43 -!- brad_ [~brad@cpe-098-026-120-155.nc.res.rr.com] has joined #go-nuts
09:44 -!- noam [~noam@87.69.42.61.cable.012.net.il] has joined #go-nuts
09:45 -!- Swader [~bruno@93-137-60-103.adsl.net.t-com.hr] has joined #go-nuts
09:48 < Swader> Is there some kind of easy step by step on getting up and
running on a Windows 7 machine?  I keep reading all these vague build
instructions, and the "getting started" sites just keep deep linking into each
other in a chaotic web of intertwined wannabe wiki pages..  as a web developer, I
find it somewhat difficult to even start trying to dive in.  Can anyone help me
out?
09:49 < str1ngs> Swader: use the windows installer
09:50 < Swader> I failed to locate it.  Can you provide a link please?  I
also see there are various compilers available etc.  Is there a preferred setup or
something of the like?
09:51 < str1ngs> http://code.google.com/p/gomingw/downloads/list
09:51 < str1ngs> the link trail is not very logical I agger
09:51 < str1ngs> agree*
09:53 < Swader> Thanks, I am installing it now.  Is there no x64 version?
09:53 < str1ngs> I would think not windows still in active porting phase
09:53 < str1ngs> I would think x64 would comlicate that alot.  unless you
want to help out?
09:55 < Slant> Is there a binary search function in the standard library?
09:55 < Swader> Help out how?  I'd be glad to, but not sure of how much use
I would be.  So, in order to get the most out of the current Go, I would do best
to install it on an x64 linux machine?
09:56 < Slant> NM, found it.  sort.Search
09:59 < Swader> Go is now installed.  In essence, all I have to do now is
write regular .go text files and compile them using the compile commands provided
in the tutorial, yes?
10:01 -!- GeertJohan [~Squarc@ip4da06866.direct-adsl.nl] has joined #go-nuts
10:02 -!- saschpe [~quassel@opensuse/member/saschpe] has joined #go-nuts
10:03 < zozoR> i find go to be hopeless when it comes to webdeveloping..
unless someone creates an awesome framework that can compare to what else is out
there
10:04 < zozoR> webdeveloping without a framework just takes too much time
10:04 < zozoR> atleast thats my oppinion
10:04 -!- fotang [~mike@41.206.11.33.vgccl.net] has joined #go-nuts
10:05 < Swader> Quite right.  I was hoping to dive into the non-web side of
Go, though.  Just to test the waters, see if it's worth putting into the arsenal.
However, even getting started seems endlessly complex to me at this stage.
10:07 < Swader> After installing Go with the Win installer, do I need to
install a compiler as well?  If so, how do I do this on a windows machine without
building?
10:09 < Swader> Running gccgo, 6g or 6l does not recognize the commands, so
I guess I have to install a compiler or something as well, yes?  Is no one here
working with it on a Win machine?
10:14 < zozoR> well
10:15 < zozoR> i think windows, doesnt add its commands to PATH
10:15 < zozoR> making the whole os useless :D
10:15 < zozoR> which means you cant just write 6g in your commandprompt
10:15 -!- gmrph [~gmurphy@124-148-63-232.dyn.iinet.net.au] has left #go-nuts []
10:16 < zozoR> well, there most be atleast one person in here, who has it
working on windows
10:16 < fotang> newbie, prob with escape sequences: in C or bash,
"\E[4mTheText\E[m" displays TheText on the console, underlined.  In Go I get error
from 8g when compiling:test.go:43: unknown escape sequence: E. Is there a
workaround to markin u text using escape sequences?
10:16 < fotang> wow, that was quite a mouthful...
10:16 < zozoR> \\
10:16 < zozoR> maybe?
10:16 < fotang> fmt.Printf("\E[4mHello\E[m")
10:17 < fotang> kay lemme see
10:17 < zozoR> fmt.Println("\\E[4HELLO\\e[m"
10:18 < zozoR> see if it works
10:18 < fotang> no.  outputs E[4HELLO\e[
10:19 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has joined #go-nuts
10:21 < zozoR> oh well, dont use underline then :P
10:22 -!- firwen [~firwen@2a01:e34:eea3:7e10:4a5b:39ff:fe51:e8ae] has joined
#go-nuts
10:27 < fotang> what if bold?
10:27 < fotang> actually, i need the esc sequences for inverse video,
underlining, and bold
10:29 < Swader> @zozoR Correct, no paths.  Running 8g while in the bin
folder does produce some results.  Running 8l on the produced file then produces
the exe.  I'll add the 8g-8l sequence to a bat file or something, but do tell
please - how do I influence the name of the file that is output by the 8l command?
It always seems to be 8.out.exe, and using [-o out] as in 8l test.go -o test.exe
doesn't seem to work.
10:30 < fotang> bye..gotta go play with package rpc
10:30 -!- fotang [~mike@41.206.11.33.vgccl.net] has quit [Quit: go go go]
10:33 < zozoR> Swader, on linux, its just (for me) 8l -o name somefile.8
10:33 < zozoR> and it comes out as name
10:34 < zozoR> my current build commands are
10:34 < zozoR> 8g -o _go_.8 maps.go main.go monsters.go player.go misc.go
media.go
10:34 < zozoR> 8l -o game _go_.8
10:34 < Swader> It works, thanks!  I was putting the output param at the
end.  So, 8g is the compiler, and 8l is..  what?
10:36 < zozoR> the linker
10:40 < Swader> Understood, cheers.  Ok, so far so good, hello world done,
heh.
10:41 < str1ngs> Swader: also skelterjohn|work has gb which iirc is very
good for windows . due to lack of make
10:41 -!- nekoh [~nekoh@dslb-178-004-065-185.pools.arcor-ip.net] has joined
#go-nuts
10:41 < Swader> gb?
10:41 < str1ngs> Swader: I could be wrong on the specifics since I dont use
windows
10:42 < str1ngs> gb is a build helper for go.
10:42 < Swader> What does that do?  How does it help?
10:42 < str1ngs> and goinstall might have some support for build on windows
10:42 < str1ngs> it would save you from having to hardcode bat files
10:42 < str1ngs> ie os/arch
10:43 < str1ngs> which would make your code more portable
10:43 < zozoR> oh yeah
10:43 < Swader> Oh, there won't be a need for bats, I added it to path and
it works perfectly.
10:44 < str1ngs> right but you still need to compile sources then link by
hand
10:44 < zozoR> why cant i find that site on golang with all the build tools
10:44 < Swader> Indeed.  This helper would help me avoid this, then?
10:44 < str1ngs> which is ok, but for larget projects might be a pain
10:45 < str1ngs> Swader: first check out goinstall
10:45 < zozoR> http://godashboard.appspot.com/project
10:45 < str1ngs> godoc goinstall
10:45 < str1ngs> which is part of the go lang distribution
10:46 < Swader> I'm at a loss here, totally new to "real" programming.  Are
these like mini IDE-s or something?
10:46 < str1ngs> no just build/install tools for go
10:47 < zozoR> but go really is an awesome language
10:47 < zozoR> it is worth the little trouble installing it :D
10:47 < str1ngs> zozoR: http://go-lang.cat-v.org/dev-utils ?
10:48 < str1ngs> that the page you were looking for?
10:48 < Swader> I'm just still really confused..  just looking at the
eleventy billion "most installed packages" makes me crosseyed, it'll take a while
to absorb all this.
10:48 < str1ngs> Swader: probably dont need to worry about 3rd party
packages right now
10:48 < str1ngs> if you are new to programming and go.  stdlib should be
enough
10:48 < zozoR> i was looking for the godashboard/project site (which i
found:P)
10:49 < Swader> Ok, thanks str1ngs
10:49 < zozoR> i only have gocode and sdl-lib beside the stdlib
10:49 < zozoR> so you should be fine
10:50 < Swader> Do you have any of those additional build/install tools?
10:50 < zozoR> nope, i use plain old makefiles :D
10:50 < Swader> Ok, cool, just trying to get the bare minimum right now, not
to turn it all into bloatware
10:50 < zozoR> ^^
10:51 < str1ngs> I use make files but on windows thats no so easy
10:51 -!- fotang [~mike@41.206.11.40.vgccl.net] has joined #go-nuts
10:52 < Swader> So..  hold on a sec, I'm still grasping onto straws with the
build tools..  those are basically go programs that are designed to shortcut your
way through 8g and 8l commands?
10:53 < str1ngs> yes
10:53 < str1ngs> if you were using linux I would suggest using the go
makefile templates
10:53 < str1ngs> but you are not . so I would look at goinstall.  after that
maybe gdb
10:53 < str1ngs> sorry gb
10:54 * Swader nods
10:54 < Swader> roger that
10:54 < str1ngs> if that is to much just make bat files for now
10:54 < fotang> i was here some minutes ago asking about how to use escape
sequences to markup text.  got it: instead of fmt.Printf("\E[4mHello\E[m"), use
fmt.Println("\033[4mHello\033[m").
10:54 < str1ngs> fotang: do you need ansi colors?
10:54 < zozoR> i think its easier just to use a batfile :D
10:55 < fotang> yes strings
10:55 < str1ngs> https://github.com/str1ngs/go-ansi/tree/master/color
10:55 < str1ngs> I made a package for that
10:55 < fotang> oh how come all my googlin didnt uncover that
10:55 < fotang> checking...
10:55 < Swader> Bad SEO :P
10:55 < str1ngs> not well documented color_test.go should help though
10:55 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has joined #go-nuts
10:55 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has left #go-nuts []
10:56 < str1ngs> fotang: its pretty simple.
10:56 < str1ngs> needs nested support which I have not got to
10:57 < fotang> strings: 'underscore' is underline, right?
10:57 < str1ngs> correct
10:57 < fotang> exactly what i needed
10:57 < str1ngs> it also plays nice with fmt
10:58 < str1ngs> ie %-10.10s wont get chopped off
10:59 < str1ngs> so something liken fmt.Printf("%s %s
%s",Green("go"),Stop("red"),Yellow("yield))
10:59 < str1ngs> you get the idea
10:59 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has quit [Remote host
closed the connection]
11:00 < fotang> fmt and os.Stdout.WriteString
11:00 < str1ngs> it wont work without fmt
11:00 < str1ngs> which is intended
11:00 < str1ngs> if os.Stdout.WriteString(Green("good"))
11:01 < str1ngs> will not print ansi escapes at all
11:02 < fotang> fair enough
11:02 < str1ngs> you can wrap it though..
11:03 < str1ngs> func green(in string) (out string) { return
fmt.Sprintf("%s",Green(in)) }
11:04 < str1ngs> fotang: at the least to answer your original question see
https://github.com/str1ngs/go-ansi/blob/master/color/color.go#L7
11:04 < str1ngs> for escaping
11:05 < fotang> wow now i need to learn to 'make' it
11:06 < str1ngs> goinstall github.com/str1ngs/go-ansi/color
11:06 < str1ngs> if you cloned it just use make install
11:06 < str1ngs> or make test
11:07 < fotang> i downloaded str1ngs-go-ansi-ba800b3.tar.gz
11:07 < fotang> and the only target in the makefile, is format....
11:09 < str1ngs> ah gotest
11:09 < str1ngs> actually make test will work
11:09 < str1ngs> its a go template makefile
11:10 < fotang> er...  what do i do now?
11:10 < str1ngs> make test make sure it works
11:10 < str1ngs> after that make install
11:10 < fotang> (now it's how i felt compilin first c program in 93)
11:12 < fotang> i think i have to figure out $(GOROOT) first
11:12 < str1ngs> https://gist.github.com/3d0952ba776fb8ad9a6d
11:13 < str1ngs> then something like that to use it
11:13 < str1ngs> if make is to much use goinstall
11:13 -!- virtualsue [~chatzilla@nat/cisco/x-eaqvgadpmponahjn] has joined #go-nuts
11:16 < fotang> test.go:5: can't find import:
github.com/str1ngs/go-ansi/color
11:16 < fotang> is there a go-learning channel?
11:17 < str1ngs> use goinstall github.com/str1ngs/go-ansi/color
11:20 < fotang> goinstall done.  no error
11:20 -!- ww [~ww@river.styx.org] has joined #go-nuts
11:22 < fotang> question is, where in heaven's name has it been installed?
11:22 < str1ngs> GOROOT
11:22 < str1ngs> fotang: ???
11:22 < str1ngs> sorry fail paste
11:23 < str1ngs> https://github.com/str1ngs/go-ansi as instructions
11:23 < str1ngs> has*
11:23 < Swader> Just FMI..  Is Go (going to be) good for making actual
GUI-ed desktop applications?  Or is its primary purpose something else?
11:23 < fotang> i iguess my go system isnt well set up.  $GOROOT is empty
11:23 < Namegduf> The language is perfectly fine for it.
11:23 -!- telexicon [~telexicon@c-67-160-124-195.hsd1.wa.comcast.net] has joined
#go-nuts
11:23 -!- telexicon [~telexicon@c-67-160-124-195.hsd1.wa.comcast.net] has quit
[Changing host]
11:24 -!- telexicon [~telexicon@unaffiliated/chowmeined] has joined #go-nuts
11:24 < Swader> Do any GUI libraries exist?  How would one begin to craft
such an application?
11:24 < str1ngs> Swader: I've created webkit browser in go.  and a vte
terminal emulator in go.  go-gtk is pretty good
11:26 < Swader> You should post some tutorials of those basic things, it
seems you have plenty of Go under your belt.  I for one would love to have a look
at the process of making a GUI app in Go from scratch.
11:27 < str1ngs> sadly I'm not much for blogging.  more of a doer then
talker
11:27 < str1ngs> I try to help in this channel were I can.
11:28 < Swader> Would you consider posting the source to those files?  I
would love to turn it all into some much needed user friendly tutorials, should I
find the time for it eventually.  Full credit your way, of course.
11:28 < str1ngs> I do the odd micro blogging though like this
https://plus.google.com/102702462186176082109/posts/X9r2BZSi2JZ
11:29 < str1ngs> Swader: one sec I'll give you the link for go-gtk
11:29 < Swader> Got the link, I just don't understand what it is, or what
"bindings" means.  May I add you on +?
11:30 < str1ngs> https://github.com/mattn/go-gtk
11:30 < str1ngs> see the examples folder
11:30 < Swader> Roger that
11:30 < str1ngs> bindings generally are language bindings to generally C
11:31 < str1ngs> in the case of go-gtk it allows you to use C gtk bindings
bug in pure go
11:31 < str1ngs> but*
11:32 < str1ngs> Swader: are you a technical writer or into writing?
11:32 < fotang> str1ngs: it works now; set GOROOT and 'make'd, and 8l
-L_obj/github.com/str1ngs/go-ansi.  now somebody shoot me
11:32 < Swader> The term bindings is abstract to me, what does it entail in
C? I tried googling for it, but there is no simple explanation for a rookie like
me.
11:32 < str1ngs> fotang: lol why not just use goinstall?
11:33 < str1ngs> Swader: you dont need bindings in C. because C is the
mother of all libraries
11:33 < str1ngs> which is a curse really but I wont get into that
11:33 < str1ngs> Swader: so when someone say Go bindings for go-gtk.  they
mean go libraries that use C libraries
11:34 < fotang> str1ngs: i have no clue where goinstall is putting it
11:34 < Swader> I am into writing, so to speak..  I intend to have a decent
programming blog as soon as I put my MVC Framework online some time during this
summer, and I was going to post useful general programming tutorials on the sister
site as well.  That's where the tutorials would come in handy.
11:34 < Swader> So wait..  Go depends on C?
11:34 < str1ngs> fotang: it compiles and installs it like make install
would.  see godoc goinstall
11:34 < str1ngs> Swader: no actually it doesnt
11:34 < GeertJohan> On my laptop and desktop: gocode locks up a long time
when doing the first request for methods on a type (i.e.  in eclipse placing a dot
after fmt, which will probably request all methods on fmt from gocode..).  It
looks like gocode is building up its cache, but on the other side, it uses almost
no cpu, mem or disk i/o..  Any thoughts?  Running Kubuntu 11.04, latest gocode
version, latest goclipse, go weekly.
11:34 < str1ngs> Swader: just some 3rd party libraries
11:35 < fotang> ahhh
11:35 < Swader> I see.  I will delve deeper into gtk then, as soon as I go
through the tutorial and Efficient Go.
11:35 < str1ngs> GeertJohan: I would think its doing caching.  or you just
booted, and kernel cache is ramping up to?
11:36 < str1ngs> Swader: generally you only see go bindings to C . when it
would be more work to replicate it in pure go.  gtk is very mature project
11:37 < Swader> Ok, thanks.  So one can consider it standard (or soon to be)
for GUI on Go, then?
11:37 < ww> well...  go kind of depends on C...  the core is written in C...
11:37 < telexicon> go is a kind of cool language
11:37 < ww> so if you want to build go you need a c compiler
11:39 -!- sacho [~sacho@46.10.23.185] has quit [Ping timeout: 255 seconds]
11:39 < str1ngs> ww: bootstrapping is not depending on C
11:39 < str1ngs> its not like say ruby where large portions of the stdlib is
C
11:39 < GeertJohan> str1ngs: I even have it when linux has over 5 hours
uptime...  and it locks for over 2 minutes sometimes..
11:40 < ww> str1ngs: matter of opinion, i guess
11:41 < str1ngs> GeertJohan: do it do that with all versions of go
11:41 < jessta> There is far more C in the Go runtime than their needs to be
11:41 < jessta> *there
11:42 -!- robteix [~robteix@host25.190-230-217.telecom.net.ar] has joined #go-nuts
11:42 < jessta> For bootstrapping purposes the compilers need to be in C
11:43 < str1ngs> and a self hosting go, is not worth the work imo.  not to
mention stupid chicken/egg syndrome
11:43 < rm445> *a compiler needs
11:45 < ww> "depends on"
11:45 < ww> you'll have a hard time getting go environment up and running
without a c compilation environment is all...  just sayin'
11:46 < GeertJohan> str1ngs: all versions I built until now which are like
the last 7 weekly's I guess
11:46 < GeertJohan> str1ngs: sometimes I just kill gocode and eclipse, and
start them both up again, and then it works immediatly..
11:47 < GeertJohan> maybe some timing/deadlock bug I was thinking
11:47 < str1ngs> GeertJohan: hmm coude be eclipse and JVM rampoing up
11:47 < str1ngs> ramping*
11:48 < GeertJohan> hmm, good point...  guess I assumed that it was gocode
too quickly...  I'll check what eclipse is doing next time it happens
11:48 < str1ngs> GeertJohan: try with vim maybe?
11:48 * ww resists tempation to make snide remarks about java and eclipse
11:48 < GeertJohan> yeah, but I have zero experience with vim XD
11:48 < fotang> any idea why: `8g test.go && 8l test.8` works, but `gccgo
test.go` fails with "test.go:5:6: error: import file ‘color’ not found"?  dont 8l
and gccgo use the same 'go installstion'?
11:48 < str1ngs> thats ok I have zerp experience with eclipse and java :P
11:49 < str1ngs> zero*
11:49 * fotang scratches head
11:50 < str1ngs> fotang: depends on your gccgo version
11:50 < str1ngs> it lags behind gc some
11:50 < GeertJohan> hehe, well I'll look into it some more next time it
happens :)
11:51 < str1ngs> fotang: but I can test with gccgo go :P
11:51 < fotang> gccgo latest.  just downloaded,compiled and installed
11:51 < str1ngs> gccgo --verion
11:51 < str1ngs> version*
11:51 < fotang> that'd would be great
11:51 < fotang> gccgo (GCC) 4.7.0 20110520 (experimental)
11:51 < str1ngs> oh 4.7 snapshot so should be some what ok
11:52 < str1ngs> atleast stdlib wise
11:52 < fotang> perhaps ggcgo is not yet aware that color.a has been
installed
11:52 < telexicon> any plans to make a just in time compiler for go?  to
have perfect handling of goroutines like erlang's vm can do, but with the
performance of the jvm (since go is statically typed it should be possible)?
11:52 < ww> what is color.a (and why is it misspelled)
11:52 < fotang> i put color.a wheere I have all the other packages
(/u1/go/pkg/linux_somethin)
11:53 < GeertJohan> another question, how sould I do this the good way :P
code doesnt work right now, breaks on line 15 with compile error "type side is not
an expression" http://pastebin.com/YiN35k4X
11:53 < Swader> I'm looking into installing and trying goclipse, and am
wondering where the ENV.Vars GOARCH and GOOS should lead.  They are listed as a
requirement for installation.
11:53 < fotang> ww: i dont know why there's no 'u'!  found it so
11:53 < ww> well...  i'm not sure you can use the same .a files
11:54 < ww> may bave changed, but the objects made by gcc and the objects
made by the other go are not guaranteed to be compatible
11:54 -!- moraes [~moraes@189.103.188.201] has joined #go-nuts
11:54 < ww> (let alone findable)
11:54 < ww> see for example some of the discussion on linking to static C
libraries
11:54 < fotang> this is gettin interesting
11:54 < str1ngs> fotang: you need to compile go-ansi with gccgo
11:54 < GeertJohan> Swader: nah, you can skip them.  Goclipse defaults to
your systems architecture and OS if the environment vars are not set.
11:54 < Swader> Ah, cool, thanks
11:54 < GeertJohan> make sure you do set GOROOT and GOBIN though
11:54 < str1ngs> fotang: they use different object files
11:55 < fotang> str1ngs: seems right.  will recompile
11:55 < str1ngs> fotang: possible you can reuse GOROOT with some gcc flags
see the gccgo page on golang
11:55 < GeertJohan> and when you have installed goclipse, go to eclipse's
global preferences > go and fill in all the binary locations (it doesnt pick
them up automatically)..  like 6g, 6l, gofmt, gopack, etc.
11:56 < fotang> ok.  i read too little
11:56 < Swader> The goclipse plugin is installed only after I install
eclipse, yes?
11:57 < Swader> Can I install a 64 bit eclipse and use 32bit gocode?
11:57 -!- awidegreen [~quassel@h-170-226.a212.priv.bahnhof.se] has quit [Ping
timeout: 240 seconds]
11:58 < GeertJohan> yes
11:58 < GeertJohan> ehm oh
11:58 < GeertJohan> I think, dont know for sure..
11:58 < Swader> I'll try
11:59 < GeertJohan> why would you use 64 bit eclipse and 32bit gocode anyway
?
12:00 < Swader> There is no 64bit gocode
12:01 < GeertJohan> just compile it yourself :)
12:01 < GeertJohan> thats really easy
12:01 < Swader> On Windows?
12:01 < GeertJohan> hum, that I do not know..
12:02 -!- robteix [~robteix@host25.190-230-217.telecom.net.ar] has quit [Quit:
Computer has gone to sleep.]
12:02 -!- dario1 [~dario@188-195-144-105-dynip.superkabel.de] has joined #go-nuts
12:02 < str1ngs> fotang: ok you want to make the object file with gccgo -c
color.go
12:03 < str1ngs> fotang: then link with your program
12:03 < str1ngs> fotang: needless to say its more work then 8g
12:03 -!- ronnyy [~quassel@p4FF1C4C8.dip0.t-ipconnect.de] has quit [Remote host
closed the connection]
12:03 < GeertJohan> to be honest, I dont even know if go works ok on
windows...  I believe there are still some problems with that..
12:04 < Swader> I can imagine, yeah, but so far so good, I made it through
hello world without anything exploding.
12:07 < str1ngs> fotang: something like this gccgo ./skel.o ./color.o -o
main -static
12:07 < str1ngs> fotang: but you need to build color first and use "./color"
as import
12:08 -!- fotang [~mike@41.206.11.40.vgccl.net] has quit [Remote host closed the
connection]
12:09 -!- fotang [~mike@41.206.11.21.vgccl.net] has joined #go-nuts
12:10 -!- dario_ [~dario@188-195-144-105-dynip.superkabel.de] has quit [Quit:
WeeChat 0.3.5]
12:29 -!- shachaf [~shachaf@204.109.63.130] has joined #go-nuts
12:31 -!- telexicon [~telexicon@unaffiliated/chowmeined] has quit [Quit: Leaving]
12:32 < Swader> GoClipse works great, but not with GoCode - teaming it up
with that one crashed them both like a lead plane.
12:32 < Swader> (on Windows7 x64)
12:39 < exch> hmm.  Another person with the same strange glfw linking
errors.  But this one is on 64bit openSUSE insteAD of OSX
12:42 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts
12:43 -!- nekoh_ [~nekoh@dslb-178-004-065-167.pools.arcor-ip.net] has joined
#go-nuts
12:43 -!- nekoh [~nekoh@dslb-178-004-065-185.pools.arcor-ip.net] has quit [Ping
timeout: 240 seconds]
12:46 < fotang> str1ngs: yes, 'gccgo color.o test.o' works!  (will now try
to figure out how create shared libcolor.so with gccgo)
12:47 < str1ngs> exch: do you have exact errors?
12:47 < exch> strings: https://github.com/jteeuwen/glfw/issues/1
12:47 < str1ngs> fotang: nice , not sure if you can make C libs though in
the libcolor sense
12:48 < fotang> i dont want people to have to manually link to color.o all
the time
12:49 < str1ngs> exch: hmm not your adverage linking error.  let me see if I
can replicate it
12:50 < exch> I've tried reproducing the installation on my own machine, but
it works as it should
12:51 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has joined #go-nuts
12:52 < str1ngs> what libgl are you using though?
12:52 < str1ngs> first what os are you on?
12:52 < exch> Arch Linux (64-bit)
12:53 < str1ngs> nvidia ?
12:54 < exch> yea.  270.41.19
12:55 < str1ngs> because nvidia has there own libgl which can cause
problems.  but in this cause it seems the opposite
12:56 < exch> Yea, the issues I had with that were solved quite a while ago
13:02 < str1ngs> exch: ya I dont think I'm going to be able to replicate it
since I'm on arch also.
13:04 < str1ngs> exch: but ask there where there glfw install is.  if its
something like /usr/local/lib make sure the run sudo ldconfig
13:04 < str1ngs> or possible use LD_LIBRARY_PATH
13:04 < exch> mm yea, I'll ask them
13:05 < str1ngs> you can test this by possibly building glfw into
/usr/local/
13:05 < str1ngs> I assume you used a PKGBUILD for glfw?
13:05 < exch> In the meantime, I'll post this to the go mailing list.
Perhaps someone has an insight
13:05 < exch> yes
13:05 < exch> actually, no.  I built it manually from source
13:05 < str1ngs> hmm to /usr/local?
13:06 < str1ngs> find /usr/local/{include,lib} ..  not tested
13:07 < exch> it's in /usr/lib
13:09 < str1ngs> ya that wont replicate what I think the issue is
13:09 < str1ngs> this seems alot like the are linking and finding includes
ok . but the dymamic linker can not find at run time
13:09 < str1ngs> which leans toward ldconfig issue
13:10 < exch> It seems that way
13:10 < str1ngs> so you can test this theory . by installing byhand to
/usr/local
13:11 < str1ngs> since arch be default does not have /usr/local in ldconf.d
13:12 < exch> I'll give it a try.  thanks
13:14 < str1ngs> fotang: most people dont use gccgo they use gc
13:16 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has quit [Remote host
closed the connection]
13:17 < str1ngs> fotang: but if it helps heres a Makefile that builds both
with gc and gccgo https://github.com/str1ngs/gur/blob/master/Makefile
13:30 < GeertJohan|afk> Can I define methods on a "type Side int"
13:30 < exch> yes
13:30 < GeertJohan|afk> like func (s Side) myMethod() {} ?
13:30 < exch> yes
13:30 < GeertJohan|afk> ok, because I did that, like here:
http://pastebin.com/YiN35k4X
13:31 < GeertJohan|afk> But I get an error on line 15 stating "type side is
not an expression"
13:31 < exch> you are using the type name in the calculation, instead of the
var name 's'
13:32 < exch> 'side+2' -> 's+2'
13:32 -!- lucian [~lucian@78-86-217-168.zone2.bethere.co.uk] has joined #go-nuts
13:32 < GeertJohan|afk> argh stupid mistake :s
13:32 < GeertJohan|afk> thx!  :D
13:32 < exch> hehe np
13:35 < ww> str1ngs: "most people don't use gccgo they use gc" may change as
newer gcc makes it into the standard distros...
13:38 -!- hopelessnewbie [~antonio@123.120.133.75] has joined #go-nuts
13:40 < hopelessnewbie> hello go nuts, can someone explain to me why the
container/heap package keeps taking about the index of a heap ?
13:40 < hopelessnewbie> how do i get the index of something in the heap ?
13:43 -!- saschpe [~quassel@opensuse/member/saschpe] has quit [Remote host closed
the connection]
13:54 -!- ronnyy [~quassel@p4FF1C4C8.dip0.t-ipconnect.de] has joined #go-nuts
13:54 < exch> hopelessnewbie: I haven't used the heap package myself, but
looking at the docs it doesnt really make sense to me use a specific index on
heap..
13:54 -!- srikanth [~mrsrikant@59.92.0.164] has joined #go-nuts
13:58 -!- colecoleus [kpzfhq@app2.chatmosphere.org] has joined #go-nuts
13:58 < hopelessnewbie> http://golang.org/doc/talks/io2010/balance.go i
found this
13:59 < hopelessnewbie> in that he does things like heap.Remove(&b.pool,
w.i) and w has an internal data structure i int
13:59 < colecoleus> hi ppl
13:59 < hopelessnewbie> so that would be the index ?
14:00 -!- bugQ [~bug@c-71-195-207-34.hsd1.ut.comcast.net] has joined #go-nuts
14:00 -!- colecoleus [kpzfhq@app2.chatmosphere.org] has quit [Client Quit]
14:00 < exch> hopelessnewbie: the Pool type is what implements the heap
interface.  I don't see any mention of an index in it's code
14:03 < hopelessnewbie> ? http://golang.org/src/pkg/container/heap/heap.go
14:04 < exch> ah righty
14:04 -!- angasule [~angasule@190.2.33.49] has joined #go-nuts
14:05 < hopelessnewbie> anyway if i understand this correctly it looks like
the index is the thing that gets used to compare stuff
14:06 < hopelessnewbie> so the heap cannot contain two things that have the
same order ?
14:06 < hopelessnewbie> is that normal for heaps ?
14:07 < exch> Good question.  I
14:08 < exch> *I'm not familiar with heap implementations
14:09 < hopelessnewbie> well, thanks anyway
14:09 -!- ancientlore [~ancientlo@ip68-110-238-176.dc.dc.cox.net] has joined
#go-nuts
14:09 < hopelessnewbie> i really dont want to write my own
14:13 -!- ancientlore [~ancientlo@ip68-110-238-176.dc.dc.cox.net] has quit [Client
Quit]
14:31 -!- ccmike [~cmike@adsl-99-137-202-54.dsl.bltnin.sbcglobal.net] has joined
#go-nuts
14:35 < fotang> str1ngs: by gc (as opposed to gccgo), do u mean 8g/8l?
14:37 -!- gnuvince [~vince@ip-96-43-233-174.dsl.netrevolution.com] has joined
#go-nuts
14:38 -!- Jessica_Lily [~Jessica@unaffiliated/xray7224] has quit [Quit:
Leaving...]
14:44 < jessta> yep
14:49 < fotang> ach, didnt know...  did `man gc' and got a strange man page
about graph counters
14:49 < jessta> fotang: gc is a generic reference to 6g,5g,8g etc.
14:50 < jessta> gc, Go compiler
14:59 -!- hopelessnewbie [~antonio@123.120.133.75] has quit [Quit: Leaving.]
15:01 -!- photron [~photron@port-92-201-27-49.dynamic.qsc.de] has joined #go-nuts
15:01 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Ping
timeout: 255 seconds]
15:01 < lucian> jessta: that sounds very confusing :)
15:02 -!- hcatlin [~hcatlin@host86-161-143-119.range86-161.btcentralplus.com] has
joined #go-nuts
15:02 -!- hcatlin [~hcatlin@host86-161-143-119.range86-161.btcentralplus.com] has
quit [Changing host]
15:02 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined
#go-nuts
15:03 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
15:07 -!- dannyft [~dannyft@3e6b3a68.rev.stofanet.dk] has joined #go-nuts
15:10 -!- zimsim [~simon@ip1.c294.amb153.cust.comxnet.dk] has quit [Ping timeout:
264 seconds]
15:16 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has quit [Remote host closed
the connection]
15:20 -!- xyproto [~alexander@77.40.159.131] has quit [Read error: Operation timed
out]
15:20 -!- balrok [~balrok@login2.zih.tu-dresden.de] has quit [Remote host closed
the connection]
15:20 -!- balrok [~balrok@login2.zih.tu-dresden.de] has joined #go-nuts
15:21 -!- dannyft [~dannyft@3e6b3a68.rev.stofanet.dk] has quit [Ping timeout: 240
seconds]
15:21 -!- robteix [~robteix@host25.190-230-217.telecom.net.ar] has joined #go-nuts
15:22 -!- Husio [husiatyn@oceanic.wsisiz.edu.pl] has joined #go-nuts
15:22 < Husio> hi
15:22 -!- robteix [~robteix@host25.190-230-217.telecom.net.ar] has quit [Client
Quit]
15:22 -!- Cobi [~Cobi@2002:1828:88fb:0:aede:48ff:febe:ef03] has quit [Quit: ZNC -
http://znc.sourceforge.net]
15:22 < Husio> I'm trying to create FIFO on Linux using syscall.Mknod but
compiler is saying tha there's no such function
15:23 < Husio> is it also available only on darwin/freebsd?
15:23 -!- Belg [~kim@gw-gbg.ilait.se] has quit [Ping timeout: 276 seconds]
15:23 -!- nekoh [~nekoh@dslb-178-004-065-167.pools.arcor-ip.net] has quit [Ping
timeout: 240 seconds]
15:24 -!- n2vi [~ehg@c-76-21-105-205.hsd1.ca.comcast.net] has joined #go-nuts
15:25 -!- Cobi [~Cobi@2002:1828:88fb:0:aede:48ff:febe:ef03] has joined #go-nuts
15:30 -!- Jessica_Lily [~Jessica@85.211.57.20] has joined #go-nuts
15:30 -!- Jessica_Lily [~Jessica@85.211.57.20] has quit [Changing host]
15:30 -!- Jessica_Lily [~Jessica@unaffiliated/xray7224] has joined #go-nuts
15:30 -!- bugQ [~bug@c-71-195-207-34.hsd1.ut.comcast.net] has quit [Ping timeout:
250 seconds]
15:31 -!- n2vi [~ehg@c-76-21-105-205.hsd1.ca.comcast.net] has quit [Quit: leaving]
15:32 -!- zippoxer [~zippoxer@bzq-79-181-208-126.red.bezeqint.net] has quit
[Remote host closed the connection]
15:33 -!- Bigbear1 [~Cody@d75-158-128-85.abhsia.telus.net] has joined #go-nuts
15:33 -!- srikanth [~mrsrikant@59.92.0.164] has quit [Quit: Leaving]
15:35 -!- Belg [~kim@gw-gbg.ilait.se] has joined #go-nuts
15:35 -!- xyproto [~alexander@77.40.159.131] has joined #go-nuts
15:37 -!- nekoh [~nekoh@dslb-178-004-070-236.pools.arcor-ip.net] has joined
#go-nuts
15:46 -!- ccmike [~cmike@adsl-99-137-202-54.dsl.bltnin.sbcglobal.net] has quit
[Ping timeout: 240 seconds]
16:02 -!- Slant [~scott@124-148-170-52.dyn.iinet.net.au] has quit [Quit: Slant]
16:03 -!- tgall_foo [~tgall@206.9.88.154] has quit [Ping timeout: 260 seconds]
16:06 -!- magn3ts [~magn3ts@ip68-103-225-65.ks.ok.cox.net] has quit [Ping timeout:
258 seconds]
16:08 -!- magn3ts [~magn3ts@ip68-103-225-65.ks.ok.cox.net] has joined #go-nuts
16:10 < GeertJohan> I have this problem with a type int declaration and
maths on it, any1 can help?  http://pastebin.com/FVFxMVRK
16:10 -!- magn3ts [~magn3ts@ip68-103-225-65.ks.ok.cox.net] has quit [Max SendQ
exceeded]
16:11 -!- magn3ts [~magn3ts@ip68-103-225-65.ks.ok.cox.net] has joined #go-nuts
16:18 -!- nekoh [~nekoh@dslb-178-004-070-236.pools.arcor-ip.net] has quit [Ping
timeout: 244 seconds]
16:18 < GeertJohan> ?
16:19 -!- nekoh [~nekoh@dslb-178-004-065-166.pools.arcor-ip.net] has joined
#go-nuts
16:20 -!- cmike_ [~mcrosby@adsl-99-137-202-54.dsl.bltnin.sbcglobal.net] has joined
#go-nuts
16:21 -!- bugQ [~bug@c-71-195-207-34.hsd1.ut.comcast.net] has joined #go-nuts
16:25 < dtm_> GeertJohn: return c1+Coord((x*10)+y)
16:27 -!- angasule [~angasule@190.2.33.49] has quit [Remote host closed the
connection]
16:28 -!- angasule [~angasule@190.2.33.49] has joined #go-nuts
16:30 -!- ccc1 [~Adium@118-168-109-163.dynamic.hinet.net] has joined #go-nuts
16:30 -!- ccc1 [~Adium@118-168-109-163.dynamic.hinet.net] has quit [Client Quit]
16:34 -!- crazy2be [~crazy2be@d75-152-167-124.abhsia.telus.net] has joined
#go-nuts
16:39 < GeertJohan> ah :)
16:39 -!- Locke23rus [~locke23ru@2.93.228.19] has quit [Ping timeout: 244 seconds]
16:40 -!- fotang [~mike@41.206.11.21.vgccl.net] has quit [Quit: Konversation
terminated!]
16:41 -!- Locke23rus [~locke23ru@2.93.212.50] has joined #go-nuts
16:41 -!- Bigbear11 [~Cody@d75-158-128-85.abhsia.telus.net] has joined #go-nuts
16:41 < Husio> oh, gccgo does not provide complete libraries :(
16:41 < aiju> use gc
16:41 < aiju> problem solved
16:42 < Husio> gc?
16:42 -!- Bigbear1 [~Cody@d75-158-128-85.abhsia.telus.net] has quit [Ping timeout:
246 seconds]
16:42 < aiju> 8g/6g
16:42 < Husio> yea, just compiled
16:43 -!- nekoh [~nekoh@dslb-178-004-065-166.pools.arcor-ip.net] has quit [Ping
timeout: 252 seconds]
16:44 -!- bugQ [~bug@c-71-195-207-34.hsd1.ut.comcast.net] has quit [Ping timeout:
258 seconds]
16:50 -!- nekoh [~nekoh@dslb-188-107-169-129.pools.arcor-ip.net] has joined
#go-nuts
16:50 -!- bugQ [~bug@c-71-195-207-34.hsd1.ut.comcast.net] has joined #go-nuts
16:59 -!- Nisstyre [~nisstyre@109.74.204.224] has quit [Remote host closed the
connection]
16:59 -!- x3n0n [6172174d@gateway/web/freenode/ip.97.114.23.77] has joined
#go-nuts
17:01 -!- Nisstyre [~nisstyre@109.74.204.224] has joined #go-nuts
17:07 -!- awidegreen [~quassel@h-170-226.a212.priv.bahnhof.se] has joined #go-nuts
17:08 -!- tgall_foo [~tgall@206.9.88.154] has joined #go-nuts
17:11 -!- kergoth [~kergoth@ip24-251-173-232.ph.ph.cox.net] has joined #go-nuts
17:19 < Husio> which tool should I use if I want to quickly compile and link
my code without need of writing makefile
17:19 < Husio> ?
17:20 < Husio> I'm testing some apps from godashboard but none of them
compiles
17:20 < dtm_> https://github.com/skelterjohn/go-gb
17:22 < ment> Husio: for i in *.go; do 8g $i; done; 8l -o main *.8
17:23 < Husio> + fail on error
17:26 < ment> echo *.go | xargs -n 1 8g && 8l -o main *.8
17:27 < ment> (this fails on error)
17:29 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has joined #go-nuts
17:36 < jnwhiteh> gb is superb
17:36 < jnwhiteh> godag is good as well!
17:37 -!- rejb [~rejb@unaffiliated/rejb] has quit [Quit: .]
17:37 -!- GeertJohan [~Squarc@ip4da06866.direct-adsl.nl] has quit [Read error:
Connection reset by peer]
17:37 -!- GeertJohan [~Squarc@ip4da06866.direct-adsl.nl] has joined #go-nuts
17:39 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
17:39 < cmike_> anyone have any Google+ invites?
17:39 < ww> 6g -o main.8 *.go && 6l -o main main.8
17:39 < ww> s/8/6/ or something
17:40 < crazy2be> Google++
17:41 < ww> google+ - yet another walled garden?
17:41 < ww> *sigh*
17:41 < ment> no, this is different
17:41 < crazy2be> but it has video chat!
17:41 < ment> you can't opt out if you use anything from google
17:41 < cmike_> but I want an invite plzzzz
17:42 < ment> cmike_: i can send you myspace invite
17:42 < crazy2be> cmike_: Let me know when you get one :P
17:42 < crazy2be> I want one too
17:42 < crazy2be> but It's probably pretty boring without anyone else on
there
17:42 < cmike_> i have been fighting with ubuntu all day yesterday and
today, you should feel sorry for me
17:43 < cmike_> you can be my friend on there crazy2be lol
17:43 < crazy2be> ok :P
17:43 < crazy2be> and i've been fighting with unsafe.Pointers
17:43 < crazy2be> so I feel no pity for you
17:43 < crazy2be> :P
17:43 < cmike_> pointers make my head hurt
17:43 < ww> cmike_, crazy2be unlikely: Vous avez déjà reçu une invitation ?
Nous ne pouvons pas accueillir davantage d'utilisateurs pour le moment.  Nous vous
invitons donc à réessayer ultérieurement.
17:44 < ww> the garden gate has been closed
17:44 < crazy2be> :(
17:44 < crazy2be> climb over the fence!
17:44 < cmike_> that sucks
17:45 -!- smw [~stephen@unaffiliated/smw] has quit [Read error: No route to host]
17:46 < cmike_> getting ready to install Arch after all the recommendations
last night
17:49 < crazy2be> no freebsd: http://xkcd.com/349/
17:50 < cmike_> lol
17:50 < cmike_> that is how I feel setting up a private cloud on ubuntu
17:54 < crazy2be> what does a lexer do?
17:54 < crazy2be> like
http://gopkgdoc.appspot.com/pkg/github.com/cznic/lexer
17:55 < crazy2be> oh, nevermind, I should have googled first
17:55 -!- marianoguerra
[~marianogu@client-81-98-136-47.cht-bng-014.adsl.virginmedia.net] has joined
#go-nuts
17:56 < cmike_> i hope this Arch install goes smooth or I will bang my head
into the wall
17:57 -!- GeertJohan [~Squarc@ip4da06866.direct-adsl.nl] has quit [Quit: Leaving.]
18:00 < marianoguerra> hi, I get this error: invalid operation: result[key]
(index of type *Groups)
18:00 < marianoguerra> this is the related code:
18:00 * marianoguerra waits for pastebin
18:00 < marianoguerra> http://pastebin.com/kfrrSUZx
18:01 < crazy2be> i'm guessing
18:01 < crazy2be> but you can't use a struct as a key
18:02 < crazy2be> wait why are you passing a map and returning a map?
18:02 < marianoguerra> I'm creating a new map whose keys are different and
the values are the same
18:03 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
18:03 < marianoguerra> but key is a string
18:03 < marianoguerra> Group.Key is a string
18:03 -!- Bigbear11 [~Cody@d75-158-128-85.abhsia.telus.net] has quit [Read error:
Connection reset by peer]
18:03 -!- nekoh [~nekoh@dslb-188-107-169-129.pools.arcor-ip.net] has quit [Ping
timeout: 258 seconds]
18:03 < marianoguerra> disclaimer: new to go
18:04 < crazy2be> Why not pass in a []Group and return a map[string]Group
18:04 -!- qeed [~qeed@adsl-98-85-35-171.mco.bellsouth.net] has joined #go-nuts
18:05 -!- mkb218 [~mkb@pool-96-233-4-238.bstnma.east.verizon.net] has quit [Ping
timeout: 260 seconds]
18:05 < crazy2be> and I can't remember if maps are pointer types like
slices, but *Groups might be redundant
18:05 < marianoguerra> because I need to receive a mapping of key:Group and
return a mappgin of key:Group
18:05 -!- mkb218 [~mkb@pool-96-233-4-238.bstnma.east.verizon.net] has joined
#go-nuts
18:06 < crazy2be> ok well what you are doing there is wierd
18:06 < crazy2be> well
18:08 < marianoguerra> Im just generating a new mapping from an old one
changing the kyes
18:08 < crazy2be> Does passing and returning a Groups rather than a *Groups
help?
18:08 < jessta> marianoguerra: new(Groups) won't get you what you want, you
have to make() maps
18:08 < crazy2be> oh, durp
18:08 < marianoguerra> jessta: ok, I will try that
18:08 < crazy2be> missed that
18:08 < crazy2be> also you should pass the length as the second parameter
18:08 < crazy2be> result := make(Groups, len(groups))
18:08 < crazy2be> assuming the length remains the same
18:10 -!- dgnorton [~dgnorton@24.224.96.187] has joined #go-nuts
18:10 < jessta> marianoguerra: also you should use Groups instead of *Groups
18:11 < crazy2be> jessta: Yeah that's what I was saying, although I can't
remember if maps are effectively pointers like slices
18:12 < marianoguerra> jessta: it worked, thanks!
18:13 < crazy2be> marianoguerra: what fixed it?  The switch from new() to
make() or the switch from *Groups to Groups?
18:14 -!- nekoh [~nekoh@dslb-178-004-078-058.pools.arcor-ip.net] has joined
#go-nuts
18:15 -!- yogib [~kaiser@dslb-188-100-013-185.pools.arcor-ip.net] has quit [Ping
timeout: 252 seconds]
18:15 -!- kaiser [~kaiser@dslb-188-100-013-185.pools.arcor-ip.net] has joined
#go-nuts
18:15 < marianoguerra> the switch from new to make (and changing some
references since make seems to return a value and not a pointer)
18:18 -!- Queue29 [~Queue29@173-8-182-114-SFBA.hfc.comcastbusiness.net] has quit
[Remote host closed the connection]
18:18 < crazy2be> xml is great: <sentence>
<word>The</word> <word>quick</word>
<word>brown</word> <word>fox</word>
<word>jumps</word> <word>over</word>
<word>the</word> <word>lazy</word>
<word>dog</word></sentence>
18:20 < serialhex> crazy2be: yeah, for sheer verbosity xml takes the cake!
18:20 < crazy2be> that was an example from
http://en.wikipedia.org/wiki/Lexical_analysis
18:20 < crazy2be> and that's not that bad of xml
18:20 < crazy2be> it could be like
18:21 < cmike_> hey serialhex
18:21 < serialhex> wow...  yeah, i'd use yaml or soemthing else
18:21 < serialhex> hey cmike_
18:21 -!- huin [~huin@91.85.188.1] has quit [Quit: early bedtime :<]
18:22 < serialhex> hows the cloud grid coming cmike_??
18:22 -!- GeertJohan [~Squarc@ip4da06866.direct-adsl.nl] has joined #go-nuts
18:23 < cmike_> nodes are all connected now.  10.04 works, 11.04 POS
18:23 < serialhex> :P
18:23 < cmike_> except having some issues with instances launching and then
terminating
18:23 < crazy2be> <sentance type="demonstration"><word
type="definite-article"><character
type="constanant">T</character><character
type="constanant">h</character><character
type="vowel">e</character></word>...
18:23 < cmike_> installing arch right now on my laptop
18:24 < serialhex> crazy2be: yeah, that'd be much worde :P
18:24 < serialhex> ^worse
18:25 < crazy2be> *sentence
18:25 < serialhex> ....my seplling is uch wrse tody
18:26 < crazy2be> lol
18:27 -!- GeertJohan [~Squarc@ip4da06866.direct-adsl.nl] has quit [Client Quit]
18:33 -!- tav [~tav@2.99.70.91] has quit [Ping timeout: 255 seconds]
18:35 -!- dgnorton [~dgnorton@24.224.96.187] has quit [Quit: dgnorton]
18:36 -!- smw_ [~stephen@unaffiliated/smw] has joined #go-nuts
18:39 -!- tav [~tav@92.20.69.225] has joined #go-nuts
18:41 -!- farhan [~farhan@c-66-235-48-222.sea.wa.customer.broadstripe.net] has
joined #go-nuts
18:43 -!- bugQ [~bug@c-71-195-207-34.hsd1.ut.comcast.net] has quit [Ping timeout:
240 seconds]
18:46 -!- Fish [~Fish@9fans.fr] has joined #go-nuts
18:53 < crazy2be> so how does appengine work differently than a filesystem
or something?
18:53 < crazy2be> er, appengine datastore
18:56 < serialhex> a filesystem typically resides on a metal platter
spinning at insanely high velocities, or a series of cold hard circuits that are
occasionally opened or closed per the whim of the dominating operating system...
18:57 < serialhex> the appengine datastore is in the cloud, whih is white
and fluffy...  and therefore much nicer (and pretty to boot!  :P )
18:57 < crazy2be> lol
18:58 < crazy2be> I don't quite think that's a fair comparision...
18:58 < crazy2be> :P
18:58 < crazy2be> But like why didn't they just make the filesystem map to
one of these systems on the backend using a vfs of some sort?
18:59 < aiju> 21:02 < serialhex> a filesystem typically [...]
18:59 < aiju> a filesystem can be ANYTHING
18:59 < serialhex> sarcasm aiju...  sarcasm is your friend :D
19:00 < crazy2be> and how can I adapt my existing go packages to use
*either* the appengine apis *or* the filesystem depending on user preference?
19:00 < serialhex> idk crazy2be...
19:00 < crazy2be> lol
19:00 < aiju> 20:26 < serialhex> wow...  yeah, i'd use yaml or
soemthing else
19:00 < aiju> yaml ..  yes you can get worse than XML
19:00 < serialhex> umm...  write an abstraction layer?  that'd kinda suck
but that's one way to do it
19:00 < crazy2be> obviously their servers aught to be running plan9 :P
19:01 < crazy2be> yeah but how would I abstract it?
19:01 < crazy2be> I might be able to use the blob datastore
19:01 < serialhex> well, what kinds of things would you have to change if
you were using a filesystem vs the datastore...
19:02 < serialhex> so how spiffy is plan9 crazy2be??
19:02 < crazy2be> i'm not entirely sure
19:02 < crazy2be> serialhex: plan9 is awesome because filesystems are
entirely virtual
19:02 < crazy2be> well
19:02 < crazy2be> almost entierly
19:02 < crazy2be> *entirely
19:02 < serialhex> really?
19:02 < crazy2be> and they are per-process
19:02 < aiju> crazy2be is convoluting stuff
19:03 < serialhex> i've read a bit about it but idk if i want to try and use
it
19:03 < aiju> basically plan 9 provides access for virtually anything
(exceptions notwithstanding) through files / filesystems
19:03 < serialhex> i do have a laptop i can ssh into & play with it that way
19:03 < aiju> and you can have a different namespace in each process
19:03 < crazy2be> plan9 is an awesome idea that I really wish made it's way
into mainstream stuff
19:03 < aiju> serialhex: just install 9vx
19:03 < serialhex> hmm, yeah i read that
19:04 < serialhex> 9vx...  googling
19:05 < serialhex> ooh, looks cool!  thanks aiju!!
19:06 < crazy2be> oooh russ cox
19:06 < aiju> yeah, but it's good, nevertheless
19:07 < jlaffaye> haha
19:07 < serialhex> now lets see how well this runs on my p4!!!  :P
19:07 < aiju> i have it running on a 900 mhz pentium m
19:07 < serialhex> sweet!
19:10 < serialhex> cut paste snarf plumb send scroll...  wtf?  :P
19:10 < crazy2be> hrmph, blobstore requires files to be uploaded by the user
:/
19:10 -!- robteix [~robteix@host25.190-230-217.telecom.net.ar] has joined #go-nuts
19:12 < serialhex> ok, this is going to take some getting used to, but it
looks nice!
19:12 < aiju> serialhex: snarf is plan9-ish for "copy"
19:12 < aiju> plumb can't be explained in one sentence
19:13 < serialhex> heh heh ok...  it looks like theres a bunch of docs by
default so i'll just have to dig through em :D
19:13 < aiju> basically ..  plumb is like clicking on a link
19:13 < aiju> plumbing a text file will open it in your favourite editor
19:13 < serialhex> ahh...  so like if it's a filesystem link or url or
something it'll take me to it
19:13 < aiju> also works file like test.c:456 for the line number
19:13 < serialhex> ooh, thats even cooler!
19:14 < aiju> you can costumize the entire behaviour
19:14 < aiju> and it has many more applications
19:14 < serialhex> wow...
19:18 -!- farhan [~farhan@c-66-235-48-222.sea.wa.customer.broadstripe.net] has
quit [Ping timeout: 258 seconds]
19:19 < ment> but you can't stalk people on facebook nor watch porn
19:20 < aiju> yes you can: linuxemu!
19:20 < aiju> i have updated my facebook page with ite
19:21 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has joined #go-nuts
19:22 -!- NiteRain [~kvirc@c-98-254-236-21.hsd1.fl.comcast.net] has joined
#go-nuts
19:23 -!- ajray [~ajray@short.csc.ncsu.edu] has joined #go-nuts
19:25 < ajray> has anyone tried to build go against uclibc (vs glibc)?
19:26 < aiju> ajray: why would anyone care?
19:26 < aiju> ajray: go has his own libc
19:26 < aiju> the runtime does syscalls directly
19:27 -!- bpalmer [~user@unaffiliated/bpalmer] has quit [Ping timeout: 264
seconds]
19:27 < ajray> aiju: i was doing strace's of some little go programs
19:28 < aiju> and what?
19:28 < ajray> 11 open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY) = 3
19:28 < aiju> uh what the fuck?
19:28 < ajray> i assumed that was glibc
19:29 < aiju> what are you doing?
19:29 < ajray> strace-ing the execution of a little go program.  it loads
that libc
19:29 < aiju> yea yea
19:29 < aiju> but what's that go program?
19:29 -!- marianoguerra
[~marianogu@client-81-98-136-47.cht-bng-014.adsl.virginmedia.net] has quit [Ping
timeout: 276 seconds]
19:30 < ajray> http://github.com/ajray/bit
19:30 < aiju> hm
19:30 < ajray> the go 'hello world ' example does NOT load libc
19:30 < aiju> i'm sure there is some funny stuff where you need to load
glibc under linux
19:30 < ajray> so i'm kind of trying to remove stuff until i dontget the
libc load
19:31 < aiju> no clue how uclibc solves this kind of thing
19:31 < ajray> well it would be loading jsut a different libc
19:31 < ajray> but a muc hsmaller libc
19:31 < str1ngs> ajray: I've compiled go on x86_64 and its run on android
19:31 -!- marianoguerra
[~marianogu@client-86-25-211-41.cht-bng-014.adsl.virginmedia.net] has joined
#go-nuts
19:31 < aiju> isn't android an ARM OS?
19:32 < ajray> str1ngs: with glibc or uclibc?
19:32 < str1ngs> ans bionic is more stripped down then uclibc so I would say
yes
19:32 < str1ngs> bionic
19:32 < ww> aiju: more of a javarm os
19:32 < aiju> str1ngs: not every go program loads libc
19:32 < ajray> str1ngs: is there a repo for it
19:33 < str1ngs> ajray: we are talking go programs here, not go
distribution/proper
19:33 < str1ngs> aka go compiler
19:34 < ajray> yeah
19:34 < ajray> i guess in your case you built it against glibc and it ran
against bionic (b/c they're compatable)?
19:35 < aiju> ajray: i suppose it simply didn't load lic
19:35 < aiju> *libc
19:35 < str1ngs> go binaries are static
19:35 < ww> i've run go programs on android just fine, no linking at all
against libc of any kind
19:35 < ajray> that is a very strong possiblity
19:35 < aiju> *sigh*
19:35 < aiju> guys
19:35 < aiju> this is about dynamic LOADING of libc
19:35 < ww> just can't call the native android things because they only from
java
19:35 < str1ngs> ironically it wanted /etc/resolv.conf though :P
19:35 -!- ajray_ [~ajray@rrcs-97-79-174-130.sw.biz.rr.com] has joined #go-nuts
19:36 < aiju> open("/lib/libc.so.6", O_RDONLY) = 3
19:36 < aiju> i see this one clearly
19:37 < ajray_> and for ref i'm only using the plan 9 compilers/loaders
19:37 < str1ngs> then in it should be fine, just compile for your target
os/arch
19:38 < str1ngs> cgo is another story though
19:38 < ajray_> in that example im not directly using cgo
19:38 < aiju> "net" dynamically loads some stuff
19:39 < ajray_> thats what i was thinking
19:39 < ajray_> it also loads libpthreads.so
19:39 -!- cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has joined
#go-nuts
19:39 < aiju> i would just try it
19:39 < ajray_> open("/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY) = 3
19:39 < ajray_> which i dont think is related to "net", but it might be
19:39 < str1ngs> channels
19:40 < aiju> uh huh?
19:40 < str1ngs> and goroutines
19:40 < aiju> channels have nothing to do with ptrhead
19:40 < aiju> neither goroutines
19:40 < aiju> apples and nuclear bombs
19:41 < ajray_> AFAIK the go runtime spawned an appropriate number of OS
threads (pthreads) and multiplexed goroutines onto those threads itself
19:41 -!- bpalmer [~user@unaffiliated/bpalmer] has joined #go-nuts
19:41 -!- ajray [~ajray@short.csc.ncsu.edu] has left #go-nuts []
19:42 < aiju> ajray_: yeah, and it does so by OS specific means
19:42 < aiju> clone() in linux
19:42 < ajray_> while bionic might be binary compatable with glibc, uclibc
is not, so its safest to build test the go distribution against uclibc
19:42 < aiju> ajray_: nope
19:43 < aiju> i don't think there is any relationship between which libc you
use for building the go compiler with
19:43 < aiju> and which libs gets loaded
19:43 < aiju> and i seriously doubt bionic being binary compatible with
glibc
19:43 < ajray_> ideally i'd just like static binaries
19:44 < aiju> they are static ;P
19:44 < ajray_> yeah.  mostly :-P I'll have to do some more paring and
testing
19:45 < aiju> ah wait
19:45 < aiju> it's really dynamic linking
19:45 < ajray_> ?
19:45 < aiju> i thought it was dynamic _loading_
19:45 < aiju> but according to ldd, they are dynamically linked
19:45 < ajray_> yeah, reduces memory footprint
19:46 < aiju> and CO2 emissions!
19:46 -!- qrush [u1528@gateway/web/irccloud.com/x-pqcyorgzjtaxazfl] has quit
[Quit: Connection closed for inactivity]
19:47 < aiju> ajray_: try -d on 8l
19:47 < ajray_> aiju: you're in here: http://harmful.cat-v.org/software/GCC
19:47 < aiju> i know ;P
19:47 < ajray_> are you from bell labs?
19:47 < aiju> hahahahahahahahha
19:47 < aiju> i wish
19:47 < ajray_> me too
19:47 < aiju> ajray_: -d works
19:47 < aiju> oh sorry
19:47 < aiju> wrong file
19:48 < ajray_> that did not work :-/
19:48 < aiju> yeah
19:48 < aiju> why did they fuck shit up like this
19:48 < aiju> jesus christ
19:49 < ajray_> what did they fuck up exactly?
19:49 < aiju> they dynamically link glibc
19:49 < aiju> to get getaddrinfo()
19:49 < ajray_> lolololol
19:49 < aiju> go used to be completely static
19:49 < ajray_> its a feature not a bug
19:49 < aiju> yeah
19:49 < ajray_> when?  2008?
19:49 < aiju> "it's good engineering practice" -- glibc fag citation
19:50 < aiju> hahaa
19:50 < aiju> few months ago
19:50 < ajray_> orly?
19:50 < aiju> cgo notwithstanding
19:50 < aiju> i think it was just because of OS X or something
19:50 < qeed> how do you 6g not to statically link?  i get pretty big
binaries for something like hello world
19:50 < ajray_> qeed: hello world is statically linked
19:50 < aiju> qeed: not possible
19:51 < ajray_> its just some more complex examples involving networking
that arent (in my very limited testing)
19:51 < aiju> it doesn't dynamically link everything
19:51 < ajray_> qeed: use the gcc go compiler?
19:51 < aiju> just links in glibc for some stuff
19:51 < qeed> ok
19:51 < aiju> just use gc and ignore the size
19:51 < ajray_> aiju: how'd you figure out its dynamically linking to get
getaddrinfo()
19:52 * ajray_ is codediving the 6g/6l source
19:52 < aiju> ajray_: link with -d :)
19:52 < aiju> /home/aiju/go/pkg/linux_386/net.a(cgo_unix.cgo2.o)(.text):
getaddrinfo: not defined
19:52 < ajray_> is 6l a linker or a loader?
19:52 -!- bpalmer [~user@unaffiliated/bpalmer] has quit [Ping timeout: 252
seconds]
19:52 < aiju> a linker
19:53 < aiju> "loader" is old terminology for linker
19:53 < aiju> i consider it confusing
19:53 -!- tav [~tav@92.20.69.225] has quit [Quit: Hakuna Matata]
19:54 < ajray_> i am confused
19:54 < aiju> see ;P
19:54 < aiju> what exactly?
19:55 < aiju> dynamic linking and dynamic loading are two different (yet
related) things
19:55 < aiju> a linker and a loader is actually the same thing
19:55 -!- bpalmer [~user@unaffiliated/bpalmer] has joined #go-nuts
19:56 < ajray_> i thought a loader packaged up the program with its
necessary library functions
19:56 < aiju> yeah, just like a linker
19:56 < ajray_> whereas a linker packaged up the program with the
*references* to the necessary library functions,
19:56 < ajray_> to be loaded at runtime
19:56 < aiju> no
19:56 < aiju> where did you pick that up?  :)
19:57 < ajray_> bad computer engineering degree
19:57 < aiju> hahaha i guessed right
19:57 < ajray_> i cant believe they teach OSes in Java; I'd rather just go
and play with Plan9
19:57 < aiju> OSes in java?
19:57 < ajray_> yeah the OS couse is taught in java.
19:58 < aiju> as long as the OS course doesn't use UNIX or Plan 9, it's not
worth attending anyway
19:58 < aiju> and if a sun employee does it
19:58 < aiju> RUN FOR YOUR LIFE
19:58 < ajray_> ha
19:59 < aiju> i have seen slides by one
19:59 < ajray_> so my goal is still, for the moment, build a go distribution
against uclibc
19:59 < ajray_> hopefully wihtout too much modification
19:59 < aiju> microoptimization at its finest
19:59 < ajray_> op-ti-mize [verb (trans.)]* ...  (gcc) to modify executable
code so that it fails more quickly.
19:59 < aiju> really, it doesn't change anything
19:59 < cmike_> Irony >>
http://www.washingtonpost.com/national/upstate-ny-motorcyclist-dies-after-hitting-head-on-pavement-during-protest-against-helmet-laws/2011/07/03/AGNicNwH_story.html?wprss=rss_national
20:00 < aiju> helmet laws?  hahaha
20:00 < cmike_> ya, he died
20:00 < aiju> so what?
20:00 < aiju> he's not a kid, he took the risk
20:01 < serialhex> <ajray_> i cant believe they teach OSes in Java;
I'd rather just go and play with Plan9
20:01 < serialhex> wtf????
20:02 < ajray_> i think its neat
20:02 < serialhex> i think it's insanity
20:02 < aiju> serialhex means the java part
20:02 < aiju> ajray_ the plan 9 part
20:02 < aiju> i assume
20:02 < serialhex> yeah, play with plan9...  and dont try to write an os in
java
20:03 < crazy2be> like RIM?
20:03 < ajray_> but do try to write an OS in go :-)
20:03 < aiju> hah
20:03 < aiju> continue gofy
20:03 < serialhex> that dosn't really make sense to me
20:03 < ajray_> gofy?
20:03 < serialhex> that would be interesting ajray_!
20:03 < aiju> http://code.google.com/p/gofy/
20:03 < aiju> last commit was in february ;P
20:04 < ajray_> ah
20:04 < serialhex> heh...  i like their design
philosophy:http://gofy.cat-v.org/
20:04 < ajray_> Hah.  aiju THANKS!  that actually saves a lot of work
20:04 < aiju> ajray_: what?
20:05 -!- nick` [~equus@bas1-windsor12-1128743435.dsl.bell.ca] has joined #go-nuts
20:05 < ajray_> i was working on a kernel sort of close to that
20:05 < ajray_> gofy looks a lot simpler though
20:05 < aiju> you can look at it, but it doesn't compile
20:06 < aiju> it did compile ..  in february haha
20:06 < ajray_> wat
20:06 < ajray_> shit
20:06 < crazy2be> go seems like a bad idea for an os
20:06 < crazy2be> too high-level
20:06 < aiju> bs
20:06 < ajray_> maybe thats why its called gofy
20:06 < aiju> go is a bad idea for an OS because it's too instable
20:06 < serialhex> GoFuckYourSelf (GoFY for short), is a new operating
system built using the Go programming language.
20:06 < aiju> ajray_: quite a bit of important stuff in gofy is in C,
actually
20:07 < serialhex> ^from the cat-v page
20:07 < aiju> in an earlier attempt it was Go, but that was just awkward
20:08 < ajray_> run with kvm?
20:08 -!- bpalmer [~user@unaffiliated/bpalmer] has quit [Ping timeout: 260
seconds]
20:08 < aiju> kvm?
20:08 < aiju>
http://code.google.com/p/gofy/source/browse/kernel/runtime/mem.c
20:08 < aiju> e.g.  the memory management code
20:09 < aiju> that code was originally Go code written with C code in mind
20:09 < aiju> and then ported to C, lol
20:09 < aiju> (bits of one of my own OS projects and UNIX V6)
20:10 -!- Dr_Who [~tgall_foo@linaro/tgall-foo] has joined #go-nuts
20:10 < aiju> don't attempt any OS project without having V6 code beforehand
;P
20:11 < ajray_> well i should probably go get that then
20:11 < ajray_> its been a while since ive had v6 on hand
20:11 < aiju> http://www.amazon.com/Lions-Commentary-Unix-John/dp/1573980137
read that one
20:11 < crazy2be> VB6?  :P
20:11 < serialhex> the whole memory address space is _only_ 256TB???
20:11 < aiju> serialhex: INCREDIBLE
20:12 < serialhex> :P
20:12 -!- bpalmer [~user@unaffiliated/bpalmer] has joined #go-nuts
20:12 < aiju> the 64 bit AMD64 has only 48 bit addresses
20:12 < ajray_> ?
20:13 < aiju> if the upper 17 bits of an address aren't either all ones or
zeros, it will fault
20:13 < serialhex> wow...  that sucks
20:13 < aiju> well
20:13 < aiju> serialhex: look at the code
20:13 < aiju> it's already insane to manage the 256 TB
20:14 < serialhex> but i was being sarcastic...  i don't know how anyone
would use 256TB ram in once computer...
20:14 < aiju> i figured as much
20:15 -!- Nisstyre [~nisstyre@109.74.204.224] has quit [Quit: Leaving]
20:15 < ajray_> eh.  theres been plays at large distributed systems that
share memory space
20:15 < ajray_> but i dont think theyve gone anywhere
20:15 -!- Skola [~bas@5352A3FB.cm-6-3c.dynamic.ziggo.nl] has quit [Ping timeout:
276 seconds]
20:15 < serialhex> line 196: static int8 s[] = "Sorry, GOFY doesn't run on
toasters";
20:16 < aiju> serialhex: that's the low memory (i think it was less than 16
MB) error
20:16 -!- Nisstyre [~nisstyre@109.74.204.224] has joined #go-nuts
20:16 < serialhex> heh lol
20:16 < aiju> it usually means you grabbed out a REALLY STRANGE computer
20:16 < aiju> or, more likely, the memory detection fucked up
20:16 < serialhex> yeah, the surrounding lines are:
20:16 < serialhex> if(memsize < 16777216) {
20:17 < serialhex> main·fuck(s, sizeof(s));
20:18 -!- kergoth_ [~kergoth@ip24-251-173-232.ph.ph.cox.net] has joined #go-nuts
20:18 < serialhex> i like that func name: mainfuck :P
20:18 < ajray_> whats the point of the dot in variable names?
20:18 < aiju> ajray_: it's the way the linker names Go functions
20:18 < aiju> package·name
20:18 < ajray_> okay
20:18 < crazy2be> why doesn't it use an actual dot?
20:18 < ajray_> neat way to do scoping
20:18 < crazy2be> how do they type that?
20:19 < aiju> crazy2be: "foo.bar" what does that do in C? :)
20:19 < serialhex> ...magic
20:19 < ajray_> crazy2be: learn 2 utf8
20:19 < serialhex> utf8 magic
20:19 < aiju> i can type dot with alt gr + ,
20:19 < crazy2be> ..>.
20:19 < crazy2be> I can't
20:20 < aiju> you can always adjust your layout ..
20:20 < serialhex> nor can i :(
20:21 < ajray_> i use the digraphs shortcut in vim
20:21 < aiju> just adapt your keyboard layout
20:21 < ajray_> but i like us :-) its easy and simple
20:21 < serialhex> hey, if i send a function a slice, and i change said
slice...  that changes the slice outside that function too right.  like if i have
a bunch of functions accessing the same slice...
20:21 < serialhex> or do i have to learn pointers
20:22 < aiju> serialhex: no, it doesn't change the slice
20:22 * serialhex is afraid of pointers...
20:22 < serialhex> ffs!
20:22 < aiju> just return the new slice
20:22 < ajray_> serialhex: are you talking about doing this in different
goroutines?
20:22 < serialhex> yeah, possibly
20:23 < crazy2be> aiju: really?
20:23 < aiju> slices are not thread-safe
20:23 < serialhex> i'm trying to remove elements when they match certain
criteria...  otherwise i'm apt to get infinite loops
20:23 < crazy2be> I thought a slice was like this: struct Slice {len int;cap
int;data *Array}
20:23 < aiju> crazy2be: yes
20:23 < crazy2be> internally that is
20:23 < aiju> a slice is exactly this
20:24 < aiju> pointer, len, cap
20:24 < crazy2be> in that order?
20:24 < ajray_> http://aiju.de/rant/autotools.jpg <- this just made my
week :-)
20:24 < aiju> someone working with mingw made that one
20:24 < serialhex> autotools??  should i not want to know what those are
20:24 < ajray_> oh god you do not want to know the horror
20:25 < aiju> serialhex: configure scripts
20:25 < aiju> are generated by autotools
20:25 < serialhex> oh really?  nice to know
20:25 < ajray_> autotools == autogen + autoconf + automake + autohell
20:25 < aiju> so you know whom to kill?
20:25 < serialhex> hopefully i wont ever have to deal with them (though
chances are i will eventually have to)
20:26 < serialhex> yes, so i know whom to kill :D
20:26 -!- fenicks [~fenicks@log77-3-82-243-254-112.fbx.proxad.net] has joined
#go-nuts
20:28 < serialhex> If you think C++ is not overly complicated, just what is
a protected abstract virtual base pure virtual private destructor and when was the
last time you needed one?  -- Tom Cargill
20:28 * serialhex is afraid of learning C++ while getting his CS degree
20:29 < crazy2be> a destructor that can only be called by subclasses of the
class and must be implemented by all subclasses
20:29 * ajray_ is afraid of getting a CS degree
20:29 < exch> degrees are overrated
20:30 < ajray_> i work with one of strousomb(sp)'s research students
20:30 < ajray_> he always talks about how wonderful C++0x is (going to be).
20:30 < crazy2be> well it is
20:30 < crazy2be> compared to old C++
20:30 < crazy2be> but not compared to go :)
20:31 < crazy2be> also saying "abstract virtual base pure virtual" is
redundant
20:31 -!- awidegreen [~quassel@h-170-226.a212.priv.bahnhof.se] has quit [Ping
timeout: 264 seconds]
20:31 < crazy2be> you could just say "pure virtual"
20:31 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has quit [Remote host closed
the connection]
20:31 * serialhex is afraid of what i might have to learn to get a CS degree...
Java vs C++ ...eww!
20:32 < serialhex> ok crazy2be, you can stop showing off now :P
20:32 -!- Jessica_Lily [~Jessica@unaffiliated/xray7224] has quit [Ping timeout:
252 seconds]
20:32 < ajray_> instead i'm getting a textile engineering degree >.>
20:32 < crazy2be> lol
20:33 < serialhex> lol
20:33 < dforsyth> i got a degree once
20:34 < serialhex> did it hurt dforsyth??
20:34 < crazy2be> do these two functions look like they would properly
convert between go style arrays/slices and c style arrays?
https://gist.github.com/1062583
20:34 -!- TheSwader [~bruno@93-137-55-77.adsl.net.t-com.hr] has joined #go-nuts
20:35 -!- Swader [~bruno@93-137-60-103.adsl.net.t-com.hr] has quit [Ping timeout:
244 seconds]
20:36 < serialhex> crazy2be: in my completely unprofessional &
semi-knowlegeable opinion: yes
20:36 -!- Jessica_Lily [~Jessica@85.211.19.216] has joined #go-nuts
20:36 -!- Jessica_Lily [~Jessica@85.211.19.216] has quit [Changing host]
20:36 -!- Jessica_Lily [~Jessica@unaffiliated/xray7224] has joined #go-nuts
20:37 < crazy2be> serialhex: that makes two unprofessional and
semi-knowlegable people who think it is correct
20:38 < serialhex> awesome!!!  therefore it must be quazi-professional and
possibly-workable :D
20:38 < crazy2be> heh
20:38 < crazy2be> i'll write a test function and see if it explodes
everywhere
20:39 < |Craig|> my professional opinion is I don't know, and this opinion
comes with no warranty, and is provided on an as is basis
20:40 -!- robteix [~robteix@host25.190-230-217.telecom.net.ar] has quit [Quit:
Computer has gone to sleep.]
20:40 -!- Dr_Who [~tgall_foo@linaro/tgall-foo] has quit [Quit: ZZZZZzzzzz]
20:41 < serialhex> sweet!!  now we have a professional's opinion!!  we could
market this....
20:42 < ajray_> first you must patent it!
20:42 -!- photron [~photron@port-92-201-27-49.dynamic.qsc.de] has quit [Ping
timeout: 276 seconds]
20:42 < crazy2be> yay software patents!
20:43 < |Craig|> ya, lets patent converting arrays to different formats!
20:43 < aiju> anti software patents campaigns have an annoying aspect
20:43 < aiju> they imply that other patents are good
20:43 < crazy2be> other patents are better
20:43 < |Craig|> sometimes
20:43 < crazy2be> than software panents
20:43 < crazy2be> *patents
20:44 < aiju> they are just as bad
20:44 * serialhex agrees
20:44 * ajray_ stays far away from that debate
20:45 < serialhex> :P
20:45 -!- nick` [~equus@bas1-windsor12-1128743435.dsl.bell.ca] has quit [Quit:
Leaving]
20:45 < crazy2be> assert package is giving me a :( error
20:45 < aiju> there is an assert package?
20:46 < crazy2be> https://github.com/bmizerany/assert
20:46 < crazy2be> useful for testing
20:47 < crazy2be> help: need help?
20:47 < ajray_> i thought error handling was integral to writing idiomatic
go
20:47 < ajray_> why do you need an assert package to do error handling?
20:48 -!- awidegreen [~quassel@h-170-226.a212.priv.bahnhof.se] has joined #go-nuts
20:48 < cmike_> i see many people in here using github for code.  No svn or
googlecode users here?
20:48 < aiju> we chase people away who use svn
20:48 < aiju> if we're having a good day, that is
20:48 < serialhex> svm = satan's versioning manager
20:48 < str1ngs> crazy2be: sorry weechat cliched :P
20:49 < cmike_> what bout hg aiju
20:49 < aiju> hg is fine
20:49 -!- Jessica_Lily [~Jessica@unaffiliated/xray7224] has quit [Read error:
Connection reset by peer]
20:49 -!- Jessica_Lil [~Jessica@85.211.19.216] has joined #go-nuts
20:49 < aiju> http://code.google.com/p/plan9front/ ;P
20:49 -!- Jessica_Lil [~Jessica@85.211.19.216] has quit [Client Quit]
20:49 < ajray_> hg imma let you finish but git is one of the best
distributed versioning control systems of all time.  Of all time!
20:49 < crazy2be> ajray_: It's used when writing unit tests, not for
handling errors
20:50 * ajray_ does unit tests without.  oh well
20:50 < aiju> i only test units of soldiers
20:51 < kergoth_> hg and git are both great.  i'm only really good with git
myself, but they're really very similar
20:51 < serialhex> units of soldies??  are you creating an army aiju??
20:51 < aiju> serialhex: no, i was making a pun
20:51 < aiju> i haven't written unit tests until recently
20:51 < aiju> and even then i was forced to
20:51 < crazy2be> What kind of a package name is "github.com/kr/pretty.go"?
20:52 < crazy2be> maybe that's confusing it
20:52 < aiju> crazy2be: goinstall crap^W
20:52 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-156-32.clienti.tiscali.it] has
quit [Read error: Connection reset by peer]
20:52 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-156-32.clienti.tiscali.it] has
joined #go-nuts
20:53 < ajray_> crazy2be: man goinstall
20:54 -!- awidegreen [~quassel@h-170-226.a212.priv.bahnhof.se] has quit [Quit: No
Ping reply in 180 seconds.]
20:54 < ajray_> aiju: did you run GoFY in qemu?
20:54 -!- awidegreen [~quassel@h-170-226.a212.priv.bahnhof.se] has joined #go-nuts
20:54 < aiju> qemu and bochs
20:54 < aiju> i didn't have AMD64 hardware back then
20:54 -!- cmike_ [~mcrosby@adsl-99-137-202-54.dsl.bltnin.sbcglobal.net] has quit
[Ping timeout: 260 seconds]
20:55 < crazy2be> man goinstall doesn't work btw
20:56 < aiju> he meant "man, goinstall"
20:56 < serialhex> lol
20:57 < crazy2be> wtf the -u flag didn't update
20:57 < aiju> he silently assumed you're not of the taruti kind of person
20:57 < aiju> and now i assumed the same of him ;P (AND AGAGIN!)
21:01 -!- cmike_ [~mcrosby@adsl-99-14-208-247.dsl.bltnin.sbcglobal.net] has joined
#go-nuts
21:04 < cmike_> do i use net or http package to query a webpage?
21:05 < crazy2be> probably http
21:05 < ajray_> ?
21:05 < crazy2be> hrm falut
21:06 < crazy2be> *fault
21:09 < ajray_> aiju: /home/ajray/src/go/src/Make.inc:45: *** Invalid $GOOS
'gofykernel'; must be one of: darwin freebsd linux plan9 windows . Stop.
21:09 < kergoth_> does
https://github.com/kergoth/go-play/blob/master/schedule/schedule.go seem
reasonably sane?
21:11 < crazy2be> pointers, they are all so invalid!
21:11 < cmike_> sry for being a go noob, but I cant find the right func in
the http package to make a simple web query
21:12 < crazy2be> cmike_: that's ok, they hide it well
21:12 < crazy2be> and it keeps changing
21:12 < cmike_> i just want to query a webpage and get the headers / body
back
21:12 < crazy2be> look under Request and Response
21:13 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-156-32.clienti.tiscali.it] has
quit [Quit: E se abbasso questa leva che succ...]
21:15 < serialhex> seems reasonably sane kergoth_
21:16 -!- Fish [~Fish@9fans.fr] has quit [Quit: So Long, and Thanks for All the
Fish]
21:20 < crazy2be> how do you use cgo types in gotest?
21:21 -!- farhan [~farhan@c-66-235-48-222.sea.wa.customer.broadstripe.net] has
joined #go-nuts
21:21 < str1ngs> crazy2be: you dont
21:22 < str1ngs> you have your cgo package return go types
21:22 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller,
Faster, Easier.  http://miranda-im.org]
21:23 < str1ngs> your cgo package should not really expose C types
21:24 < crazy2be> it doesn't expose them, but gotest can still test them
21:24 < str1ngs> if gotest is testing them then you are exposing them
21:24 < crazy2be> no, gotest can access internal values and such
21:24 < crazy2be> it's compiled into the package
21:24 < str1ngs> have the cgo package test the C types an return os.Errors
21:25 < str1ngs> paste the test in question please
21:25 < str1ngs> to pastebin service
21:27 < crazy2be> https://gist.github.com/1062628
21:28 < str1ngs> func ptrToJSValueRef(ptr unsafe.Pointer) C.JSValueRef {
21:28 < str1ngs> you are exposing C
21:28 < str1ngs> wrap it in a struct
21:28 < crazy2be> That's what I do inside the package
21:28 < crazy2be> for the external interface
21:29 < crazy2be> but i'm trying to test the low-level c-to-go array
functions in the package
21:29 < str1ngs> again make a function in the cgo package that does that
21:29 < crazy2be> what do you mean
21:29 < str1ngs> return os.Error or go Types for gotest
21:30 < str1ngs> _test files are not compiled with cgo
21:30 < str1ngs> they dont understand import "C"
21:31 < str1ngs> think about it.  if you return a C type from your package.
anyone that uses it need to compile with cgo
21:31 < str1ngs> not only that then there only limited to using in from a
pkg
21:31 < str1ngs> and all the other limitations of cgo
21:32 < crazy2be> I don't return C types from the package, that function is
not Capitalized
21:32 < str1ngs> func ptrToJSValueRef(ptr unsafe.Pointer) C.JSValueRef
21:32 < str1ngs> still internal to gotest
21:32 < str1ngs> gotest can see the function
21:32 < crazy2be> yeah
21:32 < crazy2be> that's the point?
21:33 < str1ngs> return a go type.  what dont you get ?
21:33 < crazy2be> that's a good point
21:34 < str1ngs> you can have files compiled by cgo and gc in the packages.
this is how gotest works
21:34 < str1ngs> _test.go is compiled with gc not cgo..  get it?
21:34 < crazy2be> yeah
21:34 -!- farhan [~farhan@c-66-235-48-222.sea.wa.customer.broadstripe.net] has
quit [Read error: Connection reset by peer]
21:34 < str1ngs> so just wrap it in a struct.  attach methods that do the C
testing for you.  return go types
21:34 < str1ngs> effect is the same but safer
21:35 < crazy2be> yeah
21:35 < crazy2be> and not a struct{} that is used everywhere as a pointer
21:35 < crazy2be> that's what it used to be
21:35 < str1ngs> however you can still use that function in your package.
just not with gotest
21:36 < str1ngs> type JSValueRef struct { ref C.JSValueRef }
21:36 < crazy2be> yeah
21:36 < str1ngs> something like that
21:36 < crazy2be> that's what I'm changing it all to
21:36 < str1ngs> sounds good
21:37 < crazy2be> but everywhere it was written like
C.JSValueRef(unsafe.Pointer(val))
21:37 < crazy2be> and the slices were passed directly into and out of c
21:37 < str1ngs> not sure about that part.  internally thats fine just not
useable by gotest in that form
21:38 -!- napsy_ [~luka@88.200.96.18] has quit [Ping timeout: 240 seconds]
21:38 < crazy2be> well because I use a struct now I can't do that
21:39 < str1ngs> yes just use ref.
21:40 < crazy2be> also what is the correct way to get the second element in
a c-style array given an unsafe.Pointer to the first element?
21:41 < crazy2be> I do something like
ctx.ptrToValue(unsafe.Pointer(uintptr(unsafe.Pointer(cptr))+4)))
21:41 < crazy2be> and ptrToValue does return ctx.newValue(C.JSValueRef(ptr))
21:41 < crazy2be> but I think i'm missing a dereference in there somewhere
21:42 < crazy2be> since getting the first one is like val1 :=
ctx.newValue(*cptr)
21:43 -!- Jessica_Lily [~Jessica@unaffiliated/xray7224] has joined #go-nuts
21:45 -!- Locke23rus [~locke23ru@2.93.212.50] has quit [Remote host closed the
connection]
21:51 -!- franciscosouza [~francisco@187.105.22.148] has joined #go-nuts
21:55 -!- awidegreen [~quassel@h-170-226.a212.priv.bahnhof.se] has quit [Remote
host closed the connection]
21:58 -!- magn3ts_ [4467e141@gateway/web/freenode/ip.68.103.225.65] has joined
#go-nuts
21:58 < magn3ts_> Why can't I do something like reader :=
bufio.NewReader(websocket.Read()) ?
21:59 < crazy2be> uuuuugh I HATE UNSAFE.POINTER
21:59 < crazy2be> fix was changing goarr[i] =
ctx.newValue(C.JSValueRef(ptr)) to goarr[i] = ctx.newValue(*(*C.JSValueRef)(ptr))
22:00 < crazy2be> headbonk
22:00 < crazy2be> magn3ts_: what are you trying to do?
22:00 < crazy2be> just pass websocket to bufio.NewReader
22:01 -!- marianoguerra
[~marianogu@client-86-25-211-41.cht-bng-014.adsl.virginmedia.net] has quit [Quit:
leaving]
22:03 < crazy2be> if you want to read the whole file, there's bytes.Buffer
that might do that
22:04 < crazy2be> but you probably don't want to read the whole file at once
22:06 < str1ngs> magn3ts_: you probably just want to pass the websocket not
the method
22:06 < str1ngs> ie reader := bufio.NewReader(websocket)
22:10 -!- firwen [~firwen@2a01:e34:eea3:7e10:4a5b:39ff:fe51:e8ae] has quit [Remote
host closed the connection]
22:16 < magn3ts_> Thank you.  I'm confused about the syntax of:
conns[subscription.conn] = 0, subscription.subscribe
22:16 < magn3ts_> where subscription.subscribe is a boolean
22:18 < magn3ts_> oh, I see.
22:18 < magn3ts_> :) cool
22:26 -!- Slant [~scott@124-148-170-52.dyn.iinet.net.au] has joined #go-nuts
22:26 -!- Guest30692 [~kaiser@dslb-188-100-013-185.pools.arcor-ip.net] has quit
[Remote host closed the connection]
22:28 -!- lucian [~lucian@78-86-217-168.zone2.bethere.co.uk] has quit [Read error:
Connection reset by peer]
22:29 -!- magn3ts_ [4467e141@gateway/web/freenode/ip.68.103.225.65] has quit
[Quit: Page closed]
22:31 -!- lucian [~lucian@78-86-217-168.zone2.bethere.co.uk] has joined #go-nuts
22:33 -!- virtualsue [~chatzilla@nat/cisco/x-eaqvgadpmponahjn] has quit [Quit:
ChatZilla 0.9.87 [Firefox 4.0.1/20110413222027]]
22:33 -!- ronnyy [~quassel@p4FF1C4C8.dip0.t-ipconnect.de] has quit [Remote host
closed the connection]
22:35 -!- cmike_ [~mcrosby@adsl-99-14-208-247.dsl.bltnin.sbcglobal.net] has quit
[Quit: cmike_]
22:36 -!- nekoh [~nekoh@dslb-178-004-078-058.pools.arcor-ip.net] has quit [Quit:
nekoh]
22:41 -!- bugQ [~bug@c-71-195-207-34.hsd1.ut.comcast.net] has joined #go-nuts
22:44 -!- vmil86 [~vmil86@88.118.37.245] has quit [Remote host closed the
connection]
22:46 -!- dgnorton [~dgnorton@24.224.96.187] has joined #go-nuts
22:57 -!- Slant [~scott@124-148-170-52.dyn.iinet.net.au] has quit [Quit: Slant]
23:13 -!- Barbarossa [~max@rfc2324.org] has joined #go-nuts
23:16 -!- ajray_ [~ajray@rrcs-97-79-174-130.sw.biz.rr.com] has quit [Ping timeout:
258 seconds]
23:17 -!- dgnorton [~dgnorton@24.224.96.187] has quit [Read error: Connection
reset by peer]
23:17 -!- dgnorton [~dgnorton@24.224.96.187] has joined #go-nuts
23:24 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has joined #go-nuts
23:40 -!- zcram [~zcram@77-233-71-195.cdma.dyn.kou.ee] has quit [Ping timeout: 240
seconds]
--- Log closed Mon Jul 04 00:00:54 2011