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

chore(main): release aqua 0.11.10 #835

Merged
merged 3 commits into from
Aug 21, 2023

Conversation

fluencebot
Copy link
Contributor

@fluencebot fluencebot commented Aug 10, 2023

🤖 I have created a release beep boop

0.11.10 (2023-08-21)

Features

Bug Fixes


This PR was generated with Release Please. See documentation.

@fluencebot fluencebot force-pushed the release-please--branches--main--components--aqua branch from 0a194d5 to edd90ff Compare August 15, 2023 10:34
@linear
Copy link

linear bot commented Aug 15, 2023

LNG-57 Allow applying properties on complex expressions

if Op.identity(stream)! == "OK" doesn't parse

Version

0.7.2-303

Code

import "fluencelabs/aqua-lib/builtin.aqua"

func bug():
    stream: *string
    if Op.identity(stream)! == "OK":
        Op.noop()

Error

 % aqua run -i stream_bug.aqua -f 'bug()' --addr krasnodar-01
---- Syntax error: /Users/folex/Development/aqua_scripts/stream_bug.aqua:5:27
5     if Op.identity(stream)! == "OK":
                            ^=========
                            Expected symbol ':'

---- Syntax error: /Users/folex/Development/aqua_scripts/stream_bug.aqua:5:8
5     if Op.identity(stream)! == "OK":
         ^============================
         Expected one of these strings: '<<-'
         OR Expected symbol ':'
         OR Expected symbol '='
         OR Missing braces '()' after the function call (List(Expected symbol '('))
         OR Only results of a function call can be written to a stream

---- Syntax error: /Users/folex/Development/aqua_scripts/stream_bug.aqua:5:5
5     if Op.identity(stream)! == "OK":
      ^===============================
      Expected one of these strings: '<-', 'catch', 'co', 'else', 'for', 'join', 'on', 'otherwise', 'par', 'try'
      OR Expected symbols from 'A' to 'Z'

@fluencebot fluencebot force-pushed the release-please--branches--main--components--aqua branch from 2a1b65a to a209551 Compare August 17, 2023 06:30
@linear
Copy link

linear bot commented Aug 17, 2023

LNG-222 Scope (`new`) generation for streams doesn't work with `try`

try makes compiler skip new for declared stream

func main():
        temp: *i8
        temp <<- 42

produces

(seq
 (call %init_peer_id% ("getDataSrv" "-relay-") [] -relay-)
 (xor
  (new $temp
   (ap 42 $temp)
  )
  (call %init_peer_id% ("errorHandlingSrv" "error") [%last_error% 0])
 )
)

while

func main():
    try:
        temp: *i8
        temp <<- 42

produces

(seq
 (call %init_peer_id% ("getDataSrv" "-relay-") [] -relay-)
 (xor
  (xor
   (ap 42 $temp)
   (null)
  )
  (call %init_peer_id% ("errorHandlingSrv" "error") [%last_error% 0])
 )
)

@fluencebot fluencebot force-pushed the release-please--branches--main--components--aqua branch from 3c6859b to c0eb668 Compare August 18, 2023 13:16
@linear
Copy link

linear bot commented Aug 18, 2023

LNG-215 Add structural subtyping for `data` and `ability`

This should compile:

aqua Main

export main

ability Smaller:
    arrow(x: i8) -> bool

ability Bigger:
    arrow(x: i8) -> bool
    field: string

func useSmaller{Smaller}() -> bool:
    <- Smaller.arrow(42)

data SmallerStruct:
    str: string

data BiggerStruct:
    str: string
    field: i8


func useSmallerStruct(s: SmallerStruct) -> string:
    <- s.str

func main():

    bigger = BiggerStruct(
        str = "bigger",
        field = 42
    )

    useSmallerStruct(bigger)

    closure = (x: i8) -> bool:
        <- x > 0

    bigger = Bigger(
        arrow = closure,
        field = "bigger"
    )

    useSmaller{bigger}()

Now compiler says that Number of fields does not match

@fluencebot fluencebot force-pushed the release-please--branches--main--components--aqua branch from 2c10da6 to 962fb38 Compare August 21, 2023 10:27
@linear
Copy link

linear bot commented Aug 21, 2023

@DieMyst DieMyst added the e2e Run e2e workflow label Aug 21, 2023
@DieMyst DieMyst merged commit 071ba7d into main Aug 21, 2023
9 checks passed
@DieMyst DieMyst deleted the release-please--branches--main--components--aqua branch August 21, 2023 11:11
@fluencebot
Copy link
Contributor Author

nahsi added a commit that referenced this pull request Aug 21, 2023
nahsi added a commit that referenced this pull request Aug 21, 2023
* Revert "chore(main): release aqua 0.11.10 (#835)"

This reverts commit 071ba7d.

* Release as 0.11.11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants