Better HN
topnewbestaskshowjobs
Log inSign up

chaokunyang

192 karma · joined Jul 17, 2023 (3y ago) · 149 submissions

Github: https://github.com/chaokunyang I’m the author of Fury https://github.com/apache/fory: A blazing fast multi-language serialization framework powered by JIT and zero-copy.
Submissions

comment 2mo ago · link · parent

Apache Fory achieved 2.78×–12.12× the throughput of kotlinx.serialization, Moshi with generated adapters, and Jackson Kotlin across the measured serialization and deserialization operations

2.

Apache Fory JSON: High-Performance JSON Serialization for Kotlin(fory.apache.org ↗)

3 points · by chaokunyang · 2mo ago · 1 comment

3.

Using Apache Fory JSON with Spring MVC, WebFlux, and Spring Boot(fory.apache.org ↗)

1 points · by chaokunyang · 2mo ago · discuss

comment 3mo ago · link · parent

fory json source code: https://github.com/apache/fory/blob/main/java/fory-json/READ...

comment 3mo ago · link · parent

Apache Fory JSON is a high-performance JSON serialization framework for Java. It maps Java objects to and from standard JSON text and UTF-8 bytes.

In the published benchmarks, it reaches up to 10.91× Jackson’s throughput and 10.89× Gson’s in java-json-benchmark, and up to 5.55× and 10.00× respectively in the jvm-serializers MediaContent benchmark.

It supports JDK 8+, Android, and GraalVM Native Image. JDK17+ Record is also supported.

Feedback is welcome.

6.

Apache Fory JSON: Fastest Java JSON Serialization, 10x Faster Than Jackson/Gson(fory.apache.org ↗)

2 points · by chaokunyang · 3mo ago · 2 comments

comment 5mo ago · link · parent

Apache Fory 1.2.0 is out.

The main Java change is JDK 25 support without using sun.misc.Unsafe in the active runtime path. Older JDKs keep the existing fast path, while JDK 25+ uses replacement implementations based on supported JVM APIs.

Other notable changes:

- Java 9/16 module-info generation

- JDK 26+ final field deserialization support even when --illegal-final-field-mutation=deny

- compatible scalar field reads for schema evolution, e.g. int64 <-> String when the conversion is lossless

- generated gRPC service companions across Java, Rust, Go, Kotlin, Scala, C#, Python, and JavaScript/TypeScript - compatible-mode and row-format performance work

Feedback from people testing serialization libraries on newer JDKs or dealing with Unsafe removal would be useful.

8.

Apache Fory Serialization 1.2.0: JDK 25 support without sun.misc.Unsafe(github.com ↗)

1 points · by chaokunyang · 5mo ago · 1 comment

comment 8mo ago · link · parent

1. 10X faster serialization than protobuf c++ 2. Shared/Circular reference tracking Support 3. Polymorphism and tagged union support 4. Schema evolution support 5. idiomatic domain object API

10.

Apache Fory C++: 10x faster serialization than protobuf(fory.apache.org ↗)

4 points · by chaokunyang · 8mo ago · 2 comments

comment 8mo ago · link · parent

Flatbuffer Example:

namespace demo;

table Node {

  parent: Node (fory_weak_ref: true);

  children: [Node] (fory_ref: true);

  cached: Node (fory_ref: true, fory_thread_safe_pointer: false);

}

comment 8mo ago · link · parent

Protobuf Example:

syntax = "proto3";

message TreeNode {

  TreeNode parent = 1 [(fory).weak_ref = true];

  repeated TreeNode children = 2 [(fory).ref = true];

}

comment 8mo ago · link · parent

If you already have .proto or .fbs schemas and you want shared/circular reference support, with the Fory compiler you can keep those schemas, add a small set of Fory options, then foryc generates idiomatic native models across Fory-supported languages

With fory first-class object graph serialziation support, you can serialize object graphs without manual *_id link reconstruction or rewriting your entire schema into Fory Schema.

1. GitHub: https://github.com/apache/fory

2. Compiler docs: https://fory.apache.org/docs/compiler

14.

Extend Protobuf/FlatBuffers Schema IDL with Shared/Circular Reference Support(fory.apache.org ↗)

1 points · by chaokunyang · 8mo ago · 3 comments

comment 8mo ago · link · parent

Tiny Schema demo

message Customer { string id = 1; string name = 2; }

message Order {

  string order_id = 1;

  ref Customer customer = 2;

  list<string> items = 3;

}

comment 8mo ago · link · parent

1. Docs https://fory.apache.org/docs/compiler

2. GitHub https://github.com/apache/fory

3. Benchmarks https://github.com/apache/fory/tree/main/docs/benchmarks

17.

Show HN: First IDL for Object-Graph Serialization (Apache Fory IDL)(fory.apache.org ↗)

1 points · by chaokunyang · 8mo ago · 2 comments

comment 9mo ago · link · parent

Fory C++ serialization blog: https://fory.apache.org/blog/fory_cpp_blazing_fast_serializa...

19.

Show HN: Fory C++ Serialization – Polymorphism, Circular Refs, 12x vs. Protobuf(fory.apache.org ↗)

3 points · by chaokunyang · 9mo ago · 1 comment

comment 9mo ago · link · parent

This project is for running local CLI/agent loops on macOS/Linux/Windows while executing commands inside browser-hosted terminals for cloud servers. The key goal is output/exit-code parity so local automation can trust remote runs.

21.

Show HN: Browser Terminal Use – run local CLI/agent loops in browser terminals(github.com ↗)

2 points · by chaokunyang · 9mo ago · 1 comment

22.

Show HN: Browser Terminal Use – A Local-to-Cloud Execution Bridge for LLM Agents(github.com ↗)

1 points · by chaokunyang · 9mo ago · discuss

comment 1y ago · link · parent

GitHub Repo: https://github.com/inclusionAI/asystem-awex

comment 1y ago · link · parent

Awex is a weight synchronization framework between training and inference engines designed for ultimate performance, solving the core challenge of synchronizing training weight parameters to inference models in the RL workflow. It can exchange TB-scale large-scale parameter within seconds, significantly reducing RL model training latency. Main features include: Blazing synchronization performance: Full synchronization of trillion-parameter models across thousand-GPU clusters within 6 seconds, industry-leading performance; Unified model adaptation layer: Automatically handles differences in parallelism strategies between training and inference engines and tensor format/layout differences, compatible with multiple model architectures; Zero-redundancy Resharding transmission and in-place updates: Only transfers necessary shards, updates inference-side memory in place, avoiding reallocation and copy overhead; Multi-mode transmission support: Supports multiple transmission modes including NCCL, RDMA, and shared memory, fully leveraging NVLink/NVSwitch/RDMA bandwidth and reducing long-tail latency; Heterogeneous deployment compatibility: Adapts to co-located/separated modes, supports both synchronous and asynchronous RL algorithm training scenarios, with RDMA transmission mode supporting dynamic scaling of inference instances; Flexible pluggable architecture: Supports customized weight sharing and layout behavior for different models, while supporting integration of new training and inference engines. GitHub Repo: https://github.com/inclusionAI/asystem-awex

25.

Trillion‑Scale RL in Real Time: Awex Delivers Second‑Level Weight Updates(medium.com ↗)

2 points · by chaokunyang · 1y ago · 2 comments

comment 1y ago · link · parent

I also did a benchmark with dill, it shows that: fory is 20~40X faster and up to 7x higher compression ratio compared to dill. I don't dive into dill to see how it works. Here is my benchmark code:

https://github.com/chaokunyang/python_benchmarks

comment 1y ago · link · parent

Yes, you are right. I missed this when I wrote the benchmark code. I will update the benchmark code and share the results here

comment 1y ago · link · parent

I understand your concern. Personally, I’m open to using AI as part of the development process, but the majority of the code in this repository has been written manually and carefully reviewed.

The AGENTS.md file was added only recently. Its original purpose wasn’t to hand code generation entirely to an AI, but rather to use AI as a pair‑programming debugger — for example, having it walk through tricky binary parsing issues byte‑by‑byte. Serialization in a compact binary format can be hard to debug, and AI can sometimes save hours by quickly pinpointing structural mismatches.

That said, serialization is a fundamental piece of infrastructure, so we remain conservative: any AI‑assisted changes go through the same rigorous review and test process as everything else. As technology evolves, I think it’s worth exploring new tools — but with care.

comment 1y ago · link · parent

You mean this file? https://github.com/apache/fory/blob/main/AGENTS.md
12345