-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposals for advanced topics #15
Comments
|
One thing that would interest me is writing custom types that are safe for automatic differentiation. This seems to involve setting up parametric types for any fields in the struct, e.g. struct MyType{T} where T:
x::T
end But I don't really understand the details of how this works or what it is doing. How would this be different than leaving out type annotation totally and letting the compiler figure it out, especially when an AD number type gets passed as a value of |
I can mention that on Friday if there is interest |
I'd be particularly interested in a basic introduction to macros. |
Like using macros or writing macros? Anything particularly interesting for you? |
@ranocha writing macros. I'm interested in writing small domain specific languages but just understanding the basics + some good practices would be great! |
@JamieJQuinn given that @pszufe just talked about Macros - is that enough for you? |
Aha, sure. I can't imagine it's very useful for many anyway! |
I just said a small bit on macros so people understand how it is possible to have DSLs in Julia. |
@smith-garrett whenever you define a struct one thing you should never do is:
or
Both are terrible as they do not allow the compiler to optimize the code. Since we need flexibility of type we have:
or simply Google also for |
Another suggestion - some good practices on writing robust Julia would be nice. Specifically:
|
I received some proposals for advanced topics:
The text was updated successfully, but these errors were encountered: