News for hackers. Stuff that matters.
Re:Ask HN: What interesting problems are you working on? by eivarv on Tuesday January 28, 2020 @06:09PM (#22175184)
Persisting your OS state as a "context" - saving and loading your open applications, their windows, tabs, open files/documents and so on.

Started because of frequent multitasking heavy work with limited resources.

Open Beta (macOS) as soon as I finish license verification and delta updates.

https://cleave.app

Re:Ask HN: What interesting problems are you working on? by jlevers on Wednesday January 29, 2020 @02:08AM (#22178206)
I didn't know I wanted this until now, and now I really want it. I often open a ton of related applications, and then avoid restarting my computer because it's incovenient to reopen everything.

I'm on Linux, so I won't be able to use your app, but great idea and good luck!

Re:Ask HN: What interesting problems are you working on? by gonzo41 on Wednesday January 29, 2020 @08:25AM (#22180182)
I think taking this sort of context snapshot may be very difficult. If you assume no direct application integration. It would almost be like you would need a mechanism to operate in a partition of RAM where it could not interact with the current running context but stream all of the RAM in use to disk.

Also it'd would be a data integrity nightmare because if one context shared the apps from another. How would you manage memory corruption, and allocation and saving in this sort of scenario.

Anyway, sounds awesome.

Good luck

Re:Ask HN: What interesting problems are you working on? by segmondy on Wednesday January 29, 2020 @04:28PM (#22186034)
You can explore running everything in a Linux Container, LXD. Then freeze the LXD if you wish to shutdown, and unfreeze when you're ready to restart, it's how container workloads can be moved from one system to another.
Re:Ask HN: What interesting problems are you working on? by jlevers on Wednesday January 29, 2020 @09:50PM (#22188468)
Interesting, I'll look into LXDs. Thanks for the pointer!
Re:Ask HN: What interesting problems are you working on? by baroomba on Tuesday January 28, 2020 @08:29PM (#22176238)
Nice. I’ve thought for a few years now that this is the next big thing I want out of an OS and software ecosystem—suspend work session, resume book research session and personal communication session, suspend research session leaving comm session active, open Christmas shopping session, suspend, suspend all open sessions and load gaming session, and so on. Huge bonus if the sessions can be moved from one device to another.
Re:Ask HN: What interesting problems are you working on? by choward on Tuesday January 28, 2020 @08:17PM (#22176154)
I haven't really thought this out and I don't have aMac to test on but why not just use separate user accounts? Doesn't OSX already reopen every thing?
Re:Ask HN: What interesting problems are you working on? by eivarv on Wednesday January 29, 2020 @07:11AM (#22179639)
Separate user accounts is kind of the naive (and not quite complete) solution to the same problem.

Not really a smooth experience in my opinion, doesn't map quite as well to the concept of "working context" as I think of it. Also, you'd have to maintain your list of users, and manually sync any settings, etc. - whereas with Cleave, I'm planning on implementing white- or blacklisting of applications on a context-basis (and system settings etc. are implicitly shared).

Re:Ask HN: What interesting problems are you working on? by jborichevskiy on Wednesday January 29, 2020 @10:34PM (#22188626)
I love the idea of what you're building - signed up to be notified for the beta!

> Separate user accounts is kind of the naive (and not quite complete) solution to the same problem.

I too have attempted to solve this problem with user accounts; and yeah it doesn't work well. Files are a pain to share, the log-out-log-back-in process takes forever, and a bunch of preferences don't sync across user accounts.

I particularly like the idea of having a super-low-energy mode where it's just for writing or reading, and saved states for my countless research sessions. Also, being able to freeze my dev workspace and resume it any point sounds amazing.

Excited to try it out!

Re:Ask HN: What interesting problems are you working on? by raihansaputra on Tuesday January 28, 2020 @06:56PM (#22175551)
This is cool! I wish I have something like this across multiple machines, although then there’s a lot of sync problems that needs to be solved
Re:Ask HN: What interesting problems are you working on? by abrichr on Tuesday January 28, 2020 @06:41PM (#22175428)
This looks great! I've often wished that something like this existed. How long have you been working on it?
Re:Ask HN: What interesting problems are you working on? by eivarv on Wednesday January 29, 2020 @07:08AM (#22179620)
Thanks!

The basic idea, on and off for close to five years. Started out experimenting with shell session persistence (solved[0], but not quite), then prototyping a browser-concept and playing with browser-extensions, then settling on the OS-level...

[0]: https://github.com/EivindArvesen/prm