News for hackers. Stuff that matters.

sublee

Re:JSON River – Parse JSON incrementally as it streams in on Monday October 13, 2025 @08:33PM (#45574900)
Incremental JSON parsing is key for LLM apps, but safe progressive UIs also need to track incompleteness and per-chunk diffs. LangDiff [1] would help with that.

[1]: https://github.com/globalaiplatform/langdiff/tree/main/ts

torchgpipe, a GPipe Implementation in PyTorch

https://github.com/kakaobrain/torchgpipeKakao Brain announces torchgpipe, an implementation of GPipe in PyTorch as a handy library.GPipe is a scalable pipeline parallelism library published by Google Brain. It leverages the training of a giant model which requires much memory. For instance, Google trained AmoebaNet-B with 557M parameters over GPipe.

( Read More... | no comments | 4 points | on HN )
Re:Facebook was down on Thursday June 19, 2014 @04:10AM (#7915019)
Down in South Korea

Why use str constants with setuptools?

When we use setuptools for packaging our Python library, why write like this? setup( name='mymodule', version='0.1', ) not this? import mymodule setup( name=mymodule.__name__, version=mymodule.__version__, ) Please answer.

( Read More... | no comments | on HN )

Ask HN: Is doctest TDD? BDD?

doctest is a testing library for Python. I usually use it. But I don't know the name of doctest's way exactly. Is doctest TDD or BDD? Or some other? How do you think of it?

( Read More... | no comments | 2 points | on HN )