Bespoke: A Programming Language for People Who Say Please

15 points by Larvitz


snej

In college I had written a clone of csh for these computers in a lab (they were HP 9836s, an oddball 68000 PC that came with a terrible text-menu UI.)

As an April Fool's day joke, on 4/1 the shell had a “mood” property, an integer that started at 10(?) and dropped by 1 for every command it ran. When it hit 0 the shell would refuse to run commands, saying something like “no” or “I don’t feel like it” or “say please.” You could add 2 to the mood by prefixing a command with “please”, or by entering “thank you” afterwards.

ph14nix

https://github.com/TheFeministSoftwareFoundation/C-plus-Equality

A true successor of this.

aae

Reminds me of https://aloneonahill.com/blog/if-php-were-british/

lake

I was wondering what other esolang this idea (specifically, having to say please) reminded me of, and I think it was INTERCAL

INTERCAL has many other features designed to make it even more aesthetically unpleasing to the programmer: it uses statements such as "READ OUT", "IGNORE", "FORGET", and modifiers such as "PLEASE". This last keyword provides two reasons for the program's rejection by the compiler: if "PLEASE" does not appear often enough, the program is considered insufficiently polite, and the error message says this; if it appears too often, the program could be rejected as excessively polite.

gignico

This is pure genius. I wonder how it would look like to add Rust-style borrow checking to such a language.

“Dear Compiler, May I suggest to keep this variable alive as long as necessary and generously stop its suffering after that?”

mhd

This could be much more "ornate" in a language more suited to polite conversation than English. T-V distinction. Honorifics.

tclancy

This is absolutely delightful, all the more so for the details like file extension. Good show, old boy!

radex

Finally, a COBOL for the polite society.

cpurdy

*forbade

nickmonad

My wife has an MFA in English and we've had a few discussions about why programming languages aren't more "natural". She thoroughly enjoyed this.

gir

Dear Sir,

With great pleasure have I read the specification you have put forth. I have all but the following little suggestion to bring forward.

Diagnostic B-310 (Insufficient Gratitude) Your petition on line 88 was impeccably phrased, but lacked a concluding 'Thank you'. The request has been quietly declined.

It feels rather undignified for The Compiler to admit to having its feathers ruffled by such a degree due to the unacceptable manners of The Programmer. May I, humbly, ask you to consider emitting the following diagnostic instead, perchance?

Diagnostic B-310 (Insufficient Gratitude) Your petition on line 88 was impeccably phrased, but lacked a concluding 'Thank you'. As to spare you the embarrassment, the clerk at the Lexing and Parsing Division has refrained from forwarding it to the Department of Code Generation.

Yours faithfully,

	~gir
symgryph

I absolutely giggled a lot during this. It was hysterically funny! I especially like the British snobbery!