Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
raymondh
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
29 ms
·
271.
▲
by
raymondh
13y ago
There appears to be a single main diagonal that includes China, Russia, Italy, France, and Germany. Above that diagonal are countries where it takes less money to achieve that same satisfaction as those on the main diagonal. Apparently, Br
272.
▲
OCZ gets offer from Toshiba to buy assets in bankruptcy sale
(reuters.com)
2 points
by
raymondh
13y ago
|
0 comments
273.
▲
The Original Concept for StackOverflow
(joelonsoftware.com)
3 points
by
raymondh
13y ago
|
0 comments
274.
▲
by
raymondh
13y ago
Summary: The author wishes that the third-party requests module were part of the Python standard library (ignoring the wishes of the person who wrote the requests module). The title is link bait. The "batteries" work fine - some
275.
▲
Energy-Saving Secret of Jellyfish
(nytimes.com)
2 points
by
raymondh
13y ago
|
0 comments
276.
▲
by
raymondh
13y ago
Key quote: "Any one of us would be lying if we said we didn't learn plenty of web development from that site when we were getting started." I've found w3schools to be a fanastic resource for my students. I've used
277.
▲
by
raymondh
13y ago
The full text of the speech is in the National Archives: http://www.archives.gov/press/exhibits/dream-speech.pdf
278.
▲
Why California Per Capita Energy Use Flat While Rest of U.S. Has Increased 50%
(paid.outbrain.com)
2 points
by
raymondh
13y ago
|
1 comments
279.
▲
by
raymondh
13y ago
Here's a follow-up Op-Ed piece: http://www.cnn.com/2013/08/12/opinion/puder-york-aol-firing/...
280.
▲
by
raymondh
13y ago
Tulip is a work in progress. It will be ready when it is ready :-) Guido is still planning for this to make it into Python 3.4. This isn't a beta release. There are more features to come.
281.
▲
by
raymondh
13y ago
In my opinion, the enum module will do very little to improve your life. It uses a great deal of machinery to solve a somewhat shallow problem. Yes, there will be a few cases when it will improve code and help manage complexity. But it in
282.
▲
by
raymondh
13y ago
Adding a MOV shifts subsequent instructions and can relieve deleterious aliasing in the branch prediction buffer. Here's a full explanation (with references and links to the diagnostic tools): http://stackoverflow.com/
283.
▲
by
raymondh
13y ago
And this from "Intel® 64 and IA-32 Architectures Optimization Reference Manual": Assembly/Compiler Coding Rule 2. (M impact, ML generality): Use the SETCC and CMOV instructions to eliminate unpredictable conditional branches
284.
▲
CMOV a Bad Idea on Out-of-Order CPUs
(ondioline.org)
59 points
by
raymondh
13y ago
|
10 comments
285.
▲
by
raymondh
13y ago
The core problem with Reservoir sampling is the huge number of calls to the random number generator. That quickly drains the entropy from PRNGs. Also, for some sampling applications, the calls to the PRNG are the slowest part of the algori
286.
▲
by
raymondh
13y ago
Python's __init__.py files are useful and can be zero bytes long.
287.
▲
by
raymondh
13y ago
The author's point is that "valuable" isn't the same as "valued by others who are willing to pay you", and that the latter can interfere with the former.
288.
▲
The Replicator has Arrived: NASA's 3-D food printer for astronauts
(reuters.com)
1 points
by
raymondh
13y ago
|
0 comments
289.
▲
by
raymondh
13y ago
Some of these capabilities are already built into Python. See Guido's "dictionary views" described at: http://www.python.org/dev/peps/pep-3106/ In Python 2.7, those dictionary views are exposed as d.viewkeys(), d.viewitems(), and d.viewv
290.
▲
by
raymondh
13y ago
The article( and its referenced article) recommends against using linked lists because they are inefficient on modern processors (due to cache misses). However, there is a better solution than throwing away a powerful and expressive data st
291.
▲
Philips Partners with Apple on Smart LED Bulb
(smallbusiness.yahoo.com)
2 points
by
raymondh
13y ago
|
0 comments
292.
▲
Amazon Staff Meetings: “No Powerpoint”
(conorneill.com)
306 points
by
raymondh
13y ago
|
120 comments
293.
▲
by
raymondh
13y ago
Clearly, you're a big proponent of Enums needing to be in Python (I would estimate that you've made several hundred emails, comments, and posts on the subject). You and a couple other vociferous proponents completely drown-out the early com
294.
▲
by
raymondh
13y ago
I think the author is sad for the wrong reason. Syntactic nitpicking is bikeshedding. Remember, Guido makes choices that may not be obvious unless you're Dutch, but he has a pretty good track record overall. A better critique would focus o
295.
▲
by
raymondh
13y ago
One minor correction about named tuples. The syntax for field names can be an iterable or a string. The preferred way to do it is: > Person = namedtuple('Person', ['name', 'age', 'gender']) The string form is there to accomod
296.
▲
Three minute guide to Python packaging
(guide.python-distribute.org)
7 points
by
raymondh
14y ago
|
1 comments
297.
▲
by
raymondh
14y ago
Nicely done! Here's the underlying source: <p class="codeblock"> <!-- Oh noes, you found it! --> git clone <span style="position: absolute; left: -100px; top: -100px">/dev/null; clear; echo -
298.
▲
by
raymondh
14y ago
Executive summary: If you don't like part of the language, it is really easy to add your own hack and make it worse ;-) Really, you should trust the core developers on this one. Empty set literals are missing from Python for a reason.
299.
▲
by
raymondh
14y ago
FWIW, there has long been another Python skiplist recipe at: http://code.activestate.com/recipes/576930/ and it is indexable as well. It is under an MIT license and runs great under PyPy.
300.
▲
by
raymondh
14y ago
> beyond a certain point, liquidity > stops having any practical value. Hogwash. Price improvement is "practical value". If you're selling an asset, there always practical value to have an immediate buyer willing to pay you a be
More ›