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

Finish executeFromVar implementation #976

Merged
merged 32 commits into from
Dec 5, 2024
Merged

Finish executeFromVar implementation #976

merged 32 commits into from
Dec 5, 2024

Conversation

kushti
Copy link
Member

@kushti kushti commented May 6, 2024

This PR contains complete implementation (with tests) of executeFromVar support in the ErgoScript compiler.

Related to #443, #600

@kushti kushti mentioned this pull request May 6, 2024
2 tasks
@kushti kushti added this to the v6.0 milestone May 7, 2024
@kushti kushti changed the base branch from v6.0.0 to develop May 13, 2024 09:57
@kushti kushti changed the title [6.0.0] Finish executeFromX implementation Finish executeFromX implementation May 13, 2024
@kushti kushti modified the milestones: v6.0, v5.x May 13, 2024
@kushti kushti changed the title Finish executeFromX implementation Finish executeFromVar implementation Jul 22, 2024
@kushti kushti requested a review from aslesarenko July 22, 2024 21:52
* Def done in order to carry on DeserializeContext through stages of compilation intact
*/
case class DeserializeContextDef[V <: SType](d: DeserializeContext[V], e: Elem[V]) extends Def[V] {
override def resultType: Elem[V] = e
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The connection between SType and Elem[T] is a bit more nuanced.
V <: SType corresponds to Elem[V#WrappedType], in other words, V is a descriptor for V#WrappedType and Elem[T] is a descriptor for T.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does that mean ? What do you propose?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be e: Elem[V#WrappedType].

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't the type right for e.g. Coll[Byte]: CollElem<Coll[Byte]> ?

@kushti
Copy link
Member Author

kushti commented Jul 24, 2024

@aslesarenko comments addressed, please make another pass

@kushti kushti changed the base branch from develop to v5.0.15 November 27, 2024 19:45
@kushti
Copy link
Member Author

kushti commented Nov 27, 2024

@aslesarenko please check new notes

@kushti kushti merged commit e6bf0f4 into v5.0.15 Dec 5, 2024
4 checks passed
@kushti kushti deleted the i443 branch December 5, 2024 09:24
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