📜 ⬆️ ⬇️

Pony is a killer ...?

Everyone knows such progressive novices in programming as “Go, Rust, Nim, Crystal” and they are all very cool in their specific areas.

For example:

  1. Go was born as a super simple and industrial language for quickly solving assigned tasks with ideas that are beautiful to everyone, but some of them are nailed to other languages ​​(5mm).
  2. Our second opponent is Rust, the winner in life, but because of his difficult life in development, he has become for the community as a future and fashionable replacement for C ++. For me, his fate is not yet clear, because with green streams and IO under them there is still tight, then I put it in place in a row with C for microcontrollers, drivers and operating systems.
  3. Crystal ... Directly and clearly I say that this is a super productive Ruby clone. There is nothing more to say, he is all imbued with his spirit.
  4. Nim (He is Nimushka or Nimrod) and his similarity to scripting languages ​​create a special atmosphere for him, but inside he is a rather complex organism and for me this is an entity like Haxe with the same sensations when programming on it.

And Pony is my favorite and little pony. With the appearance and the name of the language, you can famously pass by ... In general, I invite you under the hood of the article.

This is just the beginning.


Preliminary I will tell a little about myself in order to create a special atmosphere for you to understand the language and its possible applications.
')

Now you know all my secrets, you can continue our interesting story in the world of beautiful Pony.

Language and brief educational program


image
This is the very cheerful breadwinner and he looks more like a rabbit

Pony is an object-oriented programming language built primarily on the model of actors and transparent competitiveness. In its additional advantages, such concepts as “Open-source, performance, interesting ideas” rub. The main focus is on a multi-core system, modern development without thinking about the low level and very productive competitiveness.

Opportunities


Language Brief

Type system:



Standard expressions:



Opportunities:



The attractiveness of the language


Garbage collector

On board, we have a very cool GC, which is completely competitive and does not have Stop the World. In fact, there are 2 of them, one is a link collector for each created actor and one is global.

Actor speed

Thanks to a guy like Dima Vyukov, who made a huge contribution to the lock-free algorithms and Go, a base appeared, which Pony focused on when developing the communication of actors. And that is why now the transfer rate between actors reaches 20kk per second, and the creation can reach 1kk per second.

Transparent competitiveness

I gave this concept myself and was surprised when, in order to make the code competitive, we would only need to change the name of the function. This method is even more modern than provided by Go with its own gorutines.

Peaper



Status and additional links


The language is in the status of a distant beta, now the language version is 0.2.1. The developers are currently completing the remaining planned features, fix bugs and stabilize the language. There are plug-ins for almost all popular editors.



Thank you for reading the article and may be interested in the language.

Source: https://habr.com/ru/post/269885/


All Articles