Concept for you

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Concept for you

Post by Pype.Clicker »

I'm somehow puzzled by the time limit you impose ... why exactly do you want to force the program to fullfil the "panic-file-saving" in less than 5 seconds ?

That being said, i once had the vision of an architecture where data simply won't get lost: anything you perform on your (local) data was sent to a 'journal' component through a separate memory segment (so that unintentionnally trashing of the communication array will be unlikely) and the 'journalling' component then keep the changes, perform checkpointing, write temp files, etc.

The vision has now somehow vanished into smoke so i cannot exactly remind me of how data were actually preserved by that journal component in a memory-effifient way, but the key idea was that, since that component had its own 'sub-process' (possibly co-located with the application it monitors to avoid cache flushes, but certainly unreachable from the application itself, so that in the event of a fatal crash of the application, you can restore your document at least to the last checkpoint.
User avatar
Solar
Member
Member
Posts: 7635
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:Concept for you

Post by Solar »

Kemp wrote: Would you do it something along the lines of the last revision of my cleanup idea, where the program makes a call (or has the info stored in the header, whichever) that tells the OS "if this thing happens then run the code at this address"?
Exactly. <signals.h> is a standard header; you should be able to read up on it in a good C library manual. As for implementing parts (or all) of a C library, I recomment P.J. Plauger's "The C Standard Library".

Or wait a couple of years till I finish the PDCLib. :-D
Every good solution is obvious once you've found it.
Kemp

Re:Concept for you

Post by Kemp »

That book looks exceedingly useful, even if I don't want to implement the C library, pity funds for non-essential (to live) stuff are a bit low right now. Sounds like I don't need to reinvent the wheel at least :)
User avatar
Solar
Member
Member
Posts: 7635
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:Concept for you

Post by Solar »

If all you're looking for is a good C library reference, go to www.dinkumware.com and follow the link to "library references". It's online, and it's free. (Although sooner or later you'll pay the fee so you can download it to your machine. At least I did. ;) )
Every good solution is obvious once you've found it.
Kemp

Re:Concept for you

Post by Kemp »

Well at the moment I'm more interested in writing the kernel so that it supports things like this than writing applications that take advantage of it. I'm basically sorting through my list of ideas and keeping track of the ones that I want to implement so I don't have to go back and revise/rewrite my kernel to a large extent once I've got it going.
Post Reply