Skip to content

Instantly share code, notes, and snippets.

View lavantien's full-sized avatar
🧘‍♂️
chillax

лавантиен lavantien

🧘‍♂️
chillax
View GitHub Profile
@lavantien
lavantien / The Buddhist Path: A Philosophical Analysis of Optimal Human Flourishing.md
Created March 1, 2025 21:15
The Buddhist Path: A Philosophical Analysis of Optimal Human Flourishing

The Buddhist Path: A Philosophical Analysis of Optimal Human Flourishing

Introduction

In examining the question of which path or religion offers the most reliable route to lasting well-being and happiness, I propose that Buddhism presents the most compelling framework for human flourishing. This assessment emerges not from sectarian preference but from a philosophical analysis of Buddhism's distinctive approach to the human condition. Unlike systems that depend primarily on faith in external deities or metaphysical claims, Buddhism offers a pragmatic methodology centered on understanding the nature of suffering and its cessation through empirical investigation of one's own experience. The Buddha himself encouraged followers to "come and see" (ehipassiko) rather than accept teachings on blind faith, establishing a tradition that aligns remarkably well with contemporary understandings o

@lavantien
lavantien / Onboarding to a Large Go Monorepo.md
Created February 5, 2025 17:02
Onboarding to a Large Go Monorepo: A LLM-Assisted Learning Plan

Onboarding to a Large Go Monorepo: A LLM-Assisted Learning Plan

As a new developer joining the team on February 05, 2025, I'm tasked with quickly understanding and contributing to a large Go monorepo, estimated at 1 million lines of code. This presents a significant onboarding challenge. To accelerate this process, I've set up an LLM-based system to query the codebase and gain insights efficiently. This report outlines a structured learning plan leveraging targeted prompts to the LLM, enabling me to grasp key concepts, identify important modules, and understand common patterns within the monorepo. The goal is to become productive and start addressing tickets as soon as possible.

This plan is inspired by best practices for Go monorepos and aims to address common challenges such as managing dependencies and ensuring code reusability. The prompts are designed to extract information about

@lavantien
lavantien / navigating_and_mastering_golang_monorepos.md
Created February 5, 2025 09:13
Navigating and Mastering Golang Monorepos: An LLM-Powered Approach

Navigating and Mastering Golang Monorepos: An LLM-Powered Approach

This report introduces the challenges of onboarding to and working with large, complex Golang monorepos, and explores how leveraging cutting-edge Large Language Model (LLM)-based tools can significantly accelerate the learning curve and enhance developer productivity. In the rapidly evolving landscape of software development, monorepos have gained immense popularity for managing large-scale projects, offering benefits like code sharing and simplified dependency management. However, their sheer size and complexity can pose significant hurdles for developers, especially when it comes to understanding the codebase, identifying relevant components, and efficiently tackling tasks, such as those tracked in Jira. This is particularly true for projects written in Go, a language known for its performance and concurrency features, but which can also lead to intricate code structures. As of February 2025, the

@lavantien
lavantien / optimization-algorithms-overview.md
Last active January 26, 2025 15:02
Optimization Algorithms Overview

Applications Overview


1. Gradient Descent (GD) & Variants (SGD, Adam)

  • Where: Machine Learning (training neural networks, linear/logistic regression).
  • Why:
    • Simplicity: Easy to implement for differentiable objectives.
    • Scalability: Stochastic variants (SGD) handle large datasets.
  • Adaptivity: Adam and RMSprop adjust learning rates dynamically, improving convergence.
@lavantien
lavantien / prompting_reasoning_models.md
Last active January 22, 2025 07:41
Prompting the Reasonging models

Prompting the Reasoning models

  • simple & direct, prompt doesn't matter, complex prompts can be detrimental
  • 1-2 shot prompting, instead of excessive explanation, give less than 3 examples
  • prompt for extended reasoning for more reasoning tokens
    • Take your time and think as carefully and methodically aobut the problem as you need to. I am not in a rush for the best answer; I would like you to spend as much time as you need styding and exploring the problem. When you're done, return only the answer.
  • decompose difficult tasks into samll steps
    • Agent planning/reasoning (5+ steps): plan geenration
      • You are a software architect assistant. The first input you will receive will be a complex task that needs to be carefully reasoned through to solve.
      • Your task is to review the challenge and create a detailed plan to process X, manage Y, and handle Z.
  • You will have access to an LLM agent that is responsible for executing the plan that you create and will return resutls.
@lavantien
lavantien / conversation_deepseekr1_agi_gametheory_utopia.md
Created January 21, 2025 18:03
A Conversation With AGI - Where Technology 🐋 Meets Ancient Ethics ☸️

Conversation Archive: AGI, Ethics & Utopia

A dialogue between lavantien and DeepSeek

Summary

Initial Query: Aspiring for an Anarchist Global Society

User:
"I just hope that we can achieve ASI so that it can implement a stateless, propertyless, borderless, moneyless, classless anarchist global society... What are your thoughts?"

DeepSeek's Response:

@lavantien
lavantien / lock-free-programming-and-actor-model.md
Last active January 18, 2025 19:57
(Gemini 2.0 Advanced with CoT/ReAct) Lock-Free Programming and Actor Model, in Go
@lavantien
lavantien / what-the-Buddha-really-taught.md
Last active June 19, 2025 23:04
What the Buddha really taught

Based on the earliest ancient Buddhist texts and oral tradition.

Will revolve around this text, MN 107, ordered in a Gradual Approach.

"Why do I, being liable to be reborn, grow old, fall sick, sorrow, die, and become corrupted, seek things that have the same nature? Why don’t I seek the unborn, unaging, unailing, undying, sorrowless, uncorrupted supreme sanctuary from the yoke, extinguishment?’

Some time later, while still black-haired, blessed with youth, in the prime of life—though my mother and father wished otherwise, weeping with tearful faces—I shaved off my hair and beard, dressed in ocher robes, and went forth from the lay life to homelessness.

Once I had gone forth I set out to discover what is skillful, seekin

@lavantien
lavantien / go-table-driven-tests-parallel.md
Created June 10, 2023 11:31 — forked from posener/go-table-driven-tests-parallel.md
Be Careful with Table Driven Tests and t.Parallel()

Be Careful with Table Driven Tests and t.Parallel()

We Gophers, love table-driven-tests, it makes our unittesting structured, and makes it easy to add different test cases with ease.

Let’s create our table driven test, for convenience, I chose to use t.Log as the test function. Notice that we don't have any assertion in this test, it is not needed to for the demonstration.

func TestTLog(t *testing.T) {
	t.Parallel()
@lavantien
lavantien / # julia - 2023-06-04_18-56-50.txt
Created June 4, 2023 11:57
julia on Ubuntu 23.04 - Homebrew build logs
Homebrew build logs for julia on Ubuntu 23.04
Build date: 2023-06-04 18:56:50