Commit Graph

357 Commits (db42e128538f32bb3399f5469866d1b3553ecea3)

Author SHA1 Message Date
Slava Pestov 21eea4d88c Allow access to command line arguments in deployed apps 2009-10-02 21:00:12 -05:00
Keith Lazuka 405e5d015b docs: change $subsection to $subsections 2009-10-02 12:15:48 -04:00
Slava Pestov beab46517e tools.deploy: fix test 11 2009-09-24 13:00:26 -05:00
Slava Pestov 7ea8832556 Tweaks to reduce deployed image size 2009-09-24 06:24:43 -05:00
Joe Groff 076ab42dc3 move some allocation words that don't really have much to do with c types out of alien.c-types into a new alien.data vocab 2009-09-17 22:36:05 -05:00
Slava Pestov 7ae147c3bf tools.deploy.test: cut Windows some slack 2009-09-12 13:24:45 -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 e2fa28a727 tools.deploy.shaker: strip out math.vectors specializations 2009-09-08 15:20:46 -05:00
Slava Pestov 0ad4557d62 tools.deploy: fix facepalm 2009-09-07 22:48:57 -05:00
Slava Pestov ed60c89e94 tools.deploy: add unit test to ensure Cocoa binding works in deployed apps 2009-09-07 17:59:34 -05:00
Slava Pestov 1bdaebdf5e tools.deploy.shaker: strip out struct slot info 2009-09-04 21:59:49 -05:00
Slava Pestov b307c6dac3 Fix tree shaker again, gah 2009-09-02 07:28:40 -05:00
Slava Pestov e3f5452502 tools.deploy.shaker: fix snafu 2009-09-02 04:30:29 -05:00
Slava Pestov 94c89e55e6 tools.deploy.shaker: strip out call( and execute( runtime checking in a way that still allows the inlining optimization to work 2009-08-31 16:48:10 -05:00
Slava Pestov 23f34febbb Fix image size regression with struct array tree shaking 2009-08-31 16:34:58 -05:00
Slava Pestov d23688ea1a tools.deploy.shaker: strip out functor-words global, fixing size regression from Joe's FUNCTOR-SYNTAX: patch 2009-08-30 05:36:16 -05:00
Slava Pestov 3f493bce1a Merge branch 'master' of git://factorcode.org/git/factor 2009-08-27 20:30:08 -05:00
Slava Pestov f1b4d94f2f tools.deploy: remove malloc debugging better, and don't set next-method word prop for methods that don't call-next-method 2009-08-27 20:29:16 -05:00
Slava Pestov 0d70d07cf1 tools.deploy.test: give PowerPC an extra 100kb 2009-08-27 20:27:35 -05:00
Slava Pestov 3be328056d libc: use central disposables mechanism to track mallocs 2009-08-24 20:21:03 -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
Slava Pestov e42216a569 tools.deploy.shaker: more compact next-method shaking 2009-08-23 19:18:12 -05:00
Slava Pestov 387007abfe tools.deploy.shaker: fix regression; strip-compiler-classes wasn't working 2009-08-23 17:54:37 -05:00
Slava Pestov 3979608b09 tools.deploy: faster default method stripping 2009-08-22 19:26:56 -05:00
Slava Pestov d0fe741746 tools.deploy.shaker: strip out specialized vector words 2009-08-09 04:48:44 -05:00
Slava Pestov aaeeaa1e6f Fix load errors 2009-06-08 04:18:57 -05:00
Slava Pestov 7b76d64510 tools.deploy.shaker: update for parser.notes 2009-05-16 16:40:40 -05:00
Slava Pestov f9d711c307 tools.deploy.shaker: Only strip out compiler classes if user doesn't request full environment 2009-05-12 16:56:36 -05:00
Slava Pestov 2fdc666589 tools.deploy.test: use try-output-process, and run VM from .app bundle when testing deployed app. This makes the game-input deploy test work 2009-05-12 05:16:46 -05:00
Slava Pestov 2508ba2e6d tools.deploy.shaker: better I/O stripping, and more effective compiler class stripping by clearing megamorphic caches 2009-05-12 04:20:02 -05:00
Slava Pestov 75cfe40c6c Add deploy test to ensure game-input works 2009-05-11 17:04:14 -05:00
Slava Pestov 4711768e6c tools.deploy.shaker: load ui.debugger into UI apps deployed with debugging support 2009-05-11 16:20:16 -05:00
Slava Pestov 3fe5bb872b Deploy tool always uses optimizing compiler now 2009-05-11 00:32:22 -05:00
Slava Pestov 9de34ab3cd Fix deployment of UI apps and implement various tricks to make deployed images smaller 2009-05-10 21:33:13 -05:00
Slava Pestov 7a0760a0f9 tools.deploy.shaker: strip out a few more things 2009-05-08 02:35:46 -05:00
Slava Pestov 12de56c41e Fix botched replace all in VM source, clean up image saving code, and fix save-image-and-exit to actually call (save-image-and-exit) instead of (save-image) 2009-05-05 10:29:22 -05:00
Slava Pestov b2c3183b21 Split up tools.vocabs. Note that load-everything is now named load-all 2009-05-04 06:44:17 -05:00
Slava Pestov 38cc644eca tools.deploy.test: close stdin 2009-05-01 07:05:41 -05:00
Slava Pestov 10e21bf8d3 tools.deploy.shaker: update for method dispatch changes 2009-04-30 20:35:55 -05:00
Slava Pestov 7e84daf0f1 Move (execute) to kernel.private 2009-04-26 02:42:37 -05:00
Slava Pestov 3783d8513f tools.deploy.shaker: fix 2009-04-22 04:41:03 -05:00
Slava Pestov a9b4a724a4 Remove "compiled-status" word prop and simplify associated machinery 2009-04-21 03:23:11 -05:00
Slava Pestov 8414693142 stack-checker: trust word declarations instead of recursively checking them 2009-04-20 18:44:45 -05:00
Slava Pestov d3d131d1bd Strip out error-list related global variables; webkit-demo 14kb smaller 2009-04-19 17:38:48 -05:00
Slava Pestov f4cdcaa1ce Fix compiler warnings in tools.deploy.shaker 2009-04-17 20:38:55 -05:00
Doug Coleman 364ea217ef fix more compiler errors 2009-04-17 14:44:08 -05:00
Slava Pestov df18c0b6e7 Making more code infer 2009-04-15 19:03:44 -05:00
Slava Pestov ba61b82152 Pass vocab roots onto deployed app. Fixes deployment of apps outside the built-in roots. Reported by Alec Berryman 2009-04-07 21:47:57 -05:00
Slava Pestov cb9e4a4069 Oops 2009-04-06 05:22:43 -05:00
Slava Pestov 890553b776 Fixing tests for method-sec removal 2009-04-06 05:22:28 -05:00
Slava Pestov 268abfcf2a Remove method-specs in favor of M\ 2009-04-06 02:59:59 -05:00
Slava Pestov 92cc670c28 Merge branch 'master' of git://factorcode.org/git/factor 2009-04-03 10:25:56 -05:00
Slava Pestov 535850f3ea Fix vocab: and word name stripping in deployed binaries 2009-04-03 10:16:56 -05:00
Slava Pestov f42c23de9d Copy UI theme over to deployed binaries 2009-04-03 10:16:40 -05:00
U-SLAVA-DFB8FF805\Slava 82317980a4 Don't strip out superclass word prop since UI needs it 2009-04-03 09:48:16 -05:00
U-SLAVA-DFB8FF805\Slava dba42f9259 Remove DLL-downloading logic since we don't have external deps anymore 2009-04-02 13:07:45 -05:00
Slava Pestov 1dfa621f4d Tweak some code to reduce deployed image size 2009-03-31 08:03:27 -05:00
Slava Pestov 862223fa79 Fix bunny deployment 2009-03-23 22:36:51 -05:00
Slava Pestov 518b5c46ca Fixing deploy tests 2009-03-18 19:58:05 -05:00
Slava Pestov 1d45720579 Add a deploy test to keep benchmark.regex-dna size down 2009-03-18 17:08:57 -05:00
Slava Pestov d60e586f48 Fix tools.deploy.shaker's call( and execute( stripping 2009-03-18 17:08:18 -05:00
Slava Pestov 9d44b7620f Fixing the build 2009-03-18 17:01:26 -05:00
Slava Pestov 2ed97f5a24 Various fixes for call( 2009-03-17 18:53:44 -05:00
Slava Pestov 786475102d Make more code infer 2009-03-17 02:19:50 -05:00
Slava Pestov 135f3bfc7f Fix bootstrap 2009-03-16 20:48:56 -05:00
Slava Pestov be4fb1e7d9 Move call( and execute( to core 2009-03-16 20:11:36 -05:00
Slava Pestov 46da224f8b Update regexp and tools.deploy docs 2009-03-13 23:12:56 -05:00
Slava Pestov cff700cd3e Add tests to ensure that execute( and regexps work when deployed 2009-03-13 19:41:13 -05:00
Slava Pestov bf41b187b0 Re-organize code so that with-compilation-unit can infer
Fix with-compilation-unit to work in deployed code
2009-03-13 19:39:32 -05:00
Slava Pestov c2bc2c0705 Updating deploy tool, mason.child and factor.sh for new Windows DLLs 2009-03-07 19:39:11 -06:00
Slava Pestov ce1bc1d6ed Fixing conflicts from stack checker changes 2009-02-24 01:21:10 -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 1a4aaf219f Fix deploy tool: error wasn't printed properly 2009-02-16 19:36:02 -06:00
Slava Pestov 20053c7f5c Deploy tool: if debugger is not stripped out, actually use it to report errors; print an error if vocab has no MAIN: word 2009-02-16 19:00:09 -06:00
Slava Pestov 4a639033fa Merge branch 'master' into new_ui 2009-02-15 21:06:55 -06:00
Slava Pestov 6b99b04531 Add vocab: for vocab-relative paths 2009-02-15 19:53:21 -06:00
Slava Pestov 6235e95052 Fix conflict 2009-02-10 00:44:23 -06:00
Slava Pestov 8654bfe921 Merge branch 'master' into new_ui 2009-02-09 20:30:44 -06:00
Doug Coleman 992da4c967 Fix copy-vm word on Unix 2009-02-09 20:19:18 -06:00
Slava Pestov b06903b0ef Update tree shaker for define-temp changes 2009-02-23 23:28:22 -06:00
Slava Pestov e7243da0b8 Clean up memoize code to not use gensym anymore 2009-02-23 23:28:02 -06:00
Slava Pestov 1951d739a0 Stack effect declarations are mandatory on all words now
define-temp now takes an effect parameter
Fix compiler bug that Dan found
Stricter enforcement of * effects
Move compile-call from compiler.units to compiler
2009-02-23 20:27:05 -06:00
U-SLAVA-DFB8FF805\Slava 49875b9cc7 Use factor.exe or factor.com when deploying on Windows, depending on whether or not the UI is enabled 2009-01-28 01:57:46 -06:00
Slava Pestov 25b0512fd6 Move fonts to basis/bitstream-vera
Use ui.cocoa.text instead of ui.freetype on Mac OS X
Update deploy tool to not copy fonts/ directory on Mac OS X
2009-01-20 14:31:09 -06:00
Slava Pestov 62976058ee Add testcase for mnestic's deploy bug 2009-01-14 01:00:54 -06:00
Slava Pestov 058ba127cb Cleaning up more -rot usages 2008-12-22 05:41:01 -06:00
Slava Pestov c5160d76e9 Merge qualified, alias, symbols, constants into core 2008-12-17 18:10:01 -06:00
Slava Pestov 89255e08c1 Fix tools.deploy test 2008-12-15 03:46:57 -06:00
Slava Pestov 5cb18d51b3 Fixing test-all and help-lint-all failures 2008-12-15 03:33:04 -06:00
U-SLAVA-DFB8FF805\Slava df2641a9ee Merge branch 'master' of git://factorcode.org/git/factor 2008-12-13 04:41:58 -06:00
slava 82e452a885 Fix Linux bootstrap 2008-12-15 02:18:59 -06:00
Slava Pestov 023ae576b5 Updating unit tests for io.files split 2008-12-15 01:40:50 -06:00
Slava Pestov 59a5e554d4 Split up io.directories further, move file types to io.files.types. Bunny demo no longer pulls in file-info and file-system-info code, reducing image size by 35kb 2008-12-15 00:01:06 -06:00
Slava Pestov 50e214c152 io.files split up and general refactoring work in progress 2008-12-14 20:03:00 -06:00
U-SLAVA-DFB8FF805\Slava cf39fd29f8 Fix Windows bootstrap 2008-12-13 04:41:33 -06:00
Slava Pestov 93b7215f1b Returning from boot quotation wouldn't exit Factor if run loop MX was in use 2008-12-13 04:10:39 -06:00
slava 7bf857650c Remove stop-after-last-window? option, it's obsolete, get ui.event-loop (only used on X11 and Windows) to load 2008-12-13 03:49:22 -06:00
Slava Pestov 115d6e792f Change deploy descriptor back 2008-12-12 19:49:22 -06:00
Slava Pestov 2182bd6422 Add a new deploy test to test callbacks 2008-12-12 19:48:51 -06:00
Slava Pestov 645c9ac129 Fix load errors related to utf16n being moved to io.encodings.utf16n 2008-12-09 02:21:03 -06:00
Slava Pestov 833d9f9c0b Fix quotation pooling 2008-12-08 21:24:45 -06:00
Slava Pestov 1d57b0bc50 Fix load errors 2008-12-08 20:06:44 -06:00
Slava Pestov 8c60595b26 Strip out default methods; ~40kb savings on hello-world and maze demos 2008-12-08 19:14:38 -06:00
Slava Pestov 7940020491 Untangling more dependencies 2008-12-08 16:02:31 -06:00
Slava Pestov 4f0a9f311e Untangling some dependencies 2008-12-08 14:58:00 -06:00
Slava Pestov 080cc92239 Add a new deploy test for a new problem, clean up deploy tests, uncomment bunny test now that bunny is back in extra 2008-12-06 17:45:41 -06:00
Slava Pestov e5ed7447ed Removing more >r/r> usages 2008-12-03 08:46:16 -06:00
Slava Pestov 4102857694 Tree shaker now strips out some more PEG stuff 2008-12-03 08:12:28 -06:00
Slava Pestov 6236850aa9 Comment out bunny deploy test since bunny is in temporarily in unmaintained 2008-12-03 00:06:46 -06:00
Slava Pestov f72c951a6b Kill environment init hook 2008-12-01 19:51:01 -06:00
sheeple 9c40cb4a05 Tree-shaker now merges wrappers; saves a few kb 2008-11-28 01:14:33 -06:00
slava fbc0f33c86 The deploy tool would coalesce equal quotations into one. This created a problem
for the non-optimizing compiler because if the new 'leader' quotation was not
compiled but some of the ones that it replaces were, then calls to the quotation
from contexts where they have to be compiled (eg, compiled if and dip) would no
longer work. Add a `jit-compile' primitive to compile quotations, and call it
as appropriate in `compress-quotations`.
2008-11-24 15:59:27 -06:00
Slava Pestov 7788b3e0db Merge branch 'master' into microseconds 2008-11-23 03:06:32 -06:00
Slava Pestov 323f95d3f4 Pre-compute next-methods when deploying 2008-11-22 19:58:23 -06:00
Slava Pestov f5513877ec Don't load listener into deployment image 2008-11-22 19:58:05 -06:00
Slava Pestov 2f3b05b108 Test call-next-method from an uncomipiled method in a compiled deployment 2008-11-22 19:57:47 -06:00
Slava Pestov 3b037c8947 Fix load error in tools.deploy.shaker 2008-11-20 21:54:07 -06:00
Slava Pestov 44c090d0a7 Strip out print-use-hook to reduce image size 2008-11-20 19:04:10 -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
U-SLAVA-DFB8FF805\Slava 0eee4f89d4 Mess around with tags 2008-11-17 06:59:17 -06:00
Slava Pestov 105831fabe Update for compiler.errors change 2008-11-16 13:46:30 -06:00
U-SLAVA-DFB8FF805\Slava 2bf9a55cea Fix Windows deployment 2008-11-09 17:27:51 -06:00
Slava Pestov 5def7c5dea Don't load random number generator on bootstrap 2008-11-06 01:30:59 -06:00
Slava Pestov 4a37bcb757 Strip out remake-generics-hook, since otherwise it slurps in a lot of meta-programming machinery, increasing deployed image size by about 200kb for hello-world 2008-11-04 00:36:16 -06:00
slava 1cd2874072 Uncomment a test 2008-11-01 18:56:12 -05:00
Slava Pestov 1df08ba8c8 Unit tests no longer use hard-coded ports 2008-10-20 22:05:22 -05:00
U-SLAVA-DFB8FF805\Slava 66ae62638d Fix Windows deployment 2008-10-05 22:00:52 -05:00
U-SLAVA-DFB8FF805\Slava cf135e08b3 Tweak deploy descriptor to speed up tools.deploy test 2008-10-05 22:00:35 -05:00
Slava Pestov 00afda7f7e Don't copy freetype over if UI is not deployed 2008-10-02 10:53:30 -05:00
Slava Pestov c19f2257f4 Fix permission bits 2008-10-02 08:34:49 -05:00
Slava Pestov 403d5207f0 stop-server/stop-this-server split 2008-10-02 08:30:38 -05:00
Slava Pestov 58edcddea8 Debugging tree shaker 2008-10-02 06:41:17 -05:00
Slava Pestov 2b420656d6 Tree shaker no longer loads threads into threadless images; 77kb improvement on hello-world size 2008-10-02 05:14:05 -05:00
Slava Pestov 2e48915f9c Strip out C I/O if native I/O enabled 2008-10-02 03:38:36 -05:00
Slava Pestov 1b889d1f1b Clear our next-method-quot-cache when deploying 2008-10-01 23:02:25 -05:00
Slava Pestov 853f1ef5a6 Fix bug with values and deployment, add new to: sugar 2008-09-28 00:40:41 -05:00
Slava Pestov c1b6bce2c9 Strip PEG cache 2008-09-27 12:44:55 -05:00
Doug Coleman c6db662b3b Rice is a part of every healthy diet 2008-08-05 04:38:01 -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 58914da662 I/O fixes 2008-09-18 18:20:26 -05:00
slava 4f03543912 Fix Linux bootstrap 2008-09-11 03:58:20 -05:00
Slava Pestov cf80dd122a Updating code for make and fry changes 2008-09-10 22:11:40 -05:00
Slava Pestov 44f53de164 Move make to its own vocabulary, remove fry _ feature 2008-09-10 20:07:00 -05:00
Slava Pestov 0691bde544 Tweak deploy tests to take less time 2008-09-07 21:32:06 -05:00
Doug Coleman 8a921c791c if-empty changes 2008-09-06 19:13:59 -05:00
Slava Pestov 05f47c1aaf Prettyprinter now emits assoc-form tuples unless boa-tuple? is on 2008-09-06 03:23:54 -05:00
Slava Pestov aff1b021f9 More path fixes 2008-09-05 16:43:42 -05:00
U-SLAVA-DFB8FF805\Slava 7062d33dd7 Minor improvement 2008-09-02 22:40:18 -05:00
Slava Pestov 9a5f3cd606 Don't strip superclass prop 2008-09-01 02:45:20 -05:00
Slava Pestov 29e5ed2adb Fixing deploy tool 2008-08-31 19:17:04 -05:00
Slava Pestov f5fbd94a4c New compiled crossref implementation 2008-08-31 01:34:00 -05:00
Slava Pestov a202812ba0 Fix deployment 2008-07-30 10:23:33 -05:00
Slava Pestov 279aeddeb3 Various fixes 2008-07-30 04:12:17 -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 4cb64aaeb8 Fixing unit tests for eval word being moved 2008-07-29 00:05:01 -05:00
Slava Pestov d66f887736 Create basis vocab root 2008-07-28 22:03:13 -05:00