Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unversal serialization #1283

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

alex-s168
Copy link
Contributor

depends on #1250

Checklist before requesting a review

  • I have performed a self-review of my code
  • If it is a new feature, I have added thorough tests.
  • I agree to release these changes under the terms of the permissive MIT license (1).
  1. https://github.com/andrew-johnson-4/lambda-mountain/blob/main/LICENSE

@andrew-johnson-4
Copy link
Owner

I am going to create a library for "LIB/minimal.lsts" that the compiler will use. The build times are getting longer and I don't want library development to affect compiler development.

@andrew-johnson-4
Copy link
Owner

with serial imported I get this error

Function Application Yielded An Irreducible Plurality Of Matches
==
With Arguments Cons<U8+LMStruct+I64+I32+I16+U64+U32+U16+LocalVariable+Sized,Constant+Literal+U8+LMStruct+I64+I32+I16+U64+U32+U16+Sized>
At In File SRC/main.lsts Line 21 Column 4
Matched Candidates:
Arrow<Cons<I64,I64>,U64>+
Arrow<Cons<U64,U64>,U64>+
Arrow<Cons<U8,U8>,U64>

but without serial it compiles. This error message in main.lsts seems to be completely unrelated to the cause of the error.

I need to investigate, this stinks.

@andrew-johnson-4
Copy link
Owner

ok, found it.

type U64 => Serializable;
type U64 => Deserializable;

messes with the numerical pyramid. I can fix this.

@andrew-johnson-4
Copy link
Owner

Ok, problem was on my end.

Description:

  • error message was bad (not fixed)
  • quick-prop inference was not inferring all the things that it should have inferred (fixed)

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.

2 participants