Skip to content

Instantly share code, notes, and snippets.

View esc's full-sized avatar
:octocat:
doing open source

Emergency Self-Construct esc

:octocat:
doing open source
View GitHub Profile
@esc
esc / vision.txt
Created February 22, 2022 17:24
Numba Vision Stuart
What should Numba be?
* Numba, as in the code base, should really be an extensible toolkit for writing compilers, the default user facing front end of which is _an_ implementation of a compiler for Python and (maybe!) NumPy.
* It needs to be sufficiently extensible to cover the spectrum of use cases, including but not limited to:
* Typical users, just wanting to @jit some numerical functions (many many users, the most common use case)
* Those providing libraries for domain specific use (e.g. researchers - TARDIS-SN)
* Those providing libraries for use in scientific computing as part of the numerical python scaffold (e.g. pydata-sparse)
* Those writing more advanced libraries containing their own data types etc (e.g. AwkwardArray)
* Compiler extenders wanting to write and explore new compiler use cases/needing a custom compiler (e.g. Bodo, omnisci-db)
* Hardware vendors wanting to extend Numba support to their custom silicon (e.g. NVIDIA, Intel)
@esc
esc / vision.txt
Created February 8, 2022 17:33
Val's Numba Vision -- Anarcho Utilitarianism
Numba Vision (Anarcho Utilitarianism)
=====================================
* A kick-ass Python compiler. (Money, Fame, ...)
* A tiny Numba core, barebones library, with useful
abstractions/contracts/interfaces (Essentialism)
* A compiler library to build other compilers on top of. (Framework/Structure)
* A platform for compiler profiling and debugging research. (Creativity)
* A platform for exploring novel scientific algorithms. (Innovation)
* An ecosystem of Numba open extensions/add-ons/utilities/libraries for
@esc
esc / pip_install.log
Created April 27, 2021 10:45
pip installation failure
sudo pip install packaging
Traceback (most recent call last):
File "/usr/local/bin/pip", line 7, in <module>
from pip._internal.cli.main import main
File "/usr/local/lib/python3.6/site-packages/pip/_internal/cli/main.py", line 9, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "/usr/local/lib/python3.6/site-packages/pip/_internal/cli/autocompletion.py", line 10, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "/usr/local/lib/python3.6/site-packages/pip/_internal/cli/main_parser.py", line 8, in <module>
from pip._internal.cli import cmdoptions
@esc
esc / links.txt
Last active December 18, 2020 10:34
My Twitter Question about Open Source and Community
@esc
esc / tpdisko.sh
Created November 9, 2020 20:43
Think Pad Disko
#!/bin/sh
val=1
while true
do
[ $val -eq 0 ] && val=1 || val=0
sudo sh -c "echo $val > \
/sys/devices/platform/thinkpad_acpi/leds/tpacpi::thinklight/brightness"
sleep 0.1
done
@esc
esc / main.yml
Created September 3, 2020 10:07
---
- name: Install python/pip related packages
apt: name={{ item }} state=present
with_items:
- python3-pip
- python3-venv
- libffi-dev
- libssl-dev
- pip:
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/vhaenel/miniconda3/envs/numba_3.8/lib/python3.8/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
AttributeError: 'PointerType' object has no attribute 'elements'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/vhaenel/git/numba/numba/core/errors.py", line 720, in new_error_context
@esc
esc / myasm.asm
Last active January 17, 2020 16:04
.section __TEXT,__text,regular,pure_instructions
.macosx_version_min 10, 14
.globl __ZN8__main__15mutate_list$245E21ListType$5bfloat64$5d
.p2align 4, 0x90
__ZN8__main__15mutate_list$245E21ListType$5bfloat64$5d:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
pushq %r15
.cfi_def_cfa_offset 24
Traceback (most recent call last):
File "/Users/vhaenel/miniconda3/envs/numba/bin/git-hub", line 8, in <module>
sys.exit(hub())
File "/Users/vhaenel/miniconda3/envs/numba/lib/python3.7/site-packages/gitspindle/__init__.py", line 661, in hub
GitHub().main()
File "/Users/vhaenel/miniconda3/envs/numba/lib/python3.7/site-packages/gitspindle/__init__.py", line 119, in __init__
self.git_dir = self.git('rev-parse', '--git-dir')
File "/Users/vhaenel/miniconda3/envs/numba/lib/python3.7/site-packages/whelk/__init__.py", line 181, in __call__
(out, err) = sp.communicate(self.input)
File "/Users/vhaenel/miniconda3/envs/numba/lib/python3.7/site-packages/whelk/subprocess_34.py", line 31, in communicate
c['change_source'].append(changes.GitPoller(
'git://github.com/esc/numba.git',
workdir='gitpoller-workdir-esc',
branches=True,
pollInterval=300,
pollAtLaunch=True,
))
c['schedulers'] = []
c['schedulers'].append(schedulers.SingleBranchScheduler(
name="all",