sukka
@skk.moe
490 followers 49 following 34 posts
zh-CN & en-US / Gen Z / http://git.io/sukkaw / http://skk.moe / https://blog.skk.moe / Senior FE dev / Contributing to OSS and creating PRs for fun / All opinions are my own, literally all of them.
Posts Media Videos Starter Packs
skk.moe
sukka @skk.moe · 2h
Guess what? They are doing this anyway.
skk.moe
sukka @skk.moe · 13d
Why is @github.com and @npmjs.bsky.social 's the trusted publisher feature stupid? The simplest thing: how do I set up the trusted publisher if I am creating a brand new package?

In the meantime, @pypi.org allows you to set up the trusted publisher before/while creating a new package.
skk.moe
sukka @skk.moe · 14h
That's only 3 weeks. Look at my dead simple PR toward @nextjs.org , took them 3 months to merge: github.com/vercel/next....
skk.moe
sukka @skk.moe · 7d
As I said, @pypi.org already supports setting up a trusted publisher while creating a new package. It demonstrates it is doable.

The real problem is why @npmjs.bsky.social / @github.com not implementing the same.
skk.moe
sukka @skk.moe · 13d
Why is @github.com and @npmjs.bsky.social 's the trusted publisher feature stupid? The simplest thing: how do I set up the trusted publisher if I am creating a brand new package?

In the meantime, @pypi.org allows you to set up the trusted publisher before/while creating a new package.
skk.moe
sukka @skk.moe · 24d
I already know macOS 26's new design is suck, I didn't know it would end up this kind of suck.
Every element on the Wi-Fi setting page of macOS 26 is misaligned.
skk.moe
sukka @skk.moe · Sep 7
But what happens if you opt in for a package because of its needs, and then it gets compromised after you trusted it?
skk.moe
sukka @skk.moe · Aug 28
Once again, my proposed github.com/pnpm/pnpm/is... would protect the community against such attacks. Yet @pnpm.io refuses to implement this.
skk.moe
sukka @skk.moe · Aug 16
Multi-threaded linting creates extra challenges (and overheads) for many popular ESLint plugins: typescript-eslint, eslint-plugin-import(-x), etc.

See github.com/un-ts/eslint... as an example.
skk.moe
sukka @skk.moe · Aug 16
#TIL It finally happens! @MacHomebrew's Parallel downloading feature has already landed and can be enabled right now with the environment variable "HOMEBREW_DOWNLOAD_CONCURRENCY={int}". This will be enabled by default in the future.

See GitHub Issue github.com/Homebrew/bre... for more.
Tracking Issue: Concurrent Downloads · Issue #18278 · Homebrew/brew
Concurrent Downloads Implement MVP of concurrent downloads for brew fetch. Implemented in #17756. Improve output logic. For simplicity, the output currently only uses at most terminal height - 1 li...
github.com
Reposted by sukka
thecascading.bsky.social
在 Fediverse 分身运行约三年半后,我台在 Bluesky 上的分身开始测试运行。各位 Bluesky 社交平台的用户将可以在平台上直接订阅本台更新。

我们的帐号是: @thecascading.bsky.social
欢迎反馈遇到的问题及对频道的建议。

#today
skk.moe
sukka @skk.moe · Mar 13
The notorious copypastor Tencent Cloud grabs all articles from my blog and posts them on their website without my permission, yet they want me to promote their tools in my blog.

Go to hell, Tencent and Tencent Cloud.
skk.moe
sukka @skk.moe · Feb 14
Now, who needs to be sacked for the cost efficiency of all~
skk.moe
sukka @skk.moe · Feb 13
It still shocks me that no one has #RIIR the homebrew yet. The slowest package/dependency manager/tool these days (no parallel casks downloading, no multi-threads downloading, and no parallel attestation verification).
skk.moe
sukka @skk.moe · Feb 8
So @pnpm.io's onlyBuiltDependencies feature is flawed by default: you don't re-approve to update dependencies.

Let's say you use @rspack.dev and add "rspack/core" to the list, what happens if rspack is compromised and releases a malicious version? It is still "trusted" by pnpm.
skk.moe
sukka @skk.moe · Jan 22
Others' vacation plans: traveling, eating, meeting friends...
My vacation plan:
skk.moe
sukka @skk.moe · Jan 22
I don't care about ops or percent. As long as destructure is consistently slower, it is slower.

It makes sense why array index access is way faster: destructure requires extra overhead from the iterator protocol, while array index access doesn't.
skk.moe
sukka @skk.moe · Jan 21
拷打 v8 没用,而 SpiderMonkey 早就摆烂了。所以只能拷打 React Compiler 了。
skk.moe
sukka @skk.moe · Jan 21
It still shocks me that JavaScript runtime nowadays still does not optimize array destructure access.

This means `let [v, setV] = useState('')` is way slower than `let t = useState['']; let b = t[0]; let setV = t[1]`).

So it's React Compiler's turn: github.com/reactwg/reac...
Optimization `useState` and `useReducer` returned tuple · reactwg react-compiler · Discussion #54
v8 (and many other javascript runtimes) never optimizes the array destructure access as fast as array index access. So code block A is always faster than code block B: // A const tuple = useState('...
github.com