Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
uranusjr
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
28 ms
·
271.
▲
by
uranusjr
7y ago
It always baffled me as a native Chinese speaker that 16-bit was ever considered enough to “be plenty of room to encode every script in modern use, and then some”. Common local encodings like Big5 (also 16-bit fixwidth) was already suffer
272.
▲
by
uranusjr
7y ago
I struggle to understand how what you talked about is relevant here. The problem parent talked about is how this laziness could be implemented without losing what makes f-string awesome right now. It’s not viable, which backs my reasoning w
273.
▲
by
uranusjr
7y ago
They can’t just deprecate the other two; f-string’s nature precludes it from being used in situations where formatting needs to occur lazily, e.g. i18n. This is the same reason why other languages with string interpolation also keep a forma
274.
▲
by
uranusjr
7y ago
The problem is exactly that pip is neither mature nor has limited scope. Python packaging is constantly evolving, and pip needs to keep up with it. And you’d be very surprised if you ever look under the hood how incomplete the implementatio
275.
▲
by
uranusjr
7y ago
I hope some of your downvoters could elaborate what exactly you said wasn’t appropriate. You have my +1.
276.
▲
by
uranusjr
7y ago
I quickly searched but couldn’t find any records of Kuo speaking of a “spiritual successor to SE” or “cancellation of X” in Chinese. The closest I could find is a piece from January in which he speculated about Xs getting smaller and a new
277.
▲
by
uranusjr
7y ago
To be fair, it is actually far from trivial to determine whether a value is a numeric value in JavaScript, and most all-in-one utility libraries (jQuery, Lodash, etc.) java something of similar functionality. If there is one function that n
278.
▲
by
uranusjr
7y ago
Is this the one you’re referring to? (The content matches your description, but it’s more of an interview.) The professor (Zhou Xiaozheng) is a famous for being extremely outspoken about the Tiananmen incident, even when he was in China (he
279.
▲
by
uranusjr
7y ago
How exactly do you distinguish new and old scripts? They are all just files from the interpreter’s perspective.
280.
▲
by
uranusjr
7y ago
I am from Taiwan but have trouble reverse-translating this back to Chinese. What is the vernacular title you are referring?
281.
▲
by
uranusjr
7y ago
I guess the most important distinction is the “B” part (benevolent). Guido is called that because he is known (since before BDFL is a thing) to listen to other people, and adapt when they disagree strongly with his decisions. Google has nev
282.
▲
by
uranusjr
7y ago
Yes I have. My conclusion to the thought experiment is that it is irrelevant. History shows that in the face of one monster you can’t control, the only solution is to build your own. De-weaponise the only opponent it has always ends with th
283.
▲
by
uranusjr
7y ago
There are a lot of possibilities. Terry Kuo has close relation with China. It is possible he is pressured out of US investment due to the recent tension, but trying to play the situation so he don’t bet everything on China (likely the losin
284.
▲
Taiwan legalizes same-sex marriage in historic first for Asia
(cnn.com)
9 points
by
uranusjr
7y ago
|
0 comments
285.
▲
by
uranusjr
7y ago
`typing` is the module that uses annotations as type hints. Parent is correct; Python documentation calls the syntax annotations.
286.
▲
by
uranusjr
7y ago
Yeah, self-hosting a Python package index is so easy that (free) hosting solutions don’t really offer much, which is probably why you don’t see many of those. Paid services do exist (the most recent is PyDist), but you’re really paying more
287.
▲
by
uranusjr
7y ago
> I doubt any chinese citizen is upset at the crackdown. Tibetans and Uygurs may beg the differ. — Or maybe you already discounted them from being Chinese? I’m fine with that definition too ;)
288.
▲
by
uranusjr
7y ago
For those confused by the awkward title like myself, the sentence would finish with than China previous did . It wasted 17% (2017), now 5%.
289.
▲
by
uranusjr
7y ago
First, only anyone can edit other people’s comments; only repository admins can edit messages in the repository. Also, anecdotally, it is overwhelmingly positive to me, only harmful in extremely limited number of cases (this be one of them)
290.
▲
by
uranusjr
7y ago
I assume you mean PEP (Python Enhancement Proposal) :) A PEP has a lot more to consider than a standalone, third-party projects. They also need to support most (of not all) usages of Python, which is extremely involved. E.g. zip import migh
291.
▲
by
uranusjr
8y ago
I also found this statement bizzare, but after some thinking it kind of makes sense, in a way. It depends on how you define “China”. Taiwan keeps a lot of things from the olden days, but that China is very, very different from the one today
292.
▲
by
uranusjr
8y ago
> The argument is that Markdown is bad because there is no standard for those implementations to adhere to, so they end up being wildly incompatible. This argument is valid, but… > An example is that in Reddit's markdown; this te
293.
▲
by
uranusjr
8y ago
It is defined as a small but visible size. Whatever that should be is left to the implementers.
294.
▲
by
uranusjr
8y ago
That’s a very slippery slope. Most of their tools would be just fine since the notions predate POSIX, and people already expect incompatibilities across platforms (plus Plan 9 ones more or less work similarly as their counterparts). Naming
295.
▲
by
uranusjr
8y ago
Anyone else wondering about the name? I’m OK with the absence of staging area, but with such a fundamental change why would it still call itself “Git”? A name like (say) Tig would keep the Git reference alive, but make it obvious the two ar
296.
▲
by
uranusjr
8y ago
https://groups.google.com/forum/#!topic/django-developers/mL... In short, the efforts are constantly undermanned, leading to developer burnout. Andrew had since came back to pushing things (ASGI 3.0 came out
297.
▲
by
uranusjr
8y ago
Andrew Godwin (the main hand behind the push) burnt out and halted all development until he can find someone someone is willing to help.
298.
▲
by
uranusjr
8y ago
That heart attack incident is terrible. The nap part, however, is not particularly concerning. Nap after lunch is encouraged in the Chinese culture, and schools have a dedicated “noon nap” slot. Your Chinese coworkers likely nap not because
299.
▲
by
uranusjr
8y ago
Sort of. In Python the stacktrace is always built for every step you take in code, so exceptions are not particularly costly compared to other operations. Reflection is also not relatively more costly since types are objects just like every
300.
▲
by
uranusjr
8y ago
I’d go as far as saying that this kind of posts worsen the situation. In general, if you find bugs in open source code, it’s better to quietly file bugs to the author instead of writing a full post listing errors people made. It’s like your
More ›