Commit Graph

660 Commits

Author SHA1 Message Date
Dima
277bb5c8b8
Addr aliases and info fixes (#470) 2022-03-30 21:59:41 +07:00
Dima
9f59d376ca
update fjs to 0.21.6 (#467) 2022-03-28 17:00:09 +03:00
Dmitry Kurinskiy
12ee2d52fa
Arrow Call as a Raw Value (#461)
* CallArrowToken in the parser

* CallArrowRawTag

* unfoldArrow

* handle IntoIndexRaw for CallArrowRaw

* Removed useless CallArrowRawTag.service argument

* RawValueInliner split into several classes

* cliJS compiles

* Parser tests compile

* Semantics spec compile but fail

* Allow braces around values

* infix token WIP

* InfixToken WIP

* Fixes #423

* Infix (arithmetic) operations order

* Infix (arithmetic) operations parallelism fix

* seq it!

* fix inline test

* fix transform test

* fix semantics spec

* fix CallArrowSem

* bugfix

* Fix for CLI help typo

* merge

* Order fix

* Order fix

* optional space after `func` in closures

* some doc comments

Co-authored-by: DieMyst <dmitry.shakhtarin@fluence.ai>
2022-03-25 17:23:41 +03:00
boneyard93501
50d0bd832f
spelling (#466) 2022-03-25 10:28:00 +03:00
Dima
fe21fdc1d7
--show-sk flag (#465) 2022-03-25 10:02:07 +03:00
Dima
e14af21557
Set arguments types dynamically from JSON (#464) 2022-03-23 20:54:54 +03:00
Dima
acba8e8766
deploy -> deploy_service (#462) 2022-03-22 14:43:27 +03:00
Dima
0fdccd9d48
Finalizing current CLI API (#457) 2022-03-21 23:55:16 +03:00
Dima
18ef488ff2
update FJS (#456) 2022-03-18 14:38:33 +03:00
Dima
2ed1d8cf08
V3 types (#453) 2022-03-17 14:25:12 +03:00
Dima
564070465a
Add message when function not found (#454) 2022-03-16 11:49:33 +03:00
Dmitry Kurinskiy
ab0990dd72
Capture and apply topology (#451) 2022-03-15 14:52:43 +03:00
Dima
fe3015a2cd
update FluenceJS to 0.21.1 (#452) 2022-03-10 12:59:33 +03:00
Dima
5fe378c963
createService and addBlueprint commands (#449) 2022-03-09 19:56:51 +03:00
Dima
04e68b553f
Use global node_modules path to find aqua dependencies (#450) 2022-03-09 18:54:28 +03:00
Dmitry Kurinskiy
2fa3a09548
Empty collections creation (#447) 2022-03-04 14:07:30 +03:00
Dmitry Kurinskiy
6772c1d0fa
Sugar for collections (#445) 2022-03-03 17:54:45 +03:00
Dmitry Kurinskiy
271dbc87a1
Unite, intersect types (#444)
* Unite, intersect types

* intersection types tests wip

* Intersections fixed

* Hacky temporary solution for unions of products

* Okay it's good enough

* Generate ascii-compatible struct names

* Pluggable scalars combiners

* Scalar combiners

* A few lines of docs
2022-03-01 14:43:51 +03:00
Dima
e027351bf5
update FluenceJS (#443) 2022-02-24 16:29:34 +03:00
Dima
5eae05dff0
Add top-bottom support (#442) 2022-02-23 12:37:18 +03:00
Dima
4c08cf7343
Add, remove and list scheduled scripts (#440) 2022-02-23 11:16:29 +03:00
Dima
b7aee3d09c
Add timeout to finisher to avoid infinite hanging of async functions (#437) 2022-02-17 20:34:39 +07:00
Dima
145819ec51
update fluencejs to 0.19.2 (#439) 2022-02-17 15:43:03 +03:00
Dima
3320cffde8
Remove service command, file options refactoring (#428) 2022-02-16 10:47:43 +03:00
Dmitry Kurinskiy
c74eb06499
427 topology bug (#433)
* fix path

* topology bug 427 test

* test with join, it works

* improve topology test, still works. add compiler test

* broken compiler test

* CompilerSpec works fine without `wrapWithXor`

* add xor to topology test, it becomes broken

* XOR topology fixed

* ForceExecModel

* Debugging topology WIP

* Fixed

Co-authored-by: DieMyst <dmitry.shakhtarin@fluence.ai>
2022-02-15 19:20:56 +03:00
Dima
1a8af46b51
add env option to aqua cli (#434) 2022-02-15 14:15:27 +07:00
Dima
93d73fa58d
Pass name to a script as argument (#431) 2022-02-10 11:44:39 +03:00
Dima
b0b834e061
update js libs (#430) 2022-02-09 19:43:57 +03:00
Dima
5a79dbb76a
#426 aqua does not generate correct getDataSrv (#429) 2022-02-09 13:24:21 +03:00
Dima
88da133e00
Dist bug fixes (#422) 2022-02-06 08:52:51 +03:00
Dmitry Kurinskiy
6d03a0d95b
Fix for passing a stream argument with lambda to a function waiting for a scalar (#420) 2022-02-06 00:26:07 +03:00
alari
f311afd760 dist enhance 2022-02-05 17:41:35 +03:00
alari
051139d802 dist enhance 2022-02-05 15:30:08 +03:00
Dmitry Kurinskiy
ce46e96412
aqua dist enhance (#419) 2022-02-05 15:19:45 +03:00
Dima
7c711f15e4
Fix ipfs upload in aqua (#415)
* fix path

* fix ipfs

* fix pathes
2022-02-05 14:20:30 +03:00
Dima
02bf1aa25f
Fix path resolving for aqua installed package (#414)
* fix path

* fix compilation
2022-02-05 13:00:31 +03:00
Dmitry Kurinskiy
89455e20c1
Deploy service (#413)
* deploy aqua

* aqua dist deploy
2022-02-05 11:10:18 +03:00
Dmitry Kurinskiy
d5d7b8b5fd
Fix for greedy XOR tags (#412) 2022-02-02 19:06:35 +03:00
Dima
740a9ba653
run manual (#407) 2022-02-02 14:40:10 +03:00
Dima
e4d6c14dd1
builtin as a default import in compiler (#409) 2022-02-01 09:49:19 +03:00
Dmitry Kurinskiy
012cba493c
Op model (#403)
* Separating raw FuncOp from OpModel WIP

* Model compiles, fighting with transform

* Refactoring WIP

* transform compiles

* Fixing AquaCompiler WIP

* Compiler compiles WIP

* AquaContext's allFuncs, allValues

* WIP trying to compile the CLI

* It compiles

* It runs and fails to compile

* Compiles wrong way

* fix TopologySpec

* Sugar bugfix

* fix TransformSpec compilation

* fix test compilation

* fix SemanticSpec

* Topology debugging

* TransformSpec fixed

* Do not import aqua.model

* Take parts in Semantics

* Fix for re-exports

* Maybe a fix for streams

* Maybe a fix for declarations

* streamArgs.aqua in test examples

* more aqua code with bugs

* FuncOp removed

* removed wrapNonEmpty

* fix TransformSpec

* fix SemanticSpec compilation, delete FuncOps

* Separated model/res, model/inline

* tiny fix

* Tests fixed

* TreeNode to wrap labels into cofree standard way

* TreeNodeCompanion with defauls show, equalsOrShowDiff for all Cofree trees we have

* Simple TagInlinerSpec

* Failing test in TagInlinerSpec

* test wip

* test fixed

* delete Node

* delete test-kit, move tests

* fix constants

* Failing TagInliner test

* More complex case for TagInlinerSpec

* TagInlinerSpec fix

* Split RawValueInliner, TagInliner

* Dumb case for ArrowInlinerSpec

* spec for stream renaming

* renaming stream test

* Exports fixed

* SeqModel.wrapWithEmpty for tests

* Deleted EmptyModel

* Bring back EmptyModel

* ArrowInlinerSpec wip

* ArrowInlinerSpec fixed

* Test fixed

* fix

* stream in callback test WIP

* Slightly better logging for TagInliner

* add example in aqua

* test update

* Removed occasional abilities override

* test

* AquaCompilerSpec WIP

* AquaCompilerSpec failing

* AquaCompilerSpec fixed

* fix test

* compiler test, add RestrictionTag

* break test

* fix stream passing to box arguments

* fix exports in context

* Do not reexport builtins

* init for topology bug

* test for topology

* Reproduced the import-reexport bug

* Hops are working...

* Issue #397 does not reproduce!

* foldJoin reproduces the bug

* Reexports inefficiently fixed

* Topology test fixed

* topology bug

* Cache compiled parts

* Cache compiled parts

* ignore the wip topology test

* delete test

* hanging

* add builtin

* Use linked-data-structure `equals` instead of recursive `hashCode`

* A bit more logs

* eq is faster than ==

* Try to join one by one

* op.identity for join

* reverting op.noop for join

* Fix for renaming when value has the same name as argument

* Bump the version to .6

* broken test for names

* second test for renaming

* this test works but i must break it

* add index in call

* JoinModel breaks test

* the test works fine with a fix, but we should check it closely. and `foldJoin.aqua` integration test become broken

* broken test with xor

* Fixed naming issue for lambda's variables substitution

* Topology bug wip

* Fixes #397

* Maybe fix

Co-authored-by: DieMyst <dmitry.shakhtarin@fluence.ai>
2022-01-31 14:48:13 +03:00
Dima
c6b3314d39
identity -> noop (#406) 2022-01-20 11:41:12 +03:00
Dima
255c1f61b5
VarModel -> VarRaw in collect functions (#405) 2022-01-20 07:08:26 +03:00
Dmitry Kurinskiy
f795edfaf7
Join expression (#402) 2022-01-13 13:58:20 +03:00
Dmitry Kurinskiy
5a8a702f1c
Scalar index access (#401)
* Access index by scalar value

* Decomposed resolveField/resolveIndex semantics

* valueToRaw with recursive lambda support

* P.defer for recursive parser

* Desugarize all tags

* .backtrack

* Recursion bugfix

* Some code readability improvement

* Compile bugfix
2022-01-13 13:39:43 +03:00
Dmitry Kurinskiy
061e896b63
Model/raw refactoring (#398)
* Introducing model/raw subproject

* ValueRaw WIP

* ValueRaw WIP

* ValueModel.fromRaw WIP

* Recursive variables renaming

* Tests

* recursiveRaw

* Arrow Inliner refactoring

* desugarize takes its place WIP

* Sugar.desugarize maybe works

* Some movings/renamings

* Compile bug fixed

* Updated scalafmt

* Fix for service defaultId

* Map values recursively
2022-01-13 10:32:59 +03:00
Dima
a051ab0efc
Network info services for aqua CLI (#393) 2021-12-30 13:44:31 +03:00
Aleksey Proshutisnkiy
306c67030e
fluence-js = 0.18.0 (#395) 2021-12-30 13:37:18 +03:00
Dmitry Kurinskiy
6657a41086
Added error_code to last error type (#396) 2021-12-30 13:30:04 +03:00
Dmitry Kurinskiy
d1b54fe39b
Fixes topology for co (#394)
* Fixes topology for co

* Removed debug output

* Test fixed
2021-12-29 12:01:13 +03:00