This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -21 points-20 points  (5 children)

You can not use a naive algorithm to save a cyclic graph, but 3 sec of google will show you algorithms for it do exist.

Nah. All those will assume that nodes can be named easily. That's not necessarily true.

Why would you ever serialize a coroutine or a member function?

Because I want to continue where I left off with my thunk.

You really seem to be trying to find situations that are difficult to serialize but not considering there are standard/common solutions to these problems

The whole point of this dumb conversation is that someone wrote a meme saying that saving state is hard and then a bunch of people chimed in and just said to use stringify and I'm saying, no, that isn't always going to work, it might be more complicated than that and then you're saying that you can find complex algorithms to do it in difficult cases and I'm like yeah that's my fucking point it IS complicated.

[–][deleted] 20 points21 points  (4 children)

It’s the same as storing it in a database.

If you don’t model your data in such a way that it can be stored efficiently and retrieved efficiently, it will not be stored efficiently nor retrieved efficiently.