summaryrefslogtreecommitdiff
path: root/lib/stdlib/scripts
Commit message (Collapse)AuthorAgeFilesLines
* otp: Make update_deprecation fail when removing an future versionLukas Larsson2022-06-081-0/+21
| | | | | | This can happen if a function is marked as removed in a module while the metadata in DEPRECATIONS lists a future release as the "remove" release.
* Update copyright yearErlang/OTP2022-02-151-1/+1
|
* update_deprecations: The script silently discarded errors in file:writeHans Nilsson2022-01-191-3/+1
|
* update_deprecations: The script didn't handle '-deprecated([f/1])'Hans Nilsson2022-01-191-1/+1
| | | | | | | which caused the atom 'undefined' to be the Text in update_deprecations:make_xml_info/2. According to /home/uabhnil/Projects/OTP/otp1/HOWTO/DEPRECATE.md that 'undefined' should be changed to "see the documentation for details." by that script. The internal wiki page has the same opinion as the script.
* Merge branch 'maint'Rickard Green2021-12-131-1/+1
|\ | | | | | | | | * maint: Update copyright year
| * Update copyright yearRickard Green2021-12-132-2/+2
| |
* | add option short to float_to_*/2 bifsThomas Depierre2021-07-151-108/+0
|/ | | | | | | | | | | | | | This bring the Ryu algorithm, vendored in /erts/emulator/ryu from https://github.com/ulfjack/ryu. We use this algorithm to add a new formatting option to float_to_list/2 and float_to_binary/2. This new formatting option implement an exact shortest round-trip format, giving us the shortest format possible with no loss of precision. It also is faster than any other formatting option available in OTP and less memory intensive. io_lib_format:fwrite_g/1 is changed to use this BIF, which should be a transaparent change.
* Merge remote-tracking branch 'dina/ryu_fwrite_g_1'Kjell Winblad2021-02-191-0/+108
|\ | | | | | | | | | | | | Ticket: OTP-17210 * dina/ryu_fwrite_g_1: Change io_lib_format:fwrite_g/1 to use Ryu
| * Change io_lib_format:fwrite_g/1 to use RyuThomas Depierre2021-02-131-0/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | io_lib_format_fwrite_g/1 now use the Ryu algorithm, see (https://dl.acm.org/doi/pdf/10.1145/3192366.3192369). We get an approximately 3x speedup over the whole doubles, with a more stable performance profile. The Dragon4 implementation used before had a performance profile linear with the size of the double to print. We also see a 10% reduction in memory use with Ryu over the old algorithm. It is worth noting that this implementation is slightly slower (10% to 30%) for "small" doubles in some cases. This commit does not try to optimise this case yet. The Ryu algorithm depends on a lookup table that is generated upfront. This commit add a script to generate it (mostly in case a bug is found in it or we decide to change the size of the lookup table) and the output of said script in io_lib_format_ryu_table.erl. This is done because the table do not change from a build to another and should not be regenerated outside of a bug or a fundamental change in the algorithm. The Ryu algorithm has a know worst case scenario for doubles that can be represented as "small" integer. This commit introduce a optimised handling for this case.
* | otp: Require complete build when updating deprecationsJohn Högberg2021-02-011-3/+21
| |
* | otp: Document previously removed functionsJohn Högberg2021-01-181-42/+57
|/ | | | | | This commit adds a page for Removed Functionality in the user's guide, listing the functions we've removed recently and still warn about.
* system: Move deprecation to XMLGEN stage of makefileLukas Larsson2020-03-271-8/+6
|
* Use RelMarker variableBjörn Gustavsson2020-03-261-1/+2
| | | | | While at it, turn on warnings as errors to avoid this kind of mistake in the future.
* Consistently name anchors in deprecation documentationBjörn Gustavsson2020-03-231-0/+1
| | | | | Don't mix upper and lower case. Also don't reference non-existing sections in the scheduled-for-removal page.
* Include removal information in the deprecation messageBjörn Gustavsson2020-03-171-11/+47
|
* Add cross-checking of DEPRECATIONS and doc generationBjörn Gustavsson2020-03-111-40/+214
|
* otp/erl_lint: Generate deprecation and removal warnings from sourceJohn Högberg2020-02-121-0/+149