Runtime options for Pony programs ponyc , the compiler, is usually called in the project directory, where it finds the .pony files and its dependencies automatically. There it w...
Behaviours Message Passing Concurrent Sequential Why is this safe? Actors are cheap Actor finalisers An actor is similar to a class , but with one critical difference: an ...
Declaring Entities Declaring Entities Entities are Python classes which store an object’s state in the database. Each instance of an entity corresponds to a row in the database ...
Pony’s type system is what makes it special. There’s plenty to love about it otherwise but, in the end, it’s the type system that contains much of what makes Pony novel. In this c...
Trust boundaries Safe packages We mentioned previously that the C FFI can be used to break pretty much every guarantee that Pony makes. This is because, once you’ve called into ...
This chapter will get you up and running with Pony from installing the compiler to running your first program. As you work your way through this tutorial, you’ll likely come acro...
Every programming language has gotchas. Those “wat” moments that make us all laugh when someone does a presentation on them. They often shoot to the top of sites like Hacker News ...
Declaring a JSON attribute Declaring a JSON attribute For declaring a JSON attribute with Pony you should use the Json type. This type can imported from pony.orm package: fro...
Working with multiple databases Working with multiple databases Pony can work with several databases simultaneously. In the example below we use PostgreSQL for storing user info...
Apply Create Combined create-apply Update Pony allows you to omit certain small details from your code and will put them back in for you. This is done to help make your code l...