]> gitweb.factorcode.org Git - factor.git/log
factor.git
13 years agoMerge branch 'master' of git://factorcode.org/git/factor
Doug Coleman [Thu, 3 Jun 2010 19:52:32 +0000 (14:52 -0500)]
Merge branch 'master' of git://factorcode.org/git/factor

13 years agoui.backend.x11: fix typo
Slava Pestov [Wed, 2 Jun 2010 07:13:57 +0000 (03:13 -0400)]
ui.backend.x11: fix typo

13 years agoalien.prettyprint: fix wrapping when prettyprinting pointer:
Slava Pestov [Wed, 2 Jun 2010 07:11:46 +0000 (03:11 -0400)]
alien.prettyprint: fix wrapping when prettyprinting pointer:

13 years agoui.backend.windows: remove a usage of rot
Slava Pestov [Wed, 2 Jun 2010 06:59:35 +0000 (02:59 -0400)]
ui.backend.windows: remove a usage of rot

13 years agoui.backend.x11: fixing raise-window*
Slava Pestov [Wed, 2 Jun 2010 06:59:15 +0000 (02:59 -0400)]
ui.backend.x11: fixing raise-window*

13 years agox11: general cleanup
Slava Pestov [Wed, 2 Jun 2010 06:58:48 +0000 (02:58 -0400)]
x11: general cleanup

13 years agoMove system word from unix.ffi to libc since its not Unix-specific
Slava Pestov [Wed, 2 Jun 2010 06:58:04 +0000 (02:58 -0400)]
Move system word from unix.ffi to libc since its not Unix-specific

13 years agocompiler.cfg.intrinsics.simd: intrinsic support for double-2>float-4 conversion
Joe Groff [Tue, 1 Jun 2010 07:34:50 +0000 (00:34 -0700)]
compiler.cfg.intrinsics.simd: intrinsic support for double-2>float-4 conversion

13 years agocalendar.model, tools.errors.model: re-initialize models on startup
Slava Pestov [Tue, 1 Jun 2010 00:14:26 +0000 (20:14 -0400)]
calendar.model, tools.errors.model: re-initialize models on startup

13 years agovocabs.refresh.monitor: spin off new monitor threads when add-vocab-root is called...
Slava Pestov [Tue, 1 Jun 2010 00:14:07 +0000 (20:14 -0400)]
vocabs.refresh.monitor: spin off new monitor threads when add-vocab-root is called. Fixes a problem where depending on the order of startup hooks, refresh-all would sometimes be broken for custom vocab roots

13 years agobenchmark.spectral-norm-simd: SIMD implementation of spectral-norm algorithm using...
Slava Pestov [Mon, 31 May 2010 00:10:39 +0000 (20:10 -0400)]
benchmark.spectral-norm-simd: SIMD implementation of spectral-norm algorithm using SIMD primitives, about 40% faster but takes ages to compile -- good compile-time benchmark

13 years agobenchmark.spectral-norm: add copyright notice
Slava Pestov [Sun, 30 May 2010 23:58:30 +0000 (19:58 -0400)]
benchmark.spectral-norm: add copyright notice

13 years agoalien.prettyprint: fix prettyprinting of array types and CALLBACK: (reported by Anton...
Slava Pestov [Sun, 30 May 2010 20:21:43 +0000 (16:21 -0400)]
alien.prettyprint: fix prettyprinting of array types and CALLBACK: (reported by Anton Gorenko)

13 years agoui.tools.listener: fix error bar display
Slava Pestov [Sun, 30 May 2010 20:09:51 +0000 (16:09 -0400)]
ui.tools.listener: fix error bar display

13 years agonibble-arrays: replace a -rot usage with locals
Slava Pestov [Sat, 29 May 2010 09:22:10 +0000 (05:22 -0400)]
nibble-arrays: replace a -rot usage with locals

13 years agotools.deploy.macosx: make deployment work when we're not running the .app bundle
Slava Pestov [Sat, 29 May 2010 08:13:04 +0000 (04:13 -0400)]
tools.deploy.macosx: make deployment work when we're not running the .app bundle

13 years agoAdd deployment descriptors for benchmarks, and add a bigger input file for knucleotid...
Slava Pestov [Sat, 29 May 2010 08:12:49 +0000 (04:12 -0400)]
Add deployment descriptors for benchmarks, and add a bigger input file for knucleotide and regex-dna

13 years agoui.backend.cocoa: factor out stop-io-thread word for use by upcoming Gtk UI backend
Slava Pestov [Sat, 29 May 2010 05:49:40 +0000 (01:49 -0400)]
ui.backend.cocoa: factor out stop-io-thread word for use by upcoming Gtk UI backend

13 years agokey-caps, joystick-demo: move demos to game.input.demos.key-caps, game.input.demos...
Joe Groff [Sat, 29 May 2010 07:20:09 +0000 (00:20 -0700)]
key-caps, joystick-demo: move demos to game.input.demos.key-caps, game.input.demos.joysticks

13 years agobuild-support/factor.cmd: cleanups recommended by mnestic
Joe Groff [Wed, 26 May 2010 04:32:07 +0000 (21:32 -0700)]
build-support/factor.cmd: cleanups recommended by mnestic

13 years agobuild-support/factor.cmd: spruce up "unable to detect cl.exe" message. use "call...
Joe Groff [Wed, 26 May 2010 03:47:20 +0000 (20:47 -0700)]
build-support/factor.cmd: spruce up "unable to detect cl.exe" message. use "call" to invoke cl so it doesn't stop the batch job if it's not on the path

13 years agobuild-support/factor.cmd: copy factor.image to factor.image.fresh after bootstrap...
Joe Groff [Wed, 26 May 2010 02:01:55 +0000 (19:01 -0700)]
build-support/factor.cmd: copy factor.image to factor.image.fresh after bootstrap completes, like factor.sh does

13 years agobuild-support/factor.cmd: detect cl.exe platform and choose build platform based...
Joe Groff [Wed, 26 May 2010 01:50:22 +0000 (18:50 -0700)]
build-support/factor.cmd: detect cl.exe platform and choose build platform based on that. fix errorlevel handling

13 years agoMerge branch 'master' of http://factorcode.org/git/factor
Joe Groff [Wed, 26 May 2010 01:40:58 +0000 (18:40 -0700)]
Merge branch 'master' of http://factorcode.org/git/factor

13 years agobootstrap.image.download: refactor it a bit to make mason.updates more robust
Slava Pestov [Tue, 25 May 2010 21:15:55 +0000 (17:15 -0400)]
bootstrap.image.download: refactor it a bit to make mason.updates more robust

13 years agocuda.gl: with-mapped-cuda-buffer helper word
Joe Groff [Tue, 25 May 2010 07:37:15 +0000 (00:37 -0700)]
cuda.gl: with-mapped-cuda-buffer helper word

13 years agocuda.gl: cuda-buffer helper object that pairs a buffer with its attached CUDA resource
Joe Groff [Tue, 25 May 2010 05:57:10 +0000 (22:57 -0700)]
cuda.gl: cuda-buffer helper object that pairs a buffer with its attached CUDA resource

13 years agonehe: fix load errors
Slava Pestov [Tue, 25 May 2010 05:40:47 +0000 (01:40 -0400)]
nehe: fix load errors

13 years agogpu.buffers: grow-buffer helper word
Joe Groff [Tue, 25 May 2010 05:12:49 +0000 (22:12 -0700)]
gpu.buffers: grow-buffer helper word

13 years agocuda.contexts, cuda.gl: factor out set-up-cuda-context and clean-up-cuda-context...
Joe Groff [Tue, 25 May 2010 04:38:25 +0000 (21:38 -0700)]
cuda.contexts, cuda.gl: factor out set-up-cuda-context and clean-up-cuda-context so they can be used by objects that own a cuda context (separate from with-cuda-context)

13 years ago- Put back the good version of restart-alarm
Doug Coleman [Tue, 25 May 2010 03:57:18 +0000 (22:57 -0500)]
- Put back the good version of restart-alarm
- Don't sleep if the alarm is stopped before it starts
- Right before I committed, I changed the code.  oops.

13 years agoUse restart-alarm for ui blink code
Doug Coleman [Tue, 25 May 2010 03:48:48 +0000 (22:48 -0500)]
Use restart-alarm for ui blink code

13 years agoAdd a restart-alarm word that doesn't spawn a new thread
Doug Coleman [Tue, 25 May 2010 03:46:58 +0000 (22:46 -0500)]
Add a restart-alarm word that doesn't spawn a new thread

13 years agoMake frequency a constant
Doug Coleman [Tue, 25 May 2010 02:20:14 +0000 (21:20 -0500)]
Make frequency a constant

13 years agoKey-logger demo
Doug Coleman [Tue, 25 May 2010 02:19:32 +0000 (21:19 -0500)]
Key-logger demo

13 years agoMerge branch 'master' of factorcode.org:/git/factor
Joe Groff [Tue, 25 May 2010 01:39:24 +0000 (18:39 -0700)]
Merge branch 'master' of factorcode.org:/git/factor

13 years agomath.vectors.simd.intrinsics: use unrolled loops for some software fallbacks
Joe Groff [Tue, 25 May 2010 01:39:06 +0000 (18:39 -0700)]
math.vectors.simd.intrinsics: use unrolled loops for some software fallbacks

13 years agosequences.unrolled: tweak helper words so that call( -- ) guards inline in more cases...
Joe Groff [Mon, 24 May 2010 23:50:46 +0000 (16:50 -0700)]
sequences.unrolled: tweak helper words so that call( -- ) guards inline in more cases (w/ help from Slava)

13 years agoui.backend.x11: don't pass GLX_USE_GL since its a no-op and Mesa doesn't like it
Slava Pestov [Mon, 24 May 2010 23:23:55 +0000 (19:23 -0400)]
ui.backend.x11: don't pass GLX_USE_GL since its a no-op and Mesa doesn't like it

13 years agoui.gadgets.worlds: don't enable depth buffer by default, since it just wastes memory...
Slava Pestov [Mon, 24 May 2010 23:23:02 +0000 (19:23 -0400)]
ui.gadgets.worlds: don't enable depth buffer by default, since it just wastes memory and apps which need it can pass custom pixel-format-attributes to open-window to enable it explicitly

13 years ago"factor.cmd" script to automate update/build/bootstrap cycle for windows. remove...
Joe Groff [Mon, 24 May 2010 22:56:00 +0000 (15:56 -0700)]
"factor.cmd" script to automate update/build/bootstrap cycle for windows. remove bootimage-* targets from nmakefile

13 years agobuild-support/http-get.vbs: handle exceptions when making http request and writing...
Joe Groff [Mon, 24 May 2010 22:07:23 +0000 (15:07 -0700)]
build-support/http-get.vbs: handle exceptions when making http request and writing file, set appropriate errorlevel

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

13 years agoadd targets to Nmakefile to fetch boot images on windows, add a wscript program to...
Joe Groff [Mon, 24 May 2010 21:19:44 +0000 (14:19 -0700)]
add targets to Nmakefile to fetch boot images on windows, add a wscript program to fetch files over http without depending on curl/wget

13 years agoui: ditch window restore behavior since it was broken
Slava Pestov [Mon, 24 May 2010 20:50:09 +0000 (16:50 -0400)]
ui: ditch window restore behavior since it was broken

13 years agomath.vectors.simd.intrinsics: remove call( -- ) wrapper from fallbacks
Joe Groff [Mon, 24 May 2010 19:58:14 +0000 (12:58 -0700)]
math.vectors.simd.intrinsics: remove call( -- ) wrapper from fallbacks

13 years agosequences.unrolled: reimplement underlying (unrolled-each-integer) loop as a partial...
Joe Groff [Mon, 24 May 2010 07:33:41 +0000 (00:33 -0700)]
sequences.unrolled: reimplement underlying (unrolled-each-integer) loop as a partial eval, sacrificing row polymorphism for flexibility

13 years agomath.vectors.simd.intrinsics: use <direct-X-array> instead of X-array-cast to constru...
Joe Groff [Mon, 24 May 2010 06:18:02 +0000 (23:18 -0700)]
math.vectors.simd.intrinsics: use <direct-X-array> instead of X-array-cast to construct view over fallback byte-arrays to avoid redundant array size checking

13 years agomath.vectors.simd.intrinsics: wrap intrinsic fallback bodies in call( -- ) so we...
Joe Groff [Mon, 24 May 2010 05:39:44 +0000 (22:39 -0700)]
math.vectors.simd.intrinsics: wrap intrinsic fallback bodies in call( -- ) so we can abuse macros in their normally-inlined bodies

13 years agogame.input.x11: add alien.data to using list
Slava Pestov [Mon, 24 May 2010 04:32:35 +0000 (00:32 -0400)]
game.input.x11: add alien.data to using list

13 years agoDelay the cursor blink
Doug Coleman [Mon, 24 May 2010 03:26:46 +0000 (22:26 -0500)]
Delay the cursor blink

13 years ago- Remove the alarms stop variable, and instead for a stop condition, check against...
Doug Coleman [Mon, 24 May 2010 03:25:17 +0000 (22:25 -0500)]
- Remove the alarms stop variable, and instead for a stop condition, check against the thread object being replaced.
- Interrupt the thread sleep when stopped, but only if the quotation is not currently running

13 years agoMerge branch 'master' of git://factorcode.org/git/factor
Doug Coleman [Mon, 24 May 2010 03:19:48 +0000 (22:19 -0500)]
Merge branch 'master' of git://factorcode.org/git/factor

13 years agoalarms: new test case for interrupt race
Slava Pestov [Mon, 24 May 2010 03:16:41 +0000 (23:16 -0400)]
alarms: new test case for interrupt race

13 years agocpu.x86: fix callbacks receiving stack parameters on Win64
Slava Pestov [Mon, 24 May 2010 03:08:07 +0000 (23:08 -0400)]
cpu.x86: fix callbacks receiving stack parameters on Win64

13 years agoMerge branch 'master' of git://factorcode.org/git/factor
Doug Coleman [Mon, 24 May 2010 02:34:37 +0000 (21:34 -0500)]
Merge branch 'master' of git://factorcode.org/git/factor

13 years agoopengl.gl.unix renamed to opengl.gl.x11
Slava Pestov [Mon, 24 May 2010 02:23:44 +0000 (22:23 -0400)]
opengl.gl.unix renamed to opengl.gl.x11

13 years agoui.backend.x11: fix load error
Slava Pestov [Mon, 24 May 2010 02:08:24 +0000 (22:08 -0400)]
ui.backend.x11: fix load error

13 years agoRemove typo slot, fix scheduling formula, record initial iteration nano-count
Doug Coleman [Sun, 23 May 2010 23:44:04 +0000 (18:44 -0500)]
Remove typo slot, fix scheduling formula, record initial iteration nano-count

13 years agoalarms: add unit test for race condition
Slava Pestov [Sun, 23 May 2010 22:38:37 +0000 (18:38 -0400)]
alarms: add unit test for race condition

13 years agoFixes for out parameter changes
Slava Pestov [Sun, 23 May 2010 08:27:40 +0000 (03:27 -0500)]
Fixes for out parameter changes

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