Skip to content
Languages / PowerShell

PowerShell

How Atracode compiles PowerShell, what it is verified against, and what it refuses.

Style
Dynamic
Verified against
PowerShell 7
Published results
Per release, in the changelog

What is supported

Pipelines, cmdlets, hashtables and script blocks, with file and process effects on an explicit membrane. Anything that reads the clock or the environment is refused.

Lowered via bounded adaptation into exact type-specialized dispatch.

How it is verified

Every PowerShell program is compiled twice, once by Atracode and once by PowerShell 7. Both builds run over the same large set of inputs and must agree bit for bit in output and memory before the compile succeeds. See verification for how the sweep works.

$ atracode compile model.src
verified  raven:3f1c…  (illustrative)

What gets refused

Dynamic code is specialised into exact, typed operations. Anything that depends on the outside world at run time, such as reading the clock, the network, environment variables or unseeded randomness, or evaluating code built from strings, is refused at its exact line and column. Pass those values in as inputs and compile again. Refusals lists the common causes and fixes.

  • GroovyVerified against Groovy
  • Objective-CVerified against Reference engine
  • SmalltalkVerified against Reference engine
  • PythonVerified against CPython
  • RubyVerified against Ruby interpreter
  • PerlVerified against Perl interpreter
esc

Type to search titles, headings and text.