Skip to content

Instantly share code, notes, and snippets.

View saulshanabrook's full-sized avatar
🏊

Saul Shanabrook saulshanabrook

🏊
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file has been truncated, but you can view the full file.
/* Generated by Cython 0.29.16 */
/* BEGIN: Cython Metadata
{
"distutils": {
"depends": [
"skimage/feature/conditional_omp.h"
],
"include_dirs": [
This file has been truncated, but you can view the full file.
Adding in variants from internal_defaults
Adding in variants from ./.ci_support/osx_python3.8.____cpython.yaml
Attempting to finalize metadata for lldb
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... done
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... done
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... done
@saulshanabrook
saulshanabrook / machine.js
Last active April 2, 2020 15:45
Generated by XState Viz: https://xstate.js.org/viz
const newPreVersion = assign({
preVersion: () => 0
});
const bumpPreVersion = assign({
preVersion: context => context.preVersion + 1
});
const bumpVersion = assign({
version: context => context.version + 1
});
const addCommit = assign({
##
# Personal
##
# mkdir -p ~/bin
prepend_path ~/bin
# prepend_path ~/.local/bin
prepend_path /usr/local/bin
prepend_path /usr/local/sbin
# prepend_path ~/installs/kwm/bin
browser,n,type,time
firefox,0,many-outputs,218
firefox,0,long-output,65
firefox,0,plotly,121
firefox,0,many-outputs,72
firefox,0,long-output,46
firefox,0,plotly,121
firefox,0,many-outputs,51
firefox,0,long-output,67
firefox,0,plotly,116
browser n type time
firefox 0 many-outputs 44
firefox 0 long-output 37
firefox 0 many-outputs 9
firefox 0 long-output 22
firefox 0 many-outputs 65
firefox 0 long-output 26
firefox 0 many-outputs 10
firefox 0 long-output 36
firefox 0 many-outputs 10
Q: What problem does foundations solve? How will you know if you have
solved it?
A: No foundation will ever be complete. What we need is some base
to help us now AND a process for growing and expandign this
to what helps us.
-> No "IR" "DSL" etc will ever be perfect. What we need is an easy
way to iterate together to build what we need as our needs
evolve, not a static base to constrain us.

I would like to propose allowing runtime access to arguments of type application (parameters) on classes inside of classmethods and the __init__ function.

I originally brought this up on the thread for implementing PEP 585, because it might entail changes to the runtime data structure being created there, but was advised that this would have to be brought up separately and would likely result in it's own PEP if there is expressed desire for it and a reasonable way to implement it (https://mail.python.org/archives/list/typing-sig@python.org/message/TQQRXNXY5KU2BG3Y7LPVN4QOSTRZZ2L6/).

Motivation

This would allow a common syntax to create strongly typed collections to be analyzed by tools like MyPy and also used at runtime. Many built in collections do not need this feature, because at runtime they can be heterogeneous.