logoalt Hacker News

27.5KB language-agnostic WebGPU syntax highlighter

33 pointsby bpierretoday at 1:14 AM9 commentsview on HN

Comments

tikimcfeetoday at 3:58 AM

If anyone can get in contact with Shu, please let them know I'd really like to speak with them. I have a deterministic rendering / colorizing system in three dimensions instead of two for arbitrary UTF8 text written that is explicitly GPU bound and currently testing the last Rust + Mojo pair port, and I'd like to share some ideas. I have about 95 million glyphs rendering (monospace, atm) in a little under a second with full multi dimensional pagination and colorizing per-glyph with full addressing capabilities. There's something to be combined with these two mechanisms I'd like to try and explore.

show 1 reply
muglugtoday at 3:22 AM

> 95–100% agreement for actionscript

Great news for a language whose last stable release was 20 years ago

hyperhellotoday at 3:43 AM

Does this do the tokenization? Could it be expanded to parse the whole structure of the language?

onion2ktoday at 2:09 AM

I don't think it's meant as something that's useful per se because highlighting 5m lines of code at once is unusual, and doing it in a non-deterministic way probably isn't especially helpful, but to show what a browser is capable of it's awesome.

show 1 reply
drakmailtoday at 2:07 AM

Seems don't work on firefox mobile on Android

show 1 reply