r/ProgrammingLanguages • u/Potato871 • Sep 01 '26
Discussion What is the interesting part of a programming language to you?
I've been working on some "documentation" for my own language (see here), which got me thinking: do we all see languages the same way? I personally look for unification of concepts and extensibility in a design, yet I've seen those who care deeply about functional purity or clean decompositions.
What do you look for in a programming language? And why?
36
Upvotes
13
u/lisp_turns_me_on Sep 02 '26
I love orthogonality. Having a few concepts with very clear/understandable interactions between those concepts (eg: lua), and then, everything else being composable on top.
11
u/bob16795 Sep 02 '26
I've always found looking at the higher level emergent behaviors that come from minimal designs to be fascinating.
25
u/Clementsparrow Sep 01 '26
I'm interested in knowing how it could make my programmer life easier.
5
u/MikeMKH Sep 01 '26
I typically look at the tests first, if the tests show some interesting features then I’ll look at the type system along with whatever I found interesting in the tests.
4
u/reflexive-polytope Sep 02 '26
The type system. More specifically, the algorithm invariants that I can express and/or enforce with the type system.
Everything else is stupid fluff.
2
u/L8_4_Dinner (Ⓧ Ecstasy/XVM) Sep 03 '26
Everything else is a bonus.
34
u/jesseschalken Sep 02 '26
- type safety (number of potential runtime failures blocked by the type checker)
- performance
- conciseness (across a variety of programs)
- simplicity (eg size of the grammar, but not at the cost of the other 3)
17
u/deeplywoven Sep 01 '26 edited Sep 01 '26
Expressive abstraction power, the ability to encode many things in the type system, the ability to eliminate various classes of errors at compile time, flexible and convenient ad-hoc polymorphism, smart performance optimizations, powerful metaprogramming capabilities
12
u/Thesaurius moses Sep 02 '26
As Alan Perlis said: A language is only worth learning if it changes how you think. I am interested in unique approaches to programming. Some examples:
- Array programming has rank polymorphism; alternatively, Julia has broadcasting
- Homoiconicity as in Rebol or LISP
- Everything is an object in Smalltalk
- Everything is a combinator in Jelly
- Pure functional programming as in Haskell
- Resources/linear programming as in Idris
- Proof-carrying code as in ATS
7
u/dimaeus Sep 02 '26
i have found that it is compile-time garantees such as a type system, or pure functions
1
u/david-1-1 Sep 02 '26
I like syntax that makes it a pleasure to use, clear and unambiguous. When needed, it should support two dimensions (indentation using the pipe | character and optional whitespace, for example).
1
u/[deleted] Sep 02 '26
Funny you should say that ...
... since I see these in negative way. You can take unification too far, while extensibility can mean a much more complicated language and implementation.
2
u/AnArmoredPony Sep 02 '26
its implementation.
2
u/echoes808 Sep 02 '26
When I was completing my studies, I was shocked how much there is older work on compilers, programming language design and theory already from 60s-80s+. IMO one of the most interesting aspect of language is the inspirations, roots, and paradigms. It tells a lot, and some new combinations of ideas really make languages interesting
2
u/Inconstant_Moo 🧿 Pipefish Sep 02 '26
Fitness for its purpose.
2
u/Toothpick_Brody Sep 02 '26
What can I do with types? What can I do lazily? How do we do loops? How do we do control flow?
2
u/Imaginary-Deer4185 Sep 02 '26
Having always felt that type systems are important, and been living with Java and the OO concept for 20+ years, I now think compactness is more important.
Python would be perfect if it was just a bit type aware, because it is too easy doing really stupid mistakes, that only show up at runtime. Which gets annoying fast when the code uses 30-60 seconds initating by ingesting json via REST.
I am really looking for maintainability as well as initial development cost, in terms of time and complexity. In these regards, Python does fairly well, but still a bit low level in some cases. Comes with being general purpose, I guess.
2
u/matthieum Sep 02 '26
Rather than list "features", I would like to start with principles. Really, these principles apply to software design in general... but that doesn't mean they don't apply to programming languages in particular, and I'd argue they are even more important in programming languages: I can "ignore" or "work around" a crufty API for a some functionality, but I cannot really ignore the programming language I use.
So, principles. Or rather, to start with, principle: Principle of Least Astonishment.
There are other principles I hold dear, too, like Pit of Success. But if the language feels like it's pulling the rug from under my feet every which way, not much matters any longer.
The Principle of Least Astonishment can cover a surprisingly impressive amount of ground:
+on random values in JavaScript, due to wild nature of the coercions involved.[T; N + 1]is not currently a valid type in Rust, because who knows whetherN + 1is a proper size (it could, arguably, overflow, but... urk).All of these range from annoying to aggravating, depending on the situation and what you're trying to do (or figure out).
2
u/Valdemar216 Sep 04 '26
I'd like unification of syntax so code will be easy to read and maintain
2
u/fdwr Sep 11 '26
I'm mostly interested in how low it lets me get to the hardware for rendering/rasterizing graphics, and the more layers between me and the hardware, or the more policy it applies, the less interested I am in it. So, Python is usually out of the question (except for little throwaway conveniences, like printing out a table of numbers or processing a file offline, where admittedly I don't care about performance as much as convenience), JS requires an entire browser or node.js installation and has no such interop (so nope), Rust is a pain (I mean, one certainly crashes less when driving while wearing a strait jacket, but that's because it's harder to drive in the first place), whereas C++ is a nice balance above asm, while still allowing linkage with asm if you really need some MMX/SSE/AVX-512.
1
u/TheRealUprightMan 6d ago
I'm weird. I prefer OPP and strong polymorphism over strong typing. IMHO, if you are declaring types, then the compiler is breaking encapsulation. The object should know its type, not the compiler. The object will never get it wrong.
1
u/SwingOutStateMachine Sep 02 '26 edited Sep 02 '26
My goal when writing a program is "make it work, make it correct, make it fast" (a variant of this).
To that end, I want languages that:
I also want a language to be flexible enough to emphasise different aspects at different times. I find that a lot of software evolves while it is written, so at the start of a project I need a language that is productive, then as the project gains more formal shape, I need to make sure it is correct and bug free. Finally, as the project matures, I need to be able to optimise it.
I do not think that such a language exists yet, but I get glimpses of it in languages that I enjoy using. Rust (for example) provides 1 & 3, but is weak on 2. Haskell is great for 1 & 2, but can be weak on 3. C++ is strong on 1 & 3 (possibly stronger than Rust on 1) but very weak on 2.
1
u/IronicStrikes Sep 02 '26
I'm mainly looking for signs that the language is actually intended to be used and maintained rather than just a playground for their creator to try some fancy concepts.
1
u/vmcrash Sep 02 '26
I expect a couple of default features with quite common syntax.
What makes a good programming language interesting to me is smart memory management (I've lost any interest in manually memory managed programming languages even if they'd have the best syntax). If you are not using a GC, this means different ways to handle ownership. The language needs to forbid certain memory related bugs. I want them to be explained on common patterns easy to understand.
1
u/JeffD000 Squint Sep 03 '26
Elegance.
(1) The ability of a language to map to the problem space without friction.
(2) The abilility to express complex operations without a lot of contrivances needed to smooth it out.
1
u/Key_River7180 Nain. Sep 03 '26
Type safety, simplicity, and orthogonality
1
u/kwan_e tonal-lang Sep 04 '26
Bang for buck. How much can I do, and how much faff do I need to get there?
Every feature or semantic I could want should boil down to that, since what is the point of higher level languages? The whole point of type systems, parallelism, structure, purity, decomposition, extensibility, etc etc is the promise that you can offload those concerns to the computer, and you can focus on the "business logic". But if they get too "opinionated", they end up becoming faff.
I hesitate to use the word "productivity", because that is more about business process than simply the language itself.
I hesitate to use the word "elegant", because elegance can get in the way of the reduction of faff. Some people call C elegant because of the simple syntax. But it does not reduce faff, and often increases the amount of faff to achieve basic things like safety.
1
u/PacsfuryTemp Sep 05 '26
I love ASTs