Doug Coleman
a744e3a370
Bugfix: Only reset-timer on mac if sleep-time returns an integer. If it returns f, don't divide by 1000 and error.
2011-04-15 00:11:15 -05:00
Slava Pestov
c36d73e242
Change do-callback to register the current thread with the callback, instead of busy waiting for the current callback to become the right one before returning. Fixes 100% CPU usage issue with system-alert. Thanks to Blei and ex-rzr for doing preliminary analysis of the issue
2011-04-12 21:48:54 -04: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
1f57dc326e
Remove many uses of <int> and *int etc
2010-10-25 12:49:12 -05:00
Slava Pestov
446ee6896d
alien.data: remove second quotation parameter from with-out-parameters, now all values are copied properly and calling 'clone' on structs in this quotation is not necessary
2010-07-16 17:32:05 -04:00
Doug Coleman
796aca7a4e
Remove more system-micros stuff
2010-06-22 02:04:31 -05:00
Doug Coleman
0edadff45f
remove system-micros word from factor src tree
2010-06-22 01:49:11 -05:00
Slava Pestov
70a99e1cdb
Updating code to use with-out-parameters
2010-05-23 03:07:47 -04:00
Joe Groff
ef884ef7f2
Merge branch 'master' into abi-symbols
2010-04-01 15:28:36 -07:00
Doug Coleman
026499e64f
Use flags{ instead of flags all over the place
2010-04-01 14:44:03 -05:00
Joe Groff
65c3259761
"cdecl" -> cdecl
2010-03-31 19:20:35 -07:00
Slava Pestov
f0a9912ae9
core-foundation.run-loop: remove unnecessary yields. This fixes a thread starvation issue with game.input
2010-03-15 19:25:57 +13:00
Slava Pestov
e3ddafbdec
core-foundation.run-loop: clean up and speed up some code to fix starvation issue exposed by game.loop (reported by Joe Groff)
2010-03-01 12:22:18 +13:00
Slava Pestov
570e332f84
core-foundation.run-loop: cleanup
2010-02-24 21:18:29 +13:00
Joe Groff
2aa1a3dbd7
ui.backend.cocoa: invalidate run loop timers before raising an NSAlert and add them back when runModal returns to avoid run loop callbacks reentering Factor
2010-02-23 23:52:03 -08:00
Joe Groff
db6c083162
change back other char/uchar* parameters that don't look like actual string types
2010-02-23 13:15:16 -08:00
Joe Groff
125c680e2f
cairo.ffi, core-foundation.strings: change some functions that don't really expect strings to use char* instead of c-string (reported by Blei)
2010-02-23 12:53:09 -08:00
Joe Groff
4cfa1a6c77
rename current string-mangling "char*" to "c-string". char* is now just a boring old pointer to char
2010-02-23 11:42:02 -08:00
Joe Groff
347003eb64
core-foundation.fsevents: use CALLBACK: type to define master-event-source-callback
2010-02-21 11:17:25 -08:00
Slava Pestov
95bfc8a240
vocabs.metadata: replace unportable tag with a platforms.txt file for more fine-grained control. Rename unportable tag to untested for remaining cases
2010-02-20 13:30:49 +13:00
Slava Pestov
51c833e12f
core-foundation.arrays: forgot to check in unit tests
2010-02-15 01:03:40 +13:00
Slava Pestov
301b407f45
core-foundation.arrays: CF>array word was broken ever since integer sequences were removed
2010-02-10 11:46:44 +13:00
Slava Pestov
0612bc6177
Factor source files should not be executable
2009-11-21 17:50:43 -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
Doug Coleman
09e9293866
use nanoseconds in the core-foundation run-loop
2009-11-19 19:22:36 -06:00
Doug Coleman
dc1eefbcc9
update run-loop multiplexer
2009-11-19 14:18:27 -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
Joe Groff
c3b8847936
update a bunch of alien-callbacks and alien-indirects to use c-type words
2009-10-21 21:10:11 -05:00
Doug Coleman
6b6e56a179
change add-init-hook to add-startup-hook, new add-shutdown-hook word
2009-10-19 22:17:02 -04:00
Joe Groff
866b62755e
replace all TYPEDEF: void* XXX* with C-TYPE: XXX
2009-09-27 22:21:24 -05:00
Joe Groff
5054c954be
add USING:s and rearrange definitions so macosx can compile without parsing c-type strings
2009-09-26 23:14:57 -05:00
Joe Groff
3b4330fcf6
get things to a point where they bootstrap again
2009-09-15 21:43:18 -05:00
Slava Pestov
7b36689416
core-foundation.strings: fix load error
2009-09-13 00:17:24 -05:00
Joe Groff
e70fa134b2
add full complement of [SU]Int[0-9]+ typedefs to core-foundation
2009-09-12 19:43:57 -05:00
Joe Groff
6ce3c1d62c
CFSTRING: syntax for defining CF/Cocoa string constants. update core-foundation.run-loop to use CFSTRING:
2009-09-12 19:43:23 -05:00
Slava Pestov
7f2e2b1777
Specialized array overhaul
...
- Replace hand-written specialized-arrays.* subvocabularies with new system; instead of USE:ing specialized-arrays.T, do SPECIALIZED-ARRAY: T
- Ditto for specialized-vectors; use SPECIALIZED-VECTOR:
- io.mmap.functor: removed entirely, use <mapped-array> instead
- struct-arrays and struct-vectors have been removed because specialized arrays and vectors subsume them entirely
2009-09-09 22:33:34 -05:00
Slava Pestov
a054ec3d64
specialized-arrays.direct is no more; instead, every specialized-array.<foo> vocabulary has a <direct-T-array> constructor
2009-09-04 22:01:55 -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
Slava Pestov
46045c882e
Disposables are now registered in a global disposables set. To take advantage of this, subclass disposable instead of providing a disposed slot and call new-disposable instead of new. tools.disposables defines two words, 'disposable.' and 'leaks', to help track down resource lifetime problems
2009-08-24 02:26:13 -05:00
Doug Coleman
3f3d57032b
Delete empty unit tests files, remove 1- and 1+, reorder IN: lines in a lot of places, minor refactoring
2009-08-13 19:21:44 -05:00
Slava Pestov
a0eb60906d
Fix even more usings
2009-05-16 10:45:17 -05:00
Slava Pestov
9bb70c2c4d
Update usages of global ... change-at to use the new change-global combinator
2009-04-30 21:38:14 -05:00
Slava Pestov
1dfa621f4d
Tweak some code to reduce deployed image size
2009-03-31 08:03:27 -05:00
Slava Pestov
2ed97f5a24
Various fixes for call(
2009-03-17 18:53:44 -05:00
Slava Pestov
58582ab4d9
Fix memory management for CFArrays
2009-03-09 20:22:56 -05:00
Slava Pestov
cc9e81f27c
Help lint and meta-data fixes
2009-03-08 01:49:06 -06:00
Slava Pestov
91d0c4ed1f
Fix conflict
2009-02-22 20:02:13 -06:00
Doug Coleman
990513db60
use CONSTANT: in basis
2009-02-22 19:13:08 -06:00
Slava Pestov
be40bd33ee
New initialize-alien word
2009-02-20 20:51:13 -06:00
Slava Pestov
421ee726b8
Merge branch 'master' into new_ui
2009-02-16 21:22:12 -06:00
Slava Pestov
6b25e99470
Add summary for heaps more vocabs
2009-02-16 21:05:13 -06:00
Slava Pestov
a4362512f7
<CFString> doesn't bomb if string contains invalid codepoints > 0x10ffff
2009-02-02 13:44:44 -06:00
Slava Pestov
c6415c7b7d
Fix <CFString> and CF>string to allow null bytes
2009-01-25 19:02:59 -06:00
Slava Pestov
2a7d353251
Debugging Core Text, get colored text working and fix memory management issue
2009-01-21 19:34:42 -06:00
Slava Pestov
9f76476d26
Refactor Core Foundation binding a bit, add new >cf word to convert Factor objects to CF values
2009-01-20 23:06:23 -06:00
Slava Pestov
fd7a47613e
Move core-graphics types from cocoa.types to core-graphics.types, clean up some code
2009-01-19 16:29:52 -06:00
Slava Pestov
0c1cf6209d
Fix <CFDictionary>
2009-01-18 23:44:02 -06:00
Slava Pestov
a6f8d09214
Debugging <CFDictionary>
2009-01-16 22:48:07 -06:00
Slava Pestov
3ba833779f
New alien.destructors vocab defines a functor which generalizes &CFRelease; flesh out core-graphics and core-text bindings
2009-01-16 22:37:56 -06:00
Slava Pestov
28c4d323ba
Update metadata
2009-01-16 19:12:28 -06:00
Slava Pestov
c0362a57db
Working on core-foundation.attributed-strings
2009-01-16 19:02:50 -06:00
Slava Pestov
cf11be2d45
Add core-foundation.dictionaries
2009-01-16 18:41:21 -06:00
Slava Pestov
7d837d61d6
Add core-graphics binding meta-data
2009-01-16 17:46:41 -06:00
Slava Pestov
cac73daa85
Oops
2008-12-18 18:09:36 -06:00
Slava Pestov
83f03c89b6
Fix bogus indentation
2008-12-18 18:09:22 -06:00
Slava Pestov
dccbb84629
Updating unit tests for I/O re-organization
2008-12-14 21:21:44 -06:00
Slava Pestov
441a9f7c09
Move time-related words to core-foundation.time to remove number tower dependency from core-foundation; remove no longer used words from cocoa.application
2008-12-13 04:57:37 -06:00
Slava Pestov
5ecffec1b9
Clean up run loop I/O multiplexer and make most of it independent of the I/O system; the UI will use it too
2008-12-12 23:57:16 -06:00
Slava Pestov
50a78db9bd
Add words for working with CFTimeInterval and CFAbsoluteDate types
2008-12-12 21:06:46 -06:00
Slava Pestov
210c661d4d
Add unportable tag to core-foundation.timers
2008-12-12 02:41:10 -06:00
Slava Pestov
0ba2c964af
Remove obsolete file, add unit tests for core-foundation.run-loop, add <CFTimer> word
2008-12-12 02:18:50 -06:00
Slava Pestov
36c36a7f83
Update code for core-foundation split, add core-foundation.timers
2008-12-12 01:11:37 -06:00
Slava Pestov
46a1089fd8
Split up core-foundation vocabulary since it was getting out of hand
2008-12-12 00:33:05 -06:00
Slava Pestov
e9d80dcb63
Move Unix I/O multiplexers to io.unix.multiplexers, new run loop-based multiplexer integrates a kqueue with a CFRunLoop on Mac OS X
2008-12-11 22:48:19 -06:00
Slava Pestov
c679ae025b
Rename tools.disassembler.udis:& to alien.syntax:&: and fix it to survive image save/load
2008-12-11 00:03:58 -06:00
Slava Pestov
ac653d5c31
Core foundation now uses UTF8 instead of UTF16, to eliminate unnecessary dependency
2008-12-08 18:48:49 -06:00
Slava Pestov
6edb771d05
Re-arrange some code so that core-foundation.run-loop no longer depends on calendar
2008-12-08 16:01:11 -06:00
Slava Pestov
d84d267948
Add some CFFileDescriptor-related functions
2008-12-06 17:35:04 -06:00
Slava Pestov
402da00390
Fixing bootstrap with specialized arrays
2008-12-02 02:44:19 -06:00
Slava Pestov
52c5b53e27
Refactoring usages of >r, r>, -rot, rot
2008-11-30 22:21:37 -06:00
Doug Coleman
4b6126f92a
remove >r r> from various vocabs
2008-11-29 13:29:19 -06:00
Slava Pestov
8819f23312
Replace millis primitive with micros primitive
...
Add millis as a library word
sleep now takes either a duration or a microsecond count; code using durations doens't need to be updated, code using millisecond counts updated to use durations for the most part
2008-11-19 01:50:05 -06:00
Slava Pestov
7c05a777ba
Add unportable tag and other meta-data to core-foundation subvocabs
2008-10-07 01:27:18 -05:00
Slava Pestov
3d790d8ac8
Memory ricing to make deploy tests pass on Mac OS X/PowerPC
2008-09-19 00:26:27 -05:00
Slava Pestov
44f53de164
Move make to its own vocabulary, remove fry _ feature
2008-09-10 20:07:00 -05:00
Joe Groff
727f0689d4
change cocoa and core foundation types to be 64-bit clean
2008-09-09 19:19:59 -07:00
Joe Groff
e7bf0c009d
fix typo
2008-09-07 18:55:00 -07:00
Slava Pestov
8b855b2445
Help lint fixes
2008-08-22 23:00:35 -05:00
Slava Pestov
6408b01e9d
Add 'unportable' tag in place of hard-coded list of 'dangerous' vocabs in load-everything
2008-07-29 16:47:52 -05:00
Slava Pestov
d66f887736
Create basis vocab root
2008-07-28 22:03:13 -05:00