frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

I propose a new programming language, CPC

2•tom_gi•1h ago
I'm starting my own programming language for understanding and solving leetcode problems at Google. It is called compilable pseudocode, or CPC. True, the name is intentionally paradoxical; the goal is pseudocode rigorous enough to compile. The inspiration first came to me some time after a Google interview in 2023. The interviewer told me, "pseudocode is fine." Honestly, I had depth first search on a graph to detect cycles in Python on my mind, so I did not seriously pursue pseudocode. That was a mistake, because it shut down conversation with the interviewer, and cost me points. Hence, I propose CPC.

The purpose is that Google interviewers will not only comprehend your solution, they will see you are fluent in algorithmic thinking.

The idea is simple. Everything is a list. In CPC, a list is defined so that a child - albeit a prodigy - could easily understand: a list is a collection of items, in order, where each item has a position.

Take all the data structures that appear in leetcode, and abstract them away to their most common denominators in terms of lists. In other words, a hash table is a list where each item has a name and a value. Repeat this for every data structure so that there is as little jargon as possible in CPC.

Then the syntax for CPC is just the plain english describing the pseudocode. The code supports “wobble”. In other words, you can use plain english to describe a solution in more than one way.

Any thoughts? If there are supporters here, I propose we as a community proceed to derive CPC solutions to popular leetcode problems. Once we hit the 500 problem mark, we can publish CPC as an official compilable language.

Comments

diavelguru•1h ago
Sounds cool. Do you have any requirements other than what you outlined above such as any grammar examples? Reading this brought me back to my compiler days at uni. We used Oberon and had to create a compiler. It was quite the process! I remember abstract syntax trees that held the program and as we proceeded through the compilation steps that ast was passed around and inspected for all steps. This I found helpful: https://dev.to/villyp/how-to-build-a-compiler-a-step-by-step...

Bella: Hypergrah memory for AI agent(10x time horizon)

https://github.com/immartian/bellamem
1•newsathere•21s ago•0 comments

Online Phreak Box

https://phreaknet.org/bluebox/
1•etothet•1m ago•0 comments

The Local Universe's Expansion Rate Clearer Than Ever. But Still Doesn't Add Up

https://noirlab.edu/public/news/noirlab2611/?lang
1•nobody9999•4m ago•0 comments

Why meaningful days look like nothing while you are living them

https://pilgrima.ge/p/the-grand-line
1•momentmaker•15m ago•0 comments

Show HN: Posse – Open-Source Web UI for Anthropic Managed Agents

https://github.com/oguzbilgic/posse
1•obilgic•18m ago•0 comments

Jury reaches no verdict on first day deliberating at Live Nation monopoly trial

https://www.boston25news.com/entertainment/jury-starts/V36MJOVVPA373JW3P5TFJZJ7OI/
1•1vuio0pswjnm7•20m ago•0 comments

Building a better crossword page for my daily cryptic hit – Whitebeard's Realm

https://whitebeard.blog/posts/building-a-better-crossword-page/
1•techbelly•21m ago•0 comments

How Ship Anchors Work [video]

https://www.youtube.com/shorts/X7bWj115UwY
1•modinfo•21m ago•0 comments

Building a Z-Machine in the worst possible language – Whitebeard's Realm

https://whitebeard.blog/posts/building-a-z-machine-in-elm/
2•techbelly•21m ago•0 comments

A Mac Studio for Local AI – 6 Months Later

https://spicyneuron.substack.com/p/a-mac-studio-for-local-ai-6-months
1•try-working•26m ago•1 comments

My research has build errors now and honestly should have always worked this way

https://github.com/grainulation/wheat
2•volatilityfund•29m ago•0 comments

Beyond Quantum with Khrennikov

https://scottlocklin.wordpress.com/2026/04/09/beyond-quantum-with-khrennikov/
1•MrBuddyCasino•30m ago•0 comments

The Dostoevskian Moment

https://www.palladiummag.com/2026/04/11/the-dostoevskian-moment/
1•MrBuddyCasino•35m ago•0 comments

Anthropic loses appeals court bid to pause supply chain risk label

https://www.politico.com/news/2026/04/08/d-c-circuit-rejects-anthropic-plea-to-pause-supply-chain...
8•1vuio0pswjnm7•40m ago•2 comments

LLM Time

https://graydon2.dreamwidth.org/322732.html
1•sho_hn•40m ago•0 comments

We spoke to the man making viral Lego-style AI videos for Iran

https://www.bbc.com/news/articles/cjd8jrd1vnyo
25•breve•41m ago•5 comments

Ask HN: Former grok-code-fast-1 users, what coding model are you using now?

1•whycombinetor•44m ago•0 comments

When career anxiety becomes gameplay: lessons in China 'young-faculty simulator'

1•mmarian•47m ago•1 comments

Samsamelo – Silicon Valley selling trolley problem lies [fixed link]

https://lgwnncpcqsloqa4sqqqq5osup2rlqp7iiqliyu4y6vveu5jy6tlq.arweave.net/WazWieKElugDkoQhDrpUfqK4...
1•awbvious•50m ago•1 comments

AI Can't Read an Investor Deck

https://www.mercor.com/blog/Finance-tasks-ai-failures-modes/
1•gmays•51m ago•1 comments

Upstreaming Patches and the Cyber Resilience Act

https://www.thomas-huehn.com/upstreaming-patches-and-cra/
2•Brajeshwar•57m ago•0 comments

Entropy as a Measure of Surprise

https://nchagnet.pages.dev/blog/entropy-as-measure-of-surprise/
2•Brajeshwar•57m ago•1 comments

Americans still opt for print books over digital or audio versions

https://www.pewresearch.org/short-reads/2026/04/09/americans-still-opt-for-print-books-over-digit...
25•thm•1h ago•16 comments

The 'Enshittification' of the Internet [video]

https://www.youtube.com/watch?v=dCVUCdg3Uqc
2•goekjclo•1h ago•0 comments

Walked dog, did groceries, folded laundry. Claude Code shipped. Thanks Farmer

https://github.com/grainulation/farmer
4•volatilityfund•1h ago•0 comments

How a dancer with ALS used brainwaves to perform live

https://www.electronicspecifier.com/products/sensors/how-a-dancer-with-als-used-brainwaves-to-per...
5•1659447091•1h ago•0 comments

FusionCore ROS 2 sensor fusion replacing deprecated robot_localization

https://github.com/manankharwar/fusioncore
1•kharwarm•1h ago•1 comments

Agentic Engine Optimization (AEO)

https://addyosmani.com/blog/agentic-engine-optimization/
1•cdrnsf•1h ago•0 comments

The End of Eleventy

https://brennan.day/the-end-of-eleventy/
36•ValentineC•1h ago•16 comments

Used Graphify to turn incidents into a queryable knowledge graph

https://github.com/Rootly-AI-Labs/rootly-graphify-importer
2•hamzmu•1h ago•1 comments