]> gitweb.factorcode.org Git - factor.git/commitdiff
Move mirrors out of the boot image
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Wed, 2 Jul 2008 05:20:01 +0000 (00:20 -0500)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Wed, 2 Jul 2008 05:20:01 +0000 (00:20 -0500)
67 files changed:
core/alien/compiler/compiler.factor
core/classes/tuple/parser/parser-tests.factor
core/classes/tuple/parser/parser.factor
core/classes/tuple/tuple-tests.factor
core/debugger/debugger.factor
core/dlists/dlists.factor
core/generic/parser/parser.factor
core/generic/standard/standard.factor
core/inference/errors/errors.factor
core/inference/known-words/known-words.factor
core/inference/transforms/transforms.factor
core/inspector/inspector-docs.factor
core/inspector/inspector.factor
core/io/encodings/utf16/utf16.factor
core/lexer/lexer.factor
core/optimizer/backend/backend.factor
core/optimizer/inlining/inlining.factor
core/optimizer/known-words/known-words.factor
core/parser/parser.factor
core/source-files/source-files.factor
core/strings/parser/parser.factor
core/summary/summary-docs.factor [new file with mode: 0644]
core/summary/summary.factor [new file with mode: 0644]
core/vocabs/loader/loader.factor
extra/bitfields/bitfields.factor
extra/bootstrap/tools/tools.factor
extra/cocoa/application/application.factor
extra/db/postgresql/lib/lib.factor
extra/descriptive/descriptive.factor
extra/editors/editors.factor
extra/graphics/bitmap/bitmap.factor
extra/hello-world/deploy.factor
extra/help/crossref/crossref.factor
extra/help/help-docs.factor
extra/help/topics/topics.factor
extra/http/client/client.factor
extra/inverse/inverse.factor
extra/io/encodings/strict/strict.factor
extra/io/launcher/launcher.factor
extra/io/ports/ports.factor
extra/io/sockets/secure/secure.factor
extra/io/sockets/sockets.factor
extra/io/streams/duplex/duplex.factor
extra/io/unix/backend/backend.factor
extra/io/unix/sockets/secure/secure.factor
extra/lisp/lisp.factor
extra/maze/deploy.factor
extra/openssl/openssl.factor
extra/random/random.factor
extra/state-parser/state-parser.factor
extra/tar/tar.factor
extra/tools/annotations/annotations.factor
extra/tools/crossref/crossref.factor
extra/tools/deploy/backend/backend.factor
extra/tools/deploy/shaker/shaker.factor
extra/tools/test/test.factor
extra/tools/vocabs/browser/browser.factor
extra/tools/vocabs/vocabs.factor
extra/ui/gadgets/panes/panes-tests.factor
extra/ui/gadgets/presentations/presentations-docs.factor
extra/ui/gadgets/worlds/worlds.factor
extra/ui/gestures/gestures.factor
extra/ui/tools/operations/operations.factor
extra/ui/tools/tools-docs.factor
extra/units/units.factor
extra/usa-cities/usa-cities.factor
extra/xml/errors/errors.factor

index ff4227ce27eb3f43ec58504308c6c80337ac8573..df20551c7635fa2831b9ada0aa26315f28e2d00a 100755 (executable)
@@ -4,7 +4,7 @@ USING: arrays generator generator.registers generator.fixup
 hashtables kernel math namespaces sequences words
 inference.state inference.backend inference.dataflow system
 math.parser classes alien.arrays alien.c-types alien.strings
-alien.structs alien.syntax cpu.architecture alien inspector
+alien.structs alien.syntax cpu.architecture alien summary
 quotations assocs kernel.private threads continuations.private
 libc combinators compiler.errors continuations layouts accessors
 init sets ;
index d75a63dfde183ef17e18669637296a4dfe1e6c50..10cbe268da637a026978f22a338c06a9ff67e9eb 100644 (file)
@@ -51,7 +51,7 @@ must-fail-with
 [ error>> unexpected-eof? ]
 must-fail-with
 
-[ "IN: classes.tuple.parser.tests USE: alien TUPLE: foo { slot alien } ;" eval ]
+[ "IN: classes.tuple.parser.tests USE: generic.standard TUPLE: foo { slot no-method } ;" eval ]
 [ error>> no-initial-value? ]
 must-fail-with
 
index 411820ef4fce9921ec6f553906db0165516a2fe9..e9919ee9928e3e488339aeee4daba1402207231e 100644 (file)
@@ -1,6 +1,6 @@
 ! Copyright (C) 2008 Slava Pestov.
 ! See http://factorcode.org/license.txt for BSD license.
-USING: accessors kernel sets namespaces sequences inspector parser
+USING: accessors kernel sets namespaces sequences summary parser
 lexer combinators words classes.parser classes.tuple arrays ;
 IN: classes.tuple.parser
 
index ea452c1915bd1466794a869010679fd08cebf635..853e290810d22bcf74b6c265cb99a43e428e5d8d 100755 (executable)
@@ -3,7 +3,7 @@ math.constants parser sequences tools.test words assocs
 namespaces quotations sequences.private classes continuations
 generic.standard effects classes.tuple classes.tuple.private
 arrays vectors strings compiler.units accessors classes.algebra
-calendar prettyprint io.streams.string splitting inspector
+calendar prettyprint io.streams.string splitting summary
 columns math.order classes.private slots slots.private ;
 IN: classes.tuple.tests
 
index 3bbb017570849911da3ff2a106b378e46df6edc8..f5316b08582c8bfcdc2cdb21a9603f3941bccac4 100755 (executable)
@@ -1,12 +1,12 @@
 ! Copyright (C) 2004, 2008 Slava Pestov.
 ! See http://factorcode.org/license.txt for BSD license.
-USING: slots arrays definitions generic hashtables inspector io
+USING: slots arrays definitions generic hashtables summary io
 kernel math namespaces prettyprint prettyprint.config sequences
 assocs sequences.private strings io.styles vectors words system
 splitting math.parser classes.tuple continuations
 continuations.private combinators generic.math classes.builtin
 classes compiler.units generic.standard vocabs threads
-threads.private init kernel.private libc io.encodings mirrors
+threads.private init kernel.private libc io.encodings
 accessors math.order destructors ;
 IN: debugger
 
@@ -16,7 +16,6 @@ GENERIC: error-help ( error -- topic )
 M: object error. . ;
 M: object error-help drop f ;
 
-M: tuple error. describe ;
 M: tuple error-help class ;
 
 M: string error. print ;
@@ -33,9 +32,6 @@ M: string error. print ;
 : :get ( variable -- value )
     error-continuation get continuation-name assoc-stack ;
 
-: :vars ( -- )
-    error-continuation get continuation-name namestack. ;
-
 : :res ( n -- * )
     1- restarts get-global nth f restarts set-global restart ;
 
index 2b6c7f11f752a81675bcbdcf8cb6da6e8f3d71e4..0095734e63a29d1d906ef240ebb8b2315c5ada98 100755 (executable)
@@ -1,7 +1,7 @@
 ! Copyright (C) 2007, 2008 Mackenzie Straight, Doug Coleman,
 ! Slava Pestov.
 ! See http://factorcode.org/license.txt for BSD license.
-USING: combinators kernel math sequences accessors inspector
+USING: combinators kernel math sequences accessors summary
 dequeues ;
 IN: dlists
 
index ba9cd5244c4312502b2c2a468c4985ce9536575a..74ab769933e27250a74a5a007e0fcfd8d47f369d 100644 (file)
@@ -1,6 +1,6 @@
 ! Copyright (C) 2008 Slava Pestov.
 ! See http://factorcode.org/license.txt for BSD license.
-USING: parser kernel words generic namespaces inspector ;
+USING: parser kernel words generic namespaces summary ;
 IN: generic.parser
 
 ERROR: not-in-a-method-error ;
index b9ddcae299308ef1b080e3750505b076aee0851b..89c2a2a396160b1b14486f943e0ada669e75c1d8 100644 (file)
@@ -93,7 +93,7 @@ ERROR: no-next-method class generic ;
 
 : single-next-method-quot ( class generic -- quot )
     [
-        [ drop [ instance? ] curry % ]
+        [ drop "predicate" word-prop % ]
         [
             2dup next-method
             [ 2nip 1quotation ]
index 4a750402431ef7025e2097b596d2777c6fb85cb8..e1d5bd434c8c761a8f4ee1c7138a90e9e1195ad0 100644 (file)
@@ -2,7 +2,7 @@
 ! See http://factorcode.org/license.txt for BSD license.
 IN: inference.errors
 USING: inference.backend inference.dataflow kernel generic
-sequences prettyprint io words arrays inspector effects debugger
+sequences prettyprint io words arrays summary effects debugger
 assocs accessors ;
 
 M: inference-error error-help error>> error-help ;
index c3ad6be1c2f6386492751b62e01887df6b6d20e2..bd6406fa34bf69ae5ac3d2df328871213a2cb975 100755 (executable)
@@ -10,7 +10,7 @@ namespaces.private parser prettyprint quotations
 quotations.private sbufs sbufs.private sequences
 sequences.private slots.private strings strings.private system
 threads.private classes.tuple classes.tuple.private vectors
-vectors.private words words.private assocs inspector
+vectors.private words words.private assocs summary
 compiler.units system.private ;
 IN: inference.known-words
 
index 7bae8f5abdc60c5342aedff8f907a38244968397..53e34d62b0dd7f5583236c9c678d4fafc6704fbb 100755 (executable)
@@ -3,7 +3,7 @@
 USING: accessors arrays kernel words sequences generic math
 namespaces quotations assocs combinators math.bitfields
 inference.backend inference.dataflow inference.state
-classes.tuple classes.tuple.private effects inspector hashtables
+classes.tuple classes.tuple.private effects summary hashtables
 classes generic sets definitions generic.standard slots.private ;
 IN: inference.transforms
 
index ab1c38b0b736facf41c7fbff11928a0499384bf5..27401f3e34cea5ae66f8086376a5148e1b4f1438 100644 (file)
@@ -22,9 +22,7 @@ $nl
 { $subsection inspector-hook }
 "A description of an object can be printed without starting the inspector:"
 { $subsection describe }
-{ $subsection describe* }
-"A word for getting very brief descriptions of words and general objects:"
-{ $subsection summary } ;
+{ $subsection describe* } ;
 
 ABOUT: "inspector"
 
@@ -54,10 +52,6 @@ $nl
 } }
 { $notes "This word is a factor of " { $link describe } " and " { $link inspect } "." } ;
 
-HELP: summary
-{ $values { "object" object } { "string" "a string" } }
-{ $contract "Outputs a brief description of the object." } ;
-
 HELP: inspector-stack
 { $var-description "If the inspector is running, this variable holds previously-inspected objects." } ;
 
index 51d3cb319d613b0635e9f8bbcecaac6fd8d07892..0f925d1ea1821d977123fb2dd166f2bca2f193a8 100755 (executable)
@@ -3,46 +3,9 @@
 USING: accessors arrays generic hashtables io kernel assocs math
 namespaces prettyprint sequences strings io.styles vectors words
 quotations mirrors splitting math.parser classes vocabs refs
-sets sorting ;
+sets sorting summary debugger continuations ;
 IN: inspector
 
-GENERIC: summary ( object -- string )
-
-: object-summary ( object -- string )
-    class name>> " instance" append ;
-
-M: object summary object-summary ;
-
-M: input summary
-    [
-        "Input: " %
-        input-string "\n" split1 swap %
-        "..." "" ? %
-    ] "" make ;
-
-M: word summary synopsis ;
-
-M: sequence summary
-    [
-        dup class name>> %
-        " with " %
-        length #
-        " elements" %
-    ] "" make ;
-
-M: assoc summary
-    [
-        dup class name>> %
-        " with " %
-        assoc-size #
-        " entries" %
-    ] "" make ;
-
-! Override sequence => integer instance
-M: f summary object-summary ;
-
-M: integer summary object-summary ;
-
 : value-editor ( path -- )
     [
         [ pprint-short ] presented-printer set
@@ -101,6 +64,8 @@ SYMBOL: +editable+
 
 : describe ( obj -- ) H{ } describe* ;
 
+M: tuple error. describe ;
+
 : namestack. ( seq -- )
     [ [ global eq? not ] filter [ keys ] gather ] keep
     [ dupd assoc-stack ] curry H{ } map>assoc describe ;
@@ -108,6 +73,9 @@ SYMBOL: +editable+
 : .vars ( -- )
     namestack namestack. ;
 
+: :vars ( -- )
+    error-continuation get continuation-name namestack. ;
+
 SYMBOL: inspector-hook
 
 [ H{ { +number-rows+ t } } describe* ] inspector-hook set-global
index c0aaadc9470a88f3912241d9f0a27fcae8532478..80706233db940005fe8f01f38e0abb75394b118c 100755 (executable)
@@ -1,7 +1,7 @@
 ! Copyright (C) 2006, 2008 Daniel Ehrenberg.
 ! See http://factorcode.org/license.txt for BSD license.
 USING: math kernel sequences sbufs vectors namespaces io.binary
-io.encodings combinators splitting io byte-arrays inspector ;
+io.encodings combinators splitting io byte-arrays summary ;
 IN: io.encodings.utf16
 
 SINGLETON: utf16be
index f791cc7391ba6f42bdaa8337e5146f2b4c0c4d82..48724e600915fd4c69e61ef5379a1efbcc07cbc9 100644 (file)
@@ -1,7 +1,7 @@
 ! Copyright (C) 2008 Slava Pestov.
 ! See http://factorcode.org/license.txt for BSD license.
 USING: kernel sequences accessors namespaces math words strings
-debugger io vectors arrays math.parser combinators inspector
+debugger io vectors arrays math.parser combinators summary
 continuations ;
 IN: lexer
 
index 9b70ccdd9d74778e8715dbd24459d790f6e32b58..2f8b8b80e1ec44370be1521103dd240b3ca2d891 100755 (executable)
@@ -115,3 +115,15 @@ M: f set-node-successor 2drop ;
 
 : drop-inputs ( node -- #shuffle )
     node-in-d clone \ #shuffle in-node ;
+
+: optimizer-hooks ( node -- conditions )
+    param>> "optimizer-hooks" word-prop ;
+
+: optimizer-hook ( node -- pair/f )
+    dup optimizer-hooks [ first call ] find 2nip ;
+
+: optimize-hook ( node -- )
+    dup optimizer-hook second call ;
+
+: define-optimizers ( word optimizers -- )
+    "optimizer-hooks" set-word-prop ;
index e741f2d17188ef4e61e53678755ecb55818d91ee..9647f42d51f1fec3df23f40c1cdfbdeaa3908b07 100755 (executable)
@@ -107,19 +107,6 @@ DEFER: (flat-length)
         [ 2drop t ]
     } cond ;
 
-! Resolve type checks at compile time where possible
-: comparable? ( actual testing -- ? )
-    #! If actual is a subset of testing or if the two classes
-    #! are disjoint, return t.
-    2dup class<= >r classes-intersect? not r> or ;
-
-: optimize-predicate? ( #call -- ? )
-    dup node-param "predicating" word-prop dup [
-        >r node-class-first r> comparable?
-    ] [
-        2drop f
-    ] if ;
-
 : literal-quot ( node literals -- quot )
     #! Outputs a quotation which drops the node's inputs, and
     #! pushes some literals.
@@ -130,33 +117,40 @@ DEFER: (flat-length)
     #! Make #shuffle -> #push -> #return -> successor
     dupd literal-quot f splice-quot ;
 
-: evaluate-predicate ( #call -- ? )
-    dup node-param "predicating" word-prop >r
-    node-class-first r> class<= ;
+! Resolve type checks at compile time where possible
+: comparable? ( actual testing -- ? )
+    #! If actual is a subset of testing or if the two classes
+    #! are disjoint, return t.
+    2dup class<= >r classes-intersect? not r> or ;
 
-: optimize-predicate ( #call -- node )
+: optimize-check? ( #call value class -- ? )
+    >r node-class r> comparable? ;
+
+: evaluate-check ( node value class -- ? )
+    >r node-class r> class<= ;
+
+: optimize-check ( #call value class -- node )
     #! If the predicate is followed by a branch we fold it
     #! immediately
-    dup evaluate-predicate swap
-    dup node-successor #if? [
+    [ evaluate-check ] [ 2drop ] 3bi
+    dup successor>> #if? [
         dup drop-inputs >r
-        node-successor swap 0 1 ? fold-branch
-        r> [ set-node-successor ] keep
+        successor>> swap 0 1 ? fold-branch
+        r> swap >>successor
     ] [
         swap 1array inline-literals
     ] if ;
 
-: optimizer-hooks ( node -- conditions )
-    node-param "optimizer-hooks" word-prop ;
-
-: optimizer-hook ( node -- pair/f )
-    dup optimizer-hooks [ first call ] find 2nip ;
+: (optimize-predicate) ( #call -- #call value class )
+    [ ] [ in-d>> first ] [ param>> "predicating" word-prop ] tri ;
 
-: optimize-hook ( node -- )
-    dup optimizer-hook second call ;
+: optimize-predicate? ( #call -- ? )
+    dup param>> "predicating" word-prop [
+        (optimize-predicate) optimize-check?
+    ] [ drop f ] if ;
 
-: define-optimizers ( word optimizers -- )
-    "optimizer-hooks" set-word-prop ;
+: optimize-predicate ( #call -- node )
+    (optimize-predicate) optimize-check ;
 
 : flush-eval? ( #call -- ? )
     dup node-param "flushable" word-prop [
index 52330ebdd62d78b862d2711a11cfb567966ddcba..1c9f659ac4e617704aa248732696309a185a96ed 100755 (executable)
@@ -145,18 +145,19 @@ byte-vectors ;
     ] if
 ] "constraints" set-word-prop
 
-! open-code instance? checks on predicate classes
-: literal-predicate-class? ( #call -- ? )
-    dup in-d>> second node-literal predicate-class? ;
-
-: expand-predicate-instance ( #call -- node )
-    dup dup in-d>> second node-literal
-    [ +inlined+ depends-on ]
-    [ "predicate-definition" word-prop [ drop ] prepose ] bi
-    f splice-quot ;
+! Eliminate instance? checks when the outcome is known at compile time
+: (optimize-instance) ( #call -- #call value class/f )
+    [ ] [ in-d>> first ] [ dup in-d>> second node-literal ] tri ;
+
+: optimize-instance? ( #call -- ? )
+    (optimize-instance) dup class?
+    [ optimize-check? ] [ 3drop f ] if ;
+
+: optimize-instance ( #call -- node )
+    (optimize-instance) optimize-check ;
 
-\ predicate-instance? {
-    { [ dup literal-predicate-class? ] [ expand-predicate-instance ] }
+\ instance? {
+    { [ dup optimize-instance? ] [ optimize-instance ] }
 } define-optimizers
 
 ! eq? on the same object is always t
index 5ea19ab880f63070e768ad6152976b0f3bc1f54b..2e6c89ca95b9e1f332d7889e00eb5804d158a173 100755 (executable)
@@ -1,7 +1,7 @@
 ! Copyright (C) 2005, 2008 Slava Pestov.
 ! See http://factorcode.org/license.txt for BSD license.
 USING: arrays definitions generic assocs kernel math namespaces
-prettyprint sequences strings vectors words quotations inspector
+prettyprint sequences strings vectors words quotations summary
 io.styles io combinators sorting splitting math.parser effects
 continuations debugger io.files io.streams.string vocabs
 io.encodings.utf8 source-files classes hashtables
index 215151c2159d2a73cd7e501ff4b00ee40170485d..abe1b8b661159855d00dc4a7c6ed27dc391be0a8 100755 (executable)
@@ -1,7 +1,7 @@
 ! Copyright (C) 2007, 2008 Slava Pestov.
 ! See http://factorcode.org/license.txt for BSD license.
 USING: arrays definitions generic assocs kernel math namespaces
-prettyprint sequences strings vectors words quotations inspector
+prettyprint sequences strings vectors words quotations summary
 io.styles io combinators sorting splitting math.parser effects
 continuations debugger io.files checksums checksums.crc32 vocabs
 hashtables graphs compiler.units io.encodings.utf8 accessors ;
index 08421b4a20de5b5f2a6bbf35677e8c3a0ccf9800..847fba95309486fb8de99a376077f52b6a2b2706 100644 (file)
@@ -1,6 +1,6 @@
 ! Copyright (C) 2008 Slava Pestov.
 ! See http://factorcode.org/license.txt for BSD license.
-USING: kernel inspector assocs namespaces splitting sequences
+USING: kernel summary assocs namespaces splitting sequences
 strings math.parser lexer ;
 IN: strings.parser
 
diff --git a/core/summary/summary-docs.factor b/core/summary/summary-docs.factor
new file mode 100644 (file)
index 0000000..4dfbd16
--- /dev/null
@@ -0,0 +1,12 @@
+IN: summary
+USING: kernel strings help.markup help.syntax ;
+
+ARTICLE: "summary" "Summary"
+"A word for getting very brief descriptions of words and general objects:"
+{ $subsection summary } ;
+
+HELP: summary
+{ $values { "object" object } { "string" string } }
+{ $contract "Outputs a brief description of the object." } ;
+
+ABOUT: "summary"
diff --git a/core/summary/summary.factor b/core/summary/summary.factor
new file mode 100644 (file)
index 0000000..61f5968
--- /dev/null
@@ -0,0 +1,42 @@
+! Copyright (C) 2008 Slava Pestov.
+! See http://factorcode.org/license.txt for BSD license.
+USING: accessors classes sequences splitting kernel namespaces
+words math math.parser io.styles prettyprint assocs ;
+IN: summary
+
+GENERIC: summary ( object -- string )
+
+: object-summary ( object -- string )
+    class name>> " instance" append ;
+
+M: object summary object-summary ;
+
+M: input summary
+    [
+        "Input: " %
+        input-string "\n" split1 swap %
+        "..." "" ? %
+    ] "" make ;
+
+M: word summary synopsis ;
+
+M: sequence summary
+    [
+        dup class name>> %
+        " with " %
+        length #
+        " elements" %
+    ] "" make ;
+
+M: assoc summary
+    [
+        dup class name>> %
+        " with " %
+        assoc-size #
+        " entries" %
+    ] "" make ;
+
+! Override sequence => integer instance
+M: f summary object-summary ;
+
+M: integer summary object-summary ;
index 04cf9a2ac1b712ce54d2e592b7ab928a8defa4b1..6966ae8dc43ac5fa5329ec3ea776a33cc7633c94 100755 (executable)
@@ -1,10 +1,9 @@
 ! Copyright (C) 2007, 2008 Eduardo Cavazos, Slava Pestov.
 ! See http://factorcode.org/license.txt for BSD license.
 USING: namespaces sequences io.files kernel assocs words vocabs
-definitions parser continuations inspector debugger io io.styles
-hashtables sorting prettyprint source-files
-arrays combinators strings system math.parser compiler.errors
-splitting init ;
+definitions parser continuations summary debugger io io.styles
+hashtables sorting prettyprint source-files arrays combinators
+strings system math.parser compiler.errors splitting init ;
 IN: vocabs.loader
 
 SYMBOL: vocab-roots
index c83d4b5152b41e685f86846edaf15ed905b98dd3..410fd4bdec80b0e042c2e295ce194f18001945c1 100644 (file)
@@ -1,4 +1,4 @@
-USING: parser lexer kernel math sequences namespaces assocs inspector
+USING: parser lexer kernel math sequences namespaces assocs summary
 words splitting math.parser arrays sequences.next mirrors
 shuffle compiler.units ;
 IN: bitfields
index 670bca490349f6e194d699a653b04b1f1d1fc475..f9d51b3dfcb5e841b912203740638da7bad0e8ae 100755 (executable)
@@ -1,6 +1,7 @@
 USING: vocabs.loader sequences ;
 
 {
+    "inspector"
     "bootstrap.image"
     "tools.annotations"
     "tools.crossref"
index e23730274490f40c3588aa9697046b02c4e49c47..3e6f8c5be74aba3fa775528c862481967cf3b86b 100755 (executable)
@@ -2,7 +2,7 @@
 ! See http://factorcode.org/license.txt for BSD license.
 USING: alien alien.syntax io kernel namespaces core-foundation
 core-foundation.run-loop cocoa.messages cocoa cocoa.classes
-cocoa.runtime sequences threads debugger init inspector
+cocoa.runtime sequences threads debugger init summary
 kernel.private ;
 IN: cocoa.application
 
index 9d2ced3afaab68e37362344d2572df7a9b8dbde7..eba7f6933462c0732d8daa2f010a9fc21f621669 100755 (executable)
@@ -5,7 +5,7 @@ quotations sequences db.postgresql.ffi alien alien.c-types
 db.types tools.walker ascii splitting math.parser combinators
 libc shuffle calendar.format byte-arrays destructors prettyprint
 accessors strings serialize io.encodings.binary io.encodings.utf8
-alien.strings io.streams.byte-array inspector present urls ;
+alien.strings io.streams.byte-array summary present urls ;
 IN: db.postgresql.lib
 
 : postgresql-result-error-message ( res -- str/f )
index 6aafe46b4d81b9be1e8f8372b9e778b85c8ec7c1..3b55aa0521300929d1ba87353218b70f63e868d7 100755 (executable)
@@ -1,6 +1,6 @@
 USING: words kernel sequences combinators.lib locals\r
 locals.private accessors parser namespaces continuations\r
-inspector definitions arrays.lib arrays ;\r
+summary definitions arrays.lib arrays ;\r
 IN: descriptive\r
 \r
 ERROR: descriptive-error args underlying word ;\r
index 78f6caf96507aa352349027f5d414c93957b4238..90c40f9bd5748c5788c45d25d73f27689be3fdca 100755 (executable)
@@ -1,7 +1,7 @@
 ! Copyright (C) 2005, 2008 Slava Pestov.
 ! See http://factorcode.org/license.txt for BSD license.
 USING: parser lexer kernel namespaces sequences definitions
-io.files inspector continuations tools.crossref tools.vocabs io
+io.files summary continuations tools.crossref tools.vocabs io
 prettyprint source-files assocs vocabs vocabs.loader io.backend
 splitting accessors ;
 IN: editors
index 611319e28b81c71e60283360541c291f3fafb07a..d2ddad0ae3649c1c31f47399999c08b4a51c9c35 100755 (executable)
@@ -1,7 +1,7 @@
 ! Copyright (C) 2007 Doug Coleman.
 ! See http://factorcode.org/license.txt for BSD license.
 
-USING: alien arrays byte-arrays combinators inspector
+USING: alien arrays byte-arrays combinators summary
 io.backend graphics.viewer io io.binary io.files kernel libc
 math math.functions namespaces opengl opengl.gl prettyprint
 sequences strings ui ui.gadgets.panes io.encodings.binary ;
index 77421938a986b5182c712bfc2c3cdfc68dd2717f..403cb4737e63b722b56beedf3d5625133fbda14e 100755 (executable)
@@ -1,15 +1,15 @@
 USING: tools.deploy.config ;
 H{
-    { deploy-word-defs? f }
+    { deploy-word-props? f }
     { deploy-random? f }
-    { deploy-name "Hello world (console)" }
-    { deploy-threads? f }
     { deploy-compiler? f }
-    { deploy-math? f }
     { deploy-c-types? f }
-    { deploy-io 2 }
-    { deploy-reflection 1 }
     { deploy-ui? f }
+    { deploy-reflection 1 }
+    { deploy-threads? f }
+    { deploy-io 2 }
+    { deploy-word-defs? f }
     { "stop-after-last-window?" t }
-    { deploy-word-props? f }
+    { deploy-name "Hello world (console)" }
+    { deploy-math? f }
 }
index 54ede93aa1d4378722333a60e01f7825a2796a37..9eec5b859ed07edc2b6c9542ce2be8f685827a56 100644 (file)
@@ -2,7 +2,7 @@
 ! See http://factorcode.org/license.txt for BSD license.
 USING: arrays definitions generic assocs
 io kernel namespaces prettyprint prettyprint.sections
-sequences words inspector classes help.topics help.markup ;
+sequences words summary classes help.topics help.markup ;
 IN: help.crossref
 
 : article-children ( topic -- seq )
index f20ce89263dfc5857c085f41c8e1653a282ff6c3..ce5ca52fc7417f1e4660f009cf50bf82496be1cc 100755 (executable)
@@ -1,5 +1,5 @@
 USING: help.markup help.crossref help.stylesheet help.topics
-help.syntax definitions io prettyprint inspector arrays math
+help.syntax definitions io prettyprint summary arrays math
 sequences vocabs ;
 IN: help
 
index afdae38c5a285a956aab5d47d93e8b8190ad837f..6ad3b23c2c2df0894d898cbfee75347ba2b2edd7 100755 (executable)
@@ -2,7 +2,7 @@
 ! See http://factorcode.org/license.txt for BSD license.x
 USING: arrays definitions generic assocs
 io kernel namespaces prettyprint prettyprint.sections
-sequences words inspector classes strings vocabs ;
+sequences words summary classes strings vocabs ;
 IN: help.topics
 
 TUPLE: link name ;
index 0b9224f171550b20d0710e31b14b1620a043cba2..03024182b0b2ed1adc83f4fd500318a14252f301 100755 (executable)
@@ -9,7 +9,7 @@ io.encodings.ascii
 io.encodings.8-bit
 io.encodings.binary
 io.streams.duplex
-fry debugger inspector ascii urls present ;
+fry debugger summary ascii urls present ;
 IN: http.client
 
 : max-redirects 10 ;
index 97d4ae9b3b644a70a5dd21c896efd542a485d6d0..4a35fbab24f20a4eae4cb95fd8cf5010a306f6b8 100755 (executable)
@@ -1,6 +1,6 @@
 ! Copyright (C) 2007, 2008 Daniel Ehrenberg.
 ! See http://factorcode.org/license.txt for BSD license.
-USING: accessors kernel words inspector slots quotations
+USING: accessors kernel words summary slots quotations
 sequences assocs math arrays inference effects shuffle
 continuations debugger classes.tuple namespaces vectors
 bit-arrays byte-arrays strings sbufs math.functions macros
index 21eb231075cff024253d5cd22ffb0f6d24e5e6cb..3288de601d8e87d126ddc8626729fc803a5c59ec 100644 (file)
@@ -1,6 +1,6 @@
 ! Copyright (C) 2008 Daniel Ehrenberg
 ! See http://factorcode.org/license.txt for BSD license.
-USING: io.encodings kernel accessors inspector ;
+USING: io.encodings kernel accessors summary ;
 IN: io.encodings.strict
 
 TUPLE: strict code ;
index bd900720397fb597c99e65b42c8aa77eea73021f..2b3cdff06ea23218bf1982bec8b63b7bccf38bbe 100755 (executable)
@@ -2,9 +2,9 @@
 ! See http://factorcode.org/license.txt for BSD license.
 USING: system kernel namespaces strings hashtables sequences 
 assocs combinators vocabs.loader init threads continuations
-math accessors concurrency.flags destructors
+math accessors concurrency.flags destructors inspector
 io io.backend io.timeouts io.pipes io.pipes.private io.encodings
-io.streams.duplex io.ports debugger prettyprint inspector ;
+io.streams.duplex io.ports debugger prettyprint summary ;
 IN: io.launcher
 
 TUPLE: process < identity-tuple
index 3aea311336057dacb8c0564668a25d7f04b65990..77e984e6e5d79c4ca86dd63e7d7c5124536d95f1 100755 (executable)
@@ -3,7 +3,7 @@
 USING: math kernel io sequences io.buffers io.timeouts generic
 byte-vectors system io.encodings math.order io.backend
 continuations debugger classes byte-arrays namespaces splitting
-grouping dlists assocs io.encodings.binary inspector accessors
+grouping dlists assocs io.encodings.binary summary accessors
 destructors ;
 IN: io.ports
 
index 10aec22ee5b2108b4b060be96dae11a212f96af0..fa4d786f7c6b5b33ed7000b618adb087cbabc326 100644 (file)
@@ -1,7 +1,7 @@
 ! Copyright (C) 2008 Slava Pestov.
 ! See http://factorcode.org/license.txt for BSD license.
 USING: accessors kernel symbols namespaces continuations
-destructors io.sockets sequences inspector calendar delegate ;
+destructors io.sockets sequences summary calendar delegate ;
 IN: io.sockets.secure
 
 SYMBOL: secure-socket-timeout
index a9278c83575ffe3e1cefc40e67dc25612d851202..35420948a8f280544da873076dbd0339fa7b8ff9 100755 (executable)
@@ -6,7 +6,7 @@ sequences arrays io.encodings io.ports io.streams.duplex
 io.encodings.ascii alien.strings io.binary accessors destructors
 classes debugger byte-arrays system combinators parser
 alien.c-types math.parser splitting grouping
-math assocs inspector ;
+math assocs summary ;
 IN: io.sockets
 
 << {
index 51b4b8d860c32a9253e0093165001c92af5212ac..6f3be15016b5d0b6e0bb791f4433ba91ebe5a60a 100755 (executable)
@@ -1,7 +1,7 @@
 ! Copyright (C) 2005, 2008 Slava Pestov.
 ! See http://factorcode.org/license.txt for BSD license.
 USING: kernel continuations destructors io io.encodings
-io.encodings.private io.timeouts debugger inspector listener
+io.encodings.private io.timeouts debugger summary listener
 accessors delegate delegate.protocols ;
 IN: io.streams.duplex
 
index 8e76be263292b150f30231e94307a9c6d7be5657..5dcfea37b33b8290cb56ffacd193891e9f4fc168 100755 (executable)
@@ -4,7 +4,7 @@ USING: alien generic assocs kernel kernel.private math
 io.ports sequences strings structs sbufs threads unix
 vectors io.buffers io.backend io.encodings math.parser
 continuations system libc qualified namespaces io.timeouts
-io.encodings.utf8 destructors accessors inspector combinators ;
+io.encodings.utf8 destructors accessors summary combinators ;
 QUALIFIED: io
 IN: io.unix.backend
 
index a0acbebb3acf72bf984a86ae6107f01aa720b0dd..a8adedf25a1342fda564b57d06cc1e2782e41351 100755 (executable)
@@ -6,7 +6,7 @@ continuations destructors
 openssl openssl.libcrypto openssl.libssl
 io.files io.ports io.unix.backend io.unix.sockets
 io.encodings.ascii io.buffers io.sockets io.sockets.secure
-io.timeouts system inspector ;
+io.timeouts system summary ;
 IN: io.unix.sockets.secure
 
 M: ssl-handle handle-fd file>> handle-fd ;
index 109083de378d0e6e24c9336840214193e4b4c1bf..1dd285ed7c04013c1d98ae03af37946916ae2379 100644 (file)
@@ -3,7 +3,7 @@
 USING: kernel peg sequences arrays strings combinators.lib
 namespaces combinators math locals locals.private locals.backend accessors
 vectors syntax lisp.parser assocs parser sequences.lib words
-quotations fry lists inspector combinators.short-circuit ;
+quotations fry lists summary combinators.short-circuit ;
 IN: lisp
 
 DEFER: convert-form
index 321a30d5b2e1aab0ad946ccb3c5a30db4e764a50..685ed71e8d2a4718690d43f5b028359960b398fa 100755 (executable)
@@ -1,12 +1,15 @@
 USING: tools.deploy.config ;
-V{
+H{
+    { deploy-name "Maze" }
+    { deploy-word-props? f }
     { deploy-ui? t }
-    { deploy-io 1 }
-    { deploy-reflection 1 }
+    { deploy-c-types? f }
     { deploy-compiler? t }
+    { deploy-io 1 }
+    { deploy-random? t }
+    { deploy-word-defs? f }
     { deploy-math? t }
-    { deploy-word-props? f }
-    { deploy-c-types? f }
     { "stop-after-last-window?" t }
-    { deploy-name "Maze" }
+    { deploy-reflection 1 }
+    { deploy-threads? t }
 }
index 6d750bd8e0e4d86b3c2f0d7b11a78645f69ef637..284e42cd1b31399eba2c2bcf9af5fe52901e1298 100755 (executable)
@@ -2,7 +2,7 @@
 ! See http://factorcode.org/license.txt for BSD license.
 USING: accessors byte-arrays kernel debugger sequences namespaces math
 math.order combinators init alien alien.c-types alien.strings libc
-continuations destructors debugger inspector splitting assocs
+continuations destructors debugger summary splitting assocs
 random math.parser locals unicode.case
 openssl.libcrypto openssl.libssl
 io.backend io.ports io.files io.encodings.8-bit io.sockets.secure
index b4b6ad9aff242d7d12a046d1c839a58e61fbd55a..74b7a78723a8e5687900689789304e21ac73e71b 100755 (executable)
@@ -2,7 +2,7 @@
 ! See http://factorcode.org/license.txt for BSD license.
 USING: alien.c-types kernel math namespaces sequences
 io.backend io.binary combinators system vocabs.loader
-inspector ;
+summary ;
 IN: random
 
 SYMBOL: system-random-generator
index 1feaf4601714d94c782910287a373a40efeca366..0aec1280de6dd3f257e0d9656de06359cffb5c1e 100644 (file)
@@ -1,7 +1,7 @@
 ! Copyright (C) 2005, 2006 Daniel Ehrenberg\r
 ! See http://factorcode.org/license.txt for BSD license.\r
 USING: io io.streams.string kernel math namespaces sequences\r
-strings circular prettyprint debugger ascii sbufs fry inspector\r
+strings circular prettyprint debugger ascii sbufs fry summary\r
 accessors sequences.lib ;\r
 IN: state-parser\r
 \r
index 644cf9aa72d285ca3ba7c682dfa13ea5b3f4d7b3..28913d71416901c5192af342698111cf1b147a0c 100755 (executable)
@@ -1,6 +1,6 @@
 USING: combinators io io.files io.streams.string kernel math
 math.parser continuations namespaces pack prettyprint sequences
-strings system hexdump io.encodings.binary inspector accessors
+strings system hexdump io.encodings.binary summary accessors
 io.backend symbols byte-arrays ;
 IN: tar
 
index 6f2ca1377aa926c059c46bf75aa06ff39b4be95a..023993c4355ddbe26634e68a794373f5e1cb031e 100755 (executable)
@@ -1,8 +1,9 @@
 ! Copyright (C) 2005, 2008 Slava Pestov.
 ! See http://factorcode.org/license.txt for BSD license.
-USING: accessors kernel words parser io inspector quotations
+USING: accessors kernel words parser io summary quotations
 sequences prettyprint continuations effects definitions
-compiler.units namespaces assocs tools.walker generic ;
+compiler.units namespaces assocs tools.walker generic
+inspector ;
 IN: tools.annotations
 
 GENERIC: reset ( word -- )
index 604e20f9b1686ebc4fc01ceac7a410614fa6f0d3..c4b046ecccb26d87479119166fbac44d30806fe9 100755 (executable)
@@ -2,7 +2,7 @@
 ! See http://factorcode.org/license.txt for BSD license.
 USING: accessors arrays definitions assocs io kernel
 math namespaces prettyprint sequences strings io.styles words
-generic tools.completion quotations parser inspector
+generic tools.completion quotations parser summary
 sorting hashtables vocabs parser source-files ;
 IN: tools.crossref
 
index 8973b2ea2a3547fbbfc1aa9e01c240b54ce48747..7559b448327a00ab204dbda5ed7926ded5b65970 100755 (executable)
@@ -3,7 +3,7 @@
 USING: namespaces continuations.private kernel.private init
 assocs kernel vocabs words sequences memory io system arrays
 continuations math definitions mirrors splitting parser classes
-inspector layouts vocabs.loader prettyprint.config prettyprint
+summary layouts vocabs.loader prettyprint.config prettyprint
 debugger io.streams.c io.files io.backend
 quotations io.launcher words.private tools.deploy.config
 bootstrap.image io.encodings.utf8 destructors accessors ;
index ba37784b11b80479e9dec03d00af7830eb412565..ade49a26f46700da250e8c10d6842983003718d6 100755 (executable)
@@ -13,7 +13,6 @@ QUALIFIED: compiler.units
 QUALIFIED: continuations
 QUALIFIED: definitions
 QUALIFIED: init
-QUALIFIED: inspector
 QUALIFIED: io.backend
 QUALIFIED: io.thread
 QUALIFIED: layouts
@@ -155,6 +154,8 @@ IN: tools.deploy.shaker
     [
         "callbacks" "alien.compiler" lookup ,
 
+        "inspector-hook" "inspector" lookup ,
+
         {
             bootstrap.stage2:bootstrap-time
             continuations:error
@@ -163,7 +164,6 @@ IN: tools.deploy.shaker
             continuations:restarts
             listener:error-hook
             init:init-hooks
-            inspector:inspector-hook
             io.thread:io-thread
             libc.private:mallocs
             source-files:source-files
index 8ef80c6add04018705f4c6063b83bca0882ea972..abbf5e5ab9372028f22ae966afb75a4775ab42eb 100755 (executable)
@@ -3,7 +3,7 @@
 USING: namespaces arrays prettyprint sequences kernel
 vectors quotations words parser assocs combinators
 continuations debugger io io.files vocabs
-vocabs.loader source-files compiler.units inspector
+vocabs.loader source-files compiler.units summary
 inference effects tools.vocabs ;
 IN: tools.test
 
index b3fe97f9080ae5ce47f37f7a8cd026f818a30466..afbb936df1e720bccebddb6c760ed5647c186e42 100755 (executable)
@@ -3,7 +3,7 @@
 USING: accessors kernel combinators vocabs vocabs.loader
 tools.vocabs io io.files io.styles help.markup help.stylesheet
 sequences assocs help.topics namespaces prettyprint words
-sorting definitions arrays inspector sets ;
+sorting definitions arrays summary sets ;
 IN: tools.vocabs.browser
 
 : vocab-status-string ( vocab -- string )
index 63fcff7f6a9e13208fdb8cc8702b52e99b92a316..34bd3c81c8ea73a93b6b98b262b00b0566f0669f 100755 (executable)
@@ -2,7 +2,7 @@
 ! See http://factorcode.org/license.txt for BSD license.\r
 USING: io.files kernel io.encodings.utf8 vocabs.loader vocabs\r
 sequences namespaces math.parser arrays hashtables assocs\r
-memoize inspector sorting splitting combinators source-files\r
+memoize summary sorting splitting combinators source-files\r
 io debugger continuations compiler.errors init\r
 checksums checksums.crc32 sets ;\r
 IN: tools.vocabs\r
index 31bb4233bf6e68b40ebec30f2db1ecd6b183c36b..41218df425c9566db3157c5aba8b2a03cfc5b38e 100755 (executable)
@@ -2,7 +2,7 @@ IN: ui.gadgets.panes.tests
 USING: alien ui.gadgets.panes ui.gadgets namespaces
 kernel sequences io io.styles io.streams.string tools.test
 prettyprint definitions help help.syntax help.markup
-help.stylesheet splitting tools.test.ui models math inspector ;
+help.stylesheet splitting tools.test.ui models math summary ;
 
 : #children "pane" get gadget-children length ;
 
index f226df5c2ade0673e2abf3683d6caa71dd6bd106..db057d30941ea70ecc7261e41f594d3ea3b5c980 100755 (executable)
@@ -1,5 +1,5 @@
 USING: help.markup help.syntax ui.gadgets.buttons
-ui.gadgets.menus models ui.operations inspector kernel
+ui.gadgets.menus models ui.operations summary kernel
 ui.gadgets.worlds ui.gadgets ;
 IN: ui.gadgets.presentations
 
index 4d2f31cda58051916a38ff8c46b5cdcf4ef47609..c843e06774a31c29525edc55db61f7678fcf6e4c 100755 (executable)
@@ -2,7 +2,7 @@
 ! See http://factorcode.org/license.txt for BSD license.
 USING: arrays assocs continuations kernel math models
 namespaces opengl sequences io combinators math.vectors
-ui.gadgets ui.gestures ui.render ui.backend inspector
+ui.gadgets ui.gestures ui.render ui.backend summary
 debugger ;
 IN: ui.gadgets.worlds
 
index 2d696788f2f7c9b26354fbfa4c1bfe177585cfc6..66cebd5663e316782fa3a71e83771051519d2759 100755 (executable)
@@ -54,7 +54,7 @@ TUPLE: zoom-in-action ;  C: <zoom-in-action> zoom-in-action
 TUPLE: zoom-out-action ; C: <zoom-out-action> zoom-out-action
 
 : generalize-gesture ( gesture -- newgesture )
-    tuple>array but-last >tuple ;
+    clone f >># ;
 
 ! Modifiers
 SYMBOLS: C+ A+ M+ S+ ;
index 558a56f92a0d5cf38f0a97aef27657cd06da49a8..672320ff1700537af4cdb41c69e8bb9173113a96 100755 (executable)
@@ -3,7 +3,7 @@
 USING: continuations definitions ui.tools.browser
 ui.tools.interactor ui.tools.listener ui.tools.profiler
 ui.tools.search ui.tools.traceback ui.tools.workspace generic
-help.topics inference inspector io.files io.styles kernel
+help.topics inference summary inspector io.files io.styles kernel
 namespaces parser prettyprint quotations tools.annotations
 editors tools.profiler tools.test tools.time tools.walker
 ui.commands ui.gadgets.editors ui.gestures ui.operations
index 4a8e1ddf4a01be34c929414ed7de5d7a3420afdb..387f9742f0cbf39fc648f596b4c9e09c7b2109aa 100755 (executable)
@@ -1,4 +1,4 @@
-USING: editors help.markup help.syntax inspector io listener
+USING: editors help.markup help.syntax summary inspector io listener
 parser prettyprint tools.profiler tools.walker ui.commands
 ui.gadgets.editors ui.gadgets.panes ui.gadgets.presentations
 ui.gadgets.slots ui.operations ui.tools.browser
index f7330c14327b795324c2d0d7ba199d24e7ebd311..8f55c96609179deccf5b72a1e0e68654790e2000 100755 (executable)
@@ -1,5 +1,5 @@
 USING: arrays io kernel math namespaces splitting prettyprint
-sequences sorting vectors words inverse inspector shuffle
+sequences sorting vectors words inverse summary shuffle
 math.functions sets ;
 IN: units
 
index 1fb0b83393919ae00f31b2d78f2099605e70fba6..fb392542f3dd160d303c76c1df47620c73126a3e 100644 (file)
@@ -1,7 +1,7 @@
 ! Copyright (C) 2008 Slava Pestov.
 ! See http://factorcode.org/license.txt for BSD license.
 USING: io.files io.encodings.ascii sequences sequences.lib
-math.parser combinators kernel memoize csv symbols inspector
+math.parser combinators kernel memoize csv symbols summary
 words accessors math.order sorting ;
 IN: usa-cities
 
index 58c27cabe7cdf088c88327ae147412e8bed08b27..1ef26883e35c23b3b1d2e5c61cab8d139a0b60c0 100644 (file)
@@ -1,7 +1,7 @@
 ! Copyright (C) 2005, 2006 Daniel Ehrenberg
 ! See http://factorcode.org/license.txt for BSD license.
 USING: xml.data xml.writer kernel generic io prettyprint math 
-debugger sequences state-parser accessors inspector
+debugger sequences state-parser accessors summary
 namespaces io.streams.string xml.backend ;
 IN: xml.errors