Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
raymondh
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
26 ms
·
241.
▲
by
raymondh
11y ago
Hmm, the link is no longer valid. Has the site moved?
242.
▲
by
raymondh
11y ago
This is pretty cool.
243.
▲
by
raymondh
11y ago
First, let's assume that proof by contraction isn't necessary, ... :-)
244.
▲
by
raymondh
12y ago
Mahmoud makes a spirited defense of Python with ten general themes, but the most important thing he had to tell us about PayPal's experience with Python was this: "Our most common success story starts with a Java or C++ project sl
245.
▲
by
raymondh
12y ago
Sorry, this post is also filled with misinformation. * The with-statement only causes the file to be closed after use. It has nothing to do with iteration. * Files themselves are self-iterable (anything that loops over a file object uses
246.
▲
by
raymondh
12y ago
Sorting is almost always the wrong way to do it. (Wordy and slow). It is fragile design to write code that depends on 1) the data is so large that you don't have room for a set() BUT 2) it is small enough for an in-memory sort. (IOW,
247.
▲
by
raymondh
12y ago
Nice article. It well expresses the delight that comes from seeing the expressiveness of just a handful of tools that fit well together.
248.
▲
by
raymondh
12y ago
The article makes a surprising and unattributed assertion, "Mr. Kasparov’s obsession with Deep Blue’s surprising strategic insight was partly responsible for his loss in their 1997 match. Today, smartphones play better than IBM ’s supe
249.
▲
by
raymondh
12y ago
Inner functions in closures are tested in much the same way as methods are tested for classes. closure = OuterFunc(var1, var2) self.assertEqual(closure(var3), result) inst = SomeClass(var1, var2) self.assertEqual(inst.somemet
250.
▲
by
raymondh
12y ago
In the Python world, '_' is used in three different ways: * As a throw-away variable: >>> a, b, _, c, d = f(t) * As a gettext call: >>> print _('Welcome to Python') * And at the intera
251.
▲
by
raymondh
12y ago
Dr. Dobb's, you will missed. Much of my career was built on knowledge gleaned from the magazine and website. Even now, I'm working through articles on CUDA programming with the same joy that many years ago I spent with the articl
252.
▲
by
raymondh
12y ago
Really? You found the documentation to be lacking. FWIW, there are over 1500 pages in the docs including a short-over view, tutorials, extensive feature coverage, and interaction with other tools: http://pandas.pydata.org/
253.
▲
by
raymondh
12y ago
FWIW, Trello's FizzBuzz has more meat to it than this article suggests :-)
254.
▲
by
raymondh
12y ago
It is unclear whether the packrat add-on for unlimited versioning is still available for Dropbox Pro.
255.
▲
by
raymondh
12y ago
This has been an issue in Python talk selection for several years. One year the PyPy folks didn't have a single accepted talk despite having heroic accomplishments that will greatly affect Python's future. And last year, scienti
256.
▲
by
raymondh
12y ago
Nice work Stefan :-) For people who care about performance, Cython Numba and PyPy are a vital part of the Python ecosystem. They let you create highly performant code while retaining Python's clarity, learnability, and rapid developm
257.
▲
by
raymondh
12y ago
Adding an option to shoot yourself in the foot is bad API design and a premature optimization. For the most part, it is rare to have both fully randomized data and a need to sort it. One way to test the quality of a psuedo random number gen
258.
▲
by
raymondh
12y ago
Thanks for that link. It was a marvel and a delight.
259.
▲
by
raymondh
12y ago
In the author's separate page of implementation notes, a Queue class is created that doesn't have threading overhead. That would be great, but it uses list.pop(0) which is an O(n) operation. For O(1) performance, it should use c
260.
▲
by
raymondh
12y ago
Programming nit: The posted code should use collections.deque() rather than Queue.Queue(). The former is a high-speed C-coded datatype that is ideal for a search queue. The latter is a pure Python wrapper that adds thread synchronization
261.
▲
by
raymondh
12y ago
* Paid services advertise. OSS projects generally don't. * Paid services usually have customer support. OSS projects generally don't. * Paid services have nice on-ramping videos and nice installers. OSS projects have config file
262.
▲
by
raymondh
12y ago
Having seen many type-checking initiatives for Python come and go over the years, I've come to believe that type-checking is like security in that it is difficult to add after-the-fact and works best when designed-in from day one. When
263.
▲
Correlation does not equal causation, chocolate-and-Nobel-Prizes edition
(knowmore.washingtonpost.com)
2 points
by
raymondh
12y ago
|
0 comments
264.
▲
by
raymondh
13y ago
Thank you both. My wife and I love this site.
265.
▲
by
raymondh
13y ago
TL;DR -- Maintaining a small heap wins. Quicksort-style selection loses. Summary results appear at the end of the article. Maintaining a small heap takes 105,714 to 106,452 comparisons. Building a big heap takes 166,525 to 166,629 compari
266.
▲
Comparison of Four Algorithms for Selecting the N-Smallest Values
(code.activestate.com)
3 points
by
raymondh
13y ago
|
1 comments
267.
▲
by
raymondh
13y ago
At first I thought the title was link-bait, but it isn't much of an exaggeration. The topic is explored deeply.
268.
▲
Beauty at a Smaller Dimension
(hardwoodparoxysm.com)
1 points
by
raymondh
13y ago
|
0 comments
269.
▲
by
raymondh
13y ago
Disruption for basically zero benefit. The proposed modifications are utterly trivial and don't really make anyone's life better.
270.
▲
Long lunar night wait for China's malfunctioning Jade Rabbit moon rover
(cbsnews.com)
1 points
by
raymondh
13y ago
|
0 comments
More ›