#go-nuts

/

      • AeroNotix
        leitz: strings.Title
      • dominikh
        that's the first letter of every word in a string
      • daze has quit
      • AeroNotix
        dominikh: just the first word is a special case of all the words
      • derferman has quit
      • leitz
        AeroNotix, thanks!
      • dominikh
        AeroNotix: then enlighten me, how do I teach strings.Title about that special case :)
      • AeroNotix
        dominikh: strings.Split :)
      • dominikh
        AeroNotix: at that point I could just as well use ToTitle on the first rune and concat that with the rest. or use strings.Map manually
      • AeroNotix
        dominikh: that works
      • dominikh: upper casing strings is a special case of triviality
      • dominikh
        it would certainly not break multiple spaces :)
      • and damn I hate when example code doesn't work on my end
      • openpgp: invalid data: signature packet found before user id packet :(
      • AeroNotix
        dominikh: for a minute I thought you were talking of the strings.Title example
      • dominikh
        no, that works reasonably well
      • AeroNotix
        hahaha
      • derferman joined the channel
      • josh-k has quit
      • josh-k joined the channel
      • uvelichitel has quit
      • jpoz has quit
      • sbanwart__ joined the channel
      • annubbis joined the channel
      • jpoz joined the channel
      • josh-k has quit
      • roll has quit
      • AFlyingMonkey joined the channel
      • roll joined the channel
      • flosch joined the channel
      • AFlyingMonkey has quit
      • mihasya has quit
      • dtcaciuc has quit
      • reprage joined the channel
      • daze joined the channel
      • reprage has quit
      • wadey is now known as wadey|away
      • rcrowley joined the channel
      • c0rn has quit
      • Nightgunner5
        Here's why UTF-16 is a bad idea: http://i.imgur.com/j8YujFv.jpg
      • AeroNotix
        holy resolution
      • dominikh
        I fancy the math symbols
      • Gerald has quit
      • foobaz
        i wish i could go back in time to the '90s and warn everyone not to implement wide chars
      • Nightgunner5
        this game is from 2007
      • foobaz
        yea but we're stuck with utf-16 because of decisions made in the '90s
      • marsam has quit
      • back before utf-8 sunk into our collective consciousness
      • and we still thought 16 bits would be enough for all the characters
      • Nightgunner5
        does utf-16 not support characters above uffff?
      • foobaz
        it doesn't, but that wasn't the original plan
      • that was a hack added once unicode got larger
      • utf-8 is superior if you have characters above FFFF, because they are both variable length, but utf-8 is smaller
      • but in the '90s we thought unicode would never go above FFFF, so utf-16 looked like the superior choice, because it could be fixed length
      • nerglish has quit
      • M_F_B joined the channel
      • jordanorelli joined the channel
      • Nightgunner5
        does utf-8 support characters above FFFFFFFFFFFFFFFF?
      • jordanorelli has quit
      • nsf has quit
      • or do I have to wait until utf-128
      • encode all characters as varints
      • gmpff has quit
      • UTF-16 gives unrelated symbols when you miss a byte. UTF-8 adds a question mark and carries on
      • |kira
        I'm really curious... are there any charts that show how performance of Go has improved over time? It'd be interesting seeing how things have changed. A history of the language would be interesting too.
      • philcrissman has quit
      • AeroNotix
        |kira: imagine a positive correlation between performance and time
      • DONE
      • bytbox has quit
      • |kira
        Well that's as lazy as: Before Go - 0, Go currently 100%
      • kei has quit
      • AeroNotix
        |kira: there's nothing like that, I don't think.
      • nitrix
        |kira: yes, there are multiple ones, but usually only a single module is benchmarked. For example, OpenSSL:
      • araujo has quit
      • sudorandom joined the channel
      • gercod joined the channel
      • AeroNotix
        nitrix: I mean there's no overall bench though
      • EhevuTov has quit
      • nitrix
        It'd be hard to find a global overview overtime, but it's definitively improving for the best.
      • araujo joined the channel
      • bytbox joined the channel
      • AeroNotix
        for 100% it's improving
      • nitrix
        You start with something simple, that works, and then you add complexity with optimizations.
      • scalabl3 has quit
      • AeroNotix
        can't disagree
      • but library code needs to be optimized
      • |kira
        Well... Native Go (pre-1.1) to Go 1.1 is a huge improvement...
      • nitrix
        It'll only get better. The GC for example has the worst implementation possible.
      • It's very naive.
      • |kira
        Libs rarely are perfectly optimized because they're general purpose
      • nitrix
        But as soon as they'll spend some time on it, go figure if we don't make other jealous.
      • scalabl3 joined the channel
      • AeroNotix
        nitrix: my thoughts exactly
      • java had 20+ years of optimizations with a financial backer
      • |kira
        GC performance isn't really a huge issue IMO, you shoulddn't be giving it a lot of work no matter how god it is, reuse allocations instead of pump and dump.
      • nitrix
        Ironically, it didn't get nearly as close a what Go will be able to do.
      • And we're talking about Google also, that factors in.
      • |kira
        Java is a weird beast though
      • OwenOu has quit
      • nitrix
        They had the phase were it interested everyone.
      • Go is gaining in popularity also. I'm not worried.
      • leitz
        Yay! A long, for me, program done in first draft. http://play.golang.org/p/lAsPLw4Lg9
      • nitrix
        Smart minds will devote some time to make it better ^^
      • |kira
        Go is going to be #1 in "low-level" servers, I have a feeling... no clue about it's future in consumer stuff though.
      • leitz
        nitrix, I hope so.
      • hyphenated has quit
      • nitrix
        Even then, it's not like I'm unhappy or something. It's already better than a lot of languages out there.
      • nerglish joined the channel
      • PHP just to name one.
      • leitz also piddles in PHP.
      • AeroNotix
        PHP is my marker for someone who either doesn't give a real shit about programming and milks it or someone who is just bad at it
      • Passion people, you really don't give a fuck if you use PHP.
      • |kira
        PHP is pure evil... ruby and python are much less evil
      • nitrix
        When you work with PHP everyday, you realise how clumsy it is. It just seems like they tried to make everyone happy, along with bad design decisions, incoherent/non-consistant function naming, and a documentation that contredicts itself.
      • hattusili_III_ has quit
      • |kira
        C++ is the Nurgle of native languages.
      • nitrix
        Don't get me started x]
      • But Go still has a bright future.
      • |kira
        Seems to be constantly growing, and if Google did something like... andriod/nacl support, boom.
      • AeroNotix
        I hope Go's almost abrasive manner of sticking to it's guns holds out
      • nitrix
        Even with a bloated std lib, it could be viable. We'll simply import something else made by another comitee.
      • Isn't android written in java?
      • |kira
        As long as Go's core isn't a monster it doesn't really many matter how many packages there are.
      • AeroNotix
        nitrix: when was the last time you submitted something for inclusion to the stdlib? They're more likely to remove something
      • foobaz
        AeroNotix: it will, but in ten years everyone will move to "go++" with templates and multiple inheritance
      • Nightgunner5
        go#
      • AeroNotix
        foobaz: fuck you for giving me that image
      • |kira
        Andriod is a weird linux distro that uses java... although you can run anything on it
      • foobaz
        :)
      • nitrix
        go# lmao
      • superjoe
        gp
      • (that's D)
      • Nightgunner5
        let's call it "go pound" just to confuse c# fans
      • and british people
      • AeroNotix
        Nightgunner5: or the indians
      • |kira
        Go#+ will come after Go++ and GoD and Go#
      • foobaz
        "go octothorpe"
      • nitrix
        Then you'll have Go on rails.
      • Running on a Java VM.
      • superjoe kills himself
      • Nightgunner5
        There was a joke about gonads at some point
      • |kira
        GoKVM lol
      • nitrix
        Or a new programming language named ogle.
      • |kira
        Actually... fuck... GoKVM would be a cool thin distro for running Go programs
      • Nightgunner5
        so we run a go kernel written in what language?
      • foobaz
        go on JVM should be called gojure
      • |kira
        A Linux distro specifically for ARM/AMD64 servers running Go software... based on Gentoo
      • davecheney
        i'll just leave this here