Skip to content

[pull] develop from lynx-family:develop#53

Merged
pull[bot] merged 3 commits intoMu-L:developfrom
lynx-family:develop
Apr 7, 2025
Merged

[pull] develop from lynx-family:develop#53
pull[bot] merged 3 commits intoMu-L:developfrom
lynx-family:develop

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented Apr 7, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.1)

Can you help keep this open source service alive? 💖 Please sponsor : )

ShouruiSong and others added 3 commits April 7, 2025 14:45
…iple executions of computation when writing multiple signals.

```
    let scope = null;
    let count = 0;
    let value = "world";
    let signal_0 = __CreateSignal("thoughts");
    let signal_1 = __CreateSignal("thoughts");
    const fn = (pre) => {
        count = count + 1;
        let str_0 = __ReadSignal(signal_0);
        let str_1 = __ReadSignal(signal_1);
        value = `impure ${str_0} ${str_1}`
        return value;
    };
    __CreateScope((s)=>{
        scope = s;
        __CreateComputation(fn, "init", false);
    });
    __WriteSignal(signal_0, "lynx0");
    __WriteSignal(signal_1, "lynx1");
```

Taking the above code as an example, when __RunUpdates is not used, the computation will execute twice, leading to a waste of performance. Therefore, we will expose __RunUpdates through PAPI to address the performance issue in such scenarios.

```
    let scope = null;
    let count = 0;
    let value = "world";
    let signal_0 = __CreateSignal("thoughts");
    let signal_1 = __CreateSignal("thoughts");
    const fn = (pre) => {
        count = count + 1;
        let str_0 = __ReadSignal(signal_0);
        let str_1 = __ReadSignal(signal_1);
        value = `impure ${str_0} ${str_1}`
        return value;
    };
    __CreateScope((s)=>{
      scope = s;
      __CreateComputation(fn, "init", false);
    })
    __RunUpdates(()=>{
        __WriteSignal(signal_0, "lynx0");
        __WriteSignal(signal_1, "lynx1");
    });
```

issue:m-5727244025
AutoSubmit:True
AutoLand:release/3.2,release/3.1
- Format all define.json with an indentation of 2 Spaces.
- Format all Python files with yapf. (follow the google guide)
- Try using fastjsonschema instead of jsonschema to validate define.json.

issue: f-13947983
AutoSubmit: True
…oid build

`stat -f "%m"` works for macos, but `-f` option is not the same meaning in linux.

When linux build, all timestamp generated by this command may be undefined.

So use `date -r $file +%s` instead.
@pull pull bot added the ⤵️ pull label Apr 7, 2025
@pull pull bot merged commit 862d069 into Mu-L:develop Apr 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants