Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
yoav-lavi committed Nov 24, 2024
1 parent 88e4d1f commit 81e88dc
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 21 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

### Fixes

- Removes use of `atty` as it is unmaintained and has a low CSRV
- Removes use of `atty` as it is unmaintained and has a low CVE

### Dependencies

Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -414,37 +414,37 @@ The Melody file extensions are `.mdy` and `.melody`
## Performance
Last measured on v0.19.0
Last measured on v0.20.0
Measured on an 8 core 2021 MacBook Pro 14-inch, Apple M1 Pro using [criterion](https://github.com/bheisler/criterion.rs):
- 8 lines:
```
compiler/normal (8 lines)
time: [4.0579 µs 4.0665 µs 4.0788 µs]
slope [4.0579 µs 4.0788 µs] R^2 [0.9996538 0.9995633]
mean [4.0555 µs 4.0806 µs] std. dev. [11.018 ns 26.342 ns]
median [4.0500 µs 4.0852 µs] med. abs. dev. [5.6889 ns 35.806 ns]
time: [4.3556 µs 4.3674 µs 4.3751 µs]
slope [4.3556 µs 4.3751 µs] R^2 [0.9996144 0.9996931]
mean [4.3377 µs 4.3678 µs] std. dev. [16.019 ns 30.154 ns]
median [4.3270 µs 4.3777 µs] med. abs. dev. [3.1402 ns 41.334 ns]
```
- 1M lines:
```
compiler/long input (1M lines)
time: [400.97 ms 402.31 ms 403.53 ms]
mean [400.97 ms 403.53 ms] std. dev. [773.42 µs 2.9886 ms]
median [401.22 ms 403.39 ms] med. abs. dev. [59.042 µs 3.5129 ms]
time: [470.04 ms 472.35 ms 474.78 ms]
mean [470.04 ms 474.78 ms] std. dev. [2.0458 ms 5.3453 ms]
median [469.54 ms 475.24 ms] med. abs. dev. [734.10 µs 6.8144 ms]
```
- Deeply nested:
```
compiler/deeply nested
time: [5.8085 µs 5.8291 µs 5.8514 µs]
slope [5.8085 µs 5.8514 µs] R^2 [0.9992861 0.9992461]
mean [5.8064 µs 5.8519 µs] std. dev. [21.027 ns 49.152 ns]
median [5.7949 µs 5.8583 µs] med. abs. dev. [3.3348 ns 64.628 ns]
time: [4.2357 µs 4.2561 µs 4.2782 µs]
slope [4.2357 µs 4.2782 µs] R^2 [0.9988854 0.9988087]
mean [4.2474 µs 4.2752 µs] std. dev. [13.698 ns 29.574 ns]
median [4.2426 µs 4.2819 µs] med. abs. dev. [2.7127 ns 43.193 ns]
```
To reproduce, run `cargo bench` or `cargo xtask benchmark`
Expand Down
2 changes: 1 addition & 1 deletion extensions/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "melody",
"displayName": "Melody",
"description": "Melody syntax highlighting and snippets",
"version": "0.20.0",
"version": "0.19.0",
"license": "(MIT OR Apache-2.0)",
"publisher": "yoavlavi",
"icon": "melody-dark.png",
Expand Down
4 changes: 4 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@
nodejs
nodePackages.prettier
cargo-msrv
cargo-criterion
wasm-pack
rustup
nodePackages.vercel
vsce
]
++ optional (system == systems.aarch64-darwin) [
darwin.apple_sdk.frameworks.Security
Expand Down
8 changes: 4 additions & 4 deletions integrations/babel-plugin-melody/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2144,10 +2144,10 @@ [email protected]:
dependencies:
tmpl "1.0.5"

melodyc@^0.19.0:
version "0.19.0"
resolved "https://registry.yarnpkg.com/melodyc/-/melodyc-0.19.0.tgz#97c82f1d29b10358c8d19ef7779acd5f57e9768d"
integrity sha512-17fqh+2VsDfdCa+sAtBL3p4LDXFovy3B6lpCwBs6ZRL2anyg3fanTlyMzzFSW2agG1FApr6ePx+f6tWDQtNKow==
melodyc@^0.20.0:
version "0.20.0"
resolved "https://registry.yarnpkg.com/melodyc/-/melodyc-0.20.0.tgz#fe7d2ea6ebe83486c258d50be65c7a7171d725c3"
integrity sha512-7TJ9jek3M4VSr9A40ajePdDpLyiWfozydzZb6mqrcRgiBwCpgUo056dJgIGXQVBTopPIgEO1CG9jOTJjN2ESng==

merge-stream@^2.0.0:
version "2.0.0"
Expand Down
2 changes: 1 addition & 1 deletion playground/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Melody Playground

To populate the `src/wasm` directory, run `cargo xtask playground-wasm`
To populate the `wasm` directory, run `cargo xtask playground-wasm`
4 changes: 2 additions & 2 deletions xtask/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,12 @@ fn wasm_node() -> anyhow::Result<()> {
cmd!(shell, "wasm-pack build --target nodejs").run()?;
cmd!(
shell,
"sed -i '' 's/\"name\":.*/\"name\": \"melodyc\",/g' ./pkg/package.json"
"sed -i 's/\"name\":.*/\"name\": \"melodyc\",/g' ./pkg/package.json"
)
.run()?;
cmd!(
shell,
"sed -i '' 's/\"description\":.*/\"description\": \"NodeJS bindings for the Melody language compiler\",/g' ./pkg/package.json"
"sed -i 's/\"description\":.*/\"description\": \"NodeJS bindings for the Melody language compiler\",/g' ./pkg/package.json"
)
.run()?;

Expand Down

0 comments on commit 81e88dc

Please sign in to comment.