bartblast

Joined 4 years ago

Karma
112
Submissions
75
Member since
Jun 19
Building Hologram, a full-stack Elixir web framework https://hologram.page
View on Hacker News

Recent submissions

Comment · 24 days ago
Author here. Hologram is a web framework where the browser-side code is Elixir too. v0.11.1 couldn't build a sponsor's 9,000-module app. It ran out of memory. I went looking for the one big bug and there wasn't one, just about two dozen places where the compiler did work it didn't need to, like encoding the same function to JS once for every page that used it. Shoot me any questions.
Comment · 3 months ago
Local-first is simmering! :)
Comment · 3 months ago
Comment · 3 months ago
Hologram author here. It's the opposite, really - the whole thing is built on web technologies. The compiler builds an IR from your Elixir code, analyzes the call graph, and spits out per-page JavaScript bundles. In the browser it's regular JavaScript patching the real DOM, and transport is plain HTTP (POST + Server-Sent Events) - no canvas rendering, no WASM. It uses Web APIs directly, and the goal is to make the whole Web API surface available from Elixir. The only thing being swapped out is the authoring language, same as with TypeScript or Elm.
Comment · 3 months ago
There's no easy out-of-the-box way yet. But you can do it today with JS interop as a workaround. For small files: read the file and send the bytes directly in a Hologram command payload. For big files: fetch-POST the file to your own Phoenix endpoint, or directly to S3 with a presigned URL (no extra endpoint needed, since presigning can happen in a regular Hologram command or in the page's initial state), then pass the returned reference to a command for processing.

A proper Hologram-way file upload is planned as part of a high-level forms abstraction, which comes after Local-First support lands.

Comment · 3 months ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton