theBeamBook
submillisecond-live-view
theBeamBook | submillisecond-live-view | |
---|---|---|
7 | 5 | |
3,044 | 241 | |
- | 1.2% | |
5.8 | 4.8 | |
about 1 month ago | 11 months ago | |
Erlang | Rust | |
Creative Commons Attribution 4.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
theBeamBook
- Ask HN: Programming Courses for Experienced Coders?
-
Erlang/OTP: Garbage Collector
It's my understanding the state of the art in observing JVM-based applications is a combination of using thread dumps, gc logs, thread activity visualizations. Thread dumps give us a snapshot of the the name of the thread, its current running state (waiting, blocked, etc), and the stacktrace of the work its currently doing. GC logs give you a record of when and how much garbage was collected and Thread activity visualizations show you the timeline of thread moving between different running states.
The BEAM gives you the ability to see the bottlenecks in your system, via the REPL (in real time!)
It has world-class introspection built in that gives you the power to observe and manipulate your running application through a REPL.
The BEAM has hundreds of features like this, because the BEAM is more of an OS than and VM.
I get it, you're a JVM expert, but the BEAM is more than a check list of optimizations that on paper the JVM can do.
I strongly suggest, before the next time you comment on an BEAM VM vs.JVM debate, please consider watching https://www.youtube.com/watch?v=JvBT4XBdoUE, "The Soul of Erlang and Elixir • Sasa Juric • GOTO 2019"
and reading https://github.com/happi/theBeamBook " an attempt to document the internals of the Erlang runtime system and the Erlang virtual machine known as the BEAM."
Best of luck!
-
Lunatic is an Erlang-inspired runtime for WebAssembly
it does. values are immutable in the BEAM, not at language level.
The impact of bugs is minimized by compartmentalization. This is done from the lowest level where each data structure is separate and immutable [1]
But you can simulate mutability with stateful processes.
Directly from Joe Armstrong: https://joearms.github.io/published/2013-11-21-My-favorite-e...
[1] https://github.com/happi/theBeamBook/blob/3971e8e2d09e367670...
-
Log 2022-10-19
theBeamBook repo
-
Will project loom make java concurrency comparable to erlang's?
On a side-note, if you're really interested in grokking the BEAM itself, https://github.com/happi/theBeamBook is a very good resource that delves deeper into the internal working of BEAM. Regardless of whether you use it, it's a fun read!
-
How are processes scheduled
Check the https://github.com/happi/theBeamBook/blob/master/chapters/scheduling.asciidoc
-
What is your opinion on Ada? Have you used it for embedded development? When did you use it?
Did you find this? As far as I know, it is the best resource: https://github.com/happi/theBeamBook
submillisecond-live-view
-
Rust LiveView?
One of the most interesting in my opinion is Lunatic, which is a web assembly runtime written in Rust. Lunatic has a framework called Submillisecond that is heavily inspired by LiveView.
-
Lunatic is an Erlang-inspired runtime for WebAssembly
I'm Bernard, the creator of lunatic. Great to see us back on HN and happy to answer any questions!
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.
[0]: https://github.com/lunatic-solutions/submillisecond
[1]: https://github.com/lunatic-solutions/submillisecond-live-vie...
- LiveView for Rust
-
submillisecond's LiveView - Create rich frontend apps in pure Rust
I've just made a PR to support "anonymous events", to allow you to handle events directly within the html. Though it comes with some downsides. https://github.com/lunatic-solutions/submillisecond-live-view/pull/10
What are some alternatives?
chat - A telnet chat server
artichoke - 💎 Artichoke is a Ruby made with Rust
submillisecond-live-vie
submillisecond - A lunatic web framework
beam_languages - Languages, and about languages, on the BEAM
framework - Mayu is a live updating server-side component-based VDOM rendering framework written in Ruby
rust - Empowering everyone to build reliable and efficient software.
as-lunatic - This library contains higher level AssemblyScript wrappers for low level Lunatic syscalls.
awesome-wasm-runtimes - A list of webassemby runtimes