New blog post: Bringing WebAssembly to microcontrollers:

https://blog.fireflyzero.com/pages/history2/

This is the 2/2 part covering the history of Firefly Zero. It talks more about #wasm, my personal experience with it, #TinyGo, #FOSDEM, #WASMIO, @mechanoid, #AdaFruit #PyBadge, and many other amazing bleeding edge technologies that made Firefly Zero possible.

#gamedev #foss

Bringing WebAssembly to microcontrollers

This is the second and the last part of the series about the history of Firefly Zero. The first part: A brief history of fantasy video game consoles. 2017. WebAssembly We already touched a bit on WebAssembly in the first part. It was released in 2017. I started to work with WebAssembly in 2019. At the time, the only thing I knew about it was that it’s a way to write frontend code in the Go programming language instead of JavaScript.

Checkout Challenge

A shopping trolley racing game made for the Adafruit PyBadge, inspired by popular racing games. By Michael Darby - 314Reactor.

Hackster.io

@leobm

I recently made a nice framework for making wasm-4 games with #tinygo:
https://github.com/orsinium-labs/wasm4go

TinyGo now has the wasm-unknown target which makes really small and nice #wasm binaries.

Also, if you have #adafruit #pybadge, you can use it as a handheld console for running wasm-4 games:
https://github.com/orsinium-labs/gamgee

GitHub - orsinium-labs/wasm4go: Framework for making WASM-4 games with Go (and TinyGo).

Framework for making WASM-4 games with Go (and TinyGo). - orsinium-labs/wasm4go

GitHub

New project: Runtime for running WASM-4 games on Adafruit #PyBadge and potentially other small devices/

https://github.com/orsinium-labs/gamgee

Written in #Rust, it uses wasmi crate to run #wasm modules with very little space and memory requirements. The binary is just about 270 Kb and the runtime uses for itself just a few Kb of RAM giving the rest to the game.

GitHub - orsinium-labs/gamgee: 👾 Run WebAssembly (WASM-4) games on small devices (like PyBadge)

👾 Run WebAssembly (WASM-4) games on small devices (like PyBadge) - orsinium-labs/gamgee

GitHub
There will be a lot of mathematical theory, but I also want to show how stack languages are great in constrained environments. To do that, my hope is to show some #Uxn demos running on this #Adafruit #PyBadge. Follow along at https://dcreager.net/pybadge-notes/ if you want to see my fumbling attempts to make it work before Thursday. 😅
PyBadge notes

@attie

1. The easiest way to get into microcontrollers for you is to buy @adafruit #pybadge or #pygamer and program it on #circuitpython, a limited version of #python.

https://www.adafruit.com/product/4200

2. #Rust will let you program anything and smartly utilize limited resources. Entry level is high.

3. #Golang strikes the balance. It's easy to learn and with #tinygo you can program any microcontrollers, including abovementioned pybadge.

https://tinygo.org/

Adafruit PyBadge for MakeCode Arcade, CircuitPython, or Arduino

What's the size of a credit card and can run CircuitPython, MakeCode Arcade or Arduino? That's right, its the Adafruit PyBadge! We wanted to see how much we could cram into a ​3 ...

@RenewedRebecca I personally used #tinygo for programming adafruit #pybadge and #gobot for programming a DJI Tello drone. In both cases, the experience was great.

@PlumpCat Good luck with your journey! Programming is fun, and #Python is very versatile. I use it to generate art, produce assets for my board game, power lots of websites, notify me about things, analyze and visualize data. Oh, and it pays my bills.

I've got #pybadge last week. However, I use #tinygo instead of Python to program it, which seems to me like a better fit for small places.

Added #METAtris to a lonely #PyBadge and printing a new case. Also rewired a little LiPo for a wearable project. Productive Monday so far! I should take a break. #Maker #Soldering #3DPrinting https://learn.adafruit.com/playing-gamebuino-meta-games-on-arcada
@adafruit
Playing Gamebuino META Games on Arcada

Did you know you can run Gamebuino META games on your PyBadge or PyGamer? It's true! Thanks to the Arcada library layer, these lovely colorful games can come to life on your handheld.

Adafruit Learning System

« A programmer named Polina used #tinygo & combined two of our samples for the #pybadge into one. Awesome! #scale18x #golang #adafruit https://t.co/fiYuFivfwc »

— Retweet https://twitter.com/TinyGolang/status/1236855430610968577

TinyGo on Twitter

“A programmer named Polina used #tinygo & combined two of our samples for the #pybadge into one. Awesome! #scale18x #golang #adafruit”