logoalt Hacker News

Bespoke: A programming language for people who say please

162 pointsby birdculturelast Sunday at 8:13 AM41 commentsview on HN

Comments

vova_hn2yesterday 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

dalmo3yesterday at 9:36 PM

Let's do ClaudeLang:

    THIS DISTINCTION MATTERS: myBool IS ABSOLUTELY RIGHT
      LAND HONEST TAKE "Hello world"
    CAVEAT:
      THE GAP IS REAL "Unexpected error"
    THINK ABOUT THAT FOR A SECOND
broken-kebabyesterday at 6:47 PM

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

show 1 reply
az09mugenlast Tuesday at 7:50 PM

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

show 2 replies
220hertzyesterday at 6:07 PM

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

Fantastic.

wavemodetoday at 5:32 AM

This is similar to (but much higher-level than) the Shakespeare programming language: https://en.wikipedia.org/wiki/Shakespeare_Programming_Langua...

WhyComboNadiryesterday 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

show 3 replies
B4st144ntoday at 5:54 AM

And there I was thinking for a minute it was a language for Bespoke Synth https://www.bespokesynth.com/ A very beautifull visual pleasing sound creator. "Dear Bespoke, Could you create a sound similar to an egg faling on the ground. Please" ... Oh well, maybe in the future...

tristenharryesterday 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
0x69420today at 5:53 AM

the obvious llm tells make this infinitely less funny than natural-language esolangs from 2 decades ago sorry

FacelessJimtoday at 7:22 AM

That’s it. I’m rewriting my whole stack with this.

pixelpoetyesterday at 6:17 PM

Spelt, not spelled; tisk tisk ;)

I love everything about this!

show 1 reply
dullcrisptoday at 12:36 AM

> Perhaps you might see fit to conclude your earthly endeavours at your earliest convenience?

I’m stealing this.

gjtorikianyesterday at 4:58 PM

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

rf15yesterday at 4:16 PM

We already have that, it's called intercal.

moron4hiretoday at 2:40 AM

Reminds me of the Shakespeare Programming Language (https://esolangs.org/wiki/Shakespeare).

I absolutely love esolangs. I've written a fair few in my time, though never released any. Which is fine, they've all been personal jokes and would be like trying to explain an in-group joke to absolutely everyone. But anyway, to me, esolangs are the closest one can get to Art in Computer Science.

classifiedyesterday 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
bigfishrunningyesterday at 6:28 PM

> --quiet suppresses compliments, never criticism.

It's the only way to grow.

layer8yesterday at 4:23 PM

The Table of Contents sent me into an infinite recursion.

rnzaouyesterday at 5:11 PM

really good, i'm having a good laugh rn

show 1 reply
benzguoyesterday at 4:28 PM

i loved this

RickJWagneryesterday 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. )

show 2 replies
sltkryesterday at 7:17 PM

Less AI slop please.

KeenanKeenanyesterday 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

bibimszyesterday at 4:50 PM

[dead]