Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
00ajcr
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
00ajcr
2y ago
There's a Cython implementation (the .pyx file). The Cython code is compiled to C code (then that C code is compiled).
2.
▲
by
00ajcr
4y ago
Less ambitious than where? I don't think UK people are inheritantly less ambitious than anywhere else, but the very low social mobility here has always dragged down potential for some, while the punishing austerity and lack of investme
3.
▲
by
00ajcr
4y ago
My interpretation of the point in the blog post was that explicitly spelling out variable names makes APIs and the underlying code much more accessible to a wider audience. Sure, there'll be a subset of users of these libraries that ha
4.
▲
by
00ajcr
4y ago
Aside from significant whitespace (which I suppose takes a little getting used to), is there anything that marks out Python's syntax as particularly rigid compared to other languages? I'm struggling to understand what the author i
5.
▲
by
00ajcr
6y ago
To broadcast operations (such as addition) between arrays in NumPy, trailing dimensions have to be equal (or be of length 1). In the example given above the 3D array and 2D array have shape (lengths of dimensions): (2, 3, 4) (2,
6.
▲
by
00ajcr
6y ago
For fans of crime/detective novels, I would not hesitate to recommend 'The Chain of Chance'. Utterly gripping, fascinating, and a gateway to Lem's sci-fi works.
7.
▲
by
00ajcr
7y ago
I think it's the `--skip-string-normalization` flag which means "Don't normalize string quotes or prefixes".
8.
▲
by
00ajcr
8y ago
Surely the [sic] annotations are to indicate that the quotations are unchanged from the original source text, which contains somewhat archaic language and misspellings of words when compared to modern English.
9.
▲
by
00ajcr
8y ago
Philip Guo has an excellent set of video lectures on CPython internals, which includes an overview of parts of ceval.c: http://pgbovine.net/cpython-internals.htm
10.
▲
by
00ajcr
9y ago
Useful tips and a nice skeleton! There's also a great guide to cleaning bones from animals (in various states of decay) on the blog Jake's Bones that I've referred to a couple of times: http://www.jakes-bones.com&#
11.
▲
by
00ajcr
9y ago
I started writing a '100-pandas-puzzles' set of exercises here: https://github.com/ajcr/100-pandas-puzzles There's also pandas_exercises by Guilherme Samora ( https://github.com/guipsamora
12.
▲
by
00ajcr
9y ago
There are some nice exercises here, good work. For question 48 it might be simpler to just write np.sort(a)[-5:] instead of using argsort() and then using fancy indexing. Better yet, use np.partition(a, kth=-5)[-5:] which scal
13.
▲
by
00ajcr
10y ago
No! Never do this in Python. You are making the flattened list by continually concatenating the smaller lists. Each concatenation creates the new bigger list from scratch; the flattened list does not grow dynamically. This is quadratic-perf