from Hacker News

Building a hybrid native application with Gleam and Tauri

by wezm on 2/19/24, 9:51 PM with 19 comments

  • by dcre on 2/20/24, 12:08 AM

    Recently learned about Gleam and am very interested in it as someone who always wanted to like Elixir but dislikes the Ruby syntax and lack of static typing. Love this approach to demonstrating the language in context.

    As a mostly frontend dev I feel it’s worth mentioning that while it’s a nice way to try Gleam, the Gleam aspect of this is inessential, TypeScript is quite good, and using create-tauri-app with the react-ts, vue-ts, or svelte-ts preset is also a great way to try making cross-platform GUIs with Tauri. It uses Vite under the hood, and the generated app is extremely minimal — nothing like the awful create-react-app behemoths that probably left a bad taste in everyone’s mouth.

  • by manusachi on 2/19/24, 10:41 PM

    For those who is interested, as mentioned in the article, Gleam is already near v1 (v1.0.0-rc2)! And in a recent talk[1] Louis shared the idea, that there won't be major changes to the language anymore, and the main focus now is switching to the tooling!

    https://www.youtube.com/watch?v=clsTrQUt-4M

  • by endigma on 2/20/24, 12:16 PM

    You should disable overflow scroll for your code blocks its bad UX on mobile to get scroll trapped in a code block (iOS/Safari)
  • by anentropic on 2/20/24, 12:33 PM

  • by brigadier132 on 2/20/24, 12:18 AM

    Oh wow, I did not know they developed a js backend for it.
  • by jasonjmcghee on 2/19/24, 10:30 PM

    Heads up, the link to the code repository at the top of the post 404d for me.