News:

Server migration complete, Welcome to version 2.1.1

+-+-

+-User

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+-Site Stats

Members
Total Members: 15699
Latest: Nicole4Z
New This Month: 17
New This Week: 1
New Today: 0
Stats
Total Posts: 128638
Total Topics: 15831
Most Online Today: 39
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 1
Guests: 21
Total: 22

Rust FSEQ parser with web viewer based on Web Assembly

Started by jonnyshare, February 19, 2020, 01:22:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jonnyshare

Hi!

I need to put this project down for a couple of weeks while I prioritise some other things but I wanted to throw this out there and see what kind of feedback I get.

With a vague motivation of doing something pixel related on an embedded system, but authoring the code in Rust instead of Arduino flavoured C, I started work on an FSEQ parser. It currently only supports v1, but what this allowed me to do was to export the parser as a Web Assembly module so that I could re-use the same code in a web application. So now I have a primitive web based FSEQ v1 visualisation.

Warning! I've only run a very small set of test files through it, nothing of significant size so I don't know at what point it will bug out.

Web application is available here: https://fseq-web.firebaseapp.com/
Code can be found here: https://gitlab.com/sharebear/fseq_parser (documentation needs some work ;) )

I'm very interested to hear if anyone sees any value in this. I'm hoping to pick up the code again mid march when I will prioritise the v2 parsing.

allknowing2012

Knowing what colors on what channels is pretty much useless without knowing the models and props that they are placed on. But I applaud your efforts.

jonnyshare

Quote from: allknowing2012 on February 19, 2020, 03:49:03 PMKnowing what colors on what channels is pretty much useless without knowing the models and props that they are placed on.
I didn't really claim that it was, my stated end goal is to use the parser in an embedded project. In it's current state the usage as a Web Assembly module is mostly proof of concept, a fun way to test different files easily and a tool for me to get up to speed with React programming.

Once I've implemented v2 parsing I'll publish the module on NPM and then if anyone wanted to go further to implement a richer visualisation they are welcome to do so. I assume this would require switching out my SVG rendering with something Canvas based for performance reasons, it would probably also make sense to do more of the work on the Web Assembly side.

Support FPP

+- Recent Topics

Flexible ws2811 panels by Mark_M
March 29, 2023, 09:39:37 PM

Problem with one of my Remotes - syslog always starts with "soliciting.." by Jayl
March 28, 2023, 11:03:41 PM

F48v4-NS unable to connect to WiFi Hotspot by joeyblasko
March 28, 2023, 03:18:46 PM

F/S Arduino UNO R3 with extras by StickyWicket
March 28, 2023, 09:28:23 AM

DMX to pneumatic solenoid by deanathpc
March 27, 2023, 07:54:22 AM

Libre SBC with oled by mel4853
March 24, 2023, 04:04:06 PM

K8-Pi - Random Pixels on by cybercop23
March 24, 2023, 10:44:49 AM

Limitations on Video file size? by Jayl
March 23, 2023, 11:06:14 AM

FPP 7 Kubernetes Error by Jlwright325
March 22, 2023, 11:11:59 AM

FPP Install on Raspberry Pi Zero W by k6ccc
March 21, 2023, 05:53:50 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod