Commit Graph

254 Commits (fc1103ed2fd0dcdd07b0eb2b265fa6169abb204f)

Author SHA1 Message Date
Joe Groff dbb952889f math.parser: fix digit> bug found by Blei 2010-02-07 13:04:20 -08:00
Slava Pestov a50f184b18 math.parser: clean up and merge new-math-parser branch 2010-02-08 01:39:18 +13:00
Slava Pestov 13d64f44a2 Merge branch 'new-math-parser' of git://factorcode.org/git/factor into new-math-parser 2010-02-07 23:28:18 +13:00
Slava Pestov 8f763fe8da Merge git://github.com/littledan/Factor into littledan 2010-01-31 02:54:58 +13:00
Slava Pestov 127a11c28c math: docs fix 2010-01-30 21:14:41 +13:00
Daniel Ehrenberg 8837fe5792 Tests for propagation additions; making fixnum-bit? inline 2010-01-25 20:15:17 -06:00
Daniel Ehrenberg 8b04f0f417 Merge branch 'master' of git://factorcode.org/git/factor
Conflicts:

	basis/compiler/tree/propagation/transforms/transforms.factor
2010-01-20 00:15:55 -06:00
Daniel Ehrenberg 2e5f16da00 Adding compiler transforms in propagation 2010-01-20 00:10:49 -06:00
Slava Pestov bf0de9f7ee Help lint fixes for iota 2010-01-15 17:04:14 +13:00
Slava Pestov 21dc4e59a0 math.parser: fix docs -- maximum radix is 16 not 36 2010-01-15 08:36:40 +13:00
Doug Coleman 7521807b55 random is generic now -- iota random -> random 2010-01-14 12:48:57 -06:00
Slava Pestov 880fb747fc Removing integers-as-sequences 2010-01-15 07:15:33 +13:00
Slava Pestov 005db61ad6 Rework min and max so that behavior with floats and NaNs is consistent between generic arithmetic and open-coded float intrinsics 2010-01-13 22:20:16 +13:00
Slava Pestov 08b6ebc7fa Factor source files should not be executable 2009-11-21 17:50:43 -06:00
Slava Pestov 614dbfd14c math.integers: fix help lint on 32-bit 2009-11-06 04:52:52 -06:00
Slava Pestov b46c055699 math: fix test failures on 32-bit 2009-11-06 04:50:41 -06:00
Joe Groff 0683045cfd new, faster one-pass number parser 2009-11-01 01:59:12 -05:00
Joe Groff f1d5f6974b remove dangling PRIVATE> from math.parser 2009-11-01 00:42:25 -05:00
Joe Groff 03c1c916e0 might want to accurately divide large negative fixnums too 2009-10-31 12:10:29 -05:00
Joe Groff aab3914453 use bignum/f to get accurate division of fixnums >= 2^53 on 64-bit platforms 2009-10-31 12:06:56 -05:00
Joe Groff 38d662c29a eliminate roll/-roll from core 2009-10-30 13:36:15 -05:00
Doug Coleman 82992f6dd4 reverse-here -> reverse! 2009-10-28 14:40:15 -05:00
Joe Groff d5720a0245 add some math.parser hints that slightly improve number parsing performance 2009-10-26 17:48:05 -05:00
Joe Groff 6b1f1e8589 tighten some screws in math.parser 2009-10-22 20:48:46 -05:00
Joe Groff 419b3bca9a speed up dec>float a little 2009-10-22 18:55:32 -05:00
Joe Groff 05adcf8e88 inline the trivial words in math.parser 2009-10-22 17:26:22 -05:00
Keith Lazuka 8f79ea91ba docs: change $subsection to $subsections 2009-10-02 12:15:48 -04:00
Slava Pestov eb5d30e724 Fix conflict 2009-09-23 20:52:04 -05:00
Slava Pestov 8d84bcb61a math and math.vectors: improved documentation 2009-09-23 03:08:45 -05:00
Keith Lazuka 293b9704d2 docs: updated some docs to use new markup 2009-09-22 15:22:34 -04:00
Joe Groff eb4d4a24da oops, float>hex didn't preserve leading zeroes in mantissa 2009-09-20 16:48:42 -05:00
Joe Groff 2050561915 document number-base prettyprinter variable. add more docs about hex float syntax 2009-09-18 15:11:01 -05:00
Joe Groff aa2047e942 add a number-base configuration variable to prettyprint.config. set to 2 to print BIN:, 8 to print OCT:, 10 to print decimal, 16 to print HEX: 2009-09-14 15:03:05 -05:00
Slava Pestov 427bfb4ab8 math: add unordered comparison operators u< u<= u> u>= which behave exactly like < <= > >= except no floating point exceptions are set if one or both inputs are NaNs; also add efficient intrinsic for unordered? predicate, and fix propagation type functions for abs, absq, and bitnot 2009-09-12 22:20:13 -05:00
Slava Pestov 8cf1c488d4 math.parser: fix example 2009-09-12 21:45:57 -05:00
Slava Pestov 481a97975e math, syntax: document hexadecimal float literal syntax 2009-09-12 21:18:17 -05:00
Slava Pestov 3b75d37b5e math, syntax: fix help lint 2009-09-12 21:07:31 -04:00
Slava Pestov e6c551a652 math.order: better docs 2009-09-12 16:33:42 -05:00
Slava Pestov e5731dc01f math.floats: fix abs on floats; -0.0 abs should be 0.0 not -0.0 2009-09-12 16:24:07 -05:00
Slava Pestov 47bc1498f7 Add NAN: literal syntax for NANs with a payload 2009-09-12 15:06:15 -05:00
Joe Groff b0d4051ac5 HEX: X.XXXpEEE hexadecimal float literal syntax 2009-09-11 20:11:29 -05:00
Joe Groff 4290932695 add an "unordered?" predicate to math, with a dumb implementation for now 2009-09-10 23:45:18 -04:00
Joe Groff 6aef0184d9 add unit tests for comparisons against nan 2009-09-03 17:27:06 -05:00
Joe Groff 0c2f6fd63c let's not forget about hex literals 2009-09-01 21:28:23 -05:00
Joe Groff 64d2459dac require numeric literals to begin and end with a digit/decimal point so that stuff like "," and "1," don't parse as numbers 2009-09-01 21:14:26 -05:00
Slava Pestov 24e2f087ea More minor documentation tweaks 2009-08-30 06:32:20 -05:00
Slava Pestov f30aa5d20e compiler: add fixnum-min/max intrinsics; ~10% speedup on benchmark.yuv-to-rgb 2009-08-28 19:02:59 -05:00
Slava Pestov 99bf9fadfb Performance improvements to make struct-arrays benchmark faster
- improved optimization of ##unbox-any-c-ptr on ##box-displaced-alien; convert it to ##unbox-c-ptr where possible using class info stored in the ##bda instruction
- make fcos, fsin, etc inline again; everything in math.libm inline again, except for fsqrt which is an intrinsic
- convert min and max on floats to float-min and float-max
- make min and max not inline, so that the above can work
- struct-arrays: rice a bit so that more fixnums come up
2009-08-28 05:21:16 -05:00
Slava Pestov 387f9e1c13 math: move float methods to math.floats 2009-08-20 03:55:19 -05:00
Joe Groff 6136271344 Merge branch 'master' of git://factorcode.org/git/factor 2009-08-19 15:48:07 -05:00
Daniel Ehrenberg fc350768cb Merge branch 'master' of git://factorcode.org/git/factor 2009-08-18 00:02:29 -05:00
Daniel Ehrenberg 8873d63956 Fixing docs typo in math.floats 2009-08-18 00:02:19 -05:00
Slava Pestov bee6fa641e Add inline declarations for various assorted methods 2009-08-17 22:32:21 -05:00
Joe Groff 48007aaefa Merge branch 'struct-classes' of git://factorcode.org/git/factor 2009-08-17 21:26:19 -05:00
Doug Coleman 7c3824639e move if-zero etc to math, remove 1-/1+ from math 2009-08-14 14:27:23 -05:00
Joe Groff 4033e46800 Merge branch 'master' of git://factorcode.org/git/factor 2009-08-14 10:55:05 -04:00
Doug Coleman dc79446250 use ERROR: in several places instead of throwing strings 2009-08-11 23:09:02 -05:00
Doug Coleman 8f88467ad3 fix sgn docs 2009-08-11 18:15:24 -05:00
Doug Coleman 1797f389f8 add if-zero/when-zero/unless-zero to core/ and update usages 2009-08-11 17:59:40 -05:00
Brad Christensen 4b3ab95660 A number of documentation fixes.
* Short-circuit combinators now show correct stack effect for quots
 * Groups and Clumps unchecked examples corrected, made runnable in listener
 * Class operations had duplicate link to class-types
 * Protocol slots readability fixed
 * Tuple word property for "tuple-layout" corrected to "layout"
 * cond>quot sentence started in lowercase
 * Method precedence code example missing stack effect for GENERIC:, M: integer explain changed to detail an integer
 * Motivation for default streams readability
 * Default input and output streams duplicate readln link removed from output stream words section
 * Looping combinators do description clarified
 * Make philosophy missing space
 * Linear order protocol duplicate after? link removed
 * Parsing words readability fix
 * Copied note regarding with-compilation-unit from define to define-declared and define-inline
2009-08-10 23:34:25 -07:00
Joe Groff ddaa99ba89 allow commas in numeric literals 2009-08-10 19:33:27 -04:00
Joe Groff 91b6958a09 nitpick 2009-07-24 21:04:49 -05:00
Doug Coleman cebbe08903 add more links to floating point words in docs 2009-07-24 18:11:51 -05:00
Slava Pestov 5160bab4fd Documentation fixes 2009-07-18 06:32:57 -05:00
Doug Coleman 34e1d60578 add a clamp word to math.order, use clamp word throughout libraries 2009-05-24 21:35:50 -05:00
Joe Groff 8dc6ba0eb1 0.0 neg ought to be -0.0 2009-05-21 18:49:22 -05:00
Joe Groff 45f325a744 "math" help-lint 2009-05-09 20:23:56 -05:00
Slava Pestov 74b308f873 Fix negative zero smashing with bootstrap 2009-05-09 18:17:30 -05:00
Joe Groff 8b35e726c0 fp-nan? was defined incorrectly. while i'm here, let's add some more float manipulation words 2009-05-09 09:49:31 -05:00
Slava Pestov dbd4b8ddb8 Fix test failures 2009-05-04 13:10:56 -05:00
Slava Pestov d991690a47 Merge branch 'master' of git://factorcode.org/git/factor 2009-05-04 05:16:47 -05:00
Slava Pestov 4d438a3edd Remove cruddy string encoding/decoding code from VM 2009-05-02 13:45:38 -05:00
Doug Coleman 4057332535 add a few usages of iota, remove most 1+ and 1- from core 2009-05-01 19:58:24 -05:00
Slava Pestov fc4894fbdf Replace ratio and complex built-in types with tuples defined in the library. This frees up two lo-tags, so move array and quotation over to these tags and update compiler for new tags 2009-04-30 00:27:35 -05:00
Slava Pestov 1c68b389cc Document special float values 2009-04-14 15:05:10 -05:00
Slava Pestov cb6f59ff5b Fix unit test failure in math.parser 2009-04-13 20:25:55 -05:00
Slava Pestov 0ffd43e2e3 1.0/0.0 => 1/0. 2009-04-13 19:48:08 -05:00
Slava Pestov 0fda643ab1 Optimizing string>number 2009-04-11 20:30:51 -05:00
Slava Pestov 99b8400e56 Documentation updates 2009-04-06 03:00:46 -05:00
Slava Pestov 8385e9d9f5 Fixing compile errors, test failures and help lint failures 2009-03-23 17:12:41 -05:00
Slava Pestov 25a877e50b Merge OneEyed's patch 2009-02-28 17:06:55 -06:00
Slava Pestov cd53c2bd37 produce and produce-as: don't need third quotation either 2009-02-28 15:31:34 -06:00
Slava Pestov 78ce670101 Merge branch 'for-slava' of git://git.rfc1149.net/factor 2009-02-28 14:42:56 -06:00
Slava Pestov 45dae72f4a Merge branch 'master' into new_ui 2009-02-26 23:31:36 -06:00
Doug Coleman a083832ab4 fix typo in math docs 2009-02-26 18:10:11 -06:00
Slava Pestov 91d0c4ed1f Fix conflict 2009-02-22 20:02:13 -06:00
Slava Pestov 127f9b3578 Add unit tests for bignum bug 2009-02-22 19:41:47 -06:00
Samuel Tardieu 087d931c36 Remove the tail argument from do/until/while 2009-02-18 02:41:14 +01: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 0684a9b7b0 Merge branch 'master' into new_ui 2009-02-09 18:16:14 -06:00
Daniel Ehrenberg 35b526cc7a Docs for lists, consolidating list functionality in lists, minor API changes 2009-02-09 14:29:09 -06:00
Slava Pestov 1bbabcd5e1 Remove some usages of slip combinators from the core 2009-02-05 03:29:59 -06:00
Slava Pestov 669548e62e Clean up some usages of tuck, and add Joe's curried cleave/spread/apply combinators to kernel vocabulary 2009-02-02 13:43:54 -06:00
Slava Pestov a9ef525aed Help lint fixes for stricter help lint 2009-01-27 04:12:37 -06:00
Slava Pestov 92f9338978 Smart quotes 2009-01-26 23:20:27 -06:00
Doug Coleman 66f5694462 document more core/ words 2009-01-17 22:15:57 -06:00
Slava Pestov ca2f01e0d0 Updating non-core libraries for monotonic? change 2009-01-16 17:02:54 -06:00
Doug Coleman 076b2d0893 add >=< word to math.order 2009-01-08 16:06:01 -06:00
Slava Pestov 058ba127cb Cleaning up more -rot usages 2008-12-22 05:41:01 -06:00