3 ms·
Compared to Python? Just about everything starting from simple things like how to create a simple data structure, how to convert a variable to a different type,
by st1x7 6y ago
Compared to Python? Just about everything starting from simple things like how to create a simple data structure, how to convert a variable to a different type, how to understand any error message that you get, how to open a file or modify a visualisation and extending all the way up to overarching concepts like the typing system, importing foreign code and managing dependencies.
- adamnemecek 6y agoHow is making a structure in Julia harder than in python?
- jonniedie 6y agoA simple data structure: struct ASimpleDataStructure a b end Convert a variable to a different type: x = 1 x = Float64(x) Open a file: open(“a_file.txt”) Import foreign code: using PyCall so = pyimport(“scipy.optimize”) so.newton(x -> cos(x) - x, 1)
- adamnemecek 6y agoYeah defining a strict in python would be more lines.
- st1x7 6y agoThis really isn't constructive. - I had none of those examples in mind (for example by foreign code I was referring to code written in a different project, not to using a different language). No, I don't need you to give me code snippets on how to do my actual list. - Obviously Julia can do everything that Python can. And most of it will look ergonomic, short and simple. The difficult part isn't whether the language can do it once you know how, it's how quickly you can get to figuring it out when you don't know it. - So what makes the small things difficult is really the mix of unhelpful error messages and the limited resources online. This is my overall point - if you take someone who hasn't written code in either Python or Julia, give them access to online search and ask them to complete almost any task, they'll do it faster and with less effort in Python.