Replies: 53 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 |
|
Struct equality test: |
|
@ocots any idea where has the wiki page with info on |
|
Sone knows the point in using |
|
Nice Pluto notebooks ( Footnotes |
|
Taylor integration : https://docs.sciml.ai/TaylorIntegration/stable/common/ |
|
Doc and nice benchmark: https://juliasmoothoptimizers.github.io/Percival.jl/dev/ |
On julia vs. markdown vs. notebooks files |
20 Awesome Julia Tips And Tricks For The Advantageous Programmer |
|
How to create "real" getters and setters (№17: “ object-oriented programming”) |
|
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: ***@***.***>
|
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 https://github.com/PacktPublishing/Hands-on-Design-Patterns-and-Best-Practices-with-Julia 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 |
|
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.
|
|
@joseph-gergaud regarding an old discussion we had on Julia scoping, check this. |
|
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. |
|
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.
|
|
@ocots @joseph-gergaud on the scope of loops |
|
On the program:
|
|
@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? |
|
@ocots @PierreMartinon @joseph-gergaud take a look at https://github.com/JuliaParallel/Dagger.jl (parallel computation) |
|
anyone tested that https://github.com/JuliaArrays/OffsetArrays.jl ? @ocots @PierreMartinon @rveltz @amontoison |
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
All reactions