Skip to content

Instantly share code, notes, and snippets.

@probablytom
probablytom / pdsf.py
Created June 2, 2020 09:13
PyDySoFu version 3
from inspect import isfunction, isclass, ismethod
import re
import builtins
from functools import wraps, partial, reduce
from copy import deepcopy
import ast
import copy
import inspect
@probablytom
probablytom / ChannelTest.go
Last active May 9, 2023 07:32
An experiment to see whether Golang channels evaluate the values to pass along a blocking channel before or after the blocking channel is called upon for a value by another routine.
package main
import "time"
func main() {
// Variables we'll need
x := make(chan int)
y := make(chan int, 1)
// If chaining channels together will present old values rather than new ones, we'll see a deadlock instead of 6.