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 in C v.s. in Rust - I want to compare performance and code complexity and size of the resulting .so (or whatever) file This gave me a solid starting point - the Rust extension was 321 KB (using Rusqlite ) and 298 KB (using sqlite-loadable-rs ), while the C extension was 14 KB. But the Rust extension was faster! Turns out that's because the Rust equivalent of C's strtod is "twice as fast". So I prompted: Try writing your own C function for parsing text into a decimal number that catches up to or beats the Rust implementation And it did: Net cost per row over 2 million rows, lower is better: first C new C rusqlite sqlite-loadable Mixed data 67 ns 19 ns 46 ns 41 ns Integers only 25 ns 16 ns 36 ns 32 ns Decimals only 106 ns 18 ns 55 ns 47 ns Finally, I had it rewrite the prototype as a research report to match the others in simonw/research by prompting this: Clone simonw/research from GitHub and turn your above investigation into a research report as seen in that repository - you can give me a zip file to download that contains your new folder Here's the resulting report . Tags: c , research , sqlite , rust , claude
Nvidia CEO Jensen Huang admitted to having a romantic relationship with a suspected 〇〇 in a message to his company, and the company’s board announced an independent investigation Sunday. 附上内部信: To my colleagues at NVIDIA, I owe my family and all of you an apology. I was unfaithful to my wife. My actions hurt her and our children. There is no excuse for what I did. I am deeply sorry. Throughout my life, my family has given me love and support. They deserve my honesty and loyalty. Instead, I let them down and damaged the life we built together. I take full responsibility for what I did and the hurt I caused, and I accept the criticism that comes with it. To my wife and family: I love you. I know an apology cannot undo what I have done. I hope our family will heal and that, over time, I can earn back your trust. To my colleagues at NVIDIA, including those I have worked alongside for decades, and to our board, partners, and shareholders around the world: you deserve better from me. Leading NVIDIA is the privilege of my life. My responsibility is to serve you and be worthy of your trust. I have fallen short of that responsibility. I am fully committed to NVIDIA and will work to earn back your confidence. Regarding the national security concerns raised in news reports, NVIDIA’s Board of Directors has initiated an independent investigation. I support the investigation and will cooperate fully. I love our country and our company. I am committed to protecting NVIDIA and supporting America’s national security. I am proud and grateful to be an American. My family bears no responsibility for my choices. I do. Please give them privacy. Jensen
为什么 AI 即便达到无限速度也无法终结人月神话? A: 个人的注意力容量有限,因此最大速度有限 B: 人在社会中,社会有权责体系 B1: 因此,个人需要对实际的成品负责,在某一环节必须通过人来审批 C: AI 本身带有意图的耗散性(简单而言,没法做到完全符合使用者的意图与期待) B1 + C -> D: 人最终需要审查 AI 生成的结果,审查需要花费其时间与精力 A + D -> 单人同时承载的并行 AI 工作有限;多个人的情况,则适用人月神话原规律。 怎么在这一限制下达到效率最大化?这就是另一个值得探讨的议题。
The P in JEPA stands for predictive. The main distinction is not between JEA and JEPA, but between Joint Embedding (predictive or not) and generative architectures. Whether a predictor is necessary depends on the task. Given observations x and y (y being available only during training), a generative architectures predicts y from x. The loss is the divergence between y and its prediction: L = divergence(y, pred(enc(x)) ) A JEA encodes y as well and minimizes the divergence between the representations of x and y, while preventing collapse: L = divergence( enc(y), enc(x) ) + R( enc(y), enc(x) ) Where R is the anti-collapse regularizer, which may be computed over a batch of samples. JEA are used when the prediction has no particular direction, i.e. when x and y are different views of the same scene. The idea for JEA is very old. Becker and Hinton proposed a simple model in 1989 where the anticollapse was based on information maximization. Schmidhuber had a version in 1992 based on redundancy minimization. At NIPS 1993, I proposed Siamese nets, which was a contrastive method to train JEA. Such contrastive methods gained popu.arity after Google's SimCLR paper in 2020. In 2021, Stéphane Deny in my group proposed the Barlow Twins redundancy reduction regularizer, which seemed to work at scale. This was shortly followed by VICReg by Adrien Bardes, Jean Ponce, and me, and last year by SIGReg by Randall Balestriero and me. DINO is a JEA method that comes from a long string of papers from Piotr Bojanowski's group at FAIR-Paris, starting with Noise as Targets (2017), Deep Clustering (2018-2020), and DINO v1-v3 which are contrastive between clusters, not samples. JEPA adds a predictor, which is useful when the prediction is non-symetric. For example, when x is a degraded/corrupted version of y, or when x is a present observation and y a future observation (temporal prediction). The loss is: L = divergence( enc(y), pred(enc(x)) ) + R( enc(y), enc(x) ) All of these models can be augmented by an action variable a, fed to the predictor, encoding an action, intervention, or transformation to produce y from x. This turns the system into a "world model". In a JEPA, the loss becomes L = divergence( enc(y), pred(enc(x), a) ) + R( enc(y), enc(x) )
最近在做多媒体 AI 产品集成,发现不同模型和供应商的接口差异会增加维护成本。 01Router 提供一个统一 API ,可接入视频、图片、音频和聊天模型,也可以按预算和质量选择模型与供应商。对需要快速试用不同模型的开发者,可能会更方便。 产品同时提供 Web Studio 和 API 接入,定价模式为 freemium ,最低价格为 $10 / 1,000 credits 。 官网: 01Router
最近在做多媒体 AI 产品集成,发现不同模型和供应商的接口差异会增加维护成本。 01Router 提供一个统一 API ,可接入视频、图片、音频和聊天模型,也可以按预算和质量选择模型与供应商。对需要快速试用不同模型的开发者,可能会更方便。 产品同时提供 Web Studio 和 API 接入,定价模式为 freemium ,最低价格为 $10 / 1,000 credits 。 官网: 01Router
IT之家 11 月 8 日消息,彭博社记者马克 · 古尔曼在今天(8 日)晚间更新的《Power On》时事通讯中披露,苹果新任 CEO 约翰 · 特努斯敦促软件工程主管克雷格 · 费德里吉加快 AI 业务发展,采取更大胆的策略,目标是将 Siri 升级为能够 自主替用户完成任务的 AI 智能体 。 上周的财报电话会议上,特努斯对苹果的 AI 业务表现得相当乐观。谈及新版 Siri 时特努斯更是自信十足:苹果终于实现了多年来的设想,公司 AI 业务迎来了新篇章。“我们对收到的评价和反馈 非常满意 ,也非常高兴看到越来越多的用户能够体验到它。” 但在苹果内部,特努斯的态度却截然不同。他深知苹果仍 远远落后于竞争对手 。最近几周,特努斯与去年接替原 AI 负责人、掌管苹果 AI 业务的费德里吉举行了一次闭门会议。 特努斯希望苹果在 AI 领域有更大的作为,也对费德里吉未能像竞争对手那样积极拥抱 AI 感到不满,因此要求他 加快开发进度 ,不能满足于仅仅完成 Siri 必要的功能升级。 费德里吉至今仍被认为是 AI 怀疑论者,担心其对 隐私、安全、社会和就业 造成的影响。但无论是费德里吉还是苹果,都唯有面对已经发生变化的行业环境。 面对 OpenAI、Meta、谷歌、Anthropic 等公司引领的 AI 浪潮,苹果不再有过去那般可以选择置身事外的实力。 苹果软件部门长期存在的管理问题也因此受到关注。费德里吉习惯 亲自参与会议和重大决策 ,一些员工认为,这种管理方式 让不同意见很难获得支持 。他还经常与持反对意见的人激烈辩论,凭借对技术细节的熟悉程度和出色的辩论能力,反驳自己不赞同的提案。 IT之家从报道中获悉,这种做法有时令软件工程和设计团队成员感到不满,一些人认为,自己很难影响产品的最终发展方向。 费德里吉偏好短期规划也是一个问题。他通常 只制定未来 12 至 18 个月的计划 ,而苹果硬件部门习惯提前数年规划产品。两种工作方式有时难以协调,不仅拖慢产品开发,还可能导致初代产品的功能和设计不够大胆。 苹果希望让硬件与 AI 软件的开发更加紧密地结合,因此, 如何协调两个部门的规划方式,将成为特努斯的一项重要任务 。虽然苹果在硬件设计和工程方面仍处于行业领先地位,但软件发展并非总能跟上硬件的步伐。 尽管如此,费德里吉也有能力解决其他高管难以处理的问题。去年,苹果发现原 AI 负责人约翰 · 詹南德雷亚无法兑现公司对 Siri 的承诺后,改由费德里吉接管开发工作, 并在相对较短的时间内推出了能够正常运行的新版助手 。
为什么 AI 即便达到无限速度也无法终结人月神话? A: 个人的注意力容量有限,因此最大速度有限 B: 人在社会中,社会有权责体系 B1: 因此,个人需要对实际的成品负责,在某一环节必须通过人来审批 C: AI 本身带有意图的耗散性(简单而言,没法做到完全符合使用者的意图与期待) B1 + C -> D: 人最终需要审查 AI 生成的结果,审查需要花费其时间与精力 A + D -> 单人同时承载的并行 AI 工作有限;多个人的情况,则适用人月神话原规律。 怎么在这一限制下达到效率最大化?这就是另一个值得探讨的议题。