Karuta
A compiler for a relational programming language for the BEAM written in OCaml
Install / Use
/learn @dont-rely-on-nulls/KarutaREADME
#+TITLE: Karuta 🎴
#+html: <a href="https://builtwithnix.org"><img alt="built with nix" src="https://builtwithnix.org/badge.svg" /></a><br>
#+html: <p align="center"><img src="images/logo.png" alt="The Karuta Logo" style="width: 30%;"></p>
-
About This is a semi-toy, general-purpose relational (aiming to be constraint-based) programming language. We are not held accountable for anything that might happen if you are crazy enough to use it.
-
Requirements
** [[https://minikanren.org/][Kanren]]
- [X] Parsing
- [X] Query Conjunction
- [X] Comments
- [X] BEAM runtime library (logic variables, backtracking)
- [X] Compilation
- [X] Integer Literals
- [X] List Literals
- [X] Implement toolchain (i.e. compile to BEAM assembly, call ~erlc~ on that)
- [X] Modules
- [ ] ML Functors
- [ ] Type checking
** [[https://github.com/dont-rely-on-nulls/sakura][Sakura]]
- [ ] AST nodes for Sakura interaction.
- [ ] Sakura directives.
- [ ] Runtime support for database interaction (sockets).
- [ ] Compiler can fold together multiple queries in a single predicate body.
- References
- [[https://www.erlang.org/doc/apps/erts/absform.html][BEAM Abstract Form]]
- [[https://webperso.info.ucl.ac.be/~pvr/VanRoyHaridi2003-book.pdf][Computer, Techniques, and Models of Computer Programming]]
- [[https://users.dimi.uniud.it/~marco.comini/Students/Documentation/wam-book.pdf][Warren's Abtract Machine]]
Related Skills
node-connect
354.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
112.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
354.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
354.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
