Advertisement · 728 × 90

Posts by KermanX

Reactive VSCode Develop VSCode extension with Vue Reactivity API

Just released reactive-vscode 1.0.0-beta.1, with significant improvements in API design :)

kermanx.com/reactive-vscode

3 months ago 4 0 0 0
Post image
10 months ago 1 0 0 0

😭 Because I think this combination makes development the most efficiency.

1 year ago 0 0 1 0

I love JavaScript but I also want Rust Syntax. I love Rust but I also want GC.

1 year ago 1 0 1 0

Bringing Rust syntax to the JavaScript world with
@bikari.top.

Rust syntax + JavaScript runtime = "Rust with GC" (wtf

github.com/kermanx/js.rs

1 year ago 7 1 0 1
Post image

I recently tried to implement a TypeScript type inferrer in ~6k lines of Rust. Most of the hardest features are already supported, but there is still a lot of effort to make it usable - and then Oxlint can use the type information for linting.

Repo: github.com/KermanX/simp...

1 year ago 10 0 0 0
Preview
Rust-Based JavaScript Linters: Fast, But No Typed Linting Right Now | Goldblog Explaining why the speed gains from Rust linters aren't comparable to the full feature set of typescript-eslint.

(Inspired by www.joshuakgoldberg.com/blog/rust-ba...)

1 year ago 0 0 0 0

What if giving tree-shaker the ability to infer TypeScript types - Then oxlint can have partial type information🤯

1 year ago 0 0 1 0

btw, object property mangling is not directly related to tree-shaking 😇 Let's think of a new name to replace the temporary one "Tree Shaker" plz 🥹

1 year ago 1 0 0 0
Advertisement
https://kermanx.github.io/tree-shaker/#N4IglgdgDgrgLiAXCApgDygewE5wAQBmMEAxnGJhHiZgLaxwoAmA+lNplCrgJ4AUxANYRMAdwgAaPAENZUgEaKAlHmAAdKtUoBnfIJQ88AXjxCR4vAH48AcgKZMNvIlvzp2GwG4NeLRF14mPIAVsaqPr6EDi6y0hIRvm7YLoryEQC+3po0/pgANigAdHmYAOZ8QcEA2vo8ALpKWeka6Fi4hMRkFFSVKGQs0traYKUQfLEKyuHZOviVYQDyIX1whYPDo3zA6VLAUZgxsng7qnhJKYrHjRE52vlFJeWVhfaY1zO5BcVlFSGFSe9mhAiKRyJQ8ABhOhQLZ4dicABy0loKCu0182BQcBg2CoAB4mGAAG4APmA8KgSJR6TxAHpCaSmi0MDh8CCuuCAIJQGGxFTqTSY7G4vB4qH0OEcSnIlBGYCxdJ4WkkpkQEASEDsFDaLFIECYmi0FEQJjMdUgJiYACykDABB4SAI0jyOo1ztE0h42gAkhA8pAUI7nTr0kA=

https://kermanx.github.io/tree-shaker/#N4IglgdgDgrgLiAXCApgDygewE5wAQBmMEAxnGJhHiZgLaxwoAmA+lNplCrgJ4AUxANYRMAdwgAaPAENZUgEaKAlHmAAdKtUoBnfIJQ88AXjxCR4vAH48AcgKZMNvIlvzp2GwG4NeLRF14mPIAVsaqPr6EDi6y0hIRvm7YLoryEQC+3po0/pgANigAdHmYAOZ8QcEA2vo8ALpKWeka6Fi4hMRkFFSVKGQs0traYKUQfLEKyuHZOviVYQDyIX1whYPDo3zA6VLAUZgxsng7qnhJKYrHjRE52vlFJeWVhfaY1zO5BcVlFSGFSe9mhAiKRyJQ8ABhOhQLZ4dicABy0loKCu0182BQcBg2CoAB4mGAAG4APmA8KgSJR6TxAHpCaSmi0MDh8CCuuCAIJQGGxFTqTSY7G4vB4qH0OEcSnIlBGYCxdJ4WkkpkQEASEDsFDaLFIECYmi0FEQJjMdUgJiYACykDABB4SAI0jyOo1ztE0h42gAkhA8pAUI7nTr0kA=

Tree Shaker now supports object property mangling!

Most importantly, (unlike some optimizers), Tree Shaker's object property mangling doesn't require any extra assumptions about the input code.

Demo:

1 year ago 3 1 1 0

Just found that vue-tsc v2.2.0 was out with TypeScript 5.7 support!

Thank you @johnsoncodehk.bsky.social @bikari.top for the hard work! 🥹

github.com/vuejs/langua...

1 year ago 74 3 1 0
Preview
GitHub - KermanX/tree-shaker: 🌳🪚 An experimental tree shaker for JS based on Oxc (WIP) 🌳🪚 An experimental tree shaker for JS based on Oxc (WIP) - KermanX/tree-shaker

Today I officially found an instructor for the research project of tree-shaker. Having lots to learn to become a real PL guy.

1 year ago 0 0 0 0
Preview
Release v0.50.0 · slidevjs/slidev 🚨 Breaking Changes Remove prism support  -  by @KermanX in #1700 (01b35) Allow to remove shortcuts  -  by @twitwi and @KermanX in #1922 (a47b8)    🚀 Features Support snapshoting overview  -  ...

🚀 Slidev v0.50.0 is out!

This version is packed with so many updates, @kermanx.github.io and the team were truly on 🔥

📤 Export your slides right from your browser
⚡️ Vite 6 and Jiti 2
🆚 Improved VS Code ext
🌈 Dropped Prism.js, fully on @shiki.style
🐞 A lot of bug fixes

github.com/slidevjs/sli...

1 year ago 104 15 0 0
Preview
GitHub - KermanX/slidev-addon-python-runner: A Slidev addon for running Python code in your slides. A Slidev addon for running Python code in your slides. - KermanX/slidev-addon-python-runner

🐍 Hey Python Folks! @kermanx.github.io Just made the Python Runner for Slidev, which allows you to edit and execute actual Python snippets during your presentation!

Give it a try, and we are excited to hear your ways of using it!
github.com/KermanX/slid...

1 year ago 12 2 2 1

Despite this problem, it's making progress! It was made 3.4x faster 4 days ago🥰
codspeed.io/KermanX/tree...

1 year ago 0 0 0 0

Another option is to use a new "consumed dependencies" scope for each pure call, but this will make consumable impossible to use a flag to avoid being referred twice (for performance). Because entities can be consumed in a pure call, and later in a non-pure.

1 year ago 0 0 1 0

I once tried making the return value a "computed" with every consumed thing in the function execution as its dependency, but this is quite tricky and buggy because every consumed dependency have to be attached to something in the pure call.

1 year ago 0 0 1 0
Advertisement

In tree shaking it should be something like "If and only if the return value is retained, retain the function call". However, there is no way to know whether the return value is used or not before completing the analysis of the whole program.

1 year ago 0 0 1 0

Why is it so hard to support the `@__PURE__` annotation in my tree-shaker🥲 For DCE, it is just "remove the call if the return value is unused". But for tree shaking, I can't think of a correct & performance-acceptable way to support it.

1 year ago 0 0 1 0
Post image

Interesting 😇

1 year ago 0 0 0 0

▶️🦋

1 year ago 70 7 5 1