v7 icon indicating copy to clipboard operation
v7 copied to clipboard

Implement OS interface

Open cpq opened this issue 11 years ago • 5 comments

And, define that interface in a first place.

cpq avatar Jan 14 '15 08:01 cpq

  • [x] Rename File to Os (python-like)
  • [ ] Add Os.system()
  • [ ] Add Os.stat()
  • [x] Add Os.rename()
  • [x] Add Os.info() - get OS information

cpq avatar Mar 24 '15 12:03 cpq

What are the use cases for OS interface? Should it be just a dumping ground for things that don't fit into other interfaces (like Socket) and are offloaded to the hosting OS?

I assume that if we're running without an OS (on bare hardware) it's up to the vendor to implement particular methods.

imax9000 avatar Mar 30 '15 15:03 imax9000

For the start, file operations and starting processes (if there is an OS) is enough. And yes, Os would be a dumping ground. Main APIs that we anticipate are hardware (e.g. UART, SPI) to collect data from hardware, and networking (Fossa) to transmit that data outside.

cpq avatar Mar 30 '15 16:03 cpq

How about replacing stat with exists, readable and writable? Mapping struct stat to JS is going to be awkward.

imax9000 avatar Apr 03 '15 15:04 imax9000

+1 for suggested rename

cpq avatar Apr 03 '15 16:04 cpq