Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
m3047
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
47 ms
·
601.
▲
by
m3047
4y ago
Nonlinearity and self-organizing systems are such a surprise to people...
602.
▲
by
m3047
4y ago
This is actually backwards for botulinum. Boiling denatures the toxin, but doesn't kill the critter; you need to use a higher temperature, e.g. that produced by pressure cooking / canning. So I'd be curious what bacteria are
603.
▲
by
m3047
4y ago
This. https://viewfromthewing.com/hertz-has-the-most-insane-reason...
604.
▲
by
m3047
4y ago
I apologize this may sound a little strange, but let me ask: What if they said "sorry, we can't fix your car because it doesn't run"? What do you think of this quote? "To argue with a person who has renou
605.
▲
by
m3047
4y ago
I view the article as aspirational, and a lot of the comments here seem to fetishize a trinity of time and certitude and causality. I appreciate attempts to explore diagramming, and so I appreciate the article. I am also informed by past ex
606.
▲
by
m3047
4y ago
I suppose I should ask: * Why are you doing this? Ask your users. * If you don't have users, why are you bothering? * Who is going to maintain it after you're gone? * How about "living off the land"? * What about documen
607.
▲
by
m3047
4y ago
Hah. As for the wobbling plate, it reminds me of the super secret revelation of what happens when you juggle nuts and wrenches in spaaace! https://medium.com/illumination/why-a-tennis-racket-led-russ...
608.
▲
by
m3047
4y ago
Given this: server = await asyncio.start_server( context.handle_requests, str(config.host), config.port, limit=MAX_READ_SIZE ) as stated, you can't use gather(). There are sleight of hand "coincidences
609.
▲
by
m3047
4y ago
> ... the method of injecting coroutines and then doing run_forever was definitely not required before. Carefully preserved punctuation there: the full stop. If you run asyncio.start_server(), today, on 3.11, it does not return an awaita
610.
▲
by
m3047
4y ago
> An example and references to the 3.11 changelog would be helpful... Can't tell from that remark whether you're asking or telling...
611.
▲
by
m3047
4y ago
Let me break it down for you: Suppose I run asyncio.start_server() and I want it to run forever. What am I supposed to asyncio.gather()) on without making stuff up? [Edit] Production code or it didn't happen.
612.
▲
by
m3047
4y ago
asyncio.run() is not in 3.6
613.
▲
by
m3047
4y ago
I'll be more brazen and say I would have expected some working, production code examples by now. What I've got is someone throwing it over the wall: ok, thanks, I guess. I'd rather know than not. But the code is smelly, inter
614.
▲
Ask HN: Ways to deal with Python 3.11 breaking change to asyncio
12 points
by
m3047
4y ago
|
9 comments
615.
▲
by
m3047
4y ago
Yes, apparently there is such an animal: https://aws.amazon.com/energy/solutions/refinery-monitoring-...
616.
▲
by
m3047
4y ago
If it has "artistic" or other redeeming value, go for it. Write a README or blog (or three) covering what's unique or important, or how it fits into some historical narrative. Just be clear with yourself on what you expect to
617.
▲
by
m3047
4y ago
I've got a good one. I was working a "tip of the spear" job in threat intelligence (I suppose I was always on call). One of the things we monitored was DNS. It was always noisy. If it's not the miscreants, its the normal
618.
▲
by
m3047
4y ago
The most useful part for me is the Today / What We Want / The Trend section at the end, which I think informs this from the referenced _Note_: "Good experiments are well-designed experiments. Real experiments need a theory. T
619.
▲
by
m3047
4y ago
Somebody on LinkedIn working in data science opined that they should do away with DST. I commented that yeah maybe they ought to, and then bring it back in 5 years, rinse / lather / repeat as a stress test. Got a number of likes.
620.
▲
by
m3047
4y ago
"I don't know" or variations such as "why do you ask?" or "how did you come to that?" (note those are questions in response to a question). In my experience it's increased by an order of magnitude in
621.
▲
by
m3047
4y ago
One of my favorite burnout jobs was as estimator for a high-end hardwood flooring company. Completely fell into it by accident, the place was next door to where I'd walk to get an espresso around 10AM. So I'd walk in there occasio
622.
▲
by
m3047
4y ago
"Telnet... [is] an old protocol..." Ok. Telnet is a protocol, it is not synonymous with TCP. As for unencrypted traffic generally, I see no reason for fetishizing encryption. "Compute" is not synonymous with teh cloudz
623.
▲
by
m3047
4y ago
After some monkeying around with MariaDB I stumbled on this: use test; create table JsonTable ( a_str varchar(32), a_int int, a_float double(12,4) ) engine=CONNECT table_type=JSON option_list='pretty=0' lrecl=128; which
624.
▲
Ask HN: JDBC passthru or MariaDB / PostgreSQL mock server?
1 points
by
m3047
4y ago
|
1 comments
625.
▲
by
m3047
4y ago
Not sure. A cursory look suggests it runs file ops in a thread pool. The problem that I'm aware of is at a deeper level and has to do with the ability (or lack thereof) to set nonblocking on file descriptors associated with disk files.
626.
▲
by
m3047
4y ago
> 100x SLOWER (we measured it multiple times, compared the same thing to the sync version) I'd need to know the methodology. Asyncio is "gated", meaning that coroutines execute in tranches. When you queue up a bunch of cor
627.
▲
by
m3047
4y ago
I think I hit a foul ball there, as run_in_executor() is for a threadpool. So yeah you are running inside of run_forever() or run_until_complete(), we just don't see it here, and that's where your sending things to run in a differ
628.
▲
by
m3047
4y ago
You need to run the executor somewhere ( loop.run_forever() or loop.run_until_complete() ), that can be in the current thread or a separate thread, keep in mind Python is still conceptually a single core. Things I've found particularly
629.
▲
by
m3047
4y ago
I seem to use asyncio a lot, so maybe it's just good for internet plumbing. Things I've used it for: * A Postfix TCP table. * A milter. * DNS request forwarding. * Reading data from a Unix domain socket and firing off dynamic DNS
630.
▲
by
m3047
4y ago
I do Redis in a thread pool. Did this before aioredis came out, have kept doing it because I know it and it works. Have used the same pattern for a few other things it works so well.
More ›