Skip to content

Instantly share code, notes, and snippets.

Avatar

Samuel Ainsworth samuela

View GitHub Profile
View tmux-with-libutempter.nix
{ lib, stdenv
, fetchFromGitHub
, fetchpatch
, autoreconfHook
, pkg-config
, bison
, ncurses
, libevent
, libutempter
}:
View cos_interval.jl
function Base.cos(x::Interval)
if x.hi - x.lo >= 2π
error("nope")
return Interval(-1, 1)
end
# Wrap x.lo into the range [-π, π]
lo = rem2pi(x.lo, RoundNearest)
# -π <= lo <= hi <= 3π
hi = lo + (x.hi - x.lo)
View test.jl
import Base: +, *, ==, isless, show
import InteractiveUtils: @code_typed
import Printf: @printf
abstract type TracedThing end
# These are constants that we meet along the way. Debatable whether we need this at all...
struct TracedConstant <: TracedThing
world
# TODO: make the value type polymorphic
View elan build failure
❯ nix-env -iA nixpkgs.elan
installing 'elan-0.11.0'
this derivation will be built:
/nix/store/00zgkhvscdx3m4p90vbyqjvylps1n1i4-elan-0.11.0.drv
these 4 paths will be fetched (28.98 MiB download, 29.80 MiB unpacked):
/nix/store/4qzipzw3y9gg6ay3ragc1bjfkg5hqb9d-hook
/nix/store/8gn40l46fcmzpwz9wlg9jaiiyylng64k-elan-0.11.0-vendor.tar.gz
/nix/store/ig0ma14kc34nhsn8w1ajnyvp3wzwfp4l-source
/nix/store/pxq93c11y12cbc9lljyr7gljqgmwh7wz-hook
copying path '/nix/store/8gn40l46fcmzpwz9wlg9jaiiyylng64k-elan-0.11.0-vendor.tar.gz' from 'https://cache.nixos.org'...
@samuela
samuela / 000-nixpkgs-review-log.txt
Last active May 18, 2021
`nixpkgs-review wip` logs for pname/version refactor. View these logs with bat for the color-coded experience
View 000-nixpkgs-review-log.txt
> nixpkgs-review wip
$ git -c fetch.prune=false fetch --force https://github.com/NixOS/nixpkgs master:refs/nixpkgs-review/0
remote: Enumerating objects: 13, done.
remote: Counting objects: 100% (13/13), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 7 (delta 5), reused 1 (delta 0), pack-reused 0
Unpacking objects: 100% (7/7), 661 bytes | 132.00 KiB/s, done.
From https://github.com/NixOS/nixpkgs
db2815a9da3..45e19f23d35 master -> refs/nixpkgs-review/0
$ git worktree add /home/skainswo/.cache/nixpkgs-review/rev-0d66d837d3d130c2e9dfb80e6b0cb0a29f85f2f7-dirty-3/nixpkgs 45e19f23d35f199ef252957c1bb7d010115accd0
@samuela
samuela / 1.6-bin.nix
Created May 17, 2021
hacky attempt at getting the build working on x86_64-darwin
View 1.6-bin.nix
{ autoPatchelfHook, fetchurl, lib, stdenv, undmg }:
stdenv.mkDerivation rec {
pname = "julia-bin";
version = "1.6.1";
src = {
x86_64-linux = fetchurl {
url = "https://julialang-s3.julialang.org/bin/linux/x64/${lib.versions.majorMinor version}/julia-${version}-linux-x86_64.tar.gz";
sha256 = "01i5sm4vqb0y5qznql571zap19b42775drrcxnzsyhpaqgg8m23w";
View todo.md

John

  • Link to (complete!) set of experiments with some documentation.
  • Replace references to supplementary material with link to website/git.
    • I think this is done? Feel free to correct me if wrong.
  • Clarify the inputs & outputs of Algorithm 1.
    • I'm not sure what requires clarification here exactly. We do list inputs/outputs. Is there something else we should add?
  • Section 4 (experiments) overall needs revision for clarity
    • Talked offline: This is more of a style thing on John's part, and he's not unhappy with the current version so it's not a hard requirement.
  • Replace Tedrake website reference with an academic paper ref.
View vendor all numerical dependencies
{ lib, stdenv, fetchzip
# build tools
, gfortran, m4, makeWrapper, patchelf, perl, which, python2, cmake
# libjulia dependencies
, libunwind, readline, utf8proc, zlib
# standard library dependencies
, curl, libgit2, pcre2
# Darwin frameworks
, CoreServices, ApplicationServices
}:
View gist:2b840781c2d3e1fff59602d61a603fa0
Test Summary: | Pass Error Broken Total
Overall | 38780633 2 352605 39133240
LinearAlgebra/schur | 430 430
LinearAlgebra/eigen | 422 422
LinearAlgebra/lapack | 800 800
LinearAlgebra/bunchkaufman | 5285 5285
LinearAlgebra/tridiag | 1411 1411
LinearAlgebra/svd | 525 525
LinearAlgebra/generic | 530 530
LinearAlgebra/pinv | 288 288
View b82a21ed build julia_16 on NixOS
This file has been truncated, but you can view the full file.
skainswo on doodoo in nixpkgs on  juliaclean [$?]
❯ git log
commit b82a21edaedb1b3687d5dce63a433f56456c80e8 (HEAD -> juliaclean)
Author: Pontus Stenetorp <pontus@stenetorp.se>
Date: Mon Apr 19 06:22:51 2021 +0000
julia: added README