Alexander Iljin
c53895e03d
pixel-format-docs: add a missing space
2017-06-21 12:36:39 +03:00
Alexander Iljin
581489b64f
sytax-docs: mention that numbers may contain commas
2017-06-21 12:36:39 +03:00
Alexander Iljin
df576aa6c3
models-docs: update documentation
2017-06-21 12:36:38 +03:00
Alexander Iljin
5cc07a1c5f
ui.gadgets.panes-docs: add a missing parenthesis
2017-06-21 12:36:32 +03:00
Alexander Iljin
106e1ea4f3
sequences-docs: add short help for the words longest and shortest
2017-06-21 12:35:47 +03:00
Alexander Iljin
24a071d6e6
ui.gadgets-docs: fix wording
2017-06-21 12:35:37 +03:00
John Benediktsson
13e7ed3986
math.parser: allow 0B, 0O, and 0X number prefixes.
2017-06-15 15:53:01 -07:00
John Benediktsson
3bd0776630
ui.gadgets.line-support: even though 1/.0 parses, change to 1/0.
2017-06-12 07:28:33 -07:00
John Benediktsson
dc0b8994f0
Factor.app: update copyright.
2017-06-11 14:16:53 -07:00
John Benediktsson
7202cf0fb4
prettyprint: make sure float number-base is tested.
2017-06-11 13:45:22 -07:00
John Benediktsson
7b65b5193f
prettyprint: remove tests for float .b and .o.
2017-06-11 13:43:02 -07:00
John Benediktsson
bf6300b7b0
prettyprint: fix .b, .o, and .h for negative numbers.
...
Also makes these useful for nested printing in different number bases.
2017-06-11 10:57:01 -07:00
John Benediktsson
634df46db9
prettyprint.backend: allow octal and binary float printing.
2017-06-11 10:54:13 -07:00
John Benediktsson
3018010f67
prettyprint.sections: don't create empty strings with zero indent.
2017-06-11 10:53:55 -07:00
John Benediktsson
e8cef24486
ui.tools.inspector: improve performance for large arrays and hashtables.
...
Using trick suggested by @AlexIljin, we compute the longest key and then
set the column widths to be { length-of-longest-key 0 }.
2017-06-11 08:59:45 -07:00
John Benediktsson
0fddbc2af1
formatting: revert change to %d, %o, %b, %x for now.
...
We should have a format character in the future to format using our Factor
binary, octal, and hex parser. Maybe using the "alternate form" format
character like Python does? And if we do that, maybe print the 0b, 0o, 0x
prefixes? TBD.
2017-06-10 13:33:01 -07:00
John Benediktsson
c503659a93
math.functions: fix another test impacted by float truncate change.
2017-06-10 13:33:01 -07:00
Doug Coleman
f086b54067
odbc: Minor style fixes and add an error function.
2017-06-08 21:05:03 -05:00
Doug Coleman
67c44bcf62
base64: Fix base64 for strings that don't end in equal signs.
...
Some uses of base64 in the wild do not have trailing ==, such as JWT (JSON Web Token) strings.
2017-06-08 21:03:40 -05:00
John Benediktsson
57de1f5ab0
math.functions: make -0.3 truncate return 0.0 instead of -0.0.
2017-06-08 11:27:48 -07:00
Jon Harper
1dceb069ad
formatting: fix bug when using %e and the number rounds up in magnitude
...
99/10 0 format-scientific-simple was outputting 1.0e0 because
the mantissa was rounded up, so it had one extra character, and
the exponent was wrong.
2017-06-08 11:23:38 -07:00
Jon Harper
4df21818f5
formatting: change %.0f and %.0e to remove the radix character. It's more standard.
2017-06-08 11:23:38 -07:00
Jon Harper
756184607b
formatting: make these tests actually test the expected code path
2017-06-08 11:23:38 -07:00
Jon Harper
552791d1cf
formatting: don't force the presence of ".0" for %f and %e when precision is 0
...
It's misleading because you can think you have more precision than you really
do when looking at the output. So instead of "1.0", we can format it as "1" or
"1.". And instead of "1.0e+00" we can format "1e+00" or "1.e+00". In C,
printf does not print the radix character, it's prettier. But since the factor
parser accepts both styles, and keeping the radix character gives a stronger sense
that the number is approximate, I prefer to keep the radix character..
2017-06-08 11:23:38 -07:00
Jon Harper
762b22e1a8
formatting-docs, document ' ' as an alternative to '+' for positive numbers sign prefixing
2017-06-08 11:23:38 -07:00
Jon Harper
6061da92be
formatting, allow uppercase exponent for bin floats in base 2 and 8
2017-06-08 11:23:37 -07:00
Jon Harper
ccbb8116fc
formatting, make %d, %o, %b work for ratios and floats
2017-06-08 11:23:37 -07:00
Jon Harper
438e22fceb
formatting, fix %f and %e for ratios and integers
2017-06-08 11:23:37 -07:00
Jon Harper
e1df9df735
formatting: fix missing '+' for %+e with negative exponent
2017-06-08 11:23:37 -07:00
Jon Harper
80e9d7c115
move math.extras:round-to-even to math.functions to use in basis:formatting
...
Also add round-to-odd in case it is needed.
Also change float rounding to be independent of the current rounding mode
2017-06-08 11:23:37 -07:00
Jon Harper
bf852cea6a
add basis.math.functions.integer-logs: exact integer logarithms
2017-06-08 11:22:40 -07:00
Jon Harper
34f36a529e
math.functions, speed up truncate for floats
2017-06-08 11:22:40 -07:00
Jon Harper
c74cfe6c54
math.functions: fix truncate and round to output -0.0 for negative floats near 0
2017-06-08 11:22:40 -07:00
Jon Harper
271c7d9519
math.functions, fix round for ratios between -1/2 and -1
...
it was outputting 1 instead of -1
2017-06-08 11:22:40 -07:00
Alexander Iljin
acf14a7bd1
io.directories.windows: add size slot to windows-directory-entry tuple
2017-06-05 16:47:01 -07:00
Alexander Iljin
75d8c1e050
Add .gitattributes to enforce EOL policy for factor sources
2017-06-05 13:58:08 -07:00
Alexander Iljin
6d355c998b
help.lint.spaces: new vocab
2017-06-05 13:16:07 -07:00
Alexander Iljin
2ffa446f5b
*-docs: replace double spaces with single spaces
...
Code examples and other places where multiple spaces were used to align
text were left intact.
2017-06-05 13:16:07 -07:00
Robert Vollmert
445b55b3e5
test runner: non-zero exit code in case of failed tests
...
This makes it easier to detect unit test failures from the
command line.
2017-06-05 13:13:09 -07:00
Doug Coleman
27423b78aa
classes.intersection: Fix typo in commented-out unit-test.
2017-06-04 20:03:02 -05:00
Doug Coleman
9aacb29667
unmaintained: New repo here: https://github.com/factor/factor-unmaintained
...
It's confusing to ripgrep through unmaintained/ and this eliminates all
incompatible/outdated code in the Factor repository.
Please contribute the worthy code back to Factor and remove it from factor-unmaintained.
2017-06-04 15:45:56 -05:00
Doug Coleman
9e76899dbd
tools.test: Make the flag public. Finish porting tester changes to fuzzer.
2017-06-04 14:47:35 -05:00
Doug Coleman
1708c8011f
classes.singleton: Update another test.
2017-06-04 12:57:38 -05:00
Doug Coleman
50fbf0457a
tools.deploy: Change unit-test to long-unit-test for deploy tests.
...
long-unit-tests are enabled by default.
2017-06-04 12:55:58 -05:00
Doug Coleman
be1175b3c5
tools.test: Add long-unit-test and refactor a bit.
2017-06-04 12:55:52 -05:00
Doug Coleman
06fd324379
singleton: Move definitions to top level in tests.
2017-06-04 10:41:26 -05:00
Alexander Iljin
b540feb95d
Nmakefile: add the /largeaddressaware linker option for 32-bit builds
...
This somewhat mitigates issue #1828 by allowing more memory to be allocated
for the 32-bit apps on some systems. Has no effect on 32-bit Windows XP.
2017-06-04 00:11:35 -05:00
Doug Coleman
b3ba829601
cuda.devices: Utility word to print all cuda devices.
2017-06-03 20:59:51 -05:00
Doug Coleman
acffb259f7
kernel: Fix the docs for curry/compose a bit.
2017-06-03 02:10:06 -05:00
Doug Coleman
72eaa9d466
compiler.tree.propagation.call-effect: I deleted an important method on compose on accident.
2017-06-02 23:31:35 -05:00