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

Cross-compile ErgoScript compiler to JS #885

Merged
merged 48 commits into from
Jul 12, 2023
Merged

Cross-compile ErgoScript compiler to JS #885

merged 48 commits into from
Jul 12, 2023

Conversation

aslesarenko
Copy link
Member

@aslesarenko aslesarenko commented Jun 13, 2023

In this PR:

  • graph-ir module cross-compiled to JVM and JS
  • sc module cross-compiled to JVM and JS
  • Environment introduced to run code conditionally on JVM/JS platform
  • Reconfigured ScalablyTyped
  • Upgraded dependencies
  • Upgraded sbt and Scala Compiler versions
  • scala-js configured
  • js.SigmaCompiler implemented
  • First prototype of sigmastate-js is published

@codecov
Copy link

codecov bot commented Jun 13, 2023

Codecov Report

Merging #885 (d8e4ccd) into v5.0.9-RC (c728da6) will increase coverage by 0.07%.
The diff coverage is 86.23%.

❗ Current head d8e4ccd differs from pull request most recent head 0c38343. Consider uploading reports for the commit 0c38343 to get more accurate results

@@              Coverage Diff              @@
##           v5.0.9-RC     #885      +/-   ##
=============================================
+ Coverage      77.67%   77.75%   +0.07%     
=============================================
  Files            248      251       +3     
  Lines          14851    14870      +19     
  Branches         569      582      +13     
=============================================
+ Hits           11536    11562      +26     
+ Misses          3315     3308       -7     
Impacted Files Coverage Δ
common/shared/src/main/scala/scalan/AnyVals.scala 75.00% <0.00%> (-3.95%) ⬇️
common/shared/src/main/scala/scalan/TypeDesc.scala 59.25% <ø> (-3.71%) ⬇️
...shared/src/main/scala/scalan/util/Extensions.scala 59.52% <ø> (ø)
...ared/src/main/scala/special/collection/Colls.scala 84.61% <ø> (ø)
...ain/scala/special/collection/CollsOverArrays.scala 79.62% <ø> (ø)
...ed/src/main/scala/special/collection/package.scala 80.00% <ø> (ø)
...ir/shared/src/main/scala/scalan/DefRewriting.scala 64.70% <ø> (ø)
...ared/src/main/scala/scalan/GraphIRReflection.scala 56.93% <ø> (ø)
...raph-ir/shared/src/main/scala/scalan/Library.scala 65.85% <ø> (ø)
...-ir/shared/src/main/scala/scalan/MethodCalls.scala 58.82% <ø> (ø)
... and 53 more

... and 4 files with indirect coverage changes

aslesarenko and others added 28 commits June 13, 2023 19:21
@aslesarenko aslesarenko requested a review from kushti July 5, 2023 13:13
@aslesarenko aslesarenko marked this pull request as ready for review July 6, 2023 19:35
@@ -25,12 +25,13 @@ import scalan.{Nullable, RType}
import scorex.crypto.hash.{Blake2b256, Digest32, Sha256}
import sigmastate.Values.ErgoTree.EmptyConstants
import sigmastate.basics.DLogProtocol.ProveDlog
import sigmastate.basics.{ProveDHTuple, CryptoConstants}
import sigmastate.basics.{CryptoConstants, ProveDHTuple}
import sigmastate.crypto.{CryptoFacade, Ecp}
import sigmastate.lang.TransformingSigmaBuilder
Copy link
Member

Choose a reason for hiding this comment

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

import sigmastate.lang.TransformingSigmaBuilder and
import scalan.Nullable

are not used now

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

@aslesarenko aslesarenko merged commit 08bb384 into v5.0.9-RC Jul 12, 2023
@aslesarenko aslesarenko deleted the compiler-js branch July 12, 2023 11:43
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