Dyalog APL versions: Difference between revisions

Jump to navigation Jump to search
146 bytes added ,  11:38, 10 June 2020
(10.0 and 10.1)
(2 intermediate revisions by 2 users not shown)
Line 58: Line 58:
Support was added for 128-bit [[decimal floating point]] numbers (from [[wikipedia:IEEE 754|IEEE 754]]-2008), using the [[wikipedia:densely packed decimal|densely packed decimal]] (DPD) format internally. The [[system variable]] <source lang=apl inline>⎕FR</source> (Floating point Representation) was added, with the options 645 for 64-bit binary (5) floats and 1287 for 128-bit decimal (7) floats. Because of the increased precision of decfs, an additional system variable <source lang=apl inline>⎕DCT</source> was added to control [[comparison tolerance]] with decfs enabled, with the default value <source lang=apl inline>1E¯28</source>. When <source lang=apl inline>⎕FR</source> is 645, <source lang=apl inline>⎕CT</source> controls the comparison tolerance, but when it is 1287, <source lang=apl inline>⎕DCT</source> controls comparison tolerance. Support for interfacing with [[.NET]] decimal floats was also added. Because no complex decimal float type was added, version 13.1 broke Dyalog APL's strict numeric type hierarchy, introducing potential [[Array model#Numeric type coercion|changes in precision]] when placing values together in an array.
Support was added for 128-bit [[decimal floating point]] numbers (from [[wikipedia:IEEE 754|IEEE 754]]-2008), using the [[wikipedia:densely packed decimal|densely packed decimal]] (DPD) format internally. The [[system variable]] <source lang=apl inline>⎕FR</source> (Floating point Representation) was added, with the options 645 for 64-bit binary (5) floats and 1287 for 128-bit decimal (7) floats. Because of the increased precision of decfs, an additional system variable <source lang=apl inline>⎕DCT</source> was added to control [[comparison tolerance]] with decfs enabled, with the default value <source lang=apl inline>1E¯28</source>. When <source lang=apl inline>⎕FR</source> is 645, <source lang=apl inline>⎕CT</source> controls the comparison tolerance, but when it is 1287, <source lang=apl inline>⎕DCT</source> controls comparison tolerance. Support for interfacing with [[.NET]] decimal floats was also added. Because no complex decimal float type was added, version 13.1 broke Dyalog APL's strict numeric type hierarchy, introducing potential [[Array model#Numeric type coercion|changes in precision]] when placing values together in an array.


Identity functions <source lang=apl inline>⊣</source> ([[Same]], [[Left]]) and <source lang=apl inline>⊢</source> ([[Same]], [[Right]]) were introduced. Monadic <source lang=apl inline>+</source>, formerly called [[Identity]], was changed to [[Conjugate]] (a change which did not break backwards compatibility, because prior to the introduction of [[complex number]]s the two functions were indistinguishable). Dyadic functions [[Take]] (<source lang=apl inline>↑</source>), [[Drop]] (<source lang=apl inline>↓</source>), and [[Index function|Index]] (<source lang=apl inline>⌷</source>) were extended to allow short left arguments, matching [[SHARP APL]]'s interpretation of the [[leading axis theory]].
Identity functions <source lang=apl inline>⊣</source> ([[Same]], [[Left]]) and <source lang=apl inline>⊢</source> ([[Same]], [[Right]]) were introduced. Monadic <source lang=apl inline>+</source>, formerly called [[Identity]], was changed to [[Conjugate]] (a change which did not break backwards compatibility, because prior to the introduction of [[complex number]]s the two functions were indistinguishable). Dyadic functions [[Take]] (<source lang=apl inline>↑</source>), [[Drop]] (<source lang=apl inline>↓</source>), and [[Squad Indexing|Index]] (<source lang=apl inline>⌷</source>) were extended to allow short left arguments, matching [[SHARP APL]]'s interpretation of the [[leading axis theory]].


A [[primitive operator]] (<source lang=apl inline>⍠</source>) was introduced as an alternative spelling of the existing [[system operator]] [[Variant]] (<source lang=apl inline>⎕OPT</source>), with a functionality similar to one sketched by [[Ken Iverson]] (<source lang=apl inline>:</source>)<ref>[[Ken Iverson|Kenneth E. Iverson]], [https://www.jsoftware.com/papers/APLDictionary.htm A Dictionary of APL], VI. Conjunctions, [https://www.jsoftware.com/papers/APLDictionary1.htm#colon Custom]. APL Quote Quad, Volume 18, Number 1, 1987-09.</ref> and implemented in [[J]] (<source lang=j inline>!.</source>).
A [[primitive operator]] (<source lang=apl inline>⍠</source>) was introduced as an alternative spelling of the existing [[system operator]] [[Variant]] (<source lang=apl inline>⎕OPT</source>), with a functionality similar to one sketched by [[Ken Iverson]] (<source lang=apl inline>:</source>)<ref>[[Ken Iverson|Kenneth E. Iverson]], [https://www.jsoftware.com/papers/APLDictionary.htm A Dictionary of APL], VI. Conjunctions, [https://www.jsoftware.com/papers/APLDictionary1.htm#colon Custom]. APL Quote Quad, Volume 18, Number 1, 1987-09.</ref> and implemented in [[J]] (<source lang=j inline>!.</source>).
Line 183: Line 183:


== 18.0 ==
== 18.0 ==
[https://www.dyalog.com/dyalog/dyalog-versions/180.htm Release announcement], [https://help.dyalog.com/18.0/#RelNotes18.0/Key%20Features.htm notes]


Version 18.0 is currently planned for release in 2020. It was developed in parallel with version 17.1, which had very few new features, and includes several new primitives and extensions to existing primitives.
Version 18.0 was released in June 2020. It was developed in parallel with version 17.1, which had very few new features, and includes several new primitives and extensions to existing primitives.


The following new primitive functions and operators are added:
The following new primitive functions and operators are added:
Line 196: Line 197:
Version 18.0 allows enabling multi-line input in the [[session]] using the [[line editor]], and allows [[control structure]]s to be used in the session. Multi-line input is begun when a [[dfn]], [[namespace]], [[class]], or control structure is begun but not finished on the same line. It also allows syntax colouring and editing multi-line blocks in the session.
Version 18.0 allows enabling multi-line input in the [[session]] using the [[line editor]], and allows [[control structure]]s to be used in the session. Multi-line input is begun when a [[dfn]], [[namespace]], [[class]], or control structure is begun but not finished on the same line. It also allows syntax colouring and editing multi-line blocks in the session.


New [[system function]]s for case folding and mapping (<source lang=apl inline>⎕C</source>) and date-time conversion are added.
New and extended [[system function]]s for case folding and mapping (<source lang=apl inline>⎕C</source>) and date-time conversion are added.


Initial support for [[wikipedia:.NET Core|.NET Core]], Microsoft's cross-platform successor to the original [[.NET]] framework, has been added.
Initial support for [[wikipedia:.NET Core|.NET Core]], Microsoft's cross-platform successor to the original [[.NET]] framework, has been added.

Navigation menu