How soham2402/experiments works
This repository is a sandbox containing a Bloom-filter visualization, a Go in-memory cache, and an early Go TCP server experiment. In the demo, a user enters a username; the app hashes it to candidate bits, saves it by setting those bits, and can display saved names. The cache exposes get/set/delete operations with TTL expiration and a background cleanup worker; a sample program exercises its API. The server currently creates a TCP socket, while binding and listening remain commented out. Arrows reflect excerpted code or README statements; unsampled cache loader details are not inferred.
Main entry points: App.tsx Bloom App · options.go Cache Store · main.go Cache Example · api.go Cache API
Components 14
Bloom Filter Demo
- Bloom App
bloomfilter/src/App.tsx - Username Input
bloomfilter/src/components/search.tsx - Bit Grid
bloomfilter/src/components/BinaryGrid.tsx - React Mount
bloomfilter/src/main.tsx
In-Memory Cache
- Cache Example
stewcache/main.go - Cache API
stewcache/pkg/stew/api.go - Cache Store
stewcache/pkg/stew/options.go - Cache Lifecycle
stewcache/pkg/stew/stew.go - TTL Cleaner
stewcache/pkg/stew/cleaners.go - Cache Configuration
stewcache/pkg/stew/config.go - Loader Function
stewcache/pkg/stew/func.go
TCP Server Experiment
- Socket Startup
servit/main.go
Other components
- Demo User
- OS Networking
Connections 11
- Demo User → Bloom App: uses
readme.md - React Mount → Bloom App: renders
bloomfilter/src/main.tsx - Bloom App → Username Input: renders
bloomfilter/src/App.tsx - Bloom App → Bit Grid: renders
bloomfilter/src/App.tsx - Cache Example → Cache Lifecycle: creates
stewcache/main.go - Cache Example → Cache API: calls
stewcache/main.go - Cache API → Cache Store: reads/writes
stewcache/pkg/stew/api.go - Cache Lifecycle → TTL Cleaner: starts
stewcache/pkg/stew/stew.go - TTL Cleaner → Cache Store: removes expired
stewcache/pkg/stew/cleaners.go - Cache Configuration → Cache Store: configures
- Socket Startup → OS Networking: creates socket
servit/main.go