Noteflakes

RSS: https://noteflakes.com/feeds/rss
Noteflakes,独立的软件公司,为 Web 驱动的过程控制应用构建定制解决方案。

关于孩子和足球

作者父亲出生在罗马尼亚喀尔巴阡山脚下的莫尔多维察村,童年时期当地犹太儿童足球队"马卡比"没有正式足球,便利用鞋油厂商"收集100个瓶盖换一颗新球"的促销活动,孩子们故意多费鞋油攒瓶盖,最终成功换到两颗新球。 文章以一段温暖的家庭口述记忆开头,带有怀旧叙事色彩,但正文明显截断(以"The only thing…"结尾),信息增量有限,属于个人轶事分享而非技术或产品讨论。
评论点赞收藏3 天前

Extralite 3.1.0 发布了

Extralite(Ruby 的 SQLite 封装库)发布 3.1.0 版本:新增参数量查询的自动缓存(自动缓存底层 sqlite3_stmt 对象,避免重复创建),并将内置 SQLite 升级到 3.53.4。 Extralite 支持多线程/多纤程 Ruby 应用中使用 SQLite 数据库,提供多种数据检索方式和数据库管理工具。
评论点赞收藏8 天前

超越 ORM:我为什么转向直接用 SQL 操作数据库

<p>我一直对ORM的设计很感兴趣——我想知道它们是如何工作的,不同的方法是什么,以及它们的使用方式。我尝试了很多不同的,甚至自己创造了.但在过去几年里,我慢慢转向更直接地与数据库打交道——用纯SQL发出查询,处理来自数据库的原始数据,或者为关系型数据库构建自定义的低层抽象。<br><br>我代码与数据库交互方式的演变,正是我创建这些内容的原因, 一个用于处理 SQLite 数据库的 Ruby 宝石。</p><p>为什么我更喜欢直接与数据库交互,而不是使用ORM?对于熟悉SQL的开发者来说,ORM的局限性应该很明显——它不支持窗口函数、常用表表达式(CTE),甚至不支持<code>RETURNING</code>子句;ORM层本身是一个重要的依赖(ActiveRecord代码库约为~43KLoC),它在内存和CPU时间方面带来了性能成本;其定义性特征是将行映射到对象,是一种反模式,被描述为””.</p><p>我很清楚,ActiveRecord 是 Ruby/Rails 社区中与数据库通信最流行的方式,并且对许多 Ruby 及其他语言的 ORM 产生了巨大影响。但对我来说,ActiveRecord 一直感觉不对劲。<br><br>我越是构建网页应用和平台,越觉得这一点清晰。ActiveRecord 为关系数据提供了错误的抽象。ActiveRecord 专注于单一记录,即每条记录本身就是一个实体。<br><br>然而,实际上,规范化数据库会包含许多带有附加数据的表,比如…</p>
评论点赞收藏25 天前

重新思考 Ruby 应用中的模块化

I wrote recently (/articles/2026-06-13-syntropy) about Syntropy, a new Ruby web framework I’m working on (it runs this site ). Syntropy’s design is based around the idea of file-based routing, which m...
评论点赞收藏103 天前

软件即手艺:初探自研Web框架Syntropy

作者反思软件开发的工匠精神,批评过度依赖框架和AI自动化。介绍其自研Ruby Web框架Syntropy,采用基于文件的动态路由和模块加载机制。 对比Rails等主流框架,强调低层级控制与代码组织的灵活性。详细解析了路由树构建、中间件组合及控制器设计模式。
评论点赞收藏109 天前

探索 io_uring 的自动缓冲管理方案

作者分享在 Ruby gem UringMachine 中实现 io_uring 自动缓冲管理的工程实践。通过内核提供的缓冲环机制,结合自动补充和复用策略, 显著减少了数据拷贝与内存分配。 文章详细解释了如何处理多路复用下的分段缓冲区,以及如何构建类似 HTTP 和 Redis 协议的上层解析器。这种将底层高性能 I/O 与 Ruby Fiber 调度器无缝结合的设计,为高并发网络编程提供了新的思路。
评论点赞收藏115 天前

Threads vs Fibers - Can't We Be Friends?

In the last few weeks I’ve been writing here about my work on UringMachine, a Ruby gem for doing I/O with io_uring. Before I talk about my work this week, I’d like to address something that is importa...
评论点赞收藏285 天前

OSS Friday Update – Fibers Are the Future of Ruby

In the last few days I’ve managed to finalize work on the UringMachine fiber scheduler. Beyond making sure the fiber scheduler is feature complete, that is, it implements all the different Fiber Sched...
评论点赞收藏291 天前

OSS Friday Update – The Shape of Ruby I/O to Come

I’m currently doing grant work for the Japanese Ruby Association on UringMachine, a new Ruby gem that provides a low-level API for working with io_uring. As part of my work I’ll be providing weekly up...
评论点赞收藏298 天前

OSS Friday Update

Note: while my schedule is quite hectic these last few weeks, I’ve taken the decision to dedicate at least one day per week for developing open-source tools, and henceforth I plan to post an update on...
评论点赞收藏312 天前

You Win Some, You Lose Some: On Papercraft and More

In the last few weeks I’ve been busy with a few different projects, and I guess I’m not the only freelancer who has trouble finding their work-life balance. That is, in the last few weeks life has bee...
评论点赞收藏323 天前

Papercraft 3.0 Released

I have just released Papercraft version 3.0. This release includes a new API for rendering templates, improved XML support and an improved API for the Papercraft::Template wrapper class. Below is a di...
评论点赞收藏345 天前

Hanami on Papercraft

Lately I’ve been really excited about Papercraft and the possibilities it brings to developing web apps with Ruby. Frankly, the more I use it, the more I see how simple and joyful it can be to write b...
评论点赞收藏360 天前

Papercraft Update: New Version, New Website

I’ve been working quite a bit on Papercraft these last few weeks. Yesterday I released Papercraft version 2.16, and here are some of the notable changes introduced since the last update: • Emit DOCTY...
评论点赞收藏362 天前

Words Can Hurt: A Plea to the Ruby Community

I’ve been watching the recent drama within the Ruby community slowly devolve in the last few days into name-calling and virtue-signalling, and frankly just plain silliness. I won’t repeat here the det...
评论点赞收藏368 天前

My Thoughts on Euruko

I’ve just got back home from Euruko last night. The conference ended on Friday, but I decided to stay two more nights in Portugal and visit Porto. In between walking all over the city, eating great fo...
评论点赞收藏371 天前

P2 Is the New Papercraft

In the last few months I’ve been busy working on a few different open-source projects. Some of those projects are still at a preliminary stage, and I’m taking my time in continuing to develop them, us...
评论点赞收藏383 天前

How I Made Ruby Faster Than Ruby

Note: P2 is now folded back into Papercraft. The P2 repository will eventually be archived. If you’re a Ruby programmer, you most probably will be familiar ERB templates and the distinctive syntax wh...
评论点赞收藏408 天前

P2 – A Functional HTML Templating Engine for Ruby

Note: P2 is now folded back into Papercraft. The P2 repository will eventually be archived. I’ve just released P2, a new HTML templating engine for Ruby. P2 builds on the work I did in Papercraft, but...
评论点赞收藏419 天前

登录芦苇

登录后关注作者、收藏内容和参与讨论。