Codync
免費、開源的 1:1 替代方案,取代 Grok Bot 與 Muse。從 iPhone、Mac 或 Linux 桌面將 Claude Code、Codex、Cursor 與 40+ 程式碼代理人作為持續機器人傳訊。群組聊天、主題串…
AI 翻譯
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證The definitive source for precision. FP127 and FP19: correctly rounded maths for the EVM, checked on chain.
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗The definitive source for precision. Two libraries, one int256 each: BL127, 38 digits of fixed point, every op correctly rounded; BL19, 71 digits of float, every op correctly rounded or exact. Checked on chain, competitive on gas. When the amounts are large or the call is free, they are the only choice. blockulator.com
On typical inputs BL127's ln and pow cost 1,944 and 3,317 gas against PRBMath's 7,083 and 10,065, with 38 digits against 18; exp is 2,835 against 2,816. BL19's ln and pow cost 3,106 and 5,964 against ABDKMathQuad's 16,356 and 23,479, with 71 digits against 34; ABDKMathQuad's sqrt is cheaper, 760 against 1,205. Across the 326 live Aave and Morpho markets at the survey block, the deployed accrual keeps a median 7.2 correct digits of the pending interest; BL127 keeps 30 and BL19 67.
| what it is | precision | range | |
|---|---|---|---|
| BL19 | 256-bit binary float | 71 digits, everywhere | 10^±78,913 |
| BL127 | signed 127.128 fixed point | 38 digits at 1 | money-sized numbers |
Share of results off by at least one wei, against the exact value rounded in each library's own direction, on the same seeded inputs. BlockulatorWad keeps Solady's names and is wrong on 0 of 108,000 results across 27 functions and rounding directions.
| function | BlockulatorWad | Solady | PRBMath SD59x18 | PRBMath UD60x18 | Solmate | snekmate |
|---|---|---|---|---|---|---|
cbrtWad | 0 of 4,000 | 0 | — | — | — | 23% |
expWad | 0 of 3,995 | 48% | 72% | 93% | 48% | 48% |
lnWad | 0 of 3,998 | 24% | 98% | 98% | 24% | 24% |
log2Wad | 0 of 3,998 | — | 93% | 90% | — | — |
log10Wad | 0 of 3,998 | — | 88% | 90% | — | — |
powWad | 0 of 3,461 | 66% | 71% | 85% | 66% | — |
lambertW0Wad | 0 of 3,999 | 28% | — | — | — | — |
Where they offer them, Solady, PRBMath, Solmate, OpenZeppelin Math, Uniswap FullMath and snekmate are exact on divWad, divWadUp, mulWad, mulWadUp, sDivWad, sMulWad, sqrtWad, sqrtWadUp. Versions: BlockulatorWad 6c2eeaf, Solady v0.1.26, PRBMath SD59x18 v4.2.0, PRBMath UD60x18 v4.2.0, Solmate main@89365b8, OpenZeppelin Math v5.7.0 (vendored), Uniswap FullMath v4-core v4.0.0 (vendored), snekmate v0.1.2 (vyper 0.4.3); counts in wad.md.
| digits | add | mul | div | expt | lnt | powt | sqrtt | |
|---|---|---|---|---|---|---|---|---|
| floating point | ||||||||
| BL19 | 71 | 662 | 530 | 800 | 3,278 | 3,106 | 5,964 | 1,205 |
| ABDKMathQuad | 34 | 734 | 709 | 818 | 5,668 | 16,356 | 23,479 | 760 |
| fixed point | ||||||||
| BL127 | 38 | 128 | 267 | 413 | 2,835 | 1,944 | 3,317 | 469 |
| ABDKMath64x64 | 19 | 162 | 171 | 221 | 3,380 | 7,080 | 828 | |
| PRBMath SD59x18 | 18 | 189 | 485 |
Median gas per inline call, over random inputs that take no shortcut (t) or the op's input ladder; digits are precision at 1. BL19 is cheaper than ABDKMathQuad on add, mul, div, exp, ln and pow, not sqrt, and over these 7 ops carries 2.1× its digits at 32% of its mean gas. BL127 carries twice the digits of every fixed-point library here; it is cheaper than OpenZeppelin Math on every op they share, and than ABDKMath64x64 on add, exp, ln and sqrt, and than PRBMath SD59x18 on add, mul, div, ln, pow and sqrt, and than PRBMath UD60x18 on add, ln, pow and sqrt. Solady, Solmate, Balancer LogExpMath and snekmate are cheaper on most ops, at 18 digits; Solady's add is the unchecked rawAdd.
Every op and library: gas.md, gas19.md. Compile with via_ir = true; it takes another 10–33% off the inline libraries.
One import path, three ways in:
# Foundry, from git
forge install securedataresearch/blockulator
echo "@blockulator/contracts/=lib/blockulator/contracts/src/" >> remappings.txt
# npm, yarn or pnpm: Hardhat needs no remapping; Foundry reading node_modules needs this one
npm install @blockulator/contracts
echo "@blockulator/contracts/=node_modules/@blockulator/contracts/" >> remappings.txt
# Soldeer
forge soldeer install blockulator~<version>
echo "@blockulator/contracts/=dependencies/blockulator-<version>/" >> remappings.txt
import {BL127Lib} from "@blockulator/contracts/bl127/BL127Lib.sol";
import {BL19Lib} from "@blockulator/contracts/bl19/BL19Lib.sol";
int256 grown = BL19Lib.pow(BL19Lib.add(BL19Lib.ONE, rate), BL19Lib.fromUint(31536000));
uint256 paid = BL19Lib.toUintDown(grown); // to the user: floor
int256 ltv = BL127Lib.divUp(debt, collateral); // a limit check: never below the truth
Or call the deployed contracts, where every op is a free eth_call: IBL127E(0xc16F…0808).ln(x). Agents can start from /llms.txt.
Requires the CLZ opcode (EIP-7939, the Osaka EVM). Supported: Ethereum, Arbitrum, OP Mainnet, Base, Unichain, Polygon PoS, BNB Chain, Gnosis, Scroll, Linea. Not supported: zkSync Era, Avalanche C-Chain. Check any chain with make probe-clz RPC=<url>.
Each rule comes from replaying a real exploit bit for bit, then running the same step in BL127, BL19 and exact arithmetic (replays).
The integration guide has the worked examples and the edge-op table.
| contract | address |
|---|---|
| BL127 (the number) | 0x0DF738d125677550a80A46BaF254386C66f96E0d |
| BL127E (exp, log, pow) | 0xc16F4C45B78D90A4D4C030cABF4f2A34c1Fb0808 |
| BL127H (hyperbolic) | 0xf2F99947aD1cC370bD5388a2997A5E4963a0B27B |
| BL127N (erf, normCdf) | 0xAA7Cd9635aE8630379636F533f23DBf2C193d296 |
| BL127S (Lambert W) | 0xB9C2583a7Ad2251444DC7752658B6C1107C25036 |
| BL19 (the number) | 0x94d9d43D6202827429a8058959eeCf6d232b8729 |
| BL19E (exp, log, pow) | 0x8e5eE786bDD7c35a2867Fd329441d0BD0fB61092 |
| BL19H (hyperbolic) | 0xF059611C1c42543DE6EE82353Eb082Fd8999081f |
| BL19N (erf, normCdf) | 0xCe9F09D646B37a9100F05ED1FFD14E9f43180214 |
| BL19S (Lambert W) | 0xf74ba90535224870830e6e89D2b328d4cc09DE48 |
Every contract is verified on Sourcify and Blockscout. Each library is one Yul source that generates both the deployed object and the inline library, fuzzed to agree bit for bit. More detail: records, BL127, BL19, precision, the ladder, the edges, proofs, changelog.
make gates. The tables and chart above are make readme-assets.MIT licensed: BL127, BL19 and BlockulatorWad never import AGPL code. Three benchmark-only files link the AGPL-3.0 Solmate and snekmate libraries and carry that licence: LadderSolmate.sol, SnekmateMath.vy and test/bl127/GasLibs.sol (details). Security.
| 509 |
| 2,816 |
| 7,083 |
| 10,065 |
| 978 |
| PRBMath UD60x18 | 18 | 150 | 237 | 261 | 2,720 | 6,474 | 9,544 | 824 |
| Solady | 18 | 3 | 126 | 93 | 430 | 556 | 1,279 | 393 |
| Solmate | 18 | 131 | 97 | 430 | 632 | 1,355 | 456 |
| Balancer LogExpMath | 18 | 1,040 | 1,091 | 2,223 | 2,351 |
| snekmate | 18 | 604 | 1,226 |
| OpenZeppelin Math | 18 | 766 |