There is no secret ingredient, Yandex just put more effort into supporting languages that are spoken in ex-USSR countries, because that's the most important market for them. Other translation tools do not consider i. e.…
> some censorship How the hell is everyone okay with it? Why should I be "forbidden" from understanding a text written in a foreign language if it contains something inappropriate? I don't know of any translation…
> BeOS also had 750ms preemption interval (or was it 3ms, I dont remember) 3ms vs almost a second is a pretty big difference...
I don't think that "skin in the game" means what you think it means.
Is it a violation of any of the policies?
You could probably use much smaller model for such rewriting
The most interesting idea in my opinion is biased reference counting [0]. An oversimplified explanation (and maybe wrong) of it goes like this: problem: - each object needs a reference counter, because of how memory…
AFAIK the initial prototype called nogil was developed by a person named Sam Gross who also wrote a detailed article [0] about it. He also had a meeting with Python core. Notes from this meeting [1] by Łukasz Langa…
I always wondered who even decided that averaging the input is a good idea. It sounds like it makes sense at first glance, but if you think about it a little bit more it actually doesn't make any sense. The average of…
I think that people who suggest to "just write cleaner code" are missing the point entirely. Of course, we all are trying to write clear code. It doesn't mean that your tool should make working with less than perfect…
It is unclear what is the condition of automatic folding of the second level and below. If you are using "Go to..." a struct declaration or impl in Rust (or a class in other languages) it actually makes a lot of sense.…
> "they care more about doing things right than delivering quickly" Is it actually supposed to be a negative review...
What does the feature discussed in TFA (chained comparisons) have to do with Python 2 vs Python now. As another commenter pointed out [0] this feature existed since 1.4 [1]. Also, I don't understand why so many people…
"someone who writes code" is very vague. For someone who writes code primarily in Python this behavior is less surprising than the rest that you described.
I've just checked [0], Rust bans such construct for booleans as well. [0] https://play.rust-lang.org/?version=stable&mode=debug&editio...
I can think of some more interesting examples when it violates intuition gained from mathematical notation. When looking at `a == b == c` we naturally assume that not only `a == b` and `b == c` but also `a == c` because…
Rust also gives a custom error message [0] that explicitly explains that "comparison operators cannot be chained" and shows you how to rewrite the expression using `&&`. Which makes me wonder whether they came up with…
Of course, you're right, it is not possible to to share a connection pool between processes without pgbouncer. > Parent comment is talking about one connection per process with 50k processes. It is actually not clear…
As I said, you can return the connection to the connection pool. From the perspective of keeping the number of open connections low it doesn't really matter if you close it or return to the pool, because in either case…
Between queries in the same transaction? No Between transactions? Yes, absolutely In fact, many libraries do it automatically. For example, SQLAlchemy doc explicitly says [0]: > After the commit, the Connection object…
I think that the main issue here is not treating true/false as values but allowing them to be implicitly converted or compared to numbers with the assumption that true equals 1 and false equals 0. I think that Rust got…
This is the most important part: don't
Sounds like something that an unreasonable person would say.
But it's not a "trick", it's just a normal Python code. I don't think that anyone who main programs in Python would perceive it as some kind of cool/unusual trick and not just normal code.
To be fair, there are edge cases [0] when it does look weird. [0] https://github.com/satwikkansal/wtfpython?tab=readme-ov-file...
There is no secret ingredient, Yandex just put more effort into supporting languages that are spoken in ex-USSR countries, because that's the most important market for them. Other translation tools do not consider i. e.…
> some censorship How the hell is everyone okay with it? Why should I be "forbidden" from understanding a text written in a foreign language if it contains something inappropriate? I don't know of any translation…
> BeOS also had 750ms preemption interval (or was it 3ms, I dont remember) 3ms vs almost a second is a pretty big difference...
I don't think that "skin in the game" means what you think it means.
Is it a violation of any of the policies?
You could probably use much smaller model for such rewriting
The most interesting idea in my opinion is biased reference counting [0]. An oversimplified explanation (and maybe wrong) of it goes like this: problem: - each object needs a reference counter, because of how memory…
AFAIK the initial prototype called nogil was developed by a person named Sam Gross who also wrote a detailed article [0] about it. He also had a meeting with Python core. Notes from this meeting [1] by Łukasz Langa…
I always wondered who even decided that averaging the input is a good idea. It sounds like it makes sense at first glance, but if you think about it a little bit more it actually doesn't make any sense. The average of…
I think that people who suggest to "just write cleaner code" are missing the point entirely. Of course, we all are trying to write clear code. It doesn't mean that your tool should make working with less than perfect…
It is unclear what is the condition of automatic folding of the second level and below. If you are using "Go to..." a struct declaration or impl in Rust (or a class in other languages) it actually makes a lot of sense.…
> "they care more about doing things right than delivering quickly" Is it actually supposed to be a negative review...
What does the feature discussed in TFA (chained comparisons) have to do with Python 2 vs Python now. As another commenter pointed out [0] this feature existed since 1.4 [1]. Also, I don't understand why so many people…
"someone who writes code" is very vague. For someone who writes code primarily in Python this behavior is less surprising than the rest that you described.
I've just checked [0], Rust bans such construct for booleans as well. [0] https://play.rust-lang.org/?version=stable&mode=debug&editio...
I can think of some more interesting examples when it violates intuition gained from mathematical notation. When looking at `a == b == c` we naturally assume that not only `a == b` and `b == c` but also `a == c` because…
Rust also gives a custom error message [0] that explicitly explains that "comparison operators cannot be chained" and shows you how to rewrite the expression using `&&`. Which makes me wonder whether they came up with…
Of course, you're right, it is not possible to to share a connection pool between processes without pgbouncer. > Parent comment is talking about one connection per process with 50k processes. It is actually not clear…
As I said, you can return the connection to the connection pool. From the perspective of keeping the number of open connections low it doesn't really matter if you close it or return to the pool, because in either case…
Between queries in the same transaction? No Between transactions? Yes, absolutely In fact, many libraries do it automatically. For example, SQLAlchemy doc explicitly says [0]: > After the commit, the Connection object…
I think that the main issue here is not treating true/false as values but allowing them to be implicitly converted or compared to numbers with the assumption that true equals 1 and false equals 0. I think that Rust got…
This is the most important part: don't
Sounds like something that an unreasonable person would say.
But it's not a "trick", it's just a normal Python code. I don't think that anyone who main programs in Python would perceive it as some kind of cool/unusual trick and not just normal code.
To be fair, there are edge cases [0] when it does look weird. [0] https://github.com/satwikkansal/wtfpython?tab=readme-ov-file...