Commit Graph

9856 Commits (e880095da34f15d1257da37ec6bc80e245409cfe)

Author SHA1 Message Date
John Benediktsson 37deaec528 random: random integers is 90% faster. 2011-10-14 18:52:41 -07:00
John Benediktsson 7d31da68b8 debugger: remove double namespace using. 2011-10-14 15:45:31 -07:00
Joe Groff f39f97840a stack-checker: update tests
[ bi ] infer now hits the row polymorphism checker before it hits the unknown-macro-input checker because of the effect on keep. Change the test to more directly test that call fails with an unknown input.
2011-10-14 15:35:29 -07:00
John Benediktsson cc49bbfb27 math.bitwise: bits is clearer this way. 2011-10-14 13:54:08 -07:00
John Benediktsson 2b21f01918 Remove trim-whitespace in favor of [ blank? ] trim. 2011-10-14 13:22:28 -07:00
John Benediktsson d61de12011 Cleanup more lint warnings. 2011-10-14 12:31:46 -07:00
Doug Coleman 623ccb95e6 Remove some duplication in lists 2011-10-14 12:08:48 -07:00
John Benediktsson 378786599d Cleanup lint warnings. 2011-10-14 11:47:24 -07:00
Doug Coleman 933319f401 Cleanups found with lint tool 2011-10-14 10:15:13 -07:00
John Benediktsson 312704ae68 math.parser: cleanup uses of 16/8/2 >base/base>. 2011-10-14 10:09:12 -07:00
John Benediktsson 0965d9be41 webapps.help: remove frames. Fixes #242. 2011-10-13 22:09:30 -07:00
John Benediktsson f20e5df501 io.files.info.unix.linux: fix more M: stack effects. 2011-10-13 17:55:30 -07:00
John Benediktsson 2d8e7c77e8 io.files.info.unix.linux: fix M: stack effect. 2011-10-13 17:38:30 -07:00
John Benediktsson 6417f36397 namespaces: adding a "with-global" word to replace "global [ ] bind". 2011-10-13 17:21:59 -07:00
John Benediktsson 422f427a87 Fix M:: stack effects. 2011-10-13 16:44:30 -07:00
John Benediktsson 4558bf3414 Change method parsing to validate stack effects. Fixes #236. 2011-10-13 16:41:17 -07:00
John Benediktsson 1987deb359 Fix M: stack effects. 2011-10-13 16:41:17 -07:00
John Benediktsson 4baf14972f sequences: adding ?last for symmetry. 2011-10-13 13:04:24 -07:00
John Benediktsson 3207244c60 sequences: define ?first and ?second. 2011-10-13 12:53:46 -07:00
Doug Coleman fb178b19a3 Fix using list for http.server tests 2011-10-12 23:19:11 -07:00
John Benediktsson e7fb699832 http.server: ignore preceding whitespace before request lines. Fixes #252. 2011-10-12 20:21:16 -07:00
John Benediktsson 1769a63ca3 http.client: too aggressive with ?CRLF. 2011-10-12 20:14:21 -07:00
John Benediktsson 0075b6bc28 sequences: adding find-index. 2011-10-12 19:41:54 -07:00
John Benediktsson 9562dc2054 hash2: remove since it is now unused. 2011-10-12 15:18:04 -07:00
John Benediktsson 6dc8af83fd unicode.data: remove dependency on hash2. 2011-10-12 15:17:56 -07:00
John Benediktsson 46f8225f7a http: change client/server to support LF and CRLF delimited headers. 2011-10-12 12:51:49 -07:00
John Benediktsson 24232cb095 io.crlf: add a word that reads an optional CR. 2011-10-12 12:36:54 -07:00
John Benediktsson e7489ba16a unicode.breaks: >words is now 90+% faster. 2011-10-12 11:04:19 -07:00
Doug Coleman 7228c2df2c stream-element-type on output-ports was broken -- it looked for a stream>> slot but no such slot exists. add some unit tests 2011-10-12 01:05:01 -07:00
John Benediktsson 950f1e1c04 random: be> is faster (and they are random anyway)... 2011-10-11 22:31:21 -07:00
John Benediktsson afc07c0e05 io.binary: make le> and be> faster (20% and 75%, respectively).
Removed primitive byte-array>bignum and digit_stream_to_bignum from vm/.
2011-10-11 21:13:30 -07:00
Doug Coleman 757889167a Optimize byte-reverse macro in alien.endian -- it was shifting each byte to the 0th bit place, bitand-ing it with HEX: ff, then shifting it to its final destination -- now we immediately shift to the proper location and bitand with the proper bitmask. 2011-10-11 19:36:22 -07:00
Doug Coleman c74402dad9 Fix using list because I'm dumb for developing Windows changes from a Mac. 2011-10-11 13:33:44 -07:00
Doug Coleman 63fa01fd4f Proper double-quote and backslash escaping for windows command line arguments. Fixes #245. 2011-10-11 12:21:04 -07:00
Doug Coleman 871dfb9a3a On Windows, escape command line arguments with double quotes with a backslash: " -> \". Fixes #245. 2011-10-10 22:24:23 -07:00
Slava Pestov 84fda0bb05 alien.complex: fix docs 2011-10-10 22:12:50 -07:00
Slava Pestov ae286fb7ef callback-error: don't use -e until we fix issue #245 2011-10-10 21:25:50 -07:00
Slava Pestov df7ee85daf regexp.classes: remove dependency on mirrors vocab 2011-10-10 21:09:59 -07:00
Slava Pestov ea73b42578 bootstrap.compiler: now that C types are named by words, we don't have to load alien.complex on bootstrap 2011-10-10 21:09:58 -07:00
Joe Groff e200656ce4 tools.test.fuzz tests: missing using 2011-10-10 18:03:52 -07:00
Slava Pestov 7bc38641f9 compiler.tree.identities: the identity on mod was useless too, because we already have a rewrite rule which handles this case in compiler.tree.propagation 2011-10-10 12:34:21 -07:00
Joe Groff b5fc65707d new module tools.test.fuzz: quickcheck-style probabilistic testing, based on Andrew Pennebaker's factcheck vocab 2011-10-10 12:23:23 -07:00
Joe Groff 5a21742f74 tools.test: move fake-unit-test utility from test suite to module 2011-10-10 12:23:23 -07:00
Slava Pestov dc36fd712d compiler.cfg.representations: fix unit test, it depended on hashing order which changed recently 2011-10-10 12:15:41 -07:00
Slava Pestov 3a0ffceed9 compiler.tree.propagation.transforms: fix rem and mod custom inlining 2011-10-10 12:12:53 -07:00
Slava Pestov 7a4ab74703 compiler.codegen.gc-maps: fix tests 2011-10-10 12:07:09 -07:00
Slava Pestov 901ee2434c Fix custom-inlining for mod and rem, which was converting these calls to bitand in some cases, even if the input was not known to be an integer. Fixes #243 2011-10-09 13:51:35 -07:00
Slava Pestov b4588629ab Remove identities on / and rem, which were no-ops because integer-derived-ops would return an empty array 2011-10-09 13:51:03 -07:00
Doug Coleman 044a03dc34 On Windows, the overlapped structure high bits were always zero, so reading through a file > 4gb would loop forever. 2011-10-07 15:04:00 -07:00
Doug Coleman 31175eb5cc Mixin classes in redefine25 test are forgotten, but words still reference them -- forget those words, too. Fixes #143. 2011-10-07 10:49:17 -07:00
Doug Coleman cca76e0f6e Rename forget-struct-slot-accessors -> forget-slot-accessors 2011-10-06 13:21:18 -07:00
Doug Coleman 2402345794 Add examples to encode/decode docs. 2011-10-06 13:21:18 -07:00
Doug Coleman e7e6191df9 Throw an error if an odd number of hex digits gets parsed by H{. 2011-10-06 13:21:17 -07:00
Doug Coleman 685fc2f86f Rename method -> lookup-method in three places. 2011-10-04 20:37:23 -07:00
Doug Coleman be3eebf719 Document reset-class, forget-class, forget-method. Use lookup-method in see, fix gpu.render for method->lookup-method renaming. Fixes #232. 2011-10-04 10:40:48 -07:00
Doug Coleman acbe85f0f4 Rename the STRUCT: point word to something else because it conflicts with other unit tests which define a point word in scratchpad. The struct point is redefined to a tuple point and causes the macro-expansion to error out now that structs are properly reset, so instead we just give it a unique name so it doesnt get redefined. Perhaps examples should define their own vocabularies instead of using scratchpad. 2011-10-03 17:13:20 -07:00
Doug Coleman 25c64d12e8 Forget struct slot accessors when structs classes are redefined 2011-10-03 17:12:49 -07:00
Doug Coleman c14f217300 Fix delegate vocab for lookup-method change. 2011-10-03 16:42:24 -07:00
Doug Coleman 181f11faa8 Make M\ throw an error upon lookup failure. Change method -> ?lookup-method, lookup-method is the throwing version of ?lookup-method. Fixes #229. 2011-10-03 15:49:49 -07:00
Doug Coleman 8ee9fcc11f Less use of eval( in unit tests 2011-10-03 13:54:34 -07:00
Doug Coleman 25cdeaf8b0 Fix using list in classes.struct tests 2011-10-03 01:06:02 -07:00
Slava Pestov 6bd956670b tools.continuations: >c and c> are gone 2011-10-03 00:37:48 -07:00
Slava Pestov f8e475485a Add RT_INLINE_CACHE_MISS relocation type to avoid frequent dlsym lookups when compiling PICs. Fixes #123 2011-10-03 00:26:21 -07:00
Slava Pestov 72d3c6e791 Fix linkage-errors test to not clobber its own linkage error 2011-10-03 00:26:21 -07:00
Slava Pestov 05f7419f2f Rework non-optimizing compiler backend to use compiler.codegen.relocation 2011-10-03 00:26:21 -07:00
Slava Pestov b89e9a549b Split up compiler.codegen.fixup into compiler.codegen.{gc-maps,labels,relocation} 2011-10-03 00:25:47 -07:00
Slava Pestov c68e2308a8 Display a system-alert for callback errors in the UI; also for thread errors in deployed apps; fixes #92, fixes #95 2011-10-03 00:24:37 -07:00
Slava Pestov dabbe35bd9 concurrency.mailboxes: linked-thread's error reporting should still work even when debugger.threads is not loaded. This addresses part of #95 2011-10-03 00:24:37 -07:00
Doug Coleman f4da6f366c Make histogram example unchecked since hashtables print differently now that hashcodes are more optimized 2011-10-02 22:21:12 -07:00
Doug Coleman 44ef1d3698 compiler.tree.modular-arithmetic needs shallow-spread>quot 2011-10-02 22:21:11 -07:00
Slava Pestov daf40ea0c6 Fix infinite loop and empty-dlist error when an error is thrown from a callback running in a thread other than the initial thread. This addresses part of issue #92 2011-10-02 21:59:09 -07:00
Doug Coleman b6f0ee64a0 Fix abuse of spread in persistent.hashtables. 2011-10-02 21:53:17 -07:00
Doug Coleman 8504b17aad Rename spread>quot to deep-spread>quot, and spread>quot-shallow to shallow-spread>quot. 2011-10-02 20:25:39 -07:00
Doug Coleman c4418e637e Define reset-class for struct-classes, add unit tests. Fixes #206. 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
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
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 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 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 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 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 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 7ef1aecf88 Defining an "error-class", and printing error tuples out with ERROR:. See #188. 2011-09-26 11:00:32 -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 001ac7fbcd Extraneous top-level stack-effect 2011-09-25 19:32:34 -07:00
John Benediktsson 82e34082ec classes.struct: add test cases for see on structs. 2011-09-25 17:25:28 -07:00
John Benediktsson 645fb8ccd3 images.cocoa: removing unused image loader code. 2011-09-25 16:41:11 -07:00
John Benediktsson 98f7d2530d ui.gadgets.editors: simplify private word. 2011-09-25 11:43:53 -07:00
John Benediktsson 1fa63f97f0 Removing unused private words. See #132. 2011-09-25 11:43:26 -07:00
John Benediktsson bbeccadbbe tools.crossref: now 50% faster. 2011-09-25 11:40:55 -07:00
John Benediktsson a916bebcfe Fixing docs for recent stack effects additions. 2011-09-24 22:08:54 -07:00
John Benediktsson 808eb6726c sequences.product: fix help-lint for stack effect changes. 2011-09-24 21:07:11 -07:00
Joe Groff 81b12adcad math.blas, alien.fortran: move to unmaintained cuz I'm getting too old for this shit. closes #171 2011-09-24 20:59:21 -07:00
John Benediktsson 849674f847 images: only register with the images.loader on proper platform. Fixes #172. Fixes #173. 2011-09-24 19:19:34 -07:00
John Benediktsson e49c3d17b5 classes.struct: Fix prettyprint for PACKED-STRUCT. Fixes #162. 2011-09-24 17:55:13 -07:00
John Benediktsson 94815d0f3c sequences.product: improve stack effects. 2011-09-23 17:46:55 -07:00
John Benediktsson 3c1356bf69 Adding stack effects. 2011-09-23 17:46:40 -07:00
John Benediktsson f6b6e17b00 alien.data: removing unused (and broken?) "require-c-array". 2011-09-23 13:15:09 -07:00
Joe Groff 954bf89c40 math.functions: clean up some more to trim back load-time dependencies; alter tests to avoid inexact float constants where possible and hex-ify inexact constants otherwise 2011-09-22 16:04:49 -07:00
John Benediktsson 96c710a7b7 math.functions: inline 'on-bits' per Joe Groff's suggestion. 2011-09-22 13:44:30 -07:00
John Benediktsson aa880f46ca math.functions: rename 'bignum-log-helper'. 2011-09-22 12:38:33 -07:00
John Benediktsson 820b54d0f7 math.functions: duplicate on-bits to avoid circular dependency on math.bitwise. 2011-09-22 12:23:16 -07:00
John Benediktsson 90dbb84663 math.functions: test log with negative (really) bignums. 2011-09-22 11:15:06 -07:00
John Benediktsson 7f4604318a math.functions: add forgotten imports and fix between? check. 2011-09-22 10:00:22 -07:00
John Benediktsson 077ef8ed5b math.functions: implement "frexp" and support log of really big numbers. Fixes #160. 2011-09-22 09:42:28 -07:00
Doug Coleman fa52349f9c Add STRUCT: syntax to alien.endian. Test and document the changes. 2011-09-22 11:27:53 -05:00
John Benediktsson 216f2332be alien: fix docs (add space between sentences). 2011-09-21 19:33:23 -07:00
Doug Coleman 4220f9dc0c Add c-types in alien.endian for making endian-aware STRUCTs. 2011-09-21 16:04:17 -05:00
Doug Coleman eedc1e185f Add more unit-tests and docs for math.bitwise. Fix a bug with >signed so that it truncates a number to however many bits you tell it the number is before doing the calculation. 2011-09-21 14:55:50 -05:00
John Benediktsson 5bef322c6a xml.tests: fix encoding test for latin5. Fixes #144. 2011-09-19 16:28:18 -07:00
Joe Groff 2bd6de9a02 slots: pre-create the "at", "nth", and "global" slots to make deterministic the currently nondeterministic ambiguity between accessors:change-* and assocs:change-at, sequences:change-nth, and namespaces:change-global 2011-09-19 10:03:43 -07:00
John Benediktsson 023435a253 see: revert change for ALIAS (since it breaks parsing prettyprint). See #120. 2011-09-18 22:43:44 -07:00
Doug Coleman bf2a96e9e0 Remove Windows CE from core/ basis/ and build-support/
Rename the winnt singleton to windows in core/ basis/ extra/
Rename boot images winnt -> windows
Fixes #84.
2011-09-18 23:19:06 -05:00
John Benediktsson c583b8ad97 see: show stack effects for ALIAS: definitions. Fixes #120. 2011-09-18 16:59:14 -07:00
John Benediktsson ffd54d4d20 ui.tools.listener.completion: when completing history, only show unique completions. 2011-09-17 09:53:59 -07:00
John Benediktsson 22cce1d4e2 ui.tools.listener.completion: delay history-list to allow live searching. 2011-09-17 09:06:10 -07:00
John Benediktsson 1c3c2e6b1a ui.tools.listener.completion: allow substring search in history. Fixes #133. 2011-09-17 09:04:36 -07:00
John Benediktsson c5601cd86e tools.completion: add test that empty completions preserve order. 2011-09-17 09:00:43 -07:00
John Benediktsson 91824e5697 ui.tools.profiler: fix link to help. 2011-09-17 08:14:13 -07:00
John Benediktsson 499778d808 compiler.tree.escape-analysis.allocations: simplify stack effect. 2011-09-17 08:14:13 -07:00
Joe Groff 88c5bb17f8 help.markup: add tests 2011-09-15 15:55:54 -07:00
Joe Groff 668a4557da help.markup: change related-words to notify definition observers for the affected words and to update the relations of formerly-related words; fixes #28 2011-09-15 15:55:54 -07:00
Joe Groff 8e36e0221d words: move change-word-prop from delegate.private to words 2011-09-15 15:55:54 -07:00
Joe Groff 24264e94f4 ui.tools.deploy: change "Deploy as Windows console application" to read "Deploy as console application on Windows"; makes it a bit clearer that the switch only affects Windows deployment 2011-09-15 15:05:17 -07:00
Joe Groff 9bd84e73f4 ui.backend: refactor the UI `main-vocab-hook` to use a backend-specific `ui-backend-available?` word, so that loading other backends doesn't change the `main-vocab-hook` out of sync with the backend; fixes #131 2011-09-15 13:14:01 -07:00
John Benediktsson 4726757d95 json.reader: cleanup and speed up when handling heavily escaped strings. 2011-09-15 07:59:17 -07:00
John Benediktsson 27e0071105 ui.tools.listener.history: only add a history entry if it does not match the most recent entry. 2011-09-15 07:57:51 -07:00
Joe Groff c14f087196 windows, windows.directx: move directx libraries out of windows vocab 2011-09-14 11:25:06 -07:00
Slava Pestov 6e6c42179a tools.errors: fix help lint 2011-09-13 23:40:48 -07:00
Slava Pestov 736cebe729 Fix linkage-errors tests for recent changes 2011-09-13 20:42:36 -07:00
Slava Pestov 2cf574945a tools.deploy.shaker: update for alien.libraries changes 2011-09-13 20:19:11 -07:00
Slava Pestov acde29b7c7 alien.libraries: add platforms.txt 2011-09-13 20:18:02 -07:00
Joe Groff d6668caf7d compiler.cfg.builder.alien: fix caller-linkage to return the DLL and not the library tuple again; fixes issue #121 2011-09-13 15:10:48 -07:00
Joe Groff 7f71ab3024 bootstrap.compiler: move GetLastError/FormatMessageW compilation before any other foreign words; add a similar shortlist for dlerror on unix as a safeguard 2011-09-13 13:33:07 -07:00
Joe Groff 1927cfeec1 bootstrap.compiler: add GetLastError and FormatMessageW to the compilation shortlist on Windows to avoid compilation order issues 2011-09-13 13:33:07 -07:00
Joe Groff 218cdcbe0b alien.libraries.unix: break circular dependency on alien.syntax 2011-09-13 09:49:53 -07:00
John Benediktsson 36da386816 tools.completion: undo private change, and add tests. 2011-09-13 09:22:57 -07:00
John Benediktsson 2cdff2746c Merge remote-tracking branch 'factorcode/master' 2011-09-13 09:14:07 -07:00
John Benediktsson 5e496e846b tools.completion: speed up apropos by 35%. Fixes #101. 2011-09-13 09:13:02 -07:00
Joe Groff 5703e8d7a1 alien.libraries, compiler.cfg.builder.alien: if `dlopen` fails during `<library>`, call `dlerror` and store the error message in the library object; put the dlerror message in the linkage-error when a word from the library is compiled 2011-09-12 23:25:59 -07:00
Joe Groff b6e0f0180b alien.libraries, compiler.cfg.builder.alien: include the result of dlerror/GetLastError in the linkage-error for missing symbols 2011-09-12 23:25:59 -07:00
John Benediktsson b653360299 math.primes.safe: fix docs. 2011-09-12 10:56:39 -07:00
Slava Pestov 7c3827190b Tease out symbol name and library in undefined_symbol() handler, for friendlier errors when calling an unresolved C function name. Fixes #93 2011-09-12 00:56:24 -07:00
Slava Pestov b3a051d385 ui.backend.gtk: don't enable gtk UI backend by default on Mac OS X. Fixes #40 2011-09-11 23:41:43 -07:00
Slava Pestov 7d99ff0900 Use debugger to print an error if startup hook fails; fixes #39 2011-09-11 23:38:26 -07:00
Joe Groff 9b23085c95 cocoa.runtime: remove bindings to obsolete objc runtime functions 2011-09-11 16:45:44 -07:00
Joe Groff 5ce32b35a7 command-line.startup: add note about -run=listener and -run=ui.tools to the --help text (as suggested by @yac in issue #94) 2011-09-11 10:12:09 -07:00
John Benediktsson a4b6adbb6d system-info.macosx: Using 'gestalt' to support 'os-version' on macosx. 2011-09-11 08:29:16 -07:00
Doug Coleman 1b20b0c476 Make sure 0 read always returns f. Fixes issue #70.
More unit tests, fix read-until to return f f sometimes
Rename ((read-until)) to read-until-loop. Fix the stack effect declarations of (read) and handle-readln.
2011-09-09 18:51:06 -07:00
Doug Coleman dd824bf0e5 Display articles in history better. Fixes issue #29.
Define a default method on article-name to call article-title.
2011-09-09 18:49:31 -07:00
Joe Groff 003271f2b8 math.statistics: declare polymorphic effects on sequence>* combinators now that #88 is fixed 2011-09-09 18:13:17 -07:00
Joe Groff e293966618 stack-checker.row-polymorphism: check stack effects correctly when a one-sided polymorphic declared effect is matched to a shallow subtype, for example, ( x -- ..a ) to ( -- ); fixes #88 2011-09-09 18:13:17 -07:00
Joe Groff 8f6c6e5691 random: rewrite normal-random-float to be more readable 2011-09-09 18:13:17 -07:00
Doug Coleman 40ac81d656 Fix a using in system-info.linux 2011-09-09 01:48:26 -07:00
Slava Pestov 8d4891a5af core-graphics: set premultiplied-alpha? in make-bitmap-image. Fixes #73 2011-09-08 23:08:16 -07:00
Slava Pestov d06f97eb99 system-info.linux: clean up and implement os-version 2011-09-08 21:59:03 -07:00
Joe Groff c57c26b3be math.statistics: add higher-order stack effect annotations to sequence>* words; factor out a "histogram-by" word from "histogram" that takes an additional binning quotation 2011-09-08 19:07:33 -07:00
Doug Coleman 7872d6fc66 Forgot a using in system-info.windows 2011-09-08 16:22:03 -07:00
Doug Coleman 937bdbb6ec Add os-version hook to system-info which returns f on every platform except windows, where it returns { 5 1 } for xp and { 6 1 } for win7. Eventually do more here, like identify Snow Leopard, Lion, etc, but it's good enough to make ping tests pass.
Move system-info platform loader into system-info.backend
Add win7? and winxp? words to system-info, clean up ping-tests with new word
Merge system-info.backend into system-info. Will throw an exception when loading on *bsd now
2011-09-08 15:48:05 -07:00
Doug Coleman ed416d210b Windows bindings for security tokens 2011-09-08 15:47:57 -07:00
Doug Coleman f4c66e8be7 parser.notes sets parser-quiet? to t in the global namespace. stage2.factor runs its code in the global namespace, so 1) make it more clear that we're setting the global parser-quiet? and 2) change it back before finishing bootstrap to match parser.notes top-level form 2011-09-07 13:41:18 -05:00
John Benediktsson f8b4d2d2f9 bootstrap.image: use "parser-quiet? off" for consistency. 2011-09-07 10:50:54 -07:00
Doug Coleman c441d2a629 Only test postgresql on win32 2011-09-07 00:35:26 -07:00
Doug Coleman 56e8ddb9cb Fix windows unit test 2011-09-07 00:35:03 -07:00
Doug Coleman dcbc7ef0a7 Fix shaker 2011-09-07 00:34:23 -07:00
Doug Coleman 5fce2d0f27 Make "quiet" true by default. Disable quiet mode for listener, bootstrap, and deploy tool.
Move "quiet" to parser-quiet? in parser.notes. Change a few places where quiet was handle wrong.
2011-09-06 17:58:12 -07:00
Doug Coleman deb1ac9e1d Change postgresql test database to prepend the cpu string so that running two builders on the Mac Pro build machine will not cause random failures due to interference. 2011-09-06 17:51:46 -07:00
Slava Pestov ed9cf9e4fd Move some primitives from memory and memory.private to tools.memory.private, add data-heap and code-heap words that wrap the struct for you 2011-09-05 16:47:29 -07:00
John Benediktsson b13eb201bd tools.crossref: adding stack effect. 2011-09-03 16:39:04 -07:00
Joe Groff 863262ece7 images.cocoa: set premultiplied-alpha? on loaded images 2011-09-03 11:30:27 -07:00
Joe Groff d510723d8e alien.c-types: fill out the higher-order stack effect of if-void 2011-09-03 11:10:08 -07:00
Doug Coleman 604dbf4df7 parse-here doesn't consume an extra line now, and it checks that once a line has started there are no extra characters 2011-09-03 12:17:30 -05:00
Slava Pestov b3cbdb0426 images.cocoa: fix it to work on OS X 10.5 by drawing the image into a CGContext instead of getting image data directly 2011-09-02 18:59:58 -07:00
Slava Pestov da6f65a3d3 ui.gadgets.tables: don't try to render multi-line strings, since all table rows must have the same height. Fixes #65 2011-09-01 22:41:12 -07:00
Slava Pestov 7c14b6d839 ui.backend.gtk: remove unused vocabs from USING: list 2011-09-01 22:31:45 -07:00
Slava Pestov 418ded51c1 xml.*: remove unnecessary dependencies on xml.writer 2011-09-01 22:31:45 -07:00
Slava Pestov cf238b4c7d images.*: remove usage of io.streams.limited 2011-09-01 22:31:45 -07:00
Slava Pestov a8633d28c7 unix.*, io.directories.unix: remove unnecessary dependency on io.backend.unix 2011-09-01 22:31:45 -07:00