Hyperlambda is a declarative programming language. This implies it's less than 10 percent of the codebase to traditional programming languages such as Python and C#. Below is a simple CRUD read endpoint to illustrate the difference.
The above code snippets are both doing the same thing, which is to connect to Chuck Norris API, and return a joke to the caller. This is the type of code you'd write if asked to integrate with a 3rd party API, and you've probably written it 1,000 times if you're an experienced dev head. The problem is that if you write it in Python you end up with 24 lines of code, using 188 tokens. In Hyperlambda is 4 lines of code, and 30 tokens.
Complexity
If we choose to believe that token count is roughly equivalent to "complexity", this implies Python is 6.27 times as "complex" as Hyperlambda. If you don't believe that tokens equals complexity, do me a favour, and show this code to a "citizen software developer" and ask what it does.
Regardless of how much experience you've got as a Python developer, the Hyperlambda example will always be considered more "readable" and more easily understood.
This is because tokens equals "cognitive noise", and the less you've got, the more maintainable your codebase becomes. In the video below I'm discussing the importance of tokens, and comparing Hyperlambda to Python, and even some C# scattered around.


Top comments (0)