Advertisement · 728 × 90

Posts by John

Tufte ? <3

1 year ago 0 0 0 0

It's beautiful ... but context on how you made it and whats the physics here ?

1 year ago 1 0 1 0

Will you reconsider Julia ever again ?

1 year ago 0 0 1 0
Post image

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.

1 year ago 10 2 0 0

whats the font in the image here ?

1 year ago 0 0 0 0

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.

1 year ago 1 0 0 0

TIL that `:TOhtml` in #vim will make an html of the contents of the buffer with your colorscheme and font

1 year ago 0 0 0 0

Makie.jl is one PR away from being a game engine

1 year ago 1 0 0 0

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.

1 year ago 0 0 1 0
Advertisement

nice keyboard :)

1 year ago 0 0 1 0
Preview
GitHub - ArbitRandomUser/projectsearchjl.nvim: a neovim plugin to search through a julia project's source files from nvim a neovim plugin to search through a julia project's source files from nvim - ArbitRandomUser/projectsearchjl.nvim

#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...

1 year ago 2 0 1 0

Merry Christmas Miguel

1 year ago 1 0 1 0

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 ?

1 year ago 1 0 1 0

..mance to the simd loop

1 year ago 0 0 0 0
Post image

you can also speed up your broadcasted code with DontMaterialize.jl , this gives identical perfor

1 year ago 0 0 1 0

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...

1 year ago 0 0 1 0

Could you post an example?

1 year ago 0 0 1 0
Advertisement

Cotton Eyed Joe

1 year ago 0 0 0 0

Are chemists allowed to listen to this ? ;)

1 year ago 1 0 1 0

how does it render in terminal ?

1 year ago 1 0 1 0

correction:
Y .= abs.( Y .- y)

1 year ago 0 0 0 0

Y .= Y .- y ?

1 year ago 0 0 1 0

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...

1 year ago 1 0 1 0

iosevka ,
typeof.net/Iosevka/

1 year ago 1 0 0 0
Post image

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 .

1 year ago 3 0 3 0
Advertisement

in the above example if you did
test( (my_vec.... )) ) instead of test( [ my_vec... )]) will give similar performance to diff

1 year ago 0 0 1 0

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

1 year ago 0 0 1 0

`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 .

1 year ago 1 0 1 0
Preview
If this message does not go away, try reloading the page.

if you're not already here , come nerd out at julialang.zulipchat.com#narrow/chann...

1 year ago 1 0 0 0
Post image

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 .

1 year ago 2 0 0 0