The Go Programming Language
› http://golang.org/
› Go Playground
Go Projects
› Revel Web Framework
sillyousu

Go 1.2 发布

  •  
  •   sillyousu ·
    sillyousu · Dec 2, 2013 · 4383 views
    This topic created in 4722 days ago, the information mentioned may be changed or developed.
    23 replies  •  1970-01-01 08:00:00 +08:00
    0x61
    0x61
    Dec 2, 2013
    1
    已经装上了
    puras
    puras
    Dec 2, 2013
    2
    嗯,刚从1.2RC5更新到正式版。哈
    不过只看了一下版本号,之后就。。。该干嘛干嘛了
    sillyousu
    sillyousu
    OP
    Dec 2, 2013
    3
    @puras 是的啊。 没有非常特别的改进。
    puras
    puras
    Dec 2, 2013❤️1
    4
    @sillyousu 好像1.3的TODO List已经放出来了。。。
    initialdp
    initialdp
    Dec 2, 2013
    5
    好像不久前才1.1,这个golang难道也像chrome一样会成为版本帝么?
    feuvan
    feuvan
    Dec 2, 2013
    6
    http 自动支持 HEAD request 不错
    sillyousu
    sillyousu
    OP
    Dec 2, 2013
    7
    meta
    meta
    Dec 2, 2013
    8
    有个奇怪的改进,切片操作可以一次性搞定长度和容量,写法方便了点,但没看出来有什么重要意义。
    meta
    meta
    Dec 2, 2013
    9
    @initialdp 你不纠结数字不就行了么,如果他们用发布日期作为版本号,你是不是就没意见了呢。
    xiaoxuxu
    xiaoxuxu
    Dec 2, 2013
    10
    Goroutine现在改成preemptive了,有点nb,不知道底层怎么调度的
    ling0322
    ling0322
    Dec 2, 2013
    11
    咱一直在等FP中的map/fold/filter什么的支持呢(
    initialdp
    initialdp
    Dec 2, 2013
    12
    @meta 倒不是纠结在数字。而是如果应用到生产环境的话,毕竟还希望有稳定的工具链。如果版本变换太快,未必是件好事。
    sillyousu
    sillyousu
    OP
    Dec 2, 2013
    13
    @ling0322

    现在自己写个map/filter应该不难吧?

    fold 没听说过。囧
    ling0322
    ling0322
    Dec 2, 2013
    14
    @sillyousu 问题就是go好像还没有支持泛型吧,咱想用类似于rust的[1, 2, 3].iter().map(|&x| x * x).filter(|&x| x > 5);这种数据操作呢
    46fo
    46fo
    Dec 2, 2013
    15
    模板 支持 判断 非布尔型了
    rlx
    rlx
    Dec 2, 2013
    16
    新增了数据库的打开连接数限制,另外GC性能有提升
    cyberscorpio
    cyberscorpio
    Dec 2, 2013
    17
    @ling0322 靠,这个写法。。。
    rwx
    rwx
    Dec 2, 2013
    18
    @xiaoxuxu
    The scheduler is invoked occasionally upon entry to a function. This means that any loop that includes a (non-inlined) function call can be pre-empted, allowing other goroutines to run on the same thread.

    这看起来就是一个缓解死循环的措施而已。。
    Numbcoder
    Numbcoder
    Dec 2, 2013
    19
    什么能有引入包版本号的支持?
    ling0322
    ling0322
    Dec 2, 2013
    20
    @cyberscorpio 所以咱才喜欢FP风格的语言嘛,简洁美观
    sillyousu
    sillyousu
    OP
    Dec 2, 2013
    21
    @ling0322

    泛型估计不会有了。 interface 凑合用吧。
    <script src="https://gist.github.com/sillyousu/7748152.js"></script>

    https://gist.github.com/sillyousu/7748152
    ling0322
    ling0322
    Dec 2, 2013
    22
    @sillyousu 咦,这个好像很有趣的样子啊(不知道有没有现成的库呢
    jiyinyiyong
    jiyinyiyong
    Dec 3, 2013
    23
    @sillyousu 新手表示看到 `interface{}` 这么用很新奇,
    请问 `arg.(int)` 这里具体是什么意思?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1000 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 19:11 · PVG 03:11 · LAX 11:11 · JFK 14:11
    ♥ Do have faith in what you're doing.