TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

AtomVM: Erlang on Microcontrollers

120 点作者 alex7o将近 5 年前

9 条评论

mikepurvis超过 4 年前
I&#x27;m interested in this as well, as a long-time Cortex&#x2F;STM32 user. The barrier for me historically in exploring alternative languages&#x2F;toolchains (especially in a work context) has always been uncertainty around tooling and peripheral support. Questions like:<p>- Am I going to get a network stack with this, and will it be as battle-tested as lwIP? What about support for USB, CANopen, etc? Will the USB stack look like it&#x27;s working on a quick test but then have weird intermittent failures in the field? (hello stdperiph)<p>- Am I going to have a sane story for bootloading and in-system programming with this platform?<p>- What is debugging&#x2F;logging going to look like with this platform? Will I be able to use tools like Tracealyzer without doing a ton of integration work myself? Is something that looks like GDB&#x2F;OpenOCD with a standard JTAG dongle going to more or less just work?<p>- Quite apart from barriers in learning the new language itself, will it be a pain to get the tools set up for other developers on my team? Will people be building stuff from source and&#x2F;or will I have to do packaging work?<p>Admittedly, some of these don&#x27;t have great answers in the gnuarm world either, but to the extent that I&#x27;ve hacked around them already, it&#x27;s a sunk cost. Anyway, I say all this not to be a downer, but to open a discussion about these kinds of issues and whether others have been impacted-by or have overcome them.
评论 #24210840 未加载
oomkiller超过 4 年前
This is a very cool project, running Erlang on an ESP32 is impressive. The supervisor trees and other parts of OTP make the platform a good fit for certain embedded projects. Nerves is a great tool as well but of course it&#x27;s much higher level, with a full Linux distro running under it on a Rasperry Pi or Beaglebone Black, which are much much more power-hungry than an ESP32.<p>There is a middle ground developing in the GRiSP[1] project as well. It uses the RTEMS RTOS to provide basic POSIX compatibility that allows the full BEAM VM to operate on lower powered hardware[2]. Work on GRiSP 2 seems to be progressing slowly, but it&#x27;s a cool project and definitely worth a look if you find projects like AtomVM interesting.<p>[1] <a href="https:&#x2F;&#x2F;grisp.org" rel="nofollow">https:&#x2F;&#x2F;grisp.org</a><p>[2] <a href="https:&#x2F;&#x2F;grisp.org&#x2F;specs&#x2F;" rel="nofollow">https:&#x2F;&#x2F;grisp.org&#x2F;specs&#x2F;</a>
simongray超过 4 年前
This ESP32 chip seems to be getting a lot of language support. We also recently saw a Clojure implementation: <a href="https:&#x2F;&#x2F;blog.tindie.com&#x2F;2020&#x2F;07&#x2F;clojurescript-on-esp32-why-not&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.tindie.com&#x2F;2020&#x2F;07&#x2F;clojurescript-on-esp32-why-n...</a>
评论 #24210042 未加载
svrtknst超过 4 年前
Microcontrollers aren&#x27;t really my thing, so this might not be a perfect fit, but: Elixir Nerves is an Elixir project&#x2F;platform that targets embedded systems.<p>Might be of use to those of you interested in this.
评论 #24211199 未加载
rkangel超过 4 年前
I&#x27;m more interested in Lumen (<a href="https:&#x2F;&#x2F;github.com&#x2F;lumen&#x2F;lumen" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;lumen&#x2F;lumen</a>). Lumen is a compiler for the VM+Application rather than an embedded VM running bytecode directly. It&#x27;s targeted at WebAssembly but it&#x27;s an LLVM backend so most embedded targets should be possible.<p>Maybe my reasoning is faulty and I don&#x27;t have data to back it up, but my expectation is that it will have better performance (code size, run speed, memory usage) than the Atom approach.
holidayacct超过 4 年前
Can anyone explain what the benefit of Erlang is with respect to microcontroller development?
评论 #24212305 未加载
non-entity超过 4 年前
I&#x27;ve always heard people mention Erlang being used in embdded applications but I don&#x27;t think I&#x27;ve ver seen or heard of an actual instance. Is this actually a thing?
评论 #24211382 未加载
评论 #24211095 未加载
评论 #24210902 未加载
vaer-k超过 4 年前
I&#x27;m becoming interested in microcontrollers but I know next to nothing about them. Would anyone care to explain the fundamental difference between this project and Nerves?
评论 #24211052 未加载
评论 #24211053 未加载
bobowzki超过 4 年前
Very nice to see work in this area. Erlang is a very interesting platform for building robust systems.