Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Threading;
using System.Threading.Channels;
using System.Threading.Tasks;
using Akka;
using Akka.Actor;
using Akka.Streams;
@TheBuzzSaw
TheBuzzSaw / Linux.cs
Last active September 12, 2022 22:47
#define dumper
static void ConvertLine(string line)
{
const string Define = "#define ";
if (!line.StartsWith(Define))
return;
var begin = Define.Length;
var end = begin;
@dsyme
dsyme / rant.md
Last active December 31, 2022 05:54
@GLMeece
GLMeece / latency_numbers.md
Last active May 22, 2024 15:57
Latency Numbers Every Programmer Should Know - MarkDown Fork

Latency Comparison Numbers

Note: "Forked" from Latency Numbers Every Programmer Should Know

Event Nanoseconds Microseconds Milliseconds Comparison
L1 cache reference 0.5 - - -
Branch mispredict 5.0 - - -
L2 cache reference 7.0 - - 14x L1 cache
Mutex lock/unlock 25.0 - - -
anonymous
anonymous / patch.sh
Created January 18, 2017 12:39
#!/bin/sh
set -x
if [ 64 = "`getconf LONG_BIT`" ]
then
libdir='lib64'
else
libdir='lib'
fi
anonymous
anonymous / deque.h
Created October 9, 2016 23:01
/***********************************************************************
* Header:
* Deque
* Summary:
* This class contains the notion of a deque: a bucket to hold
* data for the user. This is just a starting-point for more advanced
* constainers such as the vector, set, stack, queue, deque, and map
* which we will build later this semester.
*
* This will contain the class definition of:
@Reedbeta
Reedbeta / cool-game-programming-blogs.opml
Last active May 5, 2024 18:07
List of cool blogs on game programming, graphics, theoretical physics, and other random stuff
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Graphics, Games, Programming, and Physics Blogs</title>
</head>
<body>
<outline text="Tech News" title="Tech News">
<outline type="rss" text="Ars Technica" title="Ars Technica" xmlUrl="http://feeds.arstechnica.com/arstechnica/index/" htmlUrl="https://arstechnica.com"/>
<outline type="rss" text="Polygon - Full" title="Polygon - Full" xmlUrl="http://www.polygon.com/rss/index.xml" htmlUrl="https://www.polygon.com/"/>
<outline type="rss" text="Road to VR" title="Road to VR" xmlUrl="http://www.roadtovr.com/feed" htmlUrl="https://www.roadtovr.com"/>
@bkaradzic
bkaradzic / orthodoxc++.md
Last active June 29, 2024 09:06
Orthodox C++

Orthodox C++

What is Orthodox C++?

Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.

Why not Modern C++?

php > echo (0 == null ? "Yes" : "No");
Yes
php > echo (1 > null ? "Yes" : "No");
Yes
php > echo (0 > null ? "Yes" : "No");
No
php > echo (-1 > null ? "Yes" : "No");
Yes