FromFile.jl

Julia enhancement proposal (Julep) for implicit per file module in Julia (by Roger-luo)

FromFile.jl Alternatives

Similar projects and alternatives to FromFile.jl

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better FromFile.jl alternative or higher similarity.

FromFile.jl reviews and mentions

Posts with mentions or reviews of FromFile.jl. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-11.
  • A Programming language ideal for Scientific Sustainability and Reproducibility?
    2 projects | /r/ProgrammingLanguages | 11 May 2023
    On include-- you might like FromFile.jl as an alternative.
  • Modules in Julia
    2 projects | /r/Julia | 28 Feb 2022
  • How to import an own module from the current directory?
    2 projects | /r/Julia | 29 Oct 2021
    For this and other oddities with Julia's include/import system (and especially as you're coming from Python), I'd recommend FromFile as a readable way to approach things.
  • Why not Julia?
    11 projects | /r/Julia | 1 May 2021
    You might like FromFile.jl.
  • Problems with nested `include`s and solutions?
    1 project | /r/Julia | 21 Feb 2021
    However, if you prefer a Python-like experience, checkout FromFile.jl
  • Julia 1.6: what has changed since Julia 1.0?
    9 projects | news.ycombinator.com | 14 Feb 2021
    I'm not using modules. I usually start with one file with a demo or similarly named function that is called if the file is called as an entry point (like if __name__ == '__main__', except Julia makes it even worse).

    I tend to refactor code out of there to separate files, and then somehow import it. An ugly way is include, and I've tried Revise.jl with includet.

    But I think the least ugly approach is the @from macro from here: https://github.com/Roger-luo/FromFile.jl Judging from some opinion in bug trackers, this is probably gonna get totally shunned by core devs and they'll keep on bikeshedding about the import stuff forever.

    With this setup I have about 400 lines of code in three files. It compiles for 15 seconds. After every single change, and actually without any changes too.

    I think performance wise this should be equivalent to using modules, but saving some pointless ceremony.

  • A note from our sponsor - InfluxDB
    www.influxdata.com | 1 Jun 2024
    Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more →

Stats

Basic FromFile.jl repo stats
6
131
1.5
about 1 year ago

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com