Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
notatallshaw
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
91.
▲
by
notatallshaw
3y ago
If having copyright were a prerequisite of training data this would be true. But in the US this hasn't been tested in the courts yet, and there's reason to think from precedent this legal argument might not hold ( https:/
92.
▲
by
notatallshaw
3y ago
The difference between this attempt and previous attempts is: * The PEP has been announced to be accepted (Steering Council are still working on details for final wording) * Many things are already landing on CPython main in preparation for
93.
▲
by
notatallshaw
3y ago
My understanding is most low hanging fruit were picked for Python 3.11. And the faster CPython team have been looking at more mid to long term goals with the addition of a JIT and other accompanying infrastructure around for 3.13 and 3.14.
94.
▲
by
notatallshaw
3y ago
What is or isn't "pythonic" is largely determined by the community not the language. Nothing is stopping the Python community from monkey patching everything like the Ruby community does. The f-string changes arrived because
95.
▲
by
notatallshaw
3y ago
Google Desktop was not released before October 2004 though. And even then, what was its significance on the general desktop space? I used it heavily, but I didn't know anyone else who had it installed.
96.
▲
by
notatallshaw
3y ago
The link you've given shows Google had the majority of market share by October 2004, which is in line with what the parent comment states (at least the way I parse it). What were they paying to be default on prior to October 2004? Smar
97.
▲
by
notatallshaw
3y ago
That's a very under specified criticism, what type of complexity do you think it has introduced and how do you quantify "minor gain"? Some people clearly think it is an appropriate complexity to solve for the gain it gives, h
98.
▲
by
notatallshaw
3y ago
By having a well-defined syntax, it allows: * Other Python implementations to correctly and confidently implement f-strings * CPython to use its regular parser to parse f-strings rather than have a special sub-parser * Lots of edge-cases wi
99.
▲
by
notatallshaw
3y ago
Indeed, there was some controversy about the implementation cost: https://discuss.python.org/t/please-consider-delaying-or-eve...
100.
▲
by
notatallshaw
3y ago
The pros and cons of this was extensively discussed: https://discuss.python.org/t/pep-701-syntactic-formalization... In summary the winning argument was it's always possible to for users to write unreadable code i
101.
▲
by
notatallshaw
3y ago
FYI pip is specifically not a package manager, it's a package installer. Pip does not attempt to resolve dependency conflicts of already installed packages, only the ones it is currently trying to install. Nor does it try to manage the
102.
▲
by
notatallshaw
3y ago
You don't, this is an internal implementation detail of CPython, the interpreter decides what objects are immortal, e.g. None
103.
▲
by
notatallshaw
3y ago
> Now I need You don't need to do anything, you can ignore all type hints > use IF to guard it in CI in every file Are you talking about "if TYPE_CHECKING:"? Your other option is to put "from __future__ import anno
104.
▲
by
notatallshaw
3y ago
Well I was replying to this: > I wish python and it’s libraries wasn’t so inefficient. And it seems like Pulp isn't a solver by itself so comparing it to gurobi doesn't make a lot of sense? I see gurobi also has a Python interf
105.
▲
by
notatallshaw
3y ago
Taking a look at pulp it just seems to be a solver abstraction API and all the real work is done by solver libraries written in lower-level languages. It looks like the default solver is COIN-OR CLP/CBC, and that's written in C++:
106.
▲
by
notatallshaw
3y ago
It prevents the data between you and the requester from being read or tampered with in-transit. Before HTTPS was popular, I used to see ISPs inject tracking JavaScript or ads into arbitrary websites for their "customers". So, in s
107.
▲
by
notatallshaw
3y ago
> or is there a fundamental requirement, e.g. C programs unavoidably interact directly with the GIL? Both C programs can use the GIL for thread safety and can make assumptions about the safety of interacting with a Python object. Some of
108.
▲
by
notatallshaw
3y ago
> It's relatively simple to make the GIL go away: just compile to some VM that has a good concurrent garbage collector would be one approach Sure, if you don't mind paying a 50-90% performance impact on single threaded performa
109.
▲
by
notatallshaw
3y ago
Yes they are, it's been integrated and stable in conda since last year, you can turn it on with a solver config set: https://www.anaconda.com/blog/a-faster-conda-for-a-growing-c...
110.
▲
by
notatallshaw
3y ago
Also there had been a growing trend for most popular packages to offer precompiled wheels on PyPI instead of just sdist releases. This meant that people who had moved to Conda because they couldn't get Pip to install important packages
111.
▲
by
notatallshaw
3y ago
`rotary_embedding_torch` has not defined any build requirements hence your error: https://github.com/lucidrains/rotary-embedding-torch . You therefore need to install `numpy` before installing `rotary_embedding_torch`.