Skip to content

Releases: Pivot-Studio/pivot-lang

v0.1.465

05 Aug 03:07
Compare
Choose a tag to compare
fix: Fix generator variable allocation bug

The code changes in `src/ast/node/control.rs` fix a bug related to variable allocation in generator functions. Previously, when a variable was used in a generator, it needed to be stored in the context. However, there was an issue where the variable was not properly allocated in the context, leading to incorrect behavior.

This commit addresses the bug by correctly allocating the variable in the context when inside a generator. It also adds a check to ensure that the allocation is only performed when necessary.

I also added some code in iter test, to digging deeper into possibility of implement effect system based on generator.

v0.1.464

02 Aug 01:52
Compare
Choose a tag to compare
fix: debug build

v0.1.463

01 Aug 11:07
Compare
Choose a tag to compare
fix: use global variable in generator fn

Previously, using global variables in generator would generate
wrong ir code to load it twice.

This commit also add a new cli flag `nocheck` to skip check stage.

A small change in iter test was made to investigate the possibility of
implementing effect system based on our generator.

v0.1.462

28 Jul 13:35
Compare
Choose a tag to compare
fix: salsa pointer compare issue

See https://github.com/salsa-rs/salsa/issues/536

There's a fix in the main stream, but that fix is using an unstable api
`std::ptr::addr_eq` which will cause compile failure in our ci.

Anyway, I decided to swicth salsa to my custom fork before it went
stable to avoid possible similar issues.

v0.1.461

26 Jul 09:22
Compare
Choose a tag to compare
chore: update salsa to the latest version

Well, previous salsa version has a [serious bug](https://github.com/salsa-rs/salsa/issues/473)
which makes lsp deadlock from time to time,
I've fixed it in April, but somehow forget to update salsa orz.

v0.1.460

17 Jul 10:23
Compare
Choose a tag to compare
fix: skip repl in mac test

v0.1.459

04 Jul 01:46
Compare
Choose a tag to compare
fix: deconstruct assignment doesn't work on tuple

this commit disabled most of implicit cast logic to ensure the type inference logic is
working as expected

v0.1.458

14 Jun 08:43
Compare
Choose a tag to compare
feat: more escapable types && fix docs

v0.1.457

12 Jun 03:35
Compare
Choose a tag to compare
fix: a panic case & add some docs

v0.1.456

07 Jun 01:58
Compare
Choose a tag to compare
fix: repl wasm