Author Topic: Knight Filesystem Specification  (Read 15001 times)

0 Members and 1 Guest are viewing this topic.

SirCmpwn

  • Guest
Re: Knight Filesystem Specification
« Reply #30 on: September 28, 2010, 11:00:32 pm »
It may count up the garbage and see if it's worth garbage collecting or not.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Knight Filesystem Specification
« Reply #31 on: September 28, 2010, 11:04:09 pm »
Ah sounds good :)

If someone doesn't reboot for a long while, I assume it will automatically GC when needed?

SirCmpwn

  • Guest
Re: Knight Filesystem Specification
« Reply #32 on: September 28, 2010, 11:04:27 pm »
Yes.

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Knight Filesystem Specification
« Reply #33 on: September 28, 2010, 11:05:02 pm »
What if someone decides to replace the batteries?
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

SirCmpwn

  • Guest
Re: Knight Filesystem Specification
« Reply #34 on: September 28, 2010, 11:05:59 pm »
Nothing would be different... O_o

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Knight Filesystem Specification
« Reply #35 on: September 28, 2010, 11:06:37 pm »
Ok good. Also, if you make your own linking software, will we be able to send any kind of file to the calc like on the TI-Nspire? On the TI-Nspire, if you want to send a Gameboy Color ROM, all you do is add a .tns extension at the end and you're set. I assume TI-Connect would not accept such file, though, right?

Also for batteries, will there be some protection against battery removal/dying during GC'ing? Or will it do like on the 83+ and random archived files vanish?
« Last Edit: September 28, 2010, 11:07:45 pm by DJ Omnimaga »

SirCmpwn

  • Guest
Re: Knight Filesystem Specification
« Reply #36 on: September 29, 2010, 08:30:17 am »
It will check the battery state before starting, and probably inform the user that they should change the batteries really quick before the GC starts, and inform them of possible data loss.
As for files, you can send any file you like to KOS.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Knight Filesystem Specification
« Reply #37 on: September 29, 2010, 12:37:16 pm »
Great!

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Knight Filesystem Specification
« Reply #38 on: September 29, 2010, 11:38:05 pm »
It may count up the garbage and see if it's worth garbage collecting or not.

Sounds good, then. But what if it really needs to garbage collect in the middle of an operation or something? It's still gotta take that into account, and then it might as well just wait until then to do it instead of checking at boot.




Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Knight Filesystem Specification
« Reply #39 on: September 29, 2010, 11:41:41 pm »
Another thing: it would be nice to not call it Garbage Collecting. I always found this weird. It might be best to call it defragmenting or something, like when deleting an APP. In French, Garbage Collect is Memory Reorganizing, anyway. The first time I saw GC, I thought the calc was asking me to do a mem reset...

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Knight Filesystem Specification
« Reply #40 on: September 29, 2010, 11:43:23 pm »
Yeah, I guess it does sound a bit weird...




Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: Knight Filesystem Specification
« Reply #41 on: September 30, 2010, 12:27:23 am »
Agreed. Calling it Defragment is much more unambiguous.
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







SirCmpwn

  • Guest
Re: Knight Filesystem Specification
« Reply #42 on: September 30, 2010, 08:39:48 am »
Another thing: it would be nice to not call it Garbage Collecting. I always found this weird. It might be best to call it defragmenting or something, like when deleting an APP. In French, Garbage Collect is Memory Reorganizing, anyway. The first time I saw GC, I thought the calc was asking me to do a mem reset...
This may be the case, but I didn't make the term: http://en.wikipedia.org/wiki/Garbage_collection_%28computer_science%29

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Knight Filesystem Specification
« Reply #43 on: September 30, 2010, 09:28:38 am »
Ah, right x.x. Well, if you call it that way, then it might be good to make it very visible somewhere in the readme or OS that this is just about fragmented mem that needs to be reorganized or something. That said, most ppl who may use your OS will probably be experienced calc users but some people with less experience may start using the shell later too if many software/games they want are made available only for KnightOS or if they get the OS from someone at school.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Knight Filesystem Specification
« Reply #44 on: September 30, 2010, 11:58:55 am »
Yeah, my first reactions after finding the GarbageCollect feature when I got my calc were (in this order):
  • Freaking out, thinking that everything was gonna be cleared
  • Trying it again to see what it did
  • Thinking it was fun and GarbageCollecting dozens of times a day just to see the message x.x

Also, wouldn't it be a waste to check for garbage at boot? It would have to check while saving stuff no matter what, and at the rate some of us use our calcs, we might have to garbage collect several times during use anyway.