+ Runtime and core library:
- The number of generations used for garbage collection can now be set
- with the +G command line switch; eg, +G3 is the default. You must
- specify at least 2 generations.
+ with the +G command line switch. You must specify at least 2
+ generations.
+
+- Only 2 generations are used by default now, since there seems to be no
+ performance benefit to having 3 after running some brief benchmarks.
- New words:
full-gc
] unit-test
-[ ] [ f size ] unit-test
+[ 0 ] [ f size ] unit-test
IN: temporary
-USE: html
-USE: namespaces
-USE: io
-USE: strings
-USE: test
-USE: kernel
+USING: html io kernel namespaces styles test ;
[
"<html>&'sgml'"
[
[
""
- [ [[ "icon" "library/icons/File.png" ]] ]
+ [ [[ icon "library/icons/File.png" ]] ]
[ drop ] icon-tag
] string-out
] unit-test
[ "<span style='color: #ff00ff; font-family: Monospaced; '>car</span>" ]
[
[
- [ [ "fg" 255 0 255 ] [[ "font" "Monospaced" ]] ]
+ [ [ foreground 255 0 255 ] [[ font "Monospaced" ]] ]
[ drop "car" write ]
span-tag
] string-out
[
[
"car"
- [ [ "fg" 255 0 255 ] [[ "font" "Monospaced" ]] ]
+ [ [ foreground 255 0 255 ] [[ font "Monospaced" ]] ]
html-write-attr
] string-out
] unit-test
IN: temporary
USING: test inspector prettyprint math ;
-[[ 1 2 ]] inspect .
-[ 1 2 3 ] inspect .
-f inspect .
-\ + inspect .
+[[ 1 2 ]] inspect
+[ 1 2 3 ] inspect
+f inspect
+\ + inspect
[ "hello world how are you" ]
[ [ "hello" "world" "how" "are" "you" ] " " join ]
<queue> [ 1 2 3 4 5 ] [ swap enque ] each
5 [ drop deque swap ] project nip
] unit-test
-
-[ [ 1 4 9 16 25 ] ] [
- <queue> [ 1 2 3 4 5 ] [ swap enque ] each
- [ sq ] que-map
- 5 [ drop deque swap ] project nip
-] unit-test
[ 5040 ] [ [ 1 2 3 4 5 6 7 ] 1 [ * ] reduce ] unit-test
[ [ 1 1 2 6 24 120 720 ] ]
-[ [ 1 2 3 4 5 6 7 ] 1 [ * ] accumilate ] unit-test
+[ [ 1 2 3 4 5 6 7 ] 1 [ * ] accumulate ] unit-test
{
CELL ds_size = 2048;
CELL cs_size = 2048;
- CELL generations = 3;
+ CELL generations = 2;
CELL young_size = 8;
CELL aging_size = 16;
CELL code_size = 2;