Skip to content

Last Week in Pony May 14, 2023

Although not a ton happened in the world of Pony this week, this is still a very special day. One of my favorite days of the year: “Shaft Day”. That glorious day that we all gather together with our loved ones and listen to the music of Isaac Hayes and celebrate his glorious musical legacy.

And remember, Isaac pairs well with Pony so… be sure to program some Pony today while you are working on getting to Phoenix.

Items of Note

Pony Development Sync

Audio from the May 9th, 2023 sync is available.

The May 16th development sync has been cancelled as no core team members are available to host.

Office Hours

We have an open Zoom meeting every Friday for the community to get together and well, do whatever they want. In theory, Sean T. Allen “owns” the meeting and will often set an agenda. Anyone is welcome to show up and participate. Got a Pony related problem you need help solving and prefer to do it synchronously? Give Office Hours a try.

We had a few attendees for Friday’s Office Hours. Most of the time that your reporter was in attendance were spent helping Victor Morrow get the FFI interface for an application of his correct.

The important takeaways for others? On “the C-side” of the Pony/C FFI boundary, a Pony struct is always a pointer to the struct. And if you want to pass an array of Fu struct, you want a pointer to a pointer on the “C-side”.

We love Office Hours were we help people solve problems. Learning Pony? Otherwise stuck on something, come on by!

If you’d be interested in attending an Office Hours in the future, you should join some time, there’s a calendar you can subscribe to to stay up-to-date with the schedule. We do our best to keep the calendar up-to-date.

Community Resource Highlight

We like to take a moment in each Last Week in Pony to highlight a community resource. There are many community resources that can go unappreciated until just the right time when someone hops into the Ponylang Zulip asking a question or facing a problem we have all had at one time or another. Well here in Last Week in Pony, we make it just the right time to highlight one of our excellent community resources.

This week we are going to look at Pony Arithmetic within the Tutorial. Specifically, I want to draw your attention to the default (safe) arithmetic being safe while there is also an option for unsafe arithmetic. What is the difference? By default, Pony arithmetic properly handles overflow, underflow, and division by zero (the last of which is defined to return zero). If raw performance is desired and you can guarantee safety yourself, use the unsafe arithmetic. What should you do if you want something in between? Arithmetic that errors on overflow, underflow, and division by zero rather than the default safety decisions or undefined behavior: we also have partial arithmetic operators. Pony has many ways to conduct arithmetic operations, choose the one that is correct for your use case!

If you have questions, feel free to visit the Ponylang Zulip, where the best place to ask questions about Pony arithmetic is the beginners-help channel.


Last Week In Pony is a weekly blog post to catch you up on the latest news for the Pony programming language. To learn more about Pony, check out our website, our Twitter account @ponylang, or our Zulip community.

Got something you think should be featured? There’s a GitHub issue for that! Add a comment to the open “Last Week in Pony” issue.

Interested in making a change, or keeping up with changes to Pony? Check out the RFC repo. Contributors welcome!