News for hackers. Stuff that matters.
Re:Finl is not LaTeX by salamanderman on Thursday May 27, 2021 @10:13AM (#27303388)
From the blog posts, it looks like they were still deciding what language to write this idea in.
Re:Finl is not LaTeX by dhosek on Thursday May 27, 2021 @10:24AM (#27303510)
I've decided on Rust. I'm in the midst of a "short story" exploration of Rust and PDF typesetting with a replacement for gftodvi (gftopdf) which, while it will have a potential userbase in the high single digits, gives me a low-risk way to experiment with typesetting to PDF. One of the sub libraries of finl (the charsub module) will be part of this code in the 1.0 release and potentially other sub libraries will be incorporated as development continues.
Re:Finl is not LaTeX by jamincan on Thursday May 27, 2021 @11:38AM (#27304361)
Out of curiousity, did you look at nom at all for parsing?
Re:Finl is not LaTeX by dhosek on Thursday May 27, 2021 @02:25PM (#27306361)
I have a bit. I really want to avoid writing code as much as possible. The flip side is that I've noticed that a lot of people in the Rust community are too quick to reach for a library. For gftopdf, I had someone suggest that I use nom to parse the GF byte code, but there's enough impedance mismatch and missing functionality (I don't know that 24-bit integers exist outside of Knuthian binary formats) and the functionality was simple enough (four short functions to read values of u8, u16, u24 and i32 into an i32 container, plus a read a string with a 1–3 byte length parameter at the beginning) that it didn't seem appropriate to have the overhead of an external dependency. On the flip side, I was more than happy to use anyhow, thiserror and structopt for their functionality.

I suspect though, given how input will get tokenized, though, that I may not be able to use a generic library.