Live data from Hacker News

Pony: An actor-model, capabilities-secure, high-performance programming language

ponylang.io

151–160 of 284 posts

Re: Pony: An actor-model, capabilities-secure, high-performance programming language

#151

I wish these language websites would put an example of some code right there on the homepage so I can see what the language "feels" like. I finally found some code in the tutorials https://tutorial.ponylang.io/getting-started/hello-world

I've always loved Factor's homepage, which includes a random snippet of non-trivial (i.e. small but not ‘hello world’) code: https://factorcode.org/

Re: Pony: An actor-model, capabilities-secure, high-performance programming language

#152
post #21

Earlier quoted context omitted.

Yea but the syntax looks like a mix of Python and JavaScript. By just seeing that I know I don’t want to use it, by seeing the code up front I know that I don’t want to keep reading what ever rationalizations they have to justify the existence of this language. So by seeing the syntax up front I can save a lot of time because in a world where there are many languages that do the same thing it really boils down to usi…

> in a world where there are many languages that do the same thing it really boils down to using the one with the syntax that you like the most Wat? If all languages were just syntax re-skinning, we really wouldn't need more than one compiler backend... Generally the semantic differences are much more important. Rust isn't interesting for its syntax, it's interesting for its ownership rules and borrow checker. Erlang…

I agree and disagree completely with this statement. Syntax is superficial. It is the first thing that people will notice about the language (unless you hide it from them). One quickly notices that if you don't like a language syntax, you can always write a compiler that operates at a purely syntactic level to transform your desired syntax to the actual target language.

But just because syntax is superficial doesn't mean that it isn't important. If a language has such poor syntax that I feel the need to write my own compiler to work around its syntax, I have to seriously question the skills and/or motivations of the author. If I am capable of writing a compiler at the syntactic level, why not just go all in and write my own compiler that implements _my_ desired semantics? A language that I find subjectively distasteful at the syntactic level is nearly guaranteed to be filled with semantic and architectural decisions that I also dislike. Consider Rust, I do not think that its syntax and abysmal compilation times can be decoupled. I would rather write my own borrow checker than subject myself to writing rust. And the reason is not the syntax, which I do strongly dislike, but the semantic properties of the language, such as horrible compilation times and compiler bugs (if a language has more than 100 open issues on github, I consider it broken beyond repair).

Re: Pony: An actor-model, capabilities-secure, high-performance programming language

#153
I love the syntax for checked math. a + b for wrap around, a +? b to raise an exception on under/overflow, and a +~ b for maximum performance, leaving behavior on under/overflow undefined (including floats having undefined behavior on +-Inf and NaN).

Compared to e.g. Rust (one of the better modern examples of easy rigorous math) I really like how concise they are. What I'm missing are saturating operations. I know some people find them useless, and through a "perfect results" lens they are, but they still give you the closest representable number. And they are often intuitive for humans since that's how most analog instruments work

Re: Pony: An actor-model, capabilities-secure, high-performance programming language

#154

I wish these language websites would put an example of some code right there on the homepage so I can see what the language "feels" like. I finally found some code in the tutorials https://tutorial.ponylang.io/getting-started/hello-world

I wish these new languages would put an elevator pitch on first page.

Why another object language?

Re: Pony: An actor-model, capabilities-secure, high-performance programming language

#155

I love the syntax for checked math. a + b for wrap around, a +? b to raise an exception on under/overflow, and a +~ b for maximum performance, leaving behavior on under/overflow undefined (including floats having undefined behavior on +-Inf and NaN). Compared to e.g. Rust (one of the better modern examples of easy rigorous math) I really like how concise they are. What I'm missing are saturating operations. I know so…

It's interesting that Rust and Pony have différent default for addition.

Re: Pony: An actor-model, capabilities-secure, high-performance programming language

#156

Earlier quoted context omitted.

See: https://www.ponylang.io/discover/why-pony/ I don't think that Pony is claiming to be novel in the area of syntax?

If “reference capabilities” are the important thing about Pony, they should have a max 100-200 LoC example on the front page that uses them. As far as I can tell reading here, “reference capabilities” don’t do anything that properly-used C semaphores haven’t done for near half a century. Or that their abstraction of that isn’t nicer to use than, say, Elixir’s, or better than Rust’s borrow checker for managing mutabil…

A high performance Actor-based language is fairly unique. Pony is also very fast for a garbage collected language.

Also the syntax is great, probably my favourite language ever syntactically. Dunno why there's a pointless argument about it in these comments...

The reference capabilities are fairly novel as well. Apart from the lack of tooling, writing in Pony is great.

Re: Pony: An actor-model, capabilities-secure, high-performance programming language

#157
post #41
post #13

This is probably my favorite programming language I would like to use if it had more backing. Their reference capabilities in particular seem like a very good match for the actor model. Alas, it does not appear to have a large corporation behind it pushing it forward, nor a compelling niche use case (e.g. it is still GC'd).

I loved playing with this a few years ago, but have lost track of it for a while. The causality model was great, but is there a way to handle backpressure now?

I was randomly looking at examples and I think this is one showing that: https://github.com/ponylang/ponyc/blob/main/examples/under_p...

Re: Pony: An actor-model, capabilities-secure, high-performance programming language

#159

Earlier quoted context omitted.

The D language home page has something similar with a drop down with code examples https://dlang.org/

I was about to mention Dlangs website aswell, very well designed and clearly presents the language

I remember the first time I visited the DLang website. I clicked “What is D used for?” [0] and scrolled to the very first section, “1. Industry.” The opening example was “1. Games,” so naturally I went to read more…and found the first link, “AAA game,” was dead. It led straight to an error page on Xbox.

That was years ago. After reading your comment, I decided to check again. The same “AAA game” link is still first, and it’s still broken.

You can’t really call that “a good presentation of a language” when the very first real-world example links to nowhere—and nobody’s bothered to fix it for years.

[0] https://dlang.org/areas-of-d-usage.html

Re: Pony: An actor-model, capabilities-secure, high-performance programming language

#160

I wish these language websites would put an example of some code right there on the homepage so I can see what the language "feels" like. I finally found some code in the tutorials https://tutorial.ponylang.io/getting-started/hello-world

Agreed. Pony even has nice syntax. Web page is pretty bad though.
Post reply on HN