Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
genericlemon24
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
61.
▲
Limiting concurrency in Python asyncio: the story of async imap_unordered()
(death.andgravity.com)
2 points
by
genericlemon24
4y ago
|
0 comments
62.
▲
Algebraic Data Types in (Typed) Python
(threeofwands.com)
4 points
by
genericlemon24
4y ago
|
0 comments
63.
▲
PEP 710 – Recording the provenance of installed packages
(peps.python.org)
1 points
by
genericlemon24
4y ago
|
0 comments
64.
▲
A Response to Jacob Kaplan-Moss’s “Incompetent but Nice”
(blog.glyph.im)
175 points
by
genericlemon24
4y ago
|
121 comments
65.
▲
How Virtual Environments Work
(snarky.ca)
5 points
by
genericlemon24
4y ago
|
0 comments
66.
▲
Python is two languages now
(threeofwands.com)
76 points
by
genericlemon24
4y ago
|
106 comments
67.
▲
PEP 709 – Inlined Comprehensions
(peps.python.org)
1 points
by
genericlemon24
4y ago
|
0 comments
68.
▲
PEP 706: Filter for Tarfile.extractall
(peps.python.org)
3 points
by
genericlemon24
4y ago
|
0 comments
69.
▲
Appreciating Design
(lucumr.pocoo.org)
1 points
by
genericlemon24
4y ago
|
0 comments
70.
▲
Mypy 1.0 Released
(mypy-lang.blogspot.com)
45 points
by
genericlemon24
4y ago
|
5 comments
71.
▲
Reader 3.4 released – 5 years, 2000 commits
(death.andgravity.com)
2 points
by
genericlemon24
4y ago
|
0 comments
72.
▲
PEP 704 – Require virtual environments by default for package installers
(peps.python.org)
15 points
by
genericlemon24
4y ago
|
6 comments
73.
▲
PEP 702: Marking deprecations using the type system
(peps.python.org)
2 points
by
genericlemon24
4y ago
|
0 comments
74.
▲
Code Smell of the Day: Type Keys (2021)
(jesseduffield.com)
111 points
by
genericlemon24
4y ago
|
79 comments
75.
▲
by
genericlemon24
4y ago
https://docs.python.org/3/library/bisect.html
76.
▲
by
genericlemon24
4y ago
Glad to hear that :D One of my main goals was to show the entire progression of how I approached the problem, instead of just saying "here's the final result". I have another article that covers profiling in more detail, you
77.
▲
by
genericlemon24
4y ago
You can, see the next paragraph, "also narrow down around the estimated position iteratively..." I gave up because I was too lazy to think how to do the "precompute the maximum +/- error bounds" jiggawatts mentions
78.
▲
by
genericlemon24
4y ago
I did try mmap, both with the plaintext binary search, and with the binary file (you can find a note about it in the HTML source :) I ended up not mentioning it because for some reason, it was ~twice as slow on my mac... I'm now curio
79.
▲
by
genericlemon24
4y ago
(replying with more details, because I think it's pretty cool, and I'll definitely try this out) The linked item is to https://blog.mro.name/2022/08/pwned-diy/ , where the author converts the passwor
80.
▲
by
genericlemon24
4y ago
Hey, I didn't know about this command, neat! On my laptop, look `time`s at ~10 ms (for comparison, the Python "binary search" script `time`s at ~50 ms).
81.
▲
by
genericlemon24
4y ago
Not yet, I might give it a try.
82.
▲
by
genericlemon24
4y ago
You can, Scott Helme wrote some articles about this (I mention them at the end of my article): * https://scotthelme.co.uk/when-pwned-passwords-bloom/ * https://scotthelme.co.uk/sketchy-pwned-passwords&#
83.
▲
by
genericlemon24
4y ago
I actually did try this, but I got impatient and stopped it after 30 minutes or so, and a ~20G database file. For some reason, after that, `ls` in that directory (or even shell completion) would freeze the shell entirely, even after reboot.
84.
▲
by
genericlemon24
4y ago
(author here) Hey, that's actually a great idea. I remember reading about a fast grep or wc implementation that did parallel reads. Off the top of my head, I don't really know how to do that (aside from the naive way of using thre
85.
▲
Has your password been pwned? Or, how not to search a 35G file in under 1 ms
(death.andgravity.com)
2 points
by
genericlemon24
4y ago
|
0 comments
86.
▲
Read this post ‘unless’ you’re not a Ruby developer
(jesseduffield.com)
230 points
by
genericlemon24
4y ago
|
311 comments
87.
▲
Reasoning about asyncio.Semaphore (article by Guido van Rossum)
(neopythonic.blogspot.com)
1 points
by
genericlemon24
4y ago
|
0 comments
88.
▲
PEP 698 – Override Decorator for Static Typing
(peps.python.org)
2 points
by
genericlemon24
4y ago
|
0 comments
89.
▲
Wall vs. CPU time, or the cost of asyncio Tasks
(threeofwands.com)
3 points
by
genericlemon24
4y ago
|
0 comments
90.
▲
Reader 3.0 released – a Python feed reader library
(death.andgravity.com)
3 points
by
genericlemon24
4y ago
|
0 comments
More ›