r/ProgrammingLanguages • u/tobega • Apr 21 '26
Blog post Raising the abstraction level in programming languages
In the 1950s, programming languages rose above the level of direct machine instructions to be based on the mathematical models of computation instead.
This is still quite low-level compared to what programmers really want to achieve, which makes code harder to write and review than would be desirable. Making the connection between the code and the program logic more direct would have real economic consequences.
In this essay I take a look at that intent-to-implementation gap and some possible re-imaginings of how things could work.
https://tobega.blogspot.com/2026/04/rising-above-mechanics-of-computation.html
9
u/JeffB1517 Apr 21 '26
I would think if you are going to look at languages that sought to move away from a computational model languages like Go, wouldn't be the focus. Excel, Mathematica, AutoCad/AutoLisp, ABAP (SAP), Cobol, Visual Basic... should be the focus. These languages did break with a computational low-level model. What we see clearly is they used the business domain not the machine as the base. Provide a list of services with good abstractions, make them accessible with a primary focus being interface.
4
u/EducationalCan3295 Apr 21 '26
Very interesting article. I'm curious what do you think about clojure's integrated datalog?
2
u/mamcx Apr 21 '26
Yep, I working on something like this with
https://tablam.org
And now I have expanded the idea with the importance of see the relational model as "better" IO sub-system that will unlock a lot of simplifications to the end-user.
BTW, The dBase family is probably the better approximation to the ideal, and the one that I bet could be enhanced to achieve this ideals.
Are you working in implement the solution? I looking for funding or partners for this!
2
u/Inconstant_Moo 🧿 Pipefish Apr 22 '26
I've seen a whole lot of this discourse about "models of computation based on Turing machines and lambda calculus" and it just isn't true as to fact, that's not what happened.
The people who designed C weren't trying to emulate a Turing machine. The guy who invented the term "functional programming" said that functional programmers wouldn't use lambda functions.
Pipefish is arguably more "functional" than e.g. any version of Lisp or ML and yet if my life depended on me passing the most basic exam in lambda calculus I'd get an F.
4
u/Resident-Letter3485 Apr 21 '26
Really great read!
Even thought LLMs continue to get better, I've always thought they are fundamentally limited not by compute power but the massive context window of even trivial pieces of software.
I think we may see more DSLs come up designed specifically for AI use (and provide a great DX for human use as well, as to your point).
I've been building my own DSL with this theory in mind, you might find it neat. Made a post about it here:
https://www.reddit.com/r/rust/comments/1srd0fk/
9
u/Tasty_Replacement_29 Bau Apr 21 '26
As to why "Method Syntax" (numbers.Where(n => n > 5)) is more popular than "Query Syntax" (from n in numbers where n > 5 select n): I think this is largely due to IDEs giving better autocomplete for the method syntax. I'm not sure thought; I don't know the state of auto-complete for the query syntax, in popular IDEs. That should largely be solvable with a language server, I assume.
(For my H2 database, I have added auto-complete in the web UI for SQL more than 20 years ago, but that was many years before the LSP).
5
u/JeffB1517 Apr 21 '26 edited Apr 21 '26
[On phone went to wrong thread leaving here since referred to in another comment]
Sure. Consider Excel. The world's most popular programming language. Stateless, lazy execution which professionals often accuse of being too hard is routinely learned by people who don't know how to program and not uncommonly at age just past a single digit. Hundreds of millions of people globally define statistical and financial functions in terms of Excel. I can't tell you how many people I've met in areas like insurance who routinely compute NPV (net present value) via the Excel function with essentially no clue how how one would compute it without. That's about as compelling as it can be.
Another example I love to give is my X and a device driver. I've had long time professional programmers complain writing a device driver is beyond them when we needed it for a project, generally on Windows. Conversely my X, non programmer, didn't like the default behavior of a Word, Quicktime and a transcription pedal (physical device). So she wrote an AppleScript changing how OSX processed the pedal embedding desired application behaviors at the OS level. In under 3 hrs and without knowing what a device driver is. That's true user empowerment by successful abstraction.
I could keep going. But the internet is filled with stories like these.
1
u/useerup ting language Apr 21 '26
This is why I am designing my logic, object-oriented language. Like LLMs, humans have a size limit (token limit) on the "context window" - i.e. number of concepts and constraints we can juggle at any one time.
It stands to reason that any benefit we can derive from programming on a "higher level" (leaving out details that can safely be derived from the abstractions) will benefit LLMs as well as humans.
I am convinced that logic programming is closer to that nirvana. Typically in logic programming we say that we focus on the what (intent) not the how (implementation).
2
u/zyxzevn UnSeen Apr 21 '26
The complexity in programming come from interactions with users (and hackers), the hardware and the environment. And mapping this complexity towards a simple programmable abstraction.
The hardware changes a lot. Choices that were simple before, like cards with code, are not useful some time later.
Most languages add additional complexity. I mean complexity that can be avoided by choosing a different language.
Here are some examples of additional complexity: C with memory management. Haskell with a lot of restrictions and a complex type system. Java with its class definitions. Javascript with having no good type system. C++ with everything.
Still working on my own language and system.
I try to solve this complexity by using a graphical system with graphs of various kinds.
In my system I have designed graphs of Dataflow, state, events, modules. And these can be managed with reasonable simple editors. Each time I ask myself: do I add complexity with this feature?
In graphs you can combine the "actors" in events and "functions" in state/dataflow. The modules are necessary to reduce the the size of the graphs. Types and tests are an additional layer.
I want to turn some of the programming into a drag/drop. I played some time with the editor for Flash animations. You can drag/drop behavior onto certain animations. This meant that sprites could move around in a way that you wanted.
The blueprints in Unreal-engine and in Blender are more advanced versions. They can describe how objects in your animations behave and look, like procedural generated landscapes. But they can become rather complex.
How would such a system look like, if you made it into a (dataflow) programming language? That is the idea I work on.
2
u/Cranious Apr 22 '26
Yeah, super interesting. I have been building a language that starts with intent and tries to prove that the author’s intent is represented in the working code. I created something called IAL (Intent Assertion Language) that works somewhat like you describe. IAL is written in natural language and results in verifiable tests that are run against your code. Kind of like TDD and Spec-Driven-Development, but a bit different.
I think this is useful, but I keep going back to the fact that most programmers are very lazy and don’t want to bother with this. We work in very non-linear and disorganized ways and trying to codify a canonical intent of the author into a definitive representation of it in any format is contrary to how most people want to think and work.
Still, I do believe that there is some future in IDD (Intent-Driven-Development). At the end of the day, this is actually what we try to do.
Like Type systems, are they useful if they are only progressively implemented or should they be strictly implemented only? Is that the same with codifying Intent into a specification? How would we know if all of the human intent was captured or if one small thing was missing? Perhaps it is useful even if it is progressively implemented… some drift from intent is possible, but the broad strokes could be captured.
I also added Contracts (or CDD / Contract-Driven-Development) into the language as another attempt to put some guardrails up. I think it helps in some cases.