Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
raymondh
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
80 ms
·
331.
▲
by
raymondh
15y ago
Two recommendations: "Options, Futures, and Other Derivatives" by John Hull and "Dynamic Hedging" by Taleb.
332.
▲
How to grok Python's unusual for-else construct
(nedbatchelder.com)
4 points
by
raymondh
15y ago
|
0 comments
333.
▲
by
raymondh
15y ago
You already have a website up and running -- the market will review the idea for you.
334.
▲
FCC Agreement Ends Surprise Charges for Mobile voice/data Overages
(nytimes.com)
1 points
by
raymondh
15y ago
|
0 comments
335.
▲
by
raymondh
15y ago
Goodbye Dennis. You were a giant. You'll be missed.
336.
▲
by
raymondh
15y ago
It seems like everyone is converging on 2.7. The commercial distributions from ActiveState and Enthought are at 2.7. Apple's OS/X Lion ships 2.7. The major linux distros are there. PyPy is at 2.7. Jython and IronPython are mostly 2.7 c
337.
▲
by
raymondh
15y ago
Section 59 has a nice shout-out to Python's TimSort. Nice!
338.
▲
Senate passes Patent Reform Bill
(hosted.ap.org)
113 points
by
raymondh
15y ago
|
48 comments
339.
▲
by
raymondh
15y ago
FWIW, I have the printed version and it is one of the most beautiful books I own. Both the content and production quality are first-rate.
340.
▲
by
raymondh
15y ago
This is tricky because dictionaries need to call __hash__ which can run arbitrary Python code, so it's non-trivial to make the dictionary threadsafe.
341.
▲
by
raymondh
15y ago
Were all the claims upheld? The article's penultimate paragraph suggests that some fell short.
342.
▲
by
raymondh
15y ago
Python version: http://code.activestate.com/recipes/577756-sleepsort/
343.
▲
by
raymondh
15y ago
Not an apples-to-apples comparison. The Python version is fully general, using Random() to create probes (as many as needed). Instead use the optimized, 4Kb fixed size version shown later in the recipe. Also, improve your timing by makin
344.
▲
by
raymondh
15y ago
Python is written in C and the time consuming parts of this algorithm are delegated to C modules (random, sha256, long int bitshifts, etc). Also, the space efficiency (which directly related to effective use of high-speed cache) is languag
345.
▲
by
raymondh
15y ago
Good advice and well spoken :-) That being said, composing a number of object classes also involves some measure of cooperation, caller/callee ordination, and some plan for calling the methods in the correct order. IOW, if the decompositi
346.
▲
by
raymondh
15y ago
It's a great technique. I'm sure your PyGame code benefitted in a big way :-)
347.
▲
by
raymondh
15y ago
In CPython, calling super() has about the same cost as calling any other builtin like len() or int(). The MRO itself is precomputed and stored in inst.__class__.__mro__. Contrasting dict.__setitem__ with super().__setitem__, the latter add
348.
▲
by
raymondh
15y ago
super() was introduced in Python2.2 many years ago. Everything in the article works with very old versions of Python. Here's a link to the Python 2 version of the examples: http://code.activestate.com/recipes/577721-how-to-use-super-...
349.
▲
Wield Python's super() like a Jedi
(rhettinger.wordpress.com)
141 points
by
raymondh
15y ago
|
63 comments
350.
▲
by
raymondh
15y ago
My bet is that the problem was much worse and more subtle than the other commenter's have noted. They posit a slight imbalance to due to rounding or PRNG characteristics. I suspect that is it like the problem of choosing values randomly fr
351.
▲
Eco technology: Titanium dioxide on aluminum building panels
(usatoday.com)
2 points
by
raymondh
15y ago
|
0 comments
352.
▲
Python Bloom Filter
10 points
by
raymondh
15y ago
|
0 comments
353.
▲
by
raymondh
16y ago
If you see unexplained or fraudulent activity in your account, it's natural to reach for an explanation and natural to attribute it (correctly or incorrectly) to the PSN data breach. OTOH, a good security mindset should probably assume tha
354.
▲
Three minute primer on radiation risks
(hyperphysics.phy-astr.gsu.edu)
1 points
by
raymondh
16y ago
|
0 comments
355.
▲
by
raymondh
16y ago
Other than using an operator for a function name, there's no real rocket surgery in this post: >>> def index(x, y): 'Dyadic function indexes y by x' return [y[i] for i in x] >>> p = list(range(
356.
▲
by
raymondh
16y ago
It is not cool to publish someone else's slides on your website without their permission.
357.
▲
by
raymondh
16y ago
Tuple spaces seem to have morphed into routers and filters for message queue protocols.
358.
▲
by
raymondh
16y ago
The new SDXC slot is limited to 64GB. That's an odd limitation given that Lexar has already released a 128GB SDXC card. The spec tops out at 2TB, so this slot could have provided a great way to load huge filesystems.
359.
▲
by
raymondh
16y ago
> People don’t use that crap. > But they do want pivot tables, ... That's what the cookbook recipe provides, a function called summary() that makes a pivot table. Problem solved :-) > I should be clear that my complaint is wi
360.
▲
by
raymondh
16y ago
Good call on the sharp front edge. That was my #1 MBP complaint. No mention of USB3? The Apple Store is already selling harddrives with fast USB3 hookups (though none of their current laptops can take advantage of it).
More ›