News for hackers. Stuff that matters.
Re:Think Julia: How to Think Like a Computer Scientist by fusiongyro on Saturday August 18, 2018 @12:43AM (#17786904)
One thing that makes Julia cool is that adding the types improves performance, but you don't have to add them if you don't want to.
Re:Think Julia: How to Think Like a Computer Scientist by dnautics on Saturday August 18, 2018 @01:48AM (#17787073)
Adding types in julia usually does not improve performance for function definitions... it may improve performance for collections (like specifying the type that an array collects), but usually julia is pretty darn good at correctly inferring the collection type
Re:Think Julia: How to Think Like a Computer Scientist by ummonk on Saturday August 18, 2018 @12:58PM (#17789363)
Right. Adding types is a good way to ensure you're writing type-stable code, but when you do write type-stable code, Julia can usually infer that it is type-stable without needing actual specified types.