]> gitweb.factorcode.org Git - factor.git/log
factor.git
13 years agoUpdating code to use with-out-parameters
Slava Pestov [Sun, 23 May 2010 07:07:47 +0000 (03:07 -0400)]
Updating code to use with-out-parameters

13 years agocpu.x86.64: callback prologue was clobbering 5th parameter register on x86-64
Slava Pestov [Sun, 23 May 2010 07:00:53 +0000 (03:00 -0400)]
cpu.x86.64: callback prologue was clobbering 5th parameter register on x86-64

13 years agosystem-info.windows.nt: lingering string C type
Joe Groff [Sun, 23 May 2010 02:23:45 +0000 (19:23 -0700)]
system-info.windows.nt: lingering string C type

13 years agoecdsa: C types can't be strings anymore
Slava Pestov [Sat, 22 May 2010 20:23:29 +0000 (16:23 -0400)]
ecdsa: C types can't be strings anymore

13 years agochipmunk.demo: fix load error
Slava Pestov [Sat, 22 May 2010 07:24:04 +0000 (03:24 -0400)]
chipmunk.demo: fix load error

13 years agoStack allocation improvements
Slava Pestov [Sat, 22 May 2010 05:25:10 +0000 (01:25 -0400)]
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

13 years agoClarify and reword alarms documentation
Doug Coleman [Sat, 22 May 2010 05:17:30 +0000 (00:17 -0500)]
Clarify and reword alarms documentation

13 years agoRemove dependency on tick unit
Doug Coleman [Sat, 22 May 2010 04:53:55 +0000 (23:53 -0500)]
Remove dependency on tick unit

13 years agoFinish renaming micros->nanos in game code, update libs
Doug Coleman [Sat, 22 May 2010 04:50:42 +0000 (23:50 -0500)]
Finish renaming micros->nanos in game code, update libs

13 years agoRemove alarms from using list, minor refactoring
Doug Coleman [Sat, 22 May 2010 01:48:33 +0000 (20:48 -0500)]
Remove alarms from using list, minor refactoring

13 years agoRotate logs every day, but wait a day first
Doug Coleman [Sat, 22 May 2010 01:44:38 +0000 (20:44 -0500)]
Rotate logs every day, but wait a day first

13 years agoUpdate code base for new alarms api
Doug Coleman [Sat, 22 May 2010 01:42:12 +0000 (20:42 -0500)]
Update code base for new alarms api

13 years agoCleaner implementation of alarms. Separate creating alarm from starting/stopping...
Doug Coleman [Sat, 22 May 2010 01:29:25 +0000 (20:29 -0500)]
Cleaner implementation of alarms.  Separate creating alarm from starting/stopping them.

13 years agoMake the alarm test wait for the promise to be fulfilled instead of returning immedia...
Doug Coleman [Sat, 22 May 2010 01:03:32 +0000 (20:03 -0500)]
Make the alarm test wait for the promise to be fulfilled instead of returning immediately and failing

13 years agoMerge branch 'master' of factorcode.org:/git/factor
Joe Groff [Fri, 21 May 2010 23:40:41 +0000 (16:40 -0700)]
Merge branch 'master' of factorcode.org:/git/factor

13 years agox11.xinput2.ffi: make XI*Mask less ugly
Niklas.Waern [Fri, 21 May 2010 23:36:04 +0000 (01:36 +0200)]
x11.xinput2.ffi: make XI*Mask less ugly

13 years agoio.backend.unix: make timeouts work on stdin once Doug fixes alarms
Slava Pestov [Fri, 21 May 2010 23:09:15 +0000 (19:09 -0400)]
io.backend.unix: make timeouts work on stdin once Doug fixes alarms

13 years agoalarms: add a couple of unit tests
Slava Pestov [Fri, 21 May 2010 23:09:01 +0000 (19:09 -0400)]
alarms: add a couple of unit tests

13 years agox11.xlib: add GenericEvent constant
Niklas.Waern [Fri, 21 May 2010 22:29:38 +0000 (00:29 +0200)]
x11.xlib: add GenericEvent constant

13 years agox11.xinput2: xi2-available?
Niklas.Waern [Fri, 21 May 2010 22:11:00 +0000 (00:11 +0200)]
x11.xinput2: xi2-available?

13 years agox11.xlib: add a few things for xinput2
Niklas.Waern [Fri, 21 May 2010 22:05:34 +0000 (00:05 +0200)]
x11.xlib: add a few things for xinput2

13 years agox11.xinput2.ffi
Niklas.Waern [Fri, 21 May 2010 19:54:33 +0000 (21:54 +0200)]
x11.xinput2.ffi

13 years agox11.xinput2.constants
Niklas.Waern [Fri, 21 May 2010 19:53:29 +0000 (21:53 +0200)]
x11.xinput2.constants

13 years agocreate basis/x11/xinput2
Niklas.Waern [Fri, 21 May 2010 19:52:22 +0000 (21:52 +0200)]
create basis/x11/xinput2

13 years agoFix using list in sequences.unrolled, keys/values was not appropriate in several...
Doug Coleman [Fri, 21 May 2010 20:28:05 +0000 (15:28 -0500)]
Fix using list in sequences.unrolled, keys/values was not appropriate in several locations

13 years agoChange alarm start variable to store nano-count of start time instead of (nano-count...
Doug Coleman [Fri, 21 May 2010 18:28:03 +0000 (13:28 -0500)]
Change alarm start variable to store nano-count of start time instead of (nano-count + interval)

13 years agoSimplify the alarms implementation a bit
Doug Coleman [Fri, 21 May 2010 18:19:15 +0000 (13:19 -0500)]
Simplify the alarms implementation a bit

13 years agoFix using list for keys/values change
Doug Coleman [Fri, 21 May 2010 17:47:42 +0000 (12:47 -0500)]
Fix using list for keys/values change

13 years agoUse overhauled alarms in game.loop
Doug Coleman [Thu, 20 May 2010 17:28:02 +0000 (12:28 -0500)]
Use overhauled alarms in game.loop

13 years ago- Change alarms to run in a single spawned green thread instead of spawning a new...
Doug Coleman [Thu, 20 May 2010 17:24:26 +0000 (12:24 -0500)]
- Change alarms to run in a single spawned green thread instead of spawning a new thread for each iteration of the alarm so game.loop can use alarms -- the old behavior can be embedded by calling in-thread in your alarm handler quotation
- Remove current-alarm dynamic variable in favor of optionally passing the alarm on the stack to the quotation
- Reschedule alarms based on a multiple of the interval from the original start time to eliminate alarm drift over time
- Clarify alarm contract in docs
- Fix later example

13 years agoUse keys/values where appropriate
Doug Coleman [Tue, 18 May 2010 03:20:46 +0000 (22:20 -0500)]
Use keys/values where appropriate

13 years agoFix typo in stack effect docs
Doug Coleman [Sun, 16 May 2010 21:00:47 +0000 (16:00 -0500)]
Fix typo in stack effect docs

13 years agocuda.libraries: make grid tuple read-only, grid-dim/block-dim foldable, and CUDA...
Joe Groff [Fri, 21 May 2010 01:10:17 +0000 (18:10 -0700)]
cuda.libraries: make grid tuple read-only, grid-dim/block-dim foldable, and CUDA-FUNCTION: words inline so that kernel call sites can optimize

13 years agocuda.libraries, cuda.syntax: support for both 32- and 64-bit CUDA pointer abis. make...
Joe Groff [Fri, 21 May 2010 00:56:20 +0000 (17:56 -0700)]
cuda.libraries, cuda.syntax: support for both 32- and 64-bit CUDA pointer abis. make CUDA-LIBRARY: read the abi as part of the library definition

13 years agocuda.libraries: rework parameter passing to fill entire parameter space in one API...
Joe Groff [Fri, 21 May 2010 00:23:47 +0000 (17:23 -0700)]
cuda.libraries: rework parameter passing to fill entire parameter space in one API call

13 years agocuda.libraries: scrape out some useless code
Joe Groff [Thu, 20 May 2010 22:57:23 +0000 (15:57 -0700)]
cuda.libraries: scrape out some useless code

13 years agocuda.libraries, cuda.syntax: factor generated CUDA-FUNCTION: word bodies into a ...
Joe Groff [Thu, 20 May 2010 22:45:35 +0000 (15:45 -0700)]
cuda.libraries, cuda.syntax: factor generated CUDA-FUNCTION: word bodies into a "cuda-invoke" macro; add CUDA-GLOBAL: for referencing global symbols

13 years agocuda.libraries: rename "function-launcher" to "grid", 2<<< to <grid>, 3<<< to <grid...
Joe Groff [Thu, 20 May 2010 21:51:47 +0000 (14:51 -0700)]
cuda.libraries: rename "function-launcher" to "grid", 2<<< to <grid>, 3<<< to <grid-shared>, 4<<< to <grid-shared-stream>

13 years agoimprove cuda library organization
Joe Groff [Thu, 20 May 2010 21:32:35 +0000 (14:32 -0700)]
improve cuda library organization

13 years agoio.files: fix unit test
Slava Pestov [Thu, 20 May 2010 00:46:48 +0000 (20:46 -0400)]
io.files: fix unit test

13 years agosequences.unrolled vocab with fixed-length unrolling versions of some each and map...
Joe Groff [Wed, 19 May 2010 20:59:51 +0000 (13:59 -0700)]
sequences.unrolled vocab with fixed-length unrolling versions of some each and map combinators

13 years agoio: missed a few byte-array>int-array in unit tests
Slava Pestov [Wed, 19 May 2010 20:22:39 +0000 (16:22 -0400)]
io: missed a few byte-array>int-array in unit tests

13 years agospecialized-arrays: fix typo
Slava Pestov [Wed, 19 May 2010 07:23:26 +0000 (03:23 -0400)]
specialized-arrays: fix typo

13 years agocompiler.cfg.builder.alien: use ##local-allot to fix value struct passing on Win64
Slava Pestov [Wed, 19 May 2010 05:53:32 +0000 (01:53 -0400)]
compiler.cfg.builder.alien: use ##local-allot to fix value struct passing on Win64

13 years agocpu.x86.32: fix load error
Slava Pestov [Wed, 19 May 2010 05:29:52 +0000 (01:29 -0400)]
cpu.x86.32: fix load error

13 years agoUse ##local-allot to simplify longlong unboxing
Slava Pestov [Wed, 19 May 2010 05:07:22 +0000 (01:07 -0400)]
Use ##local-allot to simplify longlong unboxing

13 years agocompiler.tree.propagation.known-words: fix load error
Slava Pestov [Wed, 19 May 2010 04:51:03 +0000 (00:51 -0400)]
compiler.tree.propagation.known-words: fix load error

13 years agoalien.data: add with-scoped-allocation combinator for stack-allocating C data
Slava Pestov [Wed, 19 May 2010 04:33:36 +0000 (00:33 -0400)]
alien.data: add with-scoped-allocation combinator for stack-allocating C data

13 years agocompiler.cfg: generalize ##prepare-struct-caller instruction to alloca()-like ##local...
Slava Pestov [Wed, 19 May 2010 04:33:15 +0000 (00:33 -0400)]
compiler.cfg: generalize ##prepare-struct-caller instruction to alloca()-like ##local-allot

13 years agostack-checker.alien: callback and assembly quotations can be callables
Slava Pestov [Wed, 19 May 2010 04:31:46 +0000 (00:31 -0400)]
stack-checker.alien: callback and assembly quotations can be callables

13 years agospecialized-arrays: rename byte-array>T-array to T-array-cast, and make it work with...
Slava Pestov [Wed, 19 May 2010 03:09:34 +0000 (23:09 -0400)]
specialized-arrays: rename byte-array>T-array to T-array-cast, and make it work with anything that responds to >c-ptr / byte-length

13 years agocompiler.tests: fix test for generalizations change
Slava Pestov [Wed, 19 May 2010 03:08:37 +0000 (23:08 -0400)]
compiler.tests: fix test for generalizations change

13 years agoFixing fallout from sequences.generalizations change
Slava Pestov [Wed, 19 May 2010 02:59:07 +0000 (22:59 -0400)]
Fixing fallout from sequences.generalizations change

13 years agolibc: use size_t instead of ulong for correct behavior on win64
Slava Pestov [Wed, 19 May 2010 02:34:52 +0000 (22:34 -0400)]
libc: use size_t instead of ulong for correct behavior on win64

13 years agoalien.c-types: make a couple of words private
Slava Pestov [Wed, 19 May 2010 02:34:42 +0000 (22:34 -0400)]
alien.c-types: make a couple of words private

13 years agosyntax: correct documentation for ratio syntax
Joe Groff [Wed, 19 May 2010 01:59:35 +0000 (18:59 -0700)]
syntax: correct documentation for ratio syntax

13 years agocpu.x86.assembler: drop useless ST0 operand from some x87 instructions
Slava Pestov [Tue, 18 May 2010 23:37:59 +0000 (19:37 -0400)]
cpu.x86.assembler: drop useless ST0 operand from some x87 instructions

13 years agocpu.x86.x87: compares were clobbering ST0
Slava Pestov [Tue, 18 May 2010 23:18:53 +0000 (19:18 -0400)]
cpu.x86.x87: compares were clobbering ST0

13 years agoalien.libraries, stack-checker.alien: check user inputs more carefully to ensure...
Slava Pestov [Tue, 18 May 2010 22:46:31 +0000 (18:46 -0400)]
alien.libraries, stack-checker.alien: check user inputs more carefully to ensure that invalid ABI descriptors don't slip through and break random stuff (reported by prunedtree)

13 years agoMove remaining sequence operations from generalizations to sequences.generalizations...
Slava Pestov [Tue, 18 May 2010 22:36:47 +0000 (18:36 -0400)]
Move remaining sequence operations from generalizations to sequences.generalizations where they belong

13 years agocpu.x86.assembler: fix typo
Slava Pestov [Tue, 18 May 2010 21:59:34 +0000 (17:59 -0400)]
cpu.x86.assembler: fix typo

13 years agocpu.x86.x87: use FISTPD to convert floats to integers, instead of the SSE3 instructio...
Slava Pestov [Tue, 18 May 2010 21:10:58 +0000 (17:10 -0400)]
cpu.x86.x87: use FISTPD to convert floats to integers, instead of the SSE3 instruction FISTTPD

13 years agocpu.x86.assembler: AH CH DH BH register operands now work properly
Slava Pestov [Tue, 18 May 2010 21:10:32 +0000 (17:10 -0400)]
cpu.x86.assembler: AH CH DH BH register operands now work properly

13 years agoimages.viewer: tag "not tested" rather than "not tested^M"
Joe Groff [Tue, 18 May 2010 19:40:40 +0000 (12:40 -0700)]
images.viewer: tag "not tested" rather than "not tested^M"

13 years agoimages.viewer: add not tested tag since the unit tests rely on a GL context
Slava Pestov [Tue, 18 May 2010 19:39:43 +0000 (15:39 -0400)]
images.viewer: add not tested tag since the unit tests rely on a GL context

13 years agocompiler.cfg.value-numbering: constant folding for ##shuffle-vector
Slava Pestov [Tue, 18 May 2010 08:22:21 +0000 (04:22 -0400)]
compiler.cfg.value-numbering: constant folding for ##shuffle-vector

13 years agocompiler.cfg.value-numbering: add constant folding for ##gather-vector instructions...
Slava Pestov [Tue, 18 May 2010 07:56:07 +0000 (03:56 -0400)]
compiler.cfg.value-numbering: add constant folding for ##gather-vector instructions, and fix ##scalar>vector constant folding for integers

13 years agoMerge branch 'master' of factorcode.org:/git/factor
Joe Groff [Mon, 17 May 2010 20:09:53 +0000 (13:09 -0700)]
Merge branch 'master' of factorcode.org:/git/factor

13 years agoMerge branch 'images.viewer' of git://github.com/jonenst/factor
Joe Groff [Mon, 17 May 2010 20:08:58 +0000 (13:08 -0700)]
Merge branch 'images.viewer' of git://github.com/jonenst/factor

13 years agocpu.x86.64: call check-sse to ensure that cpu.x86.sse is loaded
Slava Pestov [Mon, 17 May 2010 15:43:42 +0000 (11:43 -0400)]
cpu.x86.64: call check-sse to ensure that cpu.x86.sse is loaded

13 years agocpu.x86: add x87 codegen for Model T enthusiasts
Slava Pestov [Mon, 17 May 2010 14:44:49 +0000 (10:44 -0400)]
cpu.x86: add x87 codegen for Model T enthusiasts

13 years agocompiler.cfg.ssa.interference: implement linear-time interference test
Slava Pestov [Mon, 17 May 2010 09:49:41 +0000 (05:49 -0400)]
compiler.cfg.ssa.interference: implement linear-time interference test

13 years agocompiler.cfg.ssa.interference.live-ranges: compute correct live ranges for ##phi...
Slava Pestov [Mon, 17 May 2010 09:41:52 +0000 (05:41 -0400)]
compiler.cfg.ssa.interference.live-ranges: compute correct live ranges for ##phi instructions

13 years agocompiler.cfg.linear-scan: fix typo
Slava Pestov [Mon, 17 May 2010 09:18:40 +0000 (05:18 -0400)]
compiler.cfg.linear-scan: fix typo

13 years agocpu.x86.assembler: a choice selection of x87 instructions
Joe Groff [Mon, 17 May 2010 08:55:00 +0000 (01:55 -0700)]
cpu.x86.assembler: a choice selection of x87 instructions

13 years agocpu.x86.32: clean up %unary/binary-float-function
Slava Pestov [Mon, 17 May 2010 08:03:13 +0000 (04:03 -0400)]
cpu.x86.32: clean up %unary/binary-float-function

13 years agocpu.x86: get rid of this extra-stack-space nonsense
Slava Pestov [Mon, 17 May 2010 06:14:44 +0000 (02:14 -0400)]
cpu.x86: get rid of this extra-stack-space nonsense

13 years agocompiler.cfg: refactor stack frame code and fix frame pointer usage in callbacks
Slava Pestov [Mon, 17 May 2010 01:04:18 +0000 (21:04 -0400)]
compiler.cfg: refactor stack frame code and fix frame pointer usage in callbacks

13 years agocuda.devices: factor "context-device cuda-device-properties" into a "context-device...
Joe Groff [Mon, 17 May 2010 00:15:11 +0000 (17:15 -0700)]
cuda.devices: factor "context-device cuda-device-properties" into a "context-device-properties" word

13 years agofix exception for large images
Jon Harper [Sun, 16 May 2010 15:29:03 +0000 (17:29 +0200)]
fix exception for large images

13 years agocompiler: hack to make XCreateIC() work on x86-64
Slava Pestov [Sun, 16 May 2010 08:49:53 +0000 (04:49 -0400)]
compiler: hack to make XCreateIC() work on x86-64

13 years agoMerge branch 'master' of git://factorcode.org/git/factor
Slava Pestov [Sun, 16 May 2010 08:10:03 +0000 (04:10 -0400)]
Merge branch 'master' of git://factorcode.org/git/factor

13 years agoFixes for FFI changes
Slava Pestov [Sun, 16 May 2010 08:09:47 +0000 (04:09 -0400)]
Fixes for FFI changes

13 years agocompiler.cfg.intrinsics.simd: use ^^select-vector for simd constant nth when available
Joe Groff [Sun, 16 May 2010 07:49:55 +0000 (00:49 -0700)]
compiler.cfg.intrinsics.simd: use ^^select-vector for simd constant nth when available

13 years agocompiler.cfg.instructions: ##select-vector instruction mapping to SSE4 PEXTR*
Joe Groff [Sun, 16 May 2010 07:49:12 +0000 (00:49 -0700)]
compiler.cfg.instructions: ##select-vector instruction mapping to SSE4 PEXTR*

13 years agoFFI rewrite part 5: return value boxing and callback parameter boxing now uses vregs...
Slava Pestov [Sun, 16 May 2010 07:43:02 +0000 (03:43 -0400)]
FFI rewrite part 5: return value boxing and callback parameter boxing now uses vregs; simplify return value unboxing

13 years agocompiler.cfg.intrinsics.simd: use new ##gather-int-vector insns to construct int...
Joe Groff [Sun, 16 May 2010 06:59:27 +0000 (23:59 -0700)]
compiler.cfg.intrinsics.simd: use new ##gather-int-vector insns to construct int vectors when available

13 years agocompiler.cfg.instructions: ##gather-int-vector-2/4 instructions that map to SSE4...
Joe Groff [Sun, 16 May 2010 06:48:22 +0000 (23:48 -0700)]
compiler.cfg.instructions: ##gather-int-vector-2/4 instructions that map to SSE4 PINSR/PEXTR

13 years agocuda.gl.ffi: add missing LIBRARY: cuda befor ffi function defs
Joe Groff [Sun, 16 May 2010 05:33:03 +0000 (22:33 -0700)]
cuda.gl.ffi: add missing LIBRARY: cuda befor ffi function defs

13 years agocuda.gl: enum>number the flags argument to gl-buffer>resource so that single CUDA...
Joe Groff [Sat, 15 May 2010 23:25:27 +0000 (16:25 -0700)]
cuda.gl: enum>number the flags argument to gl-buffer>resource so that single CUDA flag symbols can be used as arguments

13 years agocpu.x86: fix bootstrap load error
Joe Groff [Sat, 15 May 2010 22:28:22 +0000 (15:28 -0700)]
cpu.x86: fix bootstrap load error

13 years agocuda: move init-cuda from cuda.utils
Joe Groff [Sat, 15 May 2010 22:28:02 +0000 (15:28 -0700)]
cuda: move init-cuda from cuda.utils

13 years agocuda.demos.prefix-sum: add init-cuda
Joe Groff [Sat, 15 May 2010 22:01:32 +0000 (15:01 -0700)]
cuda.demos.prefix-sum: add init-cuda

13 years agocpu.x86: don't enable bit-count intrinsic by default
Joe Groff [Sat, 15 May 2010 21:52:00 +0000 (14:52 -0700)]
cpu.x86: don't enable bit-count intrinsic by default

13 years agocpu.x86.features: ( int alien-assembly ) c-bool> ==> ( bool alien-assembly )
Joe Groff [Sat, 15 May 2010 21:33:19 +0000 (14:33 -0700)]
cpu.x86.features: ( int alien-assembly ) c-bool> ==> ( bool alien-assembly )

13 years agocpu.x86: enable bit-count intrinsic if POPCNT available
Joe Groff [Sat, 15 May 2010 21:00:12 +0000 (14:00 -0700)]
cpu.x86: enable bit-count intrinsic if POPCNT available

13 years agocompiler.cfg.intrinsics: intrinsic for fixnum-bit-count
Joe Groff [Sat, 15 May 2010 20:59:47 +0000 (13:59 -0700)]
compiler.cfg.intrinsics: intrinsic for fixnum-bit-count

13 years agocompiler.cfg.instructions: ##bit-count insn
Joe Groff [Sat, 15 May 2010 20:57:35 +0000 (13:57 -0700)]
compiler.cfg.instructions: ##bit-count insn

13 years agomath.bitwise: factor M\ fixnum (bit-count) to a separate word so it can be made intrinsic
Joe Groff [Sat, 15 May 2010 20:27:26 +0000 (13:27 -0700)]
math.bitwise: factor M\ fixnum (bit-count) to a separate word so it can be made intrinsic

13 years agocpu.x86.features: add popcnt? test
Joe Groff [Sat, 15 May 2010 20:26:14 +0000 (13:26 -0700)]
cpu.x86.features: add popcnt? test