frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Who had the crazy idea to make the stack grow down?

1•bobby_mcbrown•1h ago

Comments

ofalkaed•52m ago
I don't think any single person did, they just went with what ever way best suited the hardware/language it is being implemented on/with and the needs of the language being implemented. If stack underflows are rare than growing down means testing for an overflow is always the same regardless of stack size and I assume this is why some languages (like Forth) have -1 as false instead of 0, -1 is an overflow so the languages own true/false can test for an overflow. In languages which are not so directly dealing with the stack, underflows are rare and may not even be possible so having the last element of the stack as stack pointer==0 simplifies things.
_wire_•23m ago
If it grew up it'd be confused with the heap!

But srsly folks, memory with an origin of zero is a proud tradition that helps confused programmers know where to begin.

And given that within the Von Neumann architecture program and data can not be distinguished, and also noting the incredible utility of a stack to keeping a dynamic call chain with localized storage reference scope to support recursion, a paradigm that divides between a heap and stack in a layout that's as open-ended as possible to the available storage and execution demands of the program seems not only prudent but fairly obvious.

Sure, feel free to inject an arbitrarily complex N-leveled storage abstraction built from pure message passing between caches within some larger, wildly associative machinery and stuff it into the nether regions of the machine. But regardless of such hijinks, as long as your memory is indexed and locally finite, you end up with at least two ends of memory, hither and yon, so may as well use them.

As to turning hither and yon upside down into yon and hither, knock yourself out! Show the world the future of memory should be inverted and palindromic-- introducing Z, the runtime environment where everything can and does start from either end or anywhere in between. No design nor implementation is necessary. Every pattern in memory is a valid program. Just state your objective and start debugging. Voila! Problems that once seemed intractable are solved. Call it VibeZ coding.

Warner Bros Joins Disney in Suing Sling TV for Making Streaming Video Cheaper

https://www.techdirt.com/2025/09/26/warner-bros-joins-disney-in-suing-sling-tv-for-making-streami...
1•voxadam•1m ago•0 comments

Austria's military just ditched Microsoft for open-source LibreOffice

https://www.zdnet.com/article/this-european-military-just-ditched-microsoft-for-open-source-libre...
2•CharlesW•2m ago•0 comments

Learn to Play Go

https://online-go.com/learn-to-play-go
1•kqr•9m ago•0 comments

Incentives and Outcomes in Humans, AI, and Crypto

https://olshansky.info/posts/2025-09-27-ai-crypto-human-incentives
1•Olshansky•11m ago•0 comments

The Extraordinary Rise of Electric Cars in Developing Countries

https://www.bloomberg.com/news/articles/2025-09-25/the-extraordinary-rise-of-electric-cars-in-dev...
1•thinkcontext•11m ago•0 comments

Show HN: Create process, data and component diagrams from natural language

https://www.diagramguru.com/
1•vaneyckseme•12m ago•0 comments

Show HN: I built type-safe dynamic arrays for C after struggling with stb_ds.h

https://github.com/RolandMarchand/vector.h
1•Moowool•14m ago•0 comments

SecureBitchat End-to-end freedom v4.02.985

https://github.com/SecureBitChat/securebit-chat
1•SecureBitChat•18m ago•1 comments

The Lowest Level PL

https://pramatias.github.io/cubes/cubes_en.html
1•emporas•19m ago•1 comments

Spending on AI Is at Epic Levels. Will It Ever Pay Off?

https://www.wsj.com/tech/ai/ai-bubble-building-spree-55ee6128
4•RyanShook•26m ago•2 comments

Faster Virtual Machines: Speeding Up Programming Language Execution (2023)

https://mort.coffee/home/fast-interpreters/
1•ofalkaed•28m ago•0 comments

America's Elite Colleges Breed High-Status Careers–and Misery

https://www.motherjones.com/politics/2025/09/elite-ivy-league-colleges-endowment-inequality-caree...
1•ryan_j_naughton•29m ago•0 comments

Why Warm Countries Are Poorer

https://unchartedterritories.tomaspueyo.com/p/mountains
9•baristaGeek•33m ago•1 comments

The Effects of Abacus Training on Cognitive Functions and Neural Systems

https://pmc.ncbi.nlm.nih.gov/articles/PMC7492585/
1•breve•34m ago•0 comments

Songs in the Key of Childhood

https://www.thebeliever.net/songs-in-the-key-of-childhood/
1•thunderbong•50m ago•0 comments

Chance, Necessité, et Naïveté: Ingredients to create a new organizational form [pdf]

https://web.mit.edu/iandeseminar/Papers/Woody%20Powell%20-%20Book%20Chapter.pdf
1•lawrenceyan•51m ago•0 comments

Measuring My DIY Air Purifier

https://chillphysicsenjoyer.substack.com/p/measuring-my-diy-air-purifier
1•crescit_eundo•52m ago•0 comments

Why ZK Proving Markets Keep Failing: The Termination Trap

https://blockrotator.substack.com/p/why-zk-proving-markets-keep-failing
1•badcryptobitch•53m ago•0 comments

Show HN: AI Video Generator app for iOS (looking for feedback)

https://apps.apple.com/us/app/ai-video-generator-onvideo/id6748954744
1•incendies•55m ago•0 comments

Edison founders rant- Canada won't let him build hybrid truck and America blocks [video]

https://www.youtube.com/shorts/kbeYsgXeIvQ
3•rmason•59m ago•1 comments

Texas, New York locked in legal dispute over abortion pill

https://www.kxan.com/news/texas-abortion/texas-new-york-locked-in-legal-dispute-over-abortion-pill/
1•danielschreber•1h ago•2 comments

Why Google data center proposal failed Indiana

https://www.usatoday.com
2•walterbell•1h ago•0 comments

Vaccines linked to a lower risk of dementia

https://www.washingtonpost.com/wellness/2025/09/25/vaccines-dementia-risk-reduction/
5•Avshalom•1h ago•0 comments

Things I Believe

https://leerob.com/beliefs
1•vinhnx•1h ago•0 comments

U.S. Military Struggling to Deploy AI Weapons

https://www.wsj.com/politics/national-security/pentagon-ai-weapons-delay-0f560d7e
6•bookofjoe•1h ago•1 comments

The Video-Game Industry Has a Problem: There Are Too Many Games

https://www.bloomberg.com/news/newsletters/2025-09-26/the-video-game-industry-has-a-problem-there...
2•TMWNN•1h ago•2 comments

How I accidently created the fastest CSV parser ever made

https://sanixdk.xyz/blogs/how-i-accidentally-created-the-fastest-csv-parser-ever-made
14•sanix-darker•1h ago•0 comments

Show HN: The Unite Real Time Operating System

https://jacquesmattheij.com/unite-operating-system/
3•jacquesm•1h ago•0 comments

Meta Is Removing Abortion Advocates' Accounts Without Warning

https://www.eff.org/pages/meta-removing-abortion-advocates-accounts-without-warning
5•nabla9•1h ago•0 comments

Ask HN: Barely ever used OOP in Python, am I doing something wrong?

1•baconbkr•1h ago•1 comments