logoalt Hacker News

Bespoke: A programming language for people who say please

63 pointsby birdculturelast Sunday at 8:13 AM23 commentsview on HN

Comments

vova_hn2today at 6:31 PM

Somewhat related: "If PHP Were British" (2011) - https://aloneonahill.com/blog/if-php-were-british/

My favorite part:

  would_you_mind {
      // Code here
  } actually_i_do_mind (Exception £e) {
      // Politely move on
      cheerio('Message');
  }
Past HN discussions:

- May 28, 2019 - 46 comments - https://news.ycombinator.com/item?id=20029836

- Dec 2, 2022 - 366 comments - https://news.ycombinator.com/item?id=33828509

WhyComboNadirtoday at 7:21 PM

Love it.

Compared to regular programming languages it reminds me of the difference between lawn signs in the US vs the UK:

US: Keep Off Grass! UK: Please remain on the footpath for the sake of our lawn

tristenharrtoday at 6:56 PM

Love this!! :) I thought about being that verbose in Logos lang, but I think language design changes a lot in the modern era.

I suspect we end up with modular compilers, v0.11.0 of logos lang coming soon with some big updates! We have one frontend which is our Logos language, then the intermediate representation a register VM Bytecode IR, then from that we generate Rust, C, and we have a JIT that will just in time directly to RISC-V, Tenstorrent, we’ve been messing with plasticine, and hoping to get our hands on some sambanova RDU’s. We’re burning our language to a chip.

For fun maybe I’ll add a bespoke dialect :p

https://logicaffeine.com/guide

show 1 reply
broken-kebabtoday at 6:47 PM

I think "A Regrettable Circumstance" is genuinely better description than "Exception"

az09mugenyesterday at 7:50 PM

Idea first developed by intercal, which there are no reference to : https://en.wikipedia.org/wiki/INTERCAL

show 1 reply
220hertztoday at 6:07 PM

Automatic garbage collection is not assumed; one formally engages the groundskeeper.

Fantastic.

pixelpoettoday at 6:17 PM

Spelt, not spelled; tisk tisk ;)

I love everything about this!

show 1 reply
bigfishrunningtoday at 6:28 PM

> --quiet suppresses compliments, never criticism.

It's the only way to grow.

gjtorikiantoday at 4:58 PM

for the agentic user, there's also PATY: https://gjtorikian.online/paty/

classifiedtoday at 5:59 PM

No wonder so much of our software is rubbish when we treat the compiler and the runtime environment with so much neglect. By disrespecting them, we alienate the entities we rely upon most. I foresee a huge surge in software quality once the Bespoke language goes mainstream.

show 1 reply
rf15today at 4:16 PM

We already have that, it's called intercal.

rnzaoutoday at 5:11 PM

really good, i'm having a good laugh rn

show 1 reply
layer8today at 4:23 PM

The Table of Contents sent me into an infinite recursion.

RickJWagnertoday at 5:56 PM

I might be a potential user. I find myself being polite in AI prompts sometimes.

I guess it can’t hurt, just more practice at polite interactions. ( The prompt phrasing, not the language. )

sltkrtoday at 7:17 PM

Less AI slop please.

benzguotoday at 4:28 PM

i loved this

KeenanKeenantoday at 4:55 PM

>Programming has developed an unfortunate tone.

> We kill processes, abort transactions, throw exceptions, break out of loops, and execute instructions.

Can't wait to see the fork of this project that doubles down on hostile language /s

bibimsztoday at 4:50 PM

[dead]