Skip to content

Commit 81e88dc

Browse files
committed
updates
1 parent 88e4d1f commit 81e88dc

File tree

7 files changed

+25
-21
lines changed

7 files changed

+25
-21
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
### Fixes
1010

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

1313
### Dependencies
1414

README.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -414,37 +414,37 @@ The Melody file extensions are `.mdy` and `.melody`
414414
415415
## Performance
416416
417-
Last measured on v0.19.0
417+
Last measured on v0.20.0
418418
419419
Measured on an 8 core 2021 MacBook Pro 14-inch, Apple M1 Pro using [criterion](https://github.com/bheisler/criterion.rs):
420420
421421
- 8 lines:
422422
423423
```
424424
compiler/normal (8 lines)
425-
time: [4.0579 µs 4.0665 µs 4.0788 µs]
426-
slope [4.0579 µs 4.0788 µs] R^2 [0.9996538 0.9995633]
427-
mean [4.0555 µs 4.0806 µs] std. dev. [11.018 ns 26.342 ns]
428-
median [4.0500 µs 4.0852 µs] med. abs. dev. [5.6889 ns 35.806 ns]
425+
time: [4.3556 µs 4.3674 µs 4.3751 µs]
426+
slope [4.3556 µs 4.3751 µs] R^2 [0.9996144 0.9996931]
427+
mean [4.3377 µs 4.3678 µs] std. dev. [16.019 ns 30.154 ns]
428+
median [4.3270 µs 4.3777 µs] med. abs. dev. [3.1402 ns 41.334 ns]
429429
```
430430
431431
- 1M lines:
432432
433433
```
434434
compiler/long input (1M lines)
435-
time: [400.97 ms 402.31 ms 403.53 ms]
436-
mean [400.97 ms 403.53 ms] std. dev. [773.42 µs 2.9886 ms]
437-
median [401.22 ms 403.39 ms] med. abs. dev. [59.042 µs 3.5129 ms]
435+
time: [470.04 ms 472.35 ms 474.78 ms]
436+
mean [470.04 ms 474.78 ms] std. dev. [2.0458 ms 5.3453 ms]
437+
median [469.54 ms 475.24 ms] med. abs. dev. [734.10 µs 6.8144 ms]
438438
```
439439
440440
- Deeply nested:
441441
442442
```
443443
compiler/deeply nested
444-
time: [5.8085 µs 5.8291 µs 5.8514 µs]
445-
slope [5.8085 µs 5.8514 µs] R^2 [0.9992861 0.9992461]
446-
mean [5.8064 µs 5.8519 µs] std. dev. [21.027 ns 49.152 ns]
447-
median [5.7949 µs 5.8583 µs] med. abs. dev. [3.3348 ns 64.628 ns]
444+
time: [4.2357 µs 4.2561 µs 4.2782 µs]
445+
slope [4.2357 µs 4.2782 µs] R^2 [0.9988854 0.9988087]
446+
mean [4.2474 µs 4.2752 µs] std. dev. [13.698 ns 29.574 ns]
447+
median [4.2426 µs 4.2819 µs] med. abs. dev. [2.7127 ns 43.193 ns]
448448
```
449449
450450
To reproduce, run `cargo bench` or `cargo xtask benchmark`

extensions/vscode/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "melody",
33
"displayName": "Melody",
44
"description": "Melody syntax highlighting and snippets",
5-
"version": "0.20.0",
5+
"version": "0.19.0",
66
"license": "(MIT OR Apache-2.0)",
77
"publisher": "yoavlavi",
88
"icon": "melody-dark.png",

flake.nix

+4
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@
2626
nodejs
2727
nodePackages.prettier
2828
cargo-msrv
29+
cargo-criterion
30+
wasm-pack
2931
rustup
32+
nodePackages.vercel
33+
vsce
3034
]
3135
++ optional (system == systems.aarch64-darwin) [
3236
darwin.apple_sdk.frameworks.Security

integrations/babel-plugin-melody/yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -2144,10 +2144,10 @@ [email protected]:
21442144
dependencies:
21452145
tmpl "1.0.5"
21462146

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

21522152
merge-stream@^2.0.0:
21532153
version "2.0.0"

playground/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Melody Playground
22

3-
To populate the `src/wasm` directory, run `cargo xtask playground-wasm`
3+
To populate the `wasm` directory, run `cargo xtask playground-wasm`

xtask/src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,12 @@ fn wasm_node() -> anyhow::Result<()> {
179179
cmd!(shell, "wasm-pack build --target nodejs").run()?;
180180
cmd!(
181181
shell,
182-
"sed -i '' 's/\"name\":.*/\"name\": \"melodyc\",/g' ./pkg/package.json"
182+
"sed -i 's/\"name\":.*/\"name\": \"melodyc\",/g' ./pkg/package.json"
183183
)
184184
.run()?;
185185
cmd!(
186186
shell,
187-
"sed -i '' 's/\"description\":.*/\"description\": \"NodeJS bindings for the Melody language compiler\",/g' ./pkg/package.json"
187+
"sed -i 's/\"description\":.*/\"description\": \"NodeJS bindings for the Melody language compiler\",/g' ./pkg/package.json"
188188
)
189189
.run()?;
190190

0 commit comments

Comments
 (0)