frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Recursive macros in C, demystified (once the ugly crying stops)

https://h4x0r.org/big-mac-ro-attack/
27•eatonphil•2h ago

Comments

hyperhello•6m ago
Can I use this technique to expand MACRO(a,b,c,…) into something like F(a,b,c…); G(a,b,c…)?
dandersch•4m ago
Related: The Preprocessor Iceberg https://jadlevesque.github.io/PPMP-Iceberg/

There you can find a recursive macro expansion implementation (as a gcc hack) that fits on a slide:

  #2""3
  
  #define PRAGMA(...) _Pragma(#__VA_ARGS__)
  #define REVIVE(m) PRAGMA(push_macro(#m))PRAGMA(pop_macro(#m))
  #define DEC(n,...) (__VA_ARGS__)
  #define FX(f,x) REVIVE(FX) f x
  #define HOW_MANY_ARGS(...) REVIVE(HOW_MANY_ARGS) \
      __VA_OPT__(+1 FX(HOW_MANY_ARGS, DEC(__VA_ARGS__)))
  
  int main () {
      printf("%i", HOW_MANY_ARGS(1,2,3,4,5)); // 5
  }
It sounds like the one in the article works for more compilers, but there doesn't seem to be a copy-pasteable example anywhere to check for myself. Also, the "Our GitHub Org" link on the site just links to github.com.

Economic Anger Once Again Punishes the Party in Power

https://www.wsj.com/politics/elections/economic-anger-once-again-punishes-the-party-in-power-71d1...
3•moosedman•13m ago•0 comments

Show HN: SSH terminal multiplayer written in Golang

https://github.com/MShel/sshOuroboros
1•mishk0sh•16m ago•0 comments

Myna: monospace typeface designed for symbol-rich programming

https://github.com/sayyadirfanali/Myna
1•vinhnx•17m ago•0 comments

Shango

https://en.wikipedia.org/wiki/Shango
1•brandonlc•19m ago•0 comments

Rust's TUI Revolution

https://ratatui.rs/showcase/apps/
2•AbuAssar•22m ago•0 comments

Brain-IT: Image Reconstruction from fMRI via Brain-Interaction Transformer

https://AmitZalcher.github.io/Brain-IT/
3•SerCe•27m ago•0 comments

FAA to cut flights by 10% at 40 major airports due to government shutdown

https://www.cnbc.com/2025/11/05/faa-cuts-flight-capacity-shutdown.html
27•mikhael•29m ago•7 comments

'Vibe coding' named word of the year by Collins Dictionary

https://www.bbc.com/news/articles/cpd2y053nleo
3•defrost•33m ago•0 comments

Australia Mandates Encryption Backdoors

https://www.wired.com/story/australia-encryption-law-global-impact/
3•simpleintheory•34m ago•0 comments

Longtime Mozilla Support Japanese Community Shuts Down over AI Translation Usage

https://support.mozilla.org/en-US/forums/contributors/717446
69•phantomathkg•34m ago•6 comments

Green Fields of the Mind

https://yalealumnimagazine.org/articles/3549-the-story-of-green-fields-of-the-mind
1•cfcfcf•37m ago•0 comments

S.F. homes are selling at the fastest rate among large U.S. cities

https://www.sfchronicle.com/realestate/article/san-francisco-home-sales-21127729.php
1•kaycebasques•38m ago•3 comments

The Axiom of Predictive Coherence

https://isaacbound.substack.com/p/the-axiom-of-predictive-coherence
1•thegrimmest•38m ago•0 comments

Taiwan's Machine Tool Makers Struggle to Survive

https://english.cw.com.tw/article/article.action?id=4436
2•ilamont•39m ago•1 comments

Pitch Drop Experiment

https://smp.uq.edu.au/pitch-drop-experiment
1•RickJWagner•40m ago•0 comments

Show HN: FlashVSR – AI Video Upscaler for AI-Generated and Low-Res Videos

https://www.flashvsr.art
1•Viaya•40m ago•0 comments

Everyone Can Code an LLM

https://python2llms.org/
2•yegortk•44m ago•0 comments

I built a modular Java game engine without a GUI, designed to be AI-native

https://frontend-neutron-v2.vercel.app/
1•xvpdev•44m ago•0 comments

Jelly Slider

https://docs.swmansion.com/TypeGPU/examples/#example=rendering--jelly-slider
2•xnx•44m ago•1 comments

Breakthrough Gel Rebuilds Tooth Enamel and Strengthens Teeth

https://newatlas.com/medical/protein-gel-rebuilds-tooth-enamel/
3•thunderbong•45m ago•1 comments

Physics-driven self-supervised learning for 3D light-field microscopy

https://www.nature.com/articles/s41592-025-02698-z
2•warbaker•48m ago•0 comments

Mörk – a Commonmark compliant Markdown parser written in Gleam

https://hexdocs.pm/mork/index.html
1•todsacerdoti•49m ago•0 comments

Fintech Product Discovery 2 minute Survey

https://app.youform.com/forms/t46ykegz
1•Archer-Simmonds•52m ago•1 comments

OpenAI Seeks Government Backing to Boost AI Investments

https://www.barrons.com/news/openai-seeks-government-backing-to-boost-ai-investments-b9850f3a
4•dougb5•52m ago•0 comments

Hire Palestinian Tech Workers

https://techforpalestine.org/help/hire/
6•brandon_pampuch•1h ago•1 comments

Government told to prepare for 2C warming by 2050

https://www.bbc.com/news/articles/cx24kllyye1o
3•PaulHoule•1h ago•0 comments

Microsoft Apologises, Offers Refunds

https://www.theaustralian.com.au/business/technology/microsoft-apologises-offers-refunds-as-it-fa...
3•asdefghyk•1h ago•2 comments

OpenAI asks for help from US govt

https://www.businesstimes.com.sg/companies-markets/telcos-media-tech/openai-seeks-government-back...
4•rooftopzen•1h ago•2 comments

Cloudflare Scrubs Aisuru Botnet from Top Domains List

https://krebsonsecurity.com/2025/11/cloudflare-scrubs-aisuru-botnet-from-top-domains-list/
2•todsacerdoti•1h ago•0 comments

Don't Build an Audience

https://www.humaninvariant.com/blog/audience
2•lalitmaganti•1h ago•0 comments