# Latest

**URL:** https://discourse.julialang.org/latest.md?page=909

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 910

---

## [Determine minimum integer storage type](https://discourse.julialang.org/t/determine-minimum-integer-storage-type/88001)

<div class="topic-metadata">

**Author:** [@james3](https://discourse.julialang.org/u/james3)\
**Replies:** 2\
**Last updated:** [September 29, 2022, 6:08pm UTC](https://discourse.julialang.org/t/determine-minimum-integer-storage-type/88001 "2022-09-29T18:08:04Z")

</div>

Suppose I have something that can take integer values from 1 to N. I want to determine the minimum integer type that will allow me to store these values. That is, I want to do something like const N = 200 const N\_type …

---

## [Create Formulas with Macros](https://discourse.julialang.org/t/create-formulas-with-macros/87951)

<div class="topic-metadata">

**Author:** [@Matthew](https://discourse.julialang.org/u/Matthew)\
**Replies:** 4\
**Last updated:** [September 29, 2022, 6:08pm UTC](https://discourse.julialang.org/t/create-formulas-with-macros/87951 "2022-09-29T18:08:55Z")

</div>

Hi all, I’m practicing working with macros and ran into an idea that I want to attempt to implement. Essentially, I want to create a macro @form that takes a formula expression. The expression would then be applied to a…

---

## [Does Julia provide enough support for reinforcement learning now?](https://discourse.julialang.org/t/does-julia-provide-enough-support-for-reinforcement-learning-now/87964)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 8\
**Last updated:** [September 29, 2022, 5:26pm UTC](https://discourse.julialang.org/t/does-julia-provide-enough-support-for-reinforcement-learning-now/87964 "2022-09-29T17:26:34Z")

</div>

Does Julia provide enough support for reinforcement learning now? Is Julia the recommended language for reinforcement learning? Does it have any advantage over Python in this regard? If yes, how to get started to learn …

---

## [Exception access violation (only Julia 1.8 on Windows)](https://discourse.julialang.org/t/exception-access-violation-only-julia-1-8-on-windows/87781)

<div class="topic-metadata">

**Author:** [@andreasvarga](https://discourse.julialang.org/u/andreasvarga)\
**Replies:** 5\
**Last updated:** [September 29, 2022, 4:29pm UTC](https://discourse.julialang.org/t/exception-access-violation-only-julia-1-8-on-windows/87781 "2022-09-29T16:29:31Z")

</div>

I am using the Fortran 77 library SLICOT in my current project PeriodicSystems via the binary wrapper SLICOT\_jll automatically generated with the BinaryBuilder. Recently, versions of SLICOT\_jll have been generated for J…

---

## [Generate Temporary Environment like Pkg.test](https://discourse.julialang.org/t/generate-temporary-environment-like-pkg-test/87981)

<div class="topic-metadata">

**Author:** [@MatthijsCox](https://discourse.julialang.org/u/MatthijsCox)\
**Replies:** 3\
**Last updated:** [September 29, 2022, 3:03pm UTC](https://discourse.julialang.org/t/generate-temporary-environment-like-pkg-test/87981 "2022-09-29T15:03:29Z")

</div>

The Pkg.test documentation states: The tests are run by generating a temporary environment with only pkg and its (recursive) dependencies in it. I love this ability, it’s a entire setup and teardown of an environment, …

---

## [How to get the inverse of a function](https://discourse.julialang.org/t/how-to-get-the-inverse-of-a-function/87977)

<div class="topic-metadata">

**Author:** [@zoezoe1](https://discourse.julialang.org/u/zoezoe1)\
**Replies:** 14\
**Last updated:** [September 29, 2022, 3:01pm UTC](https://discourse.julialang.org/t/how-to-get-the-inverse-of-a-function/87977 "2022-09-29T15:01:29Z")

</div>

Hello, I have the following function which I have been plotting as follows: function f(x,p) v0,S,D,v,K,n,µ = p return (((S\*x)^n\*(µ\*x - v - v0)/(v0 - µ\*x))^(1/n)-D\*x-K)/D end plot(x -\> f(x,(0.4,4.0,1.0,2.0,0.7,…

---

## [Error: Cannot 'Convert' an object of type Array{Float64,3} to an object of type float64](https://discourse.julialang.org/t/error-cannot-convert-an-object-of-type-array-float64-3-to-an-object-of-type-float64/87928)

<div class="topic-metadata">

**Author:** [@mcket747](https://discourse.julialang.org/u/mcket747)\
**Replies:** 3\
**Last updated:** [September 29, 2022, 2:59pm UTC](https://discourse.julialang.org/t/error-cannot-convert-an-object-of-type-array-float64-3-to-an-object-of-type-float64/87928 "2022-09-29T14:59:18Z")

</div>

Hello, I am very new to Julia and am running into this error. Operations with similar code have not returned this error so Im not sure what I’m doing wrong. I run the following code and get the can’t convert error. Any …

---

## [Make text annotations using the algebra of graphics](https://discourse.julialang.org/t/make-text-annotations-using-the-algebra-of-graphics/87930)

<div class="topic-metadata">

**Author:** [@martinmestre](https://discourse.julialang.org/u/martinmestre)\
**Replies:** 3\
**Last updated:** [September 29, 2022, 2:55pm UTC](https://discourse.julialang.org/t/make-text-annotations-using-the-algebra-of-graphics/87930 "2022-09-29T14:55:23Z")

</div>

Hello, is there a way to implement text annotations using mapping() ? If possible I would like to know how to annotate text at the bottom or tip of little thin arrows. If not possible withing AoG, I would like to know…

---

## [If new struct should implement show function to well print? otherwise it may cause error?](https://discourse.julialang.org/t/if-new-struct-should-implement-show-function-to-well-print-otherwise-it-may-cause-error/87983)

<div class="topic-metadata">

**Author:** [@xuanquansheng](https://discourse.julialang.org/u/xuanquansheng)\
**Replies:** 6\
**Last updated:** [September 29, 2022, 2:53pm UTC](https://discourse.julialang.org/t/if-new-struct-should-implement-show-function-to-well-print-otherwise-it-may-cause-error/87983 "2022-09-29T14:53:56Z")

</div>

I’ve recently been learning source codes of pkg FixedEffectModels. if false Xall = Combination(y, Xexo, Xendo, Z) else Xall = Combination(y, Xexo) println(typeof(Xall)) # it can been print println("Xal…

---

## [Approximate equality](https://discourse.julialang.org/t/approximate-equality/8952)

<div class="topic-metadata">

**Author:** [@mvhulten](https://discourse.julialang.org/u/mvhulten)\
**Replies:** 54\
**Last updated:** [September 29, 2022, 2:24pm UTC](https://discourse.julialang.org/t/approximate-equality/8952 "2022-09-29T14:24:45Z")

</div>

I read somewhere that the approximation binary operator (\\approx) checks if the number is within machine precision. Whatever it does exactly, it does not appear to behave consistently: julia\> ℯ^(-π\*im) -1.0 - 1.2246467…

---

## [Zero(π) and one(π) are false and true?](https://discourse.julialang.org/t/zero-and-one-are-false-and-true/87802)

<div class="topic-metadata">

**Author:** [@blackeneth](https://discourse.julialang.org/u/blackeneth)\
**Replies:** 30\
**Last updated:** [September 29, 2022, 1:40pm UTC](https://discourse.julialang.org/t/zero-and-one-are-false-and-true/87802 "2022-09-29T13:40:24Z")

</div>

The code for irrationals.jl in base defines: zero(::AbstractIrrational) = false zero(::Type{\<:AbstractIrrational}) = false one(::AbstractIrrational) = true one(::Type{\<:AbstractIrrational}) = true So, then, for exampl…

---

## [Matrix Initialization with Lamba Expression Missing Dimensions](https://discourse.julialang.org/t/matrix-initialization-with-lamba-expression-missing-dimensions/87952)

<div class="topic-metadata">

**Author:** [@bigdio](https://discourse.julialang.org/u/bigdio)\
**Replies:** 3\
**Last updated:** [September 29, 2022, 1:36pm UTC](https://discourse.julialang.org/t/matrix-initialization-with-lamba-expression-missing-dimensions/87952 "2022-09-29T13:36:53Z")

</div>

a=\[1 2 3\]' b1=\[a a.^2 a.^3\] #withour lambda b2=\[a.^i for i in 1:3\] #with lambda @show b1,size(b1) @show b2,size(b2) ·········· b1 = \[1 1 1; 2 4 8; 3 9 27\] b2 = \[\[1; 2; 3;;\], \[1; 4; 9;;\], \[1; 8; 27;;\]\] (size(b1), size(b2)…

---

## [PyCall installation on macOS - M1](https://discourse.julialang.org/t/pycall-installation-on-macos-m1/87980)

<div class="topic-metadata">

**Author:** [@CompulsoryCoffee](https://discourse.julialang.org/u/CompulsoryCoffee)\
**Replies:** 1\
**Last updated:** [September 29, 2022, 1:12pm UTC](https://discourse.julialang.org/t/pycall-installation-on-macos-m1/87980 "2022-09-29T13:12:42Z")

</div>

Hi, I need to run sklearn.metrics library which is not available in Julia yet. I tried to run on my macbookpro M1 but I run into this issue: julia\> using PyCall Python path configuration: PYTHONHOME = ‘/Users/alexd…

---

## [Using dodge/offset in scatter plot (StatPlots.jl)](https://discourse.julialang.org/t/using-dodge-offset-in-scatter-plot-statplots-jl/10768)

<div class="topic-metadata">

**Author:** [@amckay1](https://discourse.julialang.org/u/amckay1)\
**Replies:** 1\
**Last updated:** [September 29, 2022, 11:15am UTC](https://discourse.julialang.org/t/using-dodge-offset-in-scatter-plot-statplots-jl/10768 "2022-09-29T11:15:19Z")

</div>

Sorry, I’ve been looking everywhere and haven’t found the answer so I thought I should ask: I was attempting to using the @df macro on a JuliaDB table in the hopes of creating a scatter plot. My scatter plot looks good, …

---

## [SLURM: Julia scripts do not exit or produce any output](https://discourse.julialang.org/t/slurm-julia-scripts-do-not-exit-or-produce-any-output/57283)

<div class="topic-metadata">

**Author:** [@Salmon](https://discourse.julialang.org/u/Salmon)\
**Replies:** 9\
**Last updated:** [September 29, 2022, 10:07am UTC](https://discourse.julialang.org/t/slurm-julia-scripts-do-not-exit-or-produce-any-output/57283 "2022-09-29T10:07:18Z")

</div>

Dear Julia community, After successfully experimenting with Julia on my local machine, I am trying to get it to work on a cluster running SLURM. After submitting a batch script (see below for an example) the job gets s…

---

## [Is it possible to access row index inside DataFramesMeta macros?](https://discourse.julialang.org/t/is-it-possible-to-access-row-index-inside-dataframesmeta-macros/87944)

<div class="topic-metadata">

**Author:** [@dispeduspo](https://discourse.julialang.org/u/dispeduspo)\
**Replies:** 2\
**Last updated:** [September 29, 2022, 10:08am UTC](https://discourse.julialang.org/t/is-it-possible-to-access-row-index-inside-dataframesmeta-macros/87944 "2022-09-29T10:08:55Z")

</div>

Is there a way to access current\_row\_index in the following snippet ? @with df begin fn.(:col, current\_row\_index) end

---

## [DrWatson.jl encoding a tuple of symbols with savename](https://discourse.julialang.org/t/drwatson-jl-encoding-a-tuple-of-symbols-with-savename/87965)

<div class="topic-metadata">

**Author:** [@bgctw](https://discourse.julialang.org/u/bgctw)\
**Replies:** 1\
**Last updated:** [September 29, 2022, 10:04am UTC](https://discourse.julialang.org/t/drwatson-jl-encoding-a-tuple-of-symbols-with-savename/87965 "2022-09-29T10:04:10Z")

</div>

I try encoding symbols with DrWatson.jl savename. The encoding works, but I have troubles getting the NamedTuple back from the encoded string, but only get MethodError on tryparse. using DrWatson slc = (site = :LUE, ta…

---

## [Autodiff-ing a function defined by the result of Roots.find\_zero fails](https://discourse.julialang.org/t/autodiff-ing-a-function-defined-by-the-result-of-roots-find-zero-fails/87753)

<div class="topic-metadata">

**Author:** [@joaovgranja](https://discourse.julialang.org/u/joaovgranja)\
**Replies:** 12\
**Last updated:** [September 29, 2022, 9:54am UTC](https://discourse.julialang.org/t/autodiff-ing-a-function-defined-by-the-result-of-roots-find-zero-fails/87753 "2022-09-29T09:54:52Z")

</div>

Hi all! I am trying to ForwardDiff a function that is defined by solving a non-linear equation that depends on parameters. The code below reproduces the error. It first redefines exp by solving log(x) - a = 0 using Roo…

---

## [Should Julia migrate from C to Zig? And Julia users that need C code with Julia?](https://discourse.julialang.org/t/should-julia-migrate-from-c-to-zig-and-julia-users-that-need-c-code-with-julia/87942)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 6\
**Last updated:** [September 29, 2022, 9:37am UTC](https://discourse.julialang.org/t/should-julia-migrate-from-c-to-zig-and-julia-users-that-need-c-code-with-julia/87942 "2022-09-29T09:37:31Z")

</div>

Yes, Zig hasn’t hit 1.0, but is usable. Zig supports all platforms Julia supports (all Julia tier 1 platforms are also tier 1 in Zig). Use Zig as a zero-dependency, drop-in C/C++ compiler that supports cross-compilati…

---

## [Reading Leica .lif files in julia](https://discourse.julialang.org/t/reading-leica-lif-files-in-julia/87924)

<div class="topic-metadata">

**Author:** [@pascal](https://discourse.julialang.org/u/pascal)\
**Replies:** 1\
**Last updated:** [September 29, 2022, 8:56am UTC](https://discourse.julialang.org/t/reading-leica-lif-files-in-julia/87924 "2022-09-29T08:56:38Z")

</div>

Is there way how I can read in .lif files that are generated by Leica microscopes?

---

## [Is there a Julia library that can tidy html documents?](https://discourse.julialang.org/t/is-there-a-julia-library-that-can-tidy-html-documents/87970)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 0\
**Last updated:** [September 29, 2022, 8:44am UTC](https://discourse.julialang.org/t/is-there-a-julia-library-that-can-tidy-html-documents/87970 "2022-09-29T08:44:44Z")

</div>

I have Julia code that creates an html document, but this document is not valid. I can use the external program tidy to fix it, like this: ufechner@ubuntu:~/repos/LogFiles/data/2022-09-28$ tidy -m summary.html line 3 c…

---

## [How to get the parameter of a parameteric type wihtout looking at the fields](https://discourse.julialang.org/t/how-to-get-the-parameter-of-a-parameteric-type-wihtout-looking-at-the-fields/87967)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 0\
**Last updated:** [September 29, 2022, 8:13am UTC](https://discourse.julialang.org/t/how-to-get-the-parameter-of-a-parameteric-type-wihtout-looking-at-the-fields/87967 "2022-09-29T08:13:23Z")

</div>

I want to retrieve the parameter of a parametric type of an object. There are already several discussion on this, here or on SO, but I don’t want to look up at the object fields, as this would be application-specific, i…

---

## [Dodged barplot got thin out in Makie](https://discourse.julialang.org/t/dodged-barplot-got-thin-out-in-makie/87923)

<div class="topic-metadata">

**Author:** [@nvhoang.3110](https://discourse.julialang.org/u/nvhoang.3110)\
**Replies:** 6\
**Last updated:** [September 29, 2022, 8:23am UTC](https://discourse.julialang.org/t/dodged-barplot-got-thin-out-in-makie/87923 "2022-09-29T08:23:36Z")

</div>

Hello everyone. Sorry if my question is too basic for some but I don’t understand why my barplot got thin out after I try to add another set of dodged bars. Below is an example. Suppose that I have some data like this: d…

---

## [Makie Mesh wrong labels after axis scaling](https://discourse.julialang.org/t/makie-mesh-wrong-labels-after-axis-scaling/87914)

<div class="topic-metadata">

**Author:** [@verflieger](https://discourse.julialang.org/u/verflieger)\
**Replies:** 1\
**Last updated:** [September 29, 2022, 7:02am UTC](https://discourse.julialang.org/t/makie-mesh-wrong-labels-after-axis-scaling/87914 "2022-09-29T07:02:37Z")

</div>

Hello, I am a little bit lost with plotting a 3D mesh with the Makie mesh function. Because in my given coordinate system, the y axis is flipped compared to the standard of mesh, I rescaled it. However, the axis labels …

---

## [Geometric Integrators for SDE problems](https://discourse.julialang.org/t/geometric-integrators-for-sde-problems/87961)

<div class="topic-metadata">

**Author:** [@simoneb](https://discourse.julialang.org/u/simoneb)\
**Replies:** 3\
**Last updated:** [September 29, 2022, 6:54am UTC](https://discourse.julialang.org/t/geometric-integrators-for-sde-problems/87961 "2022-09-29T06:54:33Z")

</div>

Hi, I am trying to figure out how to use an SDE solver for matrix-valued Stochastic Differential Equations. It looks like the packages GeometricIntegrators.jl, and StochasticIntegrators.jl might have the functionality b…

---

## [Ordering of isoutofdomain and continuous callbacks in DifferentialEquations.jl](https://discourse.julialang.org/t/ordering-of-isoutofdomain-and-continuous-callbacks-in-differentialequations-jl/87760)

<div class="topic-metadata">

**Author:** [@kaitlyn-loftus](https://discourse.julialang.org/u/kaitlyn-loftus)\
**Replies:** 3\
**Last updated:** [September 29, 2022, 6:51am UTC](https://discourse.julialang.org/t/ordering-of-isoutofdomain-and-continuous-callbacks-in-differentialequations-jl/87760 "2022-09-29T06:51:51Z")

</div>

I am encountering some undesired behavior with a combination of DifferentialEquations.jl’s marvelous isoutofdomain and event handling features. I seem to be having integrations fail because of the ordering of a Continuo…

---

## [Makie outline 3e](https://discourse.julialang.org/t/makie-outline-3e/87694)

<div class="topic-metadata">

**Author:** [@FedeClaudi](https://discourse.julialang.org/u/FedeClaudi)\
**Replies:** 6\
**Last updated:** [September 29, 2022, 6:46am UTC](https://discourse.julialang.org/t/makie-outline-3e/87694 "2022-09-29T06:46:05Z")

</div>

makie expert, need your help again. Is there away to obtain an “outline” effect like this? Specifically, in drawing a torus as a surface I’d like the outer edge and the inner “hole” to have an outline, similar to…

---

## [Convert polynomial to symbolic expression](https://discourse.julialang.org/t/convert-polynomial-to-symbolic-expression/87908)

<div class="topic-metadata">

**Author:** [@Luca](https://discourse.julialang.org/u/Luca)\
**Replies:** 3\
**Last updated:** [September 29, 2022, 6:34am UTC](https://discourse.julialang.org/t/convert-polynomial-to-symbolic-expression/87908 "2022-09-29T06:34:26Z")

</div>

Dear all, I’m using LinearAlgebra and Symbolics package. I have a polynomial created by for ivar in 1:num\_vars push!(variables, "x\[" \* string(ivar) \* "\]") end global ZZ = RealField global R, = PolynomialRing(ZZ, va…

---

## [About the additional memory allocation that appears in the OMEinsum package](https://discourse.julialang.org/t/about-the-additional-memory-allocation-that-appears-in-the-omeinsum-package/87938)

<div class="topic-metadata">

**Author:** [@F-YF](https://discourse.julialang.org/u/F-YF)\
**Replies:** 2\
**Last updated:** [September 29, 2022, 2:40am UTC](https://discourse.julialang.org/t/about-the-additional-memory-allocation-that-appears-in-the-omeinsum-package/87938 "2022-09-29T02:40:20Z")

</div>

julia\> using OMEinsum julia\> a=rand(1024,1024); julia\> b=rand(1024,1024,2); julia\> using BenchmarkTools julia\> @btime ein"xy,yzw-\>xzw"(a,b); 23.790 ms (77 allocations: 16.00 MiB) julia\> @btime ein"yx,yzw-\>xzw"(a,b…

---

## [Using LLVM intrinsic functions inside \`llvmcall\`](https://discourse.julialang.org/t/using-llvm-intrinsic-functions-inside-llvmcall/87955)

<div class="topic-metadata">

**Author:** [@matthias314](https://discourse.julialang.org/u/matthias314)\
**Replies:** 6\
**Last updated:** [September 28, 2022, 11:16pm UTC](https://discourse.julialang.org/t/using-llvm-intrinsic-functions-inside-llvmcall/87955 "2022-09-28T23:16:19Z")

</div>

I’m playing around with llvmcall. I can use LLVM IR instructions (like add), but I cannot get intrinsic functions (like @llvm.abs.i32) to work. From the post Debugging float SIMD Intrinsics via llvmcall I get the impress…

[Previous page](https://discourse.julialang.org/latest.md?page=908)

[Next page](https://discourse.julialang.org/latest.md?page=910)
