Jul-101 [upd] -

(compact loops):

square = x -> x^2 map(square, 1:5) # → [1,4,9,16,25] jul-101

@btime sum($rand(10^6)) # $ interpolates the array once (no allocation) (compact loops): square = x -> x^2 map(square,

: a naïve Python loop vs. a properly typed Julia function can be 10‑100× faster. (compact loops): square = x -&gt

| Target | Recommended Tool | |--------|------------------| | | Plain .jl files; run with julia myscript.jl . | | Notebooks | Pluto.jl (reactive) or IJulia (Jupyter). | | Web apps | Genie.jl (MVC web framework) or Dash.jl (Plotly‑style). | | Packages | Use Pkg.generate("MyPkg") , write Project.toml + src/MyPkg.jl , register on the General Registry if you want community exposure. | | Compiled binaries | PackageCompiler.jl → create_app . |

Оставить комментарий:

comments powered by HyperComments