plum

#treesitter#compiler#wasm

git clone https://git.pyrossh.dev/plum

A statically typed, imperative programming language inspired by rust, python


2874d0d — Peter John 2026-11-11T00:14:28+05:30
wasm-codegen test: a Rust-embedded program reads Array.at, the crashing form (item 2 follow-up)
compiler/wasm-codegen/tests/wasm_codegen/codegen_tests.rs CHANGED
@@ -1802,7 +1802,7 @@ import std/Array
1802
1802
  struct Keyed<T>(items: Slice<T>, key: fn(T) -> Int) =
1803
1803
 
1804
1804
  fun first(self) -> Int =
1805
- self.key(self.items.data.get(0))
1805
+ self.key(self.items.data.at(0))
1806
1806
 
1807
1807
  fun main() -> Int =
1808
1808
  k := Keyed<Int>(items: [5, 6].toSlice(), key: |n| n * 8)