GithubHelp home page GithubHelp logo

Look-ahead types about fathom HOT 2 CLOSED

yeslogic avatar yeslogic commented on April 28, 2024
Look-ahead types

from fathom.

Comments (2)

mikeday avatar mikeday commented on April 28, 2024

That's clever! It could be used to handle the hmtx table dependencies as well, by doing a limited lookahead parse that skips over everything to grab the num_glyphs field and then a full reparse that uses that value.

One issue is that the spec author might find it a little tedious to duplicate the definitions, and there is a risk of introducing error if the lookahead and full definitions are inconsistent.

In some ways it feels like this is the output of a compiler that has analysed the data dependencies in a spec that appears circular due to forward references and flattened it to a sequence of multiple linear passes. Maybe this is something that can be done semi-automatically? :)

from fathom.

markbrown avatar markbrown commented on April 28, 2024

The code that's been arranged into multiple passes would want to be filling in the same host data structure over those passes, whereas the look-ahead type would produce two separate data structures, with the first presumably being much smaller, and the second being the complete version. So I don't think this is quite suitable as a target for that analysis :(

I've just realised that the link type from #28 can also achieve the same result for the GSUB case, so I think I'll take it up there and close this issue for now.

from fathom.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.