Posts

CUP (Common Useful Python): Building Reliable Python Workflows with Baidu’s Utility Toolkit

In this tutorial, we explore CUP , Baidu’s Common Useful Python library, as a practical utility toolkit for building stronger Python workflows. We begin by setting up the library in a Colab-friendly environment and then move through its major subsystems step by step, including logging, decorators, nested configuration, caching, ID generation, thread pools, interruptible threads, delayed execution, time utilities, Linux resource monitoring, file locking, networking helpers, object storage interfaces, type maps, and built-in testing assertions. As we progress, we do not just call functions at random; we observe how each module fits into real-world development tasks such as monitoring, automation, concurrency, configuration management, and reliability checks. CUP Setup and Logging Copy Code Copied Use a different Browser import os import sys import time import threading import tempfile import datetime import subprocess def banner(title): line = "=" * 70 print(...

Linq’s iMessage Apps Bring Payments, Tickets, Flights, and Games Into the iMessage Bubble Through the imessage_app Part

Linq developers can now build iMessage Apps . These are interactive mini-apps that run inside a iMessages conversation. A user can shop, play a game, book a flight, or pay. None of it requires leaving the iMessage thread. There is no deep link to an external browser. There is no ‘tap here to finish in the app.’ Previously, an agent’s main API option was to send a link. The user then had to follow it somewhere else. iMessage Apps remove that handoff. TL;DR Linq’s new imessage_app part renders tappable, interactive cards directly inside an iMessage thread. One card handles full workflows: games, payments, tickets, flights, music, and dating. Cards update in place via /messages/{id}/update , so state changes redraw the same bubble. An interactive flag toggles the live experience versus a static caption-only layout card. It’s iMessage-only with no SMS/RCS fallback, and rich rendering needs your app installed. iMessage A...

Anthropic Claude Sonnet 5 vs Sonnet 4.6 vs Opus 4.8: Agentic Coding Benchmarks, API Pricing, and Cost-Performance Tradeoffs Compared

Image
Anthropic just shipped Claude Sonnet 5 . They call it its most agentic Sonnet model yet. It plans, drives browsers and terminals, and runs autonomously across long tasks. Sonnet 5 is the default model for Free and Pro plans today. Max, Team, and Enterprise users can select it. It is also live in Claude Code and on the Claude Platform. TL;DR Sonnet 5 is Anthropic’s most agentic mid-tier model , closing much of the gap to Opus 4.8. Beats Sonnet 4.6 on every published benchmark : 63.2% SWE-bench Pro, 81.2% OSWorld-Verified, 57.4% HLE. Cheaper to run : $2/$10 per MTok intro pricing through Aug 31, then $3/$15; Opus 4.8 is $5/$25. Best value at low/medium effort ; at xhigh it can cost more than Opus 4.8 for similar quality. Safer than 4.6, with deliberately low cyber capability — Opus stays the pick for accuracy-critical work. Claude Sonnet 5 Sonnet sits in the middle of Anthropic’s lineup. It is above the cheaper Haiku 4.5 and below the fl...