Naru

717 posts

Naru

Naru

@naruaway

https://t.co/ZYSk0WplVI Indeed Japan SWE (TypeScript / Node.js / frontend tools) ← Kobe Univ. (ML / topic models)

Tokyo, Meguro Katılım Nisan 2014
885 Takip Edilen548 Takipçiler
Sabitlenmiş Tweet
Naru
Naru@naruaway·
Introducing Quickboot.js: Reduce JS beyond tree-shaking with runtime trace, eval, & sync XHR. The React + framer-motion demo requires smaller JS than React itself 🤯. 40% size reduction! Feedback welcome! IMHO this is very interesting although it is not (or never) prod ready
English
7
18
101
36.3K
Naru
Naru@naruaway·
いつの間にかNode.jsでOpenTUI使えるようになってる! --experimental-ffiがいるけど
日本語
1
0
1
290
Naru
Naru@naruaway·
いつのまにか"zig build -Doptimize=ReleaseFast install"でNeovimビルドできるようになってる! macOSでluajitも問題なし CMakeさよなら👋
日本語
0
0
1
212
Naru
Naru@naruaway·
Using jj (jujutsu) for 1 week to fully replace my all git usage and I cannot go back anymore megamerge workflow is just so good GPT 5.5 understands jj enough as well
English
0
0
4
189
Naru
Naru@naruaway·
これ node_modulesを一時的にgitに入れて中身書き換えまくってデバッグするの便利 こうするとどこいじったか把握し続けられる gitに入れてからoxfmtかけただけのコミット作ってそっからデバッグコードを載せていく
しーぴー 🍀@__cp20__

JavaScript ってやっぱ面白い言語で、ライブラリにバグがあった時に node_modules の中を勝手に書き換えてデバッグができる こういう意味でスクリプト言語は開発速度が速くていいねとなる

日本語
0
0
0
450
Naru
Naru@naruaway·
vimのmodelineの脆弱性2019年にもあった気がするけどまた起きてしまったか 2019年に起きた時以降nomodelineにしてて助かった 今はneovimで vim.o.modeline = false あまり使わないけど特定条件で発火するこういう機能全部オフにしときたい
日本語
0
0
1
212
Naru
Naru@naruaway·
@__morse not really familar with ACP but do you mean CLI can just invoke some agent as subprocess to open ACP channel? I thought it can be nice if there is simple way for CLIs to "call llm" from the "parent" agent process in agent agnostic way
English
0
0
1
23
Tommy D. Rossi
Tommy D. Rossi@__morse·
@naruaway you could use ACP for this, the only thing missing is marking sessions as "ephemeral" so they don't show up in sessions list
English
1
0
0
59
Naru
Naru@naruaway·
おお これと似たことNode.js CLIで実験してたけどCLIの連続呼び出しはmarkdownのリンク辿るのと等価とみなせるからskillインストールしなくても一行"call 'mycli --help'"ってAGENTS. mdかどっかに書いておいてヘルプでskillsのヘッダ相当のものを出力すればskillsとCLIの二重管理なくせる
songmu@songmu

blogged. / “あなたのGo製CLIをAI Agent Readyにするskillsmith | おそらくはそれさえも平凡な日々” htn.to/XPmkbtESme

日本語
0
0
1
347
Naru
Naru@naruaway·
ElectronのChromiumパッチいじったら特定のDOMに対応するnative viewをReact Native for macOSに置き換えるの理論的にできそうな気がしてきた Expo DOMの"use dom"の真逆
日本語
0
0
1
252
Naru
Naru@naruaway·
@KOBA789 みたいですね! ローカルに特定のバージョンがロックされている場合グローバルのcliはただのエントリーポイントとして動くのはnpm系のツールだと確かgulpだったりからある気がします! pnpmもv10からローカル指定バージョンを勝手にインストールして使うようになって再現性上がってうれしみです
日本語
0
0
2
286
KOBA789
KOBA789@KOBA789·
@naruaway > global installのvpもローカルのvpを使う global のやつは薄いラッパーとして振る舞うって感じなんですね。Rust とかだとラッパーの方(rustup)と本体(rustc/cargo)が明確に分かれているんですが、vp は逆に意図的にそこを同一にしてシンプルにしている、と理解しました
日本語
1
0
1
238
Naru
Naru@naruaway·
一応"vite-plus" pacakgeがvpバイナリを含んでるのでグローバルにvp入れなくてもpnpmをエントリーポイントとして使い続けながらvp自体のバージョン管理もできる気がする pnpm自体がpnpmとnode.jsのバージョン管理してくれるから役割被ってて、どっちを上位にするかはある程度融通ききそう
KOBA789@KOBA789

Vite+ それ自体のバージョンがグローバルで単一になってしまってプロジェクト単位では管理できなさそうというのが懸念なのだけれど、みなさんそのへんどうですか

日本語
1
3
27
8.9K
Naru
Naru@naruaway·
@KOBA789 お役に立ててよかったです! ちなみにglobal installのvpもローカルのvpを使うみたいなのでバージョンに関してはどちらにしてもローカル固定されそうです! pnpmで統一してる場合vpをみんなにインストールしてもらうのが少し面倒というぐらいですかね
日本語
1
0
2
374
KOBA789
KOBA789@KOBA789·
@naruaway なるほど! まさに知りたかった情報でした
日本語
1
0
2
572
Naru
Naru@naruaway·
@paxaral @boshen_c Also confirmed that `#!/usr/bin/env zsh` does not work This should be because `/bin/zsh` is under SIP **and** zsh is not shimmed To confirm this, when `/opt/homebrew/bin/zsh` is in PATH, this works thanks to dylib injection so special cases are only about SIP binaries!
English
0
0
0
51
Naru
Naru@naruaway·
@paxaral @boshen_c I just confirmed that running shell scripts with `#!/usr/bin/env bash` works fine I think this makes sense considering the mechanism vp can still reliably shim bash here
English
1
0
1
95
Naru
Naru@naruaway·
Vite+のタスクランナーキャッシュon macOS、動的ライブラリインジェクションでファイルアクセスをsyscallレベルでトレースしてて、SIP保護下にあるbashとかはインジェクトできないから別の互換バイナリに置き換えてるのか、、、すごい これでどのタスクがどのファイルに依存してるかトラックしてる
日本語
1
12
56
10.9K
Naru
Naru@naruaway·
@branchseer @boshen_c zero config ideal!! But maybe hard? If adding small APIs to be optionally callable from JS build tools could help, that can be good e.g.we put useMemo in React where we really want to avoid recomputation where React Compiler does not work well
English
0
0
0
194
Charles Wang
Charles Wang@wan9chi·
That's definitely something we want to do down the road! (For now you can manually ignore tracked files in the task configuration.) Vite Task is being overcautious currently. We'd rather have false cache misses than hit a stale cache. But we aim to eliminate all false cache misses with zero configuration.
English
1
1
2
340
Naru
Naru@naruaway·
Neovimのプラグイン管理一周回ってこれになった vim.opt.runtimepath:append('~/repos/github.com/dmtrKovalenko/fff.nvim') なんらかのconventionに従ってレポジトリローカルにクローンしまくってる場合、そのパスを指定するだけ アップデートは手動でパッチも直接編集するだけ
日本語
0
0
2
295
Naru
Naru@naruaway·
@boshen_c Yeah this is so cool! Maybe already considered but I want even finer grained reactivity in JS level Not all the files read via syscall would affect the task (e.g. discard after fs.readFile via string match ) Maybe we need to come up with a way to signal this from JS side though.
English
1
0
2
850
Boshen
Boshen@boshen_c·
@naruaway People are figuring out how insane vite task is
English
3
0
15
2K
Naru
Naru@naruaway·
zsh使い続けたいけど補完とかabbrとかdirenv的ロジックをTypeScriptに移譲したい場合、Node.jsでunix domain socketサーバー立ててzshからzsocketで通信するのが今ところ一番低遅延な気がする Vite HMRでhot reloadもできる
日本語
0
1
5
751