Commit Graph

82 Commits (9cda3cf03e17b83a2e2a48bb22a162b024531ced)

Author SHA1 Message Date
Slava Pestov 03a74f2237 classes: If a tuple class with subclasses is redefined into something that's not a tuple class, subclasses are changed to inherit from 'tuple' instead of being forgotten. Also, changing the metaclass of a union or intersection member no longer removes it from the union or intersection. Finally, make some internal words private 2010-02-01 02:48:39 +13:00
Doug Coleman 7521807b55 random is generic now -- iota random -> random 2010-01-14 12:48:57 -06:00
Slava Pestov 880fb747fc Removing integers-as-sequences 2010-01-15 07:15:33 +13:00
Joe Groff ebcaaa0d64 Merge branch 'master' into simd-cleanup 2009-11-26 16:14:46 -08:00
Slava Pestov 08b6ebc7fa Factor source files should not be executable 2009-11-21 17:50:43 -06:00
Slava Pestov d6c1fed06c classes.struct: compute slot offsets before alignment to fix struct size problem on PPC 2009-11-19 19:34:46 -06:00
Joe Groff 993631e44c Merge branch 'master' of git://factorcode.org/git/factor into simd-cleanup
Conflicts:
	basis/math/vectors/simd/functor/functor.factor
2009-11-14 21:02:39 -06:00
Slava Pestov d630e1494c Fix struct field alignment on PowerPC 2009-11-10 19:34:14 -06:00
Joe Groff 81025d7095 move define-inline-method from classes.struct.private to generic.parser 2009-11-01 22:10:28 -06:00
Joe Groff c6761710a6 Merge branch 'master' of http://factorcode.org/git/factor
Conflicts:
	basis/locals/locals.factor
	basis/peg/peg.factor
	extra/infix/infix.factor
2009-10-28 16:17:24 -05:00
Joe Groff 22a9be5ea5 update existing code to use :> ( ) when possible 2009-10-28 16:11:33 -05:00
Doug Coleman ae519868f7 over push -> suffix!, over push-all -> append! 2009-10-28 15:29:01 -05:00
Doug Coleman a57e990af7 parsed -> suffix!, add append! 2009-10-28 13:38:27 -05:00
Daniel Ehrenberg 373f4420e9 Another identity in value numbering for bitfields 2009-10-08 15:20:42 -05:00
Daniel Ehrenberg df4d48ffcc Cleaning up classes.struct.bit-accessors code 2009-10-08 14:01:43 -05:00
Daniel Ehrenberg d1eb1968a6 Refactoring bitfield accessors to eliminate code duplication 2009-10-08 13:45:52 -05:00
Daniel Ehrenberg 52bf4738c8 Making struct bitfield writers fast 2009-10-08 13:10:51 -05:00
Daniel Ehrenberg 64e9bc7d9c Making struct bitfield readers fast 2009-10-07 23:51:18 -05:00
Daniel Ehrenberg ddb6319391 Modifying the struct prettyprinter to display bits 2009-10-07 21:42:15 -05:00
Daniel Ehrenberg 6b8233e350 Refactoring bitfields to not use number tower 2009-10-07 21:35:12 -05:00
Daniel Ehrenberg 635aa1860c Adding bit fields to STRUCT: 2009-10-07 01:43:32 -05:00
Keith Lazuka 8f79ea91ba docs: change $subsection to $subsections 2009-10-02 12:15:48 -04:00
Slava Pestov f08521bf83 Fixing various test failures caused by C type parser change, and clarify C type docs some more 2009-09-28 08:48:39 -05:00
Slava Pestov 1b26a1c87c alien: improve documentation 2009-09-26 21:28:11 -05:00
Slava Pestov 3b9d013935 classes.struct: store aligned size in struct-size word-prop 2009-09-24 19:54:32 -05:00
Slava Pestov 9f78a6e2e7 tools.deploy: fix test 11 2009-09-24 13:00:26 -05:00
Joe Groff 9020f2346a fix classes.struct bootstrap 2009-09-24 12:07:41 -05:00
Joe Groff a452f66bcb clean up classes.struct code. don't set a bunch of redundant word-props on struct class words 2009-09-24 11:32:25 -05:00
Joe Groff d68a1eed1a don't construct a prototype for struct classes that don't need it 2009-09-23 19:41:46 -05:00
Doug Coleman 026761ed62 Merge branch 'master' of git://factorcode.org/git/factor
Conflicts:
	basis/classes/struct/struct-tests.factor
	basis/functors/functors-tests.factor
	basis/specialized-arrays/specialized-arrays-tests.factor
2009-09-20 23:02:49 -05:00
Doug Coleman 47fab85a00 replace usages of <" with """ 2009-09-20 22:42:40 -05:00
Joe Groff 4a1422e7fe move some allocation words that don't really have much to do with c types out of alien.c-types into a new alien.data vocab 2009-09-17 22:36:05 -05:00
Joe Groff e3e8556c32 fix struct class see 2009-09-16 09:56:07 -05:00
Joe Groff ac5ea1769b get compiler tests loading 2009-09-16 09:20:47 -05:00
Joe Groff 18c59bd43e update classes.struct tests to use word c-types 2009-09-15 22:43:11 -05:00
Joe Groff 334e93bbbf get things to a point where they bootstrap again 2009-09-15 21:43:18 -05:00
Joe Groff fa79e86743 fix failing classes.struct tests 2009-09-15 19:10:05 -05:00
Joe Groff c7fa671c0c Revert "make struct classes print properly in the status bar"
This reverts commit 4ee1a4f9e8.
2009-09-15 18:56:17 -05:00
Joe Groff 02b797f11b struct classes now make their own C type without help from alien.structs. remove alien.structs dependencies from everywhere outside of alien and compiler, and have the FFI handle both alien.structs and classes.struct c-types 2009-09-15 17:38:49 -05:00
Joe Groff 4ee1a4f9e8 make struct classes print properly in the status bar 2009-09-15 15:16:53 -05:00
Slava Pestov 8aecdf13ab classes.struct: fix some bugs
- STRUCT: foo<ENTER> in listener threw an error
- S{ did not throw an error when used with non-struct types
- attempting to subclass a struct class now fails
- forgetting a struct class now removes the corresponding C type
- 'see'ing a struct class now indents correctly
2009-09-10 15:59:27 -05:00
Slava Pestov 527db8995a Specialized array overhaul
- Replace hand-written specialized-arrays.* subvocabularies with new system; instead of USE:ing specialized-arrays.T, do SPECIALIZED-ARRAY: T
- Ditto for specialized-vectors; use SPECIALIZED-VECTOR:
- io.mmap.functor: removed entirely, use <mapped-array> instead
- struct-arrays and struct-vectors have been removed because specialized arrays and vectors subsume them entirely
2009-09-09 22:33:34 -05:00
Joe Groff 14c17524ab Merge branch 'master' into strong-typing 2009-09-08 15:53:20 -05:00
Slava Pestov 0b35d79aee compiler.tree.propagation.call-effect: stronger call( inlining; now can inline 'a [ b ] curry call(' where 'a' is literal, [ b ] doesn't infer, but [ a b ] does infer. This simplifies classes.struct:memory>struct 2009-09-07 17:45:03 -05:00
Slava Pestov 9fca70d965 Fix unit tests for specialized-arrays.direct change 2009-09-05 02:26:06 -05:00
Slava Pestov 430f4a83f9 specialized-arrays.direct is no more; instead, every specialized-array.<foo> vocabulary has a <direct-T-array> constructor 2009-09-04 22:01:55 -05:00
Joe Groff 57a40bc703 make struct-mirror an instance of assoc 2009-09-03 22:31:55 -05:00
Joe Groff 7a429a530e forget the old struct class when redefining a struct class so the old accessors get purged 2009-09-03 11:12:58 -05:00
Joe Groff 64a7dc19a4 metadata for classes.struct 2009-09-01 15:49:21 -05:00
Joe Groff f58abdcea2 put a more useful mirror over structs 2009-08-31 22:26:03 -05:00