frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Binfmtc – binfmt_misc C scripting interface

https://www.netfort.gr.jp/~dancer/software/binfmtc.html.en
33•todsacerdoti•3h ago

Comments

zx2c4•2h ago
Similar project of mine from a long while ago: https://git.zx2c4.com/cscript/about/
Surac•2h ago
So lovely
elitepleb•2h ago
similar to http://www.iq0.com/duffgram/com.html
JSR_FDED•1h ago
C is still my first love. You can hold the whole language in your head, and it’s fast. Yes there are footguns but it’s a libertarian programming language - you’re responsible for what you build. No hand holding.
radiospiel•1h ago
Amazing; when I tried something similar I used a "#!" line pointing to a C compiler + runner of sorts (https://github.com/radiospiel/jit). https://git.zx2c4.com/cscript/about/ is also following that approach.

What is the benefit of registering an extension via binfmt_misc?

lmz•52m ago
It's still valid C source code? Is the #! sequence valid C?
enriquto•39m ago
was surprised that "sudo apt install binfmtc" works out of the box on my box (linux mint) and i can do the magic just as described here
rwmj•34m ago
You can already do this without using binfmt ...

  #if 0
  gcc "$0" -o "$@".out && exec ./"$@".out
  #endif
  #include <stdio.h>
  int main () { printf ("hello, world\n"); return 0; }
Usage:

  $ chmod +x print.c
  $ ./print.c
  hello, world
(Could be better to use a temporary file though.)

There's a similar cute trick for compiled OCaml scripts that we use with nbdkit: https://libguestfs.org/nbdkit-cc-plugin.3.html#Using-this-pl...

monocasa•6m ago
There's also tcc, which has a shebang compatible extension to allow it to be used by scripts.

Supercharging AI with Quantum Computing: Quantum-Enhanced Large Language Models

https://ionq.com/blog/supercharging-ai-with-quantum-computing-quantum-enhanced-large-language
1•donutloop•34s ago•0 comments

Struggle for Monarchy on the U.S.-Mexican Border

http://madmonarchist.blogspot.com/2013/02/struggle-for-monarchy-on-us-mexican.html
1•palmfacehn•2m ago•0 comments

In an agentic world context is king, but humans suck at it

https://algarch.com/blog/context-gatherers-the-200k-ai-job-you-already-suck-at-and-dont-even-know-it
1•jdalton•3m ago•1 comments

The National Guard in Los Angeles

https://www.lawfaremedia.org/article/the-national-guard-in-los-angeles
2•cmurf•3m ago•0 comments

PHP Is 30

https://kieranpotts.com/php-is-30
1•taubek•4m ago•0 comments

Show HN: Let's Bend – Open-Source Harmonica Bending Trainer(no ads, no tracking)

https://letsbend.de
1•egdels•5m ago•0 comments

An AI Tooling Guide for People Who Actually Build Things

https://ai.intellectronica.net/ai-tooling-guide
1•intellectronica•7m ago•0 comments

XLibre Xserver: Banned by Red Hat Developer Plans Revival of X11

https://linuxiac.com/xlibre-xserver-project-plans-revival-of-x11/
1•em-bee•9m ago•0 comments

PieFed federates "flair" on posts and comments

https://join.piefed.social/2025/05/10/how-piefed-federates-flair-on-posts-and-comments/
2•Bogdanp•9m ago•0 comments

The Core of Fermat's Last Theorem Just Got Superpowered

https://www.quantamagazine.org/the-core-of-fermats-last-theorem-just-got-superpowered-20250602/
1•saikatsg•12m ago•0 comments

Still Connecting: New Steve Jobs Tales Keep Surfacing

https://thenewstack.io/still-connecting-new-steve-jobs-tales-keep-surfacing/
1•chhum•12m ago•0 comments

The Collection of OpeExpanding participation in post-publication peer review

https://zenodo.org/records/15588204
1•EvgeniyZh•12m ago•0 comments

Futa – A functionally useless AI terminal assistant

https://github.com/nail-e/futa
2•nail_•13m ago•0 comments

Nginx Restic Back End

https://www.grepular.com/Nginx_Restic_Backend
2•mike-cardwell•15m ago•0 comments

The "LLM World of Words" English free association norms generated by LLMs

https://www.nature.com/articles/s41597-025-05156-9
1•Anon84•15m ago•0 comments

Generatingfunctionology (1989) [pdf]

https://www2.math.upenn.edu/~wilf/gfology2.pdf
1•perihelions•15m ago•0 comments

The Holy Grail of Computer Science [video]

https://www.youtube.com/watch?v=rz1INSahE68
3•ibobev•19m ago•0 comments

Air-dried vs. Kiln-dried Wood

https://christopherschwarz.substack.com/p/air-dried-vs-kiln-dried-wood
1•crescit_eundo•19m ago•0 comments

So, you screwed up your EAA compliance. What now?

https://yatil.net/blog/so-you-screwed-up-your-eaa-compliance-what-now
1•robin_reala•21m ago•0 comments

Archaeologists Find Tools Contradicting the Timeline of Civilization

https://www.popularmechanics.com/science/archaeology/a64969231/ancient-boats-found-southeast-asia/
1•Anon84•21m ago•0 comments

A Simple Rule for Using AI in Art

https://countercraft.substack.com/p/a-simple-rule-for-using-ai-in-art
1•crescit_eundo•21m ago•1 comments

Falsehoods programmers believe about [video]

https://haasn.dev/posts/2016-12-25-falsehoods-programmers-believe-about-%5Bvideo-stuff%5D.html
1•kierank•21m ago•0 comments

The Anatomy of a Great Painting

https://worldhistory.substack.com/p/the-anatomy-of-a-great-painting
1•crescit_eundo•22m ago•0 comments

Is it better to neglect your garden?

https://www.bbc.com/future/article/20250606-is-it-better-to-neglect-your-garden
1•andsoitis•23m ago•0 comments

It's Never Been Harder to Make It in Venture Capital

https://www.bloomberg.com/news/articles/2025-05-22/new-venture-capital-firms-are-facing-a-disastrous-fundraising-climate
1•koolhead17•24m ago•0 comments

Years of Evidence

https://world.hey.com/jason/years-of-evidence-9f0504db
1•kiyanwang•24m ago•0 comments

NASA Pulls the Plug on Europa Lander, but Scientists Propose a Plan B

https://gizmodo.com/nasa-pulls-the-plug-on-europa-lander-but-scientists-propose-a-plan-b-2000611741
3•rntn•24m ago•0 comments

Beware of Names

https://www.selfref.com/beware-names
1•danscan•25m ago•0 comments

The Intense World Theory: A Unifying Theory of the Neurobiology of Autism (2010)

https://pmc.ncbi.nlm.nih.gov/articles/PMC3010743/
1•CharlesW•26m ago•0 comments

Linux Format's last issue after 25 years

https://linuxformat.com/
3•janandonly•29m ago•0 comments