Coder Social home page Coder Social logo

morpheus's People

Contributors

zslajchrt avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

morpheus's Issues

Elimination of duplicate alternatives

The current version of the alternatives iterator produces duplicate alternatives as long as the same fragment occurs in multiple disjunctive groups:

(A | B)*(A | B) produces 4 alternatives A, AB, B, AB, but it should produce A, AB, B.

Private fragments

A fragment can be marked as private in the morph model. In such a case it will be excluded when constructing the morph's LUB (lowest upper bound). Only the other fragments in the morph can invoke its members.

This issue is of low importance since it can be achieved by means of kernel references that can hide private fragments.

AltMappings cache

Since AltMappings are generated as a string source in compile time, which must be parsed in runtime, it will be necessary to incorporate some caching into the AltMappings.apply(src: String), which is responsible for parsing the serialised form of generated AltMappings.

Identity and identity operator

A fragment instance in a kernel can be specified as the identity fragment.

Two kernels have the same identity iff they are the same instances (i.e. in terms of eq) or contain the same identity fragment (i.e. in terms of ==).

Two morphs have the same identity iff their kernels have the same identity. In other words, a morph has no its identity.

Introduce new operator =*=, which compares the identities of two morphs or kernels.

Scopes for fragment factories

Scopes will replace the singleton and frag factories.

It will automatically make possible to share hidden fragments between two morphs, the source and target ones.

Uninitialized annotations in types

Sometimes types have no annotations loads during macro morph model parsing in compile time, although they have some.

There is a workaround: it helps if the morph model is parsed twice.

Dimensions do not support non-public members

Dimension traits should support non-public members as well. Currently the generator ignores them and the generated dimension stub (Dim$dimension.class) do not contain any of them.

Parents of generated fragment class are not fully qualified

The parents of the generated fragment class (Frag$fragment.class) are not fully qualified. It results in compilation errors complaining about non-existence of types from the list of parents as long as these types belong to other package that that of the generated fragment class or no appropriate import statement is present.

A workaround: Import the whole package to which the parent fragments or dimensions belong to the source from which the fragment class is generated.

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.