#glubs - Subtitle parser and tokenizer

1 messages · Page 1 of 1 (latest)

primal rose
#

In order to practice writing some Gleam (my first project) I wrote a WebVTT parser and payload tokenizer! There is still quite some things to be done, but I wanted to get early feedback as I am used to write elixir instead and wasn't sure about some patterns.

https://github.com/philipgiuliani/glubs

GitHub

WebVTT parser and payload tokenizer in Gleam. Contribute to philipgiuliani/glubs development by creating an account on GitHub.

primal rose
short plover
#

String matching like that is currently slow on JS runtimes due to how strings are implemented, and I wanted it to be faster there even if that means it's slower on Erlang

#

What's best I'm not sure. I haven't done extensive research or any proper benchmarking

primal rose
#

Ok thanks, sounds reasonable!

short plover
#

I had to look up WebVTT

#

What a wonderful bit of tech!

#

Are you making something?

primal rose
#

In my company we are working a lot with livestreaming and live subtitle transcription/editing! So the first thing that came to my mind was making a WebVTT parser 😄
I'm thinking about writing a WebVTT editor using lustre afterwards 🤔

short plover
#

That's super cool!

primal rose