Skip to content

Instantly share code, notes, and snippets.

View chickenchickenlove's full-sized avatar

ChickenchickenLove chickenchickenlove

View GitHub Profile
@Horusiath
Horusiath / Protocols.fs
Last active February 8, 2025 07:06
Plumtree + Hyparview implementation in F#
namespace Protocols
open System
open System.Runtime.ExceptionServices
type Endpoint = string
type TTL = int
type Binary = byte[]
type MessageId = Guid
type Round = uint64
@Horusiath
Horusiath / Hyparview.fs
Last active January 31, 2025 12:59
HyParView: a membership protocol for reliable gossip-based broadcast
// Reference: https://asc.di.fct.unl.pt/~jleitao/pdf/dsn07-leitao.pdf
module Protocols.Hyparview
open System
open System.Runtime.ExceptionServices
open System.Threading
type Endpoint = string
type TTL = int
@Horusiath
Horusiath / Program.fs
Last active January 26, 2025 14:18
Toy implementation of SWIM protocol in Akkling (Akka.NET F#)
open System
open System.Threading
open Akkling
open DemoFs
[<EntryPoint>]
let main argv =
let config = """
akka.loglevel = DEBUG