John 's Avatar

John

@arbitrandomuser.bsky.social

JuliaLang,

134 Followers  |  398 Following  |  30 Posts  |  Joined: 15.11.2024  |  1.8252

Latest posts by arbitrandomuser.bsky.social on Bluesky

Tufte ? <3

15.03.2025 17:11 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

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

26.02.2025 08:37 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Will you reconsider Julia ever again ?

11.02.2025 15:05 โ€” ๐Ÿ‘ 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.

27.01.2025 05:06 โ€” ๐Ÿ‘ 11    ๐Ÿ” 2    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

whats the font in the image here ?

26.01.2025 10:07 โ€” ๐Ÿ‘ 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.

25.01.2025 05:57 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

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

25.01.2025 05:55 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

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

30.12.2024 09:46 โ€” ๐Ÿ‘ 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.

28.12.2024 19:57 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

nice keyboard :)

27.12.2024 15:06 โ€” ๐Ÿ‘ 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...

27.12.2024 15:04 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Merry Christmas Miguel

25.12.2024 09:54 โ€” ๐Ÿ‘ 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 ?

23.12.2024 07:00 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

..mance to the simd loop

19.12.2024 10:06 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Post image

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

19.12.2024 10:05 โ€” ๐Ÿ‘ 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...

19.12.2024 09:54 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Could you post an example?

18.12.2024 17:42 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Cotton Eyed Joe

17.12.2024 14:09 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Are chemists allowed to listen to this ? ;)

17.12.2024 05:57 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

how does it render in terminal ?

11.12.2024 05:32 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

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

08.12.2024 09:46 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Y .= Y .- y ?

08.12.2024 09:45 โ€” ๐Ÿ‘ 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...

04.12.2024 17:56 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

iosevka ,
typeof.net/Iosevka/

03.12.2024 10:21 โ€” ๐Ÿ‘ 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 .

03.12.2024 05:34 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 3    ๐Ÿ“Œ 0

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

02.12.2024 17:27 โ€” ๐Ÿ‘ 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

02.12.2024 17:26 โ€” ๐Ÿ‘ 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 .

02.12.2024 17:17 โ€” ๐Ÿ‘ 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...

02.12.2024 16:49 โ€” ๐Ÿ‘ 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 .

01.12.2024 21:41 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

@arbitrandomuser is following 20 prominent accounts