John Benediktsson
351d68b1e1
Revert "alien.libraries: dlopen should handle resource:-paths"
...
This reverts commit cc663fff88fa7321af6deea424890128d3b0bc07.
Conflicts:
basis/alien/libraries/libraries-tests.factor
2013-12-20 21:07:31 -08:00
Björn Lindqvist
4db103b91e
alien.libraries.tests: compressed USING line.. at least its in alphabetical order
2013-12-12 18:00:25 -08:00
Björn Lindqvist
ab7494eef9
alien.libraries: dlopen should handle resource:-paths
2013-12-12 18:00:25 -08:00
John Benediktsson
28051e69a9
alien.libraries.finder: adding platforms.txt.
2013-11-17 08:35:16 -08:00
John Benediktsson
9de7b67472
alien.libraries.finder.linux: use third element which is file name.
2013-11-16 16:48:22 -08:00
John Benediktsson
1e2a4df88c
alien.libraries.finder.linux: fix using.
2013-11-16 16:33:17 -08:00
John Benediktsson
c0656c81ed
alien.libraries.finder.macosx: fix tests.
2013-11-16 16:26:17 -08:00
John Benediktsson
302df73686
alien.libraries.finder.windows: more like MSDN search order.
2013-11-16 16:10:31 -08:00
John Benediktsson
45af0bc563
alien.libraries.finder.linux: dont use dlopen.
2013-11-16 16:10:31 -08:00
John Benediktsson
935612035c
alien.libraries.finder: split into sub-vocabularies and implement macosx better.
2013-11-16 11:58:37 -08:00
Björn Lindqvist
80b180b96b
alien.libraries.finder: remove unused import
2013-11-10 15:10:14 +01:00
Björn Lindqvist
29ad75a85d
alien.libraries.finder: better library resolving
2013-11-10 02:27:56 +01:00
Björn Lindqvist
0236212987
alien.libraries.finder: linux code path for find-library
...
/sbin/ldconfig -p is used to figure out what the correct lib name
is. It is the same method as used in python ctypes.
2013-11-10 02:27:56 +01:00
Björn Lindqvist
21bd4cc6ea
alien.libraries.finder: automatically find library files based on library names
...
To make it easier to support cross-platform library bindings use the
find-library word. Factor is then supposed to automatically locate the
correct library file depending on the users' platform. Then you dont
have to specify the full so-name on unixes which breaks if the user
has a newer library version. The same library lookups that
ctypes.find_library uses will be implemented in future commits.
2013-11-10 02:27:56 +01:00
John Benediktsson
c900590f8b
use concat instead of join.
2013-04-06 17:02:22 -07:00
Doug Coleman
f820215b1e
alien.libraries: Rename library to lookup-library.
2013-03-23 17:16:46 -07:00
Doug Coleman
5fab749dcc
words: Change word -> last-word, set-word -> set-last-word.
2013-03-23 16:12:03 -07:00
Doug Coleman
d8c7a7b153
alien.data: Add malloc-like for copying c-arrays into malloc'd c-arrays.
2012-09-26 17:11:48 -07:00
Doug Coleman
1a91e3a8ff
alien.c-types: Add c-type-signed to protocol, which is true for signed
...
types. Use c-type-signed in classes.struct.
2012-09-16 14:42:18 -07:00
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