kharp – k version 3 Language Interpreter in C#

TLDR

  • Full K3 interpreter in C# (.NET), MIT+Commons Clause, 1549/1549 tests passing, with .NET FFI for interop.

Key Takeaways

  • Implements the complete K Reference Manual: native verbs, adverbs, amend, index, apply, assign, conditionals, I/O, and system functions.
  • .NET FFI lets ksharp instantiate and invoke Microsoft .NET objects directly, replacing the dropped K UI goal with WinForms/Unity paths.
  • Parser is Tokenize-Parse-AST-Evaluate with no stack or FSM; complex one-liners have known parse failure risk until 1.0.
  • Commons Clause on top of MIT blocks reselling the software or products whose value derives substantially from it.
  • Built in under 6 months with AI-assisted development; author flags accumulated technical debt and an incomplete legacy-parser removal.

Hacker News Comment Review

  • No substantive HN discussion yet.

Original | Discuss on HN