Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nitely
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
91.
▲
An efficient circular queue of strings
(nitely.github.io)
2 points
by
nitely
8y ago
|
0 comments
92.
▲
by
nitely
9y ago
Sounds like a good way to filter out a certain kind of users.
93.
▲
by
nitely
9y ago
Fixed. Thanks :D
94.
▲
by
nitely
9y ago
It's important to handle many socket connections for once. Where "many" may be in the order of million. If you wonder who on earth need that many connections, there are many use-cases like pub/sub servers. Native threads
95.
▲
by
nitely
9y ago
Why would it be ok to suggest changes after a year then (which is fairly arbitrary btw), according to that logic? TBH, I'd only suggest changes when they are really required (i.e scalability issues, maintenance issues, etc) but that ha
96.
▲
by
nitely
9y ago
There is an AWS cron service, it actually runs on top of lambdas[0]. If your definition of "abuse" is triggering an event with cloudWatch, then every service must be "abused" (SNS, S3, dynamodb, etc) as well. [0]: https
97.
▲
by
nitely
9y ago
AWS KMS
98.
▲
by
nitely
9y ago
Clicks have a 200ms (IIRC) delay on Android to give a chance to recognize other gestures. There are hacks to get ride of it, though. It may have to do with that.
99.
▲
by
nitely
9y ago
Here[0]. Mutable objects as default values create a single instance of the object. For iterables (list, set, etc) the behaviour is particularly surprising coz it accumulates/memoize every item ever added (i.e a list that grows/lea
100.
▲
by
nitely
9y ago
https://madnight.github.io/githut/ This one seems up to date
101.
▲
by
nitely
9y ago
They always make breaking changes. There's usually a deprecation period though. They didn't do semver but it seems they will now.
102.
▲
by
nitely
9y ago
> The number of bugs are proportional to the lines of code, this is undeniable from empirical data. Including unit tests? A code base with unit test is likely to contain less bugs and more lines of code. And what about code golf?. This j
103.
▲
by
nitely
9y ago
They had their chance with HTML5. Actually, it was removed at some point.
104.
▲
by
nitely
9y ago
Or don't allow apps with similar name than a popular one in the first place.
105.
▲
by
nitely
9y ago
Not really: SELECT * FROM sales WHERE (sale_date, sale_id) < (?, ?) ORDER BY sale_date DESC, sale_id DESC FETCH FIRST 10 ROWS ONLY This is a postgresql example. See use-the-index-luke[0] for a generic approach. [0] http:
106.
▲
by
nitely
9y ago
Also http://use-the-index-luke.com/sql/partial-results/fetch-next... for the actual keyset paging (aka the seek method) technique. Which gives a better explanation than the OP's article IMO.
107.
▲
by
nitely
9y ago
Looks nice. How is this implemented?
108.
▲
by
nitely
9y ago
The parent is asking how comes async I/O can handle higher volumes of requests given it's single threaded and even if it does how comes the database is still not the bottleneck. I answered both of these questions.
109.
▲
by
nitely
9y ago
pickle/unpickle is a way of serializing/deserializing in Python land.
110.
▲
by
nitely
9y ago
I agree. But like always, trade-offs. > The problem with offloading to a thread is that you can't structurally share data with another thread. That's really a JS issue, not a general async programming issue, though.
111.
▲
by
nitely
9y ago
> Does this mean that a web server written in node is running single-threaded? Yes. > But doesn't running on a single thread put an upper limit on the amount of work a server can handle? Is not about how much work it can handle,
112.
▲
by
nitely
9y ago
Almost. In threaded programming a thread will wait/block until the lock is released and then make use of the protected resource. In async world you would probably just check some flag and if it's "locked" then register a
113.
▲
How Python's unicodedata names are stored
(gist.github.com)
1 points
by
nitely
9y ago
|
0 comments
114.
▲
by
nitely
9y ago
Pretty sure they will get your IP. If you use any other Mozilla product, chances are they know who you are. And they can correlate it with other telemetry data. Not saying they do, just that they can.
115.
▲
by
nitely
9y ago
Regex engine for all of those languages are coded in C, so that's probably not a good benchmark. That said CPython and Ruby MRI are slower than PHP5, so yeah PHP7 should be even faster.
116.
▲
by
nitely
10y ago
May be coz it's not meant to be very customizable? When you start overriding methods, it's better to use a regular view. I've always seen the admin as a sort of phpmyadmin. For doing very basic crud.
117.
▲
by
nitely
10y ago
His previous blog did react.js server side rendering. That's prolly it. Plus, may be it was an advice to his followers as well.
118.
▲
by
nitely
10y ago
Kennethreitz requests lib? Just use requests.exceptions.RequestException, that should handle every error, if not then report it. For python urllib IOError and OSError should suffice. At least in py3.
119.
▲
by
nitely
10y ago
It's useless for other reasons. Pipelining and non-idempotent methods (i.E POST) don't go togheter.
120.
▲
by
nitely
10y ago
No. Client sends one packet containing the 10 requests. Server sends 10 packets. Basically, the client avoids 9 extra round-trips and sits and waits for the ten replies. However, this whole thing has many cons, that's why is not even
More ›