
1 0x61 2013-12-02 10:13:47 +08:00 已经装上了 |
2 puras 2013-12-02 10:31:29 +08:00 嗯,刚从1.2RC5更新到正式版。哈 不过只看了一下版本号,之后就。。。该干嘛干嘛了 |
5 initialdp 2013-12-02 12:31:24 +08:00 好像不久前才1.1,这个golang难道也像chrome一样会成为版本帝么? |
6 feuvan 2013-12-02 13:06:34 +08:00 http 自动支持 HEAD request 不错 |
7 sillyousu OP @puras 这个吗? https://docs.google.com/document/d/1s6MxBsLyBG45SRS60a-aM01DmZ4hD1nMzGAKdTopKGY/edit @initialdp 目测是大概半年一个小版本release |
8 meta 2013-12-02 13:31:10 +08:00 有个奇怪的改进,切片操作可以一次性搞定长度和容量,写法方便了点,但没看出来有什么重要意义。 |
10 xiaoxuxu 2013-12-02 13:42:44 +08:00 Goroutine现在改成preemptive了,有点nb,不知道底层怎么调度的 |
11 ling0322 2013-12-02 13:42:55 +08:00 咱一直在等FP中的map/fold/filter什么的支持呢( |
14 ling0322 2013-12-02 14:09:09 +08:00 @sillyousu 问题就是go好像还没有支持泛型吧,咱想用类似于rust的[1, 2, 3].iter().map(|&x| x * x).filter(|&x| x > 5);这种数据操作呢 |
15 xdeng 2013-12-02 14:23:59 +08:00 模板 支持 判断 非布尔型了 |
16 rlx 2013-12-02 14:54:26 +08:00 新增了数据库的打开连接数限制,另外GC性能有提升 |
17 cyberscorpio 2013-12-02 15:58:06 +08:00 @ling0322 靠,这个写法。。。 |
18 rwx 2013-12-02 16:57:57 +08:00 @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. 这看起来就是一个缓解死循环的措施而已。。 |
19 Numbcoder 2013-12-02 17:09:26 +08:00 什么能有引入包版本号的支持? |
20 ling0322 2013-12-02 19:16:04 +08:00 @cyberscorpio 所以咱才喜欢FP风格的语言嘛,简洁美观 |
21 sillyousu OP @ling0322 泛型估计不会有了。 interface 凑合用吧。 <script src="https://gist.github.com/sillyousu/7748152.js"></script> https://gist.github.com/sillyousu/7748152 |
23 jiyinyiyong 2013-12-03 22:48:38 +08:00 @sillyousu 新手表示看到 `interface{}` 这么用很新奇, 请问 `arg.(int)` 这里具体是什么意思? |