跳到内容
onsuggest
登录
文章 en

parse_number() as a SQLite extension: C vs Rust

来源: Simon Willison ·

Research: parse_number() as a SQLite extension: C vs Rust I was out walking the dog when I got curious about how easy/difficult it would be to write a SQLite C extension that adds a parse_number() function for turning strings like -$1,234.56 or '12.5%' into numeric values that could be summed and sorted. I fired up regular Claude chat (Opus 5.5) and prompted : I'm thinking about a SQLite custom function 'parse_number(value)' that strips ',', '$', '£' and '%', handles a leading '-', and returns 'NULL' for anything it can’t parse Explore the difference between building this as a SQLite extension

什么是 parse_number() as a SQLite extension: C vs Rust?

parse_number() as a SQLite extension: C vs Rust is a 文章 discovery curated from Simon Willison. Research: parse_number() as a SQLite extension: C vs Rust I was out walking the dog when I got curious about how easy/difficult it would be to write a SQLite C extension that adds

如何访问或体验此内容?

You can experience this content directly on its original host (Simon Willison) by clicking the "Open Original" button.

此内容来源于哪里?

Curated from Simon Willison by the OnSuggest team to surface the most interesting and serendipitous content on the web.

文章 · 科技

DIY Quiz Show Controller System #AdafruitLearnSystem

Build a Jeopardy-like Game Show Buzzer with a Circuit Playground Bluefruit! The first player to press their buzzer will illuminate the Host controller with the color of the buzzer handle! You can even enable Bluetooth button presses to a computer or mobile device! The code is written in CircuitPython, so it’s easy to change the […]

Adafruit Blog 查看详情 →
文章 · 科技

Catch the backyard raccoon in the act with $105 night vision binoculars

TL;DR: Get Double Barrel 720p Digital Night Vision Binoculars with infrared LEDs and 4x zoom for $104.97 (reg. $297.99). Regular binoculars stop being useful once the sun goes down, because they can only magnify light that's already there. If you want to see what's moving around after dark, try the Double Barrel 720p Digital Night Vision Binoculars. — Read the rest The post Catch the backyard raccoon in the act with $105 night vision binoculars appeared first on Boing Boing .

Boing Boing 查看详情 →

键盘快捷键

上一条发现
←P
下一条发现
→N
喜欢
L
不适合我
X
保存
S
显示此帮助
?
关闭
Esc

快捷键在发现页面上有效。