TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Lunatic is an Erlang-inspired runtime for WebAssembly

231 pointsby sts153over 2 years ago

10 comments

bkolobaraover 2 years ago
I&#x27;m Bernard, the creator of lunatic. Great to see us back on HN and happy to answer any questions!<p>We have been busy pushing out a lot of new stuff. Recently we released a web framework [0] for Rust building on top of lunatic, and a live-view library [1] for crating full stack apps in Rust without JS. For now we are staying close to the Phoenix LiveView implementation, where everything is rendered on the backend and just a diff is sent over websockets to the frontend. But a big advantage of Wasm is that it runs in the browser too, so we hope to leverage this part to move some of the logic directly into the browser, like form checking, or offer a way to create offline-first experiences with the backend running as PWA in a service worker.<p>[0]: <a href="https:&#x2F;&#x2F;github.com&#x2F;lunatic-solutions&#x2F;submillisecond" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;lunatic-solutions&#x2F;submillisecond</a><p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;lunatic-solutions&#x2F;submillisecond-live-view" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;lunatic-solutions&#x2F;submillisecond-live-vie...</a>
评论 #33811211 未加载
评论 #33803653 未加载
评论 #33802000 未加载
评论 #33801807 未加载
评论 #33807915 未加载
评论 #33802636 未加载
macintuxover 2 years ago
Interesting. A huge part of the Erlang value proposition is that the language and runtime are designed to complement each other, and both have significant constraints imposed by the language design.<p>Taking half of that equation, and supporting any language, feels like you’re missing a big part of the benefit.
评论 #33802666 未加载
评论 #33800900 未加载
评论 #33801043 未加载
LAC-Techover 2 years ago
From the FAQ:<p><i>Each process has its own stack, heap, and even syscalls. If one process fails, it will not affect the rest of the system. This allows you to create very powerful and fault-tolerant abstraction.</i><p><i>This is also true for some other runtimes, but Lunatic goes one step further and makes it possible to use C bindings directly in your app without any fear. If the C code contains any security vulnerabilities or crashes, those issues will only affect the process currently executing the code. The only requirement is that the C code can be compiled to WebAssembly.</i><p>So as I understand it, an Erlang process can &quot;crash&quot; from an Erlang perspective and it&#x27;s fine (and even encouraged!), but if it crashes from a system perspective (segfault or some such), it takes down all neighbouring processes as well - usually an issue when using foreign libraries.<p>With this set up, one of your erlang processes can segfault and it&#x27;s fine?<p>I have to admit I&#x27;m not across using WASM as a general purpose backend.
评论 #33818621 未加载
thingificationover 2 years ago
Idly dreaming here, without enough understanding to even know how much this makes sense in this context, of:<p>- Erlang-style concurrency (which I haven&#x27;t tried so don&#x27;t understand but hear good things about always)<p>- With &quot;platform&quot; level capability security...<p>- ... and language-level capability security<p>- But with a sound and expressive type system like F# or similar<p>- Oh, and garbage collection
syrusakbaryover 2 years ago
Damn, it Wasm runtimes week! haha (Wasmer first, then WasmEdge and now Lunatic!)<p>Good to see Lunatic here, they have been doing great work on their runtime. Props to Bernard and team :)
评论 #33806953 未加载
Quarrelsomeover 2 years ago
hang on, what part of the web assembly stack is this competing with exactly? I&#x27;m likely just very ignorant on how Web Assembly works but I don&#x27;t understand exactly how it fits. Do browsers have pluggable hooks for interpreting web assembly that you can swap out for this or smth? Or are we talking about running WebAssembly on the server here?
评论 #33800394 未加载
Defletterover 2 years ago
Does Lunatic have a starter &#x2F; example project?
评论 #33808684 未加载
83457over 2 years ago
If they need a theme song.<p><a href="https:&#x2F;&#x2F;youtu.be&#x2F;uqUa_G1h3pw" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;uqUa_G1h3pw</a>
kotxigover 2 years ago
I wish they had called it something else. I hate to be that guy but you know, it&#x27;s not that hard to be maybe just a little bit more thoughtful.<p><a href="https:&#x2F;&#x2F;www.bbc.com&#x2F;news&#x2F;magazine-17997413" rel="nofollow">https:&#x2F;&#x2F;www.bbc.com&#x2F;news&#x2F;magazine-17997413</a>
评论 #33805309 未加载
评论 #33802615 未加载
评论 #33801947 未加载
评论 #33800363 未加载
评论 #33801066 未加载
评论 #33800618 未加载
toastalover 2 years ago
Was interested, especially aiming to by language agnostic, then immediately not when I see all communications are exclusively via proprietary platforms.<p>&gt; Choosing proprietary tools and services for your free software project ultimately sends a message to downstream developers and users of your project that freedom of all users—developers included—is not a priority.<p>— Matt Lee<p>This means if Discord or Microsoft (parent of GitHub) or Twitter (I guess) decide to delete or ban your account, you are by proxy banned from the project, Lunatic; this means Lunatic is not in control of the moderation of its community. This also requires all users must give up personal data to the corporations in order to participate. This also further drives a wedge between those that prefer the spirit of open source not just in the style of communication, but those that want it in the tools used to create it as well.<p>This project isn’t the only or first offender, but it’s frustrating seeing this pattern pop up over and over and it needs to be called out every time. People care about their privacy more than ever. Interest in OSS has never been higher.<p>We just witnessed yet another exodus off Twitter for federated plaforms like Mastodon and other platforms because folks don’t want to deal with the whims of megacorporations. Everytime Microsoft or Microsoft GitHub make another questionable move, projects seek refuge on Codeberg&#x2F;SourceHut&#x2F;GitLab, or self-hosting. There are a non-negligible amount of folks that don’t want this.
评论 #33801512 未加载
评论 #33801126 未加载