Sign in

KermanX

@kermanx.github.io
102 followers 35 following 17 posts

TS/RS dev | @sli.dev team member | Undergraduate at USTC.edu.cn

PostsRepliesMedia
KermanX @kermanx.github.io · 23/12/2025
Just released reactive-vscode 1.0.0-beta.1, with significant improvements in API design :) kermanx.com/reactive-vscode
kermanx.com
Reactive VSCode
Develop VSCode extension with Vue Reactivity API
040
KermanX @kermanx.github.io · 25/05/2025
010
KermanX @kermanx.github.io · 25/02/2025
😭 Because I think this combination makes development the most efficiency.
100
KermanX @kermanx.github.io · 25/02/2025
I love JavaScript but I also want Rust Syntax. I love Rust but I also want GC.
110
KermanX @kermanx.github.io · 23/02/2025
Bringing Rust syntax to the JavaScript world with @bikari.top. Rust syntax + JavaScript runtime = "Rust with GC" (wtf github.com/kermanx/js.rs
github.com
071
KermanX @kermanx.github.io · 25/01/2025
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...
0100
KermanX @kermanx.github.io · 06/01/2025
(Inspired by www.joshuakgoldberg.com/blog/rust-ba...)
joshuakgoldberg.com
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.
000
KermanX @kermanx.github.io · 06/01/2025
What if giving tree-shaker the ability to infer TypeScript types - Then oxlint can have partial type information🤯
100
KermanX @kermanx.github.io · 25/12/2024
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 🥹
010
KermanX @kermanx.github.io · 25/12/2024
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:
https://kermanx.github.io/tree-shaker/#N4IglgdgDgrgLiAXCApgDygewE5wAQBmMEAxnGJhHiZgLaxwoAmA+lNplCrgJ4AUxANYRMAdwgAaPAENZUgEaKAlHmAAdKtUoBnfIJQ88AXjxCR4vAH48AcgKZMNvIlvzp2GwG4NeLRF14mPIAVsaqPr6EDi6y0hIRvm7YLoryEQC+3po0/pgANigAdHmYAOZ8QcEA2vo8ALpKWeka6Fi4hMRkFFSVKGQs0traYKUQfLEKyuHZOviVYQDyIX1whYPDo3zA6VLAUZgxsng7qnhJKYrHjRE52vlFJeWVhfaY1zO5BcVlFSGFSe9mhAiKRyJQ8ABhOhQLZ4dicABy0loKCu0182BQcBg2CoAB4mGAAG4APmA8KgSJR6TxAHpCaSmi0MDh8CCuuCAIJQGGxFTqTSY7G4vB4qH0OEcSnIlBGYCxdJ4WkkpkQEASEDsFDaLFIECYmi0FEQJjMdUgJiYACykDABB4SAI0jyOo1ztE0h42gAkhA8pAUI7nTr0kA=
131
Reposted by KermanX
Anthony Fu @antfu.me · 24/12/2024
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...
github.com
1733
KermanX @kermanx.github.io · 23/12/2024
Today I officially found an instructor for the research project of tree-shaker. Having lots to learn to become a real PL guy.
github.com
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
000
Reposted by KermanX
Slidev @sli.dev · 18/12/2024
🚀 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...
github.com
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  -  ...
010315
Reposted by KermanX
Slidev @sli.dev · 02/12/2024
🐍 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...
github.com
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
2122
KermanX @kermanx.github.io · 28/11/2024
Despite this problem, it's making progress! It was made 3.4x faster 4 days ago🥰 codspeed.io/KermanX/tree...
000
KermanX @kermanx.github.io · 28/11/2024
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.
100
KermanX @kermanx.github.io · 28/11/2024
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.
100
KermanX @kermanx.github.io · 28/11/2024
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.
100
KermanX @kermanx.github.io · 28/11/2024
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.
100
KermanX @kermanx.github.io · 24/11/2024
Interesting 😇
000
Reposted by KermanX
Slidev @sli.dev · 05/11/2024
▶️🦋
5697