我的收藏提交工具
FOXAI SEARCH

全站搜索

新闻报道 967

Show HN: Dart-TS Bridge

Working with Dart for years now and same goes for Node.JS. While we can use tRPC or oRPC to manage type-safe communication between front-end and backend in web but if you go to mobile with Flutter all that goes to waste, those carefully built routers, procedures and middleware everything.Here's a thing that could help tho :) Comments URL: https://news.ycombinator.com/item?id=50659956 Points: 1 # Comments: 0

翻译服务暂未运行,当前显示原文。
Hacker News Show HN

Show HN: Open-Sourced Code Mode to Cut ~60% of My Rust Agent's Token Burn

For those who are tracking, Anthropic released an announcement last week about their experimental code mode for Claude Code, claiming some bonkers token savings when it comes to tool calls (95% on some workloads(1)). I haven't benchmarked it myself, but independent studies come in somewhere closer to 60~70% savings (2), but I digress. TLDR; I built an open-source version for the community.Context: I'm writing an AI RPG engine called Spookery, and I immediately wanted to try this technique for myself when I heard of it. Agent deployment is currently dominated by token costs, especially during tool calling (single prompt generating tens or hundreds of tool calls). Unfortunately, it looks like the only ones who are doing this seriously are big agentic products like Claude Code and Codex. So, I thought it'd be fun to try it myself and bring it to you all!The idea of Code Mode is simple but powerful. Instead of passing back tool call results back to the LLM one at a time, let the LLM batch calls by letting it write a short script using your tools. Basically taking 30 trips to the grocery store for 30 items and turning it into one trip to the store with a list in-hand.There's a few near-ish open-source options, but they used TypeScript backends, we're a little boilerplate heavy, and I wanted to have something a little faster and Rust friendly for my game engine. Pydantic's Monty seemed a good candidate--their self-reports are around 5x faster on execution and 100x faster on startup (3). I wouldn't take the numbers to the bank, but it's written on a Rust framework and the python backend is entirely built from Rust too.Anyway, I had a couple of days off unexpectedly. So, I went temporarily insane and built a Rust tool to bring code mode to the greater community for free. In enough days to fit on one hand (and just as many hours of sleep), I came up with the implementation linked. I call it Ghost Mode. It's MIT licensed. It's a drop-in for your agent that already makes traditional tool calls. With ~20 lines of setup, you can convert your existing agent to a Code Mode agent.I hope you get something out of this, and maybe I can save you some money. Considering how limiting token economics are right now, I think this could be a game changer for the industry. If there's interest, I can imagine we can build also add some great new features, language compatibility, and other great things. Thanks for reading :)Sources: (1) https://www.marktechpost.com/2026/11/17/anthropic-claude-cod... (2) https://arxiv.org/abs/2611.19123 (3) https://pydantic.dev/docs/monty/get-started/ Comments URL: https://news.ycombinator.com/item?id=50665796 Points: 1 # Comments: 0

翻译服务暂未运行,当前显示原文。
Hacker News Show HN

Show HN:教孩子学电子技术

我儿子一直央求我教他电子学,已经有一阵子了。我买过不少书,但它们都有些缺陷:要么太简单,缺乏通向更高级元器件的过渡;要么太复杂,更适合成人,让他很快就感到挫败。这次我尝试打造一套方案,弥补这些不足,让孩子能更轻松地循序渐进地学习电子学——所用元件便宜,亚马逊或其他渠道都能轻松买到,而且完全无需焊接!希望你们喜欢。评论 URL:https://news.ycombinator.com/item?id=50666643 点数:1 # 评论:0

尚无对应语言译文,当前显示原文。
Hacker News Show HN