A minimalist systems programming language with clean syntax and powerful abstractions.
Install the .g compiler and CLI tool globally via npm:
Verify the installation:
Create a file with .g
extension and run it with:
The official G Runner extension adds a Run
button and keyboard
shortcut to run .g files directly inside Visual Studio Code.
Ctrl + Alt + R
The std@1.0 library comes with essential modules:
Add a fire-glowing identity to your .g
files with the G Icons
extension.
Instantly recognizable in your sidebar — built to match the spirit of Project Grey.
Also available from the Visual Studio Marketplace.
No semicolons, no bloat. Just pure logic in readable lines.
Create, run, and chain scripts easily with the g
CLI.
Modular standard library with file I/O, math, strings, and HTTP support.
Use try/catch for runtime errors. Debug smarter, not harder.
Work with structured data like arrays and objects easily.
Install once. Run anywhere. Powered by Node.js and JavaScript.
Small projects and tools built with .g language
// Organize files by extension import fs from std@1.0 import path from std@1.0 for file in fs.readDir(".") { if path.isFile(file) { ext = path.extname(file) fs.mkdir(ext) unless fs.exists(ext) fs.move(file, path.join(ext, file)) } }
// Simple HTTP server import net from std@1.0 server = net.createServer(req, res) { res.writeHead(200) res.end("Hello from .g!") } server.listen(8080)
// Command-line calculator import math from std@1.0 import io from std@1.0 args = cli.args if args.length != 3 { say "Usage: calc num op num" cli.exit(1) } a = args[0].toNumber() op = args[1] b = args[2].toNumber() result = match op { "+" => a + b "-" => a - b // ... other ops } say result