GenericJam

GenericJam

Mob 0.9.17, 0.9.16 and 0.9.15 has been released.

Added

  • Async work in screens, the LiveView way. Mob.Socket.start_async/3 runs
    a function in a task linked to the screen and delivers {:ok, result} or
    {:exit, reason} to the new optional handle_async/3 callback, so a screen
    can render a loading state (a spinner, or skeleton boxes) and fill it in
    when the data arrives. A crashing task does not crash the screen, and none of
    the task’s messages (:DOWN, the link’s :EXIT) reach handle_info/2.
    Starting a name that is still running replaces the older task and only the
    newest reports. Mob.Socket.cancel_async/3 always stops the task; its
    reason is only what handle_async/3 receives as {:exit, reason}. A
    screen’s tasks stop when the screen does, including a
    stop with reason :normal. Mob.ScreenCase.render_async/2 awaits them in
    off-device tests. Mirrors LiveView’s start_async/3, handle_async/3,
    cancel_async/3 and render_async/2. See decisions/2026-10-09-screen-async-tasks.md.
  • Docs for AI agents, in the package and on hexdocs. The Hex package now
    ships guides/ and a new usage-rules.md, so an app has
    deps/mob/guides/*.md and deps/mob/usage-rules.md matching its exact mob
    version (mix usage_rules.sync picks the rules file up). usage-rules.md is
    the short version: screens, async loading, lists, navigation, testing, and
    where the docs are. It is also on hexdocs as “Usage Rules for AI Agents”.
    A new guide, Coming from Phoenix LiveView,
    maps assign_async, start_async, streams, phx-click, navigation and
    LiveViewTest to Mob. Guide titles name what they cover (llms.txt lists
    titles only), e.g. “Screen Lifecycle & Async Loading”. The README has a “For
    AI agents” section, and guides/agentic_coding.md says where an app’s agent
    finds the docs.

Fixed

  • Docs: async loading and pagination examples. The pull-to-refresh and
    infinite-scroll patterns in guides/events.md started a Task.async/1 and
    never handled its reply, so :loading/:refreshing never cleared; they now
    use start_async/3. The infinite-scroll example used on_end_reached on a
    <Scroll> and matched {:end_reached, tag}. on_end_reached is a
    <LazyList> prop, and it delivers {:tap, tag}. guides/screen_lifecycle.md
    documents handle_async/3 and that slow work in mount/3 delays the screen’s
    first frame.
  • Docs: broken and wrong links. The Mob module doc linked
    guides/getting_started.html and guides/architecture.html, which 404 on
    hexdocs. guides/agentic_coding.md linked the repos’ AGENTS.md on a
    main branch that doesn’t exist (it’s master).

Link: Release 0.9.17 · GenericJam/mob · GitHub


Added

  • MOB_NODE_HOST: the host a physical iPhone’s node is named after
    (MOB-428). A device build names its node <app>_ios@<WiFi IP> whenever
    the phone has WiFi; when that WiFi is a network the Mac can’t route to,
    the only path is the USB cable (the link-local 169.254.x.x address), and
    the node, though its EPMD answers over the cable, could never be dialled.
    mob_beam.m now takes MOB_NODE_HOST when it is one of the phone’s own
    IPv4 addresses (anything else is ignored) and otherwise keeps WiFi →
    link-local → loopback. mob_dev 0.7.18’s mix mob.connect passes the
    address it reaches the phone at. The choice lives in
    ios/mob_node_host.h, covered by test/native/node_host_test.c. See
    decisions/2026-10-09-ios-node-host-override.md.

Link: Release 0.9.16 · GenericJam/mob · GitHub


Added

  • Plugin self-test contract (MOB-411). Mob.Plugin.SelfTest is a
    behaviour with one callback, run(%{platform:, device:}) :: :pass | {:fail, reason} | {:skip, :needs_hardware | :needs_user | reason}. A
    plugin names its implementation in the manifest as selftest: Module;
    mix mob.selftest (mob_dev 0.7.17) and mob_ci call it on the device
    over distribution for every activated plugin. A pass means the test got
    a real answer back from the plugin’s native code, not that a module
    loaded. Mob.Plugin.SelfTest.result?/1 says whether a term is a valid
    result. See MOB_PLUGINS.md (“Self-test”) and
    decisions/2026-10-08-plugin-self-test-contract.md.

Link: Release 0.9.15 · GenericJam/mob · GitHub


Mob Info

Classification: Hybrid Mobile Framework
Description: BEAM-on-device mobile framework for Elixir. OTP runs inside your iOS and Android apps — embedded directly in the app bundle, no server required. Screens are GenServers; the UI is rendered by Compose and SwiftUI via a thin NIF.
Forum/tag: mob
Click here to view its main thread on the forum.

Where Next? Top

Trending in News & Updates Top

mat-hek
Popcorn, the library that runs Elixir code in the browser, is now stable :popcorn: This is possible because it now builds on a very stab...
New
bartblast
Hologram UI is in the works - the official component library for Hologram - and the waiting list is now open. A common reaction when I m...
New
bartblast
This thread is for updates on the Hologram website (docs, new pages, roadmap, feature status, etc.). You can watch this thread to get no...
New
mandar1045
Stampede 1.2 is out, and I finally got to try it at a bigger scale. What’s new --find-limit: instead of a fixed number of users, it add...
New
uzaydurdu
Hey Elixir folks, I’ve been working on Xenia 0.2.0, and it’s nearly ready. This release focuses on performance, easier integration, and...
New
rodloboz
Hi all, I’ve just released Sake 0.5.0, and I want to explain better what it’s for, because I think many Phoenix apps can use it now. Wh...
New
Potions
I’m working to make Potions the easiest way to deploy Elixir applications, and the next step in that journey is live: you can now bring y...
New

Other Trending Topics Top

dominicletz
Hey there, I haven’t seen a list of useful Elixir specific skills for the popular AI tools yet so I’m starting one here with my first. ...
New
raa-ziq
Hi everyone :waving_hand: I wanted to share something I’ve been building — NowBlind, a random chat app designed to help people discover ...
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
OndrejValenta
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly) AI dream has many faces, but general...
New
kip
Localize is the next generation localisation library for Elixir. Think of it as ex_cldr version 3.0. The first version will be released ...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews