--- Log opened Sun Jun 19 00:00:54 2011 00:01 < str1ngs> [[ -d $HOME/go/bin ]] && export PATH="$HOME/go/bin:$PATH" 00:01 < str1ngs> anyways testing the dir is overkill 00:03 < hieusun> do i have to source ~/.bashrc each time i edit that 00:03 < hieusun> anw wont work 00:04 < str1ngs> depends the problem with use .bashrc with PATH is if you mess up its recursive 00:04 < str1ngs> so you might want to just start a new shell 00:05 < str1ngs> so to be safe use new shell for now 00:11 -!- zippoxer [~zippoxer@bzq-79-176-244-242.red.bezeqint.net] has quit [Read error: Connection reset by peer] 00:11 < hieusun> breakfast first ... =(( 00:11 < hieusun> thanks for helping 00:16 -!- hieusun [~hieusun@113.22.24.191] has quit [Ping timeout: 252 seconds] 00:21 -!- tgall_foo [~tgall@206.9.88.154] has quit [Ping timeout: 244 seconds] 00:26 -!- legumbre [~leo@r190-135-3-41.dialup.adsl.anteldata.net.uy] has joined #go-nuts 00:28 -!- petar [~petar@84-73-24-13.dclient.hispeed.ch] has joined #go-nuts 00:29 -!- hieusun [~hieusun@113.22.24.191] has joined #go-nuts 00:31 -!- tvw [~tv@e176000123.adsl.alicedsl.de] has quit [Ping timeout: 255 seconds] 00:31 -!- petar [~petar@84-73-24-13.dclient.hispeed.ch] has left #go-nuts [] 00:35 -!- crazy2be [~crazy2be@d75-152-167-124.abhsia.telus.net] has quit [Ping timeout: 255 seconds] 00:35 < hieusun> so which compiler should i choose ? default or gccgo? 00:35 < hieusun> what's the difference 00:35 < hieusun> can anybody tell? 00:36 < jlaffaye> default 00:36 < jlaffaye> that's the one which get the most attention 00:37 -!- Queue29 [~Queue29@egress-w.sfo1.yelpcorp.com] has quit [Remote host closed the connection] 00:39 < hieusun> =)) then is there any quick way to compile the file like using make cmd and excute it or i have to compile and link saparately? 00:47 < jessta> hieusun: http://go.hokapoka.com/golang/using-makefile-with-golang/ 00:48 < hieusun> =)) really nice 00:48 < jessta> hieusun: actually thats a bit out of date 00:48 < hieusun> @jessta thats ok =) 00:50 < jessta> hieusun: the line that says "include $(GOROOT)/src/Make.$(GOARCH)" should say "include $(GOROOT)/src/Make.inc" 00:50 -!- allengeorge [~allengeor@c-67-188-178-118.hsd1.ca.comcast.net] has joined #go-nuts 00:53 < hieusun> no i think include $(GOROOT)/src/Make.$(GOARCH) is right 00:54 -!- tgall_foo [~tgall@206.9.88.154] has joined #go-nuts 00:55 -!- wallerdev [~wallerdev@72.44.102.30] has quit [Quit: wallerdev] 00:58 -!- Tv [~Tv@ip68-4-237-249.oc.oc.cox.net] has quit [Ping timeout: 250 seconds] 00:59 -!- tgall_foo [~tgall@206.9.88.154] has quit [Changing host] 00:59 -!- tgall_foo [~tgall@linaro/tgall-foo] has joined #go-nuts 01:00 -!- Natch| [~natch@c-adcee155.25-4-64736c10.cust.bredbandsbolaget.se] has quit [Quit: Leaving] 01:02 -!- ajoe47 [~textual@h163.187.123.208.dynamic.ip.windstream.net] has left #go-nuts ["Textual IRC Client: http://www.textualapp.com/"] 01:08 -!- hieusun [~hieusun@113.22.24.191] has left #go-nuts [] 01:11 -!- Natch| [~natch@c-adcee155.25-4-64736c10.cust.bredbandsbolaget.se] has joined #go-nuts 01:14 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 01:14 -!- Stiletto [7f000001@69.195.144.4] has quit [Remote host closed the connection] 01:25 -!- Queue29 [~Queue29@173-8-182-114-SFBA.hfc.comcastbusiness.net] has joined #go-nuts 01:26 -!- Ekspluati [5b98b815@gateway/web/freenode/ip.91.152.184.21] has joined #go-nuts 01:28 -!- message144 [~message14@cpe-75-83-155-145.socal.res.rr.com] has quit [Remote host closed the connection] 01:29 -!- hieusun [~hieusun@113.22.24.191] has joined #go-nuts 01:30 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has quit [Remote host closed the connection] 01:31 < hieusun> can i compile multiple source file in 1 folder? cuz there is only 1 excutable file 8.out?? 01:37 -!- alanlian1 [~yogafire@c-71-204-189-190.hsd1.ca.comcast.net] has joined #go-nuts 01:38 -!- hieusun [~hieusun@113.22.24.191] has quit [Ping timeout: 264 seconds] 01:38 < Ekspluati> hieusun, "8g file.go another_file.go && 8l file.8" 01:40 -!- alanliang [~yogafire@c-71-204-189-190.hsd1.ca.comcast.net] has quit [Ping timeout: 246 seconds] 01:42 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has joined #go-nuts 01:56 -!- dfc [~dfc@124-168-0-164.dyn.iinet.net.au] has joined #go-nuts 01:58 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has quit [Remote host closed the connection] 01:58 -!- dfc [~dfc@124-168-0-164.dyn.iinet.net.au] has quit [Client Quit] 01:58 -!- hieusun [~hieusun@113.22.24.191] has joined #go-nuts 02:00 < exch> 'include $(GOROOT)/src/Make.$(GOARCH)' was used many versions ago, Go has changed a lot since then. 'include $(GOROOT)/srcc/Make.inc' is the correct usage. 02:00 < exch> s/srcc/src/ 02:08 -!- Natch| [~natch@c-adcee155.25-4-64736c10.cust.bredbandsbolaget.se] has quit [Ping timeout: 264 seconds] 02:10 -!- Natch| [~natch@c-adcee155.25-4-64736c10.cust.bredbandsbolaget.se] has joined #go-nuts 02:11 -!- hieusun [~hieusun@113.22.24.191] has quit [Read error: Connection reset by peer] 02:11 -!- hieusun [~hieusun@113.22.24.191] has joined #go-nuts 02:12 < hieusun> can i compile multiple source file in 1 folder? cuz there is only 1 excutable file 8.out?? 02:13 < exch> yes, $ 8g file1.go file2.go 02:13 < exch> etc 02:13 < exch> as long as those files all have the same package name 02:13 < exch> otherise you need to compile them separately 02:14 < exch> If you want multiple executable files, compile each file separately 02:15 -!- krolaw [~krolaw@203.100.208.229] has joined #go-nuts 02:20 < hieusun> ... what about excute them in one folder? 02:20 < hieusun> only 1 excutable file 8.out after linking with 8l file1.go file2.go 02:22 < exch> I dont understand what you are asking 02:30 < hieusun> if i have 2 files file1.go and file2.go 02:30 < hieusun> i compile them: 02:31 < hieusun> 8g file1.go 02:31 < hieusun> 8g file2.go 02:31 < hieusun> and then 8l file1.8 02:31 < hieusun> 8l file2.8 02:31 < hieusun> to excute you can only run ./out.8 02:32 < exch> because you did not specify an output file for the linker. The default is '8.out' 02:32 < exch> try 8l -o app1 file1.8 02:32 < exch> 8l -o app2 file2.8 02:32 < hieusun> oh let me try 02:33 < exch> In your case, you ran 8l twice. the second one overwrote the default '8.out' of the first 8l run 02:34 < hieusun> right =)) it works perfect 02:34 < hieusun> thanks 02:34 < exch> np 02:34 -!- hieusun [~hieusun@113.22.24.191] has left #go-nuts [] 02:35 -!- Bigbear1 [~Cody@d75-158-128-4.abhsia.telus.net] has joined #go-nuts 02:35 -!- angasule [~angasule@190.2.33.49] has quit [Ping timeout: 260 seconds] 02:38 -!- gmrph [~gmurphy@124-171-196-123.dyn.iinet.net.au] has joined #go-nuts 02:40 -!- Marcelo [~iepsen@unaffiliated/iepsen] has joined #go-nuts 02:44 -!- Boney [~paul@124-168-109-246.dyn.iinet.net.au] has quit [Ping timeout: 246 seconds] 02:44 -!- Boney [~paul@124-168-109-246.dyn.iinet.net.au] has joined #go-nuts 02:48 -!- sacho [~sacho@87-126-39-76.btc-net.bg] has quit [Read error: No route to host] 02:49 < Alpha_Cluster> anyone else use encoding/base64 and have it report its not used but then if you remove the import it wont compile? 02:52 -!- gmrph [~gmurphy@124-171-196-123.dyn.iinet.net.au] has quit [Quit: zzzzzz...] 02:56 -!- allengeorge [~allengeor@c-67-188-178-118.hsd1.ca.comcast.net] has quit [Quit: allengeorge] 02:59 -!- jlilly [justinlill@70.32.34.100] has joined #go-nuts 03:00 < jessta> Alpha_Cluster: got code? 03:00 < Alpha_Cluster> i did but i jsut realized it seems to have stopped :( 03:02 < Alpha_Cluster> i was compiling a encoding and a decoding program at the same time. Both files were open it must have just been me... Sorry about that 03:04 -!- sacho [~sacho@87-126-43-140.btc-net.bg] has joined #go-nuts 03:07 -!- pingveno [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has quit [Ping timeout: 276 seconds] 03:08 -!- pingveno [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has joined #go-nuts 03:15 < jessta> Alpha_Cluster: sometimes bugs are bugs, and some times they are just a lack of coffee 03:16 < Alpha_Cluster> coffee sounds kinda good... 03:28 -!- bytbox [~s@96.26.105.154] has joined #go-nuts 03:35 -!- crazy2be [~crazy2be@d75-152-167-124.abhsia.telus.net] has joined #go-nuts 03:38 -!- Bigbear1 [~Cody@d75-158-128-4.abhsia.telus.net] has quit [Read error: Connection reset by peer] 03:41 -!- Marcelo [~iepsen@unaffiliated/iepsen] has quit [Quit: Leaving] 03:47 < crazy2be> hrmph 03:47 < crazy2be> does inotify sometimes compress create/modify/delete into one event? 03:53 -!- ExtraSpice [XtraSpice@78-57-204-104.static.zebra.lt] has joined #go-nuts 03:54 < crazy2be> ugh 03:54 < crazy2be> i realize my issue 03:54 < crazy2be> and i have no idea how to best fix it 03:57 < crazy2be> silly race conditions :/ 03:57 < crazy2be> especially silly since i'm racing with the kernel 04:01 < crazy2be> it's sooooo tempting to just put time.Sleep(1000) in my api functions 04:01 < crazy2be> but that is code smell of the worst variety 04:05 -!- Ekspluati [5b98b815@gateway/web/freenode/ip.91.152.184.21] has quit [Ping timeout: 252 seconds] 04:08 -!- rejb [~rejb@unaffiliated/rejb] has quit [Disconnected by services] 04:08 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts 04:16 -!- Ekspluati [5b98b815@gateway/web/freenode/ip.91.152.184.21] has joined #go-nuts 04:17 < exch> it has its use in the mighty Sleep Sort algorithm 04:32 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has joined #go-nuts 04:42 < exch> finetuning the UI is proving a tedious task. I find myself having to create very basic ui controls to make this even remotely managable 04:42 < exch> poo. wrong channel 04:46 -!- zippoxer [~zippoxer@bzq-79-176-244-242.red.bezeqint.net] has joined #go-nuts 04:48 < zippoxer> I'm trying to install go-gtk with this command: 04:48 < zippoxer> goinstall github.com/mattn/go-gtk/gtk 04:48 < zippoxer> and getting this result: 04:48 < zippoxer> kg/github.com/mattn/go-gtk/glib -g -fPIC -O2 -m32 -o /root/go/src/pkg/github.com/mattn/go-gtk/glib/_obj/_root_go_src_pkg_github.com_mattn_go-gtk_glib_glib.cgo2.o -c /root/go/src/pkg/github.com/mattn/go-gtk/glib/_obj/_root_go_src_pkg_github.com_mattn_go-gtk_glib_glib.cgo2.c": exit status 1 04:48 < zippoxer> /root/go/src/pkg/github.com/mattn/go-gtk/glib/glib.go:6:18: fatal error: glib.h: No such file or directory 04:48 < zippoxer> compilation terminated. 04:49 < exch> It seems clear that you are missing some gtk headers. Do you have the gtk dev tools installed and available from the standard include path? 04:59 < zippoxer> mm gtk dev? 04:59 < zippoxer> I remember I installed it yesterday, but maybe it was the wrong package 05:02 < zippoxer> what's the correct name of the package so I can install it with apt-get? 05:03 < zippoxer> yesterday, I've installed this: libgtk2.0-dev 05:03 < zippoxer> didn't help :\ 05:05 < exch> that should be enough I'm guessing the include paths are messed up somewhere 05:06 < zippoxer> I'm pretty new to linux, so what does that mean? 05:06 < zippoxer> what should I do 05:06 < exch> when go-gtk is compiled, it looks for glib.h somewhereon your system.Generally this islocated somewhere in /usr/include 05:07 < exch> I'm not seeing any other include paths listed in the gcc line you posted, so I am guessing that is where it will look 05:07 < exch> You can check of glib.h is somehere in /usr/include 05:07 < zippoxer> ok sec 05:09 < exch> 'find /usr/include -name "glib.h"' yields '/usr/include/glib-2.0/glib.h' for me 05:09 < exch> go-gtk builds fine for me btw 05:09 < tgall_foo> zippoxer, which distro are you on ? 05:09 < zippoxer> for me too :\ 05:09 < zippoxer> /usr/include/glib-2.0/glib.h 05:09 < zippoxer> ubuntu 11.04 05:10 < zippoxer> sec I'll try to goinstall again 05:11 < zippoxer> again :\ 05:11 < zippoxer> same error 05:12 < exch> I dont install it with goinstall, that might be the problem. when you use goinstall after the latest weekly release, it ignores the gcc flags define in the source 05:12 < exch> it will be fixed in next release, but might be the reason your build fails 05:12 < zippoxer> ohh okay i'll gomake it 05:12 < exch> I cloned the repository and just manually did make 05:12 < exch> that way it uses the gcc flags defined in the makefile 05:13 * tgall_foo suspects he should put together some ubuntu pkgs for that 05:13 < zippoxer> so slow on a virtual machine... 05:13 < zippoxer> i see it says something about glib 05:14 < zippoxer> and no error yet 05:17 < zippoxer> so goinstall doesn't gomake the makefile? 05:17 < exch> no 05:17 < zippoxer> :\ 05:17 < exch> it uses the '// #cgo ...' directives in the source. At least it did until the last weekly updated. Some work is being done to improve those 05:18 < zippoxer> go changes dramatically every few weeks 05:18 < exch> goinstall is scheduled to be replaced by a better build system though. One that should get rid of at least most of these headaches 05:19 < zippoxer> yeah. 05:20 < zippoxer> u mean it'll install dependencies too? 05:21 < exch> for regular go packages it already does that 05:21 < exch> but cgo projects have always been a bit of a mess 05:21 < zippoxer> :\ 05:21 < zippoxer> okay i ran goinstall 05:22 < zippoxer> how can I check if i have that package installed? 05:22 < exch> Until a while a go, we didnt even have the #cgo directives, which meant that any package doing c bindings could not be goinstalled at all 05:22 < zippoxer> lol 05:22 < zippoxer> the go project is still unstable no? 05:22 < exch> That depends on how you define unstable I guess 05:23 < exch> For regular Go stuff, it's pretty solid. Although unoptimized 05:23 < exch> But libraries are improving all the time, so that is just a matter of time 05:24 < zippoxer> yeah.. unoptimized and also no super development environment yet. 05:24 < exch> I've been writing Go stuff for over a year now and I really have no need for a specialized Go IDE 05:25 < zippoxer> beginners does :P 05:25 < zippoxer> making Makefiles is too hard for most 05:25 < exch> Gedit with an embedded terminal works like a charm. For documentation, there is godoc 05:25 < exch> My go makefiles are extremely simple 05:26 < zippoxer> they 8g 8l and that's all? 05:26 < exch> For example: https://github.com/jteeuwen/go-example-multipkg 05:26 < exch> They include the makefiles in the Go source tree, which do all of the tedious stuff for you 05:27 < zippoxer> wow nice ^.^ 05:27 < zippoxer> automates all the job 05:27 < exch> yea 05:27 < exch> https://github.com/jteeuwen/go-example-multipkg/blob/master/app/Makefile this is really all you need for most Go projects 05:28 < zippoxer> okay so I'll start using gedit 05:28 < zippoxer> thanks for the tip 05:29 < exch> http://go-lang.cat-v.org/text-editors/ Here's some other text editor support 05:30 < zippoxer> wow a plugin using gocode 05:30 < zippoxer> (which I have installed) 05:30 < exch> yea, it is pretty nice. Although I rarely need it myself 05:31 < zippoxer> it's nice when you don't remember most of the API 05:31 < zippoxer> (me) 05:32 < zippoxer> go-gtk works great, thanks :) 05:32 < exch> cool :) 05:34 < zippoxer> okay I have to go, cya. 05:35 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 05:43 -!- virtualsue [~chatzilla@nat/cisco/x-gslugirhingxexvn] has joined #go-nuts 05:44 -!- crazy2be [~crazy2be@d75-152-167-124.abhsia.telus.net] has quit [Remote host closed the connection] 05:47 -!- ijknacho [~ijknacho4@cpe-72-190-64-3.tx.res.rr.com] has joined #go-nuts 05:56 -!- legumbre_ [~leo@r190-135-28-130.dialup.adsl.anteldata.net.uy] has joined #go-nuts 05:58 -!- legumbre [~leo@r190-135-3-41.dialup.adsl.anteldata.net.uy] has quit [Ping timeout: 276 seconds] 06:11 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 06:18 -!- Queue29 [~Queue29@173-8-182-114-SFBA.hfc.comcastbusiness.net] has quit [Remote host closed the connection] 06:24 -!- Queue29 [~Queue29@173-8-182-114-SFBA.hfc.comcastbusiness.net] has joined #go-nuts 06:35 -!- KBme [~KBme@2001:470:cabe:666:666:666:666:666] has quit [Ping timeout: 260 seconds] 06:53 -!- rcrowley [~rcrowley@c-71-202-44-233.hsd1.ca.comcast.net] has joined #go-nuts 06:58 -!- iant [~iant@ip-62-105-190-71.dsl.twang.net] has quit [Ping timeout: 244 seconds] 07:00 -!- virtualsue [~chatzilla@nat/cisco/x-gslugirhingxexvn] has quit [Quit: ChatZilla 0.9.87 [Firefox 4.0.1/20110413222027]] 07:06 < Ekspluati> What's the calling convention of Go functions on Windows? 07:09 < edsrzf> Ekspluati: everything's passed on the stack 07:10 < edsrzf> It's the same for all architectures and OSes 07:10 < edsrzf> (Assuming we're talking about 6g and friends) 07:11 < Ekspluati> Is that "__cdecl"? 07:11 < bytbox> Ekspluati: I don't think so 07:12 -!- krolaw [~krolaw@203.100.208.229] has quit [Quit: krolaw] 07:12 < edsrzf> Arguments are returned on the stack too, so it's a little different in that respect at least 07:12 < bytbox> Ekspluati: if you're looking for compatibility between stdcall and go's convention, the syscall package does some of that for callbacks, so that would be a good place to start 07:13 < edsrzf> Er, results are returned 07:15 < Ekspluati> Okay, thanks. I guess returning arguments on the stack is what I was looking for. 07:16 -!- Ekspluati [5b98b815@gateway/web/freenode/ip.91.152.184.21] has left #go-nuts [] 07:17 -!- kamaji [~kamaji@cpc2-aztw22-2-0-cust775.aztw.cable.virginmedia.com] has quit [Ping timeout: 246 seconds] 07:17 -!- awidegreen [~quassel@h-170-226.A212.priv.bahnhof.se] has joined #go-nuts 07:18 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 07:19 -!- m4dh4tt3r [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has joined #go-nuts 07:22 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts 07:23 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-161-93.clienti.tiscali.it] has joined #go-nuts 07:34 -!- krolaw [~krolaw@203.100.208.229] has joined #go-nuts 07:42 -!- KBme [~KBme@2001:470:cabe:666:666:666:666:666] has joined #go-nuts 07:45 -!- Ekspluati [5b98b815@gateway/web/freenode/ip.91.152.184.21] has joined #go-nuts 07:52 -!- acid__ [~nisstyre@109.74.204.224] has joined #go-nuts 07:52 -!- jemeshsu [~jemeshsu@bb220-255-88-127.singnet.com.sg] has quit [Quit: jemeshsu] 07:52 -!- acid__ [~nisstyre@109.74.204.224] has quit [Client Quit] 07:53 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|] 07:54 -!- Nisstyre [~nisstyre@109.74.204.224] has quit [Ping timeout: 255 seconds] 07:55 -!- Nisstyre [~nisstyre@109.74.204.224] has joined #go-nuts 08:04 -!- niekie [~niek@CAcert/Assurer/niekie] has quit [Quit: No Ping reply in 180 seconds.] 08:04 -!- niekie [~niek@CAcert/Assurer/niekie] has joined #go-nuts 08:06 -!- awidegreen [~quassel@h-170-226.A212.priv.bahnhof.se] has quit [Ping timeout: 276 seconds] 08:08 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 08:08 -!- sacho [~sacho@87-126-43-140.btc-net.bg] has quit [Ping timeout: 255 seconds] 08:15 -!- m4dh4tt3r1 [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has joined #go-nuts 08:17 -!- m4dh4tt3r [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has quit [Ping timeout: 276 seconds] 08:35 -!- m4dh4tt3r [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has joined #go-nuts 08:37 -!- m4dh4tt3r1 [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has quit [Ping timeout: 250 seconds] 08:40 -!- m4dh4tt3r1 [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has joined #go-nuts 08:41 -!- m4dh4tt3r [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has quit [Ping timeout: 255 seconds] 08:43 -!- rutkowski [~adrian@078088200187.walbrzych.vectranet.pl] has joined #go-nuts 08:46 -!- huin [~huin@91.85.188.1] has joined #go-nuts 08:46 -!- Queue29 [~Queue29@173-8-182-114-SFBA.hfc.comcastbusiness.net] has quit [Remote host closed the connection] 08:48 -!- edsrzf [~edsrzf@122-61-221-144.jetstream.xtra.co.nz] has quit [Remote host closed the connection] 09:03 -!- Natch| [~natch@c-adcee155.25-4-64736c10.cust.bredbandsbolaget.se] has quit [Ping timeout: 264 seconds] 09:08 -!- Natch| [~natch@c-adcee155.25-4-64736c10.cust.bredbandsbolaget.se] has joined #go-nuts 09:24 -!- jemeshsu [~jemeshsu@bb220-255-88-127.singnet.com.sg] has joined #go-nuts 09:27 -!- larva [~larvanitr@ec2-46-51-171-183.eu-west-1.compute.amazonaws.com] has quit [Ping timeout: 240 seconds] 09:32 -!- roca [~Adium@95.39.57.5.static.user.ono.com] has joined #go-nuts 09:32 < roca> morning. 09:34 -!- larva [~larvanitr@ec2-46-51-171-183.eu-west-1.compute.amazonaws.com] has joined #go-nuts 09:34 < roca> I'm planning to use go for a small project. I need to create an executable that has to be run o different machines. ¿The executable produced buy the go compiler will run on computers that not have any go develping tools installed? thanks. 09:34 -!- vinisterx [~ryan@74-129-201-27.dhcp.insightbb.com] has joined #go-nuts 09:35 < aiju> roca: yes 09:36 < aiju> roca: you can use ldd to check dependencies .. 09:37 < roca> aiju, so, If my little program depends on an ssh library, ?can I link this library staticaly? 09:37 < aiju> first, all pure Go libraries are linked statically 09:37 < roca> my biggest concert is portability here, and I don't wanna use interpreted languages. 09:37 < aiju> C libraries might be linked dynamically, i have no clue how to change this 09:38 < nsf> it is possible to link them statically but it's very hard 09:38 < nsf> and error prone 09:38 < nsf> and probably not possible in all cases 09:38 < roca> ok, I think ssh-go is pure go code. 09:38 < aiju> then it's no concern 09:38 < roca> I'm gonna do a test. Tanks for the help guys 09:49 -!- iant [~iant@74.125.57.58] has joined #go-nuts 09:49 -!- mode/#go-nuts [+v iant] by ChanServ 09:52 -!- TheMue [~TheMue@p5DDF4E5F.dip.t-dialin.net] has joined #go-nuts 09:52 -!- vinisterx [~ryan@74-129-201-27.dhcp.insightbb.com] has quit [Quit: WeeChat 0.3.5] 09:56 -!- zippoxer [~zippoxer@bzq-79-176-244-242.red.bezeqint.net] has quit [Remote host closed the connection] 09:59 -!- sebastianskejoe [~sebastian@188.114.142.217] has joined #go-nuts 10:08 -!- iant [~iant@74.125.57.58] has quit [Quit: Leaving.] 10:09 -!- m4dh4tt3r [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has joined #go-nuts 10:11 -!- m4dh4tt3r1 [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has quit [Ping timeout: 244 seconds] 10:17 -!- [dmp] [~dennis@unaffiliated/dmp/x-546784] has quit [Remote host closed the connection] 10:17 -!- [dmp] [~dennis@users.d75.net] has joined #go-nuts 10:17 -!- [dmp] [~dennis@users.d75.net] has quit [Changing host] 10:17 -!- [dmp] [~dennis@unaffiliated/dmp/x-546784] has joined #go-nuts 10:22 < roca> I've compiled a simple hello workd example and the binary is 1MB ¿is this normal? thanks 10:22 < uriel> roca: see list archives 10:23 < uriel> in short: yes, it is statically linked, and compilers don't optimize (yet) for size, plus includes reflectio info etc 10:23 < roca> ok! 10:26 < roca> and one more think… I've installed go on my laptop (mac os 10x ) but I'd like to compile for 386, and I don't see the 8g compiler ?Can I have both compilers for testing my code ? 10:29 -!- sebastianskejoe [~sebastian@188.114.142.217] has quit [Quit: Lost terminal] 10:30 -!- rutkowski [~adrian@078088200187.walbrzych.vectranet.pl] has quit [Quit: WeeChat 0.3.3-dev] 10:32 -!- iant [~iant@74.125.57.58] has joined #go-nuts 10:32 -!- mode/#go-nuts [+v iant] by ChanServ 10:34 -!- maht [~maht@85-189-31-174.proweb.managedbroadband.co.uk] has joined #go-nuts 10:35 < uriel> roca: yes, you can 10:37 < roca> uriel: cool. thanks 10:39 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has joined #go-nuts 10:50 -!- larva [~larvanitr@ec2-46-51-171-183.eu-west-1.compute.amazonaws.com] has quit [Ping timeout: 264 seconds] 10:52 -!- maht [~maht@85-189-31-174.proweb.managedbroadband.co.uk] has left #go-nuts ["Leaving"] 10:54 -!- larva [~larvanitr@ec2-46-51-171-183.eu-west-1.compute.amazonaws.com] has joined #go-nuts 10:55 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined #go-nuts 10:58 -!- Ekspluati [5b98b815@gateway/web/freenode/ip.91.152.184.21] has quit [Ping timeout: 252 seconds] 11:01 -!- krolaw [~krolaw@203.100.208.229] has quit [Quit: krolaw] 11:01 -!- krolaw [~krolaw@203.100.208.229] has joined #go-nuts 11:06 -!- zippoxer [zippoxer@bzq-79-176-244-242.red.bezeqint.net] has joined #go-nuts 11:06 < zippoxer> can I use glade to design for go? 11:06 < uriel> i hope not 11:06 < zippoxer> y? :P 11:07 < uriel> but there are gtk bindings, so I guess it might work, i still hope everyone who touches glade dies painfully, it would be better for the future of mankind 11:08 < zippoxer> so I should design GUIs by writing a code? :\ 11:09 < nsf> zippoxer: it's easier to make a gtk gui by writing code 11:09 < nsf> than by using glade 11:09 < nsf> the same is not true for Qt though 11:10 < nsf> but of course it doesn't work if you're writing your gtk gui in C 11:10 < uriel> I have never seen a glade gui that was not a horrible nightmare 11:10 < nsf> I did it in python 11:10 < nsf> http://code.google.com/p/obkey/ 11:10 < nsf> worked for me quite well 11:10 < zippoxer> so is there a Qt binding for go? 11:10 < nsf> no need for glade and stuff 11:10 < uriel> (and I mean by the already low gtk-app standards) 11:11 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 240 seconds] 11:11 < zippoxer> uriel from israel? :P 11:11 -!- ijknacho [~ijknacho4@cpe-72-190-64-3.tx.res.rr.com] has quit [Read error: Operation timed out] 11:12 < uriel> no, more like from the bottom pits of hell 11:15 < zippoxer> jewish nickname so i thought... 11:16 < zippoxer> is it good environment to program in? 11:16 < zippoxer> i'm talking about the bottom pits of hell 11:16 < uriel> if you want to troll about geopolitics join #cat-v 11:17 < zippoxer> lol :P 11:17 < uriel> zippoxer: acme running on Inferno, obviously 11:17 < uriel> http://acme.cat-v.org 11:17 < zippoxer> inferno = os? 11:18 < uriel> and vm, and many other things 11:19 < uriel> http://doc.cat-v.org/inferno/ 11:22 < rm445> I was under the impression that Inferno was basically Plan 9 rebadged as a product, but that page and wikipedia say it is a new implementation. 11:22 < rm445> Anyone know just how similar the two are? 11:28 -!- iant [~iant@74.125.57.58] has quit [Ping timeout: 255 seconds] 11:31 < uriel> read the relevant papers and find out (hell, you could actually try to use the systems, but for that you should read the papers anyway) 11:31 < uriel> http://doc.cat-v.org/inferno/4th_edition/inferno_OS 11:31 < uriel> http://doc.cat-v.org/plan_9/4th_edition/papers/9 11:35 -!- kfmfe04 [~kfmfe04@NK219-91-106-247.adsl.dynamic.apol.com.tw] has joined #go-nuts 11:36 < kfmfe04> hi - noobie question - what's the difference between = and := ? 11:38 < vegai> var a int; a=1 <=> a:=1 11:39 < kfmfe04> ok - why have two assignment operators? there must be some cases where one is needed over the other? 11:40 < skelterjohn> := is declare and assign 11:40 < kfmfe04> ah - you mean the entire (var a int; a=1) is equivalent to a:=1 11:40 < skelterjohn> and you don't have to write the type 11:40 < kfmfe04> tyvm - got it! 11:41 < kfmfe04> just started playing with go the last day or two - the # of LOC is amazing vs C++ - maybe only 1/4 or 1/5 11:46 -!- gm_ [~gmurphy@124-171-196-123.dyn.iinet.net.au] has joined #go-nuts 11:47 -!- gm_ [~gmurphy@124-171-196-123.dyn.iinet.net.au] has left #go-nuts [] 11:50 -!- krolaw [~krolaw@203.100.208.229] has quit [Quit: krolaw] 11:56 -!- zippoxer [zippoxer@bzq-79-176-244-242.red.bezeqint.net] has quit [] 11:58 -!- sacho [~sacho@87-126-43-140.btc-net.bg] has joined #go-nuts 11:58 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has quit [Quit: skelterjohn] 12:01 -!- zippoxer [~zippoxer@bzq-79-176-244-242.red.bezeqint.net] has joined #go-nuts 12:14 -!- Marcelo [~iepsen@unaffiliated/iepsen] has joined #go-nuts 12:15 -!- sacho [~sacho@87-126-43-140.btc-net.bg] has quit [Ping timeout: 255 seconds] 12:17 -!- ExtraSpice [XtraSpice@78-57-204-104.static.zebra.lt] has quit [Ping timeout: 276 seconds] 12:18 -!- ExtraSpice [XtraSpice@78-57-204-104.static.zebra.lt] has joined #go-nuts 12:23 < kfmfe04> do setters require a pointer-to-a-struct as the first argument or just a-struct will do? coming from C++, I suspect the former, but I'm not sure (can't seem to find the answer via google search) 12:26 < str1ngs> kfmfe04: you mean a method? 12:26 < kfmfe04> yes 12:26 < str1ngs> kfmfe04: ie func (f *Foo) Method() 12:26 < str1ngs> it can either 12:26 -!- zippoxer [~zippoxer@bzq-79-176-244-242.red.bezeqint.net] has quit [Remote host closed the connection] 12:27 < str1ngs> can be* 12:27 < str1ngs> most cases you want a pointer though 12:27 < kfmfe04> if I want to modify the called in parameter, I want a pointer, right? 12:27 < str1ngs> right 12:27 < kfmfe04> without the pointer, the system will essentially copy-construct underneath, I'm assuming 12:27 < kfmfe04> ty 12:27 < str1ngs> exactly 12:29 < kfmfe04> this is nice - close-to-the-metal when you need it; when you don't, you get gc, etc... 12:31 -!- hieusun [~hieusun@113.22.24.191] has joined #go-nuts 12:31 -!- sacho [~sacho@87-126-43-140.btc-net.bg] has joined #go-nuts 12:32 -!- hieusun [~hieusun@113.22.24.191] has left #go-nuts [] 12:33 -!- iant [~iant@74.125.57.58] has joined #go-nuts 12:33 -!- mode/#go-nuts [+v iant] by ChanServ 12:33 < kfmfe04> ok - a question regarding function arguments - I just noticed that you don't need to specify the type of an argument - how does the compiler match signatures in this case? without an argument type, it looks almost like C++ generics (which would be nice), but I'm not sure I'm interpreting the no-speicified-argument-type meaning correctly... 12:34 <+iant> you do need to specify the type of a function argument.... 12:34 < aiju> there are no generics 12:34 < aiju> you can leave out types if multiple arguments have the same type 12:34 < aiju> func foo(a, b, c int) 12:34 < aiju> all three will be int 12:35 < kfmfe04> ahh! my mis-interpretation of the syntax - tyvm for the clarification! 12:36 < str1ngs> kfmfe04: the left to right signatures take abit to get use to 12:36 < str1ngs> kfmfe04: but they are more intuitive when you do get use to it 12:36 < aiju> i found them pretty straightforward 12:47 -!- _foocraft [~ewanas@78.101.138.25] has joined #go-nuts 12:48 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-177-204.clienti.tiscali.it] has joined #go-nuts 12:49 -!- foocraft_ [~ewanas@178.152.114.223] has quit [Ping timeout: 260 seconds] 12:50 -!- hieusun1 [~hieusun1@113.22.24.191] has joined #go-nuts 12:50 -!- hieusun1 [~hieusun1@113.22.24.191] has left #go-nuts [] 12:51 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-161-93.clienti.tiscali.it] has quit [Ping timeout: 240 seconds] 12:51 -!- hieusun1 [~hieusun1@113.22.24.191] has joined #go-nuts 12:51 -!- hieusun1 [~hieusun1@113.22.24.191] has left #go-nuts [] 12:54 -!- angasule [~angasule@190.2.33.49] has joined #go-nuts 12:58 -!- zippoxer [~zippoxer@bzq-79-176-244-242.red.bezeqint.net] has joined #go-nuts 13:17 -!- zippoxer [~zippoxer@bzq-79-176-244-242.red.bezeqint.net] has quit [Ping timeout: 264 seconds] 13:27 < roca> I'm trying to compile my source code for a different cpu that mine, but I can't get the right compiler. I'm reading about this but I can't get it working. any help? 13:29 < ampleyfly> roca: http://groups.google.com/group/golang-nuts/browse_thread/thread/a36e6e2cb254ea36/760ef589ad750958 might help 13:29 < roca> thanks! 13:31 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 13:31 -!- iant [~iant@74.125.57.58] has quit [Ping timeout: 255 seconds] 13:36 -!- iant [~iant@74.125.57.50] has joined #go-nuts 13:36 -!- mode/#go-nuts [+v iant] by ChanServ 13:42 -!- roca [~Adium@95.39.57.5.static.user.ono.com] has quit [Quit: Leaving.] 13:45 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined #go-nuts 13:48 -!- PortatoreSanoDiI [~Marvin@dynamic-adsl-94-36-170-42.clienti.tiscali.it] has joined #go-nuts 13:51 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-177-204.clienti.tiscali.it] has quit [Ping timeout: 252 seconds] 13:53 -!- rype [~ryan@up.skipfin.com] has quit [Quit: WeeChat 0.3.5] 13:56 -!- iant [~iant@74.125.57.50] has quit [Quit: Leaving.] 14:07 -!- Adys [~Adys@unaffiliated/adys] has quit [Quit: Quit] 14:08 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 14:10 -!- rlab_ [~Miranda@91.200.158.34] has joined #go-nuts 14:10 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 240 seconds] 14:14 -!- rlab_ [~Miranda@91.200.158.34] has quit [Ping timeout: 258 seconds] 14:18 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 240 seconds] 14:24 < kfmfe04> can someone point me to a code snippet illustrating go's version of polymorphism? in particular, if I can assign to an array of interfaces various types of structs that would be great - I can't seem to get past go's type checking 14:31 < jessta> kfmfe04: http://golang.org/doc/play/#package%20main%0A%0Afunc%20main()%20%7B%0A%09var%20a%20%5B%5Dinterface%7B%7D%0A%09a%20%3D%20append(a%2C0%2C%22pizza%22%2C5.0)%0A%09%0A%7D%0A 14:32 < jessta> append()'ing a number of items of different types to a slice of interface{} 14:32 -!- Bigbear1 [~Cody@d75-158-128-4.abhsia.telus.net] has joined #go-nuts 14:33 < jessta> kfmfe04: what problem are you having with the type checking? 14:34 < kfmfe04> let me play with your code a little - one min 14:37 -!- sebastianskejoe [~sebastian@188.114.142.217] has joined #go-nuts 14:38 < kfmfe04> http://golang.org/doc/play/#package%20main%0A%0Afunc%20main()%20%7B%0A%09var%20a%20%5B%5Dinterface%7B%7D%0A%09a%20%3D%20append(a%2C0%2C%22pizza%22%2C5.0)%0A%09%0A%7D%0A 14:39 < kfmfe04> revised 14:39 < kfmfe04> http://golang.org/doc/play/#package%20main%0A%0Afunc%20main()%20%7B%0A%09var%20a%20%5B%5Dinterface%7B%7D%0A%09a%20%3D%20append(a%2C0%2C%22pizza%22%2C5.0)%0A%09%0A%7D%0A 14:39 < kfmfe04> trying to create an array of Namers 14:40 < kfmfe04> hmm... ...url not pasting right 14:41 < kfmfe04> http://pastebin.com/W070PZnF 14:42 < skelterjohn> what are you trying to do? 14:45 < jessta> kfmfe04: http://pastebin.com/DANqSSqt 14:48 < kfmfe04> ok - getting closer 14:48 < kfmfe04> http://pastebin.com/gB4HtpuK 14:49 < kfmfe04> why doesn't this print anything? 14:50 < kfmfe04> nm - when I tried Printf() it dumped fine 14:51 < kfmfe04> tyvm everyone 14:51 < kfmfe04> will check my unit-test to see why it's not working there 14:58 < kfmfe04> dying on Line 32: http://pastebin.com/83zgYrWB 14:59 < kfmfe04> rog.go:32: cannot use &struct literal (type *Student) as type *Identifier in field value: 14:59 < kfmfe04> *Identifier is pointer to interface, not interface 14:59 < kfmfe04> prog.go:32: cannot use &struct literal (type *Toaster) as type *Identifier in field value: 14:59 < kfmfe04> *Identifier is pointer to interface, not interface 15:00 < kfmfe04> adding & before IdentifierTest results in: 15:00 < kfmfe04> prog.go:32: cannot use &struct literal (type *Student) as type *Identifier in field value: 15:00 < kfmfe04> *Identifier is pointer to interface, not interface 15:00 < kfmfe04> prog.go:32: cannot use &struct literal (type *Toaster) as type *Identifier in field value: 15:00 < kfmfe04> *Identifier is pointer to interface, not interface 15:02 -!- iant [~iant@ip-62-105-190-81.dsl.twang.net] has joined #go-nuts 15:02 -!- mode/#go-nuts [+v iant] by ChanServ 15:12 -!- kfmfe04 [~kfmfe04@NK219-91-106-247.adsl.dynamic.apol.com.tw] has quit [Quit: kfmfe04] 15:12 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 15:16 -!- bugQ [~bug@c-71-195-206-245.hsd1.ut.comcast.net] has joined #go-nuts 15:22 -!- moraes [~moraes@189.103.188.201] has quit [Ping timeout: 240 seconds] 15:27 -!- Project-2501 [~Marvin@82.84.81.102] has joined #go-nuts 15:30 -!- bugQ [~bug@c-71-195-206-245.hsd1.ut.comcast.net] has quit [Ping timeout: 276 seconds] 15:30 -!- PortatoreSanoDiI [~Marvin@dynamic-adsl-94-36-170-42.clienti.tiscali.it] has quit [Ping timeout: 264 seconds] 15:35 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.5] 15:37 -!- Varriount [~Varriount@public-craft.com] has joined #go-nuts 15:39 -!- kfmfe04 [~kfmfe04@host-58-114-183-56.dynamic.kbtelecom.net] has joined #go-nuts 15:42 < kfmfe04> can someone help me identify why Line 32 is ok, but Line 31 fails to compile? TIA http://pastebin.com/baqPeybE 15:48 < bytbox> kfmfe04: ItentifierTest wants a /pointer to/ an identifier 15:48 < bytbox> kfmfe04: you're giving it an identifier 15:48 < bytbox> (*Toaster) is what implements Identifier, not (Toaster) 15:48 < bytbox> you want to do type identifierTest struct {in Identifier; out string} 15:49 < bytbox> you don't usually specify pointers to interfaces (for this reason) 15:49 < bytbox> It's the implementation's choice whether or not to use a pointer 15:50 < kfmfe04> ty for taking a look, bytbox - however, when I remove the pointer and the & operator from initiation, I get a different kind of error 15:50 < bytbox> don't remove the & operator from initiation 15:50 < bytbox> just remove the pointer from the def. of identifierTest 15:51 -!- Bigbear1 [~Cody@d75-158-128-4.abhsia.telus.net] has quit [Quit: Leaving.] 15:51 * bytbox runs of to test it in case I'm wrong 15:51 < bytbox> oh 15:52 < bytbox> and get rid of the & before identifierTest on line 31 15:52 < bytbox> you don't have an array of (*identifierTest), you have an array of (identifierTest) 15:52 -!- mibocote [~matt@li161-224.members.linode.com] has quit [Ping timeout: 246 seconds] 15:53 -!- mibocote [~matt@li161-224.members.linode.com] has joined #go-nuts 15:54 < bytbox> here: http://pastebin.com/G1ANbNUv 15:54 < kfmfe04> tyvm, bytbox - that worked GREAT - I just have one question now - this exercise got me wondering, when you implement methods in Go, should you do it on the struct type or the struct* type? 15:54 < bytbox> heh 15:54 < kfmfe04> I mean, what's the convention? 15:54 < bytbox> your choice 15:54 < bytbox> I mean 15:55 < bytbox> I think *struct is more common, in most cases 15:55 < kfmfe04> if I do it for one, it won't necessarily work for the other? 15:55 < bytbox> correct 15:55 < kfmfe04> dang - too bad you can't just do it once and work for both 15:55 < bytbox> but bear in mind 15:55 < kfmfe04> I suppose they designed it that way for a reason 15:55 < bytbox> if you use interfaces for most things 15:55 < bytbox> then you never have to think about what's a pointer and what's not 15:56 < kfmfe04> but in this specific case that we just did, I had to turn struct* to struct for the methods to work, I think 15:56 < kfmfe04> wait - you got it to work with *struct 15:56 < kfmfe04> lemme try your pastebin 15:57 < bytbox> kfmfe04: what language are you coming from? 15:57 < kfmfe04> from C++ 15:57 < kfmfe04> from C++'s POV, I would've expected this to work only with pointers 15:58 < bytbox> well, the real problem with your code (apart from the pointer to an interface) was that you had declared an []struct, rather than [](*struct) 15:58 < bytbox> so really, it would have worked with only (*struct) 16:01 < kfmfe04> ok - I will go with your version - however, I find it a bit perplexing that just Identifier in identifierTest works since every concrete Identifier has a different sizeof() and I would expect every struct to be of the same size 16:01 < kfmfe04> it implies that under the covers, Go is using some kind of reference or pointer 16:01 < kfmfe04> this is a very interesting learning experience for me, coming from C++ 16:01 < bytbox> kfmfe04: it was for me too :P 16:02 < kfmfe04> I guess because Identifier is an interface anyways, the Go Compiler can optimize! 16:03 < kfmfe04> an interface must have some kind of special placeholder so that it's a fixed size (to keep a struct to be a fixed size) 16:04 < bytbox> kfmfe04: I'm not particularly familiar with compiler internals 16:04 < kfmfe04> so the requirement in C++ for polymorphism that you need pointers or references to get the effect doesn't apply to Go (bottom line: in Go, you should be able to just create an array of interface instances - I will try this out) 16:04 < bytbox> kfmfe04: yup. 16:05 < kfmfe04> tyvm bytbox! you've saved me a couple of hours of squirming and fighting with the Go Playground! 16:05 < bytbox> np 16:05 < bytbox> (Bah. go playground, indeed. You youngsters have it easy...) 16:06 < kfmfe04> I feel a little safer now that I can create an unit-test - extra scary writing code in a new language without unit tests 16:06 -!- Fish [~Fish@9fans.fr] has joined #go-nuts 16:06 < jessta> kfmfe04: http://research.swtch.com/2009/12/go-data-structures-interfaces.html 16:07 < jessta> explains a lot about how interfaces are implemented 16:07 < kfmfe04> excellent - ty for the ref, jessta 16:08 < kfmfe04> coming from inheritance-based polymorphism to Go interfaces is a bit mind-bending, but I'm almost certain it will lead to cleaner code 16:09 < skelterjohn> the jury is still out on that one 16:10 < str1ngs> nope they got sent home due to miss trial :P 16:14 -!- allengeorge [~allengeor@c-67-188-178-118.hsd1.ca.comcast.net] has joined #go-nuts 16:23 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has quit [Quit: skelterjohn] 16:29 -!- allengeorge [~allengeor@c-67-188-178-118.hsd1.ca.comcast.net] has quit [Quit: allengeorge] 16:33 -!- Marcelo [~iepsen@unaffiliated/iepsen] has quit [Quit: Leaving] 16:38 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined #go-nuts 16:49 -!- Project_2501 [~Marvin@82.84.77.29] has joined #go-nuts 16:52 -!- Project-2501 [~Marvin@82.84.81.102] has quit [Ping timeout: 250 seconds] 16:56 -!- awidegreen [~quassel@h-170-226.A212.priv.bahnhof.se] has joined #go-nuts 17:15 -!- dfr|mac [~dfr|work@173-87-227-220.dr04.glvv.ny.frontiernet.net] has joined #go-nuts 17:25 -!- bugQ [~bug@c-71-195-206-245.hsd1.ut.comcast.net] has joined #go-nuts 17:31 -!- Queue29 [~Queue29@173-8-182-114-SFBA.hfc.comcastbusiness.net] has joined #go-nuts 17:31 -!- kfmfe04 [~kfmfe04@host-58-114-183-56.dynamic.kbtelecom.net] has quit [Quit: kfmfe04] 17:34 -!- kfmfe04 [~kfmfe04@host-58-114-183-56.dynamic.kbtelecom.net] has joined #go-nuts 17:35 -!- kfmfe04 [~kfmfe04@host-58-114-183-56.dynamic.kbtelecom.net] has quit [Client Quit] 17:36 -!- GeertJohan [~Squarc@D978EC5D.cm-3-1d.dynamic.ziggo.nl] has quit [Quit: Leaving.] 17:42 -!- allengeorge [~allengeor@c-67-188-178-118.hsd1.ca.comcast.net] has joined #go-nuts 17:44 -!- allengeorge [~allengeor@c-67-188-178-118.hsd1.ca.comcast.net] has quit [Client Quit] 17:46 -!- dfr|mac [~dfr|work@173-87-227-220.dr04.glvv.ny.frontiernet.net] has quit [Ping timeout: 246 seconds] 17:50 -!- Ekspluati [5b98b815@gateway/web/freenode/ip.91.152.184.21] has joined #go-nuts 17:53 < Ekspluati> We began a server project and voted C++ vs Go as the main language. C++ won with 4 votes out of 5. Sad. :( 17:53 < aiju> haha 17:53 < aiju> Ekspluati: don't you have a shotgun 17:54 < Ekspluati> I voted for Go and I'm the C++ "pro" of the group. 17:54 < vegai> funny, I thought that too 17:54 < Ekspluati> aiju, no, sadly. 17:54 < vegai> I hope that doesn't say anything about us as a community 17:55 -!- legumbre_ [~leo@r190-135-28-130.dialup.adsl.anteldata.net.uy] has quit [Read error: Connection reset by peer] 17:55 < Ekspluati> The best arguments against Go were "because you use C++ too" and "Go has no libs" 17:55 < aiju> hm 17:55 < aiju> a shotgun is too nice 17:57 < Ekspluati> I can't think of any libs we would need but Go doesn't have or isn't trivial to implement. 17:57 -!- legumbre_ [~leo@r190-135-34-109.dialup.adsl.anteldata.net.uy] has joined #go-nuts 17:57 < aiju> libraries are a disease 17:57 < Ekspluati> And I use C++ because I do all the reverse engineering, hooking and other hacky hacking. 17:57 < aiju> what about C? ;P 17:58 < Ekspluati> I like my classes. :) 17:58 < str1ngs> Ekspluati: go has no libs is a weak arguement 17:58 < aiju> structs or get the fuck out 17:58 < Ekspluati> str1ngs, it expresses the quality of the arguments well. 17:59 < str1ngs> Ekspluati: I might say go doesnt have enough "native" libs ie 3rd party ones 17:59 < str1ngs> but stdlib its self is amazing 18:00 < aiju> what the fuck would you even use libraries for 18:00 < Ekspluati> str1ngs, yeah, the stdlib is more than enough for pretty much any server. 18:01 < Ekspluati> Only lacks packages to access databases, I think. 18:01 < aiju> Ekspluati: os.Open opens the in-kernel databases 18:01 < aiju> called files 18:02 < str1ngs> Ekspluati: what databases? 18:03 < str1ngs> Ekspluati: or you mean more abstracted interface? 18:08 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 250 seconds] 18:11 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts 18:17 -!- Fish [~Fish@9fans.fr] has quit [Read error: Operation timed out] 18:17 -!- Fish [~Fish@9fans.fr] has joined #go-nuts 18:30 -!- Adys [~Adys@unaffiliated/adys] has quit [Ping timeout: 255 seconds] 18:35 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:8c41:da62:a962:75a9] has joined #go-nuts 18:48 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 18:51 -!- Adys [~Adys@unaffiliated/adys] has quit [Client Quit] 18:51 -!- Bigbear1 [~Cody@d75-158-128-4.abhsia.telus.net] has joined #go-nuts 18:57 -!- Queue29 [~Queue29@173-8-182-114-SFBA.hfc.comcastbusiness.net] has quit [Ping timeout: 250 seconds] 18:58 -!- Project-2501 [~Marvin@82.84.82.71] has joined #go-nuts 19:00 -!- bmizerany [~bmizerany@c-69-181-106-229.hsd1.ca.comcast.net] has joined #go-nuts 19:02 -!- Project_2501 [~Marvin@82.84.77.29] has quit [Ping timeout: 264 seconds] 19:02 -!- cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has joined #go-nuts 19:03 -!- Queue29 [~Queue29@173-8-182-114-SFBA.hfc.comcastbusiness.net] has joined #go-nuts 19:10 -!- eimantas [~eimantas@ip-212-52-52-163.kava.lt] has joined #go-nuts 19:15 -!- alkavan [~alkavan@IGLD-84-228-189-104.inter.net.il] has quit [Read error: Operation timed out] 19:16 -!- alkavan [~alkavan@IGLD-84-228-189-104.inter.net.il] has joined #go-nuts 19:17 -!- Fish-- [~Fish@9fans.fr] has joined #go-nuts 19:17 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 19:18 -!- Bigbear1 [~Cody@d75-158-128-4.abhsia.telus.net] has left #go-nuts [] 19:18 -!- Fish [~Fish@9fans.fr] has quit [Ping timeout: 255 seconds] 19:18 -!- bmizerany [~bmizerany@c-69-181-106-229.hsd1.ca.comcast.net] has quit [Remote host closed the connection] 19:20 -!- moraes [~moraes@189.103.188.201] has joined #go-nuts 19:20 -!- ronnyy [~quassel@p4FF1C719.dip0.t-ipconnect.de] has joined #go-nuts 19:21 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 19:22 -!- bmizerany [~bmizerany@c-69-181-106-229.hsd1.ca.comcast.net] has joined #go-nuts 19:22 -!- Ekspluati [5b98b815@gateway/web/freenode/ip.91.152.184.21] has quit [Ping timeout: 252 seconds] 19:22 -!- eimantas [~eimantas@ip-212-52-52-163.kava.lt] has quit [Quit: eimantas] 19:24 -!- moraes [~moraes@189.103.188.201] has quit [Read error: Operation timed out] 19:24 -!- bmizerany [~bmizerany@c-69-181-106-229.hsd1.ca.comcast.net] has quit [Remote host closed the connection] 19:26 -!- moraes [~moraes@189.103.188.201] has joined #go-nuts 19:29 -!- bmizerany [~bmizerany@c-69-181-106-229.hsd1.ca.comcast.net] has joined #go-nuts 19:30 -!- danilo04 [~danilo04@66.44.225.80] has joined #go-nuts 19:38 < dario> why can't i do: x := []int{1, 2, 3}; fmt.Println(x...) ? 19:38 < uriel> 18:01 < aiju> Ekspluati: os.Open opens the in-kernel databases 19:38 < uriel> 18:01 < aiju> called files 19:38 < uriel> AMEN 19:38 < aiju> dario: fmt.Println(x) 19:38 < aiju> should work 19:38 < uriel> that is another way to put ken's old saying that: we got persistent objects, they are called files 19:39 < dario> aiju, i know, my problem isn't printing an array, i'm trying to understand the "..." 19:39 -!- ExtraSpice [XtraSpice@78-57-204-104.static.zebra.lt] has quit [Quit: Leaving] 19:40 < dario> and Println is func Println(a ...interface{}) 19:40 < dario> so i figure i can also call it with the array values "unpacked" 19:40 < dario> but it seems i can't 19:41 -!- sebastianskejoe [~sebastian@188.114.142.217] has quit [Ping timeout: 240 seconds] 19:42 < aiju> dario: you can't convert []int to []interface{} that easily 19:42 < aiju> you have to make([]interface{}, len(slice)) and copy over manually 19:43 < dario> ah, ok 19:47 -!- tncardoso [~thiago@189.59.135.179] has joined #go-nuts 20:03 -!- bmizerany [~bmizerany@c-69-181-106-229.hsd1.ca.comcast.net] has quit [Remote host closed the connection] 20:04 -!- bmizerany [~bmizerany@c-69-181-106-229.hsd1.ca.comcast.net] has joined #go-nuts 20:07 -!- bytbox [~s@96.26.105.154] has quit [Remote host closed the connection] 20:09 -!- pothos [~pothos@111-240-165-104.dynamic.hinet.net] has quit [Ping timeout: 260 seconds] 20:10 -!- pothos [~pothos@111-240-165-106.dynamic.hinet.net] has joined #go-nuts 20:14 -!- Queue29 [~Queue29@173-8-182-114-SFBA.hfc.comcastbusiness.net] has quit [Remote host closed the connection] 20:20 -!- zippoxer [~zippoxer@109.64.241.139] has joined #go-nuts 20:24 -!- message144 [~message14@cpe-75-83-155-145.socal.res.rr.com] has joined #go-nuts 20:28 -!- squeese_ [~squeese@cm-84.209.17.156.getinternet.no] has joined #go-nuts 20:29 -!- bugQ [~bug@c-71-195-206-245.hsd1.ut.comcast.net] has quit [Ping timeout: 240 seconds] 20:30 -!- sacho [~sacho@87-126-43-140.btc-net.bg] has quit [Quit: Ex-Chat] 20:32 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has quit [Ping timeout: 276 seconds] 20:32 < zippoxer> how to execute http.Request? 20:32 < str1ngs> you dont 20:33 < str1ngs> you pass it to something 20:33 < zippoxer> something? 20:33 < str1ngs> like client.Do(req) 20:34 -!- TheMue [~TheMue@p5DDF4E5F.dip.t-dialin.net] has quit [Quit: TheMue] 20:34 < zippoxer> is http.Client{} enough to create a client? 20:34 < str1ngs> check the docs 20:34 < zippoxer> or it requires some params before requesting 20:34 < zippoxer> kk 20:35 < str1ngs> godoc http Client | less 20:35 < str1ngs> but ya I think client := new(http.Client) is enough 20:36 < zippoxer> new(http.Client) = http.Client{} ? 20:36 < str1ngs> new is more like &http.Client{} iirc 20:36 < zippoxer> okay thanks 20:37 < str1ngs> I like to use new over composite literals if I'm not actually useing the composites 20:37 < str1ngs> grr hope that made sense 20:39 < zippoxer> I mostly see composite literals in the go source :) 20:42 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has joined #go-nuts 20:42 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has quit [Read error: Connection reset by peer] 20:42 < str1ngs> oh what my code is not good enough? :P 20:42 < zippoxer> lol I just meant google prefers this :P 20:43 < zippoxer> means nothing :\ 20:43 -!- m4dh4tt3r [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has quit [Read error: Connection reset by peer] 20:43 < str1ngs> what do that know .. jesh 20:43 < str1ngs> :P 20:43 < str1ngs> they* 20:43 -!- m4dh4tt3r [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has joined #go-nuts 20:43 < zippoxer> lol :P 20:43 < str1ngs> all kidding aside does not matter 20:44 -!- squeese_ [~squeese@cm-84.209.17.156.getinternet.no] has quit [Remote host closed the connection] 20:44 < str1ngs> zippoxer: did someone explain the goinstall issue with go-gtk to you? 20:45 < zippoxer> mm yeah 20:45 < str1ngs> ok eventaully that will get resolved 20:45 < zippoxer> it's solved; perfect binding 20:45 < str1ngs> there was a slight regression with goinstall but I guess you are building locally for now? 20:45 < str1ngs> ya that bindings are very good 20:46 < zippoxer> mmm I used gomake 20:46 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has quit [Ping timeout: 252 seconds] 20:46 < zippoxer> but now 20:46 < zippoxer> few hours ago, I reinstalled ubuntu 20:46 < zippoxer> on boot 20:46 < str1ngs> yes so you git clone .. so local install 20:47 < zippoxer> But goinstall worked too, later :P 20:47 < str1ngs> hmm really 20:47 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has joined #go-nuts 20:47 < str1ngs> maybe they fixed it then 20:47 < str1ngs> why would you need to reinstall? 20:47 < str1ngs> this is linux not windows :P 20:47 < zippoxer> i was on virtualbox 20:47 < zippoxer> it* 20:48 < zippoxer> very slow .. :\ 20:48 < str1ngs> or so you did a native install? 20:48 < zippoxer> yeah native is the right word :P 20:49 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined #go-nuts 20:49 -!- danilo04 [~danilo04@66.44.225.80] has quit [Quit: Leaving] 20:49 -!- m4dh4tt3r1 [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has joined #go-nuts 20:50 < zippoxer> seriously, go is easier than java. 20:50 < aiju> no shit sherlock 20:52 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 20:52 -!- m4dh4tt3r [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has quit [Ping timeout: 252 seconds] 20:53 -!- ijknacho [~ijknacho4@cpe-72-190-64-3.tx.res.rr.com] has joined #go-nuts 20:54 -!- ronnyy [~quassel@p4FF1C719.dip0.t-ipconnect.de] has quit [Remote host closed the connection] 20:55 -!- m4dh4tt3r [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has joined #go-nuts 20:58 -!- m4dh4tt3r2 [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has joined #go-nuts 20:59 -!- m4dh4tt3r1 [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has quit [Ping timeout: 276 seconds] 20:59 -!- m4dh4tt3r [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has quit [Read error: Connection reset by peer] 20:59 -!- m4dh4tt3r2 [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has quit [Read error: Connection reset by peer] 21:01 -!- m4dh4tt3r [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has joined #go-nuts 21:05 -!- m4dh4tt3r1 [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has joined #go-nuts 21:06 -!- m4dh4tt3r [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has quit [Ping timeout: 255 seconds] 21:07 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:8c41:da62:a962:75a9] has left #go-nuts [] 21:07 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has quit [Read error: Connection reset by peer] 21:08 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined #go-nuts 21:09 -!- _foocraft [~ewanas@78.101.138.25] has quit [Ping timeout: 252 seconds] 21:09 -!- Queue29 [~Queue29@64.134.225.158] has joined #go-nuts 21:10 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has joined #go-nuts 21:13 -!- m4dh4tt3r1 [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has quit [Quit: Leaving.] 21:15 -!- huin [~huin@91.85.188.1] has quit [Quit: leaving] 21:15 -!- cenuij [~cenuij@184.15.8.109.rev.sfr.net] has joined #go-nuts 21:15 -!- cenuij [~cenuij@184.15.8.109.rev.sfr.net] has quit [Changing host] 21:15 -!- cenuij [~cenuij@base/student/cenuij] has joined #go-nuts 21:19 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org] 21:23 -!- noam [noam@87.69.42.61.cable.012.net.il] has quit [Read error: Connection reset by peer] 21:24 -!- Fish-- [~Fish@9fans.fr] has quit [Quit: So Long, and Thanks for All the Fish] 21:26 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has quit [Read error: Connection reset by peer] 21:28 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined #go-nuts 21:30 -!- majerk [~jsherman@li110-138.members.linode.com] has joined #go-nuts 21:31 -!- noam [noam@87.69.42.61.cable.012.net.il] has joined #go-nuts 21:37 -!- Queue29 [~Queue29@64.134.225.158] has quit [Remote host closed the connection] 21:42 -!- cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has quit [Remote host closed the connection] 21:46 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has quit [Read error: Connection reset by peer] 21:46 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has quit [Ping timeout: 276 seconds] 21:48 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined #go-nuts 21:56 -!- Zoopee [alsbergt@zoopee.org] has quit [Ping timeout: 246 seconds] 21:56 -!- Tv [~Tv@cpe-76-168-227-45.socal.res.rr.com] has joined #go-nuts 21:58 -!- awidegreen [~quassel@h-170-226.A212.priv.bahnhof.se] has quit [Ping timeout: 240 seconds] 22:06 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has quit [Read error: Connection reset by peer] 22:08 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined #go-nuts 22:09 -!- cco3 [~conleyo@nat/google/x-gzfkhqnujdbcnubt] has quit [Remote host closed the connection] 22:14 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit: Verlassend] 22:15 -!- mojbro [~philip@harris.suitopia.com] has quit [Ping timeout: 240 seconds] 22:15 -!- mojbro [~philip@harris.suitopia.com] has joined #go-nuts 22:16 -!- Nisstyre [~nisstyre@109.74.204.224] has quit [Ping timeout: 264 seconds] 22:18 -!- Zoopee [alsbergt@zoopee.org] has joined #go-nuts 22:18 -!- moraes [~moraes@189.103.188.201] has quit [Read error: Connection reset by peer] 22:25 -!- bugQ [~bug@c-71-195-206-245.hsd1.ut.comcast.net] has joined #go-nuts 22:26 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has quit [Read error: Connection reset by peer] 22:28 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined #go-nuts 22:41 -!- tncardoso [~thiago@189.59.135.179] has quit [Quit: bye] 22:43 -!- zippoxer [~zippoxer@109.64.241.139] has quit [Remote host closed the connection] 22:46 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has quit [Read error: Connection reset by peer] 22:48 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined #go-nuts 22:52 -!- moraes [~moraes@189.103.188.201] has joined #go-nuts 22:55 -!- tav [~tav@92.20.3.183] has quit [Ping timeout: 255 seconds] 22:55 -!- tav [~tav@2.96.33.22] has joined #go-nuts 22:56 -!- Bigbear1 [~Cody@d75-158-128-4.abhsia.telus.net] has joined #go-nuts 23:06 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has quit [Read error: Connection reset by peer] 23:08 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined #go-nuts 23:08 -!- Project-2501 [~Marvin@82.84.82.71] has quit [Quit: E se abbasso questa leva che succ...] 23:14 -!- bmizerany [~bmizerany@c-69-181-106-229.hsd1.ca.comcast.net] has quit [Remote host closed the connection] 23:19 -!- bmizerany [~bmizerany@c-69-181-106-229.hsd1.ca.comcast.net] has joined #go-nuts 23:26 -!- chomp [~chomp@c-67-186-35-69.hsd1.pa.comcast.net] has joined #go-nuts 23:26 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has quit [Read error: Connection reset by peer] 23:28 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined #go-nuts 23:30 -!- HaikuUser [~vision@189.59.237.201] has joined #go-nuts 23:34 -!- moraes [~moraes@189.103.188.201] has quit [Remote host closed the connection] 23:35 -!- foocraft [~ewanas@178.152.115.82] has joined #go-nuts 23:38 -!- pothos [~pothos@111-240-165-106.dynamic.hinet.net] has quit [Ping timeout: 250 seconds] 23:44 -!- info [~indux@host192.190-231-211.telecom.net.ar] has joined #go-nuts 23:44 -!- dfc [~dfc@eth59-167-133-99.static.internode.on.net] has joined #go-nuts 23:45 < exch> John carmack: "We are filling one of our game build servers with 192 gigs of ram, which is still a bit mind boggling for me. Not even all that expensive." 23:45 < exch> ha. the fact this is even necessary to get even remotely acceptable c++ build times is just pitiful 23:46 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has quit [Read error: Connection reset by peer] 23:48 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined #go-nuts 23:48 < chomp> heh wow 23:49 < chomp> i've seen some truly horrendous snippets of code from id developers 23:51 <@adg> i've also seen some pretty nice code from carmack 23:51 <@adg> i can't really fault game developers for producing shitty code, though. they work under such pressure 23:52 < chomp> oh i know 23:53 < chomp> ship faster! 23:58 -!- Bigbear1 [~Cody@d75-158-128-4.abhsia.telus.net] has quit [Quit: Leaving.] --- Log closed Mon Jun 20 00:00:53 2011