News for hackers. Stuff that matters.
Re:GPU vendor-agnostic fluid dynamics solver in Julia by codedokode on Monday May 08, 2023 @07:29PM (#35868305)
Regarding syntax, I think there are too many weird character combinations (:., ==:, etc) like these:

    ex.head == :. && return union!(sym,[ex])
    start = ex.head==:(call) ? 2 : 1
    
Also I don't like |> combination because it is hard to type. Why not use just single pipe character.
Re:GPU vendor-agnostic fluid dynamics solver in Julia by webshit2 on Monday May 08, 2023 @08:15PM (#35868684)
The colon is a bit overused (ranges, ternary, quoting), but this would be pretty clear with parentheses and spacing, i.e. ex.head == :(.) and ex.head == :(call). Now you can see it's a comparison against the symbols '.' and 'call'. Kind of like saying C has too many weird character combinations because there's a "--> operator".
Re:GPU vendor-agnostic fluid dynamics solver in Julia by DNF2 on Tuesday May 09, 2023 @02:47AM (#35870946)
Indeed there are no special operators, :. and ==: etc. They are just :, . and ==

And macro definition code looks quite different from 'regular' code since it works so much with expressions and symbols.