generic/ - generic words, for object oriented programming style
help/ - online help system
httpd/ - HTTP client, server, and web application framework
- icons/ - images used by web framework and UI
inference/ - stack effect inference, used by compiler, as well as a
useful development tool of its own
io/ - input and output streams
- theme abstraction in ui\r
- menu dragging\r
- find out why so many small bignums get consed\r
-- icons\r
- use incremental strategy for all pack layouts where possible\r
- multiline editing in listener\r
- get stuff in examples dir running in the ui\r
\r
+ ffi:\r
\r
+- C structs, enums, unions: use new-style string mode parsing\r
- alien/c-types.factor is ugly\r
- smarter out parameter handling\r
- clarify powerpc passing of value struct parameters\r
- instances: do not use make-list\r
- vectors: ensure its ok with bignum indices\r
- code gc\r
+- set-path: iterative\r
+- parse-command-line: no unswons of cli args\r
+- >c/c>: vector stack\r
+- tag: move from kernel-internals to kernel\r
+- word: when bootstrapping, 'word' var is not cleared\r
+- search: slow\r
+- investigate if rehashing on startup is really necessary\r
+- vectorize >n, n>, (get)\r
+- mutable strings simplifying string operarations\r
+- 2each, find*, subset are ugly\r
+- map and 2map duplicate logic\r
\r
+ i/o:\r
\r
"/var/www/" "doc-root" set
\end{verbatim}
-If a directory holds an \verb|index.html| file, the file is served when the directory is requested, otherwise a directory listing is produced. The directory listing references icons sent via the resource responder. The icons are located in the Factor source tree, and the \verb|"resource-path"| variable may be set to the root of the source tree in order for the icons to be located:
-\begin{verbatim}
-"/home/slava/work/Factor/" "resource-path" set
-\end{verbatim}
+If a directory holds an \verb|index.html| file, the file is served when the directory is requested, otherwise a directory listing is produced.
+
A facility for ad-hoc server-side scripting exists. If a file with the \verb|.factsp| filename extension is requested, the file is run with \verb|run-file| and any output it sends to the default stream is sent to the client (\ref{stdio}). These ``Factor server pages'' are slower and less powerful than responders, so it is recommended that responders be used instead.
A different static site can be associated with each virtual host by setting the \verb|"doc-root"| variable in each virtual host (\ref{vhosts}).
\r
: <page> ( list -- gadget )\r
[ tutorial-line ] map\r
- <pile> dup 1 over set-pack-fill [ add-gadgets ] keep\r
+ <pile> 1 over set-pack-fill [ add-gadgets ] keep\r
empty-border ;\r
\r
: tutorial-pages\r
]\r
] ;\r
\r
-: <tutorial> ( pages -- browser )\r
- tutorial-pages [ <page> ] map <book>\r
+: tutorial-theme\r
dup { 204 204 255 } background set-paint-prop\r
dup << gradient f { 0 1 0 } { 204 204 255 } { 255 204 255 } >> interior set-paint-prop\r
dup "Sans Serif" font set-paint-prop\r
- dup 18 font-size set-paint-prop\r
- <book-browser> ;\r
+ 18 font-size set-paint-prop ;\r
+\r
+: <tutorial> ( pages -- browser )\r
+ tutorial-pages [ <page> ] map <book>\r
+ dup tutorial-theme <book-browser> ;\r
\r
: tutorial ( -- )\r
<tutorial> gadget. ;\r