Files
dimgigov 79cd9c08d8 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
2026-05-11 12:23:29 +03:00

10 lines
467 B
Clojure
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
; C FFI — Достъп до C функции директно от Bara Lang
; (c-fn sin "math.h" :double [:double])
; Това генерира Nim proc с {.importc.} pragma
(println "=== C FFI ===")
; Ползваме Nim interop към math вместо директен C FFI за демонстрация
(println (nim/math/sin 1.5708)) ; sin(pi/2) ≈ 1.0
(println (nim/math/cos 0.0)) ; cos(0) = 1.0
(println (nim/math/sqrt 144.0)) ; sqrt(144) = 12.0