7 ms·
For a moment I thought there was actually a new language called $LANG, which would have been wonderful.
by chuckadams 10mo ago
For a moment I thought there was actually a new language called $LANG, which would have been wonderful.
- trollbridge 10mo agoI was thinking how it would be odd to have a programming language called en_AU.UTF-8.
- mixmastamyk 10mo agoecho “G’day World!”
- edoceo 10mo ago*G'day mate
- anotherevan 10mo agodrawl “G’day mate.”
- dghf 10mo agoAll error messages begin "Strewth!"
- trollbridge 10mo agoThe localisation guide for IBM VisualAge C++ went through an example of defining a new language called “Texan”, and then replacing “Hello World” with “Howdy”.
- Lammy 10mo agoThere's a language called SLang inside Goldman Sachs used for their SecuritiesDB, and that's how I read it at first glance even with the dollar sign lol https://en.wikipedia.org/wiki/Michael_Dubno#SecDB https://en.wikipedia.org/wiki/Michael_Dubno#SecDB
- dang 10mo agoI wonder what a program written in that language looks like.
- rayxi271828 10mo agoSlang? The IDE looked like Turbo C++ of old (blue, text based interface). Shortcuts are weird, so you need to remap keys to get sane defaults. Probably the most unique feature is that the language supports spaces in identifiers. So you'd have variables like "Option Portfolio Risk" or functions like "Calculate Estimated PnL". Visually obviously different from Python, but it gave me Pythonic vibes. It's also nice that it supports preconditions, so you can specify the valid range of arguments etc. It has some kind of OOP support but tbh it felt bolted on (understandably). But the most value adding, IMHO, is the DevEx and deep integration with SecDb. Say what you want about the DOS-like IDE and the old (20+ years old for sure, maybe 30+) language, but you can deploy your code SO easily into production, with guardrails in place. Out of curiosity, I implemented a toy language (thanks to Robert Nystrom's Crafting Interpreters) that supports spaces in identifiers (https://github.com/rayfdj/gaul-lang https://github.com/rayfdj/gaul-lang) as well. Makes for an interesting weekend coding project, and it helps me understand more the tradeoffs that Slang designers must have gone through.
- andrekandre 10mo agofn Calculate Portfolio Risk(Initial Investment, Risk Factor) { let My Very Special Adjustment = 0.95 Initial Investment * Risk Factor * My Very Special Adjustment } that is so cool; this is actually something i've been looking for a long time and jam karet looks interesting; `if input ~= "yes"` made me smile. i also liked the keyword replacement for multiple languages as well, that could be super usefull for children learning programming i'd think!
- rayxi271828 10mo agoThank you for the kind words! I had great fun implementing it. Robert Nystrom is such a hero for writing Crafting Interpreters.
- null_onset 10mo agoThe $LANG programming language, where the keywords are all just in-jokes that change from week to week.
- cvoss 10mo agoLikewise. Thought it'd be pronounced "slang", and thought the semantics would be you define LANG=<name of a language> at the top of the file (like a hashbang) and then write in whatever language you please. $LANG is a neato language because it has all the coolest features rolled into one unified design: polymorphic lifetime borrowing, endofunctor monoid monads, (stacked) coroutines, and even quantum data types.
- fermigier 10mo agoThere was a Linux distribution (briefly) called "$DISTRO". Known today as "Ubuntu".
- Radle 10mo agoSame! My first thoughts: "Is this language pronounced Lang or Slang? Slang is actually a cool name for a new programming language..."
- hmry 10mo agohttp://shader-slang.org/ http://shader-slang.org/ agrees
- jcynix 10mo agoThere has been https://en.wikipedia.org/wiki/S-Lang https://en.wikipedia.org/wiki/S-Lang for ages, ... And even much older: https://en.wikipedia.org/wiki/S_%28programming_language%29 https://en.wikipedia.org/wiki/S_%28programming_language%29
- deleted 10mo ago[deleted]
- hashmush 10mo agoI use that every day at $WORK!
- librasteve 10mo agowell Raku has the Slangify module https://raku.land/zef:lizmat/Slangify https://raku.land/zef:lizmat/Slangify
- blumenkraft 10mo agoGoldman Sachs does have a language called Slang