critcl(3tcl)
π critcl β Introduction To CriTcl π
okay bestie, welcome to the C Runtime In Tcl β short and sweet: CriTcl π β a whole system for embedding and using C code from inside your Tcl scripts. Yes. From Tcl. Like, your Tcl script can justβ¦ have C in it. Iconic behaviour, honestly. This is critcl(3tcl), the intro page, and I'm gonna walk you through it like we're texting at 1am. π¦
β¨ DESCRIPTION β¨
Be welcome to the C Runtime In Tcl (short: CriTcl), a system for embedding and using C code from within Tcl scripts.
Adding C code to Tcl/Tk has never been easier. fr fr.
- Improve performance by rewriting the performance bottlenecks in C. π
- Import the functionality of shared libraries into Tcl scripts. π₯
the Tcl and Tk homes live athttp://core.tcl-lang.org/tclandhttp://core.tcl-lang.org/tkβ those are the links the original page points you to, no cap.
πΈ HISTORY & MOTIVATION πΈ
CriTcl started life as an experiment by Jean-Claude Wippler and was a self-contained Tcl package to build C code into a Tcl/Tk extension on the fly. It was somewhat inspired by Brian Ingerson's Inline for Perl, but is considerably more lightweight. π«
It's for the last 5% to 10% when pure Tcl, which does go a long way, is not sufficient anymore. I.e. for:
- when the last bits of performance are needed,
- access to 3rd party libraries,
- hiding critical pieces of your library or application, and
- simply needing features provided only by C.
π§ OVERVIEW π§
To make the reader's topics of interest easy to find, this documentation is roughly organized by Quadrants (the Divio thing, at https://documentation.divio.com/), i.e.
| Study | Work
----------- + --------------- + -----------------
Practical | Tutorials | How-To Guides
| (Learning) | (Problem solving)
----------- + --------------- + -----------------
Theoretical | Explanations | References
| (Understanding) | (Knowledge)
Note: At this point in time the documentation consists mainly of references, and a few how-to guides. Tutorials and Explanations are in need of expansion, this is planned. π«Ά
π KNOWN USERS π
- AnKH β
https://core.tcl-lang.org/akupries/ankh - TclYAML β
https://core.tcl.tk/akupries/tclyaml - Linenoise β
https://github.com/andreas-kupries/tcl-linenoise - KineTcl β
https://core.tcl.tk/akupries/kinetcl - Inotify β
https://chiselapp.com/user/andreas_kupries/repository/inotify - TclMarpa β
https://core.tcl.tk/akupries/marpa - CRIMP β
https://core.tcl.tk/akupries/crimp
likeβ¦ the whole friend group showed up. π
π TUTORIALS - PRACTICAL STUDY - TO LEARN π
This section is currently empty. π (it's giving "we'll get to it")
π¦ EXPLANATIONS - THEORETICAL KNOWLEDGE - TO UNDERSTAND π¦
This section is currently empty. π (same energy)
π HOW-TO GUIDES - PRACTICAL WORK - TO SOLVE PROBLEMS π
- How To Get The CriTcl Sources.
- How To Install CriTcl.
- How To Use CriTcl - A light introduction through examples.
- NEW: How To Adapt Critcl Packages for Tcl 9.
β REFERENCES - THEORETICAL WORK - TO GAIN KNOWLEGDE β
- The CriTcl License
- CriTcl Releases & Changes
- CriTcl Application Reference
- CriTcl Package Reference
- CriTcl cproc Type Reference
- CriTcl - Utilities
- CriTcl - C-level Utilities
- CriTcl - C-level Callback Utilities
- CriTcl - Wrap Support - String/Integer mapping
- CriTcl - Wrap Support - Bitset en- and decoding
- CriTcl - Wrap Support - Enum en- and decoding
- CriTcl - Code Gen - Constant string pools
- CriTcl - Code Gen - Tcl Interp Associations
- CriTcl - Code Gen - C Classes
- CriTcl Application Package Reference
- Guide To The CriTcl Internals
π AUTHORS π
Jean Claude Wippler, Steve Landers, Andreas Kupries. the OGs. π
π BUGS, IDEAS, FEEDBACK π
This document, and the package it describes, will undoubtedly contain bugs and other problems. bestie, of course it will. Please report them at https://github.com/andreas-kupries/critcl/issues. Ideas for enhancements you may have for either package, application, and/or the documentation are also very welcome and should be reported at https://github.com/andreas-kupries/critcl/issues as well. π«Ά
π KEYWORDS π
C code, Embedded C Code, calling C code from Tcl, code generator, compile & run, compiler, dynamic code generation, dynamic compilation, generate package, linker, on demand compilation, on-the-fly compilation
π₯ CATEGORY π₯
Glueing/Embedded C code
β¨ COPYRIGHT β¨
Copyright (c) Jean-Claude Wippler Copyright (c) Steve Landers Copyright (c) 2011-2024 Andreas Kupries
and that's the whole page, bestie, we ate and left no crumbs π
β¨ β this one's from the CriTcl docs, section 3tcl, version 3.3.1, rendered as doc, and yeah the copyright runs all the way to 2024 so it's still very much alive and thriving π¦πΈπ
π¦ where this page comes from
- debian trixie: critcl 3.3.1+dfsg-1 Β· BSD
- ubuntu questing: critcl 3.3.1+dfsg-1
- ubuntu resolute: critcl 3.3.1+dfsg-1build1 Β· BSD
- ubuntu stonking: critcl 3.3.1+dfsg-1.1 Β· BSD
- Copyright (c) 2011-2024 Andreas Kupries
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms