From 6d4c19707ef95942e323cbdc89fbbfdbe45e7cc5 Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Mon, 8 Jan 2007 23:52:01 +0000 Subject: Splitting out www git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11952 a1c6a512-1295-4272-9138-f99709370657 --- www/devcon/IMG_4083.JPG | Bin 739023 -> 0 bytes www/devcon/IMG_4084.JPG | Bin 744194 -> 0 bytes www/devcon/IMG_4085.JPG | Bin 807416 -> 0 bytes www/devcon/IMG_4086.JPG | Bin 626454 -> 0 bytes www/devcon/IMG_4087.JPG | Bin 904011 -> 0 bytes www/devcon/IMG_4088.JPG | Bin 1012372 -> 0 bytes www/devcon/IMG_4089.JPG | Bin 1006566 -> 0 bytes www/devcon/Makefile | 9 ---- www/devcon/bildtext.txt | 5 -- www/devcon/img4083.jpg | Bin 67794 -> 0 bytes www/devcon/img4083t.jpg | Bin 12444 -> 0 bytes www/devcon/img4084.jpg | Bin 80091 -> 0 bytes www/devcon/img4084t.jpg | Bin 16550 -> 0 bytes www/devcon/img4085.jpg | Bin 90051 -> 0 bytes www/devcon/img4085t.jpg | Bin 10035 -> 0 bytes www/devcon/img4086.jpg | Bin 56036 -> 0 bytes www/devcon/img4086t.jpg | Bin 12220 -> 0 bytes www/devcon/img4087.jpg | Bin 79846 -> 0 bytes www/devcon/img4087t.jpg | Bin 8665 -> 0 bytes www/devcon/img4088.jpg | Bin 112641 -> 0 bytes www/devcon/img4088t.jpg | Bin 11368 -> 0 bytes www/devcon/img4089.jpg | Bin 101347 -> 0 bytes www/devcon/img4089t.jpg | Bin 18188 -> 0 bytes www/devcon/index.t | 132 ------------------------------------------------ 24 files changed, 146 deletions(-) delete mode 100644 www/devcon/IMG_4083.JPG delete mode 100644 www/devcon/IMG_4084.JPG delete mode 100644 www/devcon/IMG_4085.JPG delete mode 100644 www/devcon/IMG_4086.JPG delete mode 100644 www/devcon/IMG_4087.JPG delete mode 100644 www/devcon/IMG_4088.JPG delete mode 100644 www/devcon/IMG_4089.JPG delete mode 100644 www/devcon/Makefile delete mode 100644 www/devcon/bildtext.txt delete mode 100644 www/devcon/img4083.jpg delete mode 100644 www/devcon/img4083t.jpg delete mode 100644 www/devcon/img4084.jpg delete mode 100644 www/devcon/img4084t.jpg delete mode 100644 www/devcon/img4085.jpg delete mode 100644 www/devcon/img4085t.jpg delete mode 100644 www/devcon/img4086.jpg delete mode 100644 www/devcon/img4086t.jpg delete mode 100644 www/devcon/img4087.jpg delete mode 100644 www/devcon/img4087t.jpg delete mode 100644 www/devcon/img4088.jpg delete mode 100644 www/devcon/img4088t.jpg delete mode 100644 www/devcon/img4089.jpg delete mode 100644 www/devcon/img4089t.jpg delete mode 100644 www/devcon/index.t (limited to 'www/devcon') diff --git a/www/devcon/IMG_4083.JPG b/www/devcon/IMG_4083.JPG deleted file mode 100644 index d6ed305045..0000000000 Binary files a/www/devcon/IMG_4083.JPG and /dev/null differ diff --git a/www/devcon/IMG_4084.JPG b/www/devcon/IMG_4084.JPG deleted file mode 100644 index fedff94c8e..0000000000 Binary files a/www/devcon/IMG_4084.JPG and /dev/null differ diff --git a/www/devcon/IMG_4085.JPG b/www/devcon/IMG_4085.JPG deleted file mode 100644 index d592852b0d..0000000000 Binary files a/www/devcon/IMG_4085.JPG and /dev/null differ diff --git a/www/devcon/IMG_4086.JPG b/www/devcon/IMG_4086.JPG deleted file mode 100644 index 758c6ad3fb..0000000000 Binary files a/www/devcon/IMG_4086.JPG and /dev/null differ diff --git a/www/devcon/IMG_4087.JPG b/www/devcon/IMG_4087.JPG deleted file mode 100644 index 15846b5a9b..0000000000 Binary files a/www/devcon/IMG_4087.JPG and /dev/null differ diff --git a/www/devcon/IMG_4088.JPG b/www/devcon/IMG_4088.JPG deleted file mode 100644 index 53c760d9aa..0000000000 Binary files a/www/devcon/IMG_4088.JPG and /dev/null differ diff --git a/www/devcon/IMG_4089.JPG b/www/devcon/IMG_4089.JPG deleted file mode 100644 index 00dacfc742..0000000000 Binary files a/www/devcon/IMG_4089.JPG and /dev/null differ diff --git a/www/devcon/Makefile b/www/devcon/Makefile deleted file mode 100644 index 751a62f256..0000000000 --- a/www/devcon/Makefile +++ /dev/null @@ -1,9 +0,0 @@ -ACTION=@echo preprocessing $@; rm -f $@; $(HOME)/bin/fcpp -WWW -I.. -Uunix -H -C -V -LL >$@ - -SRC := $(wildcard *.t) -OBJS := $(SRC:%.t=%.html) - -all: $(OBJS) - -%.html : %.t - $(ACTION) $< diff --git a/www/devcon/bildtext.txt b/www/devcon/bildtext.txt deleted file mode 100644 index f8869f815c..0000000000 --- a/www/devcon/bildtext.txt +++ /dev/null @@ -1,5 +0,0 @@ -4083: Comparison between Recorder and Player -4084: Contest: Spot the development box! -4086: A stack of "virgins"! -4087: A pre-4.50 player (left) and a post-4.50 player (right). -4089: There's lots of fun to be had with these things! diff --git a/www/devcon/img4083.jpg b/www/devcon/img4083.jpg deleted file mode 100644 index e26cb18829..0000000000 Binary files a/www/devcon/img4083.jpg and /dev/null differ diff --git a/www/devcon/img4083t.jpg b/www/devcon/img4083t.jpg deleted file mode 100644 index b615af2d92..0000000000 Binary files a/www/devcon/img4083t.jpg and /dev/null differ diff --git a/www/devcon/img4084.jpg b/www/devcon/img4084.jpg deleted file mode 100644 index 9dbd59ae86..0000000000 Binary files a/www/devcon/img4084.jpg and /dev/null differ diff --git a/www/devcon/img4084t.jpg b/www/devcon/img4084t.jpg deleted file mode 100644 index 31c2b6e9a7..0000000000 Binary files a/www/devcon/img4084t.jpg and /dev/null differ diff --git a/www/devcon/img4085.jpg b/www/devcon/img4085.jpg deleted file mode 100644 index 376a8f31ae..0000000000 Binary files a/www/devcon/img4085.jpg and /dev/null differ diff --git a/www/devcon/img4085t.jpg b/www/devcon/img4085t.jpg deleted file mode 100644 index 52f3afe1c3..0000000000 Binary files a/www/devcon/img4085t.jpg and /dev/null differ diff --git a/www/devcon/img4086.jpg b/www/devcon/img4086.jpg deleted file mode 100644 index 051361c30b..0000000000 Binary files a/www/devcon/img4086.jpg and /dev/null differ diff --git a/www/devcon/img4086t.jpg b/www/devcon/img4086t.jpg deleted file mode 100644 index 18736fecb1..0000000000 Binary files a/www/devcon/img4086t.jpg and /dev/null differ diff --git a/www/devcon/img4087.jpg b/www/devcon/img4087.jpg deleted file mode 100644 index 2c047babe3..0000000000 Binary files a/www/devcon/img4087.jpg and /dev/null differ diff --git a/www/devcon/img4087t.jpg b/www/devcon/img4087t.jpg deleted file mode 100644 index 89ed22845e..0000000000 Binary files a/www/devcon/img4087t.jpg and /dev/null differ diff --git a/www/devcon/img4088.jpg b/www/devcon/img4088.jpg deleted file mode 100644 index f2cb22fb65..0000000000 Binary files a/www/devcon/img4088.jpg and /dev/null differ diff --git a/www/devcon/img4088t.jpg b/www/devcon/img4088t.jpg deleted file mode 100644 index 520023100d..0000000000 Binary files a/www/devcon/img4088t.jpg and /dev/null differ diff --git a/www/devcon/img4089.jpg b/www/devcon/img4089.jpg deleted file mode 100644 index a21385f118..0000000000 Binary files a/www/devcon/img4089.jpg and /dev/null differ diff --git a/www/devcon/img4089t.jpg b/www/devcon/img4089t.jpg deleted file mode 100644 index b3443677f5..0000000000 Binary files a/www/devcon/img4089t.jpg and /dev/null differ diff --git a/www/devcon/index.t b/www/devcon/index.t deleted file mode 100644 index 8f0e1d78e7..0000000000 --- a/www/devcon/index.t +++ /dev/null @@ -1,132 +0,0 @@ -#define _PAGE_ Rockbox Developer Conference 2002 -#include "head.t" - -
photo
Comparison of Recorder and Player
- -

Well, almost. :-) Björn, Linus, Daniel and Kjell sat down at Linus' house -friday night (2002-04-19) with our Archoses and had a long and fruitful discussion about software design. -Here are a few things that we discussed: - -

Application Programming Interfaces

- -

We want to try to stick to POSIX where these exist and are practical. The -reason is simply that many people already know these APIs well. Here are a -few which haven't already been defined in the code: - -

File operations

- - -
photo -
Contest: Spot the development box!
- -

Directory operations

- - -

Disk operations

- - -

We also decided that we will use the 'newlib' standard C library, -replacing some functions with smaller variants as we move forward. - -

Multitasking

- -

We spent much time discussing and debating task scheduling, or the lack -thereof. First, we went with the idea that we don't really need "real" -scheduling. Instead, a simple "tree-task" system would be used: A -main-loop, a timer tick and a "bottom half" low-priority interrupt, each -with an event queue. - -

Pretty soon we realized that we will want to: - -

    -
  1. Use a timer tick to poll disk I/O (assuming we can't get an interrupt) -
  2. Perform slow disk operations in both the MP3->DAC feeder and the user - interface, sometimes at the same time. -
  3. Not lock up the user interface during I/O. -
- -
photo -
A stack of "virgins"!
- -

At the same time, we agreed that we should not walk into the common trap -of engaging in "job splitting". That is, to split up jobs in small chunks -so they don't take so long to finish. The problem with job splitting is -that it makes the code flow very complex. - -

After much scratching our collective heads over how to make a primitive -"three-task" system be able to do everything we wanted without resorting -to complex job splitting, we finally came to the conclusion that we were -heading down the wrong road: - -

- We need threading. -
- -

Even though a scheduler adds complexity, it makes the rest of the code so -much more straight-forward that the total net result is less overall -complexity. - -

To keep it simple, we decided to use a cooperative scheduler. That is, one -in which the threads themselves decide when scheduling is performed. The -big gain from this, apart from making the scheduler itself less complex, -is that we don't have to worry as much about making all code "multithread -safe". - -

Affording ourselves the luxury of threads, we soon identified four basic -threads: - -

- -

Threads use message passing between them and each have a message queue -associated to it. - -
photo -
There's much fun to be had with these things!
- -

In addition to the threads, we need a timer interrupt with the ability to -send messages to threads at specific intervals. This will also be used to -scan the keys of the jukebox and handle key repeat detection (when a key -has been pressed for a number of ticks). - -

None of these things are, of course, written in stone. Feel free to -comment, discuss and argue about them! - -

We are currently 89 subscribers to this list. If you want to get more -deeply involved in what's going on, I encourage you to: - -

- -

I have written a set of guidelines for contributing code to the project. -Take a look at them in CVS or here: -CONTRIBUTING - -

/Björn - -#include "foot.t" -- cgit v1.2.3