Skip to content

Instantly share code, notes, and snippets.

View cynthia2006's full-sized avatar

Cynthia cynthia2006

  • India
View GitHub Profile

Why I Am Not a Feminist

  • I am not a feminist. A movement once anti-establishment, has turned into an establishment, a caricature of its former self.
  • It's chracterissd through its —
    • Blatant misandry justified as rebellion.
    • False allegations of con-artists taking down renowned people for political gain or vengeance.
    • Female votebanks
    • Mindless consumerism of influencers.
    • Ethnic Erasure through wearing revealing clothes.
      • Ethnic erasure is the process of depletion of social, cultural and national identity.
  • Heavily employed by the West to push their globalist agenda, its roots are found in the colonial tradition of fostering a inferiority complex in the natives.
@cynthia2006
cynthia2006 / On The Mahatma.md
Last active March 3, 2026 12:03
A fearlessly critical assessment of the Mahatma

Gandhi's beliefs — lofty, obstinate and precarious as they were — could unequivocally be taken as in the similar vein of “love conquers all”. His narcissist beliefs manifested in his ideology as “a Satyagrahi can't fail”. He emplaced himself unto such wuthering heights that it had become impossible to criticise him and not be called a traitor. He crafted such a formidable identity that deterred all criticism. To quote Godse, “Mahatma became the judge and jury in his own case.”

Satyagraha: The Silver Bullet

“These childish insanities and obstinacies, coupled with a most severe austerity of life, ceaselesswork and lofty character made Gandhi formidable and irresistable” — Nathuram Godse, 1948.

In other words, his austerity had been an elaborate scheme to herald his supreme opinion silencing all oppoisition. It provided a moral high ground for Congress to retain their facist power through alienating a person or a group in not just political, but also social spheres.

Muslim Appeasement

His career in vote

# /// script
# requires-python = ">=3.14"
# dependencies = [
# "aiofiles>=25.1.0",
# "httpx[http2]>=0.28.1",
# ]
# ///
import asyncio
import sys
import httpx
import json
import asyncio
from pathlib import Path
from bs4 import BeautifulSoup
class TaskQueue(asyncio.TaskGroup):
def __init__(self, /, maxsize):
self._semaphore = asyncio.Semaphore(maxsize)

Criticism of Rust

Venturing into the holy lands of Rust, we often hear the chants of fearless concurrency, memory safety and zero-cost abstractions, but truth could seldom be so lofty. These chantings are as hollow as the priests themselves.

Myth of Zero-Cost Abstractions

There's nothing such as zero-cost abstractions. Any abstraction, no matter how transparent, brings both a performance and cognitive penalty. It applies not only to Rust, but also to carcinogens like C++.

Cognitive penalty is especially applicable to bindings that dramatically change the original paradigm of the underlying library without (properly) documenting it; in that case, source code must be read to ascertain correct behaviour. This needless effort makes abstractions not zero-cost, but sometimes more cost than if you had just used the library without the binding.

AV1 (AOMedia Video 1) is a next-generation video codec to facilitate VOD (video on demand), storage and live-streaming, as you might already know. It is usually stored in the WebM container, accompanied by Opus as the audio codec. Both are royalty-free codecs; i.e. you need not pay to use them unlike H.264 or H.265; latter of which was the reason AV1 was made, for it was encumbered in a complex web of patents. There are several AV1 encoders to choose from, such as—aomenc, rav1e, SVT-AV1. Although all provide a more-or-less same level of functionality, SVT-AV1 is notable for its speed and scalability.

This is largely a primer meant to familiarise you with some rudimentary aspects of AV1 encoding, which avoids some of the more advanced topics such as—film grain synthesis, variance boost, hierarchical levels, temporal filtering, etc. There's a dedicated community around the codec that document best practises for high-quality encodes.

Presets

Presets are a set of preconfigured encoder options deciding

@cynthia2006
cynthia2006 / xl-convert.rs
Created June 24, 2025 04:13
Fast conversion of pictures into JXL
use std::{
collections::VecDeque,
error::Error,
fs::File,
path::PathBuf,
sync::{
atomic::{AtomicBool, Ordering},
Arc, Mutex,
},
};
@cynthia2006
cynthia2006 / AV1Encoding.md
Last active October 6, 2025 11:59
Tenets of AV1 Encoding using SVT-AV1

Warning

What has been written here earlier maybe somewhat misleading, and it is encouraged to read this primer instead.

Tenets of AV1 Encoding

AV1 is a next-generation video codec developed by Alliance of Open Media to facilitate VOD, storage and live-streaming. Usually paired with the Opus audio codec and stored in WebM or Matroska container, or even MP4 (ISOBMFF) (and streamed using HLS). As of now, besides libaom and rav1e, SVT-AV1 is currently the best production quality encoder available (the matter of discusssion here). This introductory guide is based on the SVT-AV1 documentation.

Presets

Presets (can be selected with --preset option) are a collection of predefined options that influence the speed vs. qualit

Notes on Meson

Meson is primarily a C/C++ build-system, arguably better than CMake or GNU Autotools in terms of UX.

Preliminary Points

These points are essential to both the programmer and the end user who builds the project.

  • A file meson.build must exist at the top-level directory of the project.

  • Meson doesn't allow “in-source builds”, meaning it requires a separate build directory. As customary, separate directories are to made for separate configurations—debug or release.

@cynthia2006
cynthia2006 / parse-args.c
Last active October 15, 2024 10:15
Simple argument parser - a cheap GNU argparse clone
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <stdbool.h>
#include <string.h>
typedef int(*arg_type)(void*, int, const char*);
#define arg_type_flag NULL