Readit News logoReadit News
mrkurt commented on Deno Sandbox   deno.com/blog/introducing... · Posted by u/johnspurlock
simonw · 9 days ago
I'd love to know more about that "help me reply to all the people" one! I definitely need that.
mrkurt · 9 days ago
You will be astonished to know it'a a whole lot of sqlite.

Everything I want to pay attention to gets a token, the server goes and looks for stuff in the api, and seeds local sqlites. If possible, it listens for webhooks to stay fresh.

Mostly the interface is Claude code. I have a web view that gives me some idea of volume, and then I just chat at Claude code to have it see what's going on. It does this by querying and cross referencing sqlite dbs.

I will have claude code send/post a response for me, but I still write them like a meatsack.

It's effectively: long lived HTTP server, sqlite, and then Claude skills for scripts that help it consistently do things based on my awful typing.

mrkurt commented on Deno Sandbox   deno.com/blog/introducing... · Posted by u/johnspurlock
ttoinou · 9 days ago
All the time with the same computer ? Maybe it is looking at others metadata, for example local MAC addresses
mrkurt · 9 days ago
All the time with a bunch of different sandboxes.
mrkurt commented on Deno Sandbox   deno.com/blog/introducing... · Posted by u/johnspurlock
Tepix · 9 days ago
If you can create a deno sandbox from a deno sandbox, you could create an almost unkillable service that jumps from one sandbox to the next. Very handy for malicious purposes. ;-)

Just an idea…

mrkurt · 9 days ago
This is, in fact, the biggest problem to solve with any kind of compute platform. And when you suddenly launch things really, really fast, it gets harder.
mrkurt commented on Deno Sandbox   deno.com/blog/introducing... · Posted by u/johnspurlock
ttoinou · 9 days ago
What happens if we use Claude Pro or Max plans on them ? It’ll always be a different IP connecting and we might get banned from Anthropic as they think we’re different users

Why limit the lifetime on 30 mins ?

mrkurt · 9 days ago
For what it's worth, I do this from about 50 different IPs and have had no issues. I think their heuristics are more about confirming "a human is driving this" and rejecting "this is something abusing tokens for API access".
mrkurt commented on Deno Sandbox   deno.com/blog/introducing... · Posted by u/johnspurlock
mrpandas · 9 days ago
Where's the real value for devs in something like this? Hasn't everyone already built this for themselves in the past 2 years? I'm not trying to sound cheeky or poo poo the product, just surprised if this is a thing. I can never read what's useful by gut anymore, I guess.
mrkurt · 9 days ago
Sandboxes with the right persistence and http routing make excellent dev servers. I have about a million dev servers I just use from whatever computer / phone I happen to be using.

It's really useful to just turn a computer on, use a disk, and then plop its url in the browser.

I currently do one computer per project. I don't even put them in git anymore. I have an MDM server running to manage my kids' phones, a "help me reply to all the people" computer that reads everything I'm supposed to read, a dumb game I play with my son, a family todo list no one uses but me, etc, etc.

Immediate computers have made side projects a lot more fun again. And the nice thing is, they cost nothing when I forget about them.

mrkurt commented on Design and Implementation of Sprites   fly.io/blog/design-and-im... · Posted by u/sethev
agosta · a month ago
Guess I'm confused - is the ideal use case for Sprites for suspendable, iterative, sandboxed compute sessions (with disk)?.. Or is the idea that these things can also/should run production workloads in place of a traditional webserver setup? If the latter, can every sprite boot up with what's needed to instantly serve web traffic? Or would they need to build/install things internally every time a new sprite turned on? Do these horizontally scale a long lived, high trafficked application?
mrkurt · a month ago
> Sprites for suspendable, iterative, sandboxed compute sessions (with disk)?..

Yes.

They won't horizontally scale. They're pretty good for hosting my side projects! Not good for, eg, hosting the API that orchestrates Sprites.

mrkurt commented on JuiceFS is a distributed POSIX file system built on top of Redis and S3   github.com/juicedata/juic... · Posted by u/tosh
AdamJacobMuller · a month ago
> It also writes files in it's own uninterpretable format to object storage, so if you lose the metadata store, you lose your data.

That's so confusing to me I had to read it five times. Are you saying you lose the metadata, or that the underlying data is actually mangled or gone, or merely that you lose the metadata?

One of the greatest features of something like this to me would be the ability to durable even beyond JuiceFS access to my data in a bad situation. Even if JuiceFS totally messes up, my data is still in S3 (and with versioning etc even if juicefs mangles or deletes my data, still). So odd to design this kind of software and lose this property.

mrkurt · a month ago
It backs its metadata up to S3. You do need metadata to map inodes / slices / chunks to s3 objects, though.

Tigris has a one-to-one FUSE that does what you want: https://github.com/tigrisdata/tigrisfs

mrkurt commented on Design and Implementation of Sprites   fly.io/blog/design-and-im... · Posted by u/sethev
senko · a month ago
Not sure where to report this, so here goes: something weird's going on with the title setters (from default .bashrc, the 'case' block near the top) when connecting from my Linux box.

Tried with xterm, tilix and ghostty, all of which support the title setter escape sequence locally. For some reason, these get messed up (smells like edge case with escaping) and the result looks like this:

    $ sprite c  ": history-search-backward'
    \]\u@\h\[\]:\[\]\w\[\]\$ '                           ": history-search-forward'sprite@sprite:~$
    "sprite@sprite:~$
I'm guessing y'all use Zsh because that works flawlessly :)

mrkurt · a month ago
Shell environments are by far the most difficult part of building a stateful sandbox with checkpoints and restores. It's bananas. This will be fixed soon.
mrkurt commented on JuiceFS is a distributed POSIX file system built on top of Redis and S3   github.com/juicedata/juic... · Posted by u/tosh
IshKebab · a month ago
Interesting. Would this be suitable as a replacement for NFS? In my experience literally everyone in the silicon design industry uses NFS on their compute grid and it sucks in numerous ways:

* poor locking support (this sounds like it works better)

* it's slow

* no manual fence support; a bad but common way of distributing workloads is e.g. to compile a test on one machine (on an NFS mount), and then use SLURM or SGE to run the test on other machines. You use NFS to let the other machines access the data... and this works... except that you either have to disable write caches or have horrible hacks to make the output of the first machine visible to the others. What you really want is a manual fence: "make all changes to this directory visible on the server"

* The bloody .nfs000000 files. I think this might be fixed by NFSv4 but it seems like nobody actually uses that. (Not helped by the fact that CentOS 7 is considered "modern" to EDA people.)

mrkurt · a month ago
FUSE is full of gotchas. I wouldn't replace NFS with JuiceFS for arbitrary workloads. Getting the full FUSE set implemented is not easy -- you can't use sqlite on JuiceFS, for example.

The meta store is a bottleneck too. For a shared mount, you've got a bunch of clients sharing a metadata store that lives in the cloud somewhere. They do a lot of aggressive metadata caching. It's still surprisingly slow at times.

mrkurt commented on Design and Implementation of Sprites   fly.io/blog/design-and-im... · Posted by u/sethev
boundlessdreamz · a month ago
Is there a way to copy files to/from the sprite? Couldn't see an option for that in the CLI
mrkurt · a month ago
`cat file.txt | sprite exec -s <name> bash -c "cat > ~/file.txt"` is my go to.

u/mrkurt

KarmaCake day11149June 17, 2008
About
Go build something silly with https://sprites.dev
View Original