Doug Coleman
4e9d383fe5
docs: Fix help-lint-all mistakes.
2018-07-07 01:13:19 -05:00
Doug Coleman
9f213f96f6
core: Add the shuffler words but without primitives.
...
The nipd branch slowed bootstrap by a minute, this patch does not.
sorry about changing the fjsc line endings...
2018-06-19 22:52:58 -05:00
Doug Coleman
310a4a247c
alien.libraries: load-library is misnamed, refactor library-dll.
...
load-library implies that dlopen() is called, which is totally not the
case. add-library calls dlopen() and load-library just looks the opened
library up in the ``libraries`` global. What load-library did is now
library-dll.
If we want to do it right, add-library should be a declarative top-level
form that tries to call a real load-library on demand instead of
memoizing the first try which would fix the case where the library is
not found, is moved into position by the user and Factor declines to
look it up again.
2018-02-19 10:38:21 -06:00
Björn Lindqvist
3a7c1ead3b
alien.libraries.finder: find-library for gtk libs
...
This should make the code find the correct .so's when compiling Factor
yourself.
2018-01-24 13:17:54 +01:00
Björn Lindqvist
2424a77507
alien.libraries.finder.linux.tests: correcting in
2018-01-24 13:13:20 +01:00
Doug Coleman
c5b563ed09
factor: Rename start -> subseq-start, start* -> subseq-start-from.
...
I also removed aliases for start/end from interval-maps and interval-sets and added a comment. I don't think it's any less clear what's going on.
2017-06-01 14:45:54 -05:00
John Benediktsson
365a9203a8
alien.libraries.finder: use find instead of map-find.
2017-02-07 10:59:24 -08:00
John Benediktsson
5f187bbd29
alien.libraries.finder.linux: make more robust to i18n.
2017-01-24 14:45:34 -08:00
John Benediktsson
baaa06278c
Revert "sequences: swap stack arguments for start/start*/subseq?."
...
This reverts commit 63b0593824
.
2017-01-21 07:20:14 -08:00
John Benediktsson
63b0593824
sequences: swap stack arguments for start/start*/subseq?.
...
It is more natural to be ( seq subseq -- ? ).
2017-01-20 22:49:53 -08:00
Björn Lindqvist
cefb15b2d6
alien.libraries.tests: fix for test that broke windows
2016-11-30 19:11:14 +01:00
Björn Lindqvist
a9ac763912
alien.libraries: word>dlsym was a stupid idea that didn't work
...
The def>> attribute is stripped when deploying. So return dlsym? and use
that.
2016-11-30 16:36:24 +01:00
Björn Lindqvist
2ba659dcb1
io.sockets.secure,alien.libraries: new word word>dlsym to replace the dlsym? word
2016-11-30 11:51:54 +01:00
Björn Lindqvist
ddc5ece757
alien.*: frontend varargs support! #1677
...
alien-invoke gets an extra parameter indicating if the call uses varargs
or not. In 99.9% of the cases, the parameter should be f, but is t if
varargs are indicated. E.g
: do-printf ( fmt d -- st ) int f "printf" { c-string double } t alien-invoke ;
2016-08-10 21:34:37 +02:00
John Benediktsson
55cf5472a5
using [ ] [ ... ] ?if instead of [ nip ] [ ... ] if*.
2016-07-11 19:50:37 -07:00
John Benediktsson
498285d7dd
unicode: make this the API for all unicode things.
2016-03-30 23:29:48 -07:00
Doug Coleman
391f8e433f
basis: Cleaning up tests using lists and IN: forms.
2016-03-30 20:04:14 -07:00
John Benediktsson
19466f2d66
alien.libraries.finder: rename ?add-library to ?update-library.
2016-03-29 07:35:45 -07:00
John Benediktsson
98ed2a8ee5
alien.libraries: split update-library and add-library again.
2016-03-29 06:07:14 -07:00
John Benediktsson
da90f22b9b
alien.libraries.finder: adding (poorly named) ?add-library.
...
Runs find-library when the library was not added yet or the dll is not valid.
2016-03-28 23:04:19 -07:00
John Benediktsson
26301fd5b0
Revert "alien.libraries.finder: Allow library to match just by name. Related to #1099."
...
This reverts commit 20a1c09a42
.
2016-03-28 23:01:56 -07:00
John Benediktsson
12350404f2
alien.libraries: merge update-library and find-library.
2016-03-28 22:49:23 -07:00
Doug Coleman
27b954f95b
alien.libraries: Add a way to see if a dll has a function.
2016-03-04 09:14:49 -08:00
John Benediktsson
3affad7681
docs: using $maybe.
2015-12-11 17:05:45 -08:00
John Benediktsson
ceb75057da
change ERROR: words from throw-foo back to foo.
2015-08-13 16:13:05 -07:00
John Benediktsson
0e1169ceab
alien.libraries: try out throw-foo.
2015-08-13 06:52:06 -07:00
Doug Coleman
e3ddd337e0
compiler, alien: fix some duplication in ERROR: definitions. hope this doesnt trigger more failing builds than it fixed...
2015-08-12 13:58:38 -05:00
John Benediktsson
0fbd2fd472
alien.libraries: don't need << >>.
2015-07-28 19:13:13 -07:00
Doug Coleman
4ec2311406
factor: Trim whitespace after ! comments and a few USING: lines that got skipped before.
2015-07-18 20:14:22 -07:00
Doug Coleman
43d6f1d3e2
factor: Retrying on the unit tests. Also normalize some syntax with FUNCTION:.
2015-07-02 17:28:17 -07:00
Doug Coleman
59f3b1ea57
Revert "factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool!"
...
Needs a bit more work.
This reverts commit 7e54cc2824
.
2015-07-02 13:47:06 -07:00
Doug Coleman
7e54cc2824
factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool!
2015-07-02 11:36:08 -07:00
Doug Coleman
352e5de16a
core, basis, extra: Remove DOS line endings from files.
...
Remove whitespace from end of lines.
Add a newline to the end of each file.
2015-06-29 17:25:40 -07:00
Doug Coleman
44e8e7b344
primitives: Change PRIMITIVE: to check that the word is in that vocabulary and the stack effect is correct.
...
Use PRIMITIVE: in core/ and basis/
2015-06-25 18:02:03 -07:00
Doug Coleman
5908f301b9
alien.libraries: Add update-library. See #1185
2015-06-16 19:56:34 -07:00
Doug Coleman
20a1c09a42
alien.libraries.finder: Allow library to match just by name. Related to #1099 .
...
Add some more unit tests. Fix a typo fidner->finder.
2015-06-05 17:05:57 -07:00
John Benediktsson
b366a06c41
use reject instead of [ ... not ] filter.
2015-05-12 18:50:34 -07:00
Doug Coleman
857e60db5b
alien.libraries: Cannot include alien.libraries.finder here for docs.
2015-02-13 11:31:56 -08:00
Benjamin Pollack
e6fecadb04
Explicitly reference find-library in alien docs
...
Factor 0.98 added a great find-library library, but unless you already know it
exists, you're probably not going to discover it. This attempts to help with
that by adding a few cross-references with the add-library word and the main
alien article.
2015-02-11 17:38:44 -08:00
John Benediktsson
d6b6f3893d
basis/extra: switch to "vocab." os name>> append require.
2014-11-13 13:00:44 -08:00
Doug Coleman
d578ca7959
alien.libraries.finder: How many patches does it take... I was dropping the wrong value from map-find.
2014-07-08 11:58:34 -07:00
Doug Coleman
ee08a436fd
alien.libraries.finder: map-find was what I wanted all along.
2014-07-08 13:13:41 -05:00
Doug Coleman
1e8655c5c0
alien.libraries.finder: More robust finder code that doesn't return f to a
...
string slot and error out. Use it in yaml.ffi.
2014-07-08 12:40:33 -05:00
Doug Coleman
77f806d6c5
alien.libraries.finder: Add find-library-from-list utility word.
2014-07-08 12:21:50 -05:00
Doug Coleman
a8b78071ff
alien.libraries.finder.windows: Better fix for finding the right library path.
2014-07-07 23:34:10 -07:00
Doug Coleman
9bbf0af6e8
Revert "alien.libraries: Normalize the path before opening a dll since"
...
This reverts commit 05aabb13f4
.
2014-07-07 23:31:59 -07:00
Doug Coleman
05aabb13f4
alien.libraries: Normalize the path before opening a dll since
...
find-library can return paths that have "resource:" in them.
2014-07-08 01:12:44 -05:00
Doug Coleman
5d44509720
alien.libraries.finder.linux: Trim blanks off the arch names.
2014-07-03 21:30:15 +00:00
Doug Coleman
96f2561b42
alien.libraries.finder.linux: Remove tags like "OS ABI: Linux 2.6.24" from the ``ldconfig -p`` output.
2014-06-17 14:13:06 -07:00
Doug Coleman
2f53a7c5de
alien.libraries.finder.linux: On mint 32 bit, the gtk-x11-2.0 library arch is just (libc6). Hopefully this is correct.
2014-06-16 23:07:13 -07:00