Alex Maryin
1 min readMay 4, 2022

--

I am sorry if it has seemed like insults. I like Pascal, I used it for a long time in my youth and then, for a work, when I was building a big distributed desktop app with database and dozen of reports, forms, etc.

If you use C# you should be familiar with functional benefits it has. As well as Kotlin. Freepascal doesn't have similar generic data structures from the box: no lists, no stack, no queue, no trees, no heap, nothing. You may use it only from libraries like fgl or delphi.generics, but you still should wrote a lot of boilerplate.

My goal here is to show that Kotlin, very young language, is able to get comparable performance with old languages like C++ and Pascal and gives all modern benefits of IDE for code analysys, code completing, refactoring, etc. Thus, the development process becomes much more pleasant and faster.

It's very strange that Lazarus can't even fix some typos like <=> instead of <:=> or <'> instead of <"> until now! I even don't ask for autocomplete variables, classes names in present namespaces that is too easy and doesn't eat any of CPU and memory.

That first example with math isn't so revealing, but the next one, I hope, will be better, because we will use data structures, objects and functional style for the fastest openGL drawing.

--

--

Alex Maryin
Alex Maryin

Written by Alex Maryin

My profession is lawyer, but I like programming for a whole my life. It started since 90's with ZX-spectrum, and now I fan of Kotlin, Python, Pascal & C++.

No responses yet