Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
@haitchfive
@haitchfive@oldbytes.space  ·  activity timestamp 2 weeks ago

Moving to a state machine-based parser for MARQUEE may seem like an odd decision for an HTML renderer. You would naturally think and perhaps common sense would dictate that regexps are enough for something simple (they aren't) or that you absolutely need a tokenizer + recursive descent parser (factually not true).

Ideology, tradition, and beliefs apart, the main reason to choose a state machine-based parser is this: A state machine can be implemented on any architecture. And on small machines and virtual machines, you get absolute control over every character and every resource used, nothing goes to waste.
This approach works the same on a powerful server, a fancy latop, or the same code but targeting a microcontroller.

Or an old 8-bit machine.

#marquee #html #webdev #golang #foss #retrocomputing #html

Sorry, no caption provided by author
Sorry, no caption provided by author
Sorry, no caption provided by author
  • Copy link
  • Flag this post
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0-rc.2.21 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login