Skip to content

Type-level literals and Nat-dependent vector/matrix - #192

Merged
gusty merged 60 commits into
fsprojects:masterfrom
cannorin:nat-dependent-types
Apr 27, 2020
Merged

gusty merged 60 commits into
fsprojects:masterfrom
cannorin:nat-dependent-types

Conversation

@cannorin

@cannorin cannorin commented Sep 2, 2019 •

Copy link
Copy Markdown
Member

Closes #178.
Closes #201.

This PR attempts to simulate nat-dependent vector and matrix types through type-level literals.

Things to be discussed:

  • Operator naming (currently adding a suffix ^ to avoid problems with globally-defined operators such as = and +)
  • Where to place these things (currently in a separated assembly for faster debugging)
  • To be added?

TODO:

  • Implement type-level booleans and naturals
  • Add type provider for type-level naturals
  • Implement nat-dependent vector types
  • Implement nat-dependent matrix types as well
  • Add some "tests" (which is run by compiling it) if needed

@cannorin
cannorin requested a review from gusty September 2, 2019 11:57
@gusty

gusty commented Sep 3, 2019

Copy link
Copy Markdown
Member

Any clue of why is it failing the test only in appveyor?

@wallymathieu

Copy link
Copy Markdown
Member

Could it be something like the build configuration of the solution? That the project does not get built?

@cannorin

cannorin commented Oct 7, 2019

Copy link
Copy Markdown
Member Author

Can I turn this into Ready for Review (although actually not) to get a T-shirt on Hacktoberfest? 😆

@cannorin
cannorin marked this pull request as ready for review October 8, 2019 13:57
@cannorin
cannorin force-pushed the nat-dependent-types branch from 175b250 to bac5563 Compare October 15, 2019 00:49
@cannorin

Copy link
Copy Markdown
Member Author

Vectors and matrices are now Applicative.

@cannorin
cannorin force-pushed the nat-dependent-types branch from 705e831 to 2fab9f2 Compare October 24, 2019 05:05
@wallymathieu

Copy link
Copy Markdown
Member

I can do a small fix and push it to this branch

@cannorin

Copy link
Copy Markdown
Member Author

@wallymathieu Nice! Can you send me a PR to that branch on my fork, or is it better to move the whole branch to this repo and reopen this PR?

@wallymathieu

Copy link
Copy Markdown
Member

I can send you a PR

@wallymathieu

Copy link
Copy Markdown
Member

Did you see the PR? It's essentially trivial changes in order to register project in solution

@cannorin

cannorin commented Oct 27, 2019 via email

Copy link
Copy Markdown
Member Author

@cannorin

Copy link
Copy Markdown
Member Author

Merged 🙇‍♂️

@wallymathieu

Copy link
Copy Markdown
Member

Looks like there is some need for travisconfiguration as well.

@gusty
gusty force-pushed the master branch 2 times, most recently from 6fa408c to e9aa243 Compare March 5, 2020 08:05
@cannorin
cannorin force-pushed the nat-dependent-types branch 2 times, most recently from 83905a9 to bd43719 Compare March 5, 2020 15:48
@cannorin
cannorin force-pushed the nat-dependent-types branch from bd43719 to 7ace7ac Compare March 5, 2020 16:05
@gusty
gusty force-pushed the master branch 7 times, most recently from fb46fda to a5d2425 Compare March 6, 2020 23:50
@cannorin cannorin mentioned this pull request Mar 29, 2020
@gusty gusty removed the F#+ v2.0 label Apr 27, 2020
@gusty
gusty merged commit 8fdd0a5 into fsprojects:master Apr 27, 2020
@cannorin
cannorin deleted the nat-dependent-types branch April 27, 2020 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

What nat-dependent Vector & Matrix operations should be implemented? Are nat-dependent types possible?

4 participants