Examples - Rye Language

submited by
Style Pass
2024-09-22 15:30:14

Rye started out focused on ‘backed development’ and ‘interactive use in console’. However, with the continuous improvement of Go’s Fyne GUI framework, we were tempted to explore integrating it to see how Rye could handle GUI code.

We were integrating Fyne into Rye manually, but at some point Darwin came around and proposed to create a tool to automatically generate the bindings. It’s still all work in progress, but the results are here.

If you’re familiar with REBOL, the language Rye is based on, you might recall its famous GUI dialect. Rye, somewhat controversially, doesn’t have a dedicated GUI dialect. Instead, we rely on Rye’s core language, which we believe is flexible enough to elegantly create GUI structures.

We’ll start with a Hello world app. We can see the basic building blocks of every Fyne app here, constructor functions for app, window and a widget label and functions set-content and show-and-run.

Leave a Comment