Better HN
topnewbestaskshowjobs
Log inSign up

zetaplusae

4 karma · joined Nov 29, 2015 (11y ago) · 10 submissions

Submissions

1.

Show HN: CheapGPT – a free local AI assistant powered by Chrome's Gemini Nano(predatorray.me ↗)

3 points · by zetaplusae · 1mo ago · 3 comments

2.

Rendezvous: A serverless, Zoom-like video conferencing web app(github.com ↗)

3 points · by zetaplusae · 6mo ago · discuss

3.

Dandelion Mesh: Serverless mesh network for browsers using WebRTC(github.com ↗)

1 points · by zetaplusae · 8mo ago · discuss

comment 1y ago · link · parent

I’ve open-sourced Timestone, a small Java library that lets you abstract time sources for testable, deterministic time-based logic.

It provides an interfaces `Time` with two implementations `SystemTime` for real system clock, and `MutableTime` that can be advanced programmatically. It lets you control time precisely, without relying on mocking frameworks.

What prompted me to build this is that many large projects (like Apache Kafka and Apache Flink) implement their own internal solutions for time control:

- in Kafka: [org.apache.kafka.common.utils.Time](https://github.com/apache/kafka/blob/trunk/clients/src/main/...) - in Flink: [org.apache.flink.util.clock.Clock](https://github.com/apache/flink/blob/master/flink-core/src/m...)

I saw a pattern of duplicated fake clock logic across open source and internal codebases, and decided to make a reusable, standalone alternative.

And, it has been published to Maven Central: - `io.github.predatorray:timestone-api:1.0.0` for API (optional) - `io.github.predatorray:timestone-test:1.0.0` for test

I would love feedback on the design, and to hear how others test time-sensitive code.

5.

How I Built a P2P Texas Hold'em Game (Part 1: Protocol and Encryption)(medium.com ↗)

2 points · by zetaplusae · 1y ago · discuss

6.

Krew Index Tracker: a tool that tracks the download stats of Krew plugins(github.com ↗)

1 points · by zetaplusae · 1y ago · discuss

7.

Mental Texas Hold'em: a mental poker implementation of Texas Hold'em(github.com ↗)

2 points · by zetaplusae · 1y ago · discuss

8.

The missing alias command for kubectl(github.com ↗)

3 points · by zetaplusae · 4y ago · discuss

9.

A kubectl plugin to exec into multiple pods at the same time using Tmux(github.com ↗)

2 points · by zetaplusae · 6y ago · discuss