タグ

2026年4月12日のブックマーク (8件)

  • The uphill climb of making diff lines performant

    Pull requests are the beating heart of GitHub. As engineers, this is where we spend a good portion of our time. And at GitHub’s scale—where pull requests can range from tiny one-line fixes to changes spanning thousands of files and millions of lines—the pull request review experience has to stay fast and responsive. We recently shipped the new React-based experience for the Files changed tab (now

    The uphill climb of making diff lines performant
    efcl
    efcl 2026/04/12
    GitHubのFiles changedタブのReactベースの実装におけるdiff行のパフォーマンス最適化について。 1行あたり10〜15個のDOM要素と8〜13個のReactコンポーネントが必要だった構造を最適化している。 コンポーネント数を2個に削減し、イ
  • How and when to use subagents in Claude Code | Claude

    Claude Code handles complex, multi-step projects well, but long sessions accumulate weight. Every file read, every tangent explored, every half-finished thought stays in the context window, slowing responses and driving up token costs. Consider building a new feature in a large TypeScript monorepo. The main work is the implementation, but side tasks keep appearing: trace how an existing service ha

    How and when to use subagents in Claude Code | Claude
    efcl
    efcl 2026/04/12
    Claude Codeにおけるサブエージェントの使い方と活用タイミングについてのガイド。 サブエージェントは独立したClaudeインスタンスで、専用のコンテキストウィンドウを持ち、複雑なタスクをメインの会話から分離して処理で
  • GitHub - betterleaks/betterleaks: A Better Secrets Scanner built for configurability and speed

    Betterleaks is a tool for detecting secrets like passwords, API keys, and tokens in git repos, files, and whatever else you wanna throw at it via stdin. If you wanna learn more about how the detection engine works check out this blog: Regex is (almost) all you need. Betterleaks development is supported by Aikido Security ➜ ~/code(master) betterleaks git -v ○ ○ ● ○ Betterleaks v1.0.0 Finding: "expo

    GitHub - betterleaks/betterleaks: A Better Secrets Scanner built for configurability and speed
    efcl
    efcl 2026/04/12
    Goで書かれたシークレットスキャナーツール。 gitリポジトリ、ディレクトリ、ファイル、stdinからAPIキーやトークンなどの秘密情報を検出できる。 CELを使ったシークレットの検証、エントロピー分析によるフィルタリング、
  • Release pnpm 11 RC 0 · pnpm/pnpm

    Highlights Major Node.js 22+ required — support for Node 18, 19, 20, and 21 is dropped, pnpm itself is now pure ESM, and the standalone exe requires glibc 2.27. Supply-chain protection on by default — minimumReleaseAge defaults to 1 day (newly published packages are not resolved for 24h) and blockExoticSubdeps defaults to true. allowBuilds replaces the old build-dependency settings — onlyBuiltDepe

    Release pnpm 11 RC 0 · pnpm/pnpm
    efcl
    efcl 2026/04/12
    pnpm v11.0.0 rc.0リリース。 Pure ESMパッケージへの移行、Node.js 18-21のサポートを終了。 `.npmrc`は認証/レジストリ設定のみに限定し、その他の設定は`pnpm-workspace.yaml`へ移行、`pnpm server`コマンドの削除など多くの破壊的変更を含む
  • Diffs, from Pierre

    A diff rendering library@pierre/diffs is an open source diff and code rendering library. It's built on Shiki for syntax highlighting and theming, is super customizable, and comes packed with features. Made with love by The Pierre Computer Company.

    Diffs, from Pierre
    efcl
    efcl 2026/04/12
    diffレンダリングとコード表示のライブラリ。 CSS GridとShadow DOMを活用してDOMノード数を削減しレンダリングの高速化やVirtualizationに対応している。 Stack型(統合表示)とSplit型(左右並列表示)の2つのレイアウトに対応し、Shikiベ
  • I've sold out

    I've sold out 2026-04-08 What a nice WebGL shader. Look at draining your battery. Table of contents So, this is awkward. I've joined Cristina, Jakob, Ramiz, Vegard, Armin, and Colin at Earendil. And I'm taking pi, the little coding agent that could, with me. Now, before you get out the pitchforks, hear me out. Why would you do that? Many reasons! Let me give you a "quick" history lesson. "It's lik

    I've sold out
    efcl
    efcl 2026/04/12
    AIコーディングエージェント piの作者であるMario Zechnerが、Earendilに参加した経緯について書かれた記事。 libGDXやRoboVMなど15年にわたるOSSプロジェクトの経験を振り返り、piのライセンス戦略としてMIT/Fair Source/企業向け有料機
  • A “diff” tool for AI: Finding behavioral differences in new models

    A “diff” tool for AI: Finding behavioral differences in new models Every time a new AI model is released, its developers run a suite of evaluations to measure its performance and safety. These tests are essential, but they are somewhat limited. Because these benchmarks are human-authored, they can only test for risks we have already conceptualized and learned to measure. This approach to safety is

    A “diff” tool for AI: Finding behavioral differences in new models
    efcl
    efcl 2026/04/12
    AIモデル間の振る舞いの違いを自動的に特定するための解釈可能性(Interpretability)ツールについて。 ソフトウェアのdiffツールの概念をAIモデルに応用し、Dedicated Feature Crosscoder(DFC)という手法を提案している。 2つのモデル間で
  • <img>: 画像埋め込み要素 - HTML | MDN

    上記の例では、 <img> 要素の使い方を示しています。 src 属性は、埋め込みたい画像へのパスを保持します。srcset 属性が利用できる場合、src 属性は必須ではありません。ただし、src 属性または srcset 属性の少なくとも一方は指定しなければなりません。 alt 属性は、この画像のテキストによる代替情報を保持します。これは必須であり、アクセシビリティに非常に役立つものです。スクリーンリーダーは、この属性値をユーザーに読み上げるので、画像の意味が分かります。また、ネットワークエラーやコンテンツのブロック、リンク切れ等の理由で画像が読み込めなかった場合にも代替テキストが表示されます。 他にも、様々な目的で指定できる属性がたくさんあります。 セキュリティとプライバシーのためのリファラー/CORS 制御。 crossorigin および referrerpolicy を参照してく

    <img>: 画像埋め込み要素 - HTML | MDN
    efcl
    efcl 2026/04/12
    `<img sizes=(max-width: 30em)>`のようなmath functionがimageのsizes属性で利用できる。 Media Queryで表示する画像を出しわけできる