Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
raymondh
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
181.
▲
by
raymondh
9y ago
Time moves faster in a dream than it does in the real world. Code running in a container runs slower than in the outside world ;-)
182.
▲
by
raymondh
9y ago
FWIW, I worked on a switch/case for Python about ten years ago and abandoned the effort because it reached a dead-end. Without the ability to mark variables as constants, a switch-case can't implement an efficient jump table. And
183.
▲
by
raymondh
9y ago
Thank you. This was a nice Rosetta Stone language comparison using an interesting problem with beautiful diagrams.
184.
▲
by
raymondh
9y ago
> This is self-evidently true for many jobs. > E.g., if you pick apples for 40 hours, > then even if you only pick one apple per hour > after that, you will still pick more apples > working 50 hours than 40. That logic pres
185.
▲
by
raymondh
9y ago
My least favorite part of Python 3 is the new 28 byte int structure which spills over to 32 bytes at 1,073,741,824 (2^30). >>> sys.getsizeof(1073741823) 28 >>> sys.getsizeof(1073741824) 32 As a directl
186.
▲
by
raymondh
9y ago
So, your prediction for Game of Thrones is that the White Walkers will bring about peace and unity to the competing factions of the Seven Kingdoms ;-)
187.
▲
by
raymondh
9y ago
I really enjoy seeing thought-provoking posts like this on Hacker News. The practical insight is that complex systems have some level of scale where causality experiments yield the most fruit, and that this effect is measurable. The most in
188.
▲
by
raymondh
9y ago
An iterative Python recipe can be found in the docs: https://docs.python.org/3/library/itertools.html#itertools.p...
189.
▲
by
raymondh
10y ago
For those who are interested, CORDIC (for COordinate Rotation DIgital Computer) is another technique from that era. It "is a simple and efficient algorithm to calculate hyperbolic and trigonometric functions, typically converging with
190.
▲
by
raymondh
10y ago
The CIA WikiLeaks dump might only tell us the breaking through other parts of the communication chain are easier than decryption.
191.
▲
by
raymondh
10y ago
A programming language is a door. It can be easy to open (Python) or take more effort (C++). The reason to open a door depends on what is on the other side. The Python door opens to a large and playful room with about 100,000 packages rea
192.
▲
by
raymondh
10y ago
For user defined templates, using string.Template() is a good alternative because it does not do multi-level attribute lookups. The single mapping lookup is safer. Also, the syntax is simpler, making it more suitable for exposure to end u
193.
▲
by
raymondh
10y ago
FWIW, the article incorrectly attributes the original idea for the compact dictionary to the PyPy team. That team implemented it based on my research, proposal, and proof-of-concept (see https://mail.python.org/pipermail&#
194.
▲
by
raymondh
10y ago
Indeed, I am not happy about this.
195.
▲
by
raymondh
10y ago
FWIW, I do recommend Zed's book. Many, many people have benefitted from Python The Hard Way.
196.
▲
by
raymondh
10y ago
Strange game, Dr. Falken.
197.
▲
by
raymondh
10y ago
I've always found Armin's posts to be intellectually honest and thought provoking. And unlike your ad-hominem comment, he itemizes his concerns and provides details (such as the performance comparison with David Beazley's cu
198.
▲
by
raymondh
10y ago
FWIW, I like pyflakes because of its design philosophy: """ Pyflakes makes a simple promise: it will never complain about style, and it will try very, very hard to never emit false positives. Pyflakes is also faster than Pyli
199.
▲
by
raymondh
10y ago
More properly, both the CPython 3.6 and PyPy compact dicts are based on this proposal: https://mail.python.org/pipermail/python-dev/2012-December/1... and this proof of concept: http://code.activ
200.
▲
by
raymondh
10y ago
This declaration of being measles free seems premature when there are still cases occurring and when such a highly transmissible disease is still common elsewhere in the world. http://www.cdc.gov/measles/cases-outbreaks
201.
▲
by
raymondh
10y ago
I'm glad to see her so honored. For those who have never seen or heard her in action, here is a two minute dose of the Admiral: https://www.youtube.com/watch?v=JEpsKnWZrJ8
202.
▲
by
raymondh
10y ago
Hopefully, this will become a recurring annual event where significant progress gets made on language development. I don't think we've had a gathering of this many Python core developers for a full week since the 2006 "need f
203.
▲
Python Core Development Sprint 2016: 3.6 and beyond
(blog.python.org)
20 points
by
raymondh
10y ago
|
2 comments
204.
▲
by
raymondh
10y ago
I agree with this important article. In the large open source project I work on, we have a prolific contributor who is systematically going through the entire code base, "refactoring" some of it in way the impairs my ability to re
205.
▲
by
raymondh
10y ago
The entire test suite still passes. What do that tell you?
206.
▲
by
raymondh
10y ago
Put another way, "We're trying out a smaller, faster dict implementation that has the side-effect of being ordered. We would like to be able to change our mind in the future, except for the three cases listed above where we reall
207.
▲
by
raymondh
10y ago
How is this different from "Brent's variation of Knuth's Algorithm D"? * https://books.google.com/books?id=e3wLBAAAQBAJ&pg=PA532#v=on... * http://maths-people.anu.edu.au/~brent/p
208.
▲
by
raymondh
10y ago
Thanks for the write-up. It does a good job of communicating: * the joys of contributing to Python * how time and labor intensive the process can be * the complexities of dealing with multiple operating systems * what it is like to be alter
209.
▲
by
raymondh
10y ago
Thing Explainer.
210.
▲
by
raymondh
10y ago
I wonder whether the authors consider "value = somedict.get('somekey')" or "match_object = re.search(pattern, somestring)" as returning a single type. Both of those common calls can return None. I'm also
More ›