frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

I'm building a clarity-first language (compiles to C++)

https://github.com/taman-islam/rox
12•hedayet•4d ago

Comments

dusanstanojevic•4d ago
Very interesting, I've read your readme and your core principles really resonate with me. How is memory managed?
hedayet•3d ago
Great question - we keep memory management intentionally simple.

1. There’s no manual memory management exposed at the language level (no pointers, no allocation APIs). I intend to keep it this way as long as possible.

2. Containers (list[T], dictionary[K,V]) compile directly to C++ STL types (std::vector, std::unordered_map).

3. Values follow a strict rule: primitives pass by value, containers pass by read-only reference. This prevents accidental aliasing/mutation across scopes and keeps ownership implicit but predictable.

Anything created in a scope is destroyed when that scope ends (standard C++ RAII). So in practice, memory management in Rox is C++ lifetime semantics underneath, but with a stricter surface language to reduce accidental complexity.

teraflop•1h ago
That sounds like it's basically impossible to implement your own non-trivial data structures. You can only use the ones that are already in the standard library.

For instance, how would you represent a binary tree? What would the type of a node be? How would I write an "insert node" function, which requires that the newly-created node continues to exist after the function returns?

I'm not necessarily saying that this makes your language bad, but it seems to me that the scope of things that can be implemented is much much smaller than C++.

sesm•53m ago
> Lists are accessed only via .at()

If clarity is the goal, then data structures that support access by index should be called `arrays` or `vectors`

amluto•42m ago
> 3. Values follow a strict rule: primitives pass by value, containers pass by read-only reference. This prevents accidental aliasing/mutation across scopes and keeps ownership implicit but predictable.

There are plenty of languages where functions cannot mutate their parameters or anything their parameters reference — Haskell is one example. But these languages tend to have the ability to (reasonably) efficiently make copies of most of a data structure so that you can, for example, take a list as a parameter and return that list with one element changed. These are called persistent data structures.

Are you planning to add this as a first-class feature? This might be complex to implement efficiently on top of C++’s object model — there’s usually a very specialized GC involved.

eager_learner•37m ago
Comments like amluto's above, are the reason my time spent on HN is not wasted.
paulddraper•2m ago
I don’t see the relevance of special GC.

But yes you need immutable data structures designed for amortized efficient copy.

OsrsNeedsf2P•38m ago
This is great. I look forwards to more "strict" languages whose deterministic compilers will give LLMs a tight feedback loop to catch bugs.
Panzerschrek•32m ago
Does it have destructors?

I love the work of the ArchWiki maintainers

https://k7r.eu/i-love-the-work-of-the-archwiki-maintainers/
179•panic•5h ago•35 comments

My smart sleep mask broadcasts users' brainwaves to an open MQTT broker

https://aimilios.bearblog.dev/reverse-engineering-sleep-mask/
387•minimalthinker•14h ago•187 comments

Zvec: A lightweight, fast, in-process vector database

https://github.com/alibaba/zvec
113•dvrp•1d ago•18 comments

Instagram's URL Blackhole

https://medium.com/@shredlife/instagrams-url-blackhole-c1733e081664
136•tkp-415•1d ago•22 comments

5,300-year-old 'bow drill' rewrites story of ancient Egyptian tools

https://www.ncl.ac.uk/press/articles/latest/2026/02/ancientegyptiandrillbit/
94•geox•4d ago•14 comments

uBlock filter list to hide all YouTube Shorts

https://github.com/i5heu/ublock-hide-yt-shorts/
756•i5heu•12h ago•250 comments

I'm building a clarity-first language (compiles to C++)

https://github.com/taman-islam/rox
12•hedayet•4d ago•9 comments

News publishers limit Internet Archive access due to AI scraping concerns

https://www.niemanlab.org/2026/01/news-publishers-limit-internet-archive-access-due-to-ai-scrapin...
457•ninjagoo•11h ago•294 comments

Connes Embedding Problem

https://en.wikipedia.org/wiki/Connes_embedding_problem
14•jerlendds•2d ago•1 comments

NewPipe: YouTube client without vertical videos and algorithmic feed

https://newpipe.net/
191•nvader•4h ago•50 comments

How often do full-body MRIs find cancer?

https://www.usatoday.com/story/life/health-wellness/2026/02/11/full-body-mris-cancer-aneurysm/883...
83•brandonb•1d ago•79 comments

Amsterdam Compiler Kit

https://github.com/davidgiven/ack
114•andsoitis•13h ago•32 comments

OpenAI should build Slack

https://www.latent.space/p/ainews-why-openai-should-build-slack
131•swyx•22h ago•129 comments

Can my SPARC server host a website?

https://rup12.net/posts/can-my-sparc-server-host-my-website/
45•e145bc455f1•4d ago•37 comments

The consequences of task switching in supervisory programming

https://martinfowler.com/fragments/2026-02-13.html
62•bigwheels•1d ago•29 comments

Breaking the spell of vibe coding

https://www.fast.ai/posts/2026-01-28-dark-flow/
179•arjunbanker•1d ago•135 comments

Linear Representations and Superposition

http://ternarysearch.blogspot.com/2026/02/linear-representations-and-superposition.html
9•paladin314159•1h ago•0 comments

Flood Fill vs. The Magic Circle

https://www.robinsloan.com/winter-garden/magic-circle/
56•tobr•3d ago•17 comments

Show HN: Sameshi – a ~1200 Elo chess engine that fits within 2KB

https://github.com/datavorous/sameshi
207•datavorous_•16h ago•63 comments

Guitars of the USSR and the Jolana Special in Azerbaijani Music

https://caucascapades.wordpress.com/2012/06/14/guitars-of-the-ussr-and-the-jolana-special-in-azer...
15•bpierre•2h ago•1 comments

Show HN: MOL – A programming language where pipelines trace themselves

https://github.com/crux-ecosystem/mol-lang
31•MouneshK•3d ago•9 comments

Ooh.directory: a place to find good blogs that interest you

https://ooh.directory/
481•hisamafahri•16h ago•122 comments

A review of M Disc archival capability with long term testing results (2016)

http://www.microscopy-uk.org.uk/mag/artsep16/mol-mdisc-review.html
76•1970-01-01•14h ago•90 comments

YouTube as Storage

https://github.com/PulseBeat02/yt-media-storage
188•saswatms•21h ago•138 comments

Show HN: Off Grid – Run AI text, image gen, vision offline on your phone

https://github.com/alichherawalla/off-grid-mobile
80•ali_chherawalla•7h ago•34 comments

Babylon 5 is now free to watch on YouTube

https://cordcuttersnews.com/babylon-5-is-now-free-to-watch-on-youtube/
605•walterbell•1d ago•314 comments

Colored Petri Nets, LLMs, and distributed applications

https://blog.sao.dev/cpns-llms-distributed-apps/
33•stuartaxelowen•9h ago•5 comments

Descent, ported to the web

https://mrdoob.github.io/three-descent/
196•memalign•10h ago•41 comments

Windows NT/OS2 Design Workbook

https://computernewb.com/~lily/files/Documents/NTDesignWorkbook/
96•markus_zhang•4d ago•36 comments

A header-only C vector database library

https://github.com/abdimoallim/vdb
72•abdimoalim•12h ago•30 comments