Redian新闻
>
Google了一下为啥Python留着GIL
avatar
h*9
2
rt
avatar
p*j
3
似乎不能免第一年的$50年费。
不知道现在AA换张国内机票要多少点?
avatar
D*9
4
以前nr的时候填61:871(b),但是871(b)是nr的。现在应该怎么填?求教!!
avatar
w*x
5
花了几个钟头研(goo)究(gle)了一下为毛Python要留着GIL不改掉,作为一个非CS人感
觉自己的智商好不够用...总结如下:1.5时代去掉GIL以后和没有去掉GIL比较,由于大
量的lock calls,单线程速度大幅度下降,而对于纯python的应用范围内这显得得不偿
失。所以,权衡的结果,是在纯python的时候用多进程取代多线程,同时在更低层次上
需要用多进程的时候,利用c-extensions来实现多线程操作。
不知道大家咋想?
avatar
h*t
6
contact the representative.
avatar
x*h
7
同问,刚看焗意粉里面就用橄榄油了
avatar
m*2
8
AA回国70K
avatar
D*9
9
第二十一条ARTICLE 21 (Other Income)
一、缔约国一方居民的各项所得,不论在什么地方发生,凡本协定上述各条未作规
定,应仅在该缔约国征税。
1. Items of income of a resident of a Contracting State, wherever arising,
not dealt with in the foregoing Articles of this Agreement shall be taxable
only in that Contracting State.
二、第六条第二款规定的不动产所得以外的其它所得,如果所得的收款人是缔约国
一方居民,通过设在缔约国另一方的常设机构在该缔约国另一方进行营业,或者通过设
在该缔约国另一方的固定基地在该缔约国另一方从事独立个人劳务,据以支付所得的权
利或财产与该常设机构或固定基地有实际联系,不适用第一款的规定。在这种情况下,
应视具体情况适用第七条或第十三条的规定。
2. The provisions of paragraph 1 shall not apply to income other than that
from real property as defined in paragraph 2 of Article 6 if the recipient
of such income, being a resident of a Contracting State, carries on business
in the other Contracting State through a permanent establishment situated
therein, or performs in that other Contracting State independent personal
services from a fixed base situated therein, and the right or property in
respect of which the income is paid is effectively connected with such
permanent establishment or fixed base. In such case the provisions of
Article 7 or 13, as the case may be, shall apply.
三、虽有第一款和第二款的规定,缔约国一方居民的各项所得,凡本协定上述各条
未作规定,而发生在缔约国另一方的,可以在该缔约国另一方征税。
3. Notwithstanding the provisions of paragraphs 1 and 2, items of income of
a resident of a Contracting State not dealt with in the foregoing Articles
of this Agreement and arising in the other Contracting State may also be
taxed in that other Contracting State.
avatar
p*2
10
这东西没啥前途吧?

【在 w*x 的大作中提到】
: 花了几个钟头研(goo)究(gle)了一下为毛Python要留着GIL不改掉,作为一个非CS人感
: 觉自己的智商好不够用...总结如下:1.5时代去掉GIL以后和没有去掉GIL比较,由于大
: 量的lock calls,单线程速度大幅度下降,而对于纯python的应用范围内这显得得不偿
: 失。所以,权衡的结果,是在纯python的时候用多进程取代多线程,同时在更低层次上
: 需要用多进程的时候,利用c-extensions来实现多线程操作。
: 不知道大家咋想?

avatar
y*e
11
只用橄榄油
比较健康
橄榄油是唯一450度以上不变质的油
去costco买大瓶的很便宜

【在 h******9 的大作中提到】
: rt
avatar
i*4
12
回国太贵了 2年前我换得财6万 现在。。。 7万
国内往返最便宜的2万5
avatar
w*x
13
看领域吧?我不知道在网站架构方面是不是已经过时了,但是科学计算里面用的人多。
用的人多,资源就多,同行评议里面废话也会少……

【在 p*****2 的大作中提到】
: 这东西没啥前途吧?
avatar
S*e
14
不是所有的都可以,要那种extra virgin的,可以用来frying的。
avatar
J*n
15
3W应该算还不错了吧,还能再好吗?
avatar
L*s
16

大致如此。主要原因之一是基于引用计数的垃圾回收,
CPython代码里很多Py_INCREF和Py_DECREF的macros,
去掉GIL之后这些引用计数操作就不是线程安全的了。
所以在每个线程装个大锁,实现bytecode级别的线程安全。

【在 w*x 的大作中提到】
: 花了几个钟头研(goo)究(gle)了一下为毛Python要留着GIL不改掉,作为一个非CS人感
: 觉自己的智商好不够用...总结如下:1.5时代去掉GIL以后和没有去掉GIL比较,由于大
: 量的lock calls,单线程速度大幅度下降,而对于纯python的应用范围内这显得得不偿
: 失。所以,权衡的结果,是在纯python的时候用多进程取代多线程,同时在更低层次上
: 需要用多进程的时候,利用c-extensions来实现多线程操作。
: 不知道大家咋想?

avatar
f*y
17
说反了吧,extra virgin的是用来拌沙拉的,一般的橄榄油用来炒菜。

【在 S********e 的大作中提到】
: 不是所有的都可以,要那种extra virgin的,可以用来frying的。
avatar
p*j
18
1年前关掉一个这个卡,还能再跳吗?
avatar
w*x
19
谢谢回复!
所以都是ref counting惹的祸啊…搜了一转,大多说是因为在早期的时候GC远没现在这
么成熟,ref counting的方法又简单,就用了;哪儿想到这么多年以后多核运算这么普
及…
早在py3k开发时期有人问Guido说,能把这个ref counting换掉吗?答复说,那所有
code都重写,改动太大了…就只得作罢。
历史残留问题真是处处都有啊,嘿嘿。

[发表自未名空间手机版 - m.mitbbs.com]

【在 L***s 的大作中提到】
:
: 大致如此。主要原因之一是基于引用计数的垃圾回收,
: CPython代码里很多Py_INCREF和Py_DECREF的macros,
: 去掉GIL之后这些引用计数操作就不是线程安全的了。
: 所以在每个线程装个大锁,实现bytecode级别的线程安全。

avatar
t*a
20
橄榄油含有的不饱和脂肪和omega3最多,是油类中最健康的。但是用橄榄油炒菜,可能
没有别的油香
avatar
x*7
21
有link吗?
avatar
L*s
22

As far as I know, refcnt is a major reason, but not the whole story.
Python (as well as Ruby) VM bytecodes are simply way too high level
for any finer-grain locks to be useful.
PyPy, another Python implementation that trace-JITs the interpreter
itself instead of the Python program, does not support refcnt semantics
--it uses multiple gc algorithms, with minimark being the default one--
but it still has GIL present, for many reasons.
You may take a look at their STM proposal to get some ideas
http://pypy.org/tmdonate.html

【在 w*x 的大作中提到】
: 谢谢回复!
: 所以都是ref counting惹的祸啊…搜了一转,大多说是因为在早期的时候GC远没现在这
: 么成熟,ref counting的方法又简单,就用了;哪儿想到这么多年以后多核运算这么普
: 及…
: 早在py3k开发时期有人问Guido说,能把这个ref counting换掉吗?答复说,那所有
: code都重写,改动太大了…就只得作罢。
: 历史残留问题真是处处都有啊,嘿嘿。
:
: [发表自未名空间手机版 - m.mitbbs.com]

avatar
h*9
23
网上查了查,说橄榄油不能用来炒菜,高温会破坏了养分,会产生反式脂肪酸什么的,
最好用来凉拌
avatar
e*e
24
为什么不跳delta的那个35000的呢?第一年还免年费。

【在 J*******n 的大作中提到】
: 3W应该算还不错了吧,还能再好吗?
avatar
p*2
25

换个语言了事

【在 w*x 的大作中提到】
: 谢谢回复!
: 所以都是ref counting惹的祸啊…搜了一转,大多说是因为在早期的时候GC远没现在这
: 么成熟,ref counting的方法又简单,就用了;哪儿想到这么多年以后多核运算这么普
: 及…
: 早在py3k开发时期有人问Guido说,能把这个ref counting换掉吗?答复说,那所有
: code都重写,改动太大了…就只得作罢。
: 历史残留问题真是处处都有啊,嘿嘿。
:
: [发表自未名空间手机版 - m.mitbbs.com]

avatar
g*i
26
嗯,我也是凉拌的时候用,看起来好看,吃起来倒是没味道

【在 h******9 的大作中提到】
: 网上查了查,说橄榄油不能用来炒菜,高温会破坏了养分,会产生反式脂肪酸什么的,
: 最好用来凉拌

avatar
J*n
27

delta年费更高

【在 e********e 的大作中提到】
: 为什么不跳delta的那个35000的呢?第一年还免年费。
avatar
w*x
28
Makes total sense. Thank you for sharing the knowledge and the link! I
learned a lot.

【在 L***s 的大作中提到】
:
: As far as I know, refcnt is a major reason, but not the whole story.
: Python (as well as Ruby) VM bytecodes are simply way too high level
: for any finer-grain locks to be useful.
: PyPy, another Python implementation that trace-JITs the interpreter
: itself instead of the Python program, does not support refcnt semantics
: --it uses multiple gc algorithms, with minimark being the default one--
: but it still has GIL present, for many reasons.
: You may take a look at their STM proposal to get some ideas
: http://pypy.org/tmdonate.html

avatar
s*1
29

橄榄油是含的“单”不饱和脂肪酸比例最多。

【在 t***a 的大作中提到】
: 橄榄油含有的不饱和脂肪和omega3最多,是油类中最健康的。但是用橄榄油炒菜,可能
: 没有别的油香

avatar
w*x
30
没有更好的换啊!科学计算里面,用过好几年的matlab和R,代码重用性都很不好。
Python的函数库多,代码质量也高,大部分应用速度也没问题(multi-processing +
Cython 可以解决并行问题)。
如果换的话,科学计算里面还有更好的选择吗……?

【在 p*****2 的大作中提到】
:
: 换个语言了事

avatar
y*e
31
Nod.
不过如果炒一些不需要爆锅的菜,也是可以用的。

【在 h******9 的大作中提到】
: 网上查了查,说橄榄油不能用来炒菜,高温会破坏了养分,会产生反式脂肪酸什么的,
: 最好用来凉拌

avatar
e*s
32
网上的信息分化严重,搞不清楚哪个对错
高温破坏营养那是必然的,不管什么油都有这个问题
对橄榄油本身来说,凉拌比炒菜更适合,
但比较各种油的话,我觉得相对还是橄榄油健康
就像上面说的,橄榄油里也很多种,extra virgin的烟点低,凉拌更好,其他的烟点高
一些炒菜应该不会有大问题的吧
而且炒菜本来最好就是要热锅冷油的,这样就基本可以避免一些高温导致的问题了

【在 h******9 的大作中提到】
: 网上查了查,说橄榄油不能用来炒菜,高温会破坏了养分,会产生反式脂肪酸什么的,
: 最好用来凉拌

avatar
L*e
33
When cooking with olive oil, save your extra-virgin expensive oils for
salads, dressings, and vinaigrettes. You can also drizzle it over slices of
crusty bread or onto open-face sandwiches. Use it on a baked potato or add
it to mashed potatoes instead of butter. Extra virgin olive oil tastes great
on cooked vegetables or brushed onto fish or meat before serving.
When sautéing or frying, use either a combination olive oil (one that is
simply a blend of extra virgin and regular olive oil) or a str
avatar
l*i
34
能。但是也没什么意义。
avatar
i*m
35
of course , use olive oil for all food cooking now
avatar
h*u
36
是要extra-light的,沸点很高。extra virgin只能用来凉拌。

【在 S********e 的大作中提到】
: 不是所有的都可以,要那种extra virgin的,可以用来frying的。
avatar
d*z
37
对,extra virgin太油了

【在 h********u 的大作中提到】
: 是要extra-light的,沸点很高。extra virgin只能用来凉拌。
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。