Skip to content

Instantly share code, notes, and snippets.

View PlutoLogging.jl
### A Pluto.jl notebook ###
# v0.11.3
using Markdown
using InteractiveUtils
# ╔═╡ 7154a0e6-d7a3-11ea-2657-db1e00c80460
md"Define a function which will do some logging. Note that this could just as well be in an external library"
# ╔═╡ 514ac9ea-d7a0-11ea-1512-e99df979d240
@c42f
c42f / slack_logging_history.txt
Created Apr 27, 2020
Julia #logging slack channel history
View slack_logging_history.txt
Manually copied out of slack on 2020-04-28
logging
@rofinn created this channel on May 15th, 2018. This is the very beginning of the logging channel.
Rory Finnegan 6:07 AM
joined #logging along with 2 others.
Kevin Bonham:microbiome: 6:56 AM
Thanks for making the channel @rofinn. The main thing I’ve been trying to
@c42f
c42f / Manifest.toml
Last active Feb 24, 2021
Julia Fractals via inverse iteration
View Manifest.toml
# This file is machine-generated - editing it directly is not advised
[[ATK_jll]]
deps = ["Artifacts", "Glib_jll", "JLLWrappers", "Libdl", "Pkg"]
git-tree-sha1 = "d2cb610e0f31d9d20f4ca37e4535ea5e6f374889"
uuid = "7b86fcea-f67b-53e1-809c-8f1719c154e8"
version = "2.34.1+5"
[[AbstractFFTs]]
deps = ["LinearAlgebra"]
@c42f
c42f / fourier_isosurface.jl
Last active Aug 12, 2020
Makie.jl based visualization of 3D 1/f noise
View fourier_isosurface.jl
using Makie
using Meshing
using GeometryTypes
using ColorSchemes
using FFTW
using LinearAlgebra
using Random
using Interpolations
@c42f
c42f / tensor3x3.png
Last active Nov 20, 2019
Makie 3x3 tensor arrow viz
View binarybuilder_lowerbound_discussion.txt
Chris Foster 6 days ago
But I guess we currently need to supply things like Zlib_jll in the Project.toml [deps] section?
Mosè Giordano 6 days ago
Yes, exactly. The way the jll packages work doesn't allow them to be installed in julia <1.3, I don't see many options at the moment to make BinaryProvider and jll coexist in those versions of julia
Chris Foster 6 days ago
I see one possible option: the jll packages themselves could allow installation on julia < 1.3 and just load as an empty module in that case. That would allow some recourse for maintainers who have to support older julia versions.
Fredrik Ekre 6 days ago
just load as an empty module in that case
@c42f
c42f / exc_lowering.jl
Last active Sep 23, 2019
Sketch of lowering for improved exception handling
View exc_lowering.jl
using Base.Meta
struct ErrorResult{E}
e::E
end
function insert_wraparg!(ex, name)
@assert isexpr(ex, :call) # todo
insert!(ex.args, 2, name)
ex
@c42f
c42f / StructuredConcurrency
Last active Sep 17, 2019
Cancellation vs Structured Concurrency
View StructuredConcurrency
Chris Foster 4 days ago
Current notes are in my fork of the Juleps repo at
https://github.com/c42f/Juleps/blob/cjf/structured-concurrency/StructuredConcurrency.md
but most people seem to ignore the main Juleps repo so I haven't sent a PR yet (also it's very WIP).
We could move the notes to Jameson's julep wiki or somewhere else more conducive to collaboration? (edited)
Kiran Pamnany 3 days ago
This is nicely written -- good literature survey.
Kiran Pamnany 3 days ago
I'd be very interested in your (or anyone's) thoughts on Erlang's approach.
@c42f
c42f / TurboColormap.ipynb
Created Aug 21, 2019
Recomputing the polynomial approximation for the Turbo colormap
View TurboColormap.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@c42f
c42f / unroll.jl
Created Nov 9, 2017
unroll macro
View unroll.jl
module Unroll
struct Vec{N,T} <: AbstractVector{T}
data::NTuple{N,T}
end
Base.size(v::Vec) = (length(v.data),)
Base.getindex(v::Vec, i::Int) = v.data[i]
function _unroll_for(ex)