frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Peter Thiel to lead 4-part series on the Antichrist

https://www.christianpost.com/news/palantir-ceo-peter-thiel-to-lead-4-part-series-on-the-antichri...
1•voisin•1m ago•0 comments

Show HN: Moribito – A TUI for LDAP Viewing/Queries

https://github.com/ericschmar/moribito
2•woumn•2m ago•0 comments

How to Participate in the Ruby Community

https://www.rubynewbie.org/10-ways-to-participate-in-the-ruby-community
1•jvrc•2m ago•0 comments

Apertus includes many languages that have so far been underrepresented in LLMs

https://www.swiss-ai.org/apertus
1•cimnine•3m ago•0 comments

Neptune Balls

https://www.bbc.com/future/article/20250901-why-plastic-filled-neptune-balls-are-washing-up-on-be...
1•andsoitis•3m ago•0 comments

Mago: Fast linter, formatter, and static analyzer for PHP, written in Rust

https://mago.carthage.software/
2•dpcx•4m ago•0 comments

Show HN: Thymis – IoT fleet management with NixOS – Cloud now available

https://thymis.io/
1•elikoga•6m ago•0 comments

Show HN: Ruby-TI mruby type analyser

https://github.com/engneer-hamachan/ruby-ti/blob/main/README_en.md
1•hamachang•8m ago•0 comments

A 21yo with a 1.7 GPA Turned a Burger Obsession into a Viral Restaurant

https://juandavidcampolargo.substack.com/p/obsession-the-fire-the-gods-feared
1•jdcampolargo•9m ago•0 comments

Show HN: Vaultace – AI-specific vulnerability scanner for AI generated code

https://www.vaultace.co/
1•psathecreator•10m ago•1 comments

Aperiodic Tilings V: The Refinable Frontier

https://www.chiark.greenend.org.uk/~sgtatham/quasiblog/aperiodic-refine/
2•Bogdanp•12m ago•0 comments

Understanding Apache Fluss

https://jack-vanlightly.com/blog/2025/9/2/understanding-apache-fluss
1•todsacerdoti•12m ago•0 comments

Understanding Apache Fluss

https://jack-vanlightly.com/blog/2025/9/2/understanding-apache-fluss
1•Bogdanp•12m ago•0 comments

Show HN: I Made an ESP32 On-Call Beeper

https://techsquidtv.com/blog/i-made-an-esp32-on-call-beeper/
2•TechSquidTV•12m ago•1 comments

Show HN: CDNPulse – See which CDN is fastest for your actual users

https://cdnpulse.io/
1•alikhil•13m ago•0 comments

Everything About Bitflags: How to store up to 32 booleans in one value?

https://neg4n.dev/blog/everything-about-bitflags
2•neg4n•14m ago•0 comments

Let Claude Code talk to your Render deployments

https://www.mcpstack.org/use/render-mcp-server/mcp-server/with/claude-code
1•hgarg•14m ago•0 comments

Show HN: Picnana – One-Stop AI Image Generator

https://picnana.com/
1•Johnny_y•15m ago•0 comments

Show HN: Drop-in Golang wrapper for curl-impersonate (net/HTTP compatible)

https://github.com/dstockton/go-curl-impersonate-net-http-wrapper
1•daveys110•15m ago•0 comments

Show HN: Kage Bus – Lightweight Pub/Sub Message Bus for AI Agents

https://github.com/kagehq/bus
1•lexokoh•16m ago•0 comments

America Against China Against America

https://jasmi.news/p/china-2025
1•surprisetalk•16m ago•0 comments

You can try to like stuff

https://dynomight.net/liking/
2•surprisetalk•16m ago•0 comments

Show HN: Scoped, Ephemeral API Keys for AI Agents

https://github.com/kagehq/keys
1•lexokoh•18m ago•0 comments

Building more helpful ChatGPT experiences for everyone

https://openai.com/index/building-more-helpful-chatgpt-experiences-for-everyone/
1•wertyk•19m ago•0 comments

JSON Streaming in OpenAPI v3.2.0

https://bump.sh/blog/json-streaming-openapi-3-2/
7•Chris_Dujarric•20m ago•1 comments

OpenAI Is Scanning Users' ChatGPT Conversations and Reporting Content to Police

https://m.slashdot.org/story/446202
4•hsuduebc2•20m ago•0 comments

Ola Bini – Swedish programmer arrested in Ecuador for being a Russian hacker

https://darknetdiaries.com/episode/163/
1•staticelf•21m ago•0 comments

Gitpod is now Ona, moving beyond the IDE

https://ona.com/stories/gitpod-is-now-ona
2•sakesun•24m ago•0 comments

Show HN: Korean Open APIs (With English Translations)

https://github.com/yybmion/public-apis-4Kr
1•yyb400•27m ago•0 comments

Show HN: Zyg – Stop Writing Status Updates

https://www.zyg.sh/
3•flyingsky•30m ago•2 comments
Open in hackernews

Ask HN: How to trace a void recursive function?

1•shivajikobardan•4h ago
I was going over [this](https://stackoverflow.com/questions/66712061/how-do-i-trace-a-recursive-function-with-a-return-function-in-it) link. And suddenly I remembered a problem that I faced yesterday. It was related to tracing of a void returning recursive function with a printer.

Eg(pseudocode)

    func(int x)
    {
    if(x>0){
    
    print(before execution:x);
    
    func(x-1);
    
    print(after execution: x);
    }
    }

Call this function with x=5

    Before execution n=5 
    Before execution n=4 
    Before execution n=3 
    Before execution n=2 
    Before execution n=1 
    After execution n=1 
    After execution n=2 
    After execution n=3 
    After execution n=4 
    After execution n=5 
    
The output will appear like this.

Before execution part is not suprising. It is pretty obvious. But after execution part is noteworthy for me specially.

I can naively guess that it is a call stack that is being used. And it is just popping the value from the top of the stack that was pushed earlier. But I am not exactly sure of the architecture of data structure that is being used and methodologies that are being followed at code and hardware level. As a CS enthusiast, it is my basic need to understand this. Hope to get some insights here.

Comments

austin-cheney•4h ago
The common answer is a stack trace. In JavaScript you can get that any time and any where with:

    new Error().stack;
Stack traces lose their helpfulness in applications with high frequency network traffic because the network buffer will likely not be the start of flow control but a stack trace cannot run deeper than that.
shivajikobardan•3h ago
I realized I do not understand how function calls use stack (exactly and accurately I mean I can imagine some stack push pop happening). Any guidance for resources? I seeked in google but turns out most materials are related to assembly language programming which I have no idea about.
austin-cheney•2h ago
A stack trace just lists the steps an application went through by calls to non primitive references. This varies pretty significantly by language. An item in the stack is a step in memory. That is about as much as I know.