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
John Benediktsson
296968580a
use assoc-reject instead of [ ... not ] assoc-filter.
2015-05-12 19:08:42 -07:00
John Benediktsson
c0c54d8919
alien.strings: simpler fast-string? check.
2015-04-20 10:38:36 -07:00
John Benediktsson
a65a293896
core: use if* in a couple places.
2014-11-29 16:03:50 -08:00
Björn Lindqvist
990af22dc6
VM: renamed version and git-label to vm-version and vm-git-label.
2014-11-10 23:02:13 -08:00
Björn Lindqvist
090f4fddd5
VM: Three new special objects added to keep track of the builds version number, git label and compilation time respectively. The info is exposed in the system:version-info word and also shown in the banner during startup.
...
Conflicts:
Nmakefile
basis/ui/tools/listener/listener.factor
core/alien/strings/strings.factor
2014-11-10 23:01:52 -08:00
Doug Coleman
83241491c3
core: On Windows we depend on having io.strreams.byte-array for utf16
...
support. Include this in the boot image instead of alien.strings.
2014-11-01 11:34:52 -07:00
Doug Coleman
e6dac7f0e3
alien.strings: Dependency on io.streams.byte-array. Clean this up somehow?
2014-10-31 19:15:29 -07:00
Doug Coleman
964cbf894b
core/basis: Trim or reorganize a few using lists. Playing around with auto-use restarts and private words.
2014-10-27 13:39:30 -07:00
Björn Lindqvist
65e460cf57
alien.tests: fix the test cases so they dont leak, and new tc for with-callback
2014-10-22 07:02:55 -07:00
Björn Lindqvist
aad8d4b8d6
alien,stack-checker.alien: new word with-callback
...
Since callbacks aren't automatically deallocated this word intends to
make sure "inline" callbacks are.
2014-10-22 07:02:55 -07:00
Björn Lindqvist
5cf8c7cfba
alien,stack-checker.alien: move callback-destructor to the alien vocab
...
It can't be placed in stack-checker.alien because that vocab isn't
included in deployed images which lead to weird errors when the
destructors trigger.
2014-09-29 07:30:22 -07:00
Björn Lindqvist
3f65984055
stack-checker.alien: use free-callback as a destructor when creating
...
callbacks
+ tests proving it works. now in case you create temporary callbacks you
can enclose them in with-destructors and it will just work(tm).
2014-09-29 07:30:21 -07:00
Björn Lindqvist
8fb317b721
alien: a test and docs for free-callback
2014-09-29 07:30:21 -07:00
Doug Coleman
26a8cbbab4
alien.strings: Actually return a string instead of an array of strings in
...
M\ array symbol>string. Fixes #1098 .
2014-07-08 13:51:02 -05:00
John Benediktsson
57f9d78892
improve help by linking to types directly.
2014-05-23 20:20:15 -07:00
John Benediktsson
ff46966cfb
alien.strings: faster string>alien for common cases.
2014-05-20 11:53:36 -07:00
Doug Coleman
5a9e7cd374
classes.builtin: Add the BUILTIN: keyword which lets builtin classes show up in source files. Probably could use save-location to allow editing, but it seemed to break things.
2013-03-10 12:05:38 -07:00
John Benediktsson
5487480126
core: cleanup USING lists.
2013-03-05 10:34:47 -08:00
Doug Coleman
8295292855
alien: Clarify alien-assembly docs.
2012-09-20 18:25:53 -07:00
Doug Coleman
c95fd04040
alien: Fix docs.
2012-09-19 09:02:28 -07:00
Doug Coleman
df3f1eaa5b
alien: Fix the usings
2012-09-18 21:31:34 -07:00
Doug Coleman
9e74efc1a5
alien: More docs for alien-assembly.
2012-09-18 20:31:08 -07:00
Doug Coleman
ba64012f79
docs: vm says to read "command-line" but it was called "cli". change the article title in the docs.
2012-07-25 23:49:19 -07:00
John Benediktsson
4e72d80256
Using "same?" in more places.
2012-07-21 10:22:44 -07:00
John Benediktsson
75778c89c1
Revert "alien: these make "utf8 encode" 7-8% faster."
...
This reverts commit c9664e746b
.
2012-07-18 07:56:05 -07:00
John Benediktsson
940848a813
alien: these make "utf8 encode" 7-8% faster.
2012-07-17 22:52:37 -07:00
Doug Coleman
3ba787b277
core/basis: trim down using lists
2011-11-30 23:15:42 -08:00
Joe Groff
943596575a
use radix literals
2011-11-23 19:03:40 -08:00
Joe Groff
186bf65a00
constants for special object hardcoded literals
2011-11-02 12:54:50 -07:00
Joe Groff
1386212d23
vm: dispatch signal handlers through subprimitive
...
We also need to save C ABI volatile registers before calling the signal handler in order to be able to reliably resume. Add signal-handler and leaf-signal-handler subprimitives to preserve volatile registers before invoking the signal handler C function.
2011-10-27 21:18:18 -07:00
John Benediktsson
5a943b32c4
Remove stack effects from HELP: declarations.
2011-10-20 19:36:11 -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
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
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
Joe Groff
a5788c4205
alien.strings: handle symbol arrays in symbol>string
2011-09-13 15:10:48 -07:00
Doug Coleman
7e6d031cc8
Fix string docs.
2011-09-13 15:45:56 -05: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
c36d73e242
Change do-callback to register the current thread with the callback, instead of busy waiting for the current callback to become the right one before returning. Fixes 100% CPU usage issue with system-alert. Thanks to Blei and ex-rzr for doing preliminary analysis of the issue
2011-04-12 21:48:54 -04:00
Keita Haga
5efbf43690
alien: fix a couple of typos in docs
2011-01-14 19:59:14 +09:00
Slava Pestov
168dd1f825
FFI rewrite part 7: compile callback bodies with the optimizing compiler
2010-07-28 00:49:26 -04:00
Slava Pestov
7f6ae34d72
Updating tests for recent compiler changes
2010-05-03 17:34:30 -04:00
Joe Groff
54015782f3
document FUNCTION-ALIAS:
2010-04-14 16:14:33 -07:00
Slava Pestov
67e24b1d2a
compiler.codegen: need to do name decoration with fastcall as well
2010-04-12 18:10:25 -05:00
Slava Pestov
145e6428ba
Fixing load errors
2010-04-10 17:24:44 -07:00
Slava Pestov
0202c35d2a
alien: now that fastcall works better it doesn't need to be private
2010-04-10 16:57:07 -07:00
Joe Groff
2240520e2d
update some more doc examples using old abi strings
2010-04-02 23:16:53 -07:00
Joe Groff
c12424f834
update alien docs to mention abi symbols
2010-04-01 19:25:24 -07:00
Joe Groff
553b9fcd93
make "fastcall" symbol private since it doesn't really work in all cases
2010-04-01 18:34:15 -07:00
Joe Groff
9d3326658c
alien: add singletons for thiscall and fastcall
2010-03-31 20:30:04 -07:00