]> gitweb.factorcode.org Git - factor.git/commitdiff
Fix comments to be ! not #!.
authorJohn Benediktsson <mrjbq7@gmail.com>
Tue, 8 Sep 2015 23:15:10 +0000 (16:15 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 8 Sep 2015 23:15:10 +0000 (16:15 -0700)
171 files changed:
basis/bootstrap/image/image.factor
basis/cairo/cairo.factor
basis/calendar/calendar.factor
basis/calendar/format/format.factor
basis/channels/examples/examples.factor
basis/checksums/interleave/interleave.factor
basis/checksums/md5/md5.factor
basis/circular/circular.factor
basis/cocoa/application/application.factor
basis/compiler/cfg/alias-analysis/alias-analysis.factor
basis/compiler/compiler.factor
basis/compiler/tree/cleanup/cleanup.factor
basis/compiler/tree/dead-code/branches/branches.factor
basis/compiler/tree/dead-code/recursive/recursive.factor
basis/compiler/tree/dead-code/simple/simple.factor
basis/compiler/tree/escape-analysis/recursive/recursive.factor
basis/compiler/tree/normalization/introductions/introductions.factor
basis/compiler/tree/propagation/info/info.factor
basis/compiler/tree/propagation/simple/simple.factor
basis/compiler/tree/propagation/slots/slots.factor
basis/compiler/tree/propagation/transforms/transforms.factor
basis/compiler/tree/tuple-unboxing/tuple-unboxing.factor
basis/concurrency/conditions/conditions.factor
basis/concurrency/locks/locks.factor
basis/cpu/x86/32/32.factor
basis/cpu/x86/assembler/assembler.factor
basis/cpu/x86/assembler/operands/operands.factor
basis/cpu/x86/x86.factor
basis/db/queries/queries.factor
basis/db/sqlite/lib/lib.factor
basis/furnace/chloe-tags/chloe-tags.factor
basis/furnace/utilities/utilities.factor
basis/help/markup/markup.factor
basis/html/components/components.factor
basis/http/http.factor
basis/http/parsers/parsers.factor
basis/http/server/cgi/cgi.factor
basis/http/server/server.factor
basis/inspector/inspector.factor
basis/io/files/info/unix/unix.factor
basis/io/files/info/windows/windows.factor
basis/io/files/windows/windows.factor
basis/io/launcher/windows/windows.factor
basis/io/monitors/recursive/recursive.factor
basis/io/sockets/secure/unix/unix.factor
basis/io/streams/duplex/duplex.factor
basis/json/writer/writer.factor
basis/locals/prettyprint/prettyprint.factor
basis/locals/rewrite/closures/closures.factor
basis/locals/types/types.factor
basis/logging/logging.factor
basis/logging/server/server.factor
basis/math/functions/functions.factor
basis/math/intervals/intervals.factor
basis/math/matrices/elimination/elimination.factor
basis/math/statistics/statistics.factor
basis/math/vectors/simd/simd-tests.factor
basis/opengl/opengl.factor
basis/opengl/textures/textures.factor
basis/peg/ebnf/ebnf-tests.factor
basis/peg/ebnf/ebnf.factor
basis/peg/parsers/parsers.factor
basis/peg/peg-tests.factor
basis/peg/peg.factor
basis/prettyprint/sections/sections.factor
basis/serialize/serialize.factor
basis/smtp/server/server.factor
basis/smtp/smtp.factor
basis/sorting/slots/slots.factor
basis/soundex/soundex.factor
basis/stack-checker/stack-checker.factor
basis/syndication/syndication-tests.factor
basis/syndication/syndication.factor
basis/tools/continuations/continuations.factor
basis/tools/deploy/backend/backend.factor
basis/tools/deploy/shaker/shaker.factor
basis/ui/backend/cocoa/cocoa.factor
basis/ui/backend/cocoa/views/views.factor
basis/ui/backend/windows/windows.factor
basis/ui/gadgets/buttons/buttons.factor
basis/ui/gadgets/gadgets.factor
basis/ui/gadgets/panes/panes.factor
basis/ui/gadgets/sliders/sliders.factor
basis/ui/gadgets/worlds/worlds.factor
basis/ui/text/pango/pango.factor
basis/ui/tools/debugger/debugger.factor
basis/ui/tools/error-list/error-list.factor
basis/ui/tools/listener/listener.factor
basis/ui/ui.factor
basis/validators/validators.factor
basis/vocabs/hierarchy/hierarchy.factor
basis/vocabs/refresh/monitor/monitor.factor
basis/windows/privileges/privileges.factor
basis/windows/time/time.factor
basis/windows/winsock/winsock.factor
basis/xml/elements/elements.factor
basis/xml/entities/entities.factor
basis/xml/tokenize/tokenize.factor
core/byte-vectors/byte-vectors.factor
core/checksums/checksums.factor
core/classes/classes.factor
core/classes/mixin/mixin.factor
core/classes/tuple/tuple.factor
core/generic/single/single.factor
core/generic/standard/standard-tests.factor
core/generic/standard/standard.factor
core/io/io.factor
core/io/streams/c/c.factor
core/kernel/kernel.factor
core/math/math.factor
core/math/order/order.factor
core/parser/parser.factor
core/sbufs/sbufs.factor
core/sequences/sequences.factor
core/source-files/source-files.factor
core/syntax/syntax-docs.factor
core/vectors/vectors.factor
core/words/words.factor
extra/audio/vorbis/vorbis.factor
extra/benchmark/backtrack/backtrack.factor
extra/benchmark/fannkuch/fannkuch.factor
extra/benchmark/raytracer/raytracer.factor
extra/coroutines/coroutines.factor
extra/cpu/8080/emulator/emulator.factor
extra/cpu/8080/test/test.factor
extra/cpu/arm/assembler/assembler.factor
extra/crypto/aes/aes-tests.factor
extra/crypto/aes/aes.factor
extra/crypto/barrett/barrett.factor
extra/crypto/rsa/rsa.factor
extra/fjsc/resources/bootstrap.factor
extra/html/elements/elements.factor
extra/images/tga/tga.factor
extra/jamshred/gl/gl.factor
extra/jamshred/jamshred.factor
extra/jamshred/oint/oint.factor
extra/jamshred/tunnel/tunnel.factor
extra/koszul/koszul.factor
extra/mason/common/common.factor
extra/mason/git/git.factor
extra/mason/updates/updates.factor
extra/math/analysis/analysis.factor
extra/parser-combinators/parser-combinators.factor
extra/poker/poker.factor
extra/pop3/server/server.factor
extra/project-euler/070/070.factor
extra/project-euler/099/099.factor
extra/reports/noise/noise.factor
extra/sequences/modified/modified.factor
extra/space-invaders/space-invaders.factor
extra/tetris/board/board.factor
extra/tetris/game/game.factor
extra/tetris/gl/gl.factor
extra/tetris/piece/piece.factor
extra/trees/avl/avl.factor
extra/trees/trees.factor
extra/turing/turing.factor
extra/ui/gadgets/lists/lists.factor
extra/ui/render/test/test.factor
unmaintained/adsoda/solution2/solution2.factor
unmaintained/arm/allot/allot.factor
unmaintained/arm/architecture/architecture.factor
unmaintained/arm/intrinsics/intrinsics.factor
unmaintained/cont-responder/callbacks.factor
unmaintained/db/mysql/lib/lib.factor
unmaintained/odbc/odbc.factor
unmaintained/ogg/player/player.factor
unmaintained/sandbox/syntax/syntax.factor
unmaintained/sniffer/io/filter/bsd/bsd.factor
unmaintained/triggers/triggers.factor
unmaintained/webapps/numbers/numbers.factor

index 7edc3c00eacce79a074ef97fd3bb4c03231213b3..e407d0399f6add6db4bbcda716aa98ba88d471c9 100755 (executable)
@@ -112,7 +112,7 @@ SYMBOL: special-objects
     [ length test-quot call ] [ % ] bi ; inline
 
 : make-jit ( quot -- parameters literals code )
-    #! code is a { relocation insns } pair
+    ! code is a { relocation insns } pair
     [
         0 extra-offset set
         init-relocation
@@ -212,7 +212,7 @@ GENERIC: prepare-object ( obj -- ptr )
 : bignum-radix ( -- n ) bignum-bits 2^ 1 - ;
 
 : bignum>sequence ( n -- seq )
-    #! n is positive or zero.
+    ! n is positive or zero.
     [ dup 0 > ]
     [ [ bignum-bits neg shift ] [ bignum-radix bitand ] bi ]
     produce nip ;
@@ -232,8 +232,8 @@ M: bignum prepare-object
 ! Fixnums
 
 M: fixnum prepare-object
-    #! When generating a 32-bit image on a 64-bit system,
-    #! some fixnums should be bignums.
+    ! When generating a 32-bit image on a 64-bit system,
+    ! some fixnums should be bignums.
     dup
     bootstrap-most-negative-fixnum
     bootstrap-most-positive-fixnum between?
@@ -346,8 +346,8 @@ M: wrapper prepare-object
     ] emit-object ;
 
 M: string prepare-object
-    #! We pool strings so that each string is only written once
-    #! to the image
+    ! We pool strings so that each string is only written once
+    ! to the image
     [ emit-string ] cache-eql-object ;
 
 : assert-empty ( seq -- )
index d3edd9022abc81586fce656b8bae2f8df1f4535b..f55023d69e10f439426a2c95c5106cc8f95787fb 100644 (file)
@@ -35,10 +35,10 @@ ERROR: cairo-error n message ;
     ubyte-components >>component-type ; inline
 
 : dummy-cairo ( -- cr )
-    #! Sometimes we want a dummy context; eg with Pango, we want
-    #! to measure text dimensions to create a new image context with,
-    #! but we need an existing context to measure text dimensions
-    #! with so we use the dummy.
+    ! Sometimes we want a dummy context; eg with Pango, we want
+    ! to measure text dimensions to create a new image context with,
+    ! but we need an existing context to measure text dimensions
+    ! with so we use the dummy.
     \ dummy-cairo [
         CAIRO_FORMAT_ARGB32 0 0 cairo_image_surface_create
         cairo_create
index cee2358f67f161028b519f29502c1977dd64b0bf..d8586fe6b7a066190ccfea07061bf5394bae7f8f 100644 (file)
@@ -123,8 +123,8 @@ CONSTANT: minutes-per-year 5259492/10
 CONSTANT: seconds-per-year 31556952
 
 :: julian-day-number ( year month day -- n )
-    #! Returns a composite date number
-    #! Not valid before year -4800
+    ! Returns a composite date number
+    ! Not valid before year -4800
     14 month - 12 /i :> a
     year 4800 + a - :> y
     month 12 a * + 3 - :> m
@@ -133,7 +133,7 @@ CONSTANT: seconds-per-year 31556952
     y 4 /i + y 100 /i - y 400 /i + 32045 - ;
 
 :: julian-day-number>date ( n -- year month day )
-    #! Inverse of julian-day-number
+    ! Inverse of julian-day-number
     n 32044 + :> a
     4 a * 3 + 146097 /i :> b
     a 146097 b * 4 /i - :> c
@@ -204,7 +204,7 @@ GENERIC: +minute ( timestamp x -- timestamp )
 GENERIC: +second ( timestamp x -- timestamp )
 
 : /rem ( f n -- q r )
-    #! q is positive or negative, r is positive from 0 <= r < n
+    ! q is positive or negative, r is positive from 0 <= r < n
     [ / floor >integer ] 2keep rem ;
 
 : float>whole-part ( float -- int float )
@@ -295,8 +295,8 @@ M: duration time+
     ] if ;
 
 : duration>years ( duration -- x )
-    #! Uses average month/year length since duration loses calendar
-    #! data
+    ! Uses average month/year length since duration loses calendar
+    ! data
     0 swap
     {
         [ year>> + ]
@@ -351,7 +351,7 @@ M: timestamp <=> ( ts1 ts2 -- n )
     [ >time< [ [ 3600 * ] [ 60 * ] bi* ] dip + + ] bi@ - + ;
 
 M: timestamp time-
-    #! Exact calendar-time difference
+    ! Exact calendar-time difference
     (time-) seconds ;
 
 : time* ( obj1 obj2 -- obj3 )
@@ -420,9 +420,9 @@ M: duration time-
 : ago ( duration -- timestamp ) now swap time- ;
 
 : zeller-congruence ( year month day -- n )
-    #! Zeller Congruence
-    #! http://web.textfiles.com/computers/formulas.txt
-    #! good for any date since October 15, 1582
+    ! Zeller Congruence
+    ! http://web.textfiles.com/computers/formulas.txt
+    ! good for any date since October 15, 1582
     [
         dup 2 <= [ [ 1 - ] [ 12 + ] bi* ] when
         [ dup [ 4 /i + ] [ 100 /i - ] [ 400 /i + ] tri ] dip
index a7f2c589a03f8e81e1aba13d629d311d56576afe..35c7f032cec9e94b077f7c9bc95db874a92e817e 100644 (file)
@@ -111,8 +111,8 @@ M: timestamp year. ( timestamp -- )
     } case ;
 
 : timestamp>rfc822 ( timestamp -- str )
-    #! RFC822 timestamp format
-    #! Example: Tue, 15 Nov 1994 08:12:31 +0200
+    ! RFC822 timestamp format
+    ! Example: Tue, 15 Nov 1994 08:12:31 +0200
     [
         [ (timestamp>string) bl ]
         [ gmt-offset>> write-gmt-offset ]
@@ -126,8 +126,8 @@ M: timestamp year. ( timestamp -- )
     ] with-string-writer ;
 
 : timestamp>http-string ( timestamp -- str )
-    #! http timestamp format
-    #! Example: Tue, 15 Nov 1994 08:12:31 GMT
+    ! http timestamp format
+    ! Example: Tue, 15 Nov 1994 08:12:31 GMT
     >gmt timestamp>rfc822 ;
 
 : (timestamp>cookie-string) ( timestamp -- )
index 8aec6f593522951a37cf721e4660278891cee03b..b841a10695dfb5491ccbaaa165ba17151038b4d6 100644 (file)
@@ -17,9 +17,9 @@ IN: channels.examples
     [ from ] keep [ from ] keep from ;
 
 : filter ( send prime recv -- )
-    #! Receives numbers from the 'send' channel,
-    #! filters out all those divisible by 'prime',
-    #! and sends to the 'recv' channel.
+    ! Receives numbers from the 'send' channel,
+    ! filters out all those divisible by 'prime',
+    ! and sends to the 'recv' channel.
     [
         from swap dupd mod zero? not [ swap to ] [ 2drop ] if
     ] 3keep filter ;
@@ -32,7 +32,7 @@ IN: channels.examples
     prime newc (sieve) ;
 
 : sieve ( prime -- )
-    #! Send prime numbers to 'prime' channel
+    ! Send prime numbers to 'prime' channel
     <channel> dup [ counter ] curry "Counter" spawn drop
     (sieve) ;
 
index caef033ec6e999295bb1b1dd1329da6877186c2a..5feff8fd352a9636214d9b813f2bf519b44cf660 100644 (file)
@@ -4,11 +4,11 @@ USING: assocs checksums grouping kernel locals math sequences ;
 IN: checksums.interleave
 
 : seq>2seq ( seq -- seq1 seq2 )
-    #! { abcdefgh } -> { aceg } { bdfh }
+    ! { abcdefgh } -> { aceg } { bdfh }
     2 group flip [ { } { } ] [ first2 ] if-empty ;
 
 : 2seq>seq ( seq1 seq2 -- seq )
-    #! { aceg } { bdfh } -> { abcdefgh }
+    ! { aceg } { bdfh } -> { abcdefgh }
     [ zip concat ] keep like ;
 
 :: interleaved-checksum ( bytes checksum -- seq )
index 136102c78d346c45c0051e9c60e9929a51be1a48..71d60f3367dc04b7d24484fc65cb3bf95e917d72 100644 (file)
@@ -34,19 +34,19 @@ CONSTANT: T $[
 ]
 
 :: F ( X Y Z -- FXYZ )
-    #! F(X,Y,Z) = XY v not(X) Z
+    ! F(X,Y,Z) = XY v not(X) Z
     X Y bitand X bitnot Z bitand bitor ; inline
 
 :: G ( X Y Z -- GXYZ )
-    #! G(X,Y,Z) = XZ v Y not(Z)
+    ! G(X,Y,Z) = XZ v Y not(Z)
     X Z bitand Y Z bitnot bitand bitor ; inline
 
 : H ( X Y Z -- HXYZ )
-    #! H(X,Y,Z) = X xor Y xor Z
+    ! H(X,Y,Z) = X xor Y xor Z
     bitxor bitxor ; inline
 
 :: I ( X Y Z -- IXYZ )
-    #! I(X,Y,Z) = Y xor (X v not(Z))
+    ! I(X,Y,Z) = Y xor (X v not(Z))
     Z bitnot X bitor Y bitxor ; inline
 
 CONSTANT: S11 7
@@ -72,7 +72,7 @@ CONSTANT: c 2
 CONSTANT: d 3
 
 :: (ABCD) ( x state a b c d k s i quot -- )
-    #! a = b + ((a + F(b,c,d) + X[k] + T[i]) <<< s)
+    ! a = b + ((a + F(b,c,d) + X[k] + T[i]) <<< s)
     a state [
         b state nth-unsafe
         c state nth-unsafe
index 9eba3c94adc4fc2fc529364aa187b789ed6600c2..a634b326aa9212d20f786782429c6586f27466a4 100644 (file)
@@ -24,7 +24,7 @@ M: circular virtual@ circular-wrap seq>> ; inline
 M: circular virtual-exemplar seq>> ; inline
 
 : change-circular-start ( n circular -- )
-    #! change start to (start + n) mod length
+    ! change start to (start + n) mod length
     circular-wrap start<< ; inline
 
 : rotate-circular ( circular -- )
index 9bd24385f59ea603b28424f29d471815d816aa19..86cd1779169a3dcd6362773b3b8629d6a9bf5cee 100644 (file)
@@ -39,7 +39,7 @@ FUNCTION: void NSBeep ( )
     -> alloc -> init -> setDelegate: ;
 
 : running.app? ( -- ? )
-    #! Test if we're running a .app.
+    ! Test if we're running a .app.
     ".app"
     NSBundle -> mainBundle -> bundlePath CF>string
     subseq? ;
index 9243af28d2641161eef2ff516331260df3305714..fcc42fec224bd4de7c2dcfc3270907a39ec1c861 100644 (file)
@@ -30,14 +30,14 @@ SYMBOL: heap-ac
     acs>vregs get [ drop V{ } clone ] cache ;
 
 : vreg>ac ( vreg -- ac )
-    #! Only vregs produced by ##allot, ##peek and ##slot can
-    #! ever be used as valid inputs to ##slot and ##set-slot,
-    #! so we assert this fact by not giving alias classes to
-    #! other vregs.
+    ! Only vregs produced by ##allot, ##peek and ##slot can
+    ! ever be used as valid inputs to ##slot and ##set-slot,
+    ! so we assert this fact by not giving alias classes to
+    ! other vregs.
     vregs>acs get [ heap-ac get [ ac>vregs push ] keep ] cache ;
 
 : aliases ( vreg -- vregs )
-    #! All vregs which may contain the same value as vreg.
+    ! All vregs which may contain the same value as vreg.
     vreg>ac ac>vregs ;
 
 : each-alias ( vreg quot -- )
@@ -66,14 +66,14 @@ SYMBOL: dead-stores
 ERROR: vreg-not-new vreg ;
 
 :: set-ac ( vreg ac -- )
-    #! Set alias class of newly-seen vreg.
+    ! Set alias class of newly-seen vreg.
     vreg vregs>acs get key? [ vreg vreg-not-new ] when
     ac vreg vregs>acs get set-at
     vreg ac ac>vregs push ;
 
 : live-slot ( slot#/f vreg -- vreg' )
-    #! If the slot number is unknown, we never reuse a previous
-    #! value.
+    ! If the slot number is unknown, we never reuse a previous
+    ! value.
     over [ live-slots get at at ] [ 2drop f ] if ;
 
 : load-constant-slot ( value slot# vreg -- )
@@ -83,12 +83,12 @@ ERROR: vreg-not-new vreg ;
     over [ load-constant-slot ] [ 3drop ] if ;
 
 : record-constant-slot ( slot# vreg -- )
-    #! A load can potentially read every store of this slot#
-    #! in that alias class.
+    ! A load can potentially read every store of this slot#
+    ! in that alias class.
     [ recent-stores get at delete-at ] with each-alias ;
 
 : record-computed-slot ( vreg -- )
-    #! Computed load is like a load of every slot touched so far
+    ! Computed load is like a load of every slot touched so far
     [ recent-stores get at clear-assoc ] each-alias ;
 
 :: remember-slot ( value slot# vreg -- )
@@ -171,8 +171,8 @@ M: vreg-insn analyze-aliases
     def-acs ;
 
 M: allocation-insn analyze-aliases
-    #! A freshly allocated object is distinct from any other
-    #! object.
+    ! A freshly allocated object is distinct from any other
+    ! object.
     dup dst>> set-new-ac ;
 
 M: ##box-displaced-alien analyze-aliases
@@ -188,8 +188,8 @@ M: read-insn analyze-aliases
     if ;
 
 : idempotent? ( value slot#/f vreg -- ? )
-    #! Are we storing a value back to the same slot it was read
-    #! from?
+    ! Are we storing a value back to the same slot it was read
+    ! from?
     live-slot = ;
 
 M:: write-insn analyze-aliases ( insn -- insn )
@@ -207,8 +207,8 @@ M:: write-insn analyze-aliases ( insn -- insn )
     insn ;
 
 M: ##copy analyze-aliases
-    #! The output vreg gets the same alias class as the input
-    #! vreg, since they both contain the same value.
+    ! The output vreg gets the same alias class as the input
+    ! vreg, since they both contain the same value.
     dup record-copy ;
 
 : useless-compare? ( insn -- ? )
index fe2620d177a2f7c13a0ad8ba298b1d484dd72abc..87dc2e210c98fe7698c99a91d74bb19e06b2be38 100644 (file)
@@ -14,7 +14,7 @@ IN: compiler
 SYMBOL: compiled
 
 : compile? ( word -- ? )
-    #! Don't attempt to compile certain words.
+    ! Don't attempt to compile certain words.
     {
         [ "forgotten" word-prop ]
         [ inlined-block? ]
@@ -46,17 +46,17 @@ M: predicate-engine-word combinator? "owner-generic" word-prop combinator? ;
 M: word combinator? inline? ;
 
 : ignore-error? ( word error -- ? )
-    #! Ignore some errors on inline combinators, macros, and special
-    #! words such as 'call'.
+    ! Ignore some errors on inline combinators, macros, and special
+    ! words such as 'call'.
     {
         [ drop no-compile? ]
         [ [ combinator? ] [ unknown-macro-input? ] bi* and ]
     } 2|| ;
 
 : finish ( word -- )
-    #! Recompile callers if the word's stack effect changed, then
-    #! save the word's dependencies so that if they change, the
-    #! word can get recompiled too.
+    ! Recompile callers if the word's stack effect changed, then
+    ! save the word's dependencies so that if they change, the
+    ! word can get recompiled too.
     [ compiled-unxref ]
     [
         dup crossref? [
@@ -67,8 +67,8 @@ M: word combinator? inline? ;
     ] bi ;
 
 : deoptimize-with ( word def -- * )
-    #! If the word failed to infer, compile it with the
-    #! non-optimizing compiler.
+    ! If the word failed to infer, compile it with the
+    ! non-optimizing compiler.
     swap [ finish ] [ compiled get set-at ] bi return ;
 
 : not-compiled-def ( word error -- def )
@@ -86,10 +86,10 @@ M: word combinator? inline? ;
     2bi ;
 
 : deoptimize ( word error -- * )
-    #! If the error is ignorable, compile the word with the
-    #! non-optimizing compiler, using its definition. Otherwise,
-    #! if the compiler error is not ignorable, use a dummy
-    #! definition from 'not-compiled-def' which throws an error.
+    ! If the error is ignorable, compile the word with the
+    ! non-optimizing compiler, using its definition. Otherwise,
+    ! if the compiler error is not ignorable, use a dummy
+    ! definition from 'not-compiled-def' which throws an error.
     {
         { [ dup inference-error? not ] [ rethrow ] }
         { [ 2dup ignore-error? ] [ ignore-error ] }
@@ -106,8 +106,8 @@ M: word combinator? inline? ;
     dependencies get keys [ "break?" word-prop ] any? ;
 
 : frontend ( word -- tree )
-    #! If the word contains breakpoints, don't optimize it, since
-    #! the walker does not support this.
+    ! If the word contains breakpoints, don't optimize it, since
+    ! the walker does not support this.
     dup optimize? [
         [ [ build-tree ] [ deoptimize ] recover optimize-tree ] keep
         contains-breakpoints? [ nip deoptimize* ] [ drop ] if
@@ -124,8 +124,8 @@ M: word combinator? inline? ;
     ] each ;
 
 : compile-word ( word -- )
-    #! We return early if the word has breakpoints or if it
-    #! failed to infer.
+    ! We return early if the word has breakpoints or if it
+    ! failed to infer.
     '[
         _ {
             [ start ]
@@ -138,8 +138,8 @@ M: word combinator? inline? ;
 SINGLETON: optimizing-compiler
 
 M: optimizing-compiler update-call-sites ( class generic -- words )
-    #! Words containing call sites with inferred type 'class'
-    #! which inlined a method on 'generic'
+    ! Words containing call sites with inferred type 'class'
+    ! which inlined a method on 'generic'
     generic-call-sites-of keys swap '[
         _ 2dup [ valid-classoid? ] both?
         [ classes-intersect? ] [ 2drop f ] if
index 3e7092a53ae7dba49df0fb2238c875a37505d5e7..2596d641808fb15fffc7164694b40ba593fa8e85 100644 (file)
@@ -24,8 +24,8 @@ M: node delete-node drop ;
 GENERIC: cleanup-tree* ( node -- node/nodes )
 
 : cleanup-tree ( nodes -- nodes' )
-    #! We don't recurse into children here, instead the methods
-    #! do it since the logic is a bit more involved
+    ! We don't recurse into children here, instead the methods
+    ! do it since the logic is a bit more involved
     [ cleanup-tree* ] map-flat ;
 
 ! Constant folding
@@ -34,8 +34,8 @@ GENERIC: cleanup-tree* ( node -- node/nodes )
     [ f ] [ [ literal?>> ] all? ] if-empty ;
 
 : (cleanup-folding) ( #call -- nodes )
-    #! Replace a #call having a known result with a #drop of its
-    #! inputs followed by #push nodes for the outputs.
+    ! Replace a #call having a known result with a #drop of its
+    ! inputs followed by #push nodes for the outputs.
     [
         [ node-output-infos ] [ out-d>> ] bi
         [ [ literal>> ] dip <#push> ] 2map
@@ -114,8 +114,8 @@ M: #call cleanup-tree*
     ] change-children drop ;
 
 : fold-only-branch ( #branch -- node/nodes )
-    #! If only one branch is live we don't need to branch at
-    #! all; just drop the condition value.
+    ! If only one branch is live we don't need to branch at
+    ! all; just drop the condition value.
     dup live-children sift dup length {
         { 0 [ drop in-d>> <#drop> ] }
         { 1 [ first swap in-d>> <#drop> prefix ] }
@@ -152,7 +152,7 @@ M: #branch cleanup-tree*
     } case ;
 
 M: #phi cleanup-tree*
-    #! Remove #phi function inputs which no longer exist.
+    ! Remove #phi function inputs which no longer exist.
     live-branches get
     [ '[ _ sift-children ] change-phi-in-d ]
     [ '[ _ sift-children ] change-phi-info-d ]
@@ -163,14 +163,14 @@ M: #phi cleanup-tree*
 : >copy ( node -- #copy ) [ in-d>> ] [ out-d>> ] bi <#copy> ;
 
 : flatten-recursive ( #recursive -- nodes )
-    #! convert #enter-recursive and #return-recursive into
-    #! #copy nodes.
+    ! convert #enter-recursive and #return-recursive into
+    ! #copy nodes.
     child>>
     unclip >copy prefix
     unclip-last >copy suffix ;
 
 M: #recursive cleanup-tree*
-    #! Inline bodies of #recursive blocks with no calls left.
+    ! Inline bodies of #recursive blocks with no calls left.
     [ cleanup-tree ] change-child
     dup label>> calls>> empty? [ flatten-recursive ] when ;
 
index 90d96f952e01dbb302cd5c74fde07484475c30a0..fc03c8575677471d511789997e8ef5df7391036c 100644 (file)
@@ -14,8 +14,8 @@ M: #dispatch mark-live-values* look-at-inputs ;
     [ index ] dip swap [ <column> look-at-values ] [ drop ] if* ;
 
 M: #phi compute-live-values*
-    #! If any of the outputs of a #phi are live, then the
-    #! corresponding inputs are live too.
+    ! If any of the outputs of a #phi are live, then the
+    ! corresponding inputs are live too.
     [ out-d>> ] [ phi-in-d>> ] bi look-at-phi ;
 
 SYMBOL: if-node
index c1ea77073328a829375706c3e1732608d9a97992..0e32cd33890e666dcd7e86d9f3e3ff55c0e979e4 100644 (file)
@@ -8,16 +8,16 @@ stack-checker.backend ;
 IN: compiler.tree.dead-code.recursive
 
 M: #enter-recursive compute-live-values*
-    #! If the output of an #enter-recursive is live, then the
-    #! corresponding inputs to the #call-recursive are live also.
+    ! If the output of an #enter-recursive is live, then the
+    ! corresponding inputs to the #call-recursive are live also.
     [ out-d>> ] [ recursive-phi-in ] bi look-at-phi ;
 
 M: #return-recursive compute-live-values*
     [ out-d>> ] [ in-d>> ] bi look-at-mapping ;
 
 M: #call-recursive compute-live-values*
-    #! If the output of a #call-recursive is live, then the
-    #! corresponding inputs to #return nodes are live also.
+    ! If the output of a #call-recursive is live, then the
+    ! corresponding inputs to #return nodes are live also.
     [ out-d>> ] [ label>> return>> in-d>> ] bi look-at-mapping ;
 
 :: drop-dead-inputs ( inputs outputs -- #shuffle )
index d0bbbc47dbef332b60b7f8eb38b02ee1fbda8d5b..55a2137b6834c1620b40e759f0d72120b8b76705 100644 (file)
@@ -26,8 +26,8 @@ M: #return mark-live-values* look-at-inputs ;
     [ index ] dip over [ nth look-at-value ] [ 2drop ] if ;
 
 M: #copy compute-live-values*
-    #! If the output of a copy is live, then the corresponding
-    #! input is live also.
+    ! If the output of a copy is live, then the corresponding
+    ! input is live also.
     [ out-d>> ] [ in-d>> ] bi look-at-mapping ;
 
 M: #call compute-live-values* nip look-at-inputs ;
@@ -41,8 +41,8 @@ M: #alien-node compute-live-values* nip look-at-inputs ;
     live-values get '[ drop _ key? ] assoc-filter ;
 
 : filter-corresponding ( new old -- old' )
-    #! Remove elements from 'old' if the element with the same
-    #! index in 'new' is dead.
+    ! Remove elements from 'old' if the element with the same
+    ! index in 'new' is dead.
     zip filter-mapping values ;
 
 : filter-live ( values -- values' )
index 26e019e88477817a233890cbe1bc1cf78dec2e6e..0fa30bb822dfbb3b95a21696c023f70167fad26c 100644 (file)
@@ -53,7 +53,7 @@ M: #recursive escape-analysis* ( #recursive -- )
     ] bi ;
 
 M: #enter-recursive escape-analysis* ( #enter-recursive -- )
-    #! Handled by #recursive
+    ! Handled by #recursive
     drop ;
 
 M: #call-recursive escape-analysis* ( #call-label -- )
index b4d38908a4b79a913ef3428ff0b2d25352f15aca..46ab98c977efe985f4f2851a1fa63e0e44af9ca9 100644 (file)
@@ -9,9 +9,9 @@ SYMBOL: introductions
 GENERIC: count-introductions* ( node -- )
 
 : count-introductions ( nodes -- n )
-    #! Note: we use each, not each-node, since the #branch
-    #! method recurses into children directly and we don't
-    #! recurse into #recursive at all.
+    ! Note: we use each, not each-node, since the #branch
+    ! method recurses into children directly and we don't
+    ! recurse into #recursive at all.
     [
         0 introductions set
         [ count-introductions* ] each
index 1705c4411af634ac31f00577b81bda3d9f70e98a..9d1ba98e4af59d28ca3285781b97db6b376e432a 100644 (file)
@@ -34,8 +34,8 @@ CONSTANT: null-info T{ value-info-state f null empty-interval }
 CONSTANT: object-info T{ value-info-state f object full-interval }
 
 : interval>literal ( class interval -- literal literal? )
-    #! If interval has zero length and the class is sufficiently
-    #! precise, we can turn it into a literal
+    ! If interval has zero length and the class is sufficiently
+    ! precise, we can turn it into a literal
     dup special-interval? [
         2drop f f
     ] [
@@ -60,7 +60,7 @@ DEFER: <literal-info>
 UNION: fixed-length array byte-array string ;
 
 : literal-class ( obj -- class )
-    #! Handle forgotten tuples and singleton classes properly
+    ! Handle forgotten tuples and singleton classes properly
     dup singleton-class? [
         class-of dup class? [
             drop tuple
index 05ad2aeed34afdad7cdedfa55a2e735ac909d6f7..3e105445edf0bb7dcccb0f9c25a982bf68275f6a 100644 (file)
@@ -42,9 +42,9 @@ M: anonymous-intersection add-depends-on-class
     participants>> [ add-depends-on-class ] each ;
 
 M: #declare propagate-before
-    #! We need to force the caller word to recompile when the
-    #! classes mentioned in the declaration are redefined, since
-    #! now we're making assumptions about their definitions.
+    ! We need to force the caller word to recompile when the
+    ! classes mentioned in the declaration are redefined, since
+    ! now we're making assumptions about their definitions.
     declaration>> [
         [ add-depends-on-class ]
         [ <class-info> swap refine-value-info ]
@@ -121,9 +121,9 @@ ERROR: invalid-outputs #call infos ;
     if ;
 
 : propagate-predicate ( #call word -- infos )
-    #! We need to force the caller word to recompile when the class
-    #! is redefined, since now we're making assumptions but the
-    #! class definition itself.
+    ! We need to force the caller word to recompile when the class
+    ! is redefined, since now we're making assumptions but the
+    ! class definition itself.
     [ in-d>> first value-info ]
     [ "predicating" word-prop ] bi*
     [ nip add-depends-on-conditionally ]
index f9955de70506dcf2534db78b980734eb5737856b..bde048825a9e07e2bbccb0d73ccf8d8cafb552fe 100644 (file)
@@ -51,13 +51,13 @@ IN: compiler.tree.propagation.slots
     dup [ read-only>> ] when ;
 
 : literal-info-slot ( slot object -- info/f )
-    #! literal-info-slot makes an unsafe call to 'slot'.
-    #! Check that the layout is up to date to avoid accessing the
-    #! wrong slot during a compilation unit where reshaping took
-    #! place. This could happen otherwise because the "slots" word
-    #! property would reflect the new layout, but instances in the
-    #! heap would use the old layout since instances are updated
-    #! immediately after compilation.
+    ! literal-info-slot makes an unsafe call to 'slot'.
+    ! Check that the layout is up to date to avoid accessing the
+    ! wrong slot during a compilation unit where reshaping took
+    ! place. This could happen otherwise because the "slots" word
+    ! property would reflect the new layout, but instances in the
+    ! heap would use the old layout since instances are updated
+    ! immediately after compilation.
     {
         [ class-of read-only-slot? ]
         [ nip layout-up-to-date? ]
index e95939b378f170679b34fee74c21e50accc86fae..0d566228d1a83fe04834107eeaf9e95e62e2a244 100644 (file)
@@ -246,7 +246,7 @@ ERROR: bad-partial-eval quot word ;
 CONSTANT: lookup-table-at-max 256
 
 : lookup-table-at? ( assoc -- ? )
-    #! Can we use a fast byte array test here?
+    ! Can we use a fast byte array test here?
     {
         [ assoc-size 4 > ]
         [ values [ ] all? ]
index 808b3c32bd28285d8180f5f96f68ee962b942498..a5766a2842d42c9e8aa7ba093a3a266205fba8e2 100644 (file)
@@ -67,7 +67,7 @@ M: #call unbox-tuples*
     } case ;
 
 M: #declare unbox-tuples*
-    #! We don't look at declarations after escape analysis anyway.
+    ! We don't look at declarations after escape analysis anyway.
     drop f ;
 
 M: #copy unbox-tuples*
index 48a685efda4074b2c86bd7032c5edaac15de243e..f41303d4edb6d37235d787e04e6b7ced95c5bbef 100644 (file)
@@ -10,8 +10,8 @@ IN: concurrency.conditions
     [ resume-now ] slurp-deque ; inline
 
 : queue-timeout ( queue timeout -- timer )
-    #! Add an timer which removes the current thread from the
-    #! queue, and resumes it, passing it a value of t.
+    ! Add an timer which removes the current thread from the
+    ! queue, and resumes it, passing it a value of t.
     [
         [ self swap push-front* ] keep '[
             _ _
index f1945db0843b942d0a35c72d3d0fff040e4b16f8..9e56c0425309ffee69d39e5d9dc8cfe5f9459f39 100644 (file)
@@ -85,14 +85,14 @@ TUPLE: rw-lock readers writers reader# writer ;
     [ notify-writer ] [ readers>> notify-all ] if ;
 
 : reentrant-read-lock-ok? ( lock -- ? )
-    #! If we already have a write lock, then we can grab a read
-    #! lock too.
+    ! If we already have a write lock, then we can grab a read
+    ! lock too.
     writer>> self eq? ;
 
 : reentrant-write-lock-ok? ( lock -- ? )
-    #! The only case where we have a writer and > 1 reader is
-    #! write -> read re-entrancy, and in this case we prohibit
-    #! a further write -> read -> write re-entrancy.
+    ! The only case where we have a writer and > 1 reader is
+    ! write -> read re-entrancy, and in this case we prohibit
+    ! a further write -> read -> write re-entrancy.
     { [ writer>> self eq? ] [ reader#>> zero? ] } 1&& ;
 
 PRIVATE>
index dcc0eda527974bb816e58ba0bc8c537fc09918b6..ce384bb0d016e151a367d98920f76545b1f03ac0 100755 (executable)
@@ -189,16 +189,16 @@ M: x86.32 %end-callback ( -- )
     "end_callback" f f %c-invoke ;
 
 : funny-large-struct-return? ( return abi -- ? )
-    #! MINGW ABI incompatibility disaster
+    ! MINGW ABI incompatibility disaster
     [ large-struct? ] [ mingw eq? os windows? not or ] bi* and ;
 
 M: x86.32 %prepare-var-args ( -- ) ;
 
 M:: x86.32 stack-cleanup ( stack-size return abi -- n )
-    #! a) Functions which are stdcall/fastcall/thiscall have to
-    #! clean up the caller's stack frame.
-    #! b) Functions returning large structs on MINGW have to
-    #! fix ESP.
+    ! a) Functions which are stdcall/fastcall/thiscall have to
+    ! clean up the caller's stack frame.
+    ! b) Functions returning large structs on MINGW have to
+    ! fix ESP.
     {
         { [ abi callee-cleanup? ] [ stack-size ] }
         { [ return abi funny-large-struct-return? ] [ 4 ] }
index 6426af85cdd14b62b6abcdb969be0a9bf3b1b3f5..b452b48f7f977dae5d8aad591c001343574005e6 100644 (file)
@@ -116,7 +116,7 @@ M: register displacement, drop ;
     and and ;
 
 :: rex-prefix ( reg r/m rex.w -- )
-    #! Compile an AMD64 REX prefix.
+    ! Compile an AMD64 REX prefix.
     rex.w reg r/m rex.w? 0b01001000 0b01000000 ?
     reg rex.r
     r/m rex.b
@@ -129,8 +129,8 @@ M: register displacement, drop ;
     [ drop 16-prefix ] [ [ f ] 2dip rex-prefix ] 2bi ;
 
 : short-operand ( reg rex.w n -- )
-    #! Some instructions encode their single operand as part of
-    #! the opcode.
+    ! Some instructions encode their single operand as part of
+    ! the opcode.
     [ dupd prefix-1 reg-code ] dip + , ;
 
 : opcode, ( opcode -- ) dup array? [ % ] [ , ] if ;
@@ -145,8 +145,8 @@ M: register displacement, drop ;
     [ [ unclip-last ] dip bitor suffix ] [ bitor ] if ;
 
 : 1-operand ( operand reg,rex.w,opcode -- )
-    #! The 'reg' is not really a register, but a value for the
-    #! 'reg' field of the mod-r/m byte.
+    ! The 'reg' is not really a register, but a value for the
+    ! 'reg' field of the mod-r/m byte.
     first3 [ [ over ] dip prefix-1 ] dip opcode, swap addressing ;
 
 : immediate-operand-size-bit ( dst imm reg,rex.w,opcode -- imm dst reg,rex.w,opcode )
@@ -165,10 +165,10 @@ M: register displacement, drop ;
     over integer? [ first3 0b10 opcode-or 3array ] when ;
 
 : immediate-1/4 ( dst imm reg,rex.w,opcode -- )
-    #! If imm is a byte, compile the opcode and the byte.
-    #! Otherwise, set the 8-bit operand flag in the opcode, and
-    #! compile the cell. The 'reg' is not really a register, but
-    #! a value for the 'reg' field of the mod-r/m byte.
+    ! If imm is a byte, compile the opcode and the byte.
+    ! Otherwise, set the 8-bit operand flag in the opcode, and
+    ! compile the cell. The 'reg' is not really a register, but
+    ! a value for the 'reg' field of the mod-r/m byte.
     over fits-in-byte? [
         immediate-fits-in-size-bit immediate-1
     ] [
index 2a2faa4039911995af8fbe9884a9dc9eb6838729..ecdc00247529782b8c05c46ecd8442389253f768 100644 (file)
@@ -59,7 +59,7 @@ M: indirect extended? base>> extended? ;
     [ f >>displacement ] when ;
 
 : canonicalize-EBP ( indirect -- indirect )
-    #! { EBP } ==> { EBP 0 }
+    ! { EBP } ==> { EBP 0 }
     dup [ base>> { EBP RBP R13 } member? ] [ displacement>> not ] bi and
     [ 0 >>displacement ] when ;
 
@@ -69,8 +69,8 @@ ERROR: bad-index indirect ;
     dup index>> { ESP RSP } member-eq? [ bad-index ] when ;
 
 : canonicalize ( indirect -- indirect )
-    #! Modify the indirect to work around certain addressing mode
-    #! quirks.
+    ! Modify the indirect to work around certain addressing mode
+    ! quirks.
     canonicalize-displacement canonicalize-EBP check-ESP ;
 
 ! Utilities
index 0c5ea12907880cba8b409b7efa11a17e7f175f53..5303aa14bf931cd5fa2b52b5c901f5f8336f1ba8 100644 (file)
@@ -104,7 +104,7 @@ M: x86 %inc ( loc -- )
 M: x86 %call ( word -- ) 0 CALL rc-relative rel-word-pic ;
 
 : xt-tail-pic-offset ( -- n )
-    #! See the comment in vm/cpu-x86.hpp
+    ! See the comment in vm/cpu-x86.hpp
     4 1 + ; inline
 
 HOOK: %prepare-jump cpu ( -- )
@@ -617,10 +617,10 @@ M:: x86 %local-allot ( dst size align offset -- )
     dst offset local-allot-offset special-offset stack@ LEA ;
 
 : next-stack@ ( n -- operand )
-    #! nth parameter from the next stack frame. Used to box
-    #! input values to callbacks; the callback has its own
-    #! stack frame set up, and we want to read the frame
-    #! set up by the caller.
+    ! nth parameter from the next stack frame. Used to box
+    ! input values to callbacks; the callback has its own
+    ! stack frame set up, and we want to read the frame
+    ! set up by the caller.
     [ frame-reg ] dip 2 cells + reserved-stack-space + [+] ;
 
 : return-reg ( rep -- reg )
@@ -686,9 +686,9 @@ M: x86 %callback-outputs ( reg-inputs -- )
 M: x86 %loop-entry 16 alignment [ NOP ] times ;
 
 M:: x86 %save-context ( temp1 temp2 -- )
-    #! Save Factor stack pointers in case the C code calls a
-    #! callback which does a GC, which must reliably trace
-    #! all roots.
+    ! Save Factor stack pointers in case the C code calls a
+    ! callback which does a GC, which must reliably trace
+    ! all roots.
     temp1 %context
     temp2 stack-reg cell neg [+] LEA
     temp1 "callstack-top" context-field-offset [+] temp2 MOV
index fb3a7e107a22526a8678c965adb7d734071de7cd..3fcc32996f5c533d3d6edf66244c7fc42a95c803 100644 (file)
@@ -47,7 +47,7 @@ M: retryable execute-statement* ( statement type -- )
     [ db-columns ] [ db-table-name ] bi ;
 
 : query-make ( class quot -- statements )
-    #! query, input, outputs, secondary queries
+    ! query, input, outputs, secondary queries
     over db-table-name "table-name" set
     [ sql-props ] dip
     [ 0 sql-counter rot with-variable ] curry
index 1f954688be77606ece8487dc03781e5c986e708d..b36edc29203a277e22f9f58cb7fc4cffdda02762 100644 (file)
@@ -117,7 +117,7 @@ ERROR: sqlite-sql-error < sql-error n string ;
     } case ;
 
 : sqlite-bind-type ( handle key value type -- )
-    #! null and empty values need to be set by sqlite-bind-null-by-name
+    ! null and empty values need to be set by sqlite-bind-null-by-name
     over [
         NULL = [ 2drop NULL NULL ] when
     ] [
index deecef8848d99880e1bb0570188d560157b5ed36..fc7f826bc4e9c24fe9c69a0d2443deb7260a54ab 100644 (file)
@@ -55,7 +55,7 @@ CHLOE: atom
 CHLOE: write-atom drop [ write-atom-feeds ] [code] ;
 
 : compile-link-attrs ( tag -- )
-    #! Side-effects current namespace.
+    ! Side-effects current namespace.
     '[ [ [ _ ] dip link-attr ] each-responder ] [code] ;
 
 : process-attrs ( assoc -- newassoc )
index 57a6919ae92459fa6ece6c9b143b14fea224f5a3..7bf2e35ef6fe9eb5e718a9e5f7f8cd4627340680 100644 (file)
@@ -92,7 +92,7 @@ M: object modify-form drop f ;
 CONSTANT: nested-forms-key "__n"
 
 : referrer ( -- referrer/f )
-    #! Typo is intentional, it's in the HTTP spec!
+    ! Typo is intentional, it's in the HTTP spec!
     request get "referer" header
     dup [ >url ensure-port [ remap-port ] change-port ] when ;
 
index 61b16ab746970726acbd010343fba14948c662d3..d5c559268303ed7ea180680658dee3191cf7ea23 100644 (file)
@@ -136,7 +136,7 @@ ALIAS: $slot $snippet
     ] ($code) ;
 
 : $unchecked-example ( element -- )
-    #! help-lint ignores these.
+    ! help-lint ignores these.
     $example ;
 
 : $markup-example ( element -- )
index a68db36f4f7cb0b18fda87a3094ad1c002c3f8ba..256fd5950dd8ac2cd64e976dbf2f3043b5d05fb4 100644 (file)
@@ -65,7 +65,7 @@ TUPLE: password size ;
     password new ;
 
 M: password render*
-    #! Don't send passwords back to the user
+    ! Don't send passwords back to the user
     [ drop "" ] 2dip size>> "password" render-field ;
 
 ! Text areas
index d1b99686406e4f4e2a7bba9e7d200b9835b1571d..9e1f6377cda35db42e6610b804b2ea7bf10b814b 100644 (file)
@@ -32,7 +32,7 @@ CONSTANT: max-redirects 10
     } cond ;
 
 : check-header-string ( str -- str )
-    #! http://en.wikipedia.org/wiki/HTTP_Header_Injection
+    ! http://en.wikipedia.org/wiki/HTTP_Header_Injection
     dup "\r\n" intersects?
     [ "Header injection attack" throw ] when ;
 
index 2a5b77874a43f678dbd15e2b1625473a294ebcd4..734e48e3fe7317d488afba7921c87f33f82a4307 100644 (file)
@@ -67,7 +67,7 @@ IN: http.parsers
     ] seq* [ "1.0" suffix! ] action ;
 
 PEG: parse-request-line ( string -- triple )
-    #! Triple is { method url version }
+    ! Triple is { method url version }
     full-request-parser simple-request-parser 2array choice ;
 
 : text-parser ( -- parser )
@@ -80,7 +80,7 @@ PEG: parse-request-line ( string -- triple )
     text-parser repeat0 case-sensitive ;
 
 PEG: parse-response-line ( string -- triple )
-    #! Triple is { version code message }
+    ! Triple is { version code message }
     [
         space-parser ,
         http-version-parser ,
@@ -120,8 +120,8 @@ PEG: parse-response-line ( string -- triple )
     2choice ;
 
 PEG: parse-header-line ( string -- pair )
-    #! Pair is either { name value } or { f value }. If f, its a
-    #! continuation of the previous header line.
+    ! Pair is either { name value } or { f value }. If f, its a
+    ! continuation of the previous header line.
     [
         field-name-parser ,
         space-parser ,
index 40e512a060fd0f102e68c71efbec8f28ce008832..0299f0118d84b1a3bc7bf1b80ae02a1e1e494c23 100644 (file)
@@ -7,7 +7,7 @@ math.parser fry urls urls.encoding calendar make ;
 IN: http.server.cgi
 
 : cgi-variables ( script-path -- assoc )
-    #! This needs some work.
+    ! This needs some work.
     [
         "CGI/1.0" "GATEWAY_INTERFACE" ,,
         "HTTP/" request get version>> append "SERVER_PROTOCOL" ,,
index 9ad1a043933b9d961f9697b2431b46f41d888b8e..d074fe4fcded5fbbb3bd79a099f9531de8e13faa 100644 (file)
@@ -57,8 +57,8 @@ GENERIC: write-full-response ( request response -- )
     ] change-domain ;
 
 : write-response-header ( response -- response )
-    #! We send one set-cookie header per cookie, because that's
-    #! what Firefox expects.
+    ! We send one set-cookie header per cookie, because that's
+    ! what Firefox expects.
     dup header>> >alist >vector
     over unparse-content-type "content-type" pick set-at
     over cookies>> [
index 5e6050bb323edb82b593ef76e91a125b7dd06b82..eaeed3cf51710dcf27f90ad3b88b79dbd15cf854 100644 (file)
@@ -100,7 +100,7 @@ PRIVATE>
 : &rename ( key n -- ) key@ mirror get rename-at &push reinspect ;
 
 : &help ( -- )
-    #! A tribute to Slate:
+    ! A tribute to Slate:
     "You are in a twisty little maze of objects, all alike." print
     nl
     "'n' is a slot number in the following:" print
index 54bf32480025c14416a0eef7ccadcab617f6821e..c0466cf3ba830fe8c73b316256d040ff4d83131f 100644 (file)
@@ -197,7 +197,7 @@ CONSTANT: ALL-EXECUTE   0o0000111
 PRIVATE>
 
 : set-file-times ( path timestamps -- )
-    #! set access, write
+    ! set access, write
     [ normalize-path ] dip
     timestamps>byte-array [ utimes ] unix-system-call drop ;
 
index fc651c366b8480bc9d374a593e670e0a14aea6a2..db85c22bd64dab76fb90416f6a76ce37d2568813 100755 (executable)
@@ -224,7 +224,7 @@ M: windows file-systems ( -- array )
     ] with-destructors ;
 
 : set-file-times ( path timestamp/f timestamp/f timestamp/f -- )
-    #! timestamp order: creation access write
+    ! timestamp order: creation access write
     [
         [
             normalize-path open-existing &dispose handle>>
index cb7e92ce631b2bb65656fc411db8d4a946da70b7..222f96ac310849b49bce64f31225f31bb9b90f1c 100755 (executable)
@@ -253,7 +253,7 @@ M: windows init-stdio
     f CreateFileW dup win32-error=0/f <win32-file> ;
 
 : maybe-create-file ( path -- win32-file ? )
-    #! return true if file was just created
+    ! return true if file was just created
     flags{ GENERIC_READ GENERIC_WRITE }
     share-mode
     f
index a2db855881ca86f0caa1078b70e179ebb00e9bc3..867de0ca83539e787364353377dd514db3ba0c6b 100755 (executable)
@@ -148,8 +148,8 @@ M: windows (kill-process) ( process -- )
     handle>> hProcess>> 255 TerminateProcess win32-error=0/f ;
 
 : dispose-process ( process-information -- )
-    #! From MSDN: "Handles in PROCESS_INFORMATION must be closed
-    #! with CloseHandle when they are no longer needed."
+    ! From MSDN: "Handles in PROCESS_INFORMATION must be closed
+    ! with CloseHandle when they are no longer needed."
     [ hProcess>> [ CloseHandle drop ] when* ]
     [ hThread>> [ CloseHandle drop ] when* ] bi ;
 
index b0c86a215f76aa016ac48695a51aa6f467abfe25..cede5d52e713f3d5d2289b797c8ef3fb12cc8403 100755 (executable)
@@ -19,7 +19,7 @@ DEFER: add-child-monitor
     monitor tget path>> prepend-path ;
 
 : add-child-monitors ( path -- )
-    #! We yield since this directory scan might take a while.
+    ! We yield since this directory scan might take a while.
     dup [
         [ append-path ] with map
         [ add-child-monitor ] each yield
index 084cd5ded9f5739cfb000f9b77f357e249e951f6..8ccc61a63afbdd322b71e9d89da0cb942f3903bf 100644 (file)
@@ -32,10 +32,10 @@ M: secure (accept)
     ] with-destructors ;
 
 : check-shutdown-response ( handle r -- event )
-    #! We don't do two-step shutdown here because I couldn't
-    #! figure out how to do it with non-blocking BIOs. Also, it
-    #! seems that SSL_shutdown always returns 0 -- this sounds
-    #! like a bug
+    ! We don't do two-step shutdown here because I couldn't
+    ! figure out how to do it with non-blocking BIOs. Also, it
+    ! seems that SSL_shutdown always returns 0 -- this sounds
+    ! like a bug
     over handle>> over SSL_get_error
     {
         { SSL_ERROR_NONE [ 2drop f ] }
index ddc5974bdedaf3abd12d121e167817b97701c8eb..fc1a55fc00b4a3d5245cec3eb6693676091f015f 100644 (file)
@@ -27,9 +27,9 @@ M: duplex-stream set-timeout
     >duplex-stream< [ set-timeout ] bi-curry@ bi ;
 
 M: duplex-stream dispose
-    #! The output stream is closed first, in case both streams
-    #! are attached to the same file descriptor, the output
-    #! buffer needs to be flushed before we close the fd.
+    ! The output stream is closed first, in case both streams
+    ! are attached to the same file descriptor, the output
+    ! buffer needs to be flushed before we close the fd.
     [ >duplex-stream< [ &dispose drop ] bi@ ] with-destructors ;
 
 : <encoder-duplex> ( stream-in stream-out encoding -- duplex )
index 9795b993e18de433da475498372fd46e027e698d..2d5e4ca4c62e3e1a26940e518bc17eacb7acc79c 100644 (file)
@@ -28,7 +28,7 @@ GENERIC# stream-json-print 1 ( obj stream -- )
     output-stream get stream-json-print ;
 
 : >json ( obj -- string )
-    #! Returns a string representing the factor object in JSON format
+    ! Returns a string representing the factor object in JSON format
     [ json-print ] with-string-writer ;
 
 M: f stream-json-print
index bd4bedad6a4f53f76fb61aadb3ba376e56e828f2..ac72801d91fc1cafc197e1a79e3f6a9ef8085d6b 100644 (file)
@@ -5,8 +5,8 @@ prettyprint.custom prettyprint.sections sequences words ;
 IN: locals.prettyprint
 
 : pprint-var ( var -- )
-    #! Prettyprint a read/write local as its writer, just like
-    #! in the input syntax: [| x! | ... x 3 + x! ]
+    ! Prettyprint a read/write local as its writer, just like
+    ! in the input syntax: [| x! | ... x 3 + x! ]
     dup local-reader? [
         "local-writer" word-prop
     ] when pprint-word ;
index b0f1426bec6fe20a7138b9229972e8af55718f15..cb17b3be62532c52ea1eb481a4b26f6d4addea11 100644 (file)
@@ -44,8 +44,8 @@ M: quotation uses-vars* [ uses-vars* ] each ;
     [ uses-vars ] [ defs-vars ] bi diff ;
 
 M: callable rewrite-closures*
-    #! Turn free variables into bound variables, curry them
-    #! onto the body
+    ! Turn free variables into bound variables, curry them
+    ! onto the body
     dup free-vars [ <quote> ] map
     [ % ]
     [ var-defs prepend (rewrite-closures) point-free , ]
index a930765b7cea34b8223498cef1298b19eba462c2..1c2c27a067daa4f04662929a59d2cfcd3dfac554 100644 (file)
@@ -29,7 +29,7 @@ C: <multi-def> multi-def
 PREDICATE: local < word "local?" word-prop ;
 
 : <local> ( name -- word )
-    #! Create a local variable identifier
+    ! Create a local variable identifier
     f <word>
     dup t "local?" set-word-prop ;
 
index 7b2d8205ca4e8b54ec9e4da855f1cd17d20868a2..9d0d4abd3a869800da7b4030b414be39618fa59a 100644 (file)
@@ -137,7 +137,7 @@ PRIVATE>
     (define-logging) ;
 
 SYNTAX: LOG:
-    #! Syntax: name level
+    ! Syntax: name level
     scan-new-word dup scan-word
     '[ 1array stack>message _ _ log-message ]
     ( message -- ) define-declared ;
index 4497b85dbbfe7c0d81d68b1716913eed1ef67890..b9d8cf78f171eb2088548011698c78cfee768db5 100644 (file)
@@ -52,7 +52,7 @@ SYMBOL: log-files
     ] unless-empty ;
 
 : (log-message) ( msg -- )
-    #! msg: { msg word-name level service }
+    ! msg: { msg word-name level service }
     first4 log-stream [ write-message flush ] with-output-stream* ;
 
 : try-dispose ( obj -- )
index 22e07db9844cb13a90636e87696d691e9133b2c4..640f28be7b60eaf7202607561eb67b7e7d9a02cb 100644 (file)
@@ -11,7 +11,7 @@ M: real sqrt
     [ neg fsqrt [ 0.0 ] dip rect> ] [ fsqrt ] if ; inline
 
 : factor-2s ( n -- r s )
-    #! factor an integer into 2^r * s
+    ! factor an integer into 2^r * s
     dup 0 = [ 1 ] [
         [ 0 ] dip [ dup even? ] [ [ 1 + ] [ 2/ ] bi* ] while
     ] if ; inline
index 065c01dfa8ab1c5cd1bfaf31524a9ca1c28002f5..0b3f31d679525fcbe0733698ecf94fe1ab537842 100644 (file)
@@ -221,7 +221,7 @@ MEMO: array-capacity-interval ( -- interval )
     ] dip [ 2drop [-inf,inf] ] if ; inline
 
 : interval-shift ( i1 i2 -- i3 )
-    #! Inaccurate; could be tighter
+    ! Inaccurate; could be tighter
     [
         [
             [ interval-closure ] bi@
@@ -274,8 +274,8 @@ MEMO: array-capacity-interval ( -- interval )
     [ [ [ / ] interval-op nan-not-ok ] interval-division-op ] do-empty-interval ;
 
 : interval/-safe ( i1 i2 -- i3 )
-    #! Just a hack to make the compiler work if bootstrap.math
-    #! is not loaded.
+    ! Just a hack to make the compiler work if bootstrap.math
+    ! is not loaded.
     \ integer \ / ?lookup-method [ interval/ ] [ 2drop f ] if ;
 
 : interval/i ( i1 i2 -- i3 )
@@ -387,7 +387,7 @@ SYMBOL: incomparable
     from>> first 0 >= ;
 
 : interval-bitand ( i1 i2 -- i3 )
-    #! Inaccurate.
+    ! Inaccurate.
     [
         {
             {
@@ -403,7 +403,7 @@ SYMBOL: incomparable
     ] do-empty-interval ;
 
 : interval-bitor ( i1 i2 -- i3 )
-    #! Inaccurate.
+    ! Inaccurate.
     [
         2dup [ interval-nonnegative? ] both?
         [
@@ -413,7 +413,7 @@ SYMBOL: incomparable
     ] do-empty-interval ;
 
 : interval-bitxor ( i1 i2 -- i3 )
-    #! Inaccurate.
+    ! Inaccurate.
     interval-bitor ;
 
 : interval-log2 ( i1 -- i2 )
index 021e0867459d200b969ca63d6e5de34e7eef8602..73c46730a22b5e8135f8b6308d70a1c49fca528f 100644 (file)
@@ -24,7 +24,7 @@ SYMBOL: matrix
     over [ find-from drop ] dip swap [ nip ] [ length ] if* ; inline
 
 : first-col ( row# -- n )
-    #! First non-zero column
+    ! First non-zero column
     0 swap nth-row [ zero? not ] skip ;
 
 : clear-scale ( col# pivot-row i-row -- n )
index a31da06a1a5caecf30f5b91805a1a8eb9e91e536..fc25c01a06825b6959cc5acfef330ebeb763aecd 100644 (file)
@@ -61,7 +61,7 @@ PRIVATE>
 <PRIVATE
 
 :: ((kth-object)) ( seq k nth-quot exchange-quot quot: ( x y -- ? ) -- elt )
-    #! Wirth's method, Algorithm's + Data structues = Programs p. 84
+    ! Wirth's method, Algorithm's + Data structues = Programs p. 84
     k seq bounds-check 2drop
     0 :> i!
     0 :> j!
@@ -90,7 +90,7 @@ PRIVATE>
     k seq nth-unsafe ; inline
 
 : (kth-object) ( seq k nth-quot exchange-quot quot: ( x y -- ? ) -- elt )
-    #! The algorithm modifiers seq, so we clone it
+    ! The algorithm modifiers seq, so we clone it
     [ >array ] 4dip ((kth-object)) ; inline
 
 : kth-object-unsafe ( seq k quot: ( x y -- ? ) -- elt )
index 0883822b803a7d72580b2197753facb9bdc4d90f..6bdb270e5719bfdacdbf1db8d8916914e2d1ae31 100644 (file)
@@ -139,13 +139,13 @@ TUPLE: simd-test-failure
     --
     failures
 )
-    #! Use test-quot to generate a bunch of test cases from the
-    #! given inputs. Run each test case optimized and
-    #! unoptimized. Compare results with eq-quot.
-    #!
-    #! seq: sequence of inputs
-    #! test-quot: ( input -- input-quot: ( -- ..v ) code-quot: ( ..v -- result ) )
-    #! eq-quot: ( result1 result2 -- ? )
+    ! Use test-quot to generate a bunch of test cases from the
+    ! given inputs. Run each test case optimized and
+    ! unoptimized. Compare results with eq-quot.
+    !
+    ! seq: sequence of inputs
+    ! test-quot: ( input -- input-quot: ( -- ..v ) code-quot: ( ..v -- result ) )
+    ! eq-quot: ( result1 result2 -- ? )
     seq [| input |
         input test-quot call :> ( input-quot code-quot )
         input-quot [ class-of ] { } map-as :> input-classes
index 26a3410677c3ca9e4554c98da0ed720c41ddcb64..2fb27d03684c4886fb3757a5c8d0b954d058b655 100644 (file)
@@ -104,9 +104,9 @@ MACRO: all-enabled-client-state ( seq quot -- quot )
     line-vertices GL_LINES 0 2 glDrawArrays ;
 
 :: (rect-vertices) ( loc dim -- vertices )
-    #! We use GL_LINE_STRIP with a duplicated first vertex
-    #! instead of GL_LINE_LOOP to work around a bug in Apple's
-    #! X3100 driver.
+    ! We use GL_LINE_STRIP with a duplicated first vertex
+    ! instead of GL_LINE_LOOP to work around a bug in Apple's
+    ! X3100 driver.
     loc first2 [ 0.3 + ] bi@ :> ( x y )
     dim first2 [ 0.6 - ] bi@ :> ( w h )
     [
@@ -226,7 +226,7 @@ MACRO: set-draw-buffers ( buffers -- quot )
     fix-coordinates glViewport ;
 
 : init-matrices ( -- )
-    #! Leaves with matrix mode GL_MODELVIEW
+    ! Leaves with matrix mode GL_MODELVIEW
     GL_PROJECTION glMatrixMode
     glLoadIdentity
     GL_MODELVIEW glMatrixMode
index ade19b2279621499bd15274559a7efde64f3454f..0accf6f846ad5fb8fb898025988f7e0ae41b4463 100644 (file)
@@ -12,8 +12,8 @@ IN: opengl.textures
 SYMBOL: non-power-of-2-textures?
 
 : check-extensions ( -- )
-    #! ATI frglx driver doesn't implement GL_ARB_texture_non_power_of_two properly.
-    #! See thread 'Linux font display problem' April 2009 on Factor-talk
+    ! ATI frglx driver doesn't implement GL_ARB_texture_non_power_of_two properly.
+    ! See thread 'Linux font display problem' April 2009 on Factor-talk
     gl-vendor "ATI Technologies Inc." = not os macosx? or [
         "2.0" { "GL_ARB_texture_non_power_of_two" }
         has-gl-version-or-extensions?
@@ -409,8 +409,8 @@ CONSTANT: max-texture-size { 512 512 }
 PRIVATE>
 
 : make-texture ( image -- id )
-    #! We use glTexSubImage2D to work around the power of 2 texture size
-    #! limitation
+    ! We use glTexSubImage2D to work around the power of 2 texture size
+    ! limitation
     gen-texture [
         GL_TEXTURE_BIT [
             GL_TEXTURE_2D swap glBindTexture
index 3b1e6f12402dcf19597caae5a8902f7aaca4e2f0..6f3b4922d3c13ecd90d4bc7f514e08871ae11b46 100644 (file)
@@ -266,20 +266,20 @@ IN: peg.ebnf.tests
 ] must-fail
 
 { V{ V{ 49 } "+" V{ 49 } } } [
-  #! Test direct left recursion.
-  #! Using packrat, so first part of expr fails, causing 2nd choice to be used
+  ! Test direct left recursion.
+  ! Using packrat, so first part of expr fails, causing 2nd choice to be used
   "1+1" [EBNF num=([0-9])+ expr=expr "+" num | num EBNF]
 ] unit-test
 
 { V{ V{ V{ 49 } "+" V{ 49 } } "+" V{ 49 } } } [
-  #! Test direct left recursion.
-  #! Using packrat, so first part of expr fails, causing 2nd choice to be used
+  ! Test direct left recursion.
+  ! Using packrat, so first part of expr fails, causing 2nd choice to be used
   "1+1+1" [EBNF num=([0-9])+ expr=expr "+" num | num EBNF]
 ] unit-test
 
 { V{ V{ V{ 49 } "+" V{ 49 } } "+" V{ 49 } } } [
-  #! Test indirect left recursion.
-  #! Using packrat, so first part of expr fails, causing 2nd choice to be used
+  ! Test indirect left recursion.
+  ! Using packrat, so first part of expr fails, causing 2nd choice to be used
   "1+1+1" [EBNF num=([0-9])+ x=expr expr=x "+" num | num EBNF]
 ] unit-test
 
@@ -511,8 +511,8 @@ foo=<foreign any-char> 'd'
 ] must-fail
 
 { t } [
-  #! Rule lookup occurs in a namespace. This causes an incorrect duplicate rule
-  #! if a var in a namespace is set. This unit test is to remind me to fix this.
+  ! Rule lookup occurs in a namespace. This causes an incorrect duplicate rule
+  ! if a var in a namespace is set. This unit test is to remind me to fix this.
   [ "fail" "foo" set "foo='a'" ebnf-parser parse transform drop t ] with-scope
 ] unit-test
 
index 784d9d507b9f8a5b3cccd09f3d9760024d34b6d1..402dba49fa06842915ecaf6a3f40085133d9e90a 100644 (file)
@@ -10,7 +10,7 @@ FROM: peg.search => replace ;
 IN: peg.ebnf
 
 : rule ( name word -- parser )
-    #! Given an EBNF word produced from EBNF: return the EBNF rule
+    ! Given an EBNF word produced from EBNF: return the EBNF rule
     "ebnf-parser" word-prop at ;
 
 ERROR: no-rule rule parser ;
@@ -85,17 +85,17 @@ C: <ebnf-semantic> ebnf-semantic
 C: <ebnf> ebnf
 
 : filter-hidden ( seq -- seq )
-    #! Remove elements that produce no AST from sequence
+    ! Remove elements that produce no AST from sequence
     [ ebnf-ensure-not? ] reject [ ebnf-ensure? not ] filter ;
 
 : syntax ( string -- parser )
-    #! Parses the string, ignoring white space, and
-    #! does not put the result in the AST.
+    ! Parses the string, ignoring white space, and
+    ! does not put the result in the AST.
     token sp hide ;
 
 : syntax-pack ( begin parser end -- parser )
-    #! Parse parser-parser surrounded by syntax elements
-    #! begin and end.
+    ! Parse parser-parser surrounded by syntax elements
+    ! begin and end.
     [ syntax ] 2dip syntax pack ;
 
 : insert-escapes ( string -- string )
@@ -106,10 +106,10 @@ C: <ebnf> ebnf
     ] choice* replace ;
 
 : identifier-parser ( -- parser )
-    #! Return a parser that parses an identifer delimited by
-    #! a quotation character. The quotation can be single
-    #! or double quotes. The AST produced is the identifier
-    #! between the quotes.
+    ! Return a parser that parses an identifer delimited by
+    ! a quotation character. The quotation can be single
+    ! or double quotes. The AST produced is the identifier
+    ! between the quotes.
     [
         [
             [ CHAR: \ = ] satisfy
@@ -120,9 +120,9 @@ C: <ebnf> ebnf
     ] choice* [ "" flatten-as unescape-string ] action ;
 
 : non-terminal-parser ( -- parser )
-    #! A non-terminal is the name of another rule. It can
-    #! be any non-blank character except for characters used
-    #! in the EBNF syntax itself.
+    ! A non-terminal is the name of another rule. It can
+    ! be any non-blank character except for characters used
+    ! in the EBNF syntax itself.
     [
         {
             [ blank? ]
@@ -131,12 +131,12 @@ C: <ebnf> ebnf
     ] satisfy repeat1 [ >string <ebnf-non-terminal> ] action ;
 
 : terminal-parser ( -- parser )
-    #! A terminal is an identifier enclosed in quotations
-    #! and it represents the literal value of the identifier.
+    ! A terminal is an identifier enclosed in quotations
+    ! and it represents the literal value of the identifier.
     identifier-parser [ <ebnf-terminal> ] action ;
 
 : foreign-name-parser ( -- parser )
-    #! Parse a valid foreign parser name
+    ! Parse a valid foreign parser name
     [
         {
             [ blank? ]
@@ -145,7 +145,7 @@ C: <ebnf> ebnf
     ] satisfy repeat1 [ >string ] action ;
 
 : foreign-parser ( -- parser )
-    #! A foreign call is a call to a rule in another ebnf grammar
+    ! A foreign call is a call to a rule in another ebnf grammar
     [
         "<foreign" syntax ,
         foreign-name-parser sp ,
@@ -154,11 +154,11 @@ C: <ebnf> ebnf
     ] seq* [ first2 <ebnf-foreign> ] action ;
 
 : any-character-parser ( -- parser )
-    #! A parser to match the symbol for any character match.
+    ! A parser to match the symbol for any character match.
     [ CHAR: . = ] satisfy [ drop <ebnf-any-character> ] action ;
 
 : range-parser-parser ( -- parser )
-    #! Match the syntax for declaring character ranges
+    ! Match the syntax for declaring character ranges
     [
         [ "[" syntax , "[" token ensure-not , ] seq* hide ,
         [ CHAR: ] = not ] satisfy repeat1 ,
@@ -166,10 +166,10 @@ C: <ebnf> ebnf
     ] seq* [ first >string unescape-string <ebnf-range> ] action ;
 
 : (element-parser) ( -- parser )
-    #! An element of a rule. It can be a terminal or a
-    #! non-terminal but must not be followed by a "=".
-    #! The latter indicates that it is the beginning of a
-    #! new rule.
+    ! An element of a rule. It can be a terminal or a
+    ! non-terminal but must not be followed by a "=".
+    ! The latter indicates that it is the beginning of a
+    ! new rule.
     [
         [
             [
@@ -206,9 +206,9 @@ DEFER: action-parser
 DEFER: choice-parser
 
 : grouped ( quot suffix -- parser )
-    #! Parse a group of choices, with a suffix indicating
-    #! the type of group (repeat0, repeat1, etc) and
-    #! an quot that is the action that produces the AST.
+    ! Parse a group of choices, with a suffix indicating
+    ! the type of group (repeat0, repeat1, etc) and
+    ! an quot that is the action that produces the AST.
     2dup
     [
         "(" [ choice-parser sp ] delay ")" syntax-pack
@@ -220,7 +220,7 @@ DEFER: choice-parser
     ] choice* ;
 
 : group-parser ( -- parser )
-    #! A grouping with no suffix. Used for precedence.
+    ! A grouping with no suffix. Used for precedence.
     [ ] [
         "~" token sp ensure-not ,
         "*" token sp ensure-not ,
@@ -248,26 +248,26 @@ DEFER: choice-parser
     ] seq* repeat0 [ "" concat-as ] action ;
 
 : ensure-not-parser ( -- parser )
-    #! Parses the '!' syntax to ensure that
-    #! something that matches the following elements do
-    #! not exist in the parse stream.
+    ! Parses the '!' syntax to ensure that
+    ! something that matches the following elements do
+    ! not exist in the parse stream.
     [
         "!" syntax ,
         group-parser sp ,
     ] seq* [ first <ebnf-ensure-not> ] action ;
 
 : ensure-parser ( -- parser )
-    #! Parses the '&' syntax to ensure that
-    #! something that matches the following elements does
-    #! exist in the parse stream.
+    ! Parses the '&' syntax to ensure that
+    ! something that matches the following elements does
+    ! exist in the parse stream.
     [
         "&" syntax ,
         group-parser sp ,
     ] seq* [ first <ebnf-ensure> ] action ;
 
 : (sequence-parser) ( -- parser )
-    #! A sequence of terminals and non-terminals, including
-    #! groupings of those.
+    ! A sequence of terminals and non-terminals, including
+    ! groupings of those.
     [
         [
             ensure-not-parser sp ,
@@ -290,8 +290,8 @@ DEFER: choice-parser
      "?[" factor-code-parser "]?" syntax-pack ;
 
 : sequence-parser ( -- parser )
-    #! A sequence of terminals and non-terminals, including
-    #! groupings of those.
+    ! A sequence of terminals and non-terminals, including
+    ! groupings of those.
     [
         [ (sequence-parser) , action-parser , ] seq*
         [ first2 <ebnf-action> ] action ,
@@ -375,9 +375,9 @@ M: ebnf-rule (transform) ( ast -- parser )
     ] keep ;
 
 M: ebnf-sequence (transform) ( ast -- parser )
-    #! If ignore-ws is set then each element of the sequence
-    #! ignores leading whitespace. This is not inherited by
-    #! subelements of the sequence.
+    ! If ignore-ws is set then each element of the sequence
+    ! ignores leading whitespace. This is not inherited by
+    ! subelements of the sequence.
     elements>> [
         f ignore-ws [ (transform) ] with-variable
         ignore-ws get [ sp ] when
@@ -393,7 +393,7 @@ M: ebnf-range (transform) ( ast -- parser )
     pattern>> range-pattern ;
 
 : transform-group ( ast -- parser )
-    #! convert a ast node with groups to a parser for that group
+    ! convert a ast node with groups to a parser for that group
     group>> (transform) ;
 
 M: ebnf-ensure (transform) ( ast -- parser )
@@ -420,8 +420,8 @@ M: ebnf-whitespace (transform) ( ast -- parser )
 GENERIC: build-locals ( code ast -- code )
 
 M: ebnf-sequence build-locals ( code ast -- code )
-    #! Note the need to filter out this ebnf items that
-    #! leave nothing in the AST
+    ! Note the need to filter out this ebnf items that
+    ! leave nothing in the AST
     elements>> filter-hidden dup length 1 = [
         first build-locals
     ] [
index fc8847272a0b99f083b115e8e0dff1c7f40a44ba..3feddd3447fe3942ae9495194e9c98913068fd49 100644 (file)
@@ -81,8 +81,8 @@ PRIVATE>
     ] seq* [ first >string ] action ;
 
 : (range-pattern) ( pattern -- string )
-    #! Given a range pattern, produce a string containing
-    #! all characters within that range.
+    ! Given a range pattern, produce a string containing
+    ! all characters within that range.
     [
         any-char ,
         [ CHAR: - = ] satisfy hide ,
@@ -93,14 +93,14 @@ PRIVATE>
     replace ;
 
 : range-pattern ( pattern -- parser )
-    #! 'pattern' is a set of characters describing the
-    #! parser to be produced. Any single character in
-    #! the pattern matches that character. If the pattern
-    #! begins with a ^ then the set is negated (the element
-    #! matches any character not in the set). Any pair of
-    #! characters separated with a dash (-) represents the
-    #! range of characters from the first to the second,
-    #! inclusive.
+    ! 'pattern' is a set of characters describing the
+    ! parser to be produced. Any single character in
+    ! the pattern matches that character. If the pattern
+    ! begins with a ^ then the set is negated (the element
+    ! matches any character not in the set). Any pair of
+    ! characters separated with a dash (-) represents the
+    ! range of characters from the first to the second,
+    ! inclusive.
     dup first CHAR: ^ = [
         rest (range-pattern) [ member? not ] curry satisfy
     ] [
index a49120804142cb1a82a26bbc51969274fb58082b..3b38a80751f1ede4eb7f381084a79e73da036dbd 100644 (file)
@@ -172,8 +172,8 @@ IN: peg.tests
 ] unit-test
 
 : expr ( -- parser )
-    #! Test direct left recursion. Currently left recursion should cause a
-    #! failure of that parser.
+    ! Test direct left recursion. Currently left recursion should cause a
+    ! failure of that parser.
     [ expr ] delay "+" token "1" token 3seq "1" token 2choice ;
 
 { V{ V{ "1" "+" "1" } "+" "1" } } [
@@ -181,7 +181,7 @@ IN: peg.tests
 ] unit-test
 
 { t } [
-    #! Ensure a circular parser doesn't loop infinitely
+    ! Ensure a circular parser doesn't loop infinitely
     [ f , "a" token , ] seq*
     dup peg>> parsers>>
     dupd 0 swap set-nth compile word?
index b822b30ad7e5ae3fb086d872a3935dabcec84143..b36213da3fdf803361af49db6761f222d99abb9b 100644 (file)
@@ -49,12 +49,12 @@ SYMBOL: error-stack
 SYMBOL: ignore
 
 : packrat ( id -- cache )
-    #! The packrat cache is a mapping of parser-id->cache.
-    #! For each parser it maps to a cache holding a mapping
-    #! of position->result. The packrat cache therefore keeps
-    #! track of all parses that have occurred at each position
-    #! of the input string and the results obtained from that
-    #! parser.
+    ! The packrat cache is a mapping of parser-id->cache.
+    ! For each parser it maps to a cache holding a mapping
+    ! of position->result. The packrat cache therefore keeps
+    ! track of all parses that have occurred at each position
+    ! of the input string and the results obtained from that
+    ! parser.
     \ packrat get [ drop H{ } clone ] cache ;
 
 SYMBOL: pos
@@ -63,20 +63,20 @@ SYMBOL: fail
 SYMBOL: lrstack
 
 : heads ( -- cache )
-    #! A mapping from position->peg-head. It maps a
-    #! position in the input string being parsed to
-    #! the head of the left recursion which is currently
-    #! being grown. It is 'f' at any position where
-    #! left recursion growth is not underway.
+    ! A mapping from position->peg-head. It maps a
+    ! position in the input string being parsed to
+    ! the head of the left recursion which is currently
+    ! being grown. It is 'f' at any position where
+    ! left recursion growth is not underway.
     \ heads get ;
 
 : failed? ( obj -- ? )
     fail = ;
 
 : peg-cache ( -- cache )
-    #! Holds a hashtable mapping a peg tuple to
-    #! the parser tuple for that peg. The parser tuple
-    #! holds a unique id and the compiled form of that peg.
+    ! Holds a hashtable mapping a peg tuple to
+    ! the parser tuple for that peg. The parser tuple
+    ! holds a unique id and the compiled form of that peg.
     \ peg-cache get-global [
         H{ } clone dup \ peg-cache set-global
     ] unless* ;
@@ -97,17 +97,17 @@ TUPLE: left-recursion seed rule-id head next ;
 TUPLE: peg-head rule-id involved-set eval-set ;
 
 : rule-id ( word -- id )
-    #! A rule is the parser compiled down to a word. It has
-    #! a "peg-id" property containing the id of the original parser.
+    ! A rule is the parser compiled down to a word. It has
+    ! a "peg-id" property containing the id of the original parser.
     "peg-id" word-prop ;
 
 : input-slice ( -- slice )
-    #! Return a slice of the input from the current parse position
+    ! Return a slice of the input from the current parse position
     input get pos get tail-slice ;
 
 : input-from ( input -- n )
-    #! Return the index from the original string that the
-    #! input slice is based on.
+    ! Return the index from the original string that the
+    ! input slice is based on.
     dup slice? [ from>> ] [ drop 0 ] if ;
 
 : process-rule-result ( p result -- result )
@@ -118,17 +118,17 @@ TUPLE: peg-head rule-id involved-set eval-set ;
     ] if* ;
 
 : eval-rule ( rule -- ast )
-    #! Evaluate a rule, return an ast resulting from it.
-    #! Return fail if the rule failed. The rule has
-    #! stack effect ( -- parse-result )
+    ! Evaluate a rule, return an ast resulting from it.
+    ! Return fail if the rule failed. The rule has
+    ! stack effect ( -- parse-result )
     pos get swap execute( -- parse-result ) process-rule-result ; inline
 
 : memo ( pos id -- memo-entry )
-    #! Return the result from the memo cache.
+    ! Return the result from the memo cache.
     packrat at ;
 
 : set-memo ( memo-entry pos id -- )
-    #! Store an entry in the cache
+    ! Store an entry in the cache
     packrat set-at ;
 
 : update-m ( ast m -- )
@@ -239,7 +239,7 @@ TUPLE: peg-head rule-id involved-set eval-set ;
     ] if* ; inline
 
 : with-packrat ( input quot -- result )
-    #! Run the quotation with a packrat cache active.
+    ! Run the quotation with a packrat cache active.
     [
         swap input ,,
         0 pos ,,
@@ -265,18 +265,18 @@ GENERIC: (compile) ( peg -- quot )
     gensym [ >>compiled ] keep ;
 
 : define-parser-word ( parser word -- )
-    #! Return the body of the word that is the compiled version
-    #! of the parser.
+    ! Return the body of the word that is the compiled version
+    ! of the parser.
     2dup swap peg>> (compile) ( -- result ) define-declared
     swap id>> "peg-id" set-word-prop ;
 
 : compile-parser ( parser -- word )
-    #! Look to see if the given parser has been compiled.
-    #! If not, compile it to a temporary word, cache it,
-    #! and return it. Otherwise return the existing one.
-    #! Circular parsers are supported by getting the word
-    #! name and storing it in the cache, before compiling,
-    #! so it is picked up when re-entered.
+    ! Look to see if the given parser has been compiled.
+    ! If not, compile it to a temporary word, cache it,
+    ! and return it. Otherwise return the existing one.
+    ! Circular parsers are supported by getting the word
+    ! name and storing it in the cache, before compiling,
+    ! so it is picked up when re-entered.
     dup compiled>> [
         nip
     ] [
@@ -289,8 +289,8 @@ GENERIC: (compile) ( peg -- quot )
 SYMBOL: delayed
 
 : fixup-delayed ( -- )
-    #! Work through all delayed parsers and recompile their
-    #! words to have the correct bodies.
+    ! Work through all delayed parsers and recompile their
+    ! words to have the correct bodies.
     delayed get [
         call( -- parser ) compile-parser-quot ( -- result ) define-declared
     ] assoc-each ;
@@ -314,13 +314,13 @@ SYMBOL: delayed
 <PRIVATE
 
 : next-id ( -- n )
-    #! Return the next unique id for a parser
+    ! Return the next unique id for a parser
     \ next-id counter ;
 
 : wrap-peg ( peg -- parser )
-    #! Wrap a parser tuple around the peg object.
-    #! Look for an existing parser tuple for that
-    #! peg object.
+    ! Wrap a parser tuple around the peg object.
+    ! Look for an existing parser tuple for that
+    ! peg object.
     peg-cache [
         f next-id parser boa
     ] cache ;
@@ -328,7 +328,7 @@ SYMBOL: delayed
 TUPLE: token-parser symbol ;
 
 : parse-token ( input string -- result )
-    #! Parse the string, returning a parse result
+    ! Parse the string, returning a parse result
     [ ?head-slice ] keep swap [
         <parse-result> f f f add-error
     ] [
@@ -503,18 +503,18 @@ M: sp-parser (compile)
 TUPLE: delay-parser quot ;
 
 M: delay-parser (compile)
-    #! For efficiency we memoize the quotation.
-    #! This way it is run only once and the
-    #! parser constructed once at run time.
+    ! For efficiency we memoize the quotation.
+    ! This way it is run only once and the
+    ! parser constructed once at run time.
     quot>> gensym [ delayed get set-at ] keep 1quotation ;
 
 TUPLE: box-parser quot ;
 
 M: box-parser (compile)
-    #! Calls the quotation at compile time
-    #! to produce the parser to be compiled.
-    #! This differs from 'delay' which calls
-    #! it at run time.
+    ! Calls the quotation at compile time
+    ! to produce the parser to be compiled.
+    ! This differs from 'delay' which calls
+    ! it at run time.
     quot>> call( -- parser ) compile-parser-quot ;
 
 PRIVATE>
@@ -589,17 +589,17 @@ PRIVATE>
     delay-parser boa wrap-peg ;
 
 : box ( quot -- parser )
-    #! because a box has its quotation run at compile time
-    #! it must always have a new parser wrapper created,
-    #! not a cached one. This is because the same box,
-    #! compiled twice can have a different compiled word
-    #! due to running at compile time.
-    #! Why the [ ] action at the end? Box parsers don't get
-    #! memoized during parsing due to all box parsers being
-    #! unique. This breaks left recursion detection during the
-    #! parse. The action adds an indirection with a parser type
-    #! that gets memoized and fixes this. Need to rethink how
-    #! to fix boxes so this isn't needed...
+    ! because a box has its quotation run at compile time
+    ! it must always have a new parser wrapper created,
+    ! not a cached one. This is because the same box,
+    ! compiled twice can have a different compiled word
+    ! due to running at compile time.
+    ! Why the [ ] action at the end? Box parsers don't get
+    ! memoized during parsing due to all box parsers being
+    ! unique. This breaks left recursion detection during the
+    ! parse. The action adds an indirection with a parser type
+    ! that gets memoized and fixes this. Need to rethink how
+    ! to fix boxes so this isn't needed...
     box-parser boa f next-id parser boa [ ] action ;
 
 ERROR: parse-failed input word ;
index c1d39aaee5df180075c091ce1104be7ae2412e11..581d6757f8b8a0ec473bfec5118c5f76a213b276 100644 (file)
@@ -262,9 +262,9 @@ TUPLE: flow < block ;
     flow new-block ;
 
 M: flow short-section? ( section -- ? )
-    #! If we can make room for this entire block by inserting
-    #! a newline, do it; otherwise, don't bother, print it as
-    #! a short section
+    ! If we can make room for this entire block by inserting
+    ! a newline, do it; otherwise, don't bother, print it as
+    ! a short section
     {
         [ section-fits? ]
         [ [ end>> 1 - ] [ start>> ] bi - text-fits? not ]
index 31a17dfa5b905946253370f0074c95e4aebb4545..0d0c34431a5a05d6c249aa738c8ea5c3fa926c4f 100644 (file)
@@ -21,12 +21,12 @@ GENERIC: (serialize) ( obj -- )
 SYMBOL: serialized
 
 : add-object ( obj -- )
-    #! Add an object to the sequence of already serialized
-    #! objects.
+    ! Add an object to the sequence of already serialized
+    ! objects.
     serialized get [ assoc-size swap ] keep set-at ;
 
 : object-id ( obj -- id )
-    #! Return the id of an already serialized object
+    ! Return the id of an already serialized object
     serialized get at ;
 
 ! Positive numbers are serialized as follows:
@@ -231,8 +231,8 @@ SYMBOL: deserialized
     [ set-array-nth ] curry each-index ;
 
 : deserialize-tuple ( -- array )
-    #! Ugly because we have to intern the tuple before reading
-    #! slots
+    ! Ugly because we have to intern the tuple before reading
+    ! slots
     (deserialize) new
     [ intern-object ]
     [
index b810c26dfb57c9393dacaaa7719a853f4f7aed25..d7fd1e361e7391c9a3452ae0c06431760bdff375 100644 (file)
@@ -71,7 +71,7 @@ SYMBOL: data-mode
     } cond nip [ process ] when ;
 
 :: mock-smtp-server ( promise -- )
-    #! Store the port we are running on in the promise.
+    ! Store the port we are running on in the promise.
     [
         [
             "127.0.0.1" 0 <inet4> ascii <server> [
index 48ea2c181443c315d3bf9dfe82794f1581a7bef6..043d6d81dcc2612e68c427791858cd224fdd4b5b 100644 (file)
@@ -67,7 +67,7 @@ TUPLE: email
 ERROR: bad-email-address email ;
 
 : validate-address ( string -- string' )
-    #! Make sure we send funky stuff to the server by accident.
+    ! Make sure we send funky stuff to the server by accident.
     dup "\r\n>" intersects?
     [ bad-email-address ] when ;
 
index 43c05ee207cf7566f006a2518677bd65d2e372aa..2ef95afa1b19bab7b0b89dd87e25b6e2f8337391 100644 (file)
@@ -10,7 +10,7 @@ IN: sorting.slots
     '[ _ execute( tuple -- value ) ] bi@ ;
 
 : compare-slots ( obj1 obj2 sort-specs -- <=> )
-    #! sort-spec: { accessors comparator }
+    ! sort-spec: { accessors comparator }
     [
         dup array? [
             unclip-last-slice
index 196fa7522cbc5863a9586139f3dd3891732d4d7e..91110b3b985a8a5720bc8c850b8111f94b7908bd 100644 (file)
@@ -9,8 +9,8 @@ TR: soundex-tr
     "00000000111122222222334556" ;
 
 : remove-duplicates ( seq -- seq' )
-    #! Remove _consecutive_ duplicates (unlike prune which removes
-    #! all duplicates).
+    ! Remove _consecutive_ duplicates (unlike prune which removes
+    ! all duplicates).
     [ 2 <clumps> [ = ] assoc-reject values ] [ first ] bi prefix ;
 
 : first>upper ( seq -- seq' ) 1 head >upper ;
index 9c016f037a2f69393db58811ddb4c9b3a026451f..1bf75e7ec9dca83f6a36cac34f33b1577a244859 100644 (file)
@@ -14,5 +14,5 @@ M: callable infer ( quot -- effect )
     (infer) ;
 
 : infer. ( quot -- )
-    #! Safe to call from inference transforms.
+    ! Safe to call from inference transforms.
     infer effect>string print ;
index ce3fa9332981dd0f54bd9e719ed20271a9975a18..5e63aefd205193dcab21a8c3060bf62147307a97 100644 (file)
@@ -3,8 +3,8 @@ calendar urls xml.writer ;
 IN: syndication.tests
 
 : load-news-file ( filename -- feed )
-    #! Load an news syndication file and process it, returning
-    #! it as an feed tuple.
+    ! Load an news syndication file and process it, returning
+    ! it as an feed tuple.
     binary file-contents parse-feed ;
 
 { T{
index 27f709dd10e71f233569275a8fcfcefc46f5ed06..86ab6db5fe15252d0772e752a56835eb3a2976a5 100644 (file)
@@ -107,7 +107,7 @@ M: string parse-feed [ string>xml xml>feed ] with-html-entities ;
 M: byte-array parse-feed [ bytes>xml xml>feed ] with-html-entities ;
 
 : download-feed ( url -- feed )
-    #! Retrieve an news syndication file, return as a feed tuple.
+    ! Retrieve an news syndication file, return as a feed tuple.
     http-get nip parse-feed ;
 
 ! Atom generation
index 4d7c8fea55081608f3215702d528b930c27d4a5f..4afe06f2fa5c172e6382a2e4575e7d14ac635ef6 100644 (file)
@@ -92,8 +92,8 @@ M: object add-breakpoint ;
     ] when ; inline
 
 : change-frame ( continuation quot -- continuation' )
-    #! Applies quot to innermost call frame of the
-    #! continuation.
+    ! Applies quot to innermost call frame of the
+    ! continuation.
     [ clone ] dip '[ _ (change-frame) ] change-call ; inline
 
 PRIVATE>
index 1523cd5f9838ad3c435110e6d62e02c623b4b3dd..ccd2e0c6bfd1216d1d409a20fab11ebec843e136 100644 (file)
@@ -45,7 +45,7 @@ ERROR: can't-deploy-library-file library ;
     utf8 [ copy-lines ] with-process-reader ;
 
 : make-boot-image ( -- )
-    #! If stage1 image doesn't exist, create one.
+    ! If stage1 image doesn't exist, create one.
     my-boot-image-name resource-path exists?
     [ make-my-image ] unless ;
 
index 73a6e521882c6182caa954296b87af2a32762f02..b0c4a9e7113e96de2fad2d8c09b5c21fb1f3bf73 100755 (executable)
@@ -599,11 +599,11 @@ SYMBOL: deploy-vocab
     clear-megamorphic-caches ;
 
 : die-with ( error original-error -- * )
-    #! We don't want DCE to drop the error before the die call!
+    ! We don't want DCE to drop the error before the die call!
     [ die 1 exit ] ( a -- * ) call-effect-unsafe ;
 
 : die-with2 ( error original-error -- * )
-    #! We don't want DCE to drop the error before the die call!
+    ! We don't want DCE to drop the error before the die call!
     [ die 1 exit ] ( a b -- * ) call-effect-unsafe ;
 
 : deploy-error-handler ( quot -- )
@@ -617,8 +617,8 @@ SYMBOL: deploy-vocab
     ] recover ; inline
 
 : (deploy) ( final-image vocab-manifest-out vocab config -- )
-    #! Does the actual work of a deployment in the slave
-    #! stage2 image
+    ! Does the actual work of a deployment in the slave
+    ! stage2 image
     [
         [
             strip-debugger? [
index c1f68d3cd83acf03bfbe56800df3724f81db2dae..fb050e863c7c1b817809011baf181d94f273d047 100644 (file)
@@ -80,9 +80,9 @@ M: pasteboard set-clipboard-contents
     [ 0 0 ] dip dim>> first2 <CGRect> ;
 
 : auto-position ( window loc -- )
-    #! Note: if this is the initial window, the length of the windows
-    #! vector should be 1, since (open-window) calls auto-position
-    #! after register-window.
+    ! Note: if this is the initial window, the length of the windows
+    ! vector should be 1, since (open-window) calls auto-position
+    ! after register-window.
     dup { 0 0 } = [
         drop
         ui-windows get-global length 1 <= [ -> center ] [
index c38963e8505255ced6c55bce738a738d4ba9e7a4..ab6b7add8e273ca0a7c94c4f842facc9645caa73 100644 (file)
@@ -16,7 +16,7 @@ IN: ui.backend.cocoa.views
 
 ! Issue #1453
 : button ( event -- n )
-    #! Cocoa -> Factor UI button mapping
+    ! Cocoa -> Factor UI button mapping
     -> buttonNumber {
         { 0 [ 1 ] }
         { 1 [ 3 ] }
index b7cccae853087f6cb720b1c0704c21863b565796..47da2ecaa7441e4eb9d4b27e322c524c46f3dc6a 100755 (executable)
@@ -271,8 +271,8 @@ CONSTANT: window-control>ex-style
     [ get-RECT-top-left ] [ get-RECT-width/height ] bi ;
 
 : handle-wm-paint ( hWnd uMsg wParam lParam -- )
-    #! wParam and lParam are unused
-    #! only paint if width/height both > 0
+    ! wParam and lParam are unused
+    ! only paint if width/height both > 0
     3drop window relayout-1 yield ;
 
 : handle-wm-size ( hWnd uMsg wParam lParam -- )
@@ -531,11 +531,11 @@ SYMBOL: nc-buttons
     wParam mouse-scroll hand-loc get-global hWnd window send-scroll ;
 
 : handle-wm-cancelmode ( hWnd uMsg wParam lParam -- )
-    #! message sent if windows needs application to stop dragging
+    ! message sent if windows needs application to stop dragging
     4drop release-capture ;
 
 : handle-wm-mouseleave ( hWnd uMsg wParam lParam -- )
-    #! message sent if mouse leaves main application
+    ! message sent if mouse leaves main application
     4drop forget-rollover ;
 
 : system-background-color ( -- color )
index 36f7aa5ada0e3fd3f8f9e5a327e24bd83d808369..80e2bf3fe29523f58afed10a657872aced6b8f5b 100644 (file)
@@ -152,8 +152,8 @@ repeat-button H{
 } set-gestures
 
 : <repeat-button> ( label quot: ( button -- ) -- button )
-    #! Button that calls the quotation every 100ms as long as
-    #! the mouse is held down.
+    ! Button that calls the quotation every 100ms as long as
+    ! the mouse is held down.
     repeat-button new-button border-button-theme ;
 
 <PRIVATE
index c0eb5266b5906ca1d797232b772b55ad1fcff04b..8395f85e9d6ce706a5dbee23b8dfe39316aec8e7 100644 (file)
@@ -140,9 +140,9 @@ SYMBOL: ui-notify-flag
 : layout-queue ( -- queue ) \ layout-queue get ;
 
 : layout-later ( gadget -- )
-    #! When unit testing gadgets without the UI running, the
-    #! invalid queue is not initialized and we simply ignore
-    #! invalidation requests.
+    ! When unit testing gadgets without the UI running, the
+    ! invalid queue is not initialized and we simply ignore
+    ! invalidation requests.
     layout-queue [ push-front notify-ui-thread ] [ drop ] if* ;
 
 : invalidate* ( gadget -- )
index 2eed167e1b8f92ce49deefaa2146df745e323f07..2470dd29917a215c7a9d6761b336e4090fcfefce 100644 (file)
@@ -196,7 +196,7 @@ M: pane-control model-changed ( model pane-control -- )
 ! Character styles
 
 MEMO:: specified-font ( name style size foreground background -- font )
-    #! We memoize here to avoid creating lots of duplicate font objects.
+    ! We memoize here to avoid creating lots of duplicate font objects.
     monospace-font
         name [ >>name ] when*
         style {
index 0234c1eccae975390552717125ebdd44d76944ae..27417563f092ff24df12ed395b0073949b0b888d 100644 (file)
@@ -49,9 +49,9 @@ CONSTANT: min-thumb-dim 30
     [ elevator-length ] bi min ;
 
 : slider-scale ( slider -- n )
-    #! A scaling factor such that if x is a slider co-ordinate,
-    #! x*n is the screen position of the thumb, and conversely
-    #! for x/n. The '1 max' calls avoid division by zero.
+    ! A scaling factor such that if x is a slider co-ordinate,
+    ! x*n is the screen position of the thumb, and conversely
+    ! for x/n. The '1 max' calls avoid division by zero.
     [ [ elevator-length ] [ thumb-dim ] bi - 1 max ]
     [ slider-length* 1 max ]
     bi / ;
index f4b494fa3f0eb8271daff0eaa21538ac7a313585..5cf40ee32935ea7d93b25f8e1b6f1df43ead33a2 100644 (file)
@@ -197,8 +197,8 @@ M: world draw-world*
     } cleave ;
 
 : draw-world? ( world -- ? )
-    #! We don't draw deactivated worlds, or those with 0 size.
-    #! On Windows, the latter case results in GL errors.
+    ! We don't draw deactivated worlds, or those with 0 size.
+    ! On Windows, the latter case results in GL errors.
     { [ active?>> ] [ handle>> ] [ dim>> [ 0 > ] all? ] } 1&& ;
 
 TUPLE: world-error error world ;
index 96f716870cd7a528614a7032a8b58e55b643605e..d9331000bbd6f9657bd9c8859339e9686cb48235 100644 (file)
@@ -67,13 +67,13 @@ SYMBOL: dpi
     layout>> 0 pango_layout_get_line_readonly ;
 
 : line-offset>x ( layout n -- x )
-    #! n is an index into the UTF8 encoding of the text
+    ! n is an index into the UTF8 encoding of the text
     [ drop first-line ] [ swap string>> >utf8-index ] 2bi
     f { int } [ pango_layout_line_index_to_x ] with-out-parameters
     pango>float ;
 
 : x>line-offset ( layout x -- n )
-    #! n is an index into the UTF8 encoding of the text
+    ! n is an index into the UTF8 encoding of the text
     [
         [ first-line ] dip
         float>pango
@@ -118,8 +118,8 @@ SYMBOL: dpi
     ] make-bitmap-image ;
 
 : escape-nulls ( str -- str' )
-    #! Replace nulls with something else since Pango uses null-terminated
-    #! strings
+    ! Replace nulls with something else since Pango uses null-terminated
+    ! strings
     H{ { 0 CHAR: zero-width-no-break-space } } substitute ;
 
 : unpack-selection ( layout string/selection -- layout )
@@ -140,8 +140,8 @@ SYMBOL: dpi
     swap <PangoLayout> &g_object_unref layout-extents drop dim>> second ;
 
 MEMO: missing-font-metrics ( font -- metrics )
-    #! Pango doesn't provide x-height and cap-height but Core Text does, so we
-    #! simulate them on Pango.
+    ! Pango doesn't provide x-height and cap-height but Core Text does, so we
+    ! simulate them on Pango.
     [
         [ metrics new ] dip
         [ "x" glyph-height >>x-height ]
index 893471ae28d7743e66ebba1b37e3a3e4bda33ce2..765bed7841dda060d8611a697d81c3e447c9a262 100644 (file)
@@ -57,7 +57,7 @@ M: debugger focusable-child*
     dup restart-hook>> [ restart-list>> ] [ drop t ] if ;
 
 : debugger-window ( error continuation -- )
-    #! No restarts for the debugger window
+    ! No restarts for the debugger window
     f f <debugger> "Error" open-status-window ;
 
 GENERIC: error-in-debugger? ( error -- ? )
index 17b38e354dcc273cb76d7171d100b7352b01d399..49ed22ad19b8db11b194f83b02d146b98b0a7fab 100644 (file)
@@ -25,7 +25,7 @@ MEMO: error-icon ( type -- image-name )
     [ swap <checkbox> add-gadget ] assoc-each ;
 
 : <error-toggle> ( -- model gadget )
-    #! Linkage errors are not shown by default.
+    ! Linkage errors are not shown by default.
     error-types get [ fatal?>> <model> ] assoc-map
     [ [ [ error-icon ] dip ] assoc-map <checkboxes> ]
     [ <mapping> ] bi ;
index 8caa3361cac82754936ccdc6afc38d620acbf3a5..df16ebfb8be6ee9c152a961d6076d7a9759c767c 100644 (file)
@@ -34,7 +34,7 @@ INSTANCE: interactor input-stream
     thread>> thread-continuation ;
 
 : interactor-busy? ( interactor -- ? )
-    #! We're busy if there's no thread to resume.
+    ! We're busy if there's no thread to resume.
     {
         [ waiting>> ]
         [ thread>> dup [ thread-registered? ] when ]
@@ -233,7 +233,7 @@ M: listener-gadget focusable-child*
     input>> dup popup>> or ;
 
 : wait-for-listener ( listener -- )
-    #! Wait for the listener to start.
+    ! Wait for the listener to start.
     input>> flag>> wait-for-flag ;
 
 : listener-busy? ( listener -- ? )
@@ -420,7 +420,7 @@ interactor "completion" f {
     ] "Listener" spawn drop ;
 
 : restart-listener ( listener -- )
-    #! Returns when listener is ready to receive input.
+    ! Returns when listener is ready to receive input.
     {
         [ com-end ]
         [ clear-output ]
index 580ff3936fadb4baec5cff6c382117f4b13a7c83..796a2d39f6a1514629ab1649f686e1a9e788c65b 100644 (file)
@@ -17,12 +17,12 @@ SYMBOL: ui-windows
 : window ( handle -- world ) ui-windows get-global at ;
 
 : register-window ( world handle -- )
-    #! Add the new window just below the topmost window. Why?
-    #! So that if the new window doesn't actually receive focus
-    #! (eg, we're using focus follows mouse and the mouse is not
-    #! in the new window when it appears) Factor doesn't get
-    #! confused and send workspace operations to the new window,
-    #! etc.
+    ! Add the new window just below the topmost window. Why?
+    ! So that if the new window doesn't actually receive focus
+    ! (eg, we're using focus follows mouse and the mouse is not
+    ! in the new window when it appears) Factor doesn't get
+    ! confused and send workspace operations to the new window,
+    ! etc.
     swap 2array ui-windows get-global push
     ui-windows get-global dup length 1 >
     [ [ length 1 - dup 1 - ] keep exchange ] [ drop ] if ;
@@ -156,10 +156,10 @@ PRIVATE>
 <PRIVATE
 
 : update-ui-loop ( -- )
-    #! Note the logic: if update-ui fails, we open an error window
-    #! and run one iteration of update-ui. If that also fails, well,
-    #! the whole UI subsystem is broken so we exit out of the
-    #! update-ui-loop.
+    ! Note the logic: if update-ui fails, we open an error window
+    ! and run one iteration of update-ui. If that also fails, well,
+    ! the whole UI subsystem is broken so we exit out of the
+    ! update-ui-loop.
     [ { [ ui-running? ] [ ui-thread get-global self eq? ] } 0&& ]
     [
         ui-notify-flag get lower-flag
index cee7ccf6e1df8139e10951b4b52f200b8099914b..2ee6c28c53bdad994497fe0144150b42c551b1f0 100644 (file)
@@ -59,7 +59,7 @@ IN: validators
     [ 2drop ] [ drop "invalid " prepend throw ] if ;
 
 : v-email ( str -- str )
-    #! From http://www.regular-expressions.info/email.html
+    ! From http://www.regular-expressions.info/email.html
     320 v-max-length
     "e-mail"
     R' [A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}'i
index 96b8723e684d46a9a2c45da61da97a9124183fde..26e0e8cd29392587e543089d5c27ec908435463d 100644 (file)
@@ -75,7 +75,7 @@ PRIVATE>
     [ dup vocab-prefix? [ name>> <vocab-link> ] when ] map ;
 
 : remove-redundant-prefixes ( seq -- seq' )
-    #! Hack.
+    ! Hack.
     [ vocab-prefix? ] partition
     [
         [ vocab-name ] map fast-set
index 2320fc4a045ea15f087a78d28dd412b4db5b6473..13e1e7beb3feda370af769f0c726f7561400e15a 100644 (file)
@@ -29,8 +29,8 @@ TR: convert-separators "/\\" ".." ;
     chop-vocab-root path>vocab-name vocab-dir>vocab-name ;
 
 : monitor-loop ( monitor -- )
-    #! On OS X, monitors give us the full path, so we chop it
-    #! off if its there.
+    ! On OS X, monitors give us the full path, so we chop it
+    ! off if its there.
     [
         next-change path>> path>vocab
         [ changed-vocab ] [ reset-cache ] bi
index 49c3a2dd24c2b592058d96de0b4524a60bf633c3..e04dfa016a0c4ac73978852184c867b1ec70c836 100644 (file)
@@ -18,11 +18,11 @@ TYPEDEF: TOKEN_PRIVILEGES* PTOKEN_PRIVILEGES
     with-out-parameters ;
 
 : open-process-token ( -- handle )
-    #! remember to CloseHandle
+    ! remember to CloseHandle
     GetCurrentProcess (open-process-token) ;
 
 : with-process-token ( quot -- )
-    #! quot: ( token-handle -- token-handle )
+    ! quot: ( token-handle -- token-handle )
     [ open-process-token ] dip
     [ keep ] curry
     [ CloseHandle drop ] [ ] cleanup ; inline
index 79c404fc2df6e65189240bd62b45054ef8c55299..dea0e7de4001e7d32b27afc3f2fe2cc3988cd1a1 100644 (file)
@@ -21,7 +21,7 @@ IN: windows.time
     FILETIME>windows-time ;
 
 : timestamp>windows-time ( timestamp -- n )
-    #! 64bit number representing # of nanoseconds since Jan 1, 1601 (UTC)
+    ! 64bit number representing # of nanoseconds since Jan 1, 1601 (UTC)
     >gmt windows-1601 (time-) 10,000,000 * >integer ;
 
 : windows-time>FILETIME ( n -- FILETIME )
index 601316950900848c821b35658b3d3aa1a629fc6b..f105c0714429c3b4da168d433795e6cd74f5e0c5 100644 (file)
@@ -436,7 +436,7 @@ ERROR: winsock-exception n string ;
     ${ ERROR_IO_PENDING ERROR_SUCCESS WSA_IO_PENDING } member? ;
 
 : (maybe-winsock-exception) ( n -- winsock-exception/f )
-    ! #! WSAStartup returns the error code 'n' directly
+    ! ! WSAStartup returns the error code 'n' directly
     dup winsock-expected-error?
     [ drop f ] [ [ ] [ n>win32-error-string ] bi \ winsock-exception boa ] if ;
 
index 900b59b1a7d1b7bdb120fde9e6f8072668f431fa..8fcc19c540308bc3da4f54742b990ad200a94dd9 100644 (file)
@@ -18,7 +18,7 @@ IN: xml.elements
     [ quoteless-attr ] take-interpolated ;
 
 : start-tag ( -- name ? )
-    #! Outputs the name and whether this is a closing tag
+    ! Outputs the name and whether this is a closing tag
     get-char CHAR: / eq? dup [ next ] when
     parse-name swap ;
 
index cb1697bb3d05ae746ed8bccf1dc16784c3b580bd..9213a2f9225a13987588bc403bc1802ea2671778 100644 (file)
@@ -20,7 +20,7 @@ CONSTANT: quoted-entities-out
     }
 
 : escape-string-by ( str table -- escaped )
-    #! Convert <, >, &, ' and " to HTML entities.
+    ! Convert <, >, &, ' and " to HTML entities.
     [ '[ dup _ at [ % ] [ , ] ?if ] each ] "" make ;
 
 : escape-string ( str -- newstr )
index 660cbeaf36934c42b66f3dae4293d307613feb64..0d04064022586212103c401b3e5b5c787f0ddfc7 100644 (file)
@@ -72,9 +72,9 @@ HINTS: next* { spot } ;
     spot get (skip-until) ; inline
 
 : take-until ( ... quot: ( ... char -- ... ? ) -- ... string )
-    #! Take the substring of a string starting at spot
-    #! from code until the quotation given is true and
-    #! advance spot to after the substring.
+    ! Take the substring of a string starting at spot
+    ! from code until the quotation given is true and
+    ! advance spot to after the substring.
    10 <sbuf> [
        '[ _ keep over [ drop ] [ _ push ] if ] skip-until
    ] keep "" like ; inline
@@ -83,7 +83,7 @@ HINTS: next* { spot } ;
     '[ _ member? ] take-until ; inline
 
 : pass-blank ( -- )
-    #! Advance code past any whitespace, including newlines
+    ! Advance code past any whitespace, including newlines
     [ blank? not ] skip-until ;
 
 : next-matching ( pos ch str -- pos' )
index 815ecbc53cc6c271f1397915dd07c7cab8c3d262..b53fd3866d7c3b306c8761a36bda3fd3c5c2f40c 100644 (file)
@@ -29,10 +29,10 @@ M: byte-vector equal?
 M: byte-vector contract 2drop ; inline
 
 M: byte-array like
-    #! If we have an byte-array, we're done.
-    #! If we have a byte-vector, and it's at full capacity,
-    #! we're done. Otherwise, call resize-byte-array, which is a
-    #! relatively fast primitive.
+    ! If we have an byte-array, we're done.
+    ! If we have a byte-vector, and it's at full capacity,
+    ! we're done. Otherwise, call resize-byte-array, which is a
+    ! relatively fast primitive.
     drop dup byte-array? [
         dup byte-vector? [
             [ length ] [ underlying>> ] bi
index d89b7a744a407474cc2fc1d16c58dd995b320d54..ce1c2a81d5535787fb9339d9b29016f1d548f7c1 100644 (file)
@@ -58,9 +58,9 @@ M: checksum checksum-lines
     [ B{ CHAR: \n } join ] dip checksum-bytes ;
 
 : checksum-file ( path checksum -- value )
-    #! normalize-path (file-reader) is equivalent to
-    #! binary <file-reader>. We use the lower-level form
-    #! so that we can move io.encodings.binary to basis/.
+    ! normalize-path (file-reader) is equivalent to
+    ! binary <file-reader>. We use the lower-level form
+    ! so that we can move io.encodings.binary to basis/.
     [ normalize-path (file-reader) ] dip checksum-stream ;
 
 : hex-string ( seq -- str )
index 8c65a5d10b7dd667327aa2a7a093b37fff123a97..f4623225b4b52d8c62ae04d5c764fa38c7a6fd64 100644 (file)
@@ -114,11 +114,11 @@ M: predicate reset-word
     swap superclass-of? ;
 
 : class-members ( class -- seq )
-    #! Output f for non-classes to work with algebra code
+    ! Output f for non-classes to work with algebra code
     dup class? [ "members" word-prop ] [ drop f ] if ;
 
 : class-participants ( class -- seq )
-    #! Output f for non-classes to work with algebra code
+    ! Output f for non-classes to work with algebra code
     dup class? [ "participants" word-prop ] [ drop f ] if ;
 
 GENERIC: implementors ( class/classes -- seq )
index bacb34a385661ad01b29ebda23037d5683bb1976..93bb8e2190bf9fbe398f271bc5f12baf8214345c 100644 (file)
@@ -41,11 +41,11 @@ ERROR: check-mixin-class-error class ;
     swap redefine-mixin-class ; inline
 
 : (add-mixin-instance) ( class mixin -- )
-    #! Call update-methods before adding the member:
-    #! - Call sites of generics specializing on 'mixin'
-    #! where the inferred type is 'class' are updated,
-    #! - Call sites where the inferred type is a subtype
-    #! of 'mixin' disjoint from 'class' are not updated
+    ! Call update-methods before adding the member:
+    ! - Call sites of generics specializing on 'mixin'
+    ! where the inferred type is 'class' are updated,
+    ! - Call sites where the inferred type is a subtype
+    ! of 'mixin' disjoint from 'class' are not updated
     dup class-usages {
         [ nip update-methods ]
         [ drop [ suffix ] change-mixin-class ]
@@ -54,11 +54,11 @@ ERROR: check-mixin-class-error class ;
     } 3cleave ;
 
 : (remove-mixin-instance) ( class mixin -- )
-    #! Call update-methods after removing the member:
-    #! - Call sites of generics specializing on 'mixin'
-    #! where the inferred type is 'class' are updated,
-    #! - Call sites where the inferred type is a subtype
-    #! of 'mixin' disjoint from 'class' are not updated
+    ! Call update-methods after removing the member:
+    ! - Call sites of generics specializing on 'mixin'
+    ! where the inferred type is 'class' are updated,
+    ! - Call sites where the inferred type is a subtype
+    ! of 'mixin' disjoint from 'class' are not updated
     dup class-usages {
         [ drop [ swap remove ] change-mixin-class ]
         [ drop "instances" word-prop delete-at ]
index 7ad2d456e4e5bc684eaeb006ed9474fa14c8951f..77993bba209b921f50577a97460e70a322b28194 100644 (file)
@@ -133,7 +133,7 @@ M: object final-class? drop f ;
 <PRIVATE
 
 : tuple-predicate-quot/1 ( class -- quot )
-    #! Fast path for tuples with no superclass
+    ! Fast path for tuples with no superclass
     [ ] curry [ layout-of 7 slot ] [ eq? ] surround 1quotation
     [ dup tuple? ] [ [ drop f ] if ] surround ;
 
index 7978434c92b5ad7b83ee8c19b7e486be3a0503c3..afa6376983f0854a75970989f0f0049fe3cc81af 100644 (file)
@@ -64,7 +64,7 @@ M: single-combination make-default-method
 ! ! ! Build an engine ! ! !
 
 : find-default ( methods -- default )
-    #! Side-effects methods.
+    ! Side-effects methods.
     [ object bootstrap-word ] dip delete-at* [
         drop generic-word get "default-method" word-prop
     ] unless ;
@@ -108,9 +108,9 @@ TUPLE: tuple-dispatch-engine echelons ;
     [ ?set-at ] change-at ;
 
 : echelon-sort ( assoc -- assoc' )
-    #! Convert an assoc mapping classes to methods into an
-    #! assoc mapping echelons to assocs. The first echelon
-    #! is always there
+    ! Convert an assoc mapping classes to methods into an
+    ! assoc mapping echelons to assocs. The first echelon
+    ! is always there
     H{ { 0 f } } clone [ [ push-echelon ] curry assoc-each ] keep ;
 
 : copy-superclass-methods ( engine superclass assoc -- )
@@ -121,11 +121,11 @@ TUPLE: tuple-dispatch-engine echelons ;
     [ swapd copy-superclass-methods ] 2curry each ;
 
 : convert-tuple-inheritance ( assoc -- assoc' )
-    #! A method on a superclass A might have a higher precedence
-    #! than a method on a subclass B, if the methods are
-    #! defined on incomparable classes that happen to contain
-    #! A and B, respectively. Copy A's methods into B's set so
-    #! that they can be sorted and selected properly.
+    ! A method on a superclass A might have a higher precedence
+    ! than a method on a subclass B, if the methods are
+    ! defined on incomparable classes that happen to contain
+    ! A and B, respectively. Copy A's methods into B's set so
+    ! that they can be sorted and selected properly.
     dup dup [ copy-superclasses-methods ] curry assoc-each ;
 
 : <tuple-dispatch-engine> ( methods -- engine )
index 888ce933d8b79ecfe199ee046eb939e5fe170e08..f194ac1959339e1b30fb5fe6419415444f69af38 100644 (file)
@@ -285,7 +285,7 @@ TUPLE: ceo < executive ;
 GENERIC: salary ( person -- n )
 
 M: intern salary
-    #! Intentional mistake.
+    ! Intentional mistake.
     call-next-method ;
 
 M: employee salary drop 24000 ;
@@ -299,7 +299,7 @@ M: senior-manager salary call-next-method 15000 + ;
 M: executive salary call-next-method 2 * ;
 
 M: ceo salary
-    #! Intentional error.
+    ! Intentional error.
     drop 5 call-next-method 3 * ;
 
 [ salary ] must-infer
index 0a7b8ef6c8c35b40fe6c4aa6232bb7298c0c42f3..e097b2a552a273f05d3209e3de91e3056bf7d677 100644 (file)
@@ -50,9 +50,9 @@ M: standard-generic effective-method
     [ [ literalize , ] [ , ] [ combination get #>> , { } , , ] tri* ] [ ] make ;
 
 M: standard-combination inline-cache-quots
-    #! Direct calls to the generic word (not tail calls or indirect calls)
-    #! will jump to the inline cache entry point instead of the megamorphic
-    #! dispatch entry point.
+    ! Direct calls to the generic word (not tail calls or indirect calls)
+    ! will jump to the inline cache entry point instead of the megamorphic
+    ! dispatch entry point.
     [ \ inline-cache-miss inline-cache-quot ]
     [ \ inline-cache-miss-tail inline-cache-quot ]
     2bi ;
index bad3551c4d214dfed6f92fd93c0af264c6d63cc0..fc804f068084354ed0382c03eedee2c126af99b6 100644 (file)
@@ -86,9 +86,9 @@ SYMBOL: error-stream
     swapd [ with-output-stream* ] curry with-input-stream* ; inline
 
 : with-streams ( input output quot -- )
-    #! We have to dispose of the output stream first, so that
-    #! if both streams point to the same FD, we get to flush the
-    #! buffer before closing the FD.
+    ! We have to dispose of the output stream first, so that
+    ! if both streams point to the same FD, we get to flush the
+    ! buffer before closing the FD.
     swapd [ with-output-stream ] curry with-input-stream ; inline
 
 : with-input-output+error-streams* ( input output+error quot -- )
index 455b1176a33f2ac966e790b46b97d8420b74dce0..8dc14ef55f9f9b1657c2919d0480eeef6bfbf05a 100644 (file)
@@ -93,10 +93,10 @@ M: c-io-backend (file-appender)
     "ab" fopen <c-writer> ;
 
 : show ( msg -- )
-    #! A word which directly calls primitives. It is used to
-    #! print stuff from contexts where the I/O system would
-    #! otherwise not work (tools.deploy.shaker, the I/O
-    #! multiplexer thread).
+    ! A word which directly calls primitives. It is used to
+    ! print stuff from contexts where the I/O system would
+    ! otherwise not work (tools.deploy.shaker, the I/O
+    ! multiplexer thread).
     "\n" append >byte-array dup length
     stdout-handle fwrite
     stdout-handle fflush ;
index bf8187636716598b3202e8688332b2ed199f104b..c38206198c8178fe2bda8f999a90956f8801eb75 100644 (file)
@@ -78,9 +78,9 @@ GENERIC: execute ( word -- )
 DEFER: if
 
 : ? ( ? true false -- true/false )
-    #! 'if' and '?' can be defined in terms of each other
-    #! because the JIT special-cases an 'if' preceeded by
-    #! two literal quotations.
+    ! 'if' and '?' can be defined in terms of each other
+    ! because the JIT special-cases an 'if' preceeded by
+    ! two literal quotations.
     rot [ drop ] [ nip ] if ; inline
 
 : if ( ..a ? true: ( ..a -- ..b ) false: ( ..a -- ..b ) -- ..b ) ? call ;
index ecf3e43001606fc82569469bf1893bc746f3faa4..92d8326b5c15c2e6caabad4c77385c197506f0ae 100644 (file)
@@ -252,7 +252,7 @@ GENERIC: prev-float ( m -- n )
 : if-iterate? ( i n true false -- ) [ 2over < ] 2dip if ; inline
 
 : iterate-step ( i n quot -- i n quot )
-    #! Apply quot to i, keep i and quot, hide n.
+    ! Apply quot to i, keep i and quot, hide n.
     [ nip call ] 3keep ; inline
 
 : iterate-rot ( ? i n quot -- i n quot ? )
index 4598d19d353b7856f8d011613b9be08d7a188a32..e26260bc8d7ca51b725cdc08e76a0eac130617cb 100644 (file)
@@ -8,7 +8,7 @@ SYMBOL: +eq+
 SYMBOL: +gt+
 
 : invert-comparison ( <=> -- >=< )
-    #! Can't use case, index or nth here
+    ! Can't use case, index or nth here
     dup +lt+ eq? [ drop +gt+ ] [ +eq+ eq? +eq+ +lt+ ? ] if ;
 
 GENERIC: <=> ( obj1 obj2 -- <=> )
index 1bda0e48f7113dce89a4f1a46bb519ccf2e593de..9b9900f4d6ef26590ff0faa25df04e15e4673117 100644 (file)
@@ -193,8 +193,8 @@ print-use-hook [ [ ] ] initialize
     filter-moved [ class? ] filter [ forget-class ] each ;
 
 : fix-class-words ( -- )
-    #! If a class word had a compound definition which was
-    #! removed, it must go back to being a symbol.
+    ! If a class word had a compound definition which was
+    ! removed, it must go back to being a symbol.
     new-definitions get first2
     filter-moved [ [ reset-generic ] [ define-symbol ] bi ] each ;
 
index d90ae75108d86a33968f4d2495c608fe5bf70da8..b1118bd8152c11b0b9bd483b79d463b7960cc041 100644 (file)
@@ -34,10 +34,10 @@ M: string new-resizable drop <sbuf> ; inline
 M: sbuf new-resizable drop <sbuf> ; inline
 
 M: string like
-    #! If we have a string, we're done.
-    #! If we have an sbuf, and it's at full capacity, we're done.
-    #! Otherwise, call resize-string, which is a relatively
-    #! fast primitive.
+    ! If we have a string, we're done.
+    ! If we have an sbuf, and it's at full capacity, we're done.
+    ! Otherwise, call resize-string, which is a relatively
+    ! fast primitive.
     drop dup string? [
         dup sbuf? [
             [ length ] [ underlying>> ] bi
index a2ab3ee8e2dc90699641b90820af5d0bea1f771c..ba98a0ae566a50361915d70f6199aafeafb21e6c 100644 (file)
@@ -926,8 +926,8 @@ PRIVATE>
     [ nth2-unsafe ] [ [ 2 + ] dip nth-unsafe ] 2bi ; inline
 
 : (binary-reduce) ( seq start quot: ( elt1 elt2 -- newelt ) from length -- value )
-    #! We can't use case here since combinators depends on
-    #! sequences
+    ! We can't use case here since combinators depends on
+    ! sequences
     dup 4 < [
         integer>fixnum {
             [ 2drop nip ]
index 2575ea686ff495b9c7d4f4c80aff9c9e83f960ff..415ea711eb934b40b54fc0d06661608f42daaa6a 100644 (file)
@@ -67,7 +67,7 @@ SYMBOL: current-source-file
         swap >>error rethrow ;
 
 : with-source-file ( name quot -- )
-    #! Should be called from inside with-compilation-unit.
+    ! Should be called from inside with-compilation-unit.
     [
         [
             path>source-file
index 97d3cdcdac2a104bfe9b4114deddff72c6f45aa1..386a65dd78f30de6b33b1ff8b92fab1def81204c 100644 (file)
@@ -29,7 +29,7 @@ $nl
 ARTICLE: "syntax-comments" "Comments"
 { $subsections
     POSTPONE: !
-    POSTPONE: #!
+    POSTPONE: !
 } ;
 
 ARTICLE: "syntax-immediate" "Parse time evaluation"
@@ -664,9 +664,9 @@ HELP: !
 { $values { "comment" "characters" } }
 { $description "Discards all input until the end of the line." } ;
 
-{ POSTPONE: ! POSTPONE: #! } related-words
+{ POSTPONE: ! POSTPONE: ! } related-words
 
-HELP: #!
+HELP: !
 { $syntax "#!comment..." }
 { $values { "comment" "characters" } }
 { $description "Discards all input until the end of the line." }
index 27cd1cf734537c0c756f2fcb8a8b34b6e6b7a102..403cc6338421981978778654ea3702d168104df9 100644 (file)
@@ -24,10 +24,10 @@ M: vector equal?
     over vector? [ sequence= ] [ 2drop f ] if ;
 
 M: array like
-    #! If we have an array, we're done.
-    #! If we have a vector, and it's at full capacity, we're done.
-    #! Otherwise, call resize-array, which is a relatively
-    #! fast primitive.
+    ! If we have an array, we're done.
+    ! If we have a vector, and it's at full capacity, we're done.
+    ! Otherwise, call resize-array, which is a relatively
+    ! fast primitive.
     drop dup array? [
         dup vector? [
             [ length ] [ underlying>> ] bi
index 5b4e1f871f02bca578c1c9d211aa8e64c5e56daf..71126cf933a2c95f644ab59aac6b2bd844ae3809 100644 (file)
@@ -61,9 +61,9 @@ TUPLE: undefined-word word ;
 : undefined ( -- * ) get-callstack caller undefined-word boa throw ;
 
 : undefined-def ( -- quot )
-    #! 'f' inhibits tail call optimization in non-optimizing
-    #! compiler, ensuring that we can pull out the caller word
-    #! above.
+    ! 'f' inhibits tail call optimization in non-optimizing
+    ! compiler, ensuring that we can pull out the caller word
+    ! above.
     [ undefined f ] ;
 
 PREDICATE: deferred < word def>> undefined-def = ;
index d8036b4ee0fd980fa77e846c76f4a72bf8e1058a..b8ab44773b1552cb8460d1a7cb926c767b3c2fec 100644 (file)
@@ -40,8 +40,8 @@ ERROR: no-vorbis-in-ogg ;
     stream-buffer-size ; inline
 
 : read-bytes-into ( dest size stream -- len )
-    #! Read the given number of bytes from a stream
-    #! and store them in the destination byte array.
+    ! Read the given number of bytes from a stream
+    ! and store them in the destination byte array.
     stream-read >byte-array dup length [ memcpy ] keep  ;
 
 : stream-into-buffer ( buffer size vorbis-stream -- len )
index 6ab232606160f4e1c02257c93f79c58e91977241..b4bec779b1deb60b954b281fe1b36dba6c0d6b61 100644 (file)
@@ -16,7 +16,7 @@ IN: benchmark.backtrack
     { + - * } amb-execute ;
 
 : some-rots ( a b c -- a b c )
-    #! Try to rot 0, 1 or 2 times.
+    ! Try to rot 0, 1 or 2 times.
     { nop rot -rot } amb-execute ;
 
 MEMO: 24-from-1 ( a -- ? )
index 218aa9fd2af78366eb17d8b7bebfe4564861adbf..a81990aa3b22f03047d6ff42c9a1d11e80e67da8 100644 (file)
@@ -5,8 +5,8 @@ io prettyprint ;
 IN: benchmark.fannkuch
 
 : count ( quot: ( -- ? ) -- n )
-    #! Call quot until it returns false, return number of times
-    #! it was true
+    ! Call quot until it returns false, return number of times
+    ! it was true
     [ 0 ] dip '[ _ dip swap [ [ 1 + ] when ] keep ] loop ; inline
 
 : count-flips ( perm -- flip# )
index 4ecc0a6a0a2cfc72e45ac1af499de9333692f64c..c246f1538fb6f76ec8668fb46e5cc70737747665 100644 (file)
@@ -66,7 +66,7 @@ C: <sphere> sphere
     dup 0.0 < [ 3drop 1/0. ] [ sqrt sphere-t nip ] if ; inline
 
 : if-ray-sphere ( hit ray sphere quot -- hit )
-    #! quot: hit ray sphere l -- hit
+    ! quot: hit ray sphere l -- hit
     [
         [ ] [ swap ray-sphere nip ] [ 2drop lambda>> ] 3tri
         [ drop ] [ < ] 2bi
index 3038fea86994a12e1416b505f39090c7718310ec..eec83525e90113bbb3bd21fa2d7aa61ead5648cc 100644 (file)
@@ -21,9 +21,9 @@ TUPLE: coroutine resumecc exitcc originalcc ;
     [
         >>exitcc
         resumecc>> call( -- )
-        #! At this point, the coroutine quotation must have terminated
-        #! normally (without calling coyield, coreset, or coterminate).
-        #! This shouldn't happen.
+        ! At this point, the coroutine quotation must have terminated
+        ! normally (without calling coyield, coreset, or coterminate).
+        ! This shouldn't happen.
         f over
     ] callcc1 2nip ;
 
index 1d48355f04de3a67a515551f29e81d58c58eeb3c..9aab8af27bb9cc83aa38e0e67b1d520a61ba5f6e 100644 (file)
@@ -18,13 +18,13 @@ M: cpu update-video
     3drop ;
 
 M: cpu read-port
-    #! Read a byte from the hardware port. 'port' should
-    #! be an 8-bit value.
+    ! Read a byte from the hardware port. 'port' should
+    ! be an 8-bit value.
     2drop 0 ;
 
 M: cpu write-port
-    #! Write a byte to the hardware port, where 'port' is
-    #! an 8-bit value.
+    ! Write a byte to the hardware port, where 'port' is
+    ! an 8-bit value.
     3drop ;
 
 CONSTANT: carry-flag        0x01
@@ -35,39 +35,39 @@ CONSTANT: zero-flag         0x40
 CONSTANT: sign-flag         0x80
 
 : >word< ( word -- byte byte )
-    #! Explode a word into its two 8 bit values.
+    ! Explode a word into its two 8 bit values.
     dup 0xFF bitand swap -8 shift 0xFF bitand swap ;
 
 : af>> ( cpu -- word )
-    #! Return the 16-bit pseudo register AF.
+    ! Return the 16-bit pseudo register AF.
     [ a>> 8 shift ] keep f>> bitor ;
 
 : af<< ( value cpu -- )
-    #! Set the value of the 16-bit pseudo register AF
+    ! Set the value of the 16-bit pseudo register AF
     [ >word< ] dip swap >>f swap >>a drop ;
 
 : bc>> ( cpu -- word )
-    #! Return the 16-bit pseudo register BC.
+    ! Return the 16-bit pseudo register BC.
     [ b>> 8 shift ] keep c>> bitor ;
 
 : bc<< ( value cpu -- )
-    #! Set the value of the 16-bit pseudo register BC
+    ! Set the value of the 16-bit pseudo register BC
     [ >word< ] dip swap >>c swap >>b drop ;
 
 : de>> ( cpu -- word )
-    #! Return the 16-bit pseudo register DE.
+    ! Return the 16-bit pseudo register DE.
     [ d>> 8 shift ] keep e>> bitor ;
 
 : de<< ( value cpu -- )
-    #! Set the value of the 16-bit pseudo register DE
+    ! Set the value of the 16-bit pseudo register DE
     [ >word< ] dip swap >>e swap >>d drop ;
 
 : hl>> ( cpu -- word )
-    #! Return the 16-bit pseudo register HL.
+    ! Return the 16-bit pseudo register HL.
     [ h>> 8 shift ] keep l>> bitor ;
 
 : hl<< ( value cpu -- )
-    #! Set the value of the 16-bit pseudo register HL
+    ! Set the value of the 16-bit pseudo register HL
     [ >word< ] dip swap >>l swap >>h drop ;
 
 : flag-set? ( flag cpu -- bool )
@@ -77,41 +77,41 @@ CONSTANT: sign-flag         0x80
     f>> bitand 0 = ;
 
 : flag-nz? ( cpu -- bool )
-    #! Test flag status
+    ! Test flag status
     f>> zero-flag bitand 0 = ;
 
 : flag-z? ( cpu -- bool )
-    #! Test flag status
+    ! Test flag status
     f>> zero-flag bitand 0 = not ;
 
 : flag-nc? ( cpu -- bool )
-    #! Test flag status
+    ! Test flag status
     f>> carry-flag bitand 0 = ;
 
 : flag-c? ( cpu -- bool )
-    #! Test flag status
+    ! Test flag status
     f>> carry-flag bitand 0 = not ;
 
 : flag-po? ( cpu -- bool )
-    #! Test flag status
+    ! Test flag status
     f>> parity-flag bitand 0 =  ;
 
 : flag-pe? ( cpu -- bool )
-    #! Test flag status
+    ! Test flag status
     f>> parity-flag bitand 0 = not ;
 
 : flag-p? ( cpu -- bool )
-    #! Test flag status
+    ! Test flag status
     f>> sign-flag bitand 0 = ;
 
 : flag-m? ( cpu -- bool )
-    #! Test flag status
+    ! Test flag status
     f>> sign-flag bitand 0 = not ;
 
 : read-byte ( addr cpu -- byte )
-    #! Read one byte from memory at the specified address.
-    #! The address is 16-bit, but if a value greater than
-    #! 0xFFFF is provided then return a default value.
+    ! Read one byte from memory at the specified address.
+    ! The address is 16-bit, but if a value greater than
+    ! 0xFFFF is provided then return a default value.
     over 0xFFFF <= [
       ram>> nth
     ] [
@@ -119,13 +119,13 @@ CONSTANT: sign-flag         0x80
     ] if ;
 
 : read-word ( addr cpu -- word )
-    #! Read a 16-bit word from memory at the specified address.
-    #! The address is 16-bit, but if a value greater than
-    #! 0xFFFF is provided then return a default value.
+    ! Read a 16-bit word from memory at the specified address.
+    ! The address is 16-bit, but if a value greater than
+    ! 0xFFFF is provided then return a default value.
     [ read-byte ] 2keep [ 1 + ] dip read-byte 8 shift bitor ;
 
 : next-byte ( cpu -- byte )
-    #! Return the value of the byte at PC, and increment PC.
+    ! Return the value of the byte at PC, and increment PC.
     {
       [ pc>> ]
       [ read-byte ]
@@ -134,7 +134,7 @@ CONSTANT: sign-flag         0x80
     } cleave ;
 
 : next-word ( cpu -- word )
-    #! Return the value of the word at PC, and increment PC.
+    ! Return the value of the word at PC, and increment PC.
     [ pc>> ] keep
     [ read-word ] keep
     [ pc>> 2 + ] keep
@@ -142,7 +142,7 @@ CONSTANT: sign-flag         0x80
 
 
 : write-byte ( value addr cpu -- )
-    #! Write a byte to the specified memory address.
+    ! Write a byte to the specified memory address.
     over dup 0x2000 < swap 0xFFFF > or [
       3drop
     ] [
@@ -152,47 +152,47 @@ CONSTANT: sign-flag         0x80
 
 
 : write-word ( value addr cpu -- )
-    #! Write a 16-bit word to the specified memory address.
+    ! Write a 16-bit word to the specified memory address.
     [ >word< ] 2dip [ write-byte ] 2keep [ 1 + ] dip write-byte ;
 
 : cpu-a-bitand ( quot cpu -- )
-    #! A &= quot call
+    ! A &= quot call
     [ a>> swap call bitand ] keep a<< ; inline
 
 : cpu-a-bitor ( quot cpu -- )
-    #! A |= quot call
+    ! A |= quot call
     [ a>> swap call bitor ] keep a<< ; inline
 
 : cpu-a-bitxor ( quot cpu -- )
-    #! A ^= quot call
+    ! A ^= quot call
     [ a>> swap call bitxor ] keep a<< ; inline
 
 : cpu-a-bitxor= ( value cpu -- )
-    #! cpu-a ^= value
+    ! cpu-a ^= value
     [ a>> bitxor ] keep a<< ;
 
 : cpu-f-bitand ( quot cpu -- )
-    #! F &= quot call
+    ! F &= quot call
     [ f>> swap call bitand ] keep f<< ; inline
 
 : cpu-f-bitor ( quot cpu -- )
-    #! F |= quot call
+    ! F |= quot call
     [ f>> swap call bitor ] keep f<< ; inline
 
 : cpu-f-bitxor ( quot cpu -- )
-    #! F |= quot call
+    ! F |= quot call
     [ f>> swap call bitxor ] keep f<< ; inline
 
 : cpu-f-bitor= ( value cpu -- )
-    #! cpu-f |= value
+    ! cpu-f |= value
     [ f>> bitor ] keep f<< ;
 
 : cpu-f-bitand= ( value cpu -- )
-    #! cpu-f &= value
+    ! cpu-f &= value
     [ f>> bitand ] keep f<< ;
 
 : cpu-f-bitxor= ( value cpu -- )
-    #! cpu-f ^= value
+    ! cpu-f ^= value
     [ f>> bitxor ] keep f<< ;
 
 : set-flag ( cpu flag -- )
@@ -202,42 +202,42 @@ CONSTANT: sign-flag         0x80
      bitnot 0xFF bitand swap cpu-f-bitand= ;
 
 : update-zero-flag ( result cpu -- )
-    #! If the result of an instruction has the value 0, this
-    #! flag is set, otherwise it is reset.
+    ! If the result of an instruction has the value 0, this
+    ! flag is set, otherwise it is reset.
     swap 0xFF bitand 0 =
     [ zero-flag set-flag ]
     [ zero-flag clear-flag ] if ;
 
 : update-sign-flag ( result cpu -- )
-    #! If the most significant bit of the result
-    #! has the value 1 then the flag is set, otherwise
-    #! it is reset.
+    ! If the most significant bit of the result
+    ! has the value 1 then the flag is set, otherwise
+    ! it is reset.
     swap 0x80 bitand 0 =
     [ sign-flag clear-flag ]
     [ sign-flag set-flag ] if ;
 
 : update-parity-flag ( result cpu -- )
-    #! If the modulo 2 sum of the bits of the result
-    #! is 0, (ie. if the result has even parity) this flag
-    #! is set, otherwise it is reset.
+    ! If the modulo 2 sum of the bits of the result
+    ! is 0, (ie. if the result has even parity) this flag
+    ! is set, otherwise it is reset.
     swap 0xFF bitand 2 mod 0 =
     [ parity-flag set-flag ]
     [ parity-flag clear-flag ] if ;
 
 : update-carry-flag ( result cpu -- )
-    #! If the instruction resulted in a carry (from addition)
-    #! or a borrow (from subtraction or a comparison) out of the
-    #! higher order bit, this flag is set, otherwise it is reset.
+    ! If the instruction resulted in a carry (from addition)
+    ! or a borrow (from subtraction or a comparison) out of the
+    ! higher order bit, this flag is set, otherwise it is reset.
     swap dup 0x100 >= swap 0 < or
     [ carry-flag set-flag ]
     [ carry-flag clear-flag ] if ;
 
 : update-half-carry-flag ( original change-by result cpu -- )
-    #! If the instruction caused a carry out of bit 3 and into bit 4 of the
-    #! resulting value, the half carry flag is set, otherwise it is reset.
-    #! The 'original' is the original value of the register being changed.
-    #! 'change-by' is the amount it is being added or decremented by.
-    #! 'result' is the result of that change.
+    ! If the instruction caused a carry out of bit 3 and into bit 4 of the
+    ! resulting value, the half carry flag is set, otherwise it is reset.
+    ! The 'original' is the original value of the register being changed.
+    ! 'change-by' is the amount it is being added or decremented by.
+    ! 'result' is the result of that change.
     [ bitxor bitxor 0x10 bitand 0 = not ] dip swap
     [ half-carry-flag set-flag ]
     [ half-carry-flag clear-flag ] if ;
@@ -256,18 +256,18 @@ CONSTANT: sign-flag         0x80
     [ update-zero-flag ] 2tri ;
 
 : add-byte ( lhs rhs cpu -- result )
-    #! Add rhs to lhs
+    ! Add rhs to lhs
     [ 2dup + ] dip
     [ update-flags ] 2keep
     [ update-half-carry-flag ] 2keep
     drop 0xFF bitand ;
 
 : add-carry ( change-by result cpu -- change-by result )
-    #! Add the effect of the carry flag to the result
+    ! Add the effect of the carry flag to the result
     flag-c? [ 1 + [ 1 + ] dip ] when ;
 
 : add-byte-with-carry ( lhs rhs cpu -- result )
-    #! Add rhs to lhs plus carry.
+    ! Add rhs to lhs plus carry.
     [ 2dup + ] dip
     [ add-carry ] keep
     [ update-flags ] 2keep
@@ -275,18 +275,18 @@ CONSTANT: sign-flag         0x80
     drop 0xFF bitand ;
 
 : sub-carry ( change-by result cpu -- change-by result )
-    #! Subtract the effect of the carry flag from the result
+    ! Subtract the effect of the carry flag from the result
     flag-c? [ 1 - [ 1 - ] dip  ] when ;
 
 : sub-byte ( lhs rhs cpu -- result )
-    #! Subtract rhs from lhs
+    ! Subtract rhs from lhs
     [ 2dup - ] dip
     [ update-flags ] 2keep
     [ update-half-carry-flag ] 2keep
     drop 0xFF bitand ;
 
 : sub-byte-with-carry ( lhs rhs cpu -- result )
-    #! Subtract rhs from lhs and take carry into account
+    ! Subtract rhs from lhs and take carry into account
     [ 2dup - ] dip
     [ sub-carry ] keep
     [ update-flags ] 2keep
@@ -294,41 +294,41 @@ CONSTANT: sign-flag         0x80
     drop 0xFF bitand ;
 
 : inc-byte ( byte cpu -- result )
-    #! Increment byte by one. Note that carry flag is not affected
-    #! by this operation.
+    ! Increment byte by one. Note that carry flag is not affected
+    ! by this operation.
     [ 1 2dup + ] dip
     [ update-flags-no-carry ] 2keep
     [ update-half-carry-flag ] 2keep
     drop 0xFF bitand ;
 
 : dec-byte ( byte cpu -- result )
-    #! Decrement byte by one. Note that carry flag is not affected
-    #! by this operation.
+    ! Decrement byte by one. Note that carry flag is not affected
+    ! by this operation.
     [ 1 2dup - ] dip
     [ update-flags-no-carry ] 2keep
     [ update-half-carry-flag ] 2keep
     drop 0xFF bitand ;
 
 : inc-word ( w cpu -- w )
-    #! Increment word by one. Note that no flags are modified.
+    ! Increment word by one. Note that no flags are modified.
     drop 1 + 0xFFFF bitand ;
 
 : dec-word ( w cpu -- w )
-    #! Decrement word by one. Note that no flags are modified.
+    ! Decrement word by one. Note that no flags are modified.
     drop 1 - 0xFFFF bitand ;
 
 : add-word ( lhs rhs cpu -- result )
-    #! Add rhs to lhs. Note that only the carry flag is modified
-    #! and only if there is a carry out of the double precision add.
+    ! Add rhs to lhs. Note that only the carry flag is modified
+    ! and only if there is a carry out of the double precision add.
     [ + ] dip over 0xFFFF > [ carry-flag set-flag ] [ drop ] if 0xFFFF bitand ;
 
 : bit3or ( lhs rhs -- 0|1 )
-    #! bitor bit 3 of the two numbers on the stack
+    ! bitor bit 3 of the two numbers on the stack
     [ 0b00001000 bitand -3 shift ] bi@ bitor ;
 
 : and-byte ( lhs rhs cpu -- result )
-    #! Logically and rhs to lhs. The carry flag is cleared and
-    #! the half carry is set to the ORing of bits 3 of the operands.
+    ! Logically and rhs to lhs. The carry flag is cleared and
+    ! the half carry is set to the ORing of bits 3 of the operands.
     [ drop bit3or ] 3keep ! bit3or lhs rhs cpu
     [ bitand ] dip [ update-flags ] 2keep
     [ carry-flag clear-flag ] keep
@@ -336,31 +336,31 @@ CONSTANT: sign-flag         0x80
     0xFF bitand ;
 
 : xor-byte ( lhs rhs cpu -- result )
-    #! Logically xor rhs to lhs. The carry and half-carry flags are cleared.
+    ! Logically xor rhs to lhs. The carry and half-carry flags are cleared.
     [ bitxor ] dip [ update-flags ] 2keep
     half-carry-flag carry-flag bitor clear-flag
     0xFF bitand ;
 
 : or-byte ( lhs rhs cpu -- result )
-    #! Logically or rhs to lhs. The carry and half-carry flags are cleared.
+    ! Logically or rhs to lhs. The carry and half-carry flags are cleared.
     [ bitor ] dip [ update-flags ] 2keep
     half-carry-flag carry-flag bitor clear-flag
     0xFF bitand ;
 
 : decrement-sp ( n cpu -- )
-    #! Decrement the stackpointer by n.
+    ! Decrement the stackpointer by n.
     [ sp>> swap - ] keep sp<< ;
 
 : save-pc ( cpu -- )
-    #! Save the value of the PC on the stack.
+    ! Save the value of the PC on the stack.
     [ pc>> ] [ sp>> ] [ write-word ] tri ;
 
 : push-pc ( cpu -- )
-    #! Push the value of the PC on the stack.
+    ! Push the value of the PC on the stack.
     [ 2 swap decrement-sp ] [ save-pc ] bi ;
 
 : pop-pc ( cpu -- pc )
-    #! Pop the value of the PC off the stack.
+    ! Pop the value of the PC off the stack.
     [ sp>> ] [ read-word ] [ -2 swap decrement-sp ] tri ;
 
 : push-sp ( value cpu -- )
@@ -370,7 +370,7 @@ CONSTANT: sign-flag         0x80
     [ sp>> ] [ read-word ] [ -2 swap decrement-sp ] tri ;
 
 : call-sub ( addr cpu -- )
-    #! Call the address as a subroutine.
+    ! Call the address as a subroutine.
     dup push-pc
     [ 0xFFFF bitand ] dip pc<< ;
 
@@ -378,7 +378,7 @@ CONSTANT: sign-flag         0x80
     [ pop-pc ] keep pc<< ;
 
 : interrupt ( number cpu -- )
-    #! Perform a hardware interrupt
+    ! Perform a hardware interrupt
 !  "***Interrupt: " write over >hex print
     dup f>> interrupt-flag bitand 0 = not [
       dup push-pc
@@ -388,12 +388,12 @@ CONSTANT: sign-flag         0x80
     ] if ;
 
 : inc-cycles ( n cpu -- )
-    #! Increment the number of cpu cycles
+    ! Increment the number of cpu cycles
     [ cycles>> + ] keep cycles<< ;
 
 : instruction-cycles ( -- vector )
-    #! Return a 256 element vector containing the cycles for
-    #! each opcode in the 8080 instruction set.
+    ! Return a 256 element vector containing the cycles for
+    ! each opcode in the 8080 instruction set.
     \ instruction-cycles get-global [
       256 f <array> \ instruction-cycles set-global
     ] unless
@@ -403,8 +403,8 @@ CONSTANT: sign-flag         0x80
     drop ;
 
 : instructions ( -- vector )
-    #! Return a 256 element vector containing the emulation words for
-    #! each opcode in the 8080 instruction set.
+    ! Return a 256 element vector containing the emulation words for
+    ! each opcode in the 8080 instruction set.
     \ instructions get-global [
       256 [ not-implemented ] <array> \ instructions set-global
     ] unless
@@ -414,7 +414,7 @@ CONSTANT: sign-flag         0x80
     instructions set-nth ;
 
 M: cpu reset
-    #! Reset the CPU to its poweron state
+    ! Reset the CPU to its poweron state
     0 >>b
     0 >>c
     0 >>d
@@ -440,11 +440,11 @@ M: cpu reset
         2drop
     ] if* ;
 
-    #! Reads the ROM from stdin and stores it in ROM from
-    #! offset n.
+    ! Reads the ROM from stdin and stores it in ROM from
+    ! offset n.
 : load-rom ( filename cpu -- )
-    #! Load the contents of the file into ROM.
-    #! (address 0x0000-0x1FFF).
+    ! Load the contents of the file into ROM.
+    ! (address 0x0000-0x1FFF).
     ram>> swap binary [
         0 swap (load-rom)
     ] with-file-reader ;
@@ -457,10 +457,10 @@ SYMBOL: rom-root
     ] unless* ;
 
 : load-rom* ( seq cpu -- )
-    #! 'seq' is an array of arrays. Each array contains
-    #! an address and filename of a ROM file. The ROM
-    #! file will be loaded at the specified address. This
-    #! file path shoul dbe relative to the '/roms' resource path.
+    ! 'seq' is an array of arrays. Each array contains
+    ! an address and filename of a ROM file. The ROM
+    ! file will be loaded at the specified address. This
+    ! file path shoul dbe relative to the '/roms' resource path.
     rom-dir [
         ram>> [
             swap first2 rom-dir prepend-path binary [
@@ -474,8 +474,8 @@ SYMBOL: rom-root
     ] if ;
 
 : read-instruction ( cpu -- word )
-    #! Read the next instruction from the cpu's program
-    #! counter, and increment the program counter.
+    ! Read the next instruction from the cpu's program
+    ! counter, and increment the program counter.
     [ pc>> ] keep ! pc cpu
     [ over 1 + swap pc<< ] keep
     read-byte ;
@@ -483,8 +483,8 @@ SYMBOL: rom-root
 ERROR: undefined-8080-opcode n ;
 
 : get-cycles ( n -- opcode )
-    #! Returns the cycles for the given instruction value.
-    #! If the opcode is not defined throw an error.
+    ! Returns the cycles for the given instruction value.
+    ! If the opcode is not defined throw an error.
     dup instruction-cycles nth [
         nip
     ] [
@@ -492,7 +492,7 @@ ERROR: undefined-8080-opcode n ;
     ] if* ;
 
 : process-interrupts ( cpu -- )
-    #! Process any hardware interrupts
+    ! Process any hardware interrupts
     [ cycles>> ] keep
     over 16667 < [
         2drop
@@ -506,8 +506,8 @@ ERROR: undefined-8080-opcode n ;
     ] if ;
 
 : peek-instruction ( cpu -- word )
-    #! Return the next instruction from the cpu's program
-    #! counter, but don't increment the counter.
+    ! Return the next instruction from the cpu's program
+    ! counter, but don't increment the counter.
     [ pc>> ] keep read-byte instructions nth first ;
 
 : cpu. ( cpu -- )
@@ -544,9 +544,9 @@ ERROR: undefined-8080-opcode n ;
     } cleave ;
 
 : register-lookup ( string -- vector )
-    #! Given a string containing a register name, return a vector
-    #! where the 1st item is the getter and the 2nd is the setter
-    #! for that register.
+    ! Given a string containing a register name, return a vector
+    ! where the 1st item is the getter and the 2nd is the setter
+    ! for that register.
     H{
         { "A"  { a>>  a<<  } }
         { "B"  { b>>  b<<  } }
@@ -564,8 +564,8 @@ ERROR: undefined-8080-opcode n ;
 
 
 : flag-lookup ( string -- vector )
-    #! Given a string containing a flag name, return a vector
-    #! where the 1st item is a word that tests that flag.
+    ! Given a string containing a flag name, return a vector
+    ! where the 1st item is a word that tests that flag.
     H{
         { "NZ" { flag-nz?  } }
         { "NC" { flag-nc?  } }
@@ -591,7 +591,7 @@ SYMBOLS: $1 $2 $3 $4 ;
     ] with deep-map ;
 
 : (emulate-RST) ( n cpu -- )
-    #! RST nn
+    ! RST nn
     [ sp>> 2 - dup ] keep ! sp sp cpu
     [ sp<< ] keep ! sp cpu
     [ pc>> ] keep ! sp pc cpu
@@ -599,7 +599,7 @@ SYMBOLS: $1 $2 $3 $4 ;
     [ 8 * ] dip pc<< ;
 
 : (emulate-CALL) ( cpu -- )
-    #! 205 - CALL nn
+    ! 205 - CALL nn
     [ next-word 0xFFFF bitand ] keep ! addr cpu
     [ sp>> 2 - dup ] keep ! addr sp sp cpu
     [ sp<< ] keep ! addr sp cpu
@@ -608,58 +608,58 @@ SYMBOLS: $1 $2 $3 $4 ;
     pc<< ;
 
 : (emulate-RLCA) ( cpu -- )
-    #! The content of the accumulator is rotated left
-    #! one position. The low order bit and the carry flag
-    #! are both set to the value shifd out of the high
-    #! order bit position. Only the carry flag is affected.
+    ! The content of the accumulator is rotated left
+    ! one position. The low order bit and the carry flag
+    ! are both set to the value shifd out of the high
+    ! order bit position. Only the carry flag is affected.
     [ a>> -7 shift ] keep
     over 0 = [ dup carry-flag clear-flag ] [ dup carry-flag set-flag ] if
     [ a>> 1 shift 0xFF bitand ] keep
     [ bitor ] dip a<< ;
 
 : (emulate-RRCA) ( cpu -- )
-    #! The content of the accumulator is rotated right
-    #! one position. The high order bit and the carry flag
-    #! are both set to the value shifd out of the low
-    #! order bit position. Only the carry flag is affected.
+    ! The content of the accumulator is rotated right
+    ! one position. The high order bit and the carry flag
+    ! are both set to the value shifd out of the low
+    ! order bit position. Only the carry flag is affected.
     [ a>> 1 bitand 7 shift ] keep
     over 0 = [ dup carry-flag clear-flag ] [ dup carry-flag set-flag ] if
     [ a>> 254 bitand -1 shift ] keep
     [ bitor ] dip a<< ;
 
 : (emulate-RLA) ( cpu -- )
-    #! The content of the accumulator is rotated left
-    #! one position through the carry flag. The low
-    #! order bit is set equal to the carry flag and
-    #! the carry flag is set to the value shifd out
-    #! of the high order bit. Only the carry flag is
-    #! affected.
+    ! The content of the accumulator is rotated left
+    ! one position through the carry flag. The low
+    ! order bit is set equal to the carry flag and
+    ! the carry flag is set to the value shifd out
+    ! of the high order bit. Only the carry flag is
+    ! affected.
     [ carry-flag swap flag-set? [ 1 ] [ 0 ] if ] keep
     [ a>> 127 bitand 7 shift ] keep
     dup a>> 128 bitand 0 = [ dup carry-flag clear-flag ] [ dup carry-flag set-flag ] if
     [ bitor ] dip a<< ;
 
 : (emulate-RRA) ( cpu -- )
-    #! The content of the accumulator is rotated right
-    #! one position through the carry flag. The high order
-    #! bit is set to the carry flag and the carry flag is
-    #! set to the value shifd out of the low order bit.
-    #! Only the carry flag is affected.
+    ! The content of the accumulator is rotated right
+    ! one position through the carry flag. The high order
+    ! bit is set to the carry flag and the carry flag is
+    ! set to the value shifd out of the low order bit.
+    ! Only the carry flag is affected.
     [ carry-flag swap flag-set? [ 0b10000000 ] [ 0 ] if ] keep
     [ a>> 254 bitand -1 shift ] keep
     dup a>> 1 bitand 0 = [ dup carry-flag clear-flag ] [ dup carry-flag set-flag ] if
     [ bitor ] dip a<< ;
 
 : (emulate-CPL) ( cpu -- )
-    #! The contents of the accumulator are complemented
-    #! (zero bits become one, one bits becomes zero).
-    #! No flags are affected.
+    ! The contents of the accumulator are complemented
+    ! (zero bits become one, one bits becomes zero).
+    ! No flags are affected.
     0xFF swap cpu-a-bitxor= ;
 
 : (emulate-DAA) ( cpu -- )
-    #! The eight bit number in the accumulator is
-    #! adjusted to form two four-bit binary-coded-decimal
-    #! digits.
+    ! The eight bit number in the accumulator is
+    ! adjusted to form two four-bit binary-coded-decimal
+    ! digits.
     [
         dup half-carry-flag swap flag-set? swap
         a>> 0b1111 bitand 9 > or [ 6 ] [ 0 ] if
@@ -676,7 +676,7 @@ SYMBOLS: $1 $2 $3 $4 ;
     swap 0xFF bitand swap a<< ;
 
 : patterns ( -- hashtable )
-    #! table of code quotation patterns for each type of instruction.
+    ! table of code quotation patterns for each type of instruction.
     H{
         { "NOP" [ drop ] }
         { "RET-NN" [ ret-from-sub ] }
@@ -756,59 +756,59 @@ SYMBOLS: $1 $2 $3 $4 ;
     } ;
 
 : 8-bit-registers ( -- parser )
-    #! A parser for 8-bit registers. On a successfull parse the
-    #! parse tree contains a vector. The first item in the vector
-    #! is the getter word for that register with stack effect
-    #! ( cpu -- value ). The second item is the setter word with
-    #! stack effect ( value cpu -- ).
+    ! A parser for 8-bit registers. On a successfull parse the
+    ! parse tree contains a vector. The first item in the vector
+    ! is the getter word for that register with stack effect
+    ! ( cpu -- value ). The second item is the setter word with
+    ! stack effect ( value cpu -- ).
     <EBNF
         main=("A" | "B" | "C" | "D" | "E" | "H" | "L") => [[ register-lookup ]]
     EBNF> ;
 
 : all-flags ( -- parser )
-    #! A parser for 16-bit flags.
+    ! A parser for 16-bit flags.
     <EBNF
         main=("NZ" | "NC" | "PO" | "PE" | "Z" | "C" | "P" | "M") => [[ flag-lookup ]]
     EBNF> ;
 
 : 16-bit-registers ( -- parser )
-    #! A parser for 16-bit registers. On a successfull parse the
-    #! parse tree contains a vector. The first item in the vector
-    #! is the getter word for that register with stack effect
-    #! ( cpu -- value ). The second item is the setter word with
-    #! stack effect ( value cpu -- ).
+    ! A parser for 16-bit registers. On a successfull parse the
+    ! parse tree contains a vector. The first item in the vector
+    ! is the getter word for that register with stack effect
+    ! ( cpu -- value ). The second item is the setter word with
+    ! stack effect ( value cpu -- ).
     <EBNF
         main=("AF" | "BC" | "DE" | "HL" | "SP") => [[ register-lookup ]]
     EBNF> ;
 
 : all-registers ( -- parser )
-    #! Return a parser that can parse the format
-    #! for 8 bit or 16 bit registers.
+    ! Return a parser that can parse the format
+    ! for 8 bit or 16 bit registers.
     [ 16-bit-registers , 8-bit-registers , ] choice* ;
 
 : indirect ( parser -- parser )
-    #! Given a parser, return a parser which parses the original
-    #! wrapped in brackets, representing an indirect reference.
-    #! eg. BC -> (BC). The value of the original parser is left in
-    #! the parse tree.
+    ! Given a parser, return a parser which parses the original
+    ! wrapped in brackets, representing an indirect reference.
+    ! eg. BC -> (BC). The value of the original parser is left in
+    ! the parse tree.
     "(" ")" surrounded-by ;
 
 : generate-instruction ( vector string -- quot )
-    #! Generate the quotation for an instruction, given the instruction in
-    #! the 'string' and a vector containing the arguments for that instruction.
+    ! Generate the quotation for an instruction, given the instruction in
+    ! the 'string' and a vector containing the arguments for that instruction.
     patterns at replace-patterns ;
 
 : simple-instruction ( token -- parser )
-    #! Return a parser for then instruction identified by the token.
-    #! The parser return parses the token only and expects no additional
-    #! arguments to the instruction.
+    ! Return a parser for then instruction identified by the token.
+    ! The parser return parses the token only and expects no additional
+    ! arguments to the instruction.
     token [ '[ { } _ generate-instruction ] ] action ;
 
 : complex-instruction ( type token -- parser )
-    #! Return a parser for an instruction identified by the token.
-    #! The instruction is expected to take additional arguments by
-    #! being combined with other parsers. Then 'type' is used for a lookup
-    #! in a pattern hashtable to return the instruction quotation pattern.
+    ! Return a parser for an instruction identified by the token.
+    ! The instruction is expected to take additional arguments by
+    ! being combined with other parsers. Then 'type' is used for a lookup
+    ! in a pattern hashtable to return the instruction quotation pattern.
     token swap [ nip '[ _ generate-instruction ] ] curry action ;
 
 : no-params ( ast -- ast )
@@ -1164,7 +1164,7 @@ SYMBOLS: $1 $2 $3 $4 ;
     ] seq* [ two-params ] action ;
 
 : LD-RR,NN-instruction ( -- parser )
-    #! LD BC,nn
+    ! LD BC,nn
     [
       "LD-RR,NN" "LD" complex-instruction ,
       16-bit-registers sp ,
@@ -1172,7 +1172,7 @@ SYMBOLS: $1 $2 $3 $4 ;
     ] seq* [ one-param ] action ;
 
 : LD-R,N-instruction ( -- parser )
-    #! LD B,n
+    ! LD B,n
     [
       "LD-R,N" "LD" complex-instruction ,
       8-bit-registers sp ,
@@ -1187,7 +1187,7 @@ SYMBOLS: $1 $2 $3 $4 ;
     ] seq* [ one-param ] action ;
 
 : LD-(RR),R-instruction ( -- parser )
-    #! LD (BC),A
+    ! LD (BC),A
     [
       "LD-(RR),R" "LD" complex-instruction ,
       16-bit-registers indirect sp ,
@@ -1363,18 +1363,18 @@ SYMBOLS: $1 $2 $3 $4 ;
     ] choice* [ call( -- quot ) ] action ;
 
 : instruction-quotations ( string -- emulate-quot )
-    #! Given an instruction string, return the emulation quotation for
-    #! it. This will later be expanded to produce the disassembly and
-    #! assembly quotations.
+    ! Given an instruction string, return the emulation quotation for
+    ! it. This will later be expanded to produce the disassembly and
+    ! assembly quotations.
     8080-generator-parser parse ;
 
 SYMBOL: last-instruction
 SYMBOL: last-opcode
 
 : parse-instructions ( list -- )
-    #! Process the list of strings, which should make
-    #! up an 8080 instruction, and output a quotation
-    #! that would implement that instruction.
+    ! Process the list of strings, which should make
+    ! up an 8080 instruction, and output a quotation
+    ! that would implement that instruction.
     dup " " join instruction-quotations
     [
        "_" join [ "emulate-" % % ] "" make create-word-in
@@ -1384,10 +1384,10 @@ SYMBOL: last-opcode
 SYNTAX: INSTRUCTION: ";" parse-tokens parse-instructions ;
 
 SYNTAX: cycles:
-    #! Set the number of cycles for the last instruction that was defined.
+    ! Set the number of cycles for the last instruction that was defined.
     scan-token string>number last-opcode get-global instruction-cycles set-nth ;
 
 SYNTAX: opcode:
-    #! Set the opcode number for the last instruction that was defined.
+    ! Set the opcode number for the last instruction that was defined.
     last-instruction get-global 1quotation scan-token hex>
     dup last-opcode set-global set-instruction ;
index 8bbf743602f4b070f402dcd34aa828d1a38d216a..de093ac059f82a462f8b0a8ba120af7538ade6b0 100644 (file)
@@ -15,7 +15,7 @@ USING:
 IN: cpu.8080.test
 
 : step ( cpu -- )
-  #! Run a single 8080 instruction
+  ! Run a single 8080 instruction
   [ read-instruction ] keep ! n cpu
   over get-cycles over inc-cycles
   [ swap instructions nth call( cpu -- ) ] keep
@@ -47,7 +47,7 @@ IN: cpu.8080.test
   [ 8 <bits> ] dip each ; inline
 
 : >ppm ( cpu filename -- cpu )
-  #! Dump the current screen image to a ppm image file with the given name.
+  ! Dump the current screen image to a ppm image file with the given name.
   ascii [
     "P3" print
     "256 224" print
index eb2fb3d608673fd792e6f95b7f84726c4b8cd0a2..cd04754387ce2311a61e3fdb0b588b9b20740e13 100644 (file)
@@ -57,7 +57,7 @@ SYMBOL: cond-code
     cond-code set ;
 
 : CC> ( -- n )
-    #! Default value is 0b1110 AL (= always)
+    ! Default value is 0b1110 AL (= always)
     cond-code [ f ] change 0b1110 or ;
 
 : EQ ( -- ) 0b0000 >CC ;
index d3caebb91099b3b5f354c28263640849f26a8462..ed331318e58cb57f905abf064b350196d4059d30 100644 (file)
@@ -170,7 +170,7 @@ V{ 729683222 682545830 2885096840 164581180 2700803607 2287217841
    2893506291 435870753 684796225 1465647214 3491035560 3387827593
    3779005640 3059944614 }
 } [
-  HEX{ 2b 7e 15 16 28 ae d2 a6 ab f7 15 88 09 cf 4f 3c } #! AES-128 key expansion test vector from FIPS-197 (appendix)
+  HEX{ 2b 7e 15 16 28 ae d2 a6 ab f7 15 88 09 cf 4f 3c } ! AES-128 key expansion test vector from FIPS-197 (appendix)
         10 (expand-enc-key)
     ] unit-test
 
index 36c73842c221a1ac3363d7588dd238195f404149..b655f607abf99011340afb9d1421cefff91c1964 100644 (file)
@@ -11,9 +11,9 @@ CONSTANT: AES_BLOCK_SIZE 16
 #! FIPS-197 AES
 #! input block, state, output block -- 4 32-bit words
 CONSTANT: FIPS-197 {
-    { 128 10 } #! aes-128 -- Key(4) Block(4) Rounds(10)
-    { 192 12 } #! aes-192 -- Key(6) Block(4) Rounds(12)
-    { 256 14 } #! aes-256 -- Key(8) Block(4) Rounds(14)
+    { 128 10 } ! aes-128 -- Key(4) Block(4) Rounds(10)
+    { 192 12 } ! aes-192 -- Key(6) Block(4) Rounds(12)
+    { 256 14 } ! aes-256 -- Key(8) Block(4) Rounds(14)
 }
 
 <PRIVATE
@@ -156,7 +156,7 @@ M: aes-256-key key-expand-round ( temp i -- temp' )
     [ dup 4th-from-end ] dip bitxor suffix! ; inline
 
 : (sched-interval) ( K Nr -- seq )
-    [ length ] dip 1 + 4 * [a,b) ;    #! over the interval Nk...Nb(Nr + 1)
+    [ length ] dip 1 + 4 * [a,b) ;    ! over the interval Nk...Nb(Nr + 1)
 
 : (init-round) ( out -- out temp quot )
     [ ]
@@ -211,16 +211,16 @@ SINGLETON: aes-encrypt
 #! rotate each row n times, transpose again, and then
 #! smash them back into 4-byte words.
 :: (shift-rows) ( c0 c1 c2 c3 -- c0' c1' c2' c3' )
-    c3 gb0   c2 gb1   c1 gb2   c0 gb3   >ui32   #! c0'
-    c0 gb0   c3 gb1   c2 gb2   c1 gb3   >ui32   #! c1'
-    c1 gb0   c0 gb1   c3 gb2   c2 gb3   >ui32   #! c2'
-    c2 gb0   c1 gb1   c0 gb2   c3 gb3   >ui32 ; #! c3'
+    c3 gb0   c2 gb1   c1 gb2   c0 gb3   >ui32   ! c0'
+    c0 gb0   c3 gb1   c2 gb2   c1 gb3   >ui32   ! c1'
+    c1 gb0   c0 gb1   c3 gb2   c2 gb3   >ui32   ! c2'
+    c2 gb0   c1 gb1   c0 gb2   c3 gb3   >ui32 ; ! c3'
 
 :: (unshift-rows) ( c0 c1 c2 c3 -- c0' c1' c2' c3' )
-    c1 gb0   c2 gb1   c3 gb2   c0 gb3   >ui32   #! c0'
-    c2 gb0   c3 gb1   c0 gb2   c1 gb3   >ui32   #! c1'
-    c3 gb0   c0 gb1   c1 gb2   c2 gb3   >ui32   #! c2'
-    c0 gb0   c1 gb1   c2 gb2   c3 gb3   >ui32 ; #! c3'
+    c1 gb0   c2 gb1   c3 gb2   c0 gb3   >ui32   ! c0'
+    c2 gb0   c3 gb1   c0 gb2   c1 gb3   >ui32   ! c1'
+    c3 gb0   c0 gb1   c1 gb2   c2 gb3   >ui32   ! c2'
+    c0 gb0   c1 gb1   c2 gb2   c3 gb3   >ui32 ; ! c3'
 
 : (add-round-key) ( key state -- state' )
    4 [ bitxor ] unrolled-2map ;
index 10f99058b5e51140026e97b3b037f55824425ddd..2b5e63f7f7a0419431b5fdd40a53c2d1ceeb97f1 100644 (file)
@@ -4,7 +4,7 @@ USING: kernel math math.functions ;
 IN: crypto.barrett
 
 : barrett-mu ( n size -- mu )
-    #! Calculates Barrett's reduction parameter mu
-    #! size = word size in bits (8, 16, 32, 64, ...)
+    ! Calculates Barrett's reduction parameter mu
+    ! size = word size in bits (8, 16, 32, 64, ...)
     [ [ log2 1 + ] [ / 2 * ] bi* ]
     [ 2^ rot ^ swap /i ] 2bi ;
index a712a1a1f355fc195005b4aebdf67ad6ece7a65a..0fc59da8aaffe665c921a65d39323a58e187f06b 100644 (file)
@@ -24,7 +24,7 @@ CONSTANT: public-key 65537
     2/ 2 swap unique-primes first2 ;
 
 : modulus-phi ( numbits -- n phi )
-    #! Loop until phi is not divisible by the public key.
+    ! Loop until phi is not divisible by the public key.
     dup rsa-primes [ * ] 2keep
     [ 1 - ] bi@ *
     dup public-key coprime? [
index 4063426d5e2d524f6725655045bd105313f09344..0b7ec5f74a27180862f5259264f5072eb401f2d4 100644 (file)
@@ -6,11 +6,11 @@ USE: kernel-internals
 "browser-dom" set-in
 
 : elements ( string -- result )
-  #! Call JQuery's $ function
+  ! Call JQuery's $ function
   window { "result" } "" "$" { "string" } alien-invoke ;
   
 : html ( string -- element ) 
-  #! Set the innerHTML of element using jQuery
+  ! Set the innerHTML of element using jQuery
   { } "" "html" { "string" } alien-invoke ;
 
 : bind-event ( name element quot -- )
@@ -35,5 +35,5 @@ USE: kernel-internals
   ] callcc0 ;
   
 : alert ( string -- )
-  #! Display the string in an alert box
+  ! Display the string in an alert box
   window { } "" "alert" { "string" } alien-invoke ;
index 921f434b31e20c69791f8c2c46912d51396de3a7..b30a9937767e5af0bdba2c836a22a2bbf41a7d84 100644 (file)
@@ -19,66 +19,66 @@ SYMBOL: html
 CONSTANT: elements-vocab "html.elements"
 
 : html-word ( name def effect -- )
-    #! Define 'word creating' word to allow
-    #! dynamically creating words.
+    ! Define 'word creating' word to allow
+    ! dynamically creating words.
     [ elements-vocab create-word ] 2dip define-declared ;
 
 : <foo> ( str -- <str> ) "<" ">" surround ;
 
 : def-for-html-word-<foo> ( name -- )
-    #! Return the name and code for the <foo> patterned
-    #! word.
+    ! Return the name and code for the <foo> patterned
+    ! word.
     dup <foo> swap '[ _ <foo> write-html ]
     ( -- ) html-word ;
 
 : <foo ( str -- <str ) "<" prepend ;
 
 : def-for-html-word-<foo ( name -- )
-    #! Return the name and code for the <foo patterned
-    #! word.
+    ! Return the name and code for the <foo patterned
+    ! word.
     <foo dup '[ _ write-html ]
     ( -- ) html-word ;
 
 : foo> ( str -- foo> ) ">" append ;
 
 : def-for-html-word-foo> ( name -- )
-    #! Return the name and code for the foo> patterned
-    #! word.
+    ! Return the name and code for the foo> patterned
+    ! word.
     foo> [ ">" write-html ] ( -- ) html-word ;
 
 : </foo> ( str -- </str> ) "</" ">" surround ;
 
 : def-for-html-word-</foo> ( name -- )
-    #! Return the name and code for the </foo> patterned
-    #! word.
+    ! Return the name and code for the </foo> patterned
+    ! word.
     </foo> dup '[ _ write-html ] ( -- ) html-word ;
 
 : <foo/> ( str -- <str/> ) "<" "/>" surround ;
 
 : def-for-html-word-<foo/> ( name -- )
-    #! Return the name and code for the <foo/> patterned
-    #! word.
+    ! Return the name and code for the <foo/> patterned
+    ! word.
     dup <foo/> swap '[ _ <foo/> write-html ]
     ( -- ) html-word ;
 
 : foo/> ( str -- str/> ) "/>" append ;
 
 : def-for-html-word-foo/> ( name -- )
-    #! Return the name and code for the foo/> patterned
-    #! word.
+    ! Return the name and code for the foo/> patterned
+    ! word.
     foo/> [ "/>" write-html ] ( -- ) html-word ;
 
 : define-closed-html-word ( name -- )
-    #! Given an HTML tag name, define the words for
-    #! that closable HTML tag.
+    ! Given an HTML tag name, define the words for
+    ! that closable HTML tag.
     dup def-for-html-word-<foo>
     dup def-for-html-word-<foo
     dup def-for-html-word-foo>
     def-for-html-word-</foo> ;
 
 : define-open-html-word ( name -- )
-    #! Given an HTML tag name, define the words for
-    #! that open HTML tag.
+    ! Given an HTML tag name, define the words for
+    ! that open HTML tag.
     dup def-for-html-word-<foo/>
     dup def-for-html-word-<foo
     def-for-html-word-foo/> ;
index c64f4907d89e5db8c36c034b029172313a4cf069..d0b4177d2389b14c0c3ff6b98850be8f1dc5dc3d 100644 (file)
@@ -169,7 +169,7 @@ ERROR: bad-tga-unsupported ;
     ] map >hashtable ; inline
 
 :: read-tga ( -- image )
-    #! Read header
+    ! Read header
     read-id-length                                       :> id-length
     read-color-map-type                                  :> map-type
     read-image-type                                      :> image-type
@@ -187,13 +187,13 @@ ERROR: bad-tga-unsupported ;
     image-width image-height pixel-depth read-image-data :> image-data
 
     [
-        #! Read optional footer
+        ! Read optional footer
         26 seek-end seek-input
         read-extension-area-offset      :> extension-offset
         read-developer-directory-offset :> directory-offset
         read-signature
 
-        #! Read optional extension section
+        ! Read optional extension section
         extension-offset 0 =
         [
             extension-offset seek-absolute seek-input
@@ -228,7 +228,7 @@ ERROR: bad-tga-unsupported ;
             scan-line-offset seek-absolute seek-input
             image-height read-scan-line-table :> scan-offsets
 
-            #! Read optional developer section
+            ! Read optional developer section
             directory-offset 0 =
             [ f ]
             [
@@ -238,14 +238,14 @@ ERROR: bad-tga-unsupported ;
         ] unless
     ] ignore-errors
 
-    #! Only 24-bit uncompressed BGR and 32-bit uncompressed BGRA are supported.
-    #! Other formats would need to be converted to work within the image class.
+    ! Only 24-bit uncompressed BGR and 32-bit uncompressed BGRA are supported.
+    ! Other formats would need to be converted to work within the image class.
     map-type 0 = [ bad-tga-unsupported ] unless
     image-type 2 = [ bad-tga-unsupported ] unless
     pixel-depth { 24 32 } member? [ bad-tga-unsupported ] unless
     pixel-order { 0 2 } member? [ bad-tga-unsupported ] unless
 
-    #! Create image instance
+    ! Create image instance
     image new
     alpha-bits 0 = [ BGR ] [ BGRA ] if >>component-order
     { image-width image-height }       >>dim
@@ -262,11 +262,11 @@ M: tga-image image>stream
         component-order>> { BGRA BGRA } member? [ bad-tga-unsupported ] unless
     ] keep
 
-    B{ 0 }         write #! id-length
-    B{ 0 }         write #! map-type
-    B{ 2 }         write #! image-type
-    B{ 0 0 0 0 0 } write #! color map first, length, entry size
-    B{ 0 0 0 0 }   write #! x-origin, y-origin
+    B{ 0 }         write ! id-length
+    B{ 0 }         write ! map-type
+    B{ 2 }         write ! image-type
+    B{ 0 0 0 0 0 } write ! color map first, length, entry size
+    B{ 0 0 0 0 }   write ! x-origin, y-origin
     {
         [ dim>> first 2 >le write ]
         [ dim>> second 2 >le write ]
index 9e5d248c989726c93149a44476af3196109ece06..7816907a7d882e54ebc936be96fd435314ab4ea5 100644 (file)
@@ -43,7 +43,7 @@ CONSTANT: wall-drawing-offset 0.15
     swap [ segment-vertex ] keep dupd segment-vertex-normal ;
 
 : equally-spaced-radians ( n -- seq )
-    #! return a sequence of n numbers between 0 and 2pi
+    ! return a sequence of n numbers between 0 and 2pi
     [ iota ] keep [ / pi 2 * * ] curry map ;
 
 : draw-segment-vertex ( segment theta -- )
index 967ab10cd775b3b045be59b9def3c6ea306f983f..36199a00b673d44789aee2ac8fd7d9bfe4716583 100644 (file)
@@ -43,11 +43,11 @@ M: jamshred-gadget ungraft* ( gadget -- )
     / pi 4 * * ; ! 2 / / pi 2 * * ;
 
 : x>radians ( x gadget -- theta )
-    #! translate motion of x pixels to an angle
+    ! translate motion of x pixels to an angle
     dim>> first pix>radians neg ;
 
 : y>radians ( y gadget -- theta )
-    #! translate motion of y pixels to an angle
+    ! translate motion of y pixels to an angle
     dim>> second pix>radians ;
 
 : (handle-mouse-motion) ( jamshred-gadget mouse-motion -- )
index b50d9ac2fbbe1b5765413c2263b96d3afb75df56..8d9bfdca0c9a6642d704e3ddb7dc521087e0662d 100644 (file)
@@ -62,7 +62,7 @@ PRIVATE>
     over forward>> rotate-oint ;
 
 : random-float+- ( n -- m )
-    #! find a random float between -n/2 and n/2
+    ! find a random float between -n/2 and n/2
     dup 10000 * >integer random 10000 / swap 2 / - ;
 
 : random-turn ( oint theta -- )
@@ -81,7 +81,7 @@ PRIVATE>
     distance-vector norm ;
 
 : scalar-projection ( v1 v2 -- n )
-    #! the scalar projection of v1 onto v2
+    ! the scalar projection of v1 onto v2
     [ v. ] [ norm ] bi / ;
 
 : proj-perp ( u v -- w )
@@ -92,7 +92,7 @@ PRIVATE>
     -rot up>> scalar-projection abs + ;
 
 :: reflect ( v n -- v' )
-    #! bounce v on a surface with normal n
+    ! bounce v on a surface with normal n
     v v n v. n n v. / 2 * n n*v v- ;
 
 : half-way ( p1 p2 -- p3 )
index af47aa1427d752defa13d8dd34ee917fff6c367d..7324cf7e0b3ed788cdd9c34df5c3ec13e0d441f0 100644 (file)
@@ -57,8 +57,8 @@ CONSTANT: default-segment-radius 1
     n-segments simple-segments ;
 
 : sub-tunnel ( from to segments -- segments )
-    #! return segments between from and to, after clamping from and to to
-    #! valid values
+    ! return segments between from and to, after clamping from and to to
+    ! valid values
     [ '[ _ clamp-length ] bi@ ] keep <slice> ;
 
 : get-segment ( segments n -- segment )
@@ -71,7 +71,7 @@ CONSTANT: default-segment-radius 1
     number>> 1 - get-segment ;
 
 : heading-segment ( segments current-segment heading -- segment )
-    #! the next segment on the given heading
+    ! the next segment on the given heading
     over forward>> v. 0 <=> {
         { +gt+ [ next-segment ] }
         { +lt+ [ previous-segment ] }
@@ -99,7 +99,7 @@ CONSTANT: default-segment-radius 1
 CONSTANT: distant 1000
 
 : max-real ( a b -- c )
-    #! sometimes collision-coefficient yields complex roots, so we ignore these (hack)
+    ! sometimes collision-coefficient yields complex roots, so we ignore these (hack)
     dup real? [
         over real? [ max ] [ nip ] if
     ] [
@@ -133,12 +133,12 @@ CONSTANT: distant 1000
     [ wall-normal ] [ forward>> swap reflect ] [ forward<< ] tri ;
 
 : bounce-left ( segment oint -- )
-    #! must be done after forward
+    ! must be done after forward
     [ forward>> vneg ] dip [ left>> swap reflect ]
     [ forward>> proj-perp normalize ] [ left<< ] tri ;
 
 : bounce-up ( segment oint -- )
-    #! must be done after forward and left!
+    ! must be done after forward and left!
     nip [ forward>> ] [ left>> cross ] [ up<< ] tri ;
 
 : bounce-off-wall ( oint segment -- )
index e5995e10bcad21c0c4c24c1cb917934bf7e70dd4..ae1a7bbd3496de652ab80868bd3dc9f3a27d47ee 100644 (file)
@@ -133,7 +133,7 @@ DEFER: (d)
     ] if ;
 
 : interior ( x y -- i_y[x] )
-    #! y is a generator
+    ! y is a generator
     swap >alt [ dupd (interior) ] linear-op nip ;
 
 ! Computing a basis
@@ -172,7 +172,7 @@ DEFER: (d)
 
 ! Graded by degree
 : (graded-ker/im-d) ( n seq -- null/rank )
-    #! d: C(n) ---> C(n+1)
+    ! d: C(n) ---> C(n+1)
     [ ?nth ] [ [ 1 + ] dip ?nth ] 2bi
     dim-im/ker-d ;
 
@@ -184,7 +184,7 @@ DEFER: (d)
 
 ! Bi-graded for two-step complexes
 : (bigraded-ker/im-d) ( u-deg z-deg bigraded-basis -- null/rank )
-    #! d: C(u,z) ---> C(u+2,z-1)
+    ! d: C(u,z) ---> C(u+2,z-1)
     [ ?nth ?nth ] 3keep [ [ 2 + ] dip 1 - ] dip ?nth ?nth
     dim-im/ker-d ;
 
@@ -257,7 +257,7 @@ DEFER: (d)
     ] each-index ;
 
 : bigraded-triple ( u-deg z-deg bigraded-basis -- triple )
-    #! d: C(u,z) ---> C(u+2,z-1)
+    ! d: C(u,z) ---> C(u+2,z-1)
     [ [ 2 - ] [ 1 + ] [ ] tri* ?nth ?nth ]
     [ ?nth ?nth ]
     [ [ 2 + ] [ 1 - ] [ ] tri* ?nth ?nth ]
index d01dff72d5222d49f4e13054fe516eb1dd700fff..3bca866ea30ee750265b639e73f01f28e89cdef2 100644 (file)
@@ -18,8 +18,8 @@ ERROR: no-host-name ;
 SYMBOL: current-git-id
 
 : short-running-process ( command -- )
-    #! Give network operations and shell commands at most
-    #! 30 minutes to complete, to catch hangs.
+    ! Give network operations and shell commands at most
+    ! 30 minutes to complete, to catch hangs.
     >process
         30 minutes >>timeout
         +new-group+ >>group
@@ -30,8 +30,8 @@ SYMBOL: current-git-id
     '[ drop @ f ] attempt-all drop ; inline
 
 : upload-process ( process -- )
-    #! Give network operations and shell commands at most
-    #! 30 minutes to complete, to catch hangs.
+    ! Give network operations and shell commands at most
+    ! 30 minutes to complete, to catch hangs.
     >process
         upload-timeout get >>timeout
         +new-group+ >>group
index 69106180bc54a71aaab62c6d27b121832417544b..66220e374204f815c79b0643812557c64e5fcc24 100644 (file)
@@ -21,7 +21,7 @@ IN: mason.git
     } ;
 
 : git-clone ( -- )
-    #! Must be run from builds-dir
+    ! Must be run from builds-dir
     "Cloning initial repository" print-timestamp
     git-clone-cmd try-output-process ;
 
@@ -58,7 +58,7 @@ IN: mason.git
     { "git" "status" } ;
 
 : git-status-failed ( error -- )
-    #! Exit code 1 means there's nothing to commit.
+    ! Exit code 1 means there's nothing to commit.
     dup { [ process-failed? ] [ code>> 1 = ] } 1&&
     [ drop ] [ rethrow ] if ;
 
@@ -87,7 +87,7 @@ IN: mason.git
 PRIVATE>
 
 : git-clone-or-pull ( -- id )
-    #! Must be run from builds-dir.
+    ! Must be run from builds-dir.
     "factor" exists? [
         check-repository [
             "factor" [
index 839f1ea870f4a1a42dbd737dc666272571739218..d92d307e944a449660790bdb06c07ba78df707c3 100644 (file)
@@ -23,7 +23,7 @@ SYMBOLS: latest-sources last-built-sources ;
     counter-url get-global http-get nip string>number ;
 
 : update-sources ( -- )
-    #! Must be run from builds-dir
+    ! Must be run from builds-dir
     git-clone-or-pull latest-boot-image latest-counter <sources>
     latest-sources set-global ;
 
@@ -31,7 +31,7 @@ SYMBOLS: latest-sources last-built-sources ;
     latest-sources get-global last-built-sources get-global = not ;
 
 : finish-build ( -- )
-    #! If the build completed (successfully or not) without
-    #! mason crashing or being killed, don't build this git ID
-    #! and boot image hash again.
+    ! If the build completed (successfully or not) without
+    ! mason crashing or being killed, don't build this git ID
+    ! and boot image hash again.
     latest-sources get-global last-built-sources set-global ;
index f7fd38f9abcca459c55dbf81172c744b5482b9bd..631f6ff6615c681c0f275b0bace2fbdd6a508d91 100644 (file)
@@ -21,16 +21,16 @@ CONSTANT: gamma-p6
     [ + recip ] with { } map-integers 1.0 0 pick set-nth ;
 
 : (gamma-lanczos6) ( x -- log[gamma[x+1]] )
-    #! log(gamma(x+1)
+    ! log(gamma(x+1)
     [ 0.5 + dup gamma-g6 + [ log * ] keep - ]
     [ 6 gamma-z gamma-p6 v. log ] bi + ;
 
 : gamma-lanczos6 ( x -- gamma[x] )
-    #! gamma(x) = gamma(x+1) / x
+    ! gamma(x) = gamma(x+1) / x
     [ (gamma-lanczos6) e^ ] keep / ;
 
 : gammaln-lanczos6 ( x -- gammaln[x] )
-    #! log(gamma(x)) = log(gamma(x+1)) - log(x)
+    ! log(gamma(x)) = log(gamma(x+1)) - log(x)
     [ (gamma-lanczos6) ] keep log - ;
 
 : gamma-neg ( gamma[abs[x]] x -- gamma[x] )
@@ -39,8 +39,8 @@ CONSTANT: gamma-p6
 PRIVATE>
 
 : gamma ( x -- y )
-    #! gamma(x) = integral 0..inf [ t^(x-1) exp(-t) ] dt
-    #! gamma(n+1) = n! for n > 0
+    ! gamma(x) = integral 0..inf [ t^(x-1) exp(-t) ] dt
+    ! gamma(n+1) = n! for n > 0
     dup { [ 0.0 <= ] [ 1.0 mod zero? ] } 1&& [
         drop 1/0.
     ] [
@@ -48,8 +48,8 @@ PRIVATE>
     ] if ;
 
 : gammaln ( x -- gamma[x] )
-    #! gammaln(x) is an alternative when gamma(x)'s range
-    #! varies too widely
+    ! gammaln(x) is an alternative when gamma(x)'s range
+    ! varies too widely
     dup 0 < [
         drop 1/0.
     ] [
@@ -71,7 +71,7 @@ PRIVATE>
 ! copyright notice is preserved.
 
 : exp-int ( x -- y )
-    #! For real values of x only. Accurate to 7 decimals.
+    ! For real values of x only. Accurate to 7 decimals.
     dup 1.0 < [
         dup 0.00107857 * 0.00976004 -
         over *
index 2294cf1c58d1784dbc88525210a3aa6423e04ea3..1958a5f6c09129c722ceed0c8266eace35d0cb1d 100644 (file)
@@ -72,9 +72,9 @@ TUPLE: satisfy-parser quot ;
 C: satisfy satisfy-parser
 
 M: satisfy-parser parse ( input parser -- list )
-    #! A parser that succeeds if the predicate,
-    #! when passed the first character in the input, returns
-    #! true.
+    ! A parser that succeeds if the predicate,
+    ! when passed the first character in the input, returns
+    ! true.
     over empty? [
         2drop nil
     ] [
@@ -90,10 +90,10 @@ TUPLE: epsilon-parser ;
 C: epsilon epsilon-parser
 
 M: epsilon-parser parse ( input parser -- list )
-    #! A parser that parses the empty string. It
-    #! does not consume any input and always returns
-    #! an empty list as the parse tree with the
-    #! unmodified input.
+    ! A parser that parses the empty string. It
+    ! does not consume any input and always returns
+    ! an empty list as the parse tree with the
+    ! unmodified input.
     drop "" swap <parse-results> ;
 
 TUPLE: succeed-parser result ;
@@ -101,8 +101,8 @@ TUPLE: succeed-parser result ;
 C: succeed succeed-parser
 
 M: succeed-parser parse ( input parser -- list )
-    #! A parser that always returns 'result' as a
-    #! successful parse with no input consumed.
+    ! A parser that always returns 'result' as a
+    ! successful parse with no input consumed.
     result>> swap <parse-results> ;
 
 TUPLE: fail-parser ;
@@ -110,8 +110,8 @@ TUPLE: fail-parser ;
 C: fail fail-parser
 
 M: fail-parser parse ( input parser -- list )
-    #! A parser that always fails and returns
-    #! an empty list of successes.
+    ! A parser that always fails and returns
+    ! an empty list of successes.
     2drop nil ;
 
 TUPLE: ensure-parser test ;
@@ -155,10 +155,10 @@ TUPLE: and-parser parsers ;
     ] with lazy-map lconcat ;
 
 M: and-parser parse ( input parser -- list )
-    #! Parse 'input' by sequentially combining the
-    #! two parsers. First parser1 is applied to the
-    #! input then parser2 is applied to the rest of
-    #! the input strings from the first parser.
+    ! Parse 'input' by sequentially combining the
+    ! two parsers. First parser1 is applied to the
+    ! input then parser2 is applied to the rest of
+    ! the input strings from the first parser.
     parsers>> unclip swapd parse
     [ [ and-parser-parse ] reduce ] 2curry <promise> ;
 
@@ -171,15 +171,15 @@ TUPLE: or-parser parsers ;
     2array <or-parser> ;
 
 M: or-parser parse ( input parser1 -- list )
-    #! Return the combined list resulting from the parses
-    #! of parser1 and parser2 being applied to the same
-    #! input. This implements the choice parsing operator.
+    ! Return the combined list resulting from the parses
+    ! of parser1 and parser2 being applied to the same
+    ! input. This implements the choice parsing operator.
     parsers>> sequence>list
     [ parse ] with lazy-map lconcat ;
 
 : trim-head-slice ( string -- string )
-    #! Return a new string without any leading whitespace
-    #! from the original string.
+    ! Return a new string without any leading whitespace
+    ! from the original string.
     dup empty? [
         dup first blank? [ rest-slice trim-head-slice ] when
     ] unless ;
@@ -191,8 +191,8 @@ TUPLE: sp-parser p1 ;
 C: sp sp-parser
 
 M: sp-parser parse ( input parser -- list )
-    #! Skip all leading whitespace from the input then call
-    #! the parser on the remaining input.
+    ! Skip all leading whitespace from the input then call
+    ! the parser on the remaining input.
     [ trim-head-slice ] dip p1>> parse ;
 
 TUPLE: just-parser p1 ;
@@ -200,10 +200,10 @@ TUPLE: just-parser p1 ;
 C: just just-parser
 
 M: just-parser parse ( input parser -- result )
-    #! Calls the given parser on the input removes
-    #! from the results anything where the remaining
-    #! input to be parsed is not empty. So ensures a
-    #! fully parsed input string.
+    ! Calls the given parser on the input removes
+    ! from the results anything where the remaining
+    ! input to be parsed is not empty. So ensures a
+    ! fully parsed input string.
     p1>> parse [ unparsed>> empty? ] lfilter ;
 
 TUPLE: apply-parser p1 quot ;
@@ -211,11 +211,11 @@ TUPLE: apply-parser p1 quot ;
 C: <@ apply-parser
 
 M: apply-parser parse ( input parser -- result )
-    #! Calls the parser on the input. For each successful
-    #! parse the quot is call with the parse result on the stack.
-    #! The result of that quotation then becomes the new parse result.
-    #! This allows modification of parse tree results (like
-    #! converting strings to integers, etc).
+    ! Calls the parser on the input. For each successful
+    ! parse the quot is call with the parse result on the stack.
+    ! The result of that quotation then becomes the new parse result.
+    ! This allows modification of parse tree results (like
+    ! converting strings to integers, etc).
     [ p1>> ] [ quot>> ] bi
     -rot parse [
         [ parsed>> swap call ] keep
@@ -227,43 +227,43 @@ TUPLE: some-parser p1 ;
 C: some some-parser
 
 M: some-parser parse ( input parser -- result )
-    #! Calls the parser on the input, guarantees
-    #! the parse is complete (the remaining input is empty),
-    #! picks the first solution and only returns the parse
-    #! tree since the remaining input is empty.
+    ! Calls the parser on the input, guarantees
+    ! the parse is complete (the remaining input is empty),
+    ! picks the first solution and only returns the parse
+    ! tree since the remaining input is empty.
     p1>> just parse-1 ;
 
 : <& ( parser1 parser2 -- parser )
-    #! Same as <&> except discard the results of the second parser.
+    ! Same as <&> except discard the results of the second parser.
     <&> [ first ] <@ ;
 
 : &> ( parser1 parser2 -- parser )
-    #! Same as <&> except discard the results of the first parser.
+    ! Same as <&> except discard the results of the first parser.
     <&> [ second ] <@ ;
 
 : <:&> ( parser1 parser2 -- result )
-    #! Same as <&> except flatten the result.
+    ! Same as <&> except flatten the result.
     <&> [ first2 suffix ] <@ ;
 
 : <&:> ( parser1 parser2 -- result )
-    #! Same as <&> except flatten the result.
+    ! Same as <&> except flatten the result.
     <&> [ first2 swap prefix ] <@ ;
 
 : <:&:> ( parser1 parser2 -- result )
-    #! Same as <&> except flatten the result.
+    ! Same as <&> except flatten the result.
     <&> [ first2 append ] <@ ;
 
 LAZY: <*> ( parser -- parser )
     dup <*> <&:> { } succeed <|> ;
 
 : <+> ( parser -- parser )
-    #! Return a parser that accepts one or more occurences of the original
-    #! parser.
+    ! Return a parser that accepts one or more occurences of the original
+    ! parser.
     dup <*> <&:> ;
 
 LAZY: <?> ( parser -- parser )
-    #! Return a parser that optionally uses the parser
-    #! if that parser would be successful.
+    ! Return a parser that optionally uses the parser
+    ! if that parser would be successful.
     [ 1array ] <@ f succeed <|> ;
 
 TUPLE: only-first-parser p1 ;
@@ -272,62 +272,62 @@ LAZY: only-first ( parser -- parser )
     only-first-parser boa ;
 
 M: only-first-parser parse ( input parser -- list )
-    #! Transform a parser into a parser that only yields
-    #! the first possibility.
+    ! Transform a parser into a parser that only yields
+    ! the first possibility.
     p1>> parse 1 swap ltake ;
 
 LAZY: <!*> ( parser -- parser )
-    #! Like <*> but only return one possible result
-    #! containing all matching parses. Does not return
-    #! partial matches. Useful for efficiency since that's
-    #! usually the effect you want and cuts down on backtracking
-    #! required.
+    ! Like <*> but only return one possible result
+    ! containing all matching parses. Does not return
+    ! partial matches. Useful for efficiency since that's
+    ! usually the effect you want and cuts down on backtracking
+    ! required.
     <*> only-first ;
 
 LAZY: <!+> ( parser -- parser )
-    #! Like <+> but only return one possible result
-    #! containing all matching parses. Does not return
-    #! partial matches. Useful for efficiency since that's
-    #! usually the effect you want and cuts down on backtracking
-    #! required.
+    ! Like <+> but only return one possible result
+    ! containing all matching parses. Does not return
+    ! partial matches. Useful for efficiency since that's
+    ! usually the effect you want and cuts down on backtracking
+    ! required.
     <+> only-first ;
 
 LAZY: <!?> ( parser -- parser )
-    #! Like <?> but only return one possible result
-    #! containing all matching parses. Does not return
-    #! partial matches. Useful for efficiency since that's
-    #! usually the effect you want and cuts down on backtracking
-    #! required.
+    ! Like <?> but only return one possible result
+    ! containing all matching parses. Does not return
+    ! partial matches. Useful for efficiency since that's
+    ! usually the effect you want and cuts down on backtracking
+    ! required.
     <?> only-first ;
 
 LAZY: <(?)> ( parser -- parser )
-    #! Like <?> but take shortest match first.
+    ! Like <?> but take shortest match first.
     f succeed swap [ 1array ] <@ <|> ;
 
 LAZY: <(*)> ( parser -- parser )
-    #! Like <*> but take shortest match first.
-    #! Implementation by Matthew Willis.
+    ! Like <*> but take shortest match first.
+    ! Implementation by Matthew Willis.
     { } succeed swap dup <(*)> <&:> <|> ;
 
 LAZY: <(+)> ( parser -- parser )
-    #! Like <+> but take shortest match first.
-    #! Implementation by Matthew Willis.
+    ! Like <+> but take shortest match first.
+    ! Implementation by Matthew Willis.
     dup <(*)> <&:> ;
 
 : pack ( close body open -- parser )
-    #! Parse a construct enclosed by two symbols,
-    #! given a parser for the opening symbol, the
-    #! closing symbol, and the body.
+    ! Parse a construct enclosed by two symbols,
+    ! given a parser for the opening symbol, the
+    ! closing symbol, and the body.
     <& &> ;
 
 : nonempty-list-of ( items separator -- parser )
     [ over &> <*> <&:> ] keep <?> [ nip ] 2keep pack ;
 
 : list-of ( items separator -- parser )
-    #! Given a parser for the separator and for the
-    #! items themselves, return a parser that parses
-    #! lists of those items. The parse tree is an
-    #! array of the parsed items.
+    ! Given a parser for the separator and for the
+    ! items themselves, return a parser that parses
+    ! lists of those items. The parse tree is an
+    ! array of the parsed items.
     nonempty-list-of { } succeed <|> ;
 
 LAZY: surrounded-by ( parser start end -- parser' )
index 50d0feebd14a60a951aa2d34c18bcb4a9e2a1d25..7d5ef91be82004dcba838a0807deb7dceec51a87 100644 (file)
@@ -131,8 +131,8 @@ M: integer >ckf ;
     [ 0xFF bitand ] map-product ;
 
 : perfect-hash-find ( q -- value )
-    #! magic to convert a hand's unique identifying bits to the
-    #! proper index for fast lookup in a table of hand values
+    ! magic to convert a hand's unique identifying bits to the
+    ! proper index for fast lookup in a table of hand values
     0xE91AAA35 +
     dup -16 shift bitxor
     dup   8 shift w+
index 614dca6e5f836ffa652cecabebef414684d5f7b4..222667f6572cfb09790796c8d9555943d5fa2443 100644 (file)
@@ -245,7 +245,7 @@ This is the body of the second test.
     } cond nip [ process ] when ;
 
 :: mock-pop3-server ( promise -- )
-    #! Store the port we are running on in the promise.
+    ! Store the port we are running on in the promise.
     [
         [
             "127.0.0.1" 0 <inet4> utf8 <server> [
index 38aa022b3d125eb0e659cb751a9f497be9373d3b..499ce21c340a98eb82246dab18ee16a1598a192b 100644 (file)
@@ -47,7 +47,7 @@ IN: project-euler.070
     7 10^ sqrt >integer 1000 [ - ] [ + ] 2bi primes-between ; inline
 
 : n-and-phi ( seq -- seq' )
-    #! ( seq  = { p1, p2 } -- seq' = { n, Ï†(n) } )
+    ! ( seq  = { p1, p2 } -- seq' = { n, Ï†(n) } )
     [ product ] [ [ 1 - ] map product ] bi 2array ;
 
 : fit-requirements? ( seq -- ? )
index 36fe7783fe398384853c4c7d5183929eb89c3484..64c5533a6980d417f2448089e8df7d68fb0d5161 100644 (file)
@@ -35,7 +35,7 @@ IN: project-euler.099
     ascii file-lines [ "," split [ string>number ] map ] map ;
 
 : simplify ( seq -- seq )
-    #! exponent * log(base)
+    ! exponent * log(base)
     flip first2 swap [ log ] map v* ;
 
 : solve ( seq -- index )
index 8f30dd4244454b27b9cbb98694ddd7e88f027e56..3f4090c118a755d6aebf1bb202683c376f0c227b 100644 (file)
@@ -87,8 +87,8 @@ M: array noise [ noise ] map vsum ;
 : noise-factor ( x y -- z ) / 100 * >integer ;
 
 : quot-noise-factor ( quot -- n )
-    #! For very short words, noise doesn't count so much
-    #! (so dup foo swap bar isn't penalized as badly).
+    ! For very short words, noise doesn't count so much
+    ! (so dup foo swap bar isn't penalized as badly).
     noise first2 {
         { [ over 4 <= ] [ [ drop 0 ] dip ] }
         { [ over 15 >= ] [ [ 2 * ] dip ] }
index aa4cb57bb52fb882ddb759de1559c3f1c2691d6f..8b2132c6d27a8ce735a7595a585429f241b5b575 100644 (file)
@@ -55,7 +55,7 @@ M: summed length seqs>> longest length ;
 
 <PRIVATE
 : ?+ ( x/f y/f -- sum )
-    #! addition that treats f as 0
+    ! addition that treats f as 0
     [
         swap [ + ] when*
     ] [
index 58c6bada177ca797dcd569a77958dc6dc71e8a9e..e1184564868c365f4b5cb36561083d0f97f8c4ac 100755 (executable)
@@ -20,7 +20,7 @@ CONSTANT: game-height 256
     game-height game-width 3 * * uchar <c-array> ;
 
 : bitmap-index ( point -- index )
-    #! Point is a {x y}.
+    ! Point is a {x y}.
     first2 game-width 3 * * swap 3 * + ;
 
 :: set-bitmap-pixel ( bitmap point color -- )
@@ -30,7 +30,7 @@ CONSTANT: game-height 256
     color third  index 2 + bitmap set-nth ;
 
 : get-bitmap-pixel ( point array -- color )
-    #! Point is a {x y}. color is a {r g b}
+    ! Point is a {x y}. color is a {r g b}
     [ bitmap-index ] dip
     [ nth ]
     [ [ 1 + ] dip nth ]
@@ -81,35 +81,35 @@ CONSTANT: SOUND-UFO-HIT      8
     swap sounds>> nth source-stop ;
 
 : read-port1 ( cpu -- byte )
-    #! Port 1 maps the keys for space invaders
-    #! Bit 0 = coin slot
-    #! Bit 1 = two players button
-    #! Bit 2 = one player button
-    #! Bit 4 = player one fire
-    #! Bit 5 = player one left
-    #! Bit 6 = player one right
+    ! Port 1 maps the keys for space invaders
+    ! Bit 0 = coin slot
+    ! Bit 1 = two players button
+    ! Bit 2 = one player button
+    ! Bit 4 = player one fire
+    ! Bit 5 = player one left
+    ! Bit 6 = player one right
     [ dup 0xFE bitand ] change-port1 drop ;
 
 : read-port2 ( cpu -- byte )
-    #! Port 2 maps player 2 controls and dip switches
-    #! Bit 0,1 = number of ships
-    #! Bit 2   = mode (1=easy, 0=hard)
-    #! Bit 4   = player two fire
-    #! Bit 5   = player two left
-    #! Bit 6   = player two right
-    #! Bit 7   = show or hide coin info
+    ! Port 2 maps player 2 controls and dip switches
+    ! Bit 0,1 = number of ships
+    ! Bit 2   = mode (1=easy, 0=hard)
+    ! Bit 4   = player two fire
+    ! Bit 5   = player two left
+    ! Bit 6   = player two right
+    ! Bit 7   = show or hide coin info
     [ port2i>> 0x8F bitand ]
     [ port1>> 0x70 bitand bitor ] bi ;
 
 : read-port3 ( cpu -- byte )
-    #! Used to compute a special formula
+    ! Used to compute a special formula
     [ port4hi>> 8 shift ] keep
     [ port4lo>> bitor ] keep
     port2o>> shift -8 shift 0xFF bitand ;
 
 M: space-invaders read-port
-    #! Read a byte from the hardware port. 'port' should
-    #! be an 8-bit value.
+    ! Read a byte from the hardware port. 'port' should
+    ! be an 8-bit value.
     swap {
         { 1 [ read-port1 ] }
         { 2 [ read-port2 ] }
@@ -118,7 +118,7 @@ M: space-invaders read-port
     } case ;
 
 : write-port2 ( value cpu -- )
-    #! Setting this value affects the value read from port 3
+    ! Setting this value affects the value read from port 3
     port2o<< ;
 
 :: bit-newly-set? ( old-value new-value bit -- bool )
@@ -131,12 +131,12 @@ M: space-invaders read-port
     [ port5o>> swap ] dip bit-newly-set? ;
 
 : write-port3 ( value cpu -- )
-    #! Connected to the sound hardware
-    #! Bit 0 = spaceship sound (looped)
-    #! Bit 1 = Shot
-    #! Bit 2 = Your ship hit
-    #! Bit 3 = Invader hit
-    #! Bit 4 = Extended play sound
+    ! Connected to the sound hardware
+    ! Bit 0 = spaceship sound (looped)
+    ! Bit 1 = Shot
+    ! Bit 2 = Your ship hit
+    ! Bit 3 = Invader hit
+    ! Bit 4 = Extended play sound
     over 0 bit? [
         dup looping?>> [
             dup SOUND-UFO play-invaders-sound
@@ -155,17 +155,17 @@ M: space-invaders read-port
     port3o<< ;
 
 : write-port4 ( value cpu -- )
-    #! Affects the value returned by reading port 3
+    ! Affects the value returned by reading port 3
     [ port4hi>> ] [ port4lo<< ] [ port4hi<< ] tri ;
 
 : write-port5 ( value cpu -- )
-    #! Plays sounds
-    #! Bit 0 = invaders sound 1
-    #! Bit 1 = invaders sound 2
-    #! Bit 2 = invaders sound 3
-    #! Bit 3 = invaders sound 4
-    #! Bit 4 = spaceship hit
-    #! Bit 5 = amplifier enabled/disabled
+    ! Plays sounds
+    ! Bit 0 = invaders sound 1
+    ! Bit 1 = invaders sound 2
+    ! Bit 2 = invaders sound 3
+    ! Bit 3 = invaders sound 4
+    ! Bit 4 = spaceship hit
+    ! Bit 5 = amplifier enabled/disabled
     2dup 0 port5-newly-set? [ dup SOUND-WALK1 play-invaders-sound ] when
     2dup 1 port5-newly-set? [ dup SOUND-WALK2 play-invaders-sound ] when
     2dup 2 port5-newly-set? [ dup SOUND-WALK3 play-invaders-sound ] when
@@ -174,8 +174,8 @@ M: space-invaders read-port
     port5o<< ;
 
 M: space-invaders write-port
-    #! Write a byte to the hardware port, where 'port' is
-    #! an 8-bit value.
+    ! Write a byte to the hardware port, where 'port' is
+    ! an 8-bit value.
     swap {
         { 2 [ write-port2 ] }
         { 3 [ write-port3 ] }
@@ -292,17 +292,17 @@ CONSTANT: green {   0 255   0 }
 CONSTANT: red   { 255   0   0 }
 
 : addr>xy ( addr -- point )
-    #! Convert video RAM address to base X Y value. point is a {x y}.
+    ! Convert video RAM address to base X Y value. point is a {x y}.
     0x2400 - ! n
     dup 0x1f bitand 8 * 255 swap - ! n y
     swap -5 shift swap 2array ;
 
 : plot-bitmap-pixel ( bitmap point color -- )
-    #! point is a {x y}. color is a {r g b}.
+    ! point is a {x y}. color is a {r g b}.
     set-bitmap-pixel ;
 
 : get-point-color ( point -- color )
-    #! Return the color to use for the given x/y position.
+    ! Return the color to use for the given x/y position.
     first2
     {
         { [ dup 184 238 between? pick 0 223 between? and ] [ 2drop green ] }
@@ -312,7 +312,7 @@ CONSTANT: red   { 255   0   0 }
     } cond ;
 
 : plot-bitmap-bits ( bitmap point byte bit -- )
-    #! point is a {x y}.
+    ! point is a {x y}.
     [ first2 ] 2dip
     dup swapd -1 * shift 1 bitand 0 =
     [ - 2array ] dip
@@ -330,15 +330,15 @@ M: space-invaders update-video
     ] if ;
 
 : sync-frame ( micros -- micros )
-    #! Sleep until the time for the next frame arrives.
+    ! Sleep until the time for the next frame arrives.
     16,667 + system:nano-count - dup 0 >
     [ 1,000 * threads:sleep ] [ drop threads:yield ] if
     system:nano-count ;
 
 : invaders-process ( micros gadget -- )
-    #! Run a space invaders gadget inside a
-    #! concurrent process. Messages can be sent to
-    #! signal key presses, etc.
+    ! Run a space invaders gadget inside a
+    ! concurrent process. Messages can be sent to
+    ! signal key presses, etc.
     dup quit?>> [
         2drop
     ] [
index b6239348ab339faf252ccdd97f160e731552362b..00ddda002150c00c85915cd2bd96697ad22281a1 100644 (file)
@@ -49,6 +49,6 @@ TUPLE: board { width integer } { height integer } rows ;
     [ [ row-not-full? ] filter ] change-rows ;
 
 : check-rows ( board -- n )
-    #! remove full rows, then add blank ones at the top, returning the number
-    #! of rows removed (and added)
+    ! remove full rows, then add blank ones at the top, returning the number
+    ! of rows removed (and added)
     remove-full-rows dup height>> over rows>> length - swap top-up-rows ;
index e2b00d9b563d9a25999e0fdfc063df664048fecd..ae7db29539afda9fd593c5dd6b217a72c336ebb9 100644 (file)
@@ -86,7 +86,7 @@ CONSTANT: default-height 20
     [ drop board>> ] [ [ current-piece clone ] dip move-piece ] 2bi piece-valid? ;
 
 : tetris-move ( tetris move -- ? )
-    #! moves the piece if possible, returns whether the piece was moved
+    ! moves the piece if possible, returns whether the piece was moved
     2dup can-move? [
         [ current-piece ] dip move-piece drop t
     ] [
index 788febace781393eb4043474f9a400d3483cca9a..850fd653d48fe1dc7ca964f6b0b48e69744f684b 100644 (file)
@@ -36,7 +36,7 @@ IN: tetris.gl
     [ width>> ] [ height>> ] bi swapd [ / ] dup 2bi* 1 glScalef ;
 
 : draw-tetris ( width height tetris -- )
-    #! width and height are in pixels
+    ! width and height are in pixels
     [
         {
             [ board>> scale-board ]
index 0a24b2033c30163ef122242d49d044c10edd4f83..b7b0b096ca2df7b407e71eb3753f328ea5aca423 100644 (file)
@@ -16,11 +16,11 @@ TUPLE: piece
     piece new swap >>tetromino ;
 
 : (piece-blocks) ( piece -- blocks )
-    #! rotates the piece
+    ! rotates the piece
     [ rotation>> ] [ tetromino>> states>> ] bi nth ;
 
 : piece-blocks ( piece -- blocks )
-    #! rotates and positions the piece
+    ! rotates and positions the piece
     [ (piece-blocks) ] [ location>> ] bi [ v+ ] curry map ;
 
 : piece-width ( piece -- width )
@@ -36,7 +36,7 @@ TUPLE: piece
     [ [ <random-piece> ] curry ] keep [ <piece-llist> ] curry lazy-cons ;
 
 : modulo ( n m -- n )
-  #! -2 7 mod => -2, -2 7 modulo =>  5
+  ! -2 7 mod => -2, -2 7 modulo =>  5
   [ mod ] [ + ] [ mod ] tri ;
 
 : (rotate-piece) ( rotation inc n-states -- rotation' )
index 2d55e79f452df1dd37484ed87760281dde17c3fb..5e670abe1f22fe56a1077e4ad4ec974497d40aea 100644 (file)
@@ -114,7 +114,7 @@ M: avl set-at ( value key node -- )
     ] if* ;
 
 : replace-with-a-child ( node -- node shorter? )
-    #! assumes that node is not a leaf, otherwise will recurse forever
+    ! assumes that node is not a leaf, otherwise will recurse forever
     dup node-link [
         dupd [ avl-replace-with-extremity ] with-other-side
         [ over set-node-link ] dip [ balance-delete ] [ f ] if
@@ -123,8 +123,8 @@ M: avl set-at ( value key node -- )
     ] if* ;
 
 : avl-delete-node ( node -- node shorter? )
-    #! delete this node, returning its replacement, and whether this subtree is
-    #! shorter as a result
+    ! delete this node, returning its replacement, and whether this subtree is
+    ! shorter as a result
     dup leaf? [
         drop f t
     ] [
index b182d67aa673b5652c42803e3484c52233a821e1..e59af367cdb76cef1abfbb398a05027b20810563 100644 (file)
@@ -151,8 +151,8 @@ DEFER: delete-node
     ] if* ;
 
 : prune-extremity ( node -- new-extremity )
-    #! remove and return the leftmost or rightmost child of this node.
-    #! assumes at least one child
+    ! remove and return the leftmost or rightmost child of this node.
+    ! assumes at least one child
     dup node-link (prune-extremity) ;
 
 : replace-with-child ( node -- node )
@@ -168,11 +168,11 @@ DEFER: delete-node
     ] if ;
 
 : delete-node-with-two-children ( node -- node )
-    #! randomised to minimise tree unbalancing
+    ! randomised to minimise tree unbalancing
     random-side [ replace-with-extremity ] with-side ;
 
 : delete-node ( node -- node )
-    #! delete this node, returning its replacement
+    ! delete this node, returning its replacement
     dup [ right>> ] [ left>> ] bi [
         swap [
             drop delete-node-with-two-children
index 18d66a2e516d2fd0f49dc622682f0a0e600a8609..e4edf681b73b5484a09dd40e06998d71ce5dc51c 100644 (file)
@@ -41,30 +41,30 @@ SYMBOL: tape
 20 0 <array> >vector tape set
 
 : sym ( -- sym )
-    #! Symbol at head position.
+    ! Symbol at head position.
     position get tape get nth ;
 
 : set-sym ( sym -- )
-    #! Set symbol at head position.
+    ! Set symbol at head position.
     position get tape get set-nth ;
 
 : next-state ( -- state )
-    #! Look up the next state/symbol/direction triplet.
+    ! Look up the next state/symbol/direction triplet.
     state get sym 2array states get at ;
 
 : turing-step ( -- )
-    #! Do one step of the turing machine.
+    ! Do one step of the turing machine.
     next-state
     dup sym>> set-sym
     dup dir>> position [ + ] change
     next>> state set ;
 
 : c ( -- )
-    #! Print current turing machine state.
+    ! Print current turing machine state.
     state get .
     tape get .
     2 position get 2 * + CHAR: \s <string> write "^" print ;
 
 : n ( -- )
-    #! Do one step and print new state.
+    ! Do one step and print new state.
     turing-step c ;
index 249698e8dc11038de050f62bdd39fb1f40d420f9..e30c887784444086d29e18a0eb2c640cd785e944 100644 (file)
@@ -67,8 +67,8 @@ M: list focusable-child* drop t ;
     dup index>> swap control-value ?nth ;
 
 : scroll>selected ( list -- )
-    #! We change the rectangle's width to zero to avoid
-    #! scrolling right.
+    ! We change the rectangle's width to zero to avoid
+    ! scrolling right.
     [ selected-rect rect-bounds { 0 1 } v* <rect> ] keep
     scroll>rect ;
 
index abf3c318809138e3c9b6da263ce205c45bdcec8a..a55b5a6e311249195b01ccfb0b24a4e9deaa29ed 100644 (file)
@@ -23,7 +23,7 @@ M: line-test draw-interior
 SYMBOL: render-output
 
 : twiddle ( bytes -- bytes )
-    #! On Windows, white is { 253 253 253 } ?
+    ! On Windows, white is { 253 253 253 } ?
     [ 10 /i ] map ;
 
 : bitmap= ( bitmap1 bitmap2 -- ? )
index 85bfb14d81bfc8109f343671611c38f187e643c3..9b75e0573f8d0fcf6cd8238f274053cddee91be1 100644 (file)
@@ -40,7 +40,7 @@ SYMBOL: matrix
     over [ find-from drop ] dip length or ; inline
 
 : first-col ( row# -- n )
-    #! First non-zero column
+    ! First non-zero column
     0 swap nth-row [ zero? not ] skip ;
 
 : clear-scale ( col# pivot-row i-row -- n )
index 27a4676926d6501823aaedb4240932f12d47c42a..6949d3b4f54be2feeecfa3f5cea01443590c8855 100644 (file)
@@ -9,8 +9,8 @@ IN: cpu.arm.allot
 : load-zone-ptr ( reg -- ) "nursery" f rot %alien-global ;
 
 : %allot ( header size -- )
-    #! Store a pointer to 'size' bytes allocated from the
-    #! nursery in R11
+    ! Store a pointer to 'size' bytes allocated from the
+    ! nursery in R11
     8 align ! align the size
     R12 load-zone-ptr ! nusery -> r12
     R11 R12 cell <+> LDR ! nursery.here -> r11
@@ -25,17 +25,17 @@ IN: cpu.arm.allot
     >r dup fresh-object v>operand R11 r> tag-number ORR ;
 
 : %allot-bignum ( #digits -- )
-    #! 1 cell header, 1 cell length, 1 cell sign, + digits
-    #! length is the # of digits + sign
+    ! 1 cell header, 1 cell length, 1 cell sign, + digits
+    ! length is the # of digits + sign
     bignum over 3 + cells %allot
     R12 swap 1+ v>operand MOV ! compute the length
     R12 R11 cell <+> STR ! store the length
     ;
 
 : %allot-bignum-signed-1 ( dst src -- )
-    #! on entry, reg is a 30-bit quantity sign-extended to
-    #! 32-bits.
-    #! exits with tagged ptr to bignum in reg.
+    ! on entry, reg is a 30-bit quantity sign-extended to
+    ! 32-bits.
+    ! exits with tagged ptr to bignum in reg.
     [
         "end" define-label
         ! is it zero?
index 21b847f4f6c60e6f96800963056851d20de42223..f4ad13d60c2b378357dba5f5f4ef0daea9b94233 100644 (file)
@@ -100,8 +100,8 @@ M: arm-backend %epilogue ( n -- )
     [ compile-dlsym ] keep dup 0 <+> LDR ;
 
 M: arm-backend %profiler-prologue ( -- )
-    #! We can clobber R0 here since it is undefined at the start
-    #! of a word.
+    ! We can clobber R0 here since it is undefined at the start
+    ! of a word.
     R12 load-indirect
     R0 R12 profile-count-offset <+> LDR
     R0 R0 1 v>operand ADD
@@ -112,7 +112,7 @@ M: arm-backend %call-label ( label -- ) BL ;
 M: arm-backend %jump-label ( label -- ) B ;
 
 : %prepare-primitive ( -- )
-    #! Save stack pointer to stack_chain->callstack_top, load XT
+    ! Save stack pointer to stack_chain->callstack_top, load XT
     R1 SP 4 SUB ;
 
 M: arm-backend %call-primitive ( word -- )
@@ -132,7 +132,7 @@ M: arm-backend %jump-t ( label -- )
     "flag" operand f v>operand CMP NE B ;
 
 : (%dispatch) ( word-table# -- )
-    #! Load jump table target address into reg.
+    ! Load jump table target address into reg.
     "scratch" operand PC "n" operand 1 <LSR> ADD
     "scratch" operand dup 0 <+> LDR
     rc-indirect-arm rel-dispatch
@@ -210,14 +210,14 @@ M: arm-backend %unbox-long-long ( n func -- )
     ] when* ;
 
 M: arm-backend %unbox-small-struct ( size -- )
-    #! Alien must be in R0.
+    ! Alien must be in R0.
     drop
     "alien_offset" f %alien-invoke
     ! Load first cell
     R0 R0 0 <+> LDR ;
 
 M: arm-backend %unbox-large-struct ( n size -- )
-    #! Alien must be in R0.
+    ! Alien must be in R0.
     ! Compute destination address
     R1 SP roll ADD
     R2 swap MOV
@@ -239,7 +239,7 @@ M: arm-backend %box-long-long ( n func -- )
     ] when* r> f %alien-invoke ;
 
 M: arm-backend %box-small-struct ( size -- )
-    #! Box a 4-byte struct returned in R0.
+    ! Box a 4-byte struct returned in R0.
     R2 swap MOV
     "box_small_struct" f %alien-invoke ;
 
@@ -270,9 +270,9 @@ M: arm-backend struct-small-enough? ( size -- ? )
     4 <= ;
 
 M: arm-backend %prepare-alien-invoke
-    #! Save Factor stack pointers in case the C code calls a
-    #! callback which does a GC, which must reliably trace
-    #! all roots.
+    ! Save Factor stack pointers in case the C code calls a
+    ! callback which does a GC, which must reliably trace
+    ! all roots.
     "stack_chain" f R12 %alien-global
     SP R12 0 <+> STR
     ds-reg R12 8 <+> STR
@@ -331,9 +331,9 @@ M: arm-backend %unbox-f ( dst src -- )
     drop v>operand 0 MOV ;
 
 M: arm-backend %unbox-any-c-ptr ( dst src -- )
-    #! We need three registers here. R11 and R12 are reserved
-    #! temporary registers. The third one is R14, which we have
-    #! to save/restore.
+    ! We need three registers here. R11 and R12 are reserved
+    ! temporary registers. The third one is R14, which we have
+    ! to save/restore.
     "end" define-label
     "start" define-label
     ! Save R14.
index e9902888eb7114247dc6d4ebe01a538dece3475b..d7ddd0c6592a6b8145be990ce9d2c59e5acb4cf4 100644 (file)
@@ -277,7 +277,7 @@ IN: cpu.arm.intrinsics
 } define-intrinsic
 
 : userenv ( reg -- )
-    #! Load the userenv pointer in a register.
+    ! Load the userenv pointer in a register.
     "userenv" f rot compile-dlsym ;
 
 \ getenv [
index d07abcbe76129dc865ec23df2c402ba18c45e0b8..088ae6d1bcd07729245c83753bba68924b782c26 100644 (file)
@@ -43,17 +43,17 @@ TUPLE: callback cont quot expires alarm responder ;
     <callback> callback-responder get callbacks>> set-at-unique ;
 
 : forward-to-url ( url -- * )
-    #! When executed inside a 'show' call, this will force a
-    #! HTTP 302 to occur to instruct the browser to forward to
-    #! the request URL.
+    ! When executed inside a 'show' call, this will force a
+    ! HTTP 302 to occur to instruct the browser to forward to
+    ! the request URL.
     <temporary-redirect> exit-with ;
 
 : cont-id "factorcontid" ;
 
 : forward-to-id ( id -- * )
-    #! When executed inside a 'show' call, this will force a
-    #! HTTP 302 to occur to instruct the browser to forward to
-    #! the request URL.
+    ! When executed inside a 'show' call, this will force a
+    ! HTTP 302 to occur to instruct the browser to forward to
+    ! the request URL.
     <url>
         swap cont-id set-query-param forward-to-url ;
 
@@ -63,13 +63,13 @@ TUPLE: callback cont quot expires alarm responder ;
 SYMBOL: post-refresh-get?
 
 : redirect-to-here ( -- )
-    #! Force a redirect to the client browser so that the browser
-    #! goes to the current point in the code. This forces an URL
-    #! change on the browser so that refreshing that URL will
-    #! immediately run from this code point. This prevents the
-    #! "this request will issue a POST" warning from the browser
-    #! and prevents re-running the previous POST logic. This is
-    #! known as the 'post-refresh-get' pattern.
+    ! Force a redirect to the client browser so that the browser
+    ! goes to the current point in the code. This forces an URL
+    ! change on the browser so that refreshing that URL will
+    ! immediately run from this code point. This prevents the
+    ! "this request will issue a POST" warning from the browser
+    ! and prevents re-running the previous POST logic. This is
+    ! known as the 'post-refresh-get' pattern.
     post-refresh-get? get [
         [
             [ ] t register-callback forward-to-id
@@ -81,10 +81,10 @@ SYMBOL: post-refresh-get?
 SYMBOL: current-show
 
 : store-current-show ( -- )
-    #! Store the current continuation in the variable 'current-show'
-    #! so it can be returned to later by 'quot-id'. Note that it
-    #! recalls itself when the continuation is called to ensure that
-    #! it resets its value back to the most recent show call.
+    ! Store the current continuation in the variable 'current-show'
+    ! so it can be returned to later by 'quot-id'. Note that it
+    ! recalls itself when the continuation is called to ensure that
+    ! it resets its value back to the most recent show call.
     [ current-show set f ] callcc1
     [ restore-request store-current-show ] when* ;
 
index db8c08180bf79aaeb5b158d240c63897f78b7977..6c162488ed0e7083a5fd275ce0aa71aabbca0852 100644 (file)
@@ -53,8 +53,8 @@ TUPLE: mysql-result-set ;
     ! mysql-connection-resulthandle mysql_num_fields ;
    
 ! : mysql-char*-nth ( index object -- str )
-    ! #! Utility based on 'char*-nth' to perform an additional sanity check on the value
-    ! #! extracted from the array of strings.
+    ! ! Utility based on 'char*-nth' to perform an additional sanity check on the value
+    ! ! extracted from the array of strings.
     ! void*-nth [ alien>char-string ] [ "" ] if* ;
 
 ! : mysql-row>seq ( object n -- seq )
index 6dcddb5bd53f426c7c351ed37b8934c4c23e1ed4..91446630d6853ab8d2b1d130696b83d9244ca4dd 100644 (file)
@@ -115,7 +115,7 @@ SYMBOL: SQL-TYPE-UNKNOWN
   } case ;
 
 : succeeded? ( n -- bool )
-  #! Did the call succeed (SQL-SUCCESS or SQL-SUCCESS-WITH-INFO)
+  ! Did the call succeed (SQL-SUCCESS or SQL-SUCCESS-WITH-INFO)
   {
     { SQL-SUCCESS [ t ] }
     { SQL-SUCCESS-WITH-INFO [ t ] }
index cbdb83fd4c8fd159b4d479761fe80cbc1e6a5856..30ee010637de1b958e1597f56b17e5899a3f4e26 100644 (file)
@@ -170,7 +170,7 @@ HINTS: yuv>rgb byte-array byte-array ;
     [ buffers>> second uint <ref> alSourceQueueBuffers check-error ] keep ;
 
 : fill-processed-audio-buffer ( player n -- player )
-    #! n is the number of audio buffers processed
+    ! n is the number of audio buffers processed
     over >r >r dup source>> r> pick buffer-indexes>>
     [ alSourceUnqueueBuffers check-error ] keep
     uint deref dup r> swap >r al-channel-format rot
@@ -199,8 +199,8 @@ HINTS: yuv>rgb byte-array byte-array ;
     dup playing?>> [ append-audio ] [ start-audio ] if ;
 
 : read-bytes-into ( dest size stream -- len )
-    #! Read the given number of bytes from a stream
-    #! and store them in the destination byte array.
+    ! Read the given number of bytes from a stream
+    ! and store them in the destination byte array.
     stream-read >byte-array dup length [ memcpy ] keep  ;
 
 : check-not-negative ( int -- )
@@ -219,31 +219,31 @@ HINTS: yuv>rgb byte-array byte-array ;
   [ oy>> swap ogg_sync_wrote check-not-negative ] 2keep swap zero? ;
 
 : buffer-data ( player -- player eof? )
-    #! Take some compressed bitstream data and sync it for
-    #! page extraction.
+    ! Take some compressed bitstream data and sync it for
+    ! page extraction.
     sync-buffer stream-into-buffer confirm-buffer ;
 
 : queue-page ( player -- player )
-    #! Push a page into the stream for packetization
+    ! Push a page into the stream for packetization
     [ [ vo>> ] [ og>> ] bi ogg_stream_pagein drop ]
     [ [ to>> ] [ og>> ] bi ogg_stream_pagein drop ]
     [ ] tri ;
 
 : retrieve-page ( player -- player bool )
-    #! Sync the streams and get a page. Return true if a page was
-    #! successfully retrieved.
+    ! Sync the streams and get a page. Return true if a page was
+    ! successfully retrieved.
     dup [ oy>> ] [ og>> ] bi ogg_sync_pageout 0 > ;
 
 : standard-initial-header? ( player -- player bool )
     dup og>> ogg_page_bos zero? not ;
 
 : ogg-stream-init ( player -- state player )
-    #! Init the encode/decode logical stream state
+    ! Init the encode/decode logical stream state
     [ temp-state>> ] keep
     [ og>> ogg_page_serialno ogg_stream_init check-not-negative ] 2keep ;
 
 : ogg-stream-pagein ( state player -- state player )
-    #! Add the incoming page to the stream state
+    ! Add the incoming page to the stream state
     [ og>> ogg_stream_pagein drop ] 2keep ;
 
 : ogg-stream-packetout ( state player -- state player )
@@ -253,28 +253,28 @@ HINTS: yuv>rgb byte-array byte-array ;
     ogg-stream-init ogg-stream-pagein ogg-stream-packetout ;
 
 : theora-header? ( player -- player bool )
-    #! Is the current page a theora header?
+    ! Is the current page a theora header?
     dup [ ti>> ] [ tc>> ] [ op>> ] tri theora_decode_header 0 >= ;
 
 : is-theora-packet? ( player -- player bool )
     dup theora>> zero? [ theora-header? ] [ f ] if ;
 
 : copy-to-theora-state ( state player -- player )
-    #! Copy the state to the theora state structure in the player
+    ! Copy the state to the theora state structure in the player
     [ to>> swap dup length memcpy ] keep ;
 
 : handle-initial-theora-header ( state player -- player )
     copy-to-theora-state 1 >>theora ;
 
 : vorbis-header? ( player -- player bool )
-    #! Is the current page a vorbis header?
+    ! Is the current page a vorbis header?
     dup [ vi>> ] [ vc>> ] [ op>> ] tri vorbis_synthesis_headerin 0 >= ;
 
 : is-vorbis-packet? ( player -- player bool )
     dup vorbis>> zero? [ vorbis-header? ] [ f ] if ;
 
 : copy-to-vorbis-state ( state player -- player )
-    #! Copy the state to the vorbis state structure in the player
+    ! Copy the state to the vorbis state structure in the player
     [ vo>> swap dup length memcpy ] keep ;
 
 : handle-initial-vorbis-header ( state player -- player )
@@ -284,7 +284,7 @@ HINTS: yuv>rgb byte-array byte-array ;
     swap ogg_stream_clear drop ;
 
 : process-initial-header ( player -- player bool )
-    #! Is this a standard initial header? If not, stop parsing
+    ! Is this a standard initial header? If not, stop parsing
     standard-initial-header? [
         decode-packet {
             { [ is-vorbis-packet? ] [ handle-initial-vorbis-header ] }
@@ -296,13 +296,13 @@ HINTS: yuv>rgb byte-array byte-array ;
     ] if ;
 
 : parse-initial-headers ( player -- player )
-    #! Parse Vorbis headers, ignoring any other type stored
-    #! in the Ogg container.
+    ! Parse Vorbis headers, ignoring any other type stored
+    ! in the Ogg container.
     retrieve-page [
         process-initial-header [
             parse-initial-headers
         ] [
-            #! Don't leak the page, get it into the appropriate stream
+            ! Don't leak the page, get it into the appropriate stream
             queue-page
         ] if
     ] [
@@ -310,15 +310,15 @@ HINTS: yuv>rgb byte-array byte-array ;
     ] if ;
 
 : have-required-vorbis-headers? ( player -- player bool )
-    #! Return true if we need to decode vorbis due to there being
-    #! vorbis headers read from the stream but we don't have them all
-    #! yet.
+    ! Return true if we need to decode vorbis due to there being
+    ! vorbis headers read from the stream but we don't have them all
+    ! yet.
     dup vorbis>> 1 2 between? not ;
 
 : have-required-theora-headers? ( player -- player bool )
-    #! Return true if we need to decode theora due to there being
-    #! theora headers read from the stream but we don't have them all
-    #! yet.
+    ! Return true if we need to decode theora due to there being
+    ! theora headers read from the stream but we don't have them all
+    ! yet.
     dup theora>> 1 2 between? not ;
 
 : get-remaining-vorbis-header-packet ( player -- player bool )
@@ -472,7 +472,7 @@ HINTS: yuv>rgb byte-array byte-array ;
     ] when
     dup vd>> granulepos>> dup 0 >= [
         ! numtoread player granulepos
-        #! This is wrong: fix
+        ! This is wrong: fix
         pick - >>audio-granulepos
     ] [
         ! numtoread player granulepos
@@ -481,20 +481,20 @@ HINTS: yuv>rgb byte-array byte-array ;
     [ vd>> swap vorbis_synthesis_read drop ] keep ;
 
 : no-pending-audio ( player -- player bool )
-    #! No pending audio. Is there a pending packet to decode.
+    ! No pending audio. Is there a pending packet to decode.
     dup [ vo>> ] [ op>> ] bi ogg_stream_packetout 0 > [
         dup [ vb>> ] [ op>> ] bi vorbis_synthesis 0 = [
             dup [ vd>> ] [ vb>> ] bi vorbis_synthesis_blockin drop
         ] when
         t
     ] [
-        #! Need more data. Break out to suck in another page.
+        ! Need more data. Break out to suck in another page.
         f
     ] if ;
 
 : decode-audio ( player -- player )
     audio-buffer-not-ready? [
-        #! If there's pending decoded audio, grab it
+        ! If there's pending decoded audio, grab it
         pending-decoded-audio? [
             decode-pending-audio decode-audio
         ] [
@@ -579,7 +579,7 @@ HINTS: yuv>rgb byte-array byte-array ;
     delete-openal-source ;
 
 : wait-for-sound ( player -- player )
-    #! Waits for the openal to finish playing remaining sounds
+    ! Waits for the openal to finish playing remaining sounds
     dup source>> AL_SOURCE_STATE 0 <int> [ alGetSourcei check-error ] keep
     *int AL_PLAYING = [
         100 sleep
index f04b05acd8347c6715af8bfc07e06b1b237bb665..474ce12ef2464bad02eb38ab133fde90e5ff2dd5 100644 (file)
@@ -18,7 +18,7 @@ SYNTAX: APPLY: scan sandbox-use+ ;
 SYNTAX: APPLYING: ";" parse-tokens [ sandbox-use+ ] each ;
 
 REVEALING:
-    ! #!
+    ! !
     HEX: OCT: BIN: f t CHAR: "
     [ { T{
     ] } ;
index 4f6d8b242092f40e41b24146e8bc0797e3741284..3c32e34633cde0619acb95021eeb114f894441cb 100644 (file)
@@ -8,7 +8,7 @@ IN: io.sniffer.filter.bsd
 ! http://www.iana.org/assignments/ethernet-numbers
 
 : bpf-align ( n -- n' )
-    #! Align to next higher word size
+    ! Align to next higher word size
     "long" heap-size align ;
 
 M: unix-io packet. ( string -- )
index ffdfe373cd032e28515dc83fd849d516b173ca9b..83dc4c56b6f5d8db590e0fc7c966d36d3d2bd786 100644 (file)
@@ -13,8 +13,8 @@ IN: triggers
     <digraph> swap triggers set-at ;
 
 : add-trigger ( key quot trigger -- )
-    #! trigger should be a symbol. Note that symbols with the same name but
-    #! different vocab are not equal
+    ! trigger should be a symbol. Note that symbols with the same name but
+    ! different vocab are not equal
     trigger-graph add-vertex ; 
 
 : before ( key1 key2 trigger -- )
index 59247e934ca1091a7dff9c18595e2f315ff4ee4a..5f0a1911ae1dd42639fd766597be3e1678467612 100644 (file)
@@ -37,7 +37,7 @@ math.parser random webapps.continuation ;
 IN: webapps.numbers
 
 : web-print ( str -- )
-  #! Display the string in a web page.
+  ! Display the string in a web page.
   [
     swap dup
     <html>