John Benediktsson
3cfce74d28
Revert "alien.libraries: allow "foo f address-of" to be folded."
...
This reverts commit 96c7a59ad2
.
2012-07-31 22:11:25 -07:00
John Benediktsson
7b7df45c50
alien.libraries: allow "foo f address-of" to be folded.
2012-07-31 22:03:06 -07:00
John Benediktsson
934b307ba2
make some predicates return t/f instead of something/f.
2012-07-29 10:52:46 -07:00
Doug Coleman
1c3deddf61
issue #358 : Rename all of the words depends-on-* to add-depends-on*
2012-06-21 08:35:45 -07:00
John Benediktsson
ba079d2217
alien.remote-control: using temp directory.
2012-06-18 12:33:14 -07:00
Joe Groff
943596575a
use radix literals
2011-11-23 19:03:40 -08:00
Doug Coleman
5a2243d481
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
1b38835207
remove lingering mentions of macosx-ppc
2011-11-02 18:40:27 -07:00
Joe Groff
8cf18d1a82
remove BSD,solaris,etc. misc platform support code
2011-11-02 17:13:51 -07:00
Joe Groff
186bf65a00
constants for special object hardcoded literals
2011-11-02 12:54:50 -07:00
Doug Coleman
94db86a6db
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
763d9a3f7d
Missed yet more renames
2011-10-24 17:00:09 -07:00
Doug Coleman
0d059e0f19
Found a few more places to use lookup-c-type
2011-10-24 15:58:40 -07:00
Doug Coleman
ff69e2f240
Rename c-type to lookup-c-type. Fixes #230 .
2011-10-24 14:37:24 -07:00
John Benediktsson
5a943b32c4
Remove stack effects from HELP: declarations.
2011-10-20 19:36:11 -07:00
John Benediktsson
80e1c8e3f2
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
9f4eeb55f9
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
09f55f82fa
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
6f12322bda
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
b79d7158be
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
d61de12011
Cleanup more lint warnings.
2011-10-14 12:31:46 -07:00
John Benediktsson
378786599d
Cleanup lint warnings.
2011-10-14 11:47:24 -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
Slava Pestov
84fda0bb05
alien.complex: fix docs
2011-10-10 22:12:50 -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
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
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
f9986bb446
alien.data: need to mark ">c-array" inline.
2011-09-26 13:34:42 -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
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
f6b6e17b00
alien.data: removing unused (and broken?) "require-c-array".
2011-09-23 13:15:09 -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
Slava Pestov
acde29b7c7
alien.libraries: add platforms.txt
2011-09-13 20:18:02 -07:00
Joe Groff
218cdcbe0b
alien.libraries.unix: break circular dependency on alien.syntax
2011-09-13 09:49:53 -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
Joe Groff
d510723d8e
alien.c-types: fill out the higher-order stack effect of if-void
2011-09-03 11:10:08 -07:00
Joe Groff
a820c1091d
alien: merge enum improvements from Blei/gtk-image-loader
2011-08-27 13:48:30 -07:00
Erik Charlebois
e28e48beea
Create a setter for C-GLOBAL words
2011-05-23 23:36:14 -04:00
Erik Charlebois
64252dbdbc
32 and 64 bit Linux PPC support
2011-05-23 23:36:14 -04:00
Slava Pestov
59a708638c
alien.c-types: add summary and docs for no-c-type error
2011-04-03 22:33:51 -07:00
Slava Pestov
b0732bcb22
Fix unit test failures caused by alien.data change
2010-12-25 22:34:12 -08:00
Slava Pestov
75560699ea
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
dd0d9fbc10
alien.fortran: cleanup
2010-12-01 03:00:00 -08:00
Joe Groff
2dbfc7df33
alien.fortran: fix stack effect of SUBROUTINE: and FUNCTION: words to include out parameters
2010-12-01 07:05:32 +05:30
Slava Pestov
8be8c7f213
Merge branch 'master' of git://factorcode.org/git/factor
2010-10-31 20:26:29 -05:00
Slava Pestov
b03a16ef4d
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
e139a7a02d
Clean up alien.c-types changes a little
2010-10-25 21:09:08 -07:00