Skip to content

Instantly share code, notes, and snippets.

View ognis1205's full-sized avatar
πŸˆβ€β¬›

Shingo OKAWA ognis1205

πŸˆβ€β¬›
View GitHub Profile
@CQCumbers
CQCumbers / fractal.c
Created February 7, 2021 20:42
N64 Fractal Path Tracer
#include <math.h>
#include <stdint.h>
#include <libdragon.h>
typedef double vec3[3];
const double epsl = 0.0000005;
// vector dot product
static double dot(vec3 v0, vec3 v1) {
double x2 = v0[0] * v1[0];
  • What do Etcd, Consul, and Zookeeper do?
    • Service Registration:
      • Host, port number, and sometimes authentication credentials, protocols, versions numbers, and/or environment details.
    • Service Discovery:
      • Ability for client application to query the central registry to learn of service location.
    • Consistent and durable general-purpose K/V store across distributed system.
      • Some solutions support this better than others.
      • Based on Paxos or some derivative (i.e. Raft) algorithm to quickly converge to a consistent state.
  • Centralized locking can be based on this K/V store.