Nibblestew 技术博客

RSS: https://nibblestew.blogspot.com/feeds/posts/default?alt=rss
Jussi Pakkanen 的个人开发博客。

自己动手把Super 8胶片数字化

用树莓派+步进电机+显微镜镜头自制Super 8胶片扫描仪,每卷3.5分钟约1小时完成数字化。放弃投影仪方案,改用机器视觉检测 sprocket 孔来驱动胶片,省掉了昂贵微距镜头和破坏性改装。OpenCV写控制程序,分辨率从4K降到2K后运行时间从9小时缩到1小时。
评论点赞收藏3 天前

修复一台70年代的超级8投影仪

警告!切勿在家尝试上述任何操作!擅自拆解电子设备的内部组件极其危险,可能导致电气火灾、严重伤害,甚至危及生命。 我父亲早在1967年就开始使用超级8 胶片相机(该系统于1965年正式推出)。到了20世纪80年代,由于几乎再也买不到胶片了,他便不再使用这种相机。自那以后,这些胶片就一直被存放在他地下室的多个纸箱里。最近,他搬进了一间面积更小的公寓,因此所有的胶片和相关配件不得不搬到其他地方——也就是...
评论点赞收藏16 天前

Pystd:以极短编译时间实现类似功能的自定义 C++ 标准库

作者开发了一个从零编写的 C++ 标准库 Pystd,旨在解决 C++ 编译速度慢的问题。相比传统标准库动辄数万行的预处理代码,Pystd 通过限制编译时间预算,实现了极快的构建速度。实测显示,使用 Pystd 可将编译时间降低约 80%,二进制体积减少 75%,且运行时性能反而提升了 25%。
评论点赞收藏50 天前

要提防《星际迷航》的管理者,尤其是当他们持有MBA学位时。

几乎就在三年前,“奥西盖特”号潜艇发生了一次沉没事故。这场灾难的起因,是位名叫斯托克顿·拉什 的亿万富翁,为了在泰坦尼克号上观光游览,自己打造了一艘未被保密的潜艇。他无视所有专家的建议,亲手制造出一个堪称“麦金维式死亡陷阱”的装置——最终不仅夺去了他的生命,还不幸夺走了4位无辜的生命。整件事情充分展现了愚蠢与傲慢的极端表现,而其后果更是令人痛心不已。我们暂且不深入探讨事件本身的细节,但对此感兴趣的...
评论点赞收藏61 天前

Faking keyword arguments to functions in C++

One of the many nice language features in Python are keyword arguments. They make some types of APIs concise and readable. Like so: C does not have keyword arguments and, by extension, neither does C...
评论点赞收藏67 天前

CapyPDF 功能趋于完善

作者宣布 CapyPDF 库已支持生成包含文本框和单选按钮的 PDF 表单,这被视为该库最后的主要缺失功能之一。 文章回顾了项目的实现哲学,即只实现常用功能以最小成本满足需求,并指出 API 可能随用户反馈调整。
评论点赞收藏116 天前

Multi merge sort, or when optimizations aren't

In our previous episode we wrote a merge sort implementation that runs a bit faster than the one in stdlibc++. The question then becomes, could it be made even faster. If you go through the relevant l...
评论点赞收藏117 天前

Sorting Performance Rabbit Hole

In an earlier blog post we found out that Pystd's simple sorting algorithm implementations were 5-10% slower than their stdlibc++ counterparts. The obvious follow up nerd snipe is to ask "can we make ...
评论点赞收藏131 天前

Everything old is new again: memory optimization

At this point in history, AI sociopaths have purchased all the world's RAM in order to run their copyright infringement factories at full blast. Thus the amount of memory in consumer computers and pho...
评论点赞收藏145 天前

How to get banned from Facebook in one simple step

I, too, have (or as you can probably guess from the title of this post, had) a Facebook account. I only ever used it for two purposes. 1. Finding out what friends I rarely see are doing 2. Getting in...
评论点赞收藏214 天前

AI and Money

If you ask people why they are using AI (or want other people to use it) you get a ton of different answers. Typically none of them contain the real reason, which is that using AI is dirt cheap. Betwe...
评论点赞收藏218 天前

将电子书生成工具从 Cairo/Pango 迁移至 CapyPDF

作者将自研电子书生成工具 Chapterizer 从 Cairo/Pango 迁移至 CapyPDF,解决了印刷 RGB 限制、裁切框缺失及字体替换等痛点。 迁移过程主要涉及处理 PDF 坐标系差异等工程细节。实测显示 CapyPDF 性能优异,生成 40 页文档仅需 0.4 秒。
评论点赞收藏223 天前

新年新纪元:如何在不断裂接口的情况下演进 API

作者介绍了一种在保持 ABI 稳定的同时演进 API 的方法:通过按年份划分命名空间(如 pystd2025, pystd2026),旧版本冻结仅修 Bug,新版本自由变更。 针对代码重复导致的编译效率问题,作者实测了包含新旧两个版本代码的构建耗时,并与标准 C++ 编译进行对比,验证该方案的性能开销。
评论点赞收藏226 天前

3D Models in PDF Documents

PDF can do a lot of things. One them is embedding 3D models in the file and displaying them. The user can orient them freely in 3D space and even choose how they should be rendered (wireframe, solid, ...
评论点赞收藏263 天前

使用 CapyPDF 创建有效的 PDF/A-4 文件

作者分享了使用 CapyPDF 库生成符合标准的 PDF/A-4 归档文件的实践经验。由于 PDF/A 规范未公开,作者通过反复测试验证器来修复生成的文件问题。 这一功能即将在 CapyPDF 的下一个版本中发布,为需要长期电子数据存档的技术人员提供了具体的解决方案和工具参考。
评论点赞收藏276 天前

登录芦苇

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