On Friday, 22 November 2019 at 12:14:58 UTC, Ron Tarrant wrote:
On Friday, 22 November 2019 at 11:05:24 UTC, Antonio Corbi wrote:

My goal is to write X-plat apps in the simplest way possible, using one language (D) and one toolkit (GTK). The world is complicated enough these days in very many ways and this is how I fight back.


I've just tried broadwayd with a very simple window (only a few widgets in it). Actually it is very straghtforward.

- compile your gtkd program as normally you do.
- run broadwayd in your terminal (broadwayd comes with gtk installation) and keep it open like "broadwayd :2". - ":2" represents display number, I don't know the things under the hood though.
- run your gtkd program with some extra environment variables:
  GDK_BACKEND=broadway BROADWAY_DISPLAY=:2 ./mygtkdprogram
- open your browser window http://127.0.0.1:9090

I have tested it on Ubuntu 16.04. It is amazing, there is a D program running on my browser and no webassembly involved :D




Reply via email to