Replies: 50 comments 18 replies
-
Docstrings extensions: For instance: using DocStringExtensions
"""
A short summary of `func`...
$(SIGNATURES)
where `x` and `y` should both be positive.
# Details
Some details about `func`...
"""
func(x, y) = x + y |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Struct equality test: |
Beta Was this translation helpful? Give feedback.
-
@ocots any idea where has the wiki page with info on |
Beta Was this translation helpful? Give feedback.
-
Sone knows the point in using |
Beta Was this translation helpful? Give feedback.
-
Nice Pluto notebooks ( Footnotes |
Beta Was this translation helpful? Give feedback.
-
Problem with
AVOID, and use official release instead; see this post. Everything back to normal with |
Beta Was this translation helpful? Give feedback.
-
Taylor integration : https://docs.sciml.ai/TaylorIntegration/stable/common/ |
Beta Was this translation helpful? Give feedback.
-
Doc and nice benchmark: https://juliasmoothoptimizers.github.io/Percival.jl/dev/ |
Beta Was this translation helpful? Give feedback.
-
On julia vs. markdown vs. notebooks files |
Beta Was this translation helpful? Give feedback.
-
20 Awesome Julia Tips And Tricks For The Advantageous Programmer |
Beta Was this translation helpful? Give feedback.
-
How to create "real" getters and setters (№17: “ object-oriented programming”) |
Beta Was this translation helpful? Give feedback.
-
A very long post indeed. I struggled to find any useful information in it, but that's probably me 😄
…
On Apr 6, 2023 at 17:00, Jean-Baptiste Caillau ***@***.***> wrote:
20 Awesome Julia Tips And Tricks For The Advantageous Programmer
Check this post
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Traits & moreJuliaLang/julia#2345 (comment) https://invenia.github.io/blog/2019/10/30/julialang-features-part-1/ https://invenia.github.io/blog/2019/11/06/julialang-features-part-2/ https://github.com/mauro3/SimpleTraits.jl https://github.com/jolin-io/WhereTraits.jl http://ucidatascienceinitiative.github.io/IntroToJulia/Html/DispatchDesigns https://docs.julialang.org/en/v1/manual/methods/#Trait-based-dispatch-1 https://youtu.be/qhAe1PuWjRQ?si=9JWFxqvSfRDAUvO6 See alsoExample# The trait types
abstract type Scalarness end
struct Scalar <: Scalarness end
struct NonScalar <: Scalarness end
# The trait functions (extensible! contrary to unions)
scalarness(::Type) = Scalar() #fall-back, by default everything is scalar; could
scalarness(::Type{<:AbstractArray}) = NonScalar()
scalarness(::Type{<:Tuple}) = NonScalar()
scalarness(::Type{<:AbstractString}) = NonScalar()
# Dispatching statically (values are types, known statically - nb: also works on small values such as booleans...)
aslist(x::T) where T = aslist(scalarness(T), x)
aslist(::Scalar, x) = [x]
aslist(::NonScalar, x) = x |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hi @jbcaillau!
|
Beta Was this translation helpful? Give feedback.
-
Anyone planning to attend? |
Beta Was this translation helpful? Give feedback.
-
@rveltz anything more up to date / comprehensive on Julia traits than what is here? |
Beta Was this translation helpful? Give feedback.
-
I like also the idea of https://github.com/jolin-io/WhereTraits.jl
To me, the bigger problem is the one of interfaces when you develop such big package as yours.
… On Dec 28, 2023, at 9:39 AM, Jean-Baptiste Caillau ***@***.***> wrote:
@rveltz <https://github.com/rveltz> anything more up to date / comprehensive on Julia traits than what is here <#22 (comment)>?
—
Reply to this email directly, view it on GitHub <#22 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAMEUBC5DHE6NW7GR23P2LTYLUV25AVCNFSM6AAAAAAVZW4SEOVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TSNRSHE2DA>.
You are receiving this because you were mentioned.
|
Beta Was this translation helpful? Give feedback.
-
@joseph-gergaud regarding an old discussion we had on Julia scoping, check this. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Blue: a Style Guide for Julia: This document specifies style conventions for Julia code. These conventions were created from a variety of sources including Python's PEP8, Julia's Notes for Contributors, and Julia's Style Guide. |
Beta Was this translation helpful? Give feedback.
-
This is implemented in https://github.com/domluna/JuliaFormatter.jl
This can be a lot of refactoring to comply to a style depending on your project status… I was told it is the basic thing to get PR from external users
… On May 30, 2024, at 11:08 AM, Olivier Cots ***@***.***> wrote:
Blue: a Style Guide for Julia <https://github.com/JuliaDiff/BlueStyle>: This document specifies style conventions for Julia code. These conventions were created from a variety of sources including Python's PEP8 <http://legacy.python.org/dev/peps/pep-0008/>, Julia's Notes for Contributors <https://github.com/JuliaLang/julia/blob/master/CONTRIBUTING.md>, and Julia's Style Guide <https://docs.julialang.org/en/v1/manual/style-guide/>.
—
Reply to this email directly, view it on GitHub <#22 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAMEUBDGHS4FQNR65TK4CILZE3T7LAVCNFSM6AAAAAAVZW4SEOVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TMMBTGQ3TQ>.
You are receiving this because you were mentioned.
|
Beta Was this translation helpful? Give feedback.
-
@ocots @joseph-gergaud on the scope of loops |
Beta Was this translation helpful? Give feedback.
-
On the program:
|
Beta Was this translation helpful? Give feedback.
-
@ocots @PierreMartinon @joseph-gergaud we need a place to save howto's (create a package, a doc, CI info, etc.) There is this discussion, this wiki, and quite a few things scattered under the control-toolbox organisation. any idea on a good way to do this properly? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
https://github.com/LilithHafner/BasicAutoloads.jl |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Profiling
@PierreMartinon
Beta Was this translation helpful? Give feedback.
All reactions