Commit Graph

194 Commits (revert-2214-feature-commandline-documentation)

Author SHA1 Message Date
Doug Coleman cc194416f9 Merge branch 'master' into startup
Conflicts:
	core/bootstrap/primitives.factor
	vm/run.hpp
2009-11-15 02:52:50 -06:00
Slava Pestov 5d79450d9d Use a more compact representation for "compiled-uses" and "compiled-generic-uses" word-props; reduces image size 2009-11-08 06:08:04 -06:00
Doug Coleman bd13e018dd memq? -> member-eq?, sorted-memq? -> sorted-member-eq? 2009-10-28 15:02:00 -05:00
Slava Pestov 08e7d25dc5 change-each -> map!, deep-change-each -> deep-map! 2009-10-27 22:32:56 -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
Slava Pestov 63ca8ee5cc tools.deploy.shaker: strip out typed word props 2009-10-16 23:59:45 -05:00
Slava Pestov 5afce2cc9e alien.c-types: c-type no longer calls parser at runtime, tools.deploy.shaker now strips out runtime specialized array code generation 2009-10-16 23:50:17 -05:00
Slava Pestov 697e2342d0 vm: put code block owner directly in the header, instead of as the first entry in the literal table. Reduces x86-64 image size by ~700kb, also eliminates separate 'strip' set of staging images from deploy tool 2009-10-06 06:25:07 -05:00
Slava Pestov 21eea4d88c Allow access to command line arguments in deployed apps 2009-10-02 21:00:12 -05: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
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 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 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 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 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 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 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 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
U-SLAVA-DFB8FF805\Slava 82317980a4 Don't strip out superclass word prop since UI needs it 2009-04-03 09:48:16 -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 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 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 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
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 6b99b04531 Add vocab: for vocab-relative paths 2009-02-15 19:53:21 -06:00
Slava Pestov c5160d76e9 Merge qualified, alias, symbols, constants into core 2008-12-17 18:10:01 -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 833d9f9c0b Fix quotation pooling 2008-12-08 21:24:45 -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 4102857694 Tree shaker now strips out some more PEG stuff 2008-12-03 08:12:28 -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 323f95d3f4 Pre-compute next-methods when deploying 2008-11-22 19:58:23 -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 105831fabe Update for compiler.errors change 2008-11-16 13:46:30 -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
U-SLAVA-DFB8FF805\Slava 66ae62638d Fix Windows deployment 2008-10-05 22:00:52 -05:00
Slava Pestov c19f2257f4 Fix permission bits 2008-10-02 08:34:49 -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 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 cf80dd122a Updating code for make and fry changes 2008-09-10 22:11:40 -05:00
Slava Pestov 05f47c1aaf Prettyprinter now emits assoc-form tuples unless boa-tuple? is on 2008-09-06 03:23:54 -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 a202812ba0 Fix deployment 2008-07-30 10:23:33 -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