Sunday, October 19, 2025
Show HN: Hokusai Pocket (WIP) – Portable GUIs with MRuby https://ift.tt/wngf1kv
Show HN: Hokusai Pocket (WIP) – Portable GUIs with MRuby Whassup?, A couple years ago, I started a project for easily authoring GUIs with Ruby. The project is named Hokusai. It features the ability to compose reactive UI components with events and props, and uses a unique-ish template language. More information on Hokusai can be found here: https://ift.tt/EhUzQC2 Since then I've worked on Hokusai Native ( https://ift.tt/QLctvzK ), which compiles a GraalVM native image / TruffleRuby version of Hokusai that can run / interpret these lil' gui apps. It's quite bloated though, as it has to ship all of truffle ruby + native image and supporting libs. Recently, I applied for a grant to develop a more portable version of this library using MRuby, and got pretty far while waiting for the results. It is named Hokusai Pocket and I consider it to be the final form/approach of this project. I wrote a builder in crystal-lang that embeds the entire Hokusai ruby code as MRuby bytecode, as well as the supporting C code. It can scaffold new projects by building tree-sitter/mruby/raylib, and outputs a binary from a source ruby file. It produce pretty small binaries (~3mb for MacOS) and uses raylib as the rendering engine. For an gif and example of a Hokusai Pocket demo please direct your mouse clicks to this gist: https://gist.github.com/skinnyjames/b510185c6bd83fd4e1a41324... I'd love to hear how this project plays for people. Still working on building for different targets, but android and web should be possible. The project is still undergoing active development, but any help is appreciated. The license is MIT. There also is a discord channel if you want to get help / chat / collaborate: https://ift.tt/Q2W54an _ (^) (_\ |_| \_\ |_| _\_\,/_| (`\(_|`\| (`\,) \ \ \,) | | \__(__| https://ift.tt/9UZBtPC October 20, 2025 at 07:00AM
Subscribe to:
Post Comments (Atom)
Show HN: Rewriting Scratch 3.0 from scratch in Lua (browser-free native runtime) https://ift.tt/5Af6h7W
Show HN: Rewriting Scratch 3.0 from scratch in Lua (browser-free native runtime) Built a native Scratch 3.0 runtime in Lua that runs .sb3 pr...
-
Show HN: An AI logo generator that can also generate SVG logos Hey everyone, I've spent the past 2 weeks building an AI logo generator, ...
-
Show HN: I Made an AI Social Media Manager to Automate Content Creation Hey HN, I am a Solopreneur, and I love building apps to automate bor...
-
RoboPianist, a piano playing robot simulation in the browser https://ift.tt/zywcBo6 March 30, 2023 at 10:52PM
No comments:
Post a Comment