Skip to content

Ernest 0.2.0

Choose a tag to compare

@joagre joagre released this 01 Oct 16:47
· 1865 commits to main since this release

Ernest 0.2.0 is the second release of Ernest: the report and the guide weighed against the five
principles of §0, and §0 against what it had decided. Its changes are sentences, not features:
§0 gained a paragraph on the host and one sentence for each principle, and ten sections one
sentence each, under which a family of exceptions became instances of a rule. Programs written
for 0.1.0 change in the places below; each is in the report of this release.

What changed for a program:

  • spawn(f) and spawnMonitored(f, wrap) take no placement; Local and Where are
    gone. A spawn on a peer is Peer.spawn(name, f), refused in this release.
  • via(addr, f) takes the address first.
  • A Down names its process: Down(process, reason, site).
  • Tests are Test.Case(name, run) with Test.Passed and Test.Failed(text), of the
    standard library's module Test (Appendix E.24); Test and TestResult left the prelude.
  • The built-in type Foreign is the library's foreign type Foreign.Term (E.12), with the
    runtime's exact equality; Foreign.toBytes reads any binary.
  • A constructor's named fields are stored, sent and shown in the order they are declared.
  • Io.debug writes to standard error; Io.show and Io.debug are resolved at a known type,
    a type error on a type variable, and write a foreign value as <foreign>.
  • A printed type marks a process-only effect variable m+, beside a= and a!.
  • Terminal's styled, cursor moves and erasures are the library Ansi (G.3);
    Terminal.size answers Either.
  • A reply may stand in a list, an Optional or an Either; §6.6 names no type.
  • A member is an operator, compare or negate alone; let declares no member.
  • Parentheses after |> change nothing; 1e10 is a float; a tuple has two or more
    components; a stray doc block is an error.
  • Tcp.write, Os.read and Os.write take milliseconds; Os.start takes none;
    Os.environment(name) asks by name; Os.give and Tcp.give pass a resource on; a
    listener has an owner.
  • Io.Error names its causes, NotAFile, Exists, NotUtf8, Invalid; Other holds the
    host's words.
  • Fs.makeFile, Fs.setMode and Fs.makeHardLink; Path.<> joins two paths and
    Path.join takes the segments; Path.name is None for the root;
    Path.withoutExtension; List.dropLast(xs, n); String.words; Float.pi;
    Io.writeError; Map.mergeWith's function takes the key; List.<> is Ernest.
  • Gone: Optional.orElse, Either.orElse, Char.isAsciiDigit, Fs.create,
    Fs.makePrivate.
  • The float + and - are no longer normalized for negative zero, which they cannot make.