last day (934 days later) » 

11:30 AM
All pythonistas welcome :D
yo! :D
 
hiya
 
yea, i was thinking we could slowly build up a userbase
@markcial come to think of it, its remarkable how similar go is to python
 
i just tested some things go
i wished go existed some time ago
when i had to do some performance libraries on c
 
Yea, what I love is that you get a single library! :D
i mean binary
 
yup
 
11:32 AM
no dlls involved :D
 
and compiling is fast as a sharp shot
 
yup
When I was first using this, I was like this has to be scripting language
so i put a shebang on it
 
BTW i saw that web framework
 
thats when i realized that it Wasnt
 
xD
 
11:33 AM
@markcial sexy
@markcial Wanna learn more of this together?
 
it has even websockets
 
hhmmmhhmh
 
uhm, i am just a little busy
 
and goroutines
 
i started a nodejs project on my spare time
 
11:34 AM
yea, totally understand that :D
but if you ever feel like you want to get more serious with go
 
I'm pretty much here :D
 
it has no commits since a week xD
i will do a little later
i like the fact that its web framework handles websockets
i am looking forward to real time web frameworks
 
Hmm, yea, same here bro
 
hahah take a look to revel
 
11:35 AM
Is this an express app?
 
is cool
 
your app.js file looks like an AMD js file
 
is a sails app, a framework built on top of express
 
no wonder, it looked familiar yet dissimilar
 
i saw other chats builts atop of sails, but it didnt worked
 
11:37 AM
hmm, so you decided to make your own
thats the spirit :D
 
btw there is a go tag in SO?
maybe you could start making a info tag wiki with some links
 
I made one :)
hehehehe
It wasn't there before, but as soon as I learnt about it, I made one.
 
ah ok
 
so go and golang are the same thing
 
11:39 AM
but i gotta say this
classes work very differently in go
 
uhm no date manipulation libraries?
ah time package ok
 
Yup, they pretty much copied most of how the Python stdlib was made
so the modules are quite similar
 
wow
that is crazy
layout is a string with some date, and it interpreted that date and converted the time to that date
 
yup
I still got a lot to learn in that regard.
But lets hope that I can learn what I want to in time.
 
weird way to assign a list
 
11:48 AM
yup
its quite different from lots of the stuff that you're used to
but I think you can get used to it over time.
 
type Vertex struct {
    X int
    Y int
}
sweeeet
structs
 
oh yea! :D
 
i have to work but i faved the room
afk, cya
 
thanks bro ;D
When you get outta phphell, join me here :D
we can go to heaven XD
 
12:10 PM
Thought I'd pop in and see what all the fuss is about
 
@IntrepidBrit Yooooo! :D
So yea, I started learning go cuz I was super frustrated with Python's solutions for concurrency,
 
I like DisPy
 
You'll like goroutines even more
I guarantee it :)
 
Well unfortunately I don't have the time to check out each thing that comes in :)
 
@IntrepidBrit Hey, thats totally understandable, but the more I'm using go, the more I see that its a lot like python
 
12:13 PM
But by the sounds of it I would prefer Go's static typing more than Python's
 
heh :P
True, I wanted statically typed python long ago.
 
Dynamic typing has always irked me
Because it's not truly dynamic :)
 
@IntrepidBrit I'll have to understand what you mean by your last line :P
 
Well, if you drill down in Python, you'll end up finding that much of it behaviour is based on its typing
Really infuriating if it's doing things in the background and you haven't realised ;)
 
Hmm, I see.
Well I haven used Python for quite some time, now and I feel that dynamic typing although has some good points, I feel static is better, and forces you to think about your data and algorithms more
rather than relying on a monekypatch
 
12:20 PM
I find both have their uses in different places
But for any "production" product/service, static typing all the way
 
yea, TDD can only get you so far
@XavierCombelle Welcome :)
 
@GamesBrainiac I'm still to deploy TDD on our important projects. But I think it definitely has a place. The biggest problems we're having is regression bugs!
 
@IntrepidBrit Yea, regression is an issue. I haven't really written software as large as you're talking about.
But, I'm sure I will be soon.
 
Trust me, if you can stick with TDD it can save a hellalot of headaches. Especially when hotpatching :)
 
@GamesBrainiac thanks
 
12:26 PM
@XavierCombelle Hey, if you're in the process of learning this language too, perhaps we could do it together :)
 
12:55 PM
@GamesBrainiac I'm just curious
 
1:05 PM
room topic changed to Go/Golang: A Room for Go and prospective Go programmers (no tags)
Yup, changed the room name :)
 
1:30 PM
Heh, I've heard this song before, but I didn't know who sang it:
 
posted on December 01, 2013 by Andrew Gerrand

We are pleased to announce the release of Go 1.2, the latest stable version of the Go Programming Language.

posted on December 02, 2013 by Rob Pike

From the beginning of the project, Go was designed with tools in mind. Those tools include some of the most iconic pieces of Go technology such as the documentation presentation tool godoc, the code formatting tool gofmt, and the API rewriter gofix. Perhaps most important of all is the go command, the program that automatically installs, builds, and tests Go programs using nothing more than the

posted on December 12, 2013 by Andrew Gerrand

In September 2010 we introduced the Go Playground, a web service that compiles and executes arbitrary Go code and returns the program output.

posted on December 13, 2013 by Andrew Gerrand and Johan Euphrosine

When we launched Go for App Engine in May 2011 the SDK was just a modified version of the Python SDK. At the time, there was no canonical way to build or organize Go programs, so it made sense to take the Python approach. Since then Go 1.0 was released, including the go tool and a convention for organizing Go programs.

posted on February 24, 2014 by Andrew Gerrand

At FOSDEM on the 2nd of February 2014 members of the Go community presented a series of talks in the Go Devroom. The day was a huge success, with 13 great talks presented to a consistently jam-packed room.

 
Arrite added the main blog :)
Now for xkdc
 
2:03 PM
@juniorzoid Hiya! :D
@juniorzoid Are you cronos?
@juniorzoid You should be able to write now
 
2:34 PM
@EliasNaur Hi!
@EliasNaur Are you from the IRC room?
@Budah Welcome :)
@FrankBlechschmidt Hiya! :D
Unfortunately if you have a reputation lower than 20, you can't talk :(
4
@FrankBlechschmidt Hey there! You should be able to talk now.
@FrankBlechschmidt Try signing in and then out again.
@sztanpet Hiya! Welcome.
 
moo
 
@sztanpet Awesome, someone finally made it XD
@sztanpet Are you from #go-nuts or the G+ page?
@hash Hiya! :) Welcome to the Go chatroom.
 
clicked on the link in irc
 
@sztanpet Awesome. So, how long have you been working with Go? I'm relatively new, so I'm learning as fast as I can to compensate.
@cezio Welcome :)
Just putting this out there :)
I've been looking for this
Go for Python Programmers ^
 
2:56 PM
clicked link on redit ;)
 
@hash There was a link to this page on reddit?
Thats awesome.
@rofrol Hiya! :D Welcome to Go!
 
3:31 PM
@Mue Hiya!
Welcome to the Go! chatroom.
@Mue Glad to see there are other Go aficionados here :)
@JimPaek Welcome :)
 
hi
From G+
 
@JimPaek Awesome, glad you could make it here :)
I started the room so that we could discuss some of the programs we've made with go, and get some guidance.
I'm quite new to the language my self, but I fell in love with it, and so I'm trying to get a strong community going here on SO.
@JimPaek How long have you been working with Go?
 
Couple of years
 
@JimPaek Thats awesome, what have you made with it so far?
 
Mainly web apps, some tools to extract data from databases, even some basic but crazy fast MS Word .docx mail merge templating, if that makes some sense.
 
3:45 PM
@JimPaek I see, well I'm working with channels right now, lets see where things go.
@CoryLaNou Hiya Cory, you can't post here because you don't have 20 rep yet.
 
4:03 PM
@simonmenke Hiya!
 
@GamesBrainiac Hi @games-brainiac I'm just having a look around.
 
@simonmenke Hey! This room is rather new, so I'm trying to get gophers like myself talking, and helping out new comers to the language.
 
@GamesBrainiac sounds like fun. I found the link on G+.
 
@simonmenke Yup put it there. I just want a stronger Go community here on SO, I think its an awesome language. So, have you made anything with it so far?
 
@GamesBrainiac Many internal tools at mrhenry.be over the past 3 years. Now I'm mainly working on github.com/telehash/gogotelehash/tree/develop a TeleHash implementation for Go.
 
4:12 PM
@simonmenke Whoah! You work on all kinds of stuff!
@simonmenke So telehash, its essentially a new protocol like HTTP?
Sorry if I'm slow on the intake here, but there are just so many new things happening all the time, its hard to keep up :P
 
@GamesBrainiac more like UDP or TCP except it has distributed routing and peer discovery, full forward security and it works behind NATs (which i think is very nice).
 
@simonmenke Ahh, that sounds like it puts less of a load on the central server. I think Cisco was working on something similar to this back in the early 2000s.
@Kavu Hiya! :D
Its great you could make it @Kavu I thought it was about time that SO had a proper Go! room :)
 
@GamesBrainiac Hi!
 
@Kavu Thanks so much for coming :) I saw that you were regular with Go, so I thought it would be a good idea to invite you here.
 
@GamesBrainiac There have been many attempts at making 'distributed protocols'. Telehash really stands out because it's doesn't rely on any particular platform or technology. It works over UDP, TCP, WebRTC, in your browser, on your smartphone, it even works on arduino. But it's still pretty much in the experimental phase now.
 
4:27 PM
@simonmenke I see, well if go is getting a telehash implementation, then I'm super excited :)
 
@GamesBrainiac I'll post here when I have something stable to play with.
 
@simonmenke To be sure man! :D It will be a new learning experience for me, since I'd like to sink my teeth into networking, but my authoring contract and university keeps me busy :P
@simonmenke I'm taking a look at your code to get a feel for how complex go code works.
 
@GamesBrainiac It sure is complex ;) Right now I'm catching up with the spec. When that is done I'll have some time to clean things up.
 
type PacketHeaders struct {
	Type   string `json:",omitempty"`
	Line   string `json:",omitempty"`
	Iv     string `json:",omitempty"`
	Stream string `json:",omitempty"`
	Open   string `json:",omitempty"`
	To     string `json:",omitempty"`
	Sig    string `json:",omitempty"`
}
So, I'm guessing backtics here for for commenting?
 
@GamesBrainiac Are you asking about backticks or the tags (things in backticks)? :)
 
4:35 PM
@Kavu They're tags? I'm a little confused since Go has C style comments.
 
@GamesBrainiac yeah, there is StructTags thing golang.org/pkg/reflect/#StructTag
@GamesBrainiac in your example it's a supplementary thing for json.Marshal / Umarshal. golang.org/pkg/encoding/json/#Marshal
 
@Kavu Interesting, I was told that interfaces were different from other languages.
But sometimes Go feels a lot like Haskell at times.
 
@GamesBrainiac most people face and use it during (xml | json).(Marshal | Unmarshal), but you can include some reflect magic into your Go with tags :) I saw some kind of Go ORM based on struct tags.
 
@Kavu Whoah there. You're making me drool, I can't wait to learn more Go! :P
 
@GamesBrainiac a lot? :-) I don't think so. At least Go doesn't have zygohistomorphic prepromorphisms :-D (see haskell.org/haskellwiki/Zygohistomorphic_prepromorphisms)
 
4:42 PM
@Kavu I couple of braincells just died :P I did not even know such a word existed.
 
@radical Welcome :)
 
Thanks GamesBrainiac!
Nice to see a golang room :)
 
@radical Yea, I thought it would encourage people to learn more about the language, and have a discussion with us.
 
great!
 
4:50 PM
I'm no Go guru myself, but I'm working towards being a gopher XD
 
What are you guys using golang for?
 
@radical Me, I'm making a file watcher, a cross platform one, so lets see how that goes.
 
Kavu has made a change to the feeds posted into this room
 
ah okk, cool
 
0
Q: Golang Increment data to Redis

scarpacciI have been playing around with golang and redis. I just stood up a simple http server and wanted to increment requests on redis. I am blowing up the connections (I think). I found that with redigo you can use connection pooling, but not sure how to implment that in go when I am serving the re...

-1
Q: Generic function using embeddable structs

AlexI'm trying to write a function that will process a certain type of objects and call a certain method passed as one of the args. Since there's no inheritance or generics, I'm using embedding. (I can't use interfaces as you can only define methods in them, and I need struct fields as well). I'm ne...

0
Q: Update subdocument with mgo

vacuKinda need to change a subdocument and update it on the doc. In node i did it like this: transactions.some(function(transaction) { if (transaction._id == data.TransactionId) { transaction.callback_status = 'failed'; transaction.third_party_report_status = 'no_report'; su...

0
Q: Generic method to iterate over collection (slice) of structs

SławoszI have following code in Go: type Foo struct { Id int } type Bar struct { Id int } func getIdsFoo(foos []Foo) { ids = make([]int, len(foos)) // iterate and get all ids to ids array } func getIdsBar(bars []Bar) { ids = make([]int, len(bars)) // iterate and get all ids to ids array } I...

0
Q: How to properly use time.Parse to create a time object from a Unix time string?

RalfWe are trying to parse a unix timestamp, which is available as a string, into a time object, however, the following does not work: package main import ( "fmt" "time" ) func main() { t, _ := time.Parse(time.UnixDate, "1393344464") fmt.Printf("%v", t) } It keeps returning 0001-01-01 00...

 
4:52 PM
@Kavu Good, you're learning about the feed system :) I added a couple of things in there.
xkdc is a must XD
 
heh
 
@radical So, have you started working with Go?
I'm just starting out, and I'm a total noob (there I admitted it XD)
 
I haven't touched golang in a while :( I was watching Eillot Stoneham's fosdem talk on golang, and I started thinking about it again. So, i will probably start playing with it again
 
@radical I mostly code some little useful libraries as Proof on Concept: github.com/kavu?tab=repositories.
 
but even earlier, i was a noob :p
 
4:56 PM
@radical I came to the language, since it had such nice concurrency constructs.
I use python a lot, but I'm seeing that Go can help me do a lot of the things I used to use Python for.
 
@Kavu, neat!!
GamesBrainiac, okay. yeah, the concurrency stuff is nice
but i haven't built anything non-trivial yet
 
For all fresh gophers — GopherVids gophervids.appspot.com. Go watch them now, very useful, believe me.
5
 
@Kavu ohohohoho, I just hit the jackpot XD
 
thanks Kavu
 
@radical If you want to mention someone, you can just put the @ symbol infront of their names, chat has autocompletion.
@BurntSushi5 Hiya! :D Welcome to golang chat fellow gopher XD
 
5:04 PM
@GamesBrainiac, i know. I was just trying to avoid the ping sounds for everyone :p
 
@Kavu Yea, that should be starred.
@Kavu Have you read any books on Go?
I was beginning to read Programming in Go by Mark Summerfield.
@user3253529 Hiya! Unfortunately, you'd going to need 20 rep to join chat :( Sorry, there is nothing I can do about that.
@user3253529 Thanks for dropping by though :) We all really appreciate it.
 
@GamesBrainiac yes, I read it, but didn't like a lot.
 
@Kavu I was thinking the same. It gets pretty boring pretty quickly, and he skips on some of the of most important bits
So, do you have a book that you'd recommend?
I'm not averse to reading the docs, but a nice guide would help (something comprehensive y'know?)
 
@GamesBrainiac usually a link one of my answers on SO stackoverflow.com/a/19549318/45622. Not so comprehensive, but may be useful. Also be sure to check out SO Community Wiki page stackoverflow.com/tags/go/info
 
@GamesBrainiac hiya. saw the link on G+
 
5:17 PM
that wiki page is great!
 
@BurntSushi5 Hiya! :D Welcome, we're all enthusiasts, professions or just wanna be gophers here, so I hope you make yourself at home.
@Kavu Thanks for that, thats more than a list :)
Arrite guys its 11 here, so I gotta go to sleep.
This is gamesbrainiac go ing out :P
 
 
2 hours later…
7:05 PM
0
Q: GO: pop from a map

sSmacKkIs there an existing function where we can pop a (key,value) pair from a map in GO? I use the word pop instead of remove because a pop would re-arrange the elements after the index where the (key,value) was removed. As an example the following code: package main import "fmt" func main() { ...

 

  last day (934 days later) »