Commit Graph

6064 Commits (0df9884ee53eeedc2ac661160a042c21097e2dd1)

Author SHA1 Message Date
Joe Groff 0df9884ee5 change c-type-* to c-* everywhere 2009-08-30 19:05:29 -05:00
Joe Groff 361cc04b02 rather than deprecate <c-array>, replace it with <c-type-array> . to stay consistent, rename <c-type-direct-array> to <c-direct-array> and require-c-type-arrays to require-c-arrays 2009-08-30 18:41:38 -05:00
Joe Groff be406fa964 fix alien.complex unboxer 2009-08-29 23:18:31 -05:00
Joe Groff 762a8c32cb Merge branch 'master' of git://factorcode.org/git/factor 2009-08-29 22:59:24 -05:00
Joe Groff 32f014a030 privatize classes.struct's shameful bits 2009-08-29 22:59:13 -05:00
Joe Groff 20aa00f8df implement clone on struct classes to copy the struct contents 2009-08-29 22:54:56 -05:00
Joe Groff 4d8ed23db5 add non-initializing (malloc-array) and (malloc-object) for kicks 2009-08-29 22:42:48 -05:00
Joe Groff 3e51bde484 change malloc-struct to initialize struct from initial values; add (malloc-struct) and (struct) words that leave their memory uninitialized 2009-08-29 22:40:13 -05:00
Slava Pestov 11b2a409c3 Merge branch 'master' of git://factorcode.org/git/factor 2009-08-29 22:11:20 -05:00
Joe Groff 7276fe44d7 refactor functors so that new functor syntax words can be added outside of functors vocab, and move STRUCT: functor syntax to classes.struct to break a circular dependency 2009-08-29 21:04:19 -05:00
Joe Groff db7eb4e27a change alien.complex to use struct classes 2009-08-29 20:20:25 -05:00
Joe Groff 2e3f75fd87 fix STRUCT: functor when a slot name is the same as a non-lexical word name 2009-08-29 20:19:47 -05:00
Joe Groff 309b11213c correct some classes.struct docs 2009-08-29 19:58:07 -05:00
Joe Groff 4cc2330a2a add STRUCT: support to functors 2009-08-29 19:56:42 -05:00
Joe Groff 51405868d1 ignore deprecations in words that are themselves deprecated 2009-08-29 17:41:21 -05:00
Joe Groff 77bf009b6e Merge branch 'master' of git://factorcode.org/git/factor 2009-08-29 17:17:44 -05:00
Joe Groff 4e7bada863 use calloc in malloc-struct for consistency with malloc-object and malloc-array 2009-08-29 17:17:25 -05:00
Joe Groff a71f242578 change malloc-object back to using calloc 2009-08-29 15:28:31 -05:00
Samuel Tardieu e5897d52b2 Ensure that random-prime result has the right size
As noted by Slava, choosing the next prime following a random number
with a specified number of bits may give a number one more bit long.
2009-08-29 21:42:15 +02:00
Joe Groff 0e8fe01d11 change malloc-object and <c-object> not to be in terms of malloc-array and <c-array> 2009-08-29 12:45:59 -05:00
Joe Groff 64baa58a3d typo in alien.c-types docs 2009-08-29 12:23:09 -05:00
Joe Groff 2eff554273 update cocoa and core-foundation stuff to use classes.struct and boxed malloc-arrays 2009-08-29 12:22:55 -05:00
Joe Groff 8a9d0e13bb deprecate <c-array>, and make malloc-array box its returned buffer in a direct array 2009-08-29 11:15:23 -05:00
Samuel Tardieu b7c50e6159 Merge branch 'master' of git://factorcode.org/git/factor 2009-08-29 16:23:13 +02:00
Slava Pestov 908b4742c5 compiler.cfg.value-numbering: fix ##box-displaced-alien simplification 2009-08-28 19:05:49 -05:00
Slava Pestov 2bb6293217 compiler: add fixnum-min/max intrinsics; ~10% speedup on benchmark.yuv-to-rgb 2009-08-28 19:02:59 -05:00
Slava Pestov 790e7ec0bc tools.deprecation: suppress 'computing usage index...' message 2009-08-28 05:32:34 -05:00
Slava Pestov a96743d375 tools.deprecation: don't bail out if a word's usages are not all words 2009-08-28 05:31:27 -05:00
Slava Pestov 282d6e9acc Merge branch 'master' of git://factorcode.org/git/factor 2009-08-28 05:22:05 -05:00
Slava Pestov d957ae4e44 Performance improvements to make struct-arrays benchmark faster
- improved optimization of ##unbox-any-c-ptr on ##box-displaced-alien; convert it to ##unbox-c-ptr where possible using class info stored in the ##bda instruction
- make fcos, fsin, etc inline again; everything in math.libm inline again, except for fsqrt which is an intrinsic
- convert min and max on floats to float-min and float-max
- make min and max not inline, so that the above can work
- struct-arrays: rice a bit so that more fixnums come up
2009-08-28 05:21:16 -05:00
Joe Groff b8978446d9 Merge branch 'master' of git://factorcode.org/git/factor 2009-08-27 21:51:15 -05:00
Joe Groff e85925153c deprecate C-STRUCT:, C-UNION:, and old-school struct accessors 2009-08-27 21:51:08 -05:00
Slava Pestov e2ebc2ac76 Merge branch 'master' of git://factorcode.org/git/factor 2009-08-27 21:49:47 -05:00
Slava Pestov 7cf4e608e5 alien: move code for supporting CONSTANT: foo 123 { "int" foo } C types into one place instead of the old scattershot approach 2009-08-27 21:49:25 -05:00
Joe Groff 80a5bf7138 support { type dimension } c-type syntax in STRUCT: definitions 2009-08-27 21:39:43 -05:00
Joe Groff c3002ed0f0 Merge branch 'master' of git://factorcode.org/git/factor 2009-08-27 21:17:17 -05:00
Joe Groff eb4081c696 return YES from cocoa app delegate's applicationShouldHandleReopen: method. this allows app-icon-minimized windows on snow leopard to automatically restore when the dock icon is clicked 2009-08-27 21:16:41 -05:00
Doug Coleman 7e6f6e6a44 Merge branch 'master' of git://factorcode.org/git/factor 2009-08-27 20:36:19 -05:00
Doug Coleman 469e7e8d67 newstructify PIXELFORMAT 2009-08-27 20:35:37 -05:00
Slava Pestov 3f493bce1a Merge branch 'master' of git://factorcode.org/git/factor 2009-08-27 20:30:08 -05:00
Slava Pestov f1c971e3df Merge branch 'master' of git://factorcode.org/git/factor 2009-08-27 20:30:15 -05:00
Slava Pestov 37403b28a9 Merge branch 'master' of git://factorcode.org/git/factor 2009-08-27 20:29:28 -05:00
Slava Pestov f1b4d94f2f tools.deploy: remove malloc debugging better, and don't set next-method word prop for methods that don't call-next-method 2009-08-27 20:29:16 -05:00
Slava Pestov 0d70d07cf1 tools.deploy.test: give PowerPC an extra 100kb 2009-08-27 20:27:35 -05:00
Doug Coleman ee418a75d9 Merge branch 'master' of git://factorcode.org/git/factor 2009-08-27 19:53:46 -05:00
Joe Groff 367f024a1b Merge branch 'master' of git://factorcode.org/git/factor 2009-08-27 19:23:20 -05:00
Joe Groff 7771c55cb5 ui.backend.cocoa.views: yield in drawRect: impl so that windows will redraw while being resized on snow leopard 2009-08-27 19:21:38 -05:00
Slava Pestov ba0f3a9911 compiler.tree.propagation.transforms: don't fail to compile if 'at' called on something that's not an assoc 2009-08-27 18:57:56 -05:00
Doug Coleman d4497c81ef spacing 2009-08-27 11:43:19 -05:00
Doug Coleman a17250bd1b use constant 2009-08-27 11:24:26 -05:00