Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Princess: Coding Like Royalty (princess.sh)
27 points by rurban on Feb 8, 2024 | hide | past | favorite | 20 comments


Some notes(might be controversial): 1.Princess will clash with lots of stuff, e.g. anime and fiction, making it harder to search code. Pick something more unique, even any princess name would be better and not lead to wrong associations."Coding like ro yalty" isn't that great of a slogan either.

2.Make a comparison table to showcase differences Princess/C/C++/Zig/Rust/FreePascal its hard to understand the selling point compared to using plain Clang.

3.More examples of functions,objects, metaprogramming, common algorithms to showcase something (Rosetta Code examples would be perfect).


It can't be any harder to search for than C.


C's name predates internet searches sooooo it could not have been chosen with that in mind.


Related to item 2:

4. Explain what problem is being solved. Why does this exist at all? What is the value proposition?

A comparison table helps of course but I wouldn’t even look at that unless I can “buy” the value proposition first.


I'm not seeing any related documents that explain what the goals and rationale for the project are.


I agree. Why should I care that this exists? Does it correct a flaw in zig / rust / C / Nim / Dmd? Does it explore the space of programming languages? (And if so, what’s actually new about it?). Or is it a way for the author to noodle around with their own programming language?

I have no objection to any of those goals. But it would be nice if the author were clear about what they’re doing with the project.


A princess doesn't have to explain herself.


Can't argue with that logic alright.


The top left corner gives the hint "A modern C-like Programming language with focus on structural typing." Not sure what "coding like royalty" is meant to mean honestly. To me royalty conjures useless rent-seeking incompetent cruft that sits on their ass and extracts value from their subjects.


When I read "coding like royalty", the first thing I thought of was "let others do the coding for you". But in that case, you wouldn't care about the programming language...


> Not sure what "coding like royalty" is meant to mean honestly

C, but the headers have all been removed.


If this language is "coding like royalty", does that make no-code systems "coding for the cream of society"? (because they're aimed at the rich and thick)


I'd be interested in a joke programming language that mimics the modern tone and language used by living royals to order food or ask for trips in their private travel infrastructure and so on.


Something along the lines of https://aloneonahill.com/blog/if-php-were-british maybe?


More like this story on the same site, maybe? https://aloneonahill.com/blog/the-disney-princess-desk-proje...


I tried thinking of a programming language syntax that sounded like Elizabethan English, but I think I only succeeded in making a weirder version of COBOL or ALGOL.

Edit: moved to pastebin here: https://pastebin.com/41irVBJs


Not exactly what you asked for, but you should look up Chef (not the devops tool). It was part of an MIT Mystery Hunt one year. You could certainly write the recipes with a royal style.


this one? https://esolangs.org/wiki/Chef

the closest thing to what I had in mind, thanks to another reply, is british PHP


What is this language's approach to memory safety?


Execute the function correctly, or the Princess will have you executed.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: