Download Petroleum

Latest version: 0.6.5

Currently available for Windows. Download the compiler and start building!

Requirements

Before installing Petroleum, you'll need Go installed on your system. Petroleum compiles your code to Go, then uses the Go compiler to create native executables.

Download Go (go.dev)

Note: Go 1.20 or later is recommended. After installing, make sure it's in your PATH. Verify by running go version in your terminal.

Windows

Installer for Windows 10/11 (x64)

Detected
SHA256:
D0FA22B8F6F91B15D075977A255E202A80641570F2F7E9AC97B6F128A5AAE24F

macOS

Universal installer for Apple Silicon and Intel

Coming Soon
Coming Soon

macOS support is planned for a future release.

Linux

Binary tarball (x86_64)

Coming Soon
Coming Soon

Linux support is planned for a future release.

Editor Extension

Get syntax highlighting, code snippets, and language support for Petroleum in your favorite editor.

VS Code / VSCodium Extension

Syntax highlighting, snippets, and auto-indentation for .pet files

Recommended

Works with: Visual Studio Code, VSCodium, Cursor, Windsurf, and other VS Code-based editors

How to Install
  1. Download the .vsix file above
  2. Open VS Code
  3. Press Ctrl+Shift+P (or Cmd+Shift+P on Mac)
  4. Type "Install from VSIX" and select it
  5. Browse to the downloaded .vsix file and select it
  6. Reload VS Code when prompted

After installation, any .pet file will automatically have syntax highlighting, code snippets, and smart indentation.

Happy Coding!

I hope you find Petroleum useful, and I hope you find it fun to use. If you have any questions, comments, or suggestions, please email me at jer@petroleum.codes.