Doug Coleman
c4418e637e
Define reset-class for struct-classes, add unit tests. Fixes #206 .
2011-10-02 20:08:23 -07:00
Doug Coleman
447466bf45
Clean up a parser docs as per suggestions.
2011-10-02 20:08:23 -07:00
Slava Pestov
06218d5d12
compiler.cfg.builder.alien: fix compilation of callbacks which unconditionally throw errors
2011-10-02 19:52:12 -07:00
John Benediktsson
83b11b401f
words: since word names can be tuples (i'm looking at you smalltalk), use a combining hash function inspired by boost::hash_combine.
2011-10-02 18:46:49 -07:00
Doug Coleman
38feae0e8f
Spread now infers with the correct stack effect. Make spread>quot-shallow which trims empty quotations off the head of the spread sequence. Fixes #139 .
2011-10-02 18:35:01 -07:00
John Benediktsson
3b72b641e0
Fix help-lint errors for recent hashtable changes.
2011-10-02 17:49:11 -07:00
John Benediktsson
32111a1095
xml.char-classes: fix upper bound.
2011-10-02 15:30:41 -07:00
John Benediktsson
8579a71efa
benchmark.ant: switching to tuples now that they are fast.
2011-10-02 15:30:25 -07:00
John Benediktsson
195d5834d4
classes.tuple: switch to python's tuplehash(). Fixes #153 .
2011-10-02 13:49:45 -07:00
John Benediktsson
4ad888b530
hashtables: switch to quadratic probing.
2011-10-02 13:49:45 -07:00
John Benediktsson
98e7793799
words: prevent zero hashcodes. Fixes #222 .
2011-10-02 13:49:45 -07:00
Doug Coleman
671f19d70f
Remove all non-core uses of (scan-token)
...
Add scan-datum
Add scan-number
Document more words
Fixes #225 .
2011-10-02 12:00:08 -07:00
Doug Coleman
2fc44d7027
hybrid -> alphanum in stack effects
2011-10-02 11:59:38 -07:00
John Benediktsson
2a234bec02
effects: removing split-shuffle.
2011-10-02 09:26:40 -07:00
John Benediktsson
0fb43fb864
sequences: removing 2unclip-slice.
2011-10-02 09:26:20 -07:00
John Benediktsson
aa4e65ef6f
sorting.human: rename <hybrid> to <alphanum>. Fixes #226 .
2011-10-02 09:24:51 -07:00
John Benediktsson
81e3bef507
xml: 25% (or more) faster.
...
Main performance improvements from:
- improving text? check performance
- fewer "spot get char>>" in skip-until
- better string matching (don't use circular-string sequence=)
2011-09-30 12:47:38 -07:00
John Benediktsson
7bdf805a0f
help.html: better to set all recent help entries to empty.
2011-09-29 13:34:27 -07:00
John Benediktsson
002972c3b4
Revert "ui.clipboards: adding a gadget-copy-all."
...
This reverts commit bee1c0c61e
.
2011-09-29 13:10:21 -07:00
John Benediktsson
73bc2bbbd1
ui.clipboards: adding a gadget-copy-all.
2011-09-29 13:02:23 -07:00
John Benediktsson
aa0f7d0f72
help.html: don't display recent searches. Fixes #211 .
2011-09-29 12:10:55 -07:00
Doug Coleman
76580da5d5
Refactor the lexer/parser to expose friendlier words for scanning tokens. The preferred top-level words now throw an exception on EOF.
...
CREATE -> scan-new
CREATE-CLASS -> scan-new-class
CREATE-WORD -> scan-new-word
CREATE-GENERIC -> scan-new-generic
scan -> (scan-token)
scan-token now throws on eof
(scan-word) returns word/number/f
scan-word now throws on eof
scan-word-name expects a non-number
Fixes #183 .
Fixes #209 .
2011-09-29 11:28:28 -07:00
John Benediktsson
6c775cb489
hashtables.wrapped: re-adding prettyprint.
2011-09-27 14:08:09 -07:00
John Benediktsson
12cfe67f20
webaps.help: display errors in red, add a main method.
2011-09-27 10:20:15 -07:00
John Benediktsson
2659b23115
websites.concatenative: Wrap <help-webapp> in an <alloy> to display form errors. Fixes #196 .
2011-09-27 10:17:54 -07:00
John Benediktsson
64da6fe426
hashtables.wrapped: adding prettyprint vocab.
2011-09-27 08:40:32 -07:00
Doug Coleman
dd01a148e2
Remove require for hashtables.wrapped.prettyprint
2011-09-27 01:29:09 -07:00
John Benediktsson
79c1715b4d
Squashed commit of the following:
...
commit 7b6b0bdf21bca0856bfefc1859618e6e36b35d25
Author: John Benediktsson <mrjbq7@gmail.com>
Date: Mon Sep 26 21:09:07 2011 -0700
hashtables.wrapped: cleanup common prettyprint code.
commit aaed81f93dcfa295bd3dfd8102a5c39511209934
Author: John Benediktsson <mrjbq7@gmail.com>
Date: Sun Sep 25 15:58:55 2011 -0700
hashtables.wrapped: cleaner >foo-hashtable.
commit bb0f8379480935d1dcf482170e8e2a4a519d81d3
Author: John Benediktsson <mrjbq7@gmail.com>
Date: Sun Sep 25 15:39:41 2011 -0700
hashtables.identity: migrate to use hashtables.wrapped.
commit 2e71b3324f0803c15a55429acddc13f06b4876ae
Author: John Benediktsson <mrjbq7@gmail.com>
Date: Sun Sep 25 15:39:19 2011 -0700
hashtables.sequences: wrapped hashtable that uses "sequence=" for key comparison.
commit 040f33b40c424887d596af5c3bd9de0eef9a682e
Author: John Benediktsson <mrjbq7@gmail.com>
Date: Sun Sep 25 15:39:05 2011 -0700
hashtables.wrapped: base class for "wrapped hashtables".
2011-09-26 21:59:26 -07:00
John Benediktsson
fe31c534ea
gpu.state: use qualified for all c-types.
2011-09-26 20:12:10 -07:00
John Benediktsson
c01a301f7e
specialized-arrays: remove unused -cast.
2011-09-26 19:03:07 -07:00
Doug Coleman
3826febfae
Fixes the symptom but not the problem. See bug #201 .
2011-09-26 17:32:34 -07:00
John Benediktsson
f979adcb24
specialized-arrays: fix tests for >c-array change.
2011-09-26 16:55:58 -07:00
John Benediktsson
3a703d797d
values: fix docs (need to escape "\").
2011-09-26 16:55:58 -07:00
Doug Coleman
11bd334abb
Trim down a few using lists
2011-09-26 13:42:46 -07:00
John Benediktsson
25ad4af3e4
Merge remote-tracking branch 'upstream/master'
2011-09-26 13:37:42 -07:00
John Benediktsson
f9986bb446
alien.data: need to mark ">c-array" inline.
2011-09-26 13:34:42 -07:00
Doug Coleman
e255e9f1cb
Fix typo on datagram docs
2011-09-26 12:27:37 -07:00
John Benediktsson
86923107db
classes.tuple: error-class should call-next-method before resetting itself.
2011-09-26 11:54:55 -07:00
John Benediktsson
b7813ed084
see: revert prettyprint change for error-classes (for now display tuple).
2011-09-26 11:51:19 -07:00
John Benediktsson
4f42c72012
specialized-arrays: performed some cleanup.
...
Specifically,
• Created >c-array to be replacement for >T-array.
• Created cast-array to be generic replacement for all T-array-cast words.
• Created c-array@ to be generic replacement for T-array@ words.
• Replaced usages of <T-array> with T <c-array>
• Replaced usages of <direct-T-array> with T <c-direct-array>
• Replaced usages of >T-array with T >c-array
• Replaced usages of T-array-cast with T cast-array
• Replaced usages of malloc-T-array with T malloc-array.
• Removed malloc-T-array.
• Removed T-array-cast.
• Removed T-array@.
• Removed >T-array.
I also added (but didn't change any code to use):
• T c-array-type, returns T-array
• T c-array?, returns T-array?
• c-array{ T ... }, returns T-array{ ... }
Bootstraps just find on Mac OS X. Also `load-all test-all` works for me.
2011-09-26 11:37:51 -07:00
John Benediktsson
be68b9d539
assocs: improve stack effect docs for "?at".
2011-09-26 11:32:20 -07:00
John Benediktsson
baac978767
Removing "to:" syntax from values.
...
Squashed commit of the following:
commit 18fef6bfa59f71dcb63b439f631c735848a9bbbb
Author: John Benediktsson <mrjbq7@gmail.com>
Date: Mon Sep 26 11:02:26 2011 -0700
vocabs.metadata: revert mistaken change.
commit 496b103b54034ea953882a039c08847d0eda0bb4
Author: John Benediktsson <mrjbq7@gmail.com>
Date: Sun Sep 25 19:03:54 2011 -0700
values: Removing "to:" syntax.
2011-09-26 11:08:26 -07:00
John Benediktsson
f099cd5b4c
classes.tuple: adding test cases for error-class and support forget-class.
2011-09-26 11:00:32 -07:00
John Benediktsson
7ef1aecf88
Defining an "error-class", and printing error tuples out with ERROR:. See #188 .
2011-09-26 11:00:32 -07:00
Doug Coleman
eead1f0487
Fix the using for peek streams tests.
2011-09-25 22:54:53 -07:00
John Benediktsson
03021fa981
alarms: removing empty unused vocab.
2011-09-25 22:36:26 -07:00
Doug Coleman
5d998589c2
Decouple adding the coverage annotations from setting the flag in them
...
Add a test-coverage word for reporting on only the unit-tests for a vocabulary
2011-09-25 19:32:36 -07:00
Doug Coleman
819041eede
Remove extra stack effects in windows.messages
2011-09-25 19:32:36 -07:00
Doug Coleman
82a28a082b
Remove extraneous using from math/
2011-09-25 19:32:35 -07:00
Doug Coleman
001ac7fbcd
Extraneous top-level stack-effect
2011-09-25 19:32:34 -07:00