KermanX_ Profile Banner
_Kerman Profile
_Kerman

@KermanX_

Followers
338
Following
1K
Media
19
Statuses
124

TS/RS dev | @slidevjs team member | undergraduate @USTC-SGY

Joined March 2024
Don't wanna be here? Send us removal request.
@KermanX_
_Kerman
3 days
RT @KermanX_: @hd_nvim @johnsoncodehk @_ArnaudBarre I think it is possible to have full type inference. Hopefully w….
0
1
0
@KermanX_
_Kerman
8 days
Yet Another Graph File Agent as a course team project.
Tweet media one
0
0
0
@KermanX_
_Kerman
22 days
Why does it just disappear from Rspack's output??? If I am right, there are property accesses to undefined everywhere😰 (In Rolldown's output this seems not happening).
0
0
1
@KermanX_
_Kerman
22 days
Just tried to use tree-shaker to optimize them. Sadly, neither my optimizer nor I could understand `__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE` 🙃.
@rspack_dev
Rspack
23 days
Production bundle quality matters. In Rspack 1.4, we collaborated with SWC to improve dead code elimination. For example, Rspack and SWC can now produce the smallest bundle for react-router-dom.
Tweet media one
1
0
3
@KermanX_
_Kerman
2 months
0
0
2
@KermanX_
_Kerman
2 months
Tweet media one
1
0
9
@KermanX_
_Kerman
3 months
RT @johnsoncodehk: just doing my part 🙌
Tweet media one
0
9
0
@KermanX_
_Kerman
4 months
RT @CanadaHonk: typescript will become a popular systems programming language within 5 years
Tweet media one
0
3
0
@KermanX_
_Kerman
4 months
And here is an example of class member tree-shaking. P2 is Google Closure Compiler's output, (I removed the static property there because it requires the unstable flag), which can't shake `A.prototype.method`.
Tweet media one
Tweet media two
@KermanX_
_Kerman
4 months
btw, tree-shaker already supports object property mangling and class member tree-shaking. Most importantly, these optimizations are designed to be fully safe unless `__proto__` is accessed in unexpected ways. But the fact is that there are a bunch of bugs.
0
0
2
@KermanX_
_Kerman
4 months
Here is an example of object property mangling. Terser's output was incorrect because it couldn't handle dynamic key access. (This is out of the scope of "tree shaking" 🫠)
Tweet media one
Tweet media two
@KermanX_
_Kerman
4 months
btw, tree-shaker already supports object property mangling and class member tree-shaking. Most importantly, these optimizations are designed to be fully safe unless `__proto__` is accessed in unexpected ways. But the fact is that there are a bunch of bugs.
0
0
6
@KermanX_
_Kerman
4 months
And I plan to support fine-grained property-level tracing, which may greatly unlock the potential for the above optimizations, but may not.
0
0
0
@KermanX_
_Kerman
4 months
btw, tree-shaker already supports object property mangling and class member tree-shaking. Most importantly, these optimizations are designed to be fully safe unless `__proto__` is accessed in unexpected ways. But the fact is that there are a bunch of bugs.
1
0
0
@KermanX_
_Kerman
4 months
I’m really impressed by swc’s production-ready optimizations. Tree-shaker also achieved a similar effect (possibly through a different approach), but it is just too hard to make tree-shaker an actually useful tool.
Tweet media one
@kdy1dev
Donny (강동윤)
4 months
While refactoring the minifier of @swc_rs, I found a ridiculous test case. The first image is the input, and the second is the output. You might think it's just a feature to show off the performance, but it's actually because that's what's in the input data that I implemented
Tweet media one
Tweet media two
1
0
7
@KermanX_
_Kerman
4 months
Tweet media one
@localhost_5173
EGOIST
4 months
Please rewrite the Rust compiler in Go too, it's so slow.
0
0
3
@KermanX_
_Kerman
4 months
RT @valigo_gg: Dynamic Arrays in C
0
158
0
@KermanX_
_Kerman
4 months
RT @tsoding: How come `std::shared_ptr<T>` is called "Smart" Pointer when it doesn't even consult an LLM on the backend on when to dealloca….
0
95
0
@KermanX_
_Kerman
5 months
I am looking for real-world web apps for tree-shaker research. Requirements: open source, non-SSR, based on Vite with a simple build logic, React/Vue, using component libraries, and is not too small. Any recommendations?.
1
0
7
@KermanX_
_Kerman
5 months
Bringing Rust syntax to the JavaScript world together with @KazariEX_0929 . Rust syntax + JavaScript runtime = "Rust with GC" (wtf.
3
2
32
@KermanX_
_Kerman
5 months
%PATH%里的条目丢失了好多,只能想办法一条一条找回来😥。回想了一下可能是安装 的时候那个“添加Trae命令行”的选项导致的,但是没法确定了。.
1
0
6
@KermanX_
_Kerman
5 months
RT @SkyleeBot: VsCoq language server is now included in Coq Platform!.
0
1
0