The Farmer Was Replaced

Timon Herzog · Idle

The Farmer Was Replaced patch notes · Jan 22, 2025

Experiment

Import Cost Changes

What's new in Import Cost Changes: 5 changes to The Farmer Was Replaced, released Jan 22, 2025.

Economy · 4

  • Reading from a module, such as 'y = file.x', is now free if 'file' was assigned by an import statement.

    simulation ticks for module reading
  • Def and import statements within if, while, or for blocks no longer make created functions/modules free.

    simulation ticks for dynamic statement
  • The cost of 'from file import' has been reduced to 1 simulation tick. The cost of 'import file' remains free.

    simulation ticks for import
  • Writing to modules, such as 'file.x = y', now costs the same as reading from them.

    simulation ticks for module writing

Fix · 1

  • Importing into the local scope has been fixed.

    importing into local scope