Commit Graph

839 Commits

Author SHA1 Message Date
InversionSpaces
03d23eb577
feat(compiler): Handle error function exit in tracing mode [LNG-250] (#921)
* Wrap function calls with xor

* Do not detach tracing call in case of error exit

* Fix comment
2023-10-17 13:42:38 +00:00
renovate[bot]
030a0d464b
chore(deps): update dependency @fluencelabs/aqua-lib to v0.7.7 (#923)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-17 12:35:45 +00:00
renovate[bot]
14f3d92ef4
fix(deps): update dependency @fluencelabs/js-client to v0.2.1 (#930)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-17 15:20:32 +03:00
InversionSpaces
ba15d9e06a
fix(compiler): Fix topology for adjacent ons [LNG-257] (#929)
* Always enforce path

* Revert "Always enforce path"

This reverts commit 5ee1e37c9e.

* Add integration test

* Force return to relay

* Remove unused import

* Add comment

* Add unit test

* Add TODO

* Remove println

* Fix typo
2023-10-17 11:59:30 +00:00
InversionSpaces
f39bca928a
chore(deps): Bump js-client to 0.2.0 (#928)
Bump js-client to 0.2.0
2023-10-11 14:21:42 +00:00
InversionSpaces
5f6c47ffea
feat(compiler): Optimize math in compile time [LNG-245] (#922)
* Move service calls for math to inlining

* Fix: add predo

* Introduce CallServiceRaw

* Add comment

* Add optimization to inlining

* Add tests

* map -> mapValues

* Refactor type

* Add optimization

* Add optimization test

* Fix unit tests

* Fix PR comments

* Restrict optimization

* Add substraction to optimization

* Apply optimizations in gate

* Fix sign, move optimization to unfold

* Fix type and tests

* Fix unit tests

* Add unit test

* Fix after merge

* Add optimization, fix unit tests

* Fix comment
2023-10-09 13:02:26 +03:00
InversionSpaces
b298eebf5e
fix(compiler): Fix gate inlining [LNG-253] (#924)
* Fix gate inlining

* Remake stream gate inlining, fix unit tests

* Fix: add flat inline

* Refactor, add comments
2023-10-08 12:52:54 +02:00
InversionSpaces
feb7a167a2
fix(compiler): fix typo (#916)
Fix typo
2023-09-28 15:20:28 +03:00
fluencebot
c109f37efa
chore(main): release aqua 0.12.3 (#912)
* chore(main): release aqua 0.12.3

* chore: Bump aqua version to 0.12.3
2023-09-28 10:12:26 +00:00
InversionSpaces
1e636cc076
feat(lsp-api): Add infoType (#915)
Add infoType
2023-09-28 13:00:53 +03:00
Dima
878990a837
feat: Create structs with stream maps [fixes LNG-244] (#893) 2023-09-27 15:07:22 +03:00
InversionSpaces
b2ca1d35bf
feat(tests): Add integration test for result error handling (#914)
* Add integration test

* Fix test

* Fix test
2023-09-27 13:14:50 +02:00
InversionSpaces
ca6cae96ad
feat(compiler): Make if propagate errors [fixes LNG-202] (#779)
* Change if inlining, add fail model

* Inline if

* Fix, add comments

* Add integration test

* Fix test

* Fix test

* toBe -> toEqual

---------

Co-authored-by: Dima <dmitry.shakhtarin@fluence.ai>
2023-09-27 09:52:52 +00:00
InversionSpaces
f158074c4e
fix(compiler): Handle errors from result handling [fixes LNG-247] (#913)
Move args and return under try
2023-09-27 12:29:06 +03:00
InversionSpaces
a80033b81c
feat(compiler): Replace %last_error% with :error: [fixes LNG-239] (#883)
* %last_error% -> :error:

* Add integration test

* Fix integration tests

* Update integration test
2023-09-26 13:28:13 +03:00
fluencebot
91af0bf055
chore(main): release aqua 0.12.2 (#889) 2023-09-26 11:53:26 +03:00
InversionSpaces
27a781dd3f
feat(compiler): Add warnings subsystem [fixes LNG117] (#906)
* ErrorsAlgebra -> ReportAlgebra

* Refactor ReportAlgebra

* Refactor

* Refactor AquaError

* Fixes

* Add warnings, refactor

* Refactor parser

* Move semantics

* Savepoint

* Refactor semantics and compiler

* Refactor types

* Refactor compiler

* Refactor compiler

* Refactor types

* Refactor retunr types

* Return warnings

* Add simple warning

* Refactor to ValidatedNec

* Refactor

* Add comment

* Propagate warnings to LspContext

* Propagate warnings to LSP

* Add warnings to js api

* Update LSP js api

* Use export declare

* Add comment

* Refactor span rendering

* Remove variable name warning

* Add warning on unused call results

* Add unit tests

* Remove println
2023-09-25 13:00:43 +00:00
renovate[bot]
1c708c8bb0
fix(deps): update dependency @fluencelabs/js-client to v0.1.7 (#908)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-25 09:55:51 +00:00
shamsartem
66638afa2d
feat: rethrow errors to capture stacktrace (#907)
* feat: rethrow errors to capture stacktrace

* add null check
2023-09-20 18:56:09 +02:00
InversionSpaces
8741c910be
feat(compiler): Fail on internal error [fixes LNG-229] (#905)
* Refactor utils

* Add errors project

* logger.error -> internalError

* Add comment

* Suppress stack trace

---------

Co-authored-by: Dima <dmitry.shakhtarin@fluence.ai>
2023-09-19 17:01:42 +02:00
renovate[bot]
fb75bc267e
fix(deps): update dependency @fluencelabs/js-client to v0.1.6 (#890)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-19 12:05:19 +00:00
InversionSpaces
ed9e708939
fix(compiler): Fix arrows capture in closures [fixes LNG-242] (#903)
* Fix arrows capture

* Add comment

* Add test

* Add integration test
2023-09-19 14:25:11 +03:00
InversionSpaces
feccffcb00
chore(docs): Update README (#892)
* Update README.md, add USAGE.md, delete INSTALL.md

* Add spaces

* fullBundleJS

---------

Co-authored-by: Dima <dmitry.shakhtarin@fluence.ai>
2023-09-19 11:33:39 +03:00
shamsartem
594f46529d
feat: export types from aqua-api (#904)
* feat: export types from aqua-api

* improve
2023-09-18 16:39:59 +00:00
InversionSpaces
54ddcc8b62
fix(compiler): Do not restrict stream args when ability is present [fixes LNG-233] (#902)
Add test
2023-09-18 14:43:22 +00:00
renovate[bot]
bba6645e7a
chore(deps): update dependency com.eed3si9n:sbt-assembly to v2.1.3 (#900)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-18 11:49:07 +00:00
renovate[bot]
d1d5a35a42
chore(deps): update dependency sbt/sbt to v1.9.6 (#896)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-18 11:37:09 +00:00
renovate[bot]
ab9a511129
chore(deps): update dependency co.fs2:fs2-io to v3.9.2 (#895)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-18 14:22:01 +03:00
Anatolios Laskaris
f2c2c07cf2
chore(release-please): Set aqua-api version in tests (#901)
Set aqua-api version in tests
2023-09-18 12:01:25 +03:00
InversionSpaces
67d8151d94
feat(build): Implement custom bundle task (#894)
* Add link settings

* fix

* Rename to api-dist-js

* Correct import

* Update CI

* Implement bundleJS

* Add comments

* Add TODO

* Fix import

* Fix workflow

---------

Co-authored-by: Artsiom Shamsutdzinau <shamsartem@gmail.com>
2023-09-18 09:53:25 +02:00
InversionSpaces
3f916c78ab
feat(aqua-api): Use scala.js link instead of opt (#891)
* Add link settings

* fix

* Rename to api-dist-js

* Correct import

* Update CI

---------

Co-authored-by: Artsiom Shamsutdzinau <shamsartem@gmail.com>
2023-09-15 15:42:04 +02:00
InversionSpaces
6be2a3d5da
feat(compiler): Services as abilities [fixes LNG-206] (#873)
* Refactor ServiceSem

* Refactor AbilityIdSem

* Remove tokens from state

* Refactor

* Add mangler

* Fix tests

* Refactor valueToRaw

* ServiceIdTag

* AbilityId -> ServiceId

* Add ServiceType

* Fix defineServiceType

* Refactor resolveArrowDef

* Refactor TypesHelper

* Add ServiceIdTag inlining

* Implement resolution

* Add service as ability passing

* Fix importing services

* Fix cli

* Implement default service

* Remove println

* Fix capture

* Add integration test

* Fix id

* Fix test

* Fix test

* Refactor test

* Do not resolve id

* Refactor FuncArrow creation

* Refactor FuncArrow wrapper creation

* Add named arguments

* Add comment

* ensureIsString -> valueToStringRaw, refactor OnSem

* Resolve services as abilities

* Add name to varNames

* Remove service hack

* Capture services, do not rename captured

* Rename arrows along with values

* Fix CallArrowRaw.map

* Fix unit tests

* Remove service case

* Refactor abilities state

* Propagate rootServiceIds

* Remove unused

* Add comments

* Refactor

* Refactor

* Add test

---------

Co-authored-by: Dima <dmitry.shakhtarin@fluence.ai>
2023-09-15 10:34:21 +02:00
Dima
f8b5017918
feat(language-server): Pass errors to lsp context [fixes LNG-243] (#888) 2023-09-14 15:19:16 +00:00
renovate[bot]
d6f879ef7a
fix(deps): update dependency @fluencelabs/js-client to v0.1.4 (#887)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-14 13:32:45 +00:00
Dima
404d5ffae2
chore: add code to run aqua (#886)
* add code to run aqua

* delete aqua-cli

* Apply suggestions from code review

---------

Co-authored-by: InversionSpaces <InversionSpaces@vivaldi.net>
2023-09-13 10:55:22 +00:00
Anatolios Laskaris
1e2e35ee88
chore: Remove aqua cli (#874)
* Remove aqua cli

* fix

* Fix

---------

Co-authored-by: DieMyst <dmitry.shakhtarin@fluence.ai>
2023-09-12 13:37:40 +03:00
Dima
9f863eae43
chore: Compile integration tests with aqua-api [fixes LNG-240] (#884) 2023-09-12 13:11:50 +03:00
fluencebot
03042a71f3
chore(main): release aqua 0.12.1 (#866)
* chore(main): release aqua 0.12.1

* chore: Bump aqua version to 0.12.1

---------

Co-authored-by: Dima <dmitry.shakhtarin@fluence.ai>
2023-09-11 16:11:55 +03:00
renovate[bot]
148cb0004e
chore(deps): update actions/checkout action to v4 (#881)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-11 12:42:20 +00:00
renovate[bot]
cd863ff246
chore(deps): update dependency org.scalatest:scalatest to v3.2.17 (#877)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-11 15:30:26 +03:00
renovate[bot]
e219752c9c
chore(deps): update dependency scala to v3.3.1 (#878)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-11 12:13:48 +00:00
renovate[bot]
3419607e8c
fix(deps): update dependency @fluencelabs/aqua-lib to v0.7.3 (#882)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-11 14:59:47 +03:00
InversionSpaces
69a808e243
fix(compiler): Error on not arrow call after <- (#876)
* Add error report

* Add tests
2023-09-08 14:21:19 +02:00
renovate[bot]
df111adf21
fix(deps): update dependency @fluencelabs/js-client to v0.1.3 (#875)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-08 10:37:37 +02:00
renovate[bot]
c857807014
chore(deps): update dependency co.fs2:fs2-io to v3.9.1 (#867)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-05 15:00:32 +03:00
renovate[bot]
4365dcb899
chore(deps): update dependency @fluencelabs/interfaces to v0.8.2 (#859)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-05 14:41:58 +03:00
renovate[bot]
1f23545b49
fix(deps): update dependency @fluencelabs/js-client to v0.1.1 (#865)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-05 14:23:04 +03:00
InversionSpaces
c1fbea1a49
chore(compiler): Add PathFinder test (#872) 2023-09-04 11:22:57 +00:00
InversionSpaces
443e65e3d8
fix(compiler): Fix closure stream capture [fixes LNG-58] (#857) 2023-09-01 16:05:32 +03:00
renovate[bot]
77864202d1
chore(deps): update dependency sbt/sbt to v1.9.4 (#860)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-01 15:42:23 +03:00