Tufte ? <3
Tufte ? <3
It's beautiful ... but context on how you made it and whats the physics here ?
Will you reconsider Julia ever again ?
its neat that default arguments values in #julialang can be computed from other argument values.
you can have a whole bunch of code to define the default argument in the function signature itself.
whats the font in the image here ?
UnicodePlots is neat ! , really handy when i need to roughly inspect data on a remote machine and cant be bothered to generate a plot and scp it back to my machine.
TIL that `:TOhtml` in #vim will make an html of the contents of the buffer with your colorscheme and font
Makie.jl is one PR away from being a game engine
You'll read everywhere that regex highlighting is slow compared to treesitter ,
and yet if you open a 1.5 Millon line C file ( I simply wanted to look into the internels of a treesitter parser) #neovim will grind to halt if #treesitter is enabled, but is a breeze for the default highlighter.
nice keyboard :)
#JuliaLang
i wrote a small neovim plugin to grep through your current project's source files . Both Telescope and FzfLua pickers available.
github.com/ArbitRandomU...
Merry Christmas Miguel
its not exactly a "white christmas" where I live but its colder than the rest of the year. It just feels weird thinking Christmas happens during summer in Australia and South America
do people from Australia feel the same way about a winter Christmas ? What are your thoughts on a cold christmas ?
..mance to the simd loop
you can also speed up your broadcasted code with DontMaterialize.jl , this gives identical perfor
loops are fast in julia , infact that loop you wrote gets faster if you use @simd around it . (@simd for i in eachindex...)
the broadcasted version is slow because the broadcast allocates a new array of size N , you can see how many allocations have happened in btime , a few bytes vs megabytes...
Could you post an example?
Cotton Eyed Joe
Are chemists allowed to listen to this ? ;)
how does it render in terminal ?
correction:
Y .= abs.( Y .- y)
Y .= Y .- y ?
I first heard of complex step differentiation from Higham . It was at a juliacon talk along with a great many other tricks in numericals.
www.youtube.com/live/Q9OLOqE...
iosevka ,
typeof.net/Iosevka/
if you want more sugary syntax you can use pipes ,
also a small correction in the above code is the output of diff is 1 element a Vector of Vectors and abs. will fail on it .
in the above example if you did
test( (my_vec.... )) ) instead of test( [ my_vec... )]) will give similar performance to diff
in general its nice to avoid allocations altogether ,
for this example diff works slightly faster but if you were to write comprhension style code using "generators comprehensions" can speed up your code since they dont allocate
`myvec[2:end] .- my_vec[1:end-1]` would be a "neater" way to do adjacent differences, but julia has a `diff` function which does it faster .
if you're not already here , come nerd out at julialang.zulipchat.com#narrow/chann...
There's two kinds of maths wizardry that you come across, one you see and know is beyond your skill ingenuity and the other is simple and obvious and yet leaves you wondering why you never thought of it before .