Hacker News new | ask | show | jobs
by kodfodrasz 3686 days ago
Ok, but my question was not about FFI, but writing a GUI app...
2 comments

C is easy to package and distribute. I once built a Python + GTK application for a school project. On Ubuntu that was no problem at all, but on Windows it was a complete mess because I had to bundle Python + GTK for Windows + all their dependencies. I think the result was around 200 MB of dependencies and ~100 kB of actual Python code. C + libui would have been much better in this regard.
The point here is libui can be accessed by other languages—in which one may want to write their desktop application—via FFI.