Better HN
topnewbestaskshowjobs
Log inSign up

tison

455 karma · joined Dec 17, 2021 (4y ago) · 127 submissions

Co-Founder @ ScopeDB

Board Member & Incubator Mentor @ The Apache Software Foundation

I develop and maintain open-source software: https://github.com/tisonkun

Submissions

1.

Afterglow of the Artisanal Era: Merging Two Git Repos by Hand(tisonkun.io ↗)

1 points · by tison · 1d ago · discuss

2.

Go Ahead and Contribute, No Assignment Needed(tisonkun.io ↗)

1 points · by tison · 2d ago · discuss

3.

Reverse-Engineering Kevin J. Lang's Lost OCaml Code in Apache DataSketches(tisonkun.io ↗)

46 points · by tison · 1w ago · 3 comments

4.

Skipping Cloud SDKs: How ScopeDB Accesses Object Storage with Apache OpenDAL(opendal.apache.org ↗)

3 points · by tison · 1w ago · discuss

5.

Show HN: ScopeDB Cloud, Serverless event database with pipelined ScopeQL(scopedb.io ↗)

1 points · by tison · 3w ago · discuss

6.

Show HN: Serde-shape reflects the data model of Rust's serde(github.com ↗)

1 points · by tison · 2mo ago · discuss

7.

Show HN: Bsize yet Another Byte Size Crate(github.com ↗)

2 points · by tison · 5mo ago · discuss

8.

Show HN: Macro-template, table-driven code generation for Rust(github.com ↗)

2 points · by tison · 5mo ago · discuss

comment 10mo ago · link · parent

We have discussed these in previous blogs:

1. Insight In No Time: https://www.scopedb.io/blog/insight-in-no-time

2. Manage Data in Petabytes for an Observability Platform: https://www.scopedb.io/blog/manage-observability-data-in-pet...

That is, Snowflake follows a traditional data warehouse workflow that requires extenral ETL process to load data into the warehouse. Some of our customers did researching of Snowflake and noticed that their event streaming ingestion can not fit in Snowflake's stage-based loading model - they need real-time insights end-to-end.

Apart from this major downside, about leveraging S3 as a primary storage, Snowflake doesn't have adaptive indexes, and its performance would be significantly degraded as data grows and queries involve a large range of data + multi-condition filters when the simple minmax index can't help.

10.

A cloud-native database should be as elastic as the cloud itself(scopedb.io ↗)

3 points · by tison · 10mo ago · 2 comments

11.

Apache DataSketches Rust 0.2.0: A library of stochastic streaming algorithms(docs.rs ↗)

2 points · by tison · 10mo ago · discuss

comment 10mo ago · link · parent

FWIW, here is a general discussion about error handling in Rust and my comment to compare it with Go's/Java's flavor: https://github.com/apache/datasketches-rust/issues/27#issuec...

That said, I can live with "if err != nil", but every type has a zero value is quite a headache to handle: you would fight with nil, typed nil, and zero value.

For example, you need something like:

  type NullString struct {
   String string
   Valid  bool // Valid is true if String is not NULL
  }
.. to handle a nullable value while `Valid = false && String = something` is by defined invalid but .. quite hard to explain. (Go has no sum type in this aspect)

comment 10mo ago · link · parent

I think they are almost compatible.

`thiserror` helps you define the error type. That error type can then be used with `anyhow` or `exn`. Actually, we have been using thiserror + exn for a long time, and it works well. While later we realize that `struct ModuleError(String)` can easily implement Error without thiserror, we remove thiserror dependency for conciseness.

`exn` can use `anyhow::Error` as its inner Error. However, one may use `Exn::as_error` to retrieve the outermost error layer to populate anyhow.

I ever consider `impl std::error::Error` for `exn::Exn,` but it would lose some information, especially if the error has multiple children.

`error-stack` did that at the cost of no more source:

* https://docs.rs/error-stack/0.6.0/src/error_stack/report.rs....

* https://docs.rs/error-stack/0.6.0/src/error_stack/error.rs.h...

comment 10mo ago · link · parent

This is the pull request of this post: https://github.com/fast/fast.github.io/pull/12

See comments like https://github.com/fast/fast.github.io/pull/12#discussion_r2...

Quote my comment in the other thread:

> That said, exn benefits something from anyhow: https://github.com/fast/exn/pull/18, and we feed back our practices to error-stack where we come from: https://github.com/hashintel/hash/issues/667#issuecomment-33...

> While I have my opinions on existing crates, I believe we can share experiences and finally converge on a common good solution, no matter who made it.

15.

Show HN: Logforth, A versatile and extensible Rust logging framework(github.com ↗)

1 points · by tison · 11mo ago · discuss

16.

Foyer 0.21.0 is out: Hybrid in-memory and disk cache in Rust(github.com ↗)

2 points · by tison · 11mo ago · discuss

17.

Show HN: Async version for Rust std::sync and more(github.com ↗)

1 points · by tison · 12mo ago · discuss

18.

StackSafe: Taming Recursion in Rust Without Stack Overflow(fast.github.io ↗)

1 points · by tison · 1y ago · discuss

comment 1y ago · link · parent

Rust's Future is somehow like move semantics in C++, where you may leave a Future in an invalid state after it finishes. Besides, Rust adopts a stackless coroutine design, so you need to maintain the state in your struct if you would like to implement a poll-based async structure manually.

These are all common traps. And now cancellations in async Rust are a new complement to state management in async Rust (Futures).

When I'm developing the mea (Make Easy Async) [1] library, I document the cancel safety attribute when it's non-trivial.

Additionally, I recall [2] an instance where a thoughtless async cancellation can disrupt the IO stack.

[1] https://github.com/fast/mea

[2] https://www.reddit.com/r/rust/comments/1gfi5r1/comment/luido...

20.

A new database solution for trading off between rigid schemas and no schema mess(scopedb.io ↗)

1 points · by tison · 1y ago · discuss

21.

Show HN: StackSafe, Taming Recursion in Rust Without Stack Overflow(fast.github.io ↗)

2 points · by tison · 1y ago · discuss

22.

Show HN: Fastrace, a Modern Approach to Distributed Tracing in Rust(fast.github.io ↗)

3 points · by tison · 1y ago · discuss

23.

Show HN: Fastpool, a fast and runtime-agnostic object pool for Async Rust(docs.rs ↗)

1 points · by tison · 1y ago · discuss

24.

Show HN: Fastpool, a runtime-agnostic fast object pool for Async Rust(github.com ↗)

2 points · by tison · 1y ago · discuss

25.

ScopeDB: Manage Data in Petabytes for an Observability Platform(scopedb.io ↗)

1 points · by tison · 1y ago · discuss

26.

Apache Flink 2.0.0: A New Era of Real-Time Data Processing(flink.apache.org ↗)

4 points · by tison · 1y ago · discuss

27.

CockroachDB has changed their license, again(github.com ↗)

27 points · by tison · 1y ago · 5 comments

12345