HackerTrans
TopNewTrendsCommentsPastAskShowJobs

mnazzaro

no profile record

Submissions

Nobody likes lag: How to make low-latency dev sandboxes

compyle.ai
105 points·by mnazzaro·há 6 meses·45 comments

comments

mnazzaro
·há 6 meses·discuss
I could be misunderstanding, but typing "l" into the terminal should send one byte, which should fit into one TCP packet
mnazzaro
·há 6 meses·discuss
Yup! There's a language server and file server running in the sandbox that the editor on the frontend interacts with.
mnazzaro
·há 6 meses·discuss
While I can see that working well for echoing keystrokes in a terminal, I'm not sure how it would work when you actually enter commands into the terminal. Same for opening files in the IDE.
mnazzaro
·há 6 meses·discuss
Thanks for letting me know- I'll take a look
mnazzaro
·há 6 meses·discuss
I have! It's pretty interesting and handles a lot of the problems discussed here, but is a little young for us. For one thing, it doesn't have fly replay, so we'd have to build a separate proxy again.

If we were starting from 0, I would definitely try it. My favorite thing about it is the progressive checkpointing- you can snapshot file system deltas and store them at s3 prices. Cool stuff!
mnazzaro
·há 6 meses·discuss
1. The pools are very shallow- two machines per pool. While it's certainly possible for 3 tasks to get requested in the same region within 30 seconds, we handle that by falling back to the next closest region if a pool is empty. This is uncommon, though. 2. I haven't considered it, but yeah- the caching seems to work great for us. 3. The tokens are generated per-task, so if you are worried about your token getting leaked, you can just delete the task!
mnazzaro
·há 6 meses·discuss
I'm a huge GCP fan, but cloud run wouldn't fit our use case because of the routing and ephemeral nature. I think you would have to try to build something yourself using GKE + gVisor
mnazzaro
·há 11 meses·discuss
This is a valid concern, but astral just has an amazing track record.

I was surprised to see the community here on HN responding so cautiously. Been developing in python for about a decade now- whenever astral does something I get excited!
mnazzaro
·ano passado·discuss
While I agree with this particular point, it's weird not to share the slides, everything else rings true for me. I graduated college about a year ago, and so much of this I just took for granted. The class would just get smaller as the semester went on and more people 'disappeared'. In a lecture hall of 200 people, do you really think that my classmates weren't on their phones constantly?

Empirically, literacy rates are dropping. The anecdotes match the data. Why are you trying to negate this article?