5 ms·
I just spent 5 min going through the website reading about pony and its goals and use cases. I still have no idea what actual Pony code looks like and I'm not
by cultofmetatron 6y ago
I just spent 5 min going through the website reading about pony and its goals and use cases.
I still have no idea what actual Pony code looks like and I'm not sure where to click to find it.
I even clicked the link "learning pony." Of all the places to see at least a hello world, I'd like one there please.
When I am checking out a language for the first time, I like to at least see a sample of what I'll be committing to writing for the next few months.
go lang as a sample you can run on the home page! rust used to but you can still press playground to get it.
- makeworld 6y agoI agree, but for anyone who's looking, here's the Hello World page. https://tutorial.ponylang.io/getting-started/hello-world.html https://tutorial.ponylang.io/getting-started/hello-world.htm...
- ajkjk 6y agoHmm > Pony doesn’t care about filenames other than that they end in .pony. But it might matter to you! By giving files good names, it can be easier to find the code you’re looking for later I cannot imagine anyone is going to be learning to code from the first time from this Hello World page. Although, the rest of the page is very much not for beginners, so maybe this was a fluke. Often with new programming languages I wish they would present themselves in the form "Here's what you need to know about this language if you're already a professional developer" instead of an actual tedious tutorial.
- dkarl 6y agoThat comment might be for programmers coming from languages where filenames do matter to the compiler, or languages like Java where the convention is so universally followed that many programmers don't know you can break it. Someone programming for the first time already "knows" that filenames don't matter, so it's probably not for them.
- Kwpolska 6y agoIn Java, the “each public class is in its own file named after the class” rule is enforced by the compiler and there’s no switch to disable this behavior.
- dkarl 6y agoI guess that shows how uniformly the convention is followed that I wasn't aware of that! I remember finding a class in a PR that had been renamed without renaming the file, and we were surprised it compiled. It must not have been a public class. $ echo "class Bar { }" > Foo.java $ javac Foo.java $ ls Bar.class Foo.java $
- pjmlp 6y agoThat is not a public class. If you don't specify any access modifier, it is the same as internal in .NET.
- pjmlp 6y agoTrue, but many don't realize that package private and "friend" classes can share the same source file.
- openfuture 6y agoGood thing we had you here or there'd have been no world to say hello to.
- mcguire 6y agoPony has a playground... https://playground.ponylang.io/ https://playground.ponylang.io/ ...but the example isn't very enlightening. Here's a networking example: https://github.com/ponylang/ponyc/tree/master/examples/net https://github.com/ponylang/ponyc/tree/master/examples/net with the Main being in net.pony and the rest being the infrastructure. And here's the start of an HTTP 1.1 app server (basically, just the HTTP parser at this point). https://github.com/tmmcguire/shetland https://github.com/tmmcguire/shetland