Skip to content

Instantly share code, notes, and snippets.

View Thraetaona's full-sized avatar
🖥️

Fereydoun Memarzanjany Thraetaona

🖥️
View GitHub Profile
@Thraetaona
Thraetaona / srl_prescaler.vhd
Last active March 8, 2025 23:02
A Simple VHDL Abstraction of an Efficient Clock Prescaler Using Cascading Shift Registers
-------------------------------------------------------------------------------
-- SPDX-License-Identifier: LGPL-3.0-or-later or CERN-OHL-W-2.0
--
-- srl_prescaler.vhd: A Simple VHDL Abstraction of an Efficient Clock
-- Prescaler Using Cascading Shift Registers.
--
-- Copyright (C) 2024 Fereydoun Memarzanjany
--
-- This hardware-descriptive model is free hardware design dual-licensed under
-- the GNU LGPL or CERN OHL v2 Weakly Reciprocal: you can redistribute it
@Thraetaona
Thraetaona / consciousness.pdf
Last active May 30, 2024 08:22
Consciousness
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@VictorTaelin
VictorTaelin / towards_an_optimal_computer.md
Last active November 27, 2025 23:14
Higher-Order Company: Towards an Optimal Computer

Higher-Order Company: Towards an Optimal Computer

What is the true nature of computation?

A hundred years ago, humanity answered that very question, twice. In 1936, Alan invented the Turing Machine, which, highly inspired by the mechanical trend of the 20th century, distillated the common components of early computers into a single universal machine that, despite its simplicity, was capable of performing every computation conceivable. From simple numerical calculations to entire

@VictorTaelin
VictorTaelin / hoc_historical_overview.md
Last active October 30, 2025 08:39
Higher Order Company: Complete Historical Overview - WIP

Higher-Order Company: Complete Historical Overview

This document is a complete historical overview of the Higher Order Company. If you want to learn anything about our background, a good way to do so is to feed this Gist into an AI (like Sonnet-3.5) and ask it any question!

My Search for a Perfect Language

It all started around 2015. I was an ambitious 21-year-old CS student who, somehow, had been programming for the last 10 years, and I had a clear goal:

I want to become the greatest programmer alive

@Thraetaona
Thraetaona / netinet.h
Last active July 20, 2024 04:52
C11 TCP/IP header structures
// ---------------------------------------------------------------------
// SPDX-License-Identifier: LGPL-3.0-or-later
// ---------------------------------------------------------------------
_Pragma ("once")
#ifndef NETINET_H
#define NETINET_H
// NOTE: Unfortunately, <netinet/ip.h> is not a part of the POSIX
@Thraetaona
Thraetaona / divided_differences.adb
Last active November 14, 2024 17:23
Newton's Divided Differences table generator implemented in the Ada language.
-- ---------------------------------------------------------------------
-- SPDX-License-Identifier: CC0-1.0
--
-- Authored by Fereydoun Memarzanjany
--
-- To the maximum extent possible under law, the Author waives all
-- copyright and related or neighboring rights to this code.
--
-- You should have received a copy of the CC0 legalcode along with this
-- work; if not, see <http://creativecommons.org/publicdomain/zero/1.0/>
@Thraetaona
Thraetaona / spline.f90
Last active November 26, 2024 17:33
FORTRAN 90 code to compute the Spline for a given set of x and f(x) arrays.
! ----------------------------------------------------------------------
! SPDX-License-Identifier: CC0-1.0
!
! spline.f90: Spline Interpolation
! Authored by Fereydoun Memarzanjany
!
! To the maximum extent possible under law, the Author waives all
! copyright and related or neighboring rights to this code.
!
! You should have received a copy of the CC0 legalcode along with this
@Thraetaona
Thraetaona / spline.f90
Created December 17, 2024 23:53
Spline interpolation matrices in FORTRAN
! ----------------------------------------------------------------------
! SPDX-License-Identifier: CC0-1.0
! Authored by Fereydoun Memarzanjany
!
! To the maximum extent possible under law, the Author waives all
! copyright and related or neighboring rights to this code.
!
! You should have received a copy of the CC0 legalcode along with this
! work; if not, see <http://creativecommons.org/publicdomain/zero/1.0/>
! ----------------------------------------------------------------------
@Thraetaona
Thraetaona / search.py
Created January 6, 2025 05:59
A Python command-line search engine that recursively searches through directories for files containing lines that match user-defined search queries.
#!/usr/bin/env python3
# ----------------------------------------------------------------------
# SPDX-License-Identifier: CC0-1.0
# Authored by Fereydoun Memarzanjany
#
# To the maximum extent possible under law, the Author waives all
# copyright and related or neighboring rights to this code.
#
# You should have received a copy of the CC0 legalcode along with this
@Thraetaona
Thraetaona / app.py
Last active January 21, 2025 09:12
Python webapp to track to-do items with FastHTML and SQLite
#!/usr/bin/env python3
# ----------------------------------------------------------------------
# SPDX-License-Identifier: CC0-1.0
# Authored by Fereydoun Memarzanjany
#
# To the maximum extent possible under law, the Author waives all
# copyright and related or neighboring rights to this code.
#
# You should have received a copy of the CC0 legalcode along with this