News for hackers. Stuff that matters.
Re:My Journey from R to Julia by mxkopy on Sunday January 29, 2023 @07:38AM (#34567536)
From my understanding Julia is closer to metal than R. This means the semantics are much more specific than R, and the syntax is more consistent/rigid.

For example, plotting in R always baffled me.

plot(x, y, col=..., col.name=...)

In this case, col.name is literally just a symbol. But in another context col.name is the data with index 'name' stored in col. Or something, it's been a while.

R seems to have a lot of these 'special contexts' that A. make understanding and writing code much quicker and B. reward familiarity over intuition. One R line can be 100 in Julia, and both compile to 80 machine instructions, for example.

I'd say if you can agree with others on what R code does and you're comfortable with R, then use R. If you need to build something performant with many domains, then Julia is a great language.

Re:My Journey from R to Julia by kgwgk on Sunday January 29, 2023 @11:29AM (#34569619)

    > plot(x, y, col=..., col.name=...)
    > In this case, col.name is literally just a symbol.
In this case, col.name is literally… made up?
Re:My Journey from R to Julia by mxkopy on Sunday January 29, 2023 @11:40AM (#34569790)
How does it feel to be a spiteful pedant?
Re:My Journey from R to Julia by bob29 on Sunday January 29, 2023 @11:53AM (#34569957)
Being technically correct is the best feeling in the universe