Finch/editors/vscode
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Claude 68a9493572
Vector types (SIMD): f32x8, i8x32, f64x4 and the rest; --cpu native
- fNxM / iNxM / uNxM up to 512 bits, as LLVM vectors (<8 x float>): LLVM picks SSE, AVX2,
  AVX-512 or NEON for them
- f32x8(x) in every lane, f32x8(a, ..., h), f32x8(list, i) loads, f32x8(i32x8 v) converts
- + - * / and the bit operators lane by lane, with a plain number on either side counting for every lane;
  v[i], v[i] = x, v.len, == / != (every lane), print and str
- methods: sum min max dot abs sqrt floor ceil round fma store; min/max/abs/clamp lane by lane
- wide vectors (and structs holding them) are loaded and stored with align 16, what malloc and the stack give
- --cpu <name> (and cpu = "..." in finch.toml): native, x86-64-v3, apple-m1, ...
- debug info shows vectors; the language server completes their methods; Kate and VS Code highlight them
- f32 x = -1.5 works: a minus in front of a float written in the code keeps it such a number

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Psc42moPLwP43Cmb9oZqSR
2026-11-01 13:50:35 +00:00
..
images VS Code extension (highlighting, snippets, language client, Run/Build); LF line endings; LNK1181 2026-10-08 22:01:13 +02:00
snippets Install, CI, seeds and docs for the compiler written in Finch 2026-10-25 21:53:50 +01:00
syntaxes Vector types (SIMD): f32x8, i8x32, f64x4 and the rest; --cpu native 2026-11-01 13:50:35 +00:00
test Vector types (SIMD): f32x8, i8x32, f64x4 and the rest; --cpu native 2026-11-01 13:50:35 +00:00
.gitignore VS Code extension (highlighting, snippets, language client, Run/Build); LF line endings; LNK1181 2026-10-08 22:01:13 +02:00
.vscodeignore VS Code extension (highlighting, snippets, language client, Run/Build); LF line endings; LNK1181 2026-10-08 22:01:13 +02:00
CHANGELOG.md Vector types (SIMD): f32x8, i8x32, f64x4 and the rest; --cpu native 2026-11-01 13:50:35 +00:00
extension.js VS Code extension (highlighting, snippets, language client, Run/Build); LF line endings; LNK1181 2026-10-08 22:01:13 +02:00
language-configuration.json VS Code extension (highlighting, snippets, language client, Run/Build); LF line endings; LNK1181 2026-10-08 22:01:13 +02:00
LICENSE VS Code extension (highlighting, snippets, language client, Run/Build); LF line endings; LNK1181 2026-10-08 22:01:13 +02:00
package-lock.json Vector types (SIMD): f32x8, i8x32, f64x4 and the rest; --cpu native 2026-11-01 13:50:35 +00:00
package.json Vector types (SIMD): f32x8, i8x32, f64x4 and the rest; --cpu native 2026-11-01 13:50:35 +00:00
README.md VS Code extension (highlighting, snippets, language client, Run/Build); LF line endings; LNK1181 2026-10-08 22:01:13 +02:00

Finch for Visual Studio Code

Support for the Finch programming language (.fch files):

  • Syntax highlighting, bracket matching, comments with Ctrl+/
  • Errors as you type: the real compiler checks the file (finch lsp)
  • Completion: variables, functions, structs, keywords, built-ins, struct fields and array/str methods after ., names from imported C headers
  • Hover shows types and signatures; Go to Definition (F12); Outline of functions and structs; parameter hints
  • Run button (▶ in the editor title, or Ctrl+F5) and Finch: Build This File; compile errors land in the Problems panel
  • Snippets: main, fn, fnr, struct, if, ife, for, foreach, while, input, …

Requirements

Finch 2.3 or newer. The extension runs finch from your PATH; if it lives somewhere else, set Finch: Path (finch.path) to the full path of finch / finch.exe.