Skip to content

v3.1.0

Latest

Choose a tag to compare

@jecisc jecisc released this 16 Nov 18:18
01103d8

Hermes v3.1.0

Hermes now works in Pharo 10 to 15, and the CI tests every one of these versions.

New

  • Pharo 13, 14 and 15 support. On Pharo 14+, methods are installed with the method installer. On Pharo 12+, compiled code is created with #basicNew:header:.
  • Clean blocks: Hermes exports and installs them (HECleanBlock). The compiler has created them by default since Pharo 14.
  • The command line is split by Pharo version:
    • BasicHermesTool is in Hermes.
    • HermesClapCommand (loadHermes) is in Hermes-Clap, from Pharo 14.
    • HermesCommandLineHandler is in Hermes-CommandLineHandler, up to Pharo 13.
  • Changes ported from Pharo's copy of Hermes:
    • classes are initialized after a package is installed
    • new undeclared variables are detected with undeclaredRegistry
    • announcements are delayed with codeChangeAnnouncer
    • slotsFromString: and sharedPoolsFromString:
  • Documentation: a new README with a quick start, plus a user guide and an implementation overview.

Fixes

  • Installed methods no longer include the method trailer in their bytecode, so they can be decompiled.
  • Fixed the export of extension methods and trait compositions on Pharo 12.
  • Package tags are installed on Pharo 10 and 11.
  • loadHermes fails on an unknown duplication action instead of failing silently.
  • Hermes-Ring2 no longer replaces Ring-Core's RGEnvironment>>packages.

Dependencies and internals

  • New dependency: PharoBackwardCompatibility v1.x.x. It provides the API that older Pharo versions are missing, which replaces the version checks in Hermes.
  • The sources use Tonel v3, and every class is in a package tag.
  • New tests cover tags, shared pools, layouts, protocols, extension methods and the installed bytecode.

The file format is unchanged: files exported by v3.0.x still load.

What's Changed

  • Migrate to tonel v3 by @jecisc in #27
  • Fix Hermes in P12 and add P13, 14, 15 compatibility by @jecisc in #28
  • Do not export the method trailer with the bytecodes, so the installed… by @jecisc in #29
  • Split the command line tools by Pharo version: BasicHermesTool in Her… by @jecisc in #30
  • Update the comments of HermesClapCommand and HEClassTrait, and fail l… by @jecisc in #31
  • Port the changes made in the copy of Hermes in Pharo: class initializ… by @jecisc in #32
  • Remove the override of RGEnvironment>>packages from Hermes-Ring2 by @jecisc in #33

Full Changelog: v3.0.1...v3.1.0