News for hackers. Stuff that matters.

rzwsan

Show HN: Correctness as spectrum not as binary in distributed system

https://archetechmes.vercel.app/blog/correctness-as-spectrum

In distributed system correctness is not about a program being complied well with the computer and it’s network, it’s only correctness can be only specified by it’s definition, assumptions and failure model.One of the area in which we can see this happen is when system breaks the idea of single machine model and it’s assumptions. Networks can drop or reorder messages, clock drift, nodes can...

( Read More... | no comments | on HN )

Show HN: Functional options design pattern and implementation in Go

https://archetechmes.vercel.app/blog/functional-options-go

Functional options in go are design patterns for configuring structs cleanly when there are many optional settings. Basically a function that carries a configuration change. It let the library to add configuration without continually changing the constructor shape.

( Read More... | 1 comment | on HN )

Show HN: RAII and It's Architecture in C++

https://archetechmes.vercel.app/blog/raii-architecture

RAII (Resource Acquisition Is Initialization) is the core of C++ idiom. It is about the process and idea of how the object cleans up happens after itself and how a resource belongs to an object lifetime. Why it’s needed anyway, it’s because manually managing resources is easy to get wrong.

( Read More... | no comments | on HN )

Show HN: The AI cycle and it's token usage market

https://raylinement.substack.com/p/the-ai-cycle-and-its-token-usage

The way generative AI is totally different than how it should be. Mostly, one of the bigger problems is the gap between understanding value by output and actually using tokens in production, or using more tokens. They measure it by the amount of tokens spent, not by the total value it creates in the end.In this post we discussed about the problems and the way of looking at it and what can be done.

( Read More... | no comments | on HN )