frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: LangGraph profiling – 737x Faster Checkpoints via Rust (PyO3)

https://github.com/neul-labs/fast-langgraph
2•ticktockten•1h ago
Building AI agents with LangGraph, I noticed graph invocations were slow even before hitting the LLM. Dug into the Pregel execution engine to find out why.

THE PROBLEM

Profiled my LangGraph agents. 50-100ms per invocation, most of it not the LLM. Found two culprits:

1. ThreadPoolExecutor created fresh every invoke() — 20ms overhead

2. Checkpointing uses deepcopy() — 52ms for 35KB state, 206ms for 250KB

THE FIX

Rewrote hot paths in Rust via PyO3:

Checkpoint serialization (serde vs deepcopy):

35KB state: 0.29ms vs 52ms = 178x faster

250KB state: 0.28ms vs 206ms = 737x faster

E2E with checkpointing: 2-3x faster

Drop-in usage:

export FAST_LANGGRAPH_AUTO_PATCH=1

# or explicit from fast_langgraph import RustSQLiteCheckpointer

checkpointer = RustSQLiteCheckpointer("state.db")

KEY INSIGHT

PyO3 boundary costs ~1-2μs per call. Rust only wins when you:

- Avoid intermediate Python objects (checkpoint serialization)

- Batch operations (channel updates)

- Handle large data (state > 10KB)

For simple dict ops, Python's C-dict still wins.

Architecture: Python orchestration (compatibility) + Rust hot paths (performance).

Runs regular compatibility checks!

MIT licensed. Feedback welcome.

AI slop ad backfires for McDonald's

https://www.latimes.com/business/story/2025-12-10/ai-slop-ad-backfires-for-mcdonalds
1•thm•20s ago•0 comments

Show HN: I wrote an open source package manager for AI coding, OpenPackage

https://github.com/enulus/OpenPackage
1•hyericlee•34s ago•0 comments

Ask HN: Post-CVE-2025-55182 – should we be auditing for backdoors?

1•Just_Clive•44s ago•0 comments

Show HN: I made a web piano with recording and playback

https://webpiano.jcurcioconsulting.com
1•Jeremy1026•50s ago•0 comments

Dialing Up the Internet Phonebook

https://pketh.org/internet-phonebook.html
1•cookingoils•1m ago•0 comments

Show HN: A directory of 150 AI bots and crawlers with verifying tools

https://crawlercheck.com/directory
1•bogozi•2m ago•1 comments

Google Calendar Extension – a browser-side enhancement for Calendar users

1•sergey_commit•2m ago•1 comments

Cagent – Docker Docs

https://docs.docker.com/ai/cagent
1•thunderbong•6m ago•0 comments

Black Hole Recorded Blasting Winds at More Than 20% the Speed of Light

https://www.esa.int/Science_Exploration/Space_Science/XMM-Newton/Flaring_black_hole_whips_up_ultr...
2•Willingham•8m ago•0 comments

Trump to make all foreign tourists provide five years of social media history

https://www.lbc.co.uk/article/trump-foreign-tourists-social-media-history-5HjdPCX_2/
4•chrisjj•8m ago•0 comments

Streaming at the Speed of Thought: How Human Perception Affects UX

https://www.red5.net/blog/streaming-at-the-speed-of-thought/
1•mondainx•8m ago•0 comments

US could ask foreign tourists for five-year social media history before entry

https://www.bbc.co.uk/news/articles/c1dz0g2ykpeo
2•neversaydie•8m ago•0 comments

Hard problems in social media archiving

https://alexwlchan.net/2025/hard-problems-in-social-media-archiving/
1•ingve•9m ago•0 comments

Togelius: Please, Don't Automate Science

http://togelius.blogspot.com/2025/12/please-dont-automate-science.html
1•bilsbie•10m ago•0 comments

Ethereum Fusaka upgrade set for early December rollout

https://altcoindesk.com/perspectives/learn/ethereum-fusaka-upgrade-set-for-early-december-rollout...
1•AishwaryaTiwari•12m ago•0 comments

First Analysis of the Lunar GNSS Receiver Experiment Data

https://destevez.net/2025/12/first-analysis-of-the-lunar-gnss-receiver-experiment-data/
1•tverbeure•14m ago•0 comments

History Rhymes: Macro-Contextual Retrieval for Robust Financial Forecasting

https://arxiv.org/abs/2511.09754
1•PaulHoule•15m ago•0 comments

Ask HN: Did Andrew Lee Kill IRC?

1•the_stocker•16m ago•1 comments

Notepad++ Updater Installed Malware

https://www.heise.de/en/news/Notepad-updater-installed-malware-11109726.html
5•mimikasec•18m ago•1 comments

Ask HN: Resources for Learning Springboot

1•peter_bips•19m ago•0 comments

The Java Ring: A Wearable Computer (1998)

https://www.nngroup.com/articles/javaring-wearable-computer/
1•cromulent•20m ago•0 comments

Week 1 of Streaming as a Developer

https://www.twitch.tv/implabinash
1•implabinash•21m ago•1 comments

Docker Best Practices: Read-Only Containers

https://blog.ploetzli.ch/2025/docker-best-practices-read-only-containers/
1•buibuibui•22m ago•0 comments

Ask HNIs early-stage fundraising broken,or founders just pitching the wrong way?

1•paulwilsonn•25m ago•0 comments

Show HN: YM2149 in Rust – Chiptune Emulation from Atari ST to WebAssembly

https://ym2149-rs.org/
1•slippyvex•27m ago•1 comments

Distropack: Build once make it available on all Linux distros

https://distropack.dev
1•segfault0x23•30m ago•1 comments

Mission Decoded

https://missiondecoded.com/
1•downboots•30m ago•0 comments

Cache Augmented Generation

https://github.com/letslego/cagvault
1•amitabhakarmak•30m ago•0 comments

Is Europe ready to pull the trigger if Trump cuts Ukraine deal?

https://economictimes.indiatimes.com/news/international/us/is-europe-ready-to-pull-the-trigger-of...
3•robtherobber•31m ago•0 comments

Sam Altman says industry is wrong on OpenAI's competition, it is not from Google

https://timesofindia.indiatimes.com/technology/tech-news/sam-altman-says-industry-is-wrong-on-ope...
4•ashishgupta2209•33m ago•0 comments