Doug Coleman
38f11415c8
assocs: Add of and ?of. Change all the things at once! Fixes #701 .
2013-03-23 14:59:07 -07:00
John Benediktsson
e498cd5b1d
classes.struct: inline M\ struct byte-length.
2012-09-21 11:50:45 -07:00
John Benediktsson
53e3c8e4e8
classes.struct: removing unused bad-type-for-bits error.
2012-09-17 09:54:55 -07:00
Doug Coleman
af30e16559
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
e654e4afd9
Using "same?" in more places.
2012-07-21 10:22:44 -07:00
John Benediktsson
09d972018d
cleanup some use of with-scope.
2012-07-19 13:55:34 -07:00
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
1a72249983
math: using if-zero in more places.
2012-06-18 14:32:39 -07:00
John Benediktsson
5127f962dc
classes.struct: add some docs for read-struct.
2012-04-18 16:02:00 -07:00
John Benediktsson
9229d54df8
classes.struct: adding a read-struct word.
2012-04-18 16:00:29 -07:00
Doug Coleman
5a0f1904b4
basis/*: Pare down some using lists
2011-11-30 23:15:43 -08:00
Joe Groff
eee483654a
use radix literals
2011-11-23 19:03:40 -08:00
Slava Pestov
2cf72ef255
Fix bootstrap
2011-11-12 16:45:04 -08:00
Slava Pestov
081527628d
Fix ambiguity between 'initial: f' and no initial value in a slot spec. Fixes #382
2011-11-12 15:35:51 -08:00
Joe Groff
aaf2b14306
remove lingering mentions of macosx-ppc
2011-11-02 18:40:27 -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
b61f9f6903
Forget some classes after unit tests so that running "classes" test succeeds multiple times in a row
2011-10-24 16:59:46 -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
Doug Coleman
96da8df16e
Rename class to class-of
2011-10-24 06:47:42 -05: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
fd853f9958
Cleanup some lint warnings.
2011-10-15 19:19:44 -07:00
John Benediktsson
f419934d6a
Cleanup lint warnings.
2011-10-14 11:47:24 -07:00
Doug Coleman
60b1115452
Rename forget-struct-slot-accessors -> forget-slot-accessors
2011-10-06 13:21:18 -07:00
Doug Coleman
921c81d92a
Document reset-class, forget-class, forget-method. Use lookup-method in see, fix gpu.render for method->lookup-method renaming. Fixes #232 .
2011-10-04 10:40:48 -07:00
Doug Coleman
ad83aed13a
Forget struct slot accessors when structs classes are redefined
2011-10-03 17:12:49 -07:00
Doug Coleman
e75e2b1f14
Make M\ throw an error upon lookup failure. Change method -> ?lookup-method, lookup-method is the throwing version of ?lookup-method. Fixes #229 .
2011-10-03 15:49:49 -07:00
Doug Coleman
0a198ccdf1
Less use of eval( in unit tests
2011-10-03 13:54:34 -07:00
Doug Coleman
f82de335e5
Fix using list in classes.struct tests
2011-10-03 01:06:02 -07:00
Doug Coleman
b78fa2c9d9
Define reset-class for struct-classes, add unit tests. Fixes #206 .
2011-10-02 20:08:23 -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
Doug Coleman
ced1795a04
Fixes the symptom but not the problem. See bug #201 .
2011-09-26 17:32:34 -07:00
Doug Coleman
4c3418b3ee
Trim down a few using lists
2011-09-26 13:42:46 -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
John Benediktsson
9da1297c57
classes.struct: add test cases for see on structs.
2011-09-25 17:25:28 -07:00
John Benediktsson
1432d49feb
classes.struct: Fix prettyprint for PACKED-STRUCT. Fixes #162 .
2011-09-24 17:55:13 -07:00
Slava Pestov
eea41b6d17
Merge classes.struct.packed into classes.struct and remove duplication
2011-08-25 21:02:25 -07:00
Erik Charlebois
1ed2bc6231
32 and 64 bit Linux PPC support
2011-05-23 23:36:14 -04:00
Slava Pestov
206508e016
classes.struct: fields with a type that's an array of pointers (eg int*[3]) now work
2010-08-15 02:44:21 -07:00
Slava Pestov
bd473cb970
classes.struct: make hashcode and equal? work on structs wrapping null pointers, to fix another obscure issues arising with tuple arrays
2010-08-06 00:15:22 -07:00
Slava Pestov
e935681743
Add a scan-token word which is like scan, except throws an error on EOF; document scan-object word; mention that scan-token/scan-object are preferred over scan/scan-word
2010-07-06 16:20:08 -04:00
Slava Pestov
c7e5055eb3
classes.struct: remove conflict marker from unit tests
2010-06-22 14:35:49 -04:00
Doug Coleman
2403486156
conflicts
2010-06-16 16:23:29 -05:00
Joe Groff
99bc1b483e
classes.struct: fix some bugs in binary-zero?, add unit tests
2010-06-16 16:23:29 -05:00
Joe Groff
2ab97370da
alien.data: make binary-zero? public and move it from classes.struct.private
2010-06-10 17:05:43 -07:00
Joe Groff
7e0ade0972
classes.struct: fix some bugs in binary-zero?, add unit tests
2010-06-10 16:49:59 -07:00
Joe Groff
e45373d1ce
classes.struct: implement "group-words" method on struct-class so that struct classes can be used as a CONSULT: protocol
2010-06-08 12:52:46 -07:00
Slava Pestov
b8ec5c6176
Stack allocation improvements
...
- New with-out-parameters combinator
- Inhibit tail call optimization in frames with local allocation, to ensure that passing a stack allocated value to the last word in the quotation works
- local allocations are now aligned properly
- spill slots are now aligned properly aligned in frames which have parameter and local allocation areas
2010-05-22 02:37:00 -04:00
Slava Pestov
35bd2bca06
FFI rewrite part 5: return value boxing and callback parameter boxing now uses vregs; simplify return value unboxing
2010-05-16 03:43:23 -04:00