Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
joconde
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
Will the current high tech salaries last?
24 points
by
joconde
5y ago
|
42 comments
32.
▲
by
joconde
5y ago
I'm at one and it's pleasant. Pay is smaller than my country's large corps, but I can basically work on all projects and do things however I like. There is ML research as well as interesting dev projects. It's sometimes
33.
▲
by
joconde
5y ago
PyInstaller is hackish though, I had to add tricks to setup.py by trial-and-error until I found why some config file or sub-module of a sub-package wasn't included when everything else was. It's also slow to launch, because it ext
34.
▲
by
joconde
5y ago
> Also, in-state tuition for state schools is much less than $50k/yr so try going to Cal and/or your best local public school and supplement with self teaching (e.g. via public/free lectures from MIT)? Unrelated question:
35.
▲
by
joconde
5y ago
And now you have people wanting the exact opposite (a de facto tyrant, in power because an election was overturned) trying to get their way. More precisely: making a freely elected government more vulnerable to violence won't yield an
36.
▲
by
joconde
5y ago
> Last week he makes a very divisive speech, with language like "I will stand here in the breach to fight this battle" -- is he throwing down fighting words to incite people? After Congress was attacked to try to overturn an el
37.
▲
by
joconde
5y ago
> The world would be a better place if more politicians and their ilk were terrified of the people. Giving more weight to people willing to threaten violence won't fix your problems.
38.
▲
by
joconde
5y ago
> we need a new standing paramilitary force? Where do you get "paramilitary" from? This is the Justice Department, not the FBI. All the article says is: > the new unit will be part of the National Security Division and will
39.
▲
by
joconde
5y ago
> To do anything with a request you are going to have a context which will function just like the stack of a thread. But a thread has a separate call stack . Returning and calling another function in the same stack just involves moving
40.
▲
by
joconde
5y ago
In 1Password: - the master key derives from 1. your password, and 2. a long, random key that you type manually on each new device (so you can’t brute-force the password just from the server’s data, and you can’t decrypt the data just from y
41.
▲
by
joconde
5y ago
1Password on desktop stores items in a standard SQLite database, in an open format: https://support.1password.com/1password-security/#transparen... They also store regular copies of your vault in a backup folder. If Sa
42.
▲
by
joconde
5y ago
> In either case you need to load the context for other requests. For async tasks, it means return, then call. For threads, it means moving to an entirely different stack, somewhere else in memory. “Loading context” is more expensive in
43.
▲
by
joconde
5y ago
In my case, I'm lucky to be using computation libraries that release the GIL.
44.
▲
by
joconde
5y ago
In my case no, because I heavily use numpy, PyTorch, and other libraries that use C++ extensions and release the GIL during long operations. I easily use 24 CPU cores fully by submitting to one thread pool. If you use pure Python for long t
45.
▲
by
joconde
5y ago
> FastAPI's docs tell you to use "def," yet the most basic Hello World example in the tutorial uses "async def." Because that's the correct way. print("hello, world!") will block for a very short t
46.
▲
by
joconde
5y ago
But we have to switch from one stack to the other. If we do that more than necessary on thousands of threads, I imagine the cache will be used less efficiently. The problem is runtime, not RAM usage.
47.
▲
by
joconde
5y ago
IIRC, coroutines are split internally into function calls, so switching to a task is actually just a function call from the event loop, in the same call stack. Threads have separate stacks. Surely this costs at least a little, and adds up w
48.
▲
by
joconde
5y ago
I agree that it's kind of a mess, but it's getting better with simpler APIs (like asyncio.to_thread()), and in practice you can just use the primitives you want and ignore the rest. I haven't read the post in detail though, t
49.
▲
by
joconde
5y ago
> the minute you want to use a sync api from within async/await code it becomes a nightmare to manage What's wrong with sending the sync code to a thread pool? My CPU-, disk- and database-intensive application is filled with ca
50.
▲
by
joconde
5y ago
> A green thread implementation will thrash just as much in your hypothetical scenario. The million threads risk slowing each other down with context switches, preventing any from finishing in time. An async event loop will focus on one
51.
▲
by
joconde
5y ago
> Almost no one really understands asyncio I'd very much like a source for that, because I don't feel like it's very hard to understand. > syntax like "async def" and "async with" makes you feel like
52.
▲
by
joconde
5y ago
> That is exactly the problem with asyncio, the minute you want to do something a little more cpu heavy it blocks. Isn't that by design? Sending CPU-heavy tasks to the default executor with asyncio.to_thread() works perfectly for me
53.
▲
by
joconde
5y ago
These links are easy to mirror, they probably fit into a reasonably large SQLite file. Since the Web still allows decentralization, that doesn’t seem to be a problem. For example, the pirate bay is blocked in my country, yet I can still con
54.
▲
by
joconde
5y ago
> I type 150+ WPM and can’t write to save my life. Same, but writing still helps me think better. Maybe typing is too guided, and having to organise my thoughts on paper makes the process more efficient.
55.
▲
by
joconde
5y ago
When was that? We've had free unlimited SMS/MMS for years in France, even on the cheapest plans at 10 euros/month. Now it's free to/from any EU country too.
56.
▲
by
joconde
5y ago
What do "multi-level" and "mixed effects" mean? There are tons of non-linear models with lots of parameters, but I've never heard these other terms.
57.
▲
by
joconde
5y ago
Or they do it themselves by getting depressed and not taking care of themselves. Physical exercise and healthy meals take motivation.
58.
▲
by
joconde
5y ago
Living forever might not be that fun. People we know would still die for accidental reasons all the time. Maybe we can't cope with that for centuries or millennia and morale starts to take hits after a while.
59.
▲
by
joconde
5y ago
BLAKE3 was published in 2020. I don't think anyone would seriously use a hash function, cipher, or RNG that has been studied for only two years, let alone in the Linux kernel.
60.
▲
by
joconde
5y ago
Curious why you think that. We have an app that does computation using thread pools, and moving from manually-created threads to asyncio has made it much more efficient and robust. Some advantages: cancellation and error handling are trivia
More ›