3.4 KiB
This CHANGELOG describes the merged but unreleased changes. Please see CHANGELOG for changes to all previously released versions of Idris2. All new PRs should target this file (CHANGELOG_NEXT
).
Changelog
[Next version]
Building/Packaging changes
-
The Nix flake's
buildIdris
function now returns a set withexecutable
andlibrary
attributes. These supersede the now-deprecatedbuild
andinstallLibrary
attributes.executable
is the same asbuild
andlibrary
is a function that takes an argument determining whether the library should be installed with sourcecode files or not; other than that,library
functionally replacesinstallLibrary
. -
The Nix flake's
buildIdris
executable
property (previouslybuild
) has been fixed in a few ways. It used to output a non-executable file for NodeJS builds (now the file has the executable bit set). It used to output the default Idris2 wrapper for Scheme builds which relies on utilities not guaranteed at runtime by the Nix derivation; now it rewraps the output to only depend on the directory containing Idris2's runtime support library. -
The Nix flake now exposes the Idris2 API package as
idris2Api
and Idris2's C support library assupport
.
Language changes
- Autobind and Typebind modifier on operators allow the user to customise the syntax of operator to look more like a binder. See #3113.
Backend changes
RefC
- Compiler can emit precise reference counting instructions where a reference is dropped as soon as possible. This allows you to reuse unique variables and optimize memory consumption.
Compiler changes
RefC Backend
-
Fix invalid memory read onf strSubStr.
-
Fix memory leaks of IORef. Now that IORef holds values by itself, global_IORef_Storage is no longer needed.
-
Pattern matching generates simpler code. This reduces malloc/free and memory consumption. It also makes debugging easier.
-
Stopped useless string copying in the constructor to save memory. Also, name generation was stopped for constructors that have tags.
-
Special constructors such as Nil and Nothing were eliminated and assigned to NULL.
NodeJS Backend
- The NodeJS executable output to
build/exec/
now has its executable bit set. That file already had a NodeJS shebang at the top, so now it is fully ready to go after compilation.
Library changes
Prelude
Base
-
Data.List.Lazy
was moved fromcontrib
tobase
. -
Added an
Interpolation
implementation for primitive decimal numeric types andNat
. -
Added append
(++)
forList
version ofAll
. -
Deprecate
bufferData
in favor ofbufferData'
. These functions are the same with the exception of the latter dealing inBits8
which is more correct thanInt
. -
Added an alternative
TTImp
traversal functionmapATTImp'
taking the originalTTImp
at the input along with already traversed one. ExistingmapATTImp
is implemented through the newly added one. The similar alternative formapMTTImp
is added too.
Contrib
-
Data.List.Lazy
was moved fromcontrib
tobase
. -
Existing
System.Console.GetOpt
was extended to support errors during options parsing in a backward-compatible way.
Network
- Add a missing function parameter (the flag) in the C implementation of idrnet_recv_bytes