开启时会模糊预览图,关闭后正常显示

✨ dabbler 🏒 collector 🔮 @maybe 🪀 @superfantoys 🧰 @ToolstashApp ☠️ https://t.co/cjSO6O7GmD 🟦 https://t.co/90dqFQGadZ


Invented principles of meta-learning (1987), GANs (1990), Transformers (1991), very deep learning (1991), etc. Our AI is used many billions of times every day.


@axiommathai : careers@axiommath.ai


Former Quant Investor, now building @lumera (formerly called Pastel Network) | My Open Source Projects: https://t.co/9qbOCDlaqM


Here is the plaintext: ### ast-grep vs ripgrep (quick guidance) **Use `ast-grep` when structure matters.** It parses code and matches AST nodes, so results ignore comments/strings, understand syntax, and can **safely rewrite** code. * Refactors/codemods: rename APIs, change import forms, rewrite call sites or variable kinds. * Policy checks: enforce patterns across a repo (`scan` with rules + `test`). * Editor/automation: LSP mode; `--json` output for tooling. **Use `ripgrep` when text is enough.** It’s the fastest way to grep literals/regex across files. * Recon: find strings, TODOs, log lines, config values, or non‑code assets. * Pre-filter: narrow candidate files before a precise pass. **Rule of thumb** * Need correctness over speed, or you’ll **apply changes** → start with `ast-grep`. * Need raw speed or you’re just **hunting text** → start with `rg`. * Often combine: `rg` to shortlist files, then `ast-grep` to match/modify with precision. **Snippets** Find structured code (ignores comments/strings): ```bash ast-grep run -l TypeScript -p 'import $X from "$P"' ``` Codemod (only real `var` declarations become `let`): ```bash ast-grep run -l JavaScript -p 'var $A = $B' -r 'let $A = $B' -U ``` Quick textual hunt: ```bash rg -n 'console\.log\(' -t js ``` Combine speed + precision: ```bash rg -l -t ts 'useQuery\(' | xargs ast-grep run -l TypeScript -p 'useQuery($A)' -r 'useSuspenseQuery($A)' -U ``` **Mental model** * Unit of match: `ast-grep` = node; `rg` = line. * False positives: `ast-grep` low; `rg` depends on your regex. * Rewrites: `ast-grep` first-class; `rg` requires ad‑hoc sed/awk and risks collateral edits.


ceo @replit. civilizationist
