So I ran into an unexpected and suddenly new issue with my #friendica today, it was all of a sudden killing my bin/console jetstream and claiming [Error] Invalid opcode '12' provided, knowing I had done no recent work to my #node codebase, I reached out to my hosting providers tech support, which albeit they are really amazing, they were stumped, it would appear #cloudlinux pushed an update on April 14, 2006 that was significant to the ALT-PHP 8.5 stack specifically to fix path-traversal issues and CageFS isolation for PHP-FPM, however after a few hours in which I had put my instance in full maintenance lockdown, they were still trying to figure out the issue and had to put in their own support request to cloudlinux and told me they would let me know when they have more info, so I re-engaged my instance and of course the issue is still there, so then I have to create a script that runs via cron, to get this check that jetstream is dead or alive if dead it starts it, and it runs every 60seconds because we are still experiencing the ghost kill with [Error] Invalid opcode '12' provided, I swear my instance is built with bailing wire and duct tape, but boy it sure gets up and moves like a starship, the scariest thing at the moment is, I really have no idea what I am doing, I search a little code a little, try a little, and somehow I get it going, if I ever catch on to what I am doing, I may just have to write a book, but for now, I am making a totally random post about my #fediverse adventures in #programing, with #friendica, now I am downloading a full backup of my instance along with the DB, my special crons, and a special python program I created originally to handle worker processor, then I have some light file clean up on my host server, and after I make sure everything downloaded right, I will maybe get some rest tonight, for now I am just relishing in my accomplishment of creating bridges over potholes in my server environment;

You can encourage my continued useless #poetry, creativity and expression of self, #commentary, random thoughts, #philosophy and ideas, and by doing so your helping to feed, house and clothe a #disabled man living in #poverty, $5-10-15 It All Helps, via #cashapp at $woctxphotog or via #paypal at paypal.com/donate?campaign_id=…

Please Help Philip

Unterstützen Sie Philip A. Swiderski Jr, indem Sie spenden oder diese Nachricht mit Ihren Freunden teilen.

More tweaking of older #Emacs packages, this time slstats.sl: a package for looking up information about the #SecondLife grid.

https://blog.davep.org/2026/04/15/slstats-el-v1-11.html

#lisp #elisp #programing

slstats.el v1.11

Yet another older Emacs Lisp package that has had a tidy up. This one is slstats.el, a wee package that can be used to look up various statistics about the Second Life grid. It's mainly a wrapper around the API provided by the Second Life grid survey.

davep

Has anyone disassembled and fully reverse engineered the TMNT NES game? I'm referring to the original with the dam level from Hell, not TMNT the Arcade Game, which came out somewhat later.

#retrogaming #tmnt #nes #programing #disassembly

If you were in charge of reinventing BASIC for the modern era, what would you do? #BASIC #programing #askfedi
I'm looking for a modern introduction to #C. Something that is slow and steady but through. This is as much for systems programming on Linux as embedded work; I intend to do a bit of both. Any suggestions would be helpful. #programing #programinghelp #askfedi

There's also std::execution, which — if I understand correctly — contains a standard equivalent to Qt's signal/slot system?

#programing #cpp

Reflection: C++’s decade-defining rocket engine — Herb Sutter @ CppCon 2025

https://www.youtube.com/watch?v=7z9NNrRDHQU

If I understand this correctly, this is going to be good news for Qt/Plasma's performance as Qt basically reimplemented a reflection/metaprogramming system with QMetaObject.

#programing #cpp

iPhone版 Pre-Babel Lens 発売(なるか?)

先日から作っていたApple Intelligenceのデバイス内LLM、Foundation Modelsを使うローカル翻訳アプリケーション、Pre-Babel LensのiPhone版をApp Store Connectに登録しました。21:55現在、初めてのビルドが審査に入ったところです。何事もなければ明日にはApp Storeに並んでいることでしょう。

https://taiyolab.com/ja/pre-babel-lens/

Pre-Babel Lensはちょっと古典的な見た目の翻訳アプリです。上フィールドにに原文、翻訳ボタンを押すと下のフィールドに訳文が登場します。

iPhone版のインターフェイス

原文側はエディターになっているのでタイプすることもペーストすることもできますし、他のアプリケーションから共有でテキストを送ることもできます。また、テキストを抽出できるファイルを共有するとその中身を入れることも可能です(Mac版にもいずれ搭載しますね)。

翻訳にデバイス内LLMを使っているので、通信環境がなくても動作するのが最大の特徴です。飛行機でも、洋上のフェリーでも、東海道新幹線のトンネルが続く区間でも、送られてきたメールや書類の中身をざっと把握できます。国外に持って行ったことはないのですが、インターネット接続が制限される国でも安心して使えることでしょう。通信しないので、秘密にしておかなければならない文書も安心して翻訳できます。Google Translateのような人生に紐づいているようなサービスに、繰り返し、これは大丈夫かな、と思うような文書を投げ続けるのは怖いかもしれませんが、Pre-Babel Lensなら大丈夫。一文も漏らしません。そのために作ったアプリです。

もっとも制限がないわけではありません。Apple Intelligenceの基準はちょっと厳しいのです。

まず未成年の行為に関する翻訳ができません。また、暴力、虐待、差別に関する翻訳もしてくれません。政治的なコンテンツでも特定の国家を貶めるような表現は翻訳してくれません。イスラエルも中国もロシアも、アメリカも日本も、その属性を元にした嘲笑的な、あるいは侮辱的な表現、記述を翻訳しない傾向にあります。

制限はモデルそのものに強固に含まれているのでアプリ開発者ではどうにもなりません。対象となる単語を削れば翻訳してくれることもあるのですが、今のバージョンではその推察まで行ってはいません。この制限はApple Intellligence本体にとっても大きな負担となるようで、制限を出すと処理が遅くなったり、タグをこぼしたりという性能低下が見られました。ストレスのかかる仕事をさせると疲れてしまうあたり、全く違う成り立ちなのに人間らしくて感心してしまうのですが、笑ってばかりもいられません。公開するアプリでは、制限が出たところで翻訳セッションを立ち上げ直して、性能低下を防ぐようにしています。

興味のある方は、どんな制限があるのかリトライしてみるのもいいでしょう。通信しないアプリなので、それが原因でサービスからBANされるようなことがないのももローカルアプリのいいところです。ちょっと試したところでは、単語レベルではなく文脈を見て制限を決めているようです。さすがLLMと言いたいところですが、翻訳アプリとしては困っちゃうので、Pre-Babel Lensには、翻訳できなかった原文をハイライトして挿入する機能を搭載しました。

戦争に関する国際ニュースでこの制限は頻発します。もっともリアルタイムなニュースが見れるような通信できる環境なら、標準の翻訳やクラウドAIを使う方がいいでしょう。回避する方法を探ってみます。

AppleのOSにはTranslation Frameworkという、翻訳専用の機能が備わっています。ブラウザーの翻訳や「翻訳」アプリで使われるものです。確率的モデルを使った翻訳なので、2010年ごろまでのアルゴリズム翻訳よりは大体なんでも翻訳してくれますが、大規模言語モデルほどニュアンスや文脈を考慮してはくれません。ただ、この制限を回避するために、落ちたところだけTranslation Frameworkを使うのもありかなあとは思っています。今後の課題です。

制限の話を続けます。Apple Intelligenceは15言語しかサポートしていません。翻訳できるのはデンマーク語、ドイツ語、英語、スペイン語、フランス語、イタリア語、日本語、韓国語、ノルウェー語、オランダ語、ポルトガル語、スウェーデン語、トルコ語、ベトナム語、中国語です。これは私の努力では増やせません。ロシア語やアラビア語、タイ語、ベトナム語、ベンガル、ヒンディーあたりは欲しいところです。

実は自力で全て作るiOSアプリはこれが初めてです。Swiftも(Hello, World!であんなこと書いたのに)初めて。Codexで開発したのですが、コードそのものよりもツールの準備と開発環境の整備がとにかく大変ですね。App Storeへの登録も15年前とは大違い。便利になったところもありますが、コード署名などのツールチェーンは初見殺しというか、専門家が必要なレベルになりつつあることを実感しました。TestFlightなんてサードパーティーツールの頃は胡散臭さ満点のサイドロード環境だったのに、立派になりました。手間もすごいけど。しかしCodexなら(きっとClaude Codeでも)そのあたりの事務手続きを突破してくれる。世界が変わるのを感じました。

このブログを書いている途中で、初めて登録したバージョンが審査を通過しました(!)。おそらく夜の間には、公開バージョンが出て、App Storeで買えるようになっていると思います。Pre-Babel Lensには、無料のMac版と、有料(150円)のiPhone版があります。GitHubにはソースコードもありますので、自分で開発してみたい方は遠慮なくフォークしてビルドしてみてください。

このブログをMastodonまたはFediverseでフォローして、フィードに直接更新を受け取ってください.

#ai #programing

I'm not fond of introducing a new keyword as it can often clash with existing codebases and especially since this one is highly specific. But this was designed by people far more competent that me so let's trust.

Furthermore, it opens the possibility of using for lazy initialization in the future, a bit like what Kotlin proposes: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/lazy.html.

#programing #Python #Django

lazy | Core API – Kotlin Programming Language

Kotlin Help