Commit Graph

7944 Commits (1915b7e955787ea49a62f8dbe6acc7d7e241dcd5)

Author SHA1 Message Date
Slava Pestov 9d41492aa0 windows.psapi: add unportable tag 2010-01-20 18:02:10 +13:00
Slava Pestov 8b366c108f Merge branch 'master' of git://github.com/erikcharlebois/factor 2010-01-20 17:51:40 +13:00
Slava Pestov 00328c85e0 vm: remove vm-ptr primitive 2010-01-20 17:06:49 +13:00
Slava Pestov 580cbe75c6 Make stack-checker throw proper errors for primitives that do not have static stack effects 2010-01-20 16:37:58 +13:00
erikc 20d27198b0 Merge branch 'master' of git://github.com/slavapestov/factor 2010-01-19 19:31:44 -08:00
erikc 10566ccf5d DirectSDK bindings, excluding dinput which already exists. 2010-01-19 19:31:14 -08:00
erikc 57111b09c3 Map WM_APPCOMMAND browser backward and forward messages to action-left and action-right. 2010-01-19 18:28:53 -08:00
Joe Groff e5c44b95aa game.worlds overhaul: add optional support for integrating audio.engine and make game.input integration optional too. add "tick-game-world" generic for extending game-world's tick* method 2010-01-19 16:07:47 -08:00
Joe Groff 3cfe2afa44 make apply-world-attributes generic 2010-01-19 14:06:48 -08:00
Slava Pestov cc69719147 vm: don't recompile lazy-jit-compile more than once 2010-01-20 02:48:31 +13:00
Slava Pestov 9a222a4163 compiler.tree.propagation.call-effect: eliminate some dispatch from call( expansion 2010-01-19 21:08:45 +13:00
Slava Pestov 5606825e8b vm: remove primitive table, non-optimizing compiler now looks up primitives with dlsym() 2010-01-19 20:00:33 +13:00
Slava Pestov 8836ce2581 Fix performance regression in vector ops on specialized arrays, tweak definition of <slice> and 2map-reduce to generate fewer conditionals 2010-01-19 17:48:10 +13:00
Slava Pestov ac800e2396 compiler.tree.escape-analysis: make tests a bit more robust; a change to boa constructors recently meant dead curries were showing up on certain expansions, this was throwing off the escape-analysis test's unboxed allocation counting. Fix this by having the test run DCE first, and remove a few tests that no longer make sense now 2010-01-18 23:32:34 +13:00
Slava Pestov c4f19bc117 io.servers.connection: accept-loop doesn't need to be 'inline recursive' 2010-01-18 22:23:57 +13:00
Slava Pestov 637a77c018 Stop wearing monocle and use the term "entry point" instead of "XT" throughout VM and compiler; also remove two unused relocation types 2010-01-18 20:54:00 +13:00
Doug Coleman 41082b5b12 Fix minor typo in <server> docs 2010-01-17 23:13:20 -06:00
Joe Groff a2539b784b "a block border" => "a black border" 2010-01-16 12:40:07 -08:00
Joe Groff f7e1ed18b0 Merge branch 'master' of git://factorcode.org/git/factor 2010-01-16 12:24:47 -08:00
Joe Groff 6bbfa0b6d8 GAME: syntax for defining game entry point with game-loop attributes 2010-01-16 12:18:50 -08:00
Joe Groff 3d70efd51e hurr semicolon 2010-01-16 11:45:20 -08:00
Joe Groff 26cbbf1ec1 link MAIN-WINDOW: docs into UI docs 2010-01-16 11:04:57 -08:00
Slava Pestov eaff1841fa specialized-arrays: don't define useless empty T-sequence mixin 2010-01-16 20:19:35 +13:00
Slava Pestov 3b5f7a9ecf compiler.tree.propagation: ensure that we don't call 'equal?' or 'hashcode' on literals in words being compiled 2010-01-16 20:00:48 +13:00
Slava Pestov dd0571e69a io.buffers: fix buffer-until for iota (reported by Sascha Matzke) 2010-01-16 18:44:24 +13:00
Slava Pestov 8c8818b00b ui.gadgets.search-tables: fix breakage 2010-01-16 18:44:23 +13:00
Doug Coleman 00f58f81e1 Fix iota bug in io.files.info.windows 2010-01-15 21:17:47 -06:00
Joe Groff 5c52732c0a document MAIN-WINDOW: 2010-01-15 17:06:50 -08:00
Joe Groff 4beb8192c9 pry off some ui app boilerplate with a MAIN-WINDOW: syntax 2010-01-15 16:55:43 -08:00
Joe Groff 9dc5d18b1c allow window pref-dim to be provided in world-attributes 2010-01-15 15:33:37 -08:00
Slava Pestov 7f7e1e4e1d Help lint fixes for iota 2010-01-15 17:04:14 +13:00
Doug Coleman 4e6a5a772f Merge branch 'master' of git://factorcode.org/git/factor
Conflicts:
	core/sequences/sequences-docs.factor
2010-01-14 17:22:02 -06:00
Doug Coleman 9356da6fb3 Fix a few integers-as-sequences in docs 2010-01-14 17:20:43 -06:00
Doug Coleman 350f69b645 Clean up a windows.time word 2010-01-14 17:20:30 -06:00
Slava Pestov df40d92216 math.functions: fix memory protection error if exp called on a complex number with a rational real part (reported by prunedtree) 2010-01-15 08:23:48 +13:00
Slava Pestov ad6d8556e0 Change [0,b) usages to iota 2010-01-15 08:05:50 +13:00
Slava Pestov 7155447aed stack-checker: add inputs and outputs words, since 'infer (in>>|out>>) length' was coming up a lot 2010-01-15 08:04:14 +13:00
Doug Coleman a483261bed Merge branch 'master' of git://factorcode.org/git/factor 2010-01-14 12:55:56 -06:00
Slava Pestov e4c53f67b0 stack-checker.errors.prettyprint: fix prettyprinting of unbalanced-branches-error 2010-01-15 07:51:36 +13:00
Doug Coleman 4c71d71907 random is generic now -- iota random -> random 2010-01-14 12:48:57 -06:00
Doug Coleman 7dc60e3625 Update docs for random 2010-01-14 12:45:30 -06:00
Doug Coleman 2cd10e7166 Don't rely on integers as sequences for unit tests 2010-01-15 07:15:36 +13:00
Doug Coleman 52f4a05fad Make random a generic so it can still be called on integers 2010-01-15 07:15:35 +13:00
Slava Pestov 816b47561a ui.pens.gradient: update for iota 2010-01-15 07:15:34 +13:00
Slava Pestov df4fb4a3ee Removing integers-as-sequences 2010-01-15 07:15:33 +13:00
Doug Coleman 4ce5c3a155 Merge branch 'master' of git://factorcode.org/git/factor 2010-01-14 11:18:34 -06:00
Doug Coleman f7f67c57a3 use clamp 2010-01-14 11:18:10 -06:00
Slava Pestov 50d68c1b10 Fix input-classes of /i and mod, and add some regression tests with various reductions of the original test-case from the terrain demo 2010-01-14 18:15:51 +13:00
Slava Pestov ce2487e6c0 compiler.codegen.fixup: cache symbol names, reducing image size by ~200Kb 2010-01-13 23:18:43 +13:00
Slava Pestov 47a5e96547 Rework min and max so that behavior with floats and NaNs is consistent between generic arithmetic and open-coded float intrinsics 2010-01-13 22:20:16 +13:00
Slava Pestov 1c10196c43 Rename kernel.private:getenv/setenv to special-object/set-special-object to mirror recent renaming on the VM side 2010-01-13 18:08:18 +13:00
Slava Pestov 7bf76b9f13 PowerPC optimizing compiler backend fixes 2010-01-12 08:02:10 -06:00
Slava Pestov 988c8d0601 More PowerPC non-optimizing compiler backend fixes 2010-01-13 03:09:43 +13:00
Slava Pestov 85a45d63d9 unwind-stack-frames didn't load VM pointer into the VM register on PowerPC and x86-64, and so if C code had clobbered this register it would crash 2010-01-12 16:31:10 +13:00
Slava Pestov 87f6efc8ec cpu.ppc: fix some typos in non-optimizing backend 2010-01-11 14:15:41 +13:00
Slava Pestov 8d34a0f3c1 Store VM object in a register on x86-64 2010-01-11 01:20:32 +13:00
Slava Pestov 5b58117be1 cpu.x86: c-to-factor needs to deal with the fact that vm-reg might have been clobbered 2010-01-09 19:09:48 +13:00
Slava Pestov 39015030a0 compression.zlib: -1 * is neg 2010-01-08 19:51:38 +13:00
Alec Berryman b85d26759a Fix zlib-error-message to include human-readable version
The error string is looked up in an array, but because zlib
error codes are negative, the error's string was always "f".
2010-01-08 19:51:03 +13:00
Slava Pestov 6266b41325 Starting to update PowerPC backend for recent VM changes (untested) 2010-01-08 19:46:27 +13:00
Slava Pestov d84f132589 math.floats.env.x86: split off 32 and 64-bit code into sub-vocabularies 2010-01-07 20:44:28 +13:00
Slava Pestov dd5452053a math.floats.env: don't load cpu.x86.64 on x86.32 2010-01-07 20:13:42 +13:00
Slava Pestov 1f88a925b4 Fix set-callstack primitive on Windows 2010-01-07 19:31:15 +13:00
Slava Pestov a04b85a45e cpu.x86: sse_version was renamed to (sse-version) 2010-01-07 18:30:01 +13:00
Slava Pestov 0f29fed1f1 cpu.x86: add some alien-assembly unit tests 2010-01-07 17:59:17 +13:00
Slava Pestov e8892d9cde stack-checker: fix unit test 2010-01-07 17:40:23 +13:00
Slava Pestov 235f3238f5 Add alien-assembly form for inline assembler, works like alien-invoke except calls a user-supplied quotation instead of generating a subroutine call. Replaces FPU status control, SSE detection and read timestamp routines in vm/cpu-x86.*S 2010-01-07 17:39:22 +13:00
Slava Pestov 44a604fdbe compiler.tree: remove some code duplication concerning #alien nodes 2010-01-07 16:06:07 +13:00
Slava Pestov 587d074c0a calendar: make code like '0.1 seconds sleep' work (bug discovered by Joe Groff) 2010-01-07 00:02:16 +13:00
Slava Pestov 9508a5a083 cpu.x86: don't have to pass VM pointer to quotations anymore 2010-01-06 23:42:00 +13:00
Slava Pestov 47c6197799 Update x86-32 for assembly entry point changes 2010-01-06 17:55:20 +13:00
Slava Pestov 36d2ac8921 vm: move c_to_factor, lazy_jit_compile_impl, throw_impl, set_callstack assembly routines into non-optimizing compiler for x86-64 2010-01-06 15:47:36 +13:00
Slava Pestov 18929373b9 Merge branch 'master' of git://factorcode.org/git/factor 2010-01-03 23:21:31 +13:00
Slava Pestov ba5b90e063 Change how non-volatile register preservation is done in alien callbacks, with the aim of fixing callbacks on PowerPC, and to eventually eliminate assembly code from VM
- Simplify calculation of offset in relocation table
- Open-code %alien-callback
- Remove magic_frame hack from context objects
- Move magical return instruction from optimizing compiler backend into callback entry stub
2010-01-03 01:11:51 +13:00
Doug Coleman 2ca0375dee fix png loading 2009-12-30 14:58:50 -06:00
Slava Pestov 81430947d5 PowerPC: fix set-callstack primitive and start updating optimizing compiler backend for recent changes 2009-12-28 08:08:15 -06:00
Slava Pestov 94fbd8a224 cpu.ppc: fix non-optimizing compiler backend 2009-12-29 02:42:34 +13:00
Slava Pestov 285caff08e Updating non-optimizing PowerPC backend for register variable removal (untested) 2009-12-28 12:40:45 +13:00
Slava Pestov 4d70649914 Merge branch 'eliminating_register_variables' 2009-12-27 01:29:53 +13:00
Alec Berryman 1a1487d11c json reader: correctly handle empty objects in objects
Attempting to parse { "foo" : {} } previously resulted in an error.
(close-hash) expected to consolidate an object into the values of the
containing object (in the first line of code).  While there is none in
the case of the empty hash, the structure of the accumulator looked like
it contained an unconsolidated object, so it folded the values into the
keys and got very confused.
2009-12-27 01:29:12 +13:00
Slava Pestov a77f48fe6b Updating x86-64 port for global register variable removal 2009-12-27 01:17:42 +13:00
Slava Pestov 67153bf4bb Fix bug in c_to_factor 2009-12-26 15:24:46 +13:00
Doug Coleman 7fa3b71c07 Add 0xe06d7363 to debugger.windows. Remove case 0xe06d7363 from SEH. 2009-12-23 14:04:52 -06:00
Slava Pestov 15eb8d1a0a vm: remove VM_ASM_API 2009-12-24 01:37:24 +13:00
Slava Pestov e96404327e Get optimizing compiler working without global register variables in VM 2009-12-22 15:42:49 +13:00
Slava Pestov 63edd20a55 vm: eliminating register variables work in progress. Works on x86-32 with non-optimizing compiler 2009-12-19 10:59:56 +13:00
otoburb dbbcf74cda Updated post-data slot names in http-docs.factor 2009-12-15 18:12:48 -05:00
Slava Pestov c4719b7f5f Fix PowerPC compiler backend for recent changes 2009-12-15 09:51:20 -05:00
Slava Pestov eb0a28aa54 Merge branch 'master' of git://factorcode.org/git/factor 2009-12-15 07:21:17 -05:00
Slava Pestov f6c0c64518 threads, io.streams.c: cleanups 2009-12-15 07:20:41 -05:00
Slava Pestov 0068bce934 vm: big overhaul of non-optimizing compiler
- change some primitives into sub-primitives: fixnum+ fixnum- fixnum* inline-cache-miss inline-cache-miss-tail
- rename some relocation types for clarity
- some other minor re-organizations and cleanups
2009-12-15 07:20:09 -05:00
Doug Coleman 19c5200b94 Merge branch 'master' of git://factorcode.org/git/factor 2009-12-13 21:39:14 -06:00
Slava Pestov 7c583dd66f windows.dinput.constants: use C type symbols rather than strings 2009-12-13 16:52:36 -06:00
Doug Coleman 9fea67f3ff triyng to rice crc32 a bit 2009-12-13 02:03:06 -06:00
Doug Coleman ae9bca2b1e add MAIN: run-unix-factor to math.primes.factors 2009-12-12 23:39:59 -06:00
Doug Coleman 8b24bc78b3 fix unit test in circular 2009-12-08 17:05:17 -06:00
Doug Coleman 82f57e57f9 change behavior of circular-while 2009-12-07 19:27:36 -06:00
Doug Coleman 8b38997e55 better minmax 2009-12-07 17:26:33 -06:00
Doug Coleman 7369522b69 add utility words for changing file permissions 2009-12-06 17:53:35 -06:00
Doug Coleman e62474e3c2 fix typo 2009-12-06 17:22:02 -06:00
Doug Coleman a94774f8e8 add circular-while, optimize circular a bit 2009-12-06 17:20:46 -06:00
Doug Coleman 313f70dbd6 Merge branch 'master' of git://factorcode.org/git/factor 2009-12-06 02:28:46 -06:00
Joe Groff 6b9c4254ad move simd operation methods onto simd-128 instead of concrete classes to save image space 2009-12-05 21:19:17 -08:00
Joe Groff 2b2be5f121 Merge branch 'master' of git://factorcode.org/git/factor 2009-12-05 17:18:49 -08:00
Joe Groff 3e40a36c50 fix simd tests 2009-12-05 17:17:16 -08:00
Joe Groff d412845b41 add v*high, v*hs+, vsad, and vavg to simd fuzz tests 2009-12-05 15:42:41 -08:00
Joe Groff af39e5d52c missing USING:s 2009-12-05 15:38:57 -08:00
Joe Groff 1c40e4faa4 implement %scalar>integer for longlong reps on x86.64 2009-12-05 15:38:43 -08:00
Slava Pestov 9e1c5adca7 tools.deploy.shaker: "specializations" word-prop no longer used 2009-12-05 18:21:46 -05:00
Slava Pestov 0a5826c123 math.combinatorics: remove 'mirrors' from using list since its not needed 2009-12-05 18:21:32 -05:00
Slava Pestov abe72ae7ae math.vectors.simd: ensure that set-alien-vector is open-coded in the actual set-nth-unsafe method on SIMD specialized arrays, not just inlined instances 2009-12-05 18:20:57 -05:00
Joe Groff 104c29aabc simd intrinsic implementation for v*high, v*hs+, vavg, and vsad 2009-12-05 14:52:18 -08:00
Joe Groff 1845915dc6 add v*high, v*hs+, vavg, and vsad operations to math.vectors 2009-12-05 11:32:31 -08:00
Joe Groff 412b9d0c7a change compiler.cfg.intrinsics.simd tests to not use types and operations that depend on host cell size 2009-12-04 13:23:31 -08:00
Joe Groff 36b0b65320 move sequence instance to individual SIMD types rather than simd-128 parent type so that "hashcode*" doesn't attempt to use the sequence implementation of hashcode on abstract simd-128 objects 2009-12-04 13:22:59 -08:00
Joe Groff 3aaa90052b fix specialized-array vs methods to work when c-type is also a : word 2009-12-04 13:22:01 -08:00
Joe Groff 53ca7f208b update math.vectors docs for simd changes 2009-12-04 13:21:18 -08:00
Joe Groff 270fe50ba3 add methods to vs+/vs-/vs* on specialized-arrays so that they saturate as well 2009-12-04 12:43:50 -08:00
Doug Coleman 50afb06993 Merge branch 'master' of git://factorcode.org/git/factor 2009-12-04 10:56:36 -06:00
Joe Groff 63b89c65f9 don't use intrinsics for simd vector element operations when the component size doesn't fit in a fixnum 2009-12-03 12:46:56 -08:00
Doug Coleman 0a48b946b6 Merge branch 'master' of git://factorcode.org/git/factor 2009-12-02 20:11:08 -06:00
Slava Pestov 7c8d755c45 Fix bootstrap 2009-12-02 19:24:46 -05:00
Slava Pestov 73eb4c4531 Merge branch 'simd-cleanup' of git://factorcode.org/git/factor into simd-cleanup 2009-12-02 19:09:56 -05:00
Slava Pestov 2f024f8b5c tools.deploy.test.5: revert accidental screwup 2009-12-02 17:56:49 -05:00
Doug Coleman 95e8e6ee14 Merge branch 'master' of git://factorcode.org/git/factor 2009-12-02 09:57:51 -06:00
Slava Pestov 235ad395c2 ui.gadgets.buttons: improve docs 2009-12-02 09:11:40 -05:00
Slava Pestov cf8e03ad39 tools.deploy: hello-ui had reflection level of 2, not 1 unnecessarily; tools.deploy.backend now passes -pic=0 to avoid saving PICs in the deployed image 2009-12-02 05:33:22 -06:00
Slava Pestov eb840dcf41 RT_HERE now takes its argument from the literal table rather than the parameter table, reducing image size further 2009-12-02 04:55:48 -06:00
Slava Pestov 68c09f0e93 Split literal table into literal and parameter tables, literal table is discarded after code block initialization 2009-12-02 04:28:15 -06:00
Doug Coleman 3e756f5c08 add product-map>assoc and docs 2009-11-27 22:58:17 -06:00
Doug Coleman a1bb120498 clean up math.combinatorics and add another combinator 2009-11-27 22:50:06 -06:00
Joe Groff 67cc1c01be Merge branch 'master' into simd-cleanup 2009-11-26 16:14:46 -08:00
Joe Groff 66d0cafa94 fix buggy simd intrinsics 2009-11-26 13:28:40 -08:00
Joe Groff ac5d3d5652 remove SIMDS: 2009-11-26 11:15:46 -08:00
Joe Groff 0795c60b83 "norm" doesn't need to be generic, "norm-sq sqrt" always works 2009-11-26 11:15:35 -08:00
Doug Coleman cdc1f1e041 add product-map-as and use it in poker vocab 2009-11-25 23:18:18 -06:00
Joe Groff 7da80f65e7 trick math.vectors.simd into making nicer quotations 2009-11-25 20:24:09 -08:00
Joe Groff 4027002db7 remove SIMD:s 2009-11-25 20:21:54 -08:00
Joe Groff c916c7c856 don't try to rewrite redundant test-vector-exprs 2009-11-25 20:06:11 -08:00
Joe Groff 578a0e3fd5 math.vectors.simd.cords vocab that defines vector cords 2009-11-25 18:01:58 -08:00
Slava Pestov bd02eef38e Fix non-tail recursive inline recursive compilation 2009-11-25 19:12:09 -06:00
Joe Groff 5f32a6d726 vector op specializations on cords 2009-11-25 15:44:57 -08:00
Joe Groff d95c6eb4c8 streamline cords, add a functor for making specialized cords 2009-11-24 23:18:01 -08:00
Joe Groff 46f0aa6421 move cords to sequences.cords 2009-11-24 22:56:42 -08:00
Joe Groff 50f7dff422 change name of 'unsign-rep' to more sensible 'signed-rep' 2009-11-24 22:44:12 -08:00
Joe Groff 9128f1f160 remove mentions of 256-bit vectors from math.vectors.simd 2009-11-24 22:26:16 -08:00
Joe Groff 3f5b3c2c1b fix math.vectors.conversion help-lint 2009-11-24 22:20:43 -08:00
Joe Groff d344023b1c update math.vectors.conversion 2009-11-24 20:53:40 -08:00
Doug Coleman 7a00f24d6b revert math.matrices.elimintion until someone fixes it properly 2009-11-24 20:41:59 -06:00
Joe Groff c98eb84943 make math.vectors.simd tests pass again 2009-11-24 18:30:12 -08:00
Joe Groff 9c388bf781 update compiler.cfg.intrinsics.simd tests 2009-11-24 12:50:27 -08:00
Joe Groff 65d8060075 fix simd intrinsic compilation 2009-11-24 11:37:28 -08:00
Joe Groff d94ffe6d78 scalar fallbacks for simd intrinsics 2009-11-23 21:24:55 -08:00
Doug Coleman 5793d2e2eb update docs for new alarms changes 2009-11-23 19:49:47 -06:00
Doug Coleman a37908e00e store the current alarm in current-alarm 2009-11-23 19:19:34 -06:00
Doug Coleman a0b13cdb2c alarms: Stop repeated alarms after an error is thrown 2009-11-23 16:37:14 -06:00
Doug Coleman 6af0482e4f Merge branch 'master' of git://factorcode.org/git/factor 2009-11-22 18:23:12 -06:00
Slava Pestov 79d0211c02 Merge branch 'master' of git://factorcode.org/git/factor 2009-11-22 13:49:26 -06:00
Slava Pestov c222e5b6b1 io.launcher.unix: tests don't hang on failure 2009-11-22 13:49:10 -06:00
Doug Coleman 1566d4d184 Merge branch 'master' of git://factorcode.org/git/factor 2009-11-21 20:57:27 -06:00
Doug Coleman 3a90db03c6 use CONSTANT: in epoll 2009-11-21 20:56:39 -06:00
Doug Coleman c794c347a3 Merge branch 'master' of git://factorcode.org/git/factor 2009-11-21 18:16:23 -06:00
Doug Coleman 97288b8a04 remove >duration word and instead make a private >nanoseconds word in alarms 2009-11-21 18:01:25 -06:00
Slava Pestov 0612bc6177 Factor source files should not be executable 2009-11-21 17:50:43 -06:00
Doug Coleman f6ff09cc72 Merge branch 'master' of git://factorcode.org/git/factor 2009-11-21 17:47:54 -06:00
Slava Pestov 39a2d4303e tools.time: update docs 2009-11-21 17:46:27 -06:00
Slava Pestov d001e0176a alarms: pass correct parameter to sleep-until, fixes 100% CPU usage in UI 2009-11-21 17:46:10 -06:00
Slava Pestov bbb95db5e6 tools.threads: report correct sleep time 2009-11-21 17:45:47 -06:00
Slava Pestov 5ccce283fa Various Windows load fixes 2009-11-21 17:24:37 -06:00
Slava Pestov 50b3f076e8 edit-error now works if the error has a file name but not a line number 2009-11-21 17:23:59 -06:00
Doug Coleman 57ed581f22 Merge branch 'master' of git://factorcode.org/git/factor 2009-11-20 22:16:46 -06:00
Slava Pestov c2e9cc8ee7 tools.deploy.test.17: fix typo 2009-11-20 15:35:12 -06:00
Doug Coleman d1117a66cb clean up the end of the easter word 2009-11-20 04:27:00 -06:00
Slava Pestov 10800a009a tools.deploy.test.17: database deployment test 2009-11-20 03:23:24 -06:00
Slava Pestov ffd7de02d6 Update a few places that used string C type names to use words; fixes some deploy tests 2009-11-20 03:21:48 -06:00
Slava Pestov 24c3ddbbde Clean up startup/shutdown hook code 2009-11-20 00:57:49 -06:00
Slava Pestov 3d585fa858 Move nano-count>timestamp word to core-foundation.run-loop since its pretty specialized 2009-11-20 00:12:16 -06:00
Slava Pestov 6a2cf3516d Bootstrap and mason now record times in nanoseconds 2009-11-19 23:50:30 -06:00
Slava Pestov c55bdc0d34 alien.c-types: fix help lint 2009-11-19 23:22:08 -06:00
Doug Coleman 9c943e5ad0 Merge branch 'master' of git://factorcode.org/git/factor 2009-11-19 19:49:33 -06:00
Slava Pestov 1d16152057 stack-checker: fix error message printed when do-primitive is inferred 2009-11-19 19:43:41 -06:00
Doug Coleman 52697db357 Merge branch 'master' of git://factorcode.org/git/factor 2009-11-19 19:37:25 -06:00
Slava Pestov 2c553bcc86 alien.c-types: make sure generated words reference C type words not strings 2009-11-19 19:34:58 -06:00
Slava Pestov c0588221cf classes.struct: compute slot offsets before alignment to fix struct size problem on PPC 2009-11-19 19:34:46 -06:00
Doug Coleman 09e9293866 use nanoseconds in the core-foundation run-loop 2009-11-19 19:22:36 -06:00
Doug Coleman 9ce3e9f84f update calendar tests 2009-11-19 18:27:22 -06:00
Doug Coleman 2711456935 use nano-count for timing bootstrap 2009-11-19 18:24:34 -06:00
Doug Coleman d9d2fe6c92 use nano-count instead of timestamps for mouse clicks 2009-11-19 18:23:29 -06:00
Doug Coleman dc1eefbcc9 update run-loop multiplexer 2009-11-19 14:18:27 -06:00
Joe Groff 6794d14652 typo 2009-11-19 12:17:14 -08:00
Joe Groff 7f546daead fill in longlong cases for %scalar>integer (won't work on 32bit yet!) 2009-11-19 12:15:24 -08:00
Joe Groff 152b0d2df5 break simd intrinsics into a separate vocab so they can be intrinsified before the simd methods compile 2009-11-19 11:53:46 -08:00
Joe Groff 736be27162 move methods back into simd functor so the intrinsics can compile 2009-11-19 11:29:15 -08:00
Doug Coleman adcb0df0c4 fix stack effects for nanosseconds, update io backends for nanos 2009-11-19 04:51:47 -06:00
Doug Coleman b388d2a34b report times in ms again 2009-11-19 04:05:57 -06:00
Doug Coleman 35695b6ff8 print correct time on bootstrap 2009-11-19 03:22:43 -06:00
Slava Pestov a3cb03548c bootstrap.stage2: fix bootstrap time reporting 2009-11-19 02:08:28 -06:00
Slava Pestov f47b72d98b Fix potential assertion failure if GC was invoked while enabling profiling 2009-11-19 01:49:26 -06:00
Joe Groff c07f3212f9 fix effect of set-alien-vector 2009-11-18 22:18:42 -08:00
Joe Groff 59d85f7ad6 fix primitive emit fallback for simd intrinsics 2009-11-18 21:29:51 -08:00
Joe Groff a3e4ecfc7d enable simd intrinsics and fix first-pass compiler errors 2009-11-18 20:32:05 -08:00
Doug Coleman f4450653a9 remove system-millis and update vocabs to use system-micros or nano-count 2009-11-18 20:56:09 -06:00
Joe Groff 6583875055 tests for all simd intrinsics 2009-11-18 18:20:58 -08:00
Doug Coleman 8d43f4e911 better pipe name on windows 2009-11-18 20:04:37 -06:00
Doug Coleman 94a287a6ac fix load errors 2009-11-18 18:53:03 -06:00
Doug Coleman 23a1c92262 Merge branch 'nanos' of git://factorcode.org/git/factor into nanos 2009-11-18 18:36:03 -06:00
Doug Coleman fc3b126d8f use system-micros 2009-11-18 18:27:35 -06:00
Doug Coleman 097111e7c2 use system-micros 2009-11-18 18:26:27 -06:00
Doug Coleman daf3094b8c use $subsections instead of $subsection 2009-11-18 16:40:18 -06:00
Doug Coleman 11c9c6004f document nano-count, move monotonic-clock to hell 2009-11-18 16:33:10 -06:00
Doug Coleman 070393df70 use nano-count instead of monotonic counters, dont allow sleeping for
timestamps
2009-11-18 16:20:29 -06:00
Doug Coleman 6f7ec206a1 rename millis to system-millis, micros to system-micros, add nano-count 2009-11-18 15:58:48 -06:00
Joe Groff f545c5d3e5 properly handle -vector-op and case words in simd.backend 2009-11-18 12:36:41 -08:00
Doug Coleman f9451f4996 Merge branch 'master' into nanos 2009-11-18 10:54:06 -06:00
Doug Coleman 2e0c85cf42 remove disposable for now 2009-11-18 10:01:00 -06:00
Doug Coleman b4206f5252 initial commit to nanos branch to replace micros 2009-11-18 04:20:05 -06:00
Joe Groff cd2cf91b95 start on tests for simd intrinsics 2009-11-17 11:13:16 -08:00
Doug Coleman 8800742f2b Merge branch 'master' of git://factorcode.org/git/factor 2009-11-17 05:06:20 -06:00
Slava Pestov 3d5ea28358 monotonic-clock.unix.macosx: use integer arithmetic instead of constructing rationals 2009-11-17 01:47:01 -06:00
Doug Coleman 1712109cdf fix help lint for calendar 2009-11-16 16:44:17 -06:00
Slava Pestov f302cc3e2c alarms: fix next-alarm word 2009-11-16 13:25:54 -06:00
Slava Pestov e30d275e41 compiler.cfg: 'basic-block new hashcode' should not throw an exception; fixes tools.deploy.test.11 2009-11-16 02:01:36 -06:00
Slava Pestov b23fa0a0c6 calendar: fix unit tests 2009-11-16 01:14:30 -06:00
Slava Pestov 64c209b5c9 Fixes to bootstrap-error.factor and finish-staging.factor 2009-11-16 01:14:24 -06:00
Slava Pestov d7e77650d8 cpu.86.64.winnt: silence notice 2009-11-16 00:32:19 -06:00
Slava Pestov 8f335ba47f Merge branch 'master' of git://factorcode.org/git/factor 2009-11-16 00:28:35 -06:00
Doug Coleman 771e74fdc4 add docs to monotonic-clock 2009-11-30 17:40:32 -06:00
Doug Coleman c3ec0c08f9 fix using 2009-11-30 17:37:01 -06:00
Doug Coleman acd987dee5 add-init-hook -> add-startup-hook 2009-11-30 17:36:03 -06:00
Doug Coleman 8997395b90 Merge branch 'master' of git://factorcode.org/git/factor 2009-11-30 17:05:13 -06:00
Doug Coleman f6be34d83b move monotonic-clock to basis 2009-11-30 17:03:36 -06:00
Doug Coleman 472e77cb00 don't clean up windows rng yet, needs refactoring first 2009-11-30 16:59:40 -06:00
Doug Coleman 49980be091 update docs for alarms 2009-11-30 16:38:57 -06:00
Doug Coleman 54de3addd9 make alarms use monotonic-clock 2009-11-30 16:31:47 -06:00
Slava Pestov ef9840d604 debugger.windows: add unportable tag 2009-11-15 17:11:38 -06:00
Slava Pestov 236d1fba3e iokit: fix load errors 2009-11-15 17:11:26 -06:00
Doug Coleman f30230a2e4 add a >duration word 2009-11-15 15:28:18 -06:00
Doug Coleman 099bf6fd3e Merge branch 'startup' 2009-11-15 15:07:07 -06:00
Slava Pestov 361c38d5a1 heap-size now has a partial-eval instead of being foldable, and the partial-eval adds a dependency on the C type word. Fixes problem where redefining a struct didn't update specialized array 2009-11-15 11:26:37 -06:00
Doug Coleman cc194416f9 Merge branch 'master' into startup
Conflicts:
	core/bootstrap/primitives.factor
	vm/run.hpp
2009-11-15 02:52:50 -06:00
Doug Coleman 0af1b3a7d9 add librt for monotonic timers, new timespec>nanoseconds word 2009-11-15 00:46:12 -06:00
Doug Coleman f3d301d1b9 Merge branch 'monotonic' of git://factorcode.org/git/factor into monotonic 2009-11-15 00:02:23 -06:00
Doug Coleman 9085f30b18 move iokit typedefs to unix.types.macosx 2009-11-15 00:47:52 -06:00
Joe Groff d56afe9c3d compilation fixes 2009-11-14 23:43:22 -06:00
Doug Coleman c608ef1f0f Merge branch 'monotonic' of git://factorcode.org/git/factor into monotonic 2009-11-14 23:29:04 -06:00
Doug Coleman f192d59498 better alarms docs 2009-11-14 23:28:18 -06:00
Joe Groff 243e5b43ce fixes for stronger stack checker 2009-11-14 22:25:00 -06:00
Doug Coleman 92b5b21271 Merge branch 'master' of git://factorcode.org/git/factor 2009-11-14 21:11:18 -06:00
Doug Coleman d4a88d0e39 add unix-time>timestamp, timestamp>unix-time, and some utility words to calendar 2009-11-14 21:10:54 -06:00
Joe Groff f544982fda 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
Joe Groff 8a8699ac98 backend fixups 2009-11-14 20:59:03 -06:00
Slava Pestov 78aa73b29e tools.deploy.test: failing tests now have the actual and minimum size 2009-11-14 02:01:23 -06:00
Slava Pestov bb8eabba36 Unit test fixes 2009-11-13 23:00:50 -06:00
Doug Coleman ccd35c2f4f Merge branch 'master' of git://factorcode.org/git/factor 2009-11-13 15:03:16 -06:00
Slava Pestov ea36783fb3 Fix bootstrap 2009-11-13 07:55:47 -06:00
Slava Pestov 7377c96a21 compiler.tree.propagation.branches: fix recent constraints change 2009-11-13 07:16:41 -06:00
Slava Pestov afecb9c758 Fixing call( inline caching 2009-11-13 04:32:33 -06:00
Slava Pestov 86da8ebed9 Instead of bumping the definition counter every time in the VM, bump it only if stack effects changed or macros were redefined 2009-11-13 03:52:14 -06:00
Slava Pestov 720c412431 compiler.tree.propagation: fix bug in constraints that caused retain stack overflow 2009-11-13 03:22:57 -06:00
Doug Coleman 6c75287bef fix using 2009-11-12 18:46:21 -06:00
Doug Coleman b71d86a1dc update more 8bit encoding usages 2009-11-12 18:36:47 -06:00
Doug Coleman 1ff1e3f4bc add docs to 8-bit encodings vocabs, update usages 2009-11-12 18:36:20 -06:00
Slava Pestov ff25aaef54 compiler.tree.propagation.transforms: inline push if types are known. Speeds up reverse-complement, sort, sum-file benchmarks 2009-11-12 17:24:32 -06:00
Slava Pestov 7afea4c0ea compiler.tree.propagation: implementing missing case in branch constraints 2009-11-12 17:24:11 -06:00
Doug Coleman 6ca69c15ca Merge branch 'master' of git://factorcode.org/git/factor 2009-11-12 16:45:27 -06:00
Doug Coleman 2b5d361cca add more 8-bit windows encodings 2009-11-12 16:42:47 -06:00
Doug Coleman b7745fea3c add new 8-BIT: word 2009-11-12 16:38:21 -06:00
Slava Pestov 0b4de37b63 Merge branch 'master' of git://factorcode.org/git/factor 2009-11-12 16:09:24 -06:00
Slava Pestov cba12eae37 Invalidate inline caches used by call( and execute( when words are redefined 2009-11-12 16:09:07 -06:00
Doug Coleman 4dce86cbad more calendar utility words 2009-11-12 14:42:41 -06:00
Doug Coleman e2fc8b11f1 Merge branch 'master' of git://factorcode.org/git/factor 2009-11-12 03:01:21 -06:00
Doug Coleman aec676edec use surround/glue instead of 3append 2009-11-12 03:01:09 -06:00
Slava Pestov 88be646eee cpu.ppc: update for recent changes 2009-11-11 21:26:07 -06:00
Slava Pestov 9a475570e4 Revert "Revert "vm: faster allocation in tenured space and code heap. If small free list exhausted, allocate a 1kb block and split it up instead of searching larger free lists""
This reverts commit 81a68ebd36.
2009-11-11 19:33:50 -06:00
Slava Pestov 1407fa5410 Merge branch 'master' of git://factorcode.org/git/factor 2009-11-11 19:31:21 -06:00
Doug Coleman e3dc3ae5dd add more calendar utility words 2009-11-11 17:19:14 -06:00
Joe Groff e323071c44 sever lingering dependencies on simd from compiler 2009-11-11 16:08:40 -06:00
Doug Coleman a6f0fcd5b2 add nth day of month 2009-11-11 15:52:30 -06:00
Joe Groff 324889e2ac '[ ] should make an empty quot 2009-11-11 15:50:20 -06:00
Slava Pestov 5169dddc40 Revert "vm: faster allocation in tenured space and code heap. If small free list exhausted, allocate a 1kb block and split it up instead of searching larger free lists"
This reverts commit 9af2fa1957.
2009-11-11 05:47:22 -06:00
Slava Pestov 2c8f67851e vm: fix GC safety issue in callers of unbox_array_size(), and change how disable-gc-events works so that it doesn't make a byte array that's too large 2009-11-11 05:21:03 -06:00
Slava Pestov 41c17f0429 Fixing test failures 2009-11-11 02:40:24 -06:00
Slava Pestov 2afd7ce244 Faster identity-hashcode primitive; fast path now opencoded by the compiler 2009-11-11 02:27:19 -06:00
Joe Groff eac9bacf40 backend for choosing available SIMD intrinsic implementations 2009-11-10 23:35:46 -06:00
Slava Pestov b551721dd9 Minor cosmetic fixes 2009-11-10 21:48:00 -06:00
Slava Pestov f121961fa4 ui.gadgets: use identity-hashcode instead of counter 2009-11-10 21:27:33 -06:00
Slava Pestov 064c00f78d New identity-hashcode primitive 2009-11-10 21:18:54 -06:00
Slava Pestov 4162ee2127 vm: faster allocation in tenured space and code heap. If small free list exhausted, allocate a 1kb block and split it up instead of searching larger free lists 2009-11-10 20:19:29 -06:00
Slava Pestov e9a7191050 Fix struct field alignment on PowerPC 2009-11-10 19:34:14 -06:00
Slava Pestov aed9dcff53 stack-checker: fix help lint 2009-11-10 19:19:59 -06:00
Slava Pestov 19283ed83d compiler.cfg.intrinsics.slots: new implementation of value-tag 2009-11-10 17:30:27 -06:00
Slava Pestov 41e340f231 More PowerPC fixes 2009-11-10 17:26:34 -06:00
Slava Pestov 1002898b7d cpu.ppc: update megamorphic dispatch template 2009-11-10 17:13:20 -06:00
Slava Pestov 425e9d0dde Fix some test failures 2009-11-10 16:48:06 -06:00
Doug Coleman 86be7762b1 add win32 bindings 2009-11-09 01:24:23 -06:00
Slava Pestov ca12618c51 move models.illusion to basis, and move models.combinators and everything that uses it to unmaintained since it monkey-patches the models vocab which is retarded 2009-11-09 01:18:36 -06:00
Slava Pestov 0beec6befc Merge branch 'master' of git://github.com/Blei/factor 2009-11-09 00:57:41 -06:00
Slava Pestov 1c312638c5 Merge branch 'master' of git://factorcode.org/git/factor 2009-11-09 00:55:50 -06:00
Slava Pestov da4506592d typed: update for stack checker refactoring 2009-11-09 00:55:10 -06:00
Slava Pestov 78bd41ae97 opengl: fix stack effect error in (all-enabled) combinator and add a unit test 2009-11-09 00:54:39 -06:00
Slava Pestov c5387cdcdb lists: nothing was using the traverse combinator and it had a stack effect error. nuked 2009-11-09 00:54:15 -06:00
Slava Pestov 8e90b92da2 combinators.smart: add nullary combinator and some tests 2009-11-09 00:53:58 -06:00
Slava Pestov 2557ce1010 io.servers.packet: nothing was using it and it had a stack effect error. nuked 2009-11-09 00:53:47 -06:00
Slava Pestov 473cc7db4a stack-checker: tighten some screws in error reporting 2009-11-09 00:17:24 -06:00
Joe Groff 788289e51e Merge branch 'master' into simd-cleanup 2009-11-08 21:54:53 -06:00
Joe Groff a5d0705b48 patch up locals fry tests 2009-11-08 21:00:35 -06:00
Slava Pestov cd2e226afa stack-checker: split off stack-checker.dependencies from stack-checker.state 2009-11-08 20:34:46 -06:00
Slava Pestov da041a0175 compiler.crossref: fix bugs 2009-11-08 06:22:39 -06:00
Slava Pestov 5d79450d9d Use a more compact representation for "compiled-uses" and "compiled-generic-uses" word-props; reduces image size 2009-11-08 06:08:04 -06:00
Joe Groff 8894e9047c Merge branch 'master' into simd-cleanup 2009-11-07 22:26:09 -06:00
Joe Groff 138cdeff54 typo in io.files.info.windows 2009-11-07 22:23:39 -06:00
Joe Groff 42a121fb60 0 [ndip] can be a nop 2009-11-07 21:51:50 -06:00
Joe Groff f9a9a206f2 eliminate more redundant empty quots from fry code generation 2009-11-07 21:50:45 -06:00
Joe Groff 972a63630f reduce number of primitive dip/curries generated by fry 2009-11-07 21:34:16 -06:00
Joe Groff cbf2a2131f reduce number of empty quotations generated by fry 2009-11-07 16:12:22 -06:00
Joe Groff 42b82341eb update M\ lambda condomize 'cause you can't compose a lambda 2009-11-07 13:32:08 -06:00
Joe Groff 9f22542e1b typos in fry tests 2009-11-07 13:03:57 -06:00
Joe Groff 28b09d6d57 update terms of fry–locals peace treaty 2009-11-07 13:03:46 -06:00
Joe Groff a4508e9c43 new fry implementation that builds human-readable quotations (e.g. { 1 2 3 } 4 '[ _ [ _ + ] map ] => [ { 1 2 3 } [ 4 + ] map ]) 2009-11-06 23:43:07 -06:00
Joe Groff 379246d6e0 link to fry examples article from fry word docs 2009-11-06 23:37:55 -06:00
Philipp Brüschweiler 8163c47b4a sequences: rename virtual-seq to virtual-exemplar 2009-11-07 00:06:26 +01:00
Philipp Brüschweiler c5c0e274cb sequences.merged: fix for input sequences of different lengths 2009-11-06 23:05:55 +01:00
Doug Coleman 71c4da5558 fix a couple errors 2009-11-06 11:32:29 -06:00
Slava Pestov a089163a40 math: fix test failures on 32-bit 2009-11-06 04:50:41 -06:00
Slava Pestov 5058e206c9 Merge branch 'master' of git://factorcode.org/git/factor 2009-11-06 04:37:12 -06:00
Slava Pestov 1d4ec1959d stack-checker.known-words: fix declared output type for dispatch-stats primitive 2009-11-06 04:36:46 -06:00
Slava Pestov ddd13c8979 lists.lazy: fix luntil 2009-11-06 04:31:22 -06:00
Slava Pestov 4f704a7ad3 generalizations: fix help lint 2009-11-06 04:20:25 -06:00
Slava Pestov ba31abb301 Fix some test failures 2009-11-06 02:35:43 -06:00
Doug Coleman 9e939a4dad solved project euler 089 ftw 2009-11-06 01:49:33 -06:00
Doug Coleman 5f33a3e44b Merge branch 'master' of git://factorcode.org/git/factor 2009-11-06 01:07:25 -06:00
Slava Pestov 279d1169d2 compiler: fix alien tests 2009-11-06 01:04:02 -06:00
Doug Coleman 7e66f0beaf fix display issue with png files where height not a multiple of 4 2009-11-06 00:43:59 -06:00
Joe Groff 00ce8b6a33 deprimitivize tuck and put it to pasture 2009-11-05 22:47:05 -06:00
Joe Groff 4b0edb34d3 Merge branch 'master' of git://factorcode.org/git/factor 2009-11-05 22:23:21 -06:00
Slava Pestov c08d325132 Remove unused error from VM 2009-11-05 21:52:31 -06:00
Slava Pestov 4061951d1c vm: simpler object space implementation. begin-scan/next-object/end-scan primitives replaced by a single all-instances primitive 2009-11-05 21:49:03 -06:00
Slava Pestov 8d8f539660 Merge branch 'master' of git://factorcode.org/git/factor 2009-11-05 19:29:49 -06:00
Slava Pestov 22c717616c vm: speed up some bit twiddling on 32-bit 2009-11-05 19:29:27 -06:00
Doug Coleman 3e28be6568 move sequence-parser to sequences.parser 2009-11-05 17:12:10 -06:00
Joe Groff 61d579360d remove non-primitive-related uses of tuck from basis 2009-11-05 17:03:24 -06:00
Doug Coleman 02227b504f Merge branch 'master' of git://factorcode.org/git/factor 2009-11-05 16:55:21 -06:00
Joe Groff 9ec0c3e923 remove unused ntuck generalization, and rewrite napply not to use tuck 2009-11-05 16:12:13 -06:00
Joe Groff 6e9d369331 remove spin from core and retire it to basis/shuffle 2009-11-05 15:40:48 -06:00
Joe Groff 08370a236d update hints docs to demonstrate M\ method syntax instead of old array syntax for referencing methods 2009-11-05 14:05:39 -06:00
Joe Groff fa6d7b7069 eliminate spin from basis 2009-11-05 14:05:06 -06:00
Joe Groff 02f209b30a remove unused nspin generalization 2009-11-05 13:16:20 -06:00
Daniel Ehrenberg d2fe75276e custom inlining for diff and intersect, when given a literal sequence. this cuts off 1/3 of the running time of a microbenchmark 2009-11-05 13:13:27 -06:00
Joe Groff 75d04922b9 Merge branch 'master' into simd-cleanup
Conflicts:
	basis/math/vectors/simd/functor/functor.factor
2009-11-05 11:27:08 -06:00
Joe Groff 4d54f27cd1 more intrinsic madness 2009-11-05 09:52:57 -06:00