Commit Graph

525 Commits (c9664e746b0f4b51e5fde48284e01cc7c3243c76)

Author SHA1 Message Date
Doug Coleman 117d57ad92 issue #358: Rename all of the words depends-on-* to add-depends-on* 2012-06-21 08:35:45 -07:00
John Benediktsson 11f3e316f2 alien.remote-control: using temp directory. 2012-06-18 12:33:14 -07:00
Joe Groff eee483654a use radix literals 2011-11-23 19:03:40 -08:00
Doug Coleman 8245e3bfb4 alien.endian: read 64bit numbers of the opposite endian as two 32bit numbers, then bitor them together 2011-11-15 13:22:49 -08:00
Joe Groff aaf2b14306 remove lingering mentions of macosx-ppc 2011-11-02 18:40:27 -07:00
Joe Groff 75cba3106a remove BSD,solaris,etc. misc platform support code 2011-11-02 17:13:51 -07:00
Joe Groff 8aebe4677b constants for special object hardcoded literals 2011-11-02 12:54:50 -07:00
Doug Coleman be12f2b27d Make "foo.private" require load foo instead.
Move require from vocabs.loader to vocabs. Update everything.
Fixes #201.
2011-11-02 11:50:03 -07:00
Doug Coleman 55d6dc14b0 Missed yet more renames 2011-10-24 17:00:09 -07:00
Doug Coleman 14a2511d57 Found a few more places to use lookup-c-type 2011-10-24 15:58:40 -07:00
Doug Coleman 7bfbe17861 Rename c-type to lookup-c-type. Fixes #230. 2011-10-24 14:37:24 -07:00
John Benediktsson a13676f3b6 Remove stack effects from HELP: declarations. 2011-10-20 19:36:11 -07:00
John Benediktsson f2741b34a4 Eliminate duplicate syntax for stack effects "(" no longer drops and is identical to the old "((", which is now removed. 2011-10-18 13:19:39 -07:00
John Benediktsson 844eacce00 Revert "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."
This reverts commit c701a39e89.
2011-10-17 21:39:57 -07:00
Joe Groff 7cf22250ce clean up forwarding stream-read-partial-unsafe
Now that "io" provides a method on object for stream-read-partial-unsafe that forwards to stream-read-unsafe, individual stream class that don't implement partial reads don't need to provide such a method themselves.
2011-10-17 21:23:06 -07:00
Joe Groff 1e37b525a3 kill noncopying-reader mixin, stream-read generic
Now that all streams have been updated to implement the stream-read-unsafe protocol, take out the noncopying-reader shim. Turn stream-read and stream-read-partial into plain functions over the -unsafe generics.
2011-10-17 21:23:05 -07:00
Joe Groff f6b54c50cc io.streams.memory: implement stream-read-unsafe
(The actual method is in alien.data due to bootstrap load order issues.)
2011-10-17 21:22:59 -07:00
John Benediktsson eb55f8575c Cleanup more lint warnings. 2011-10-14 12:31:46 -07:00
John Benediktsson f419934d6a Cleanup lint warnings. 2011-10-14 11:47:24 -07:00
Doug Coleman c701a39e89 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
Slava Pestov 1c8b2fdb1b alien.complex: fix docs 2011-10-10 22:12:50 -07:00
Doug Coleman acff4eee0c 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 94f3ca3b8c 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 300138eb4d 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 e47ae99a85 alien.data: need to mark ">c-array" inline. 2011-09-26 13:34:42 -07:00
John Benediktsson 0e3d598e69 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
Joe Groff 4bd571530f 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 01bd3439c6 alien.data: removing unused (and broken?) "require-c-array". 2011-09-23 13:15:09 -07:00
Doug Coleman 83bfb96b80 Add STRUCT: syntax to alien.endian. Test and document the changes. 2011-09-22 11:27:53 -05:00
John Benediktsson bc8c6e58ca alien: fix docs (add space between sentences). 2011-09-21 19:33:23 -07:00
Doug Coleman 56e893df8f Add c-types in alien.endian for making endian-aware STRUCTs. 2011-09-21 16:04:17 -05:00
Slava Pestov 73b268fca5 alien.libraries: add platforms.txt 2011-09-13 20:18:02 -07:00
Joe Groff afe9a607ec alien.libraries.unix: break circular dependency on alien.syntax 2011-09-13 09:49:53 -07:00
Joe Groff ab205897f2 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 f97e05b79d 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
Joe Groff 81f56b1dba alien.c-types: fill out the higher-order stack effect of if-void 2011-09-03 11:10:08 -07:00
Joe Groff 3e8db288f6 alien: merge enum improvements from Blei/gtk-image-loader 2011-08-27 13:48:30 -07:00
Erik Charlebois 94064b115e Create a setter for C-GLOBAL words 2011-05-23 23:36:14 -04:00
Erik Charlebois 1ed2bc6231 32 and 64 bit Linux PPC support 2011-05-23 23:36:14 -04:00
Slava Pestov 1d6e19626e alien.c-types: add summary and docs for no-c-type error 2011-04-03 22:33:51 -07:00
Slava Pestov 25fb472f73 Fix unit test failures caused by alien.data change 2010-12-25 22:34:12 -08:00
Slava Pestov 55fd15c45a Move <ref>, deref and little-endian? from alien.c-types to alien.data, remove <c-object> 2010-12-25 16:55:36 -08:00
Slava Pestov 765349f545 alien.fortran: cleanup 2010-12-01 03:00:00 -08:00
Joe Groff a729119fd0 alien.fortran: fix stack effect of SUBROUTINE: and FUNCTION: words to include out parameters 2010-12-01 07:05:32 +05:30
Slava Pestov 8a1d28b22c Merge branch 'master' of git://factorcode.org/git/factor 2010-10-31 20:26:29 -05:00
Slava Pestov 68398da359 alien.libraries: add-library won't close and re-open the library if nothing changed. This fixes a crash on Windows when reloading the windows vocab 2010-10-25 23:39:15 -05:00
Slava Pestov 65de3dd062 Clean up alien.c-types changes a little 2010-10-25 21:09:08 -07:00
Doug Coleman 657b490f69 Remove <uint> *uint and friends. Hopefully remove the last usages of these words 2010-10-25 15:54:42 -05:00
Doug Coleman 6510bdb1eb Remove usages of <void*> and *void* 2010-10-25 13:22:50 -05:00
Doug Coleman 40bdadcac4 Remove many uses of <int> and *int etc 2010-10-25 12:49:12 -05:00