github EL4CTEO/fast-anything v1.5.0

one hour ago

PowerShell, and a roadmap for the languages people asked for (#193).

  • PowerShell: fast-anything scan -- pwsh app.ps1 (PowerShell 7+ on Windows, Linux and macOS) or powershell -File app.ps1 (Windows PowerShell 5.1). Functions in scripts, dot-sourced files and modules are ranked, recorded, verified and switched like any other language, entry-script functions included. The demo runs 14× faster end to end (examples/fuzzy-dedupe-ps).
    • Read with PowerShell's own parser: scan says when a function does I/O, isn't deterministic, uses or writes outer variables, takes pipeline input or runs a program.
    • A port gives its caller what the pipeline would: nothing, one value or an array (ps::Output in the crate).
    • scan --duration works for scripts that run until closed.
  • fast-anything languages (and --json): the languages it speaks, which runtimes are installed here, and the roadmap.
  • docs/LANGUAGES.md: where every requested language stands and why, and how a backend is added.
  • doctor checks for PowerShell.
  • R: #189 (warning when an enabled module is sourced from Rscript -e) is fixed since 1.0.0.

Thanks @KiaroSama and @coygeek.

Don't miss a new fast-anything release

NewReleases is sending notifications on new releases.