frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Critcl – C Runtime in Tcl

https://andreas-kupries.github.io/critcl/
30•ofalkaed•2d ago

Comments

forinti•2d ago
I suppose you would use this to do low level stuff because it's much harder to do in TCL, but it just doesn't feel right.

It makes more sense to me to embed Tk into a C program.

ofalkaed•2d ago
Depends on how much C you need, it might make more sense to write a proper Tcl extension and it might make sense to just embed Tcl/Tk but having this middle ground is nice because swinging to the fences is rarely the best course of action.

Critcl looks to be quite nice in those situations when Tcl/Tk is almost but not quite, you get the speed and ease of Tcl/Tk but a little more as well. The big gotcha looks to be having the foresight of identifying when writing a proper Tcl/Tk extension or switching language is the better plan, but this is almost always the big gotcha.

Joel_Mckay•1d ago
TCL is popular for automated scripting, and is still quite popular with "expect" and "autoexpect" package users. The key feature is opening a remote scripted or interactive ssh session, and running setup/install commands admins would otherwise have to type in thousands of times a month (or worse, leave sensitive information/CSR on short lived host nodes.)

Being able to compile ephemeral objects is actually pretty useful in some use-cases. =3

NelsonMinar•2d ago
Still in active development, or at least maintenance. https://github.com/andreas-kupries/critcl/commits/master/
ofalkaed•1d ago
I don't think it needs much development at this point, it is stable, all it needs to do is keep up with Tcl/Tk development. I just started playing with it two days ago so I might be missing some of its flaws but so far it seems quite mature.
bb01100100•1d ago
I was doing some looping recently with tcl and comparing against another implementation (called Jim [1], a very cool project in its own right) and wondered why datetime formatting was so slow when using `clock format`.

The code at [2] provided an alternative approach using C via critcl. It was interesting to see how malleable tcl can be.

[1] https://github.com/msteveb/jimtcl [2] https://wiki.tcl-lang.org/page/speed+up+clock+format+and+clo...

monetus•1d ago
I've been using critcl for a long time, and maybe weirdly still end up using it despite often using nim. Fantastic software.
ofalkaed•1d ago
Any chance you can elaborate on your use case? Part of why I submitted this is because I am not completely sure on when it is wise to use, I can see situations where it is clearly useful but things get fuzzy rather quickly.

Are you the monetus who used to post on the pd forums? If so, thanks, I have found some of my answers in threads which you contributed too and probably provided the solution too.

hoherd•1d ago
Not to be confused with the kubernetes container runtime interface CLI https://github.com/kubernetes-sigs/cri-tools/blob/master/doc...

How much is a pension worth?

https://venkii.substack.com/p/how-much-is-a-pension-worth
1•venkii•52s ago•0 comments

Denmark zoo asks for people to donate their pets to feed its predators

https://abcnews.go.com/International/denmark-zoo-asks-people-donate-pets-feed-predators/story?id=124367988
2•noleary•1m ago•0 comments

A New Theme for Emacs

https://github.com/mastro35/sixcolors-theme
1•mastro35•2m ago•1 comments

Ask HN: How Fit3d Works?

1•johngoodworks•4m ago•0 comments

Show HN: A new way to read company 10-Ks

https://www.proread.ai/company10ks
1•kanodiaashu•5m ago•0 comments

Generalization Gap in over‑Parameterized Models

https://www.gojiberries.io/generalization-gap-in-over-parameterized-models/
1•neehao•5m ago•0 comments

GPT-OSS Playground

https://gpt-oss.com/
1•twapi•6m ago•0 comments

Be Careful with Go Struct Embedding

https://mattjhall.co.uk/posts/be-careful-with-go-struct-embedding.html
1•ingve•9m ago•0 comments

Age Assurance on X

https://help.x.com/en/rules-and-policies/age-assurance
2•akyuu•13m ago•0 comments

SoftBrowse – Hide Reels, Explore, and Feed on Instagram (But Keep DMs)

2•softbrowse•13m ago•0 comments

The mystery of Alice in Wonderland syndrome

https://www.bbc.com/future/article/20230313-the-mystery-of-alice-in-wonderland-syndrome
1•amichail•14m ago•0 comments

OpenAI's new open weight (Apache 2) models are good

https://simonwillison.net/2025/Aug/5/gpt-oss/
3•JohnHammersley•15m ago•0 comments

The modern USD account built for global businesses

https://www.slash.com/products/global-usd
1•lhuser123•16m ago•1 comments

China Is Choking Supply of Critical Minerals to Western Defense Companies

https://www.wsj.com/world/asia/china-western-defense-industry-critical-minerals-3971ec51
5•yyyk•16m ago•1 comments

A Turning Point in Colon Cancer: Young People Are Finding It Earlier

https://www.wsj.com/health/healthcare/colon-cancer-screening-young-adults-5900a8a6
1•bookofjoe•19m ago•1 comments

Why Should We Worry About Declining Birth Rates?

https://jacobin.com/2025/07/demography-fertility-population-crisis-longtermism/
3•PaulHoule•24m ago•1 comments

A first look at GPT-OSS-120B's coding ability

https://blog.brokk.ai/a-first-look-at-gpt-oss-120bs-coding-ability/
3•jbellis•24m ago•0 comments

Embracing the Model Context Protocol in practice: An engineering deep-dive

https://xpander.ai/2025/03/31/how-xpander-ai-embraces-the-model-context-protocol-in-practice-an-engineering-deep-dive/
1•mooreds•29m ago•0 comments

AGI Blueprint - 424 pages– Visual Thought AGI Link

https://zenodo.org/records/15867575
3•derekv123•29m ago•1 comments

Canadian Court Rejects Reverse Class Action Lawsuit Against BitTorrent Pirates

https://torrentfreak.com/canadian-court-rejects-reverse-class-action-lawsuit-against-bittorrent-pirates/
4•gslin•30m ago•2 comments

uBlock Origin still works in Chrome 139

2•AuthorizedCust•31m ago•0 comments

ZK Proofs Are Getting Easier but the Airdrop Game Remains Tricky

1•Earlycrow•33m ago•0 comments

User Interfaces in Agentic CLI Tools: What Developers Need

https://thenewstack.io/user-interfaces-in-agentic-cli-tools-what-developers-need/
1•willm•33m ago•0 comments

Writing culture

https://splits.org/blog/writing-culture/
2•exolymph•34m ago•0 comments

Hammer Time: Scientists Have Figured Out Why Hammerheads Love Eating Other Shark

https://www.mentalfloss.com/animals/fish/why-hammerheads-love-eating-sharks
1•imzadi•35m ago•0 comments

What's the "Points" of Agile, Anyway?

https://spin.atomicobject.com/points-in-agile/
2•philk10•36m ago•0 comments

The New York Post Is Expanding to LA, Launching the California Post Next Year

https://nypost.com/2025/08/04/media/start-the-presses-new-york-post-will-expand-to-la-with-launch-of-the-california-post/
5•Bogdanp•37m ago•0 comments

Writing code was never the bottleneck

https://leaddev.com/velocity/writing-code-was-never-the-bottleneck
1•jrs235•37m ago•1 comments

Show HN: I made a playground and editor for generative AI models

https://mitte.ai
1•akoculu•38m ago•0 comments

KDE Plasma 6.5 gets a feature people have wanted for a long time

https://www.neowin.net/news/kde-plasma-65-finally-gets-a-feature-people-have-wanted-for-a-long-time/
2•bundie•40m ago•0 comments