chore: rebrand Clojure/Nim → Bara Lang across codebase

- Bulk replace Clojure/Nim → Bara Lang in src/, lib/, examples/, benchmarks/,
  experiments/, books/, LICENSE, cljnim.nimble, PLAN.md, AI_AGENT.md
- Rename book chapters: 05-clojure-nim.md → 05-bara-lang.md (en + bg)
- Update all chapter index links and anchors
- Replace project-specific 'Clojure' references with 'Bara Lang' in
  experiments/, src/ai_assist.nim, src/tui_screens.nim, src/emitter.nim,
  src/reader.nim, src/types.nim, lib/cljnim_runtime*.nim
- Keep legitimate JVM Clojure/ClojureScript/Clojure CLR references intact
This commit is contained in:
2026-05-11 12:23:29 +03:00
parent 606605c95c
commit 79cd9c08d8
41 changed files with 128 additions and 128 deletions
+4 -4
View File
@@ -1,12 +1,12 @@
# Clojure/Nim → Native Shared Library
# Bara Lang → Native Shared Library
Compile Clojure code to a C shared library (`.so` / `.dll` / `.dylib`).
Compile Bara Lang code to a C shared library (`.so` / `.dll` / `.dylib`).
## Why?
- **Embed Clojure in Python/Rust/Go/C** via FFI
- **Embed Bara Lang in Python/Rust/Go/C** via FFI
- **Tiny binaries** — no JVM overhead
- **True C ABI** — call Clojure functions from any language
- **True C ABI** — call Bara Lang functions from any language
## Quick Start
+1 -1
View File
@@ -1,4 +1,4 @@
# Generated by Clojure/Nim
# Generated by Bara Lang
import cljnim_runtime
proc square*(x: CljVal): CljVal =
+2 -2
View File
@@ -1,9 +1,9 @@
# C-friendly wrappers around Clojure-generated code
# C-friendly wrappers around Bara Lang-generated code
# Exports plain C types (int, char*) instead of CljVal
import cljnim_runtime
# Import the generated Clojure functions
# Import the generated Bara Lang functions
include build/math
proc c_square*(x: cint): cint {.exportc, dynlib.} =
+2 -2
View File
@@ -12,13 +12,13 @@ extern void NimMain(void);
int main(void) {
NimMain();
printf("=== Clojure/Nim Native Library Test ===\n\n");
printf("=== Bara Lang Native Library Test ===\n\n");
printf("c_square(7) = %d\n", c_square(7));
printf("c_add(10, 20) = %d\n", c_add(10, 20));
printf("c_factorial(5) = %d\n", c_factorial(5));
printf("c_greet(\"World\") = %s\n", c_greet("World"));
printf("\nAll tests passed! Clojure in a .so file.\n");
printf("\nAll tests passed! Bara Lang in a .so file.\n");
return 0;
}