Doug Coleman
0055f3c616
factor: remove some extra whitespace.
2016-04-07 14:30:36 -07:00
John Benediktsson
48f57fee4f
cuda: adding prettyprint for cuda functions.
2016-04-07 07:26:23 -07:00
John Benediktsson
6581741a92
cuda: use arg names in stack effect.
2016-04-06 13:11:32 -07:00
John Benediktsson
ceb75057da
change ERROR: words from throw-foo back to foo.
2015-08-13 16:13:05 -07:00
Doug Coleman
66147f27b4
extra: use throw-foo for ERROR: change
2015-08-13 01:56:32 -07:00
Doug Coleman
1fcf96cada
factor: remove """ string syntax for now. there are HEREDOC:, STRING:, escaping \", and something else soon.
2015-07-25 22:59:56 -07:00
Doug Coleman
b4198dbee6
cuda: fix CUDA-LIBRARY: to take a proper path that could have spaces in it
2015-07-21 17:33:14 -07:00
Doug Coleman
429ecc9811
roles: TUPLE: -> ROLES-TUPLE: for now
2015-07-21 17:33:13 -07:00
Doug Coleman
0176591527
factor: actual patch to remove ; from all c/fortran functions
2015-07-19 16:25:30 -07:00
Doug Coleman
14ba179254
factor: change FUNCTION: and similar to not have trailing ;
2015-07-19 16:24:47 -07:00
Doug Coleman
2c257f399c
factor: Rename MACRO: and MACRO: to have quot as the output in stack effects.
2015-07-18 22:16:11 -07:00
Doug Coleman
892c62e1dc
factor: second stab at [ ] [ ] unit-test -> { } [ ] unit-test
2015-07-03 09:39:59 -07:00
Doug Coleman
59f3b1ea57
Revert "factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool!"
...
Needs a bit more work.
This reverts commit 7e54cc2824
.
2015-07-02 13:47:06 -07:00
Doug Coleman
7e54cc2824
factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool!
2015-07-02 11:36:08 -07:00
Doug Coleman
999aa7c897
factor: clean up spaces in -tests files
2015-07-02 10:34:01 -07:00
Doug Coleman
352e5de16a
core, basis, extra: Remove DOS line endings from files.
...
Remove whitespace from end of lines.
Add a newline to the end of each file.
2015-06-29 17:25:40 -07:00
Doug Coleman
6e60c811ac
core: Rename create to create-word, create-in to create-word-in.
2015-06-08 12:47:35 -07:00
John Benediktsson
0ba693b3fa
cuda.memory: use binary-object.
2014-11-20 18:41:19 -08:00
John Benediktsson
760126525b
basis/extra: fix using for map-index move back to sequences.
2014-11-11 18:00:44 -08:00
Doug Coleman
7cfa9d9518
assocs: Make map-index-as support seq or assoc exemplars and move map-index, map-index-as to assocs because they need to use new-assoc. Make zip-index-as support assoc exemplars. Fix up docs and tests.
...
assocs.extras: Remove zip-as and move tests to assocs.
2014-11-08 18:18:00 -08:00
John Benediktsson
49d3338c70
cuda: use ERROR:.
2013-03-24 14:24:21 -07:00
Doug Coleman
c8e4fc08e9
cuda: Rename cuda-error.
2013-03-24 10:11:16 -07:00
John Benediktsson
e74f770b57
Use bl in more places.
2013-03-14 19:24:00 -07:00
Doug Coleman
3507b9bad7
classes:
...
- Allow methods to dispatch off union{ } and intersection{ } classes.
- Add not{ } anonymous-complement syntax.
- Define class-name for anonymous-union/intersection/complement and maybes, and clean up pprint.
- Change maybe: foo to maybe{ foo }
- Call sort-classes when making anonymous-union/anonymous-intersection classes so that they are canonicalized.
2012-05-03 19:45:30 -07:00
Joe Groff
943596575a
use radix literals
2011-11-23 19:03:40 -08:00
Doug Coleman
067f9830ef
classes.union: Define a maybe: word that makes a tuple that acts as an anonymous union for a type and f. Updated all the places we define UNION: ?foo foo POSTPONE: f ;. Fixes #416 and lots of headaches.
2011-11-22 01:56:13 -08:00
Doug Coleman
0d059e0f19
Found a few more places to use lookup-c-type
2011-10-24 15:58:40 -07:00
John Benediktsson
80e1c8e3f2
Eliminate duplicate syntax for stack effects "(" no longer drops and is identical to the old "((", which is now removed.
2011-10-18 13:19:39 -07:00
Doug Coleman
76580da5d5
Refactor the lexer/parser to expose friendlier words for scanning tokens. The preferred top-level words now throw an exception on EOF.
...
CREATE -> scan-new
CREATE-CLASS -> scan-new-class
CREATE-WORD -> scan-new-word
CREATE-GENERIC -> scan-new-generic
scan -> (scan-token)
scan-token now throws on eof
(scan-word) returns word/number/f
scan-word now throws on eof
scan-word-name expects a non-number
Fixes #183 .
Fixes #209 .
2011-09-29 11:28:28 -07:00
Slava Pestov
75560699ea
Move <ref>, deref and little-endian? from alien.c-types to alien.data, remove <c-object>
2010-12-25 16:55:36 -08:00
Doug Coleman
67c37591ca
Remove <uint> *uint and friends. Hopefully remove the last usages of these words
2010-10-25 15:54:42 -05:00
Doug Coleman
4ca9bd0bba
Remove usages of <void*> and *void*
2010-10-25 13:22:50 -05:00
Doug Coleman
1f57dc326e
Remove many uses of <int> and *int etc
2010-10-25 12:49:12 -05:00
Joe Groff
bbe156f3de
cuda.gl: with-mapped-cuda-buffer helper word
2010-05-25 00:37:15 -07:00
Joe Groff
ee995b4770
cuda.gl: cuda-buffer helper object that pairs a buffer with its attached CUDA resource
2010-05-24 22:57:25 -07:00
Joe Groff
9fccc38994
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)
2010-05-24 22:13:15 -07:00
Joe Groff
ff748b5c9f
cuda.libraries: make grid tuple read-only, grid-dim/block-dim foldable, and CUDA-FUNCTION: words inline so that kernel call sites can optimize
2010-05-20 18:10:17 -07:00
Joe Groff
2ad382865e
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
2010-05-20 17:56:45 -07:00
Joe Groff
0d04406a41
cuda.libraries: rework parameter passing to fill entire parameter space in one API call
2010-05-20 17:23:47 -07:00
Joe Groff
ca1426096a
cuda.libraries: scrape out some useless code
2010-05-20 15:57:23 -07:00
Joe Groff
efe7e94a07
cuda.libraries, cuda.syntax: factor generated CUDA-FUNCTION: word bodies into a "cuda-invoke" macro; add CUDA-GLOBAL: for referencing global symbols
2010-05-20 15:45:35 -07:00
Joe Groff
f0a7f039bd
cuda.libraries: rename "function-launcher" to "grid", 2<<< to <grid>, 3<<< to <grid-shared>, 4<<< to <grid-shared-stream>
2010-05-20 14:59:27 -07:00
Joe Groff
1a3fd1dc8c
improve cuda library organization
2010-05-20 14:40:26 -07:00
Joe Groff
e286a8daef
cuda.devices: factor "context-device cuda-device-properties" into a "context-device-properties" word
2010-05-16 17:16:27 -07:00
Joe Groff
a0f28d4402
cuda.gl.ffi: add missing LIBRARY: cuda befor ffi function defs
2010-05-15 22:33:03 -07:00
Joe Groff
5f909cf443
cuda.gl: enum>number the flags argument to gl-buffer>resource so that single CUDA flag symbols can be used as arguments
2010-05-15 16:26:49 -07:00
Joe Groff
c1dbce85bb
cuda: move init-cuda from cuda.utils
2010-05-15 15:28:02 -07:00
Joe Groff
896cd58451
cuda.demos.prefix-sum: add init-cuda
2010-05-15 15:01:32 -07:00
Joe Groff
22e853ecb0
cuda: more API cleanups:
...
- remove useless with-cuda and with-cuda-program combinators
- eliminate redundant cuda-device, cuda-context variables
- rearrange arguments of with-*cuda-context to ( device flags quot -- )
- don't pass context to with-cuda-context quot
- add context-device word to ask for current device
2010-05-15 11:47:19 -07:00
Joe Groff
e32e0f1423
cuda.gl: add free-resource word to release interop handles
2010-05-14 16:17:03 -07:00