Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
raymondh
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
27 ms
·
151.
▲
by
raymondh
7y ago
I concur. Microsoft is now an important and helpful part of the open source ecosystem. For the most part, they've been generous and engaging with the community. Also, the commercial products seem to be living in harmony with their o
152.
▲
by
raymondh
7y ago
IIRC, the 90% estimate is based on how often searches encounter previously cataloged objects.
153.
▲
by
raymondh
7y ago
To me, the headline feature for Python 3.8 is shared memory for multiprocessing (contributed by Davin Potts). Some kinds of data can be passed back and forth between processes with near zero overhead (no pickling, sockets, or unpickling). T
154.
▲
by
raymondh
7y ago
If I'm reading this correctly, it is very close to what Python has been doing for over a decade, so I am not sure that using a "rejection method" counts as "new tech". Here are the relevant snippets. Code for shuff
155.
▲
by
raymondh
8y ago
Presumably, getting caught and convicted introduces a selection bias away from the traits you just listed.
156.
▲
by
raymondh
8y ago
Multiple social priming studies are cited. This is a warning flag given how replication crisis was most pervasive in that entire field.
157.
▲
by
raymondh
8y ago
These examples were nicely curated. Thank you.
158.
▲
by
raymondh
8y ago
By 1969, this was already a common meme. One example from 1967 was from the "Court Martial" episode of Star Trek: KIRK: Yes. (Notices the piles of books everywhere) What is all this? COGLEY: I figure we'll be spending some
159.
▲
by
raymondh
8y ago
This is a nice bit a progress and addresses a major concern about using PyPy in real-time systems.
160.
▲
by
raymondh
8y ago
Ironically, the provided implementations for Queue and Deque are algorithmically terrible, giving O(n) performance for operations that should be O(1). Queue and Deque could easily be developed from first principles by building on dictionari
161.
▲
by
raymondh
8y ago
I think almost every programmer would benefit from reading "Refactoring". It sharpened my skills quite a bit, and I was already experienced before encountering the book. The book was an easy read and was an efficient use of my ti
162.
▲
by
raymondh
8y ago
In Python 3.7, the Timsort was sped-up another 40 to 75% for homogenous lists (just some of the common cases). It works by replacing Python's slow generic PyObject_RichCompareBool() with a type-specialized comparison function. * https
163.
▲
by
raymondh
8y ago
Here are the slides for that presentation: https://twitter.com/raymondh/status/995693882812915712
164.
▲
by
raymondh
9y ago
Thanks for the nicely written Python/Rust comparison :-) Is Rust's flat_map() equivalent to this in Python? def flat_map(func, it): return map(func, chain.from_iterable(it))
165.
▲
by
raymondh
9y ago
> In a few particular cases, I've found myself having > to move functions out from one subclass and into the > superclass, in order for related subclasses which > needed access to it, for me to be able to add more > fun
166.
▲
by
raymondh
9y ago
These topics are discussed in greater depth in Kasparov's book, "Deep Thinking". My view of the book: Very well written (and occasionally engrossing), well thought out, and strikes a more hopeful/reasonable tone that an
167.
▲
by
raymondh
9y ago
Congratulations.
168.
▲
by
raymondh
9y ago
The legitimate reason not to accept credit cards is to avoid the substantial processing fees.
169.
▲
by
raymondh
9y ago
ISTM the F-35 will be the undoing of the U.S. military. The program seems to be eating all available time and funding but without delivering on essential core capabilities.
170.
▲
by
raymondh
9y ago
I think Baden Powell would be proud.
171.
▲
by
raymondh
9y ago
This patch was a little aggressive and may get reverted (it caused immediate code breakage in downstream distros and projects). Changes like this typically need a deprecation period (that said, to the extent the current feature didn'
172.
▲
by
raymondh
9y ago
Guido had stated that he didn't want the implementation to place arbitrary limits on the language specification. This particular limit was not present in the early Python 2 releases. When the limit was added, limiting arguments wasn&#x
173.
▲
by
raymondh
9y ago
> All people ever wanted was just a way to write in one line ´Point3D = struct(x, y, z)´ that translates into the exact equivalent of [... a regular class with just an x, y, and z attributes]. You're giving up a lot: * The namedtupl
174.
▲
by
raymondh
9y ago
The last time this idea was proposed, Jay Leno joked that the three new states would be called, "log, fog, and smog".
175.
▲
by
raymondh
9y ago
> There is no reason for this to expose a tuple API. FWIW, that is a norm in the standard library that predates named tuples. For example, sys.version_info and time.localtime() return structseq instances. Those both have a named tuple A
176.
▲
by
raymondh
9y ago
The author did not contact me.
177.
▲
by
raymondh
9y ago
It would be more accurate to say that I led the design effort. There were dozens of people who contributed to it. Its early history and list of contributors is here: http://code.activestate.com/recipes/500261-named-t
178.
▲
by
raymondh
9y ago
I concur :-) Otherwise, use a dict, types.SimpleNamespace, python-attrs, or a custom class. FWIW, the origin of namedtuple() was that some variation of it had been re-invented many times and this tool brought together the common features of
179.
▲
by
raymondh
9y ago
One purpose of _source is to make the namedtuple self-documenting -- that has been a considerable benefit over the years and has resulted in many fewer questions and issues than we usually get about our other tools. Another purpose of _sour
180.
▲
by
raymondh
9y ago
To be clear. I never said that start-up time wasn't important. Instead, I pointed out that in the previously studied example, the measured impact on start-up time of a single named tuple was a fraction of a millisecond and less than
More ›