# Latest

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

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

**Page:** 1028

---

## [Portable Julia](https://discourse.julialang.org/t/portable-julia/45339)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 22\
**Last updated:** [May 28, 2022, 1:36pm UTC](https://discourse.julialang.org/t/portable-julia/45339 "2022-05-28T13:36:55Z")

</div>

I noticed that a portable Julia is now available for the Windows platform. I think this might lead to a Julia-on-a-stick, but a little bit more work is required, I think. I started putting together a bash script for th…

---

## [Why is dot plus faster?](https://discourse.julialang.org/t/why-is-dot-plus-faster/81830)

<div class="topic-metadata">

**Author:** [@thisismygitrepo](https://discourse.julialang.org/u/thisismygitrepo)\
**Replies:** 6\
**Last updated:** [May 28, 2022, 12:57pm UTC](https://discourse.julialang.org/t/why-is-dot-plus-faster/81830 "2022-05-28T12:57:52Z")

</div>

I’m experimenting with differnt expression and I can’t explain why the dot + is faster than just + in the simple case of matrix addition. using BenchmarkTools A = rand(100, 100) B = rand(100, 100) function no\_dot(A,…

---

## [Mid-chain array comprehensions affect (join) broadcasting behavior?](https://discourse.julialang.org/t/mid-chain-array-comprehensions-affect-join-broadcasting-behavior/81829)

<div class="topic-metadata">

**Author:** [@kostas-emman](https://discourse.julialang.org/u/kostas-emman)\
**Replies:** 0\
**Last updated:** [May 28, 2022, 10:36am UTC](https://discourse.julialang.org/t/mid-chain-array-comprehensions-affect-join-broadcasting-behavior/81829 "2022-05-28T10:36:36Z")

</div>

I could do what is presented here in a different way (e.g. using replace) but please bear with me since I am more interested in the intuition behind the behavior presented below. I use Julia 1.7.3. If I have a 2-elemen…

---

## [How to add LabelledPetriNet](https://discourse.julialang.org/t/how-to-add-labelledpetrinet/81828)

<div class="topic-metadata">

**Author:** [@lsorkatti](https://discourse.julialang.org/u/lsorkatti)\
**Replies:** 2\
**Last updated:** [May 28, 2022, 10:44am UTC](https://discourse.julialang.org/t/how-to-add-labelledpetrinet/81828 "2022-05-28T10:44:17Z")

</div>

julia\> Pkg.add(“LabelledPetriNet”); ERROR: The following package names could not be resolved: LabelledPetriNet (not found in project, manifest or registry) Stacktrace: \[1\] pkgerror(msg::String) @ Pkg.Types /opt/jul…

---

## [Heat flow in 1d](https://discourse.julialang.org/t/heat-flow-in-1d/81711)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 10\
**Last updated:** [May 28, 2022, 10:44am UTC](https://discourse.julialang.org/t/heat-flow-in-1d/81711 "2022-05-28T10:44:09Z")

</div>

I want to Plot Theta vs index " i ". where θ\[i-1\]+b\*θ\[i\]+θ\[i+1\] =0 is the equation that i obtained after discretization . b is parameter. i took m=100 and delta g= 0.01 using Plots begin Δg=0.01 ;m=100 b=-2-(m^2…

---

## [The following package names could not be resolved: \* Makie (not found in project, manifest or registry)](https://discourse.julialang.org/t/the-following-package-names-could-not-be-resolved-makie-not-found-in-project-manifest-or-registry/48682)

<div class="topic-metadata">

**Author:** [@zlq178](https://discourse.julialang.org/u/zlq178)\
**Replies:** 3\
**Last updated:** [May 28, 2022, 10:37am UTC](https://discourse.julialang.org/t/the-following-package-names-could-not-be-resolved-makie-not-found-in-project-manifest-or-registry/48682 "2022-05-28T10:37:11Z")

</div>

I want to add “Makie” package,But it shows me such error: The following package names could not be resolved: \* Makie (not found in project, manifest or registry) My Julia version is 1.5.1-1 How can I solve it?

---

## [Constructor: Member variables not visible / out of scope](https://discourse.julialang.org/t/constructor-member-variables-not-visible-out-of-scope/81827)

<div class="topic-metadata">

**Author:** [@DanDoe](https://discourse.julialang.org/u/DanDoe)\
**Replies:** 1\
**Last updated:** [May 28, 2022, 9:39am UTC](https://discourse.julialang.org/t/constructor-member-variables-not-visible-out-of-scope/81827 "2022-05-28T09:39:42Z")

</div>

In C++ I can do the following: class foo { private: int N; public: foo(const int pN) { N = pN; std::cout \<\< N \<\< std::endl; } }; or, with the concept of outer constructors in Julia in mind, class foo {…

---

## [Detecting low precision contamination of DoubleFloats.jl](https://discourse.julialang.org/t/detecting-low-precision-contamination-of-doublefloats-jl/77408)

<div class="topic-metadata">

**Author:** [@HexSpin](https://discourse.julialang.org/u/HexSpin)\
**Replies:** 15\
**Last updated:** [May 28, 2022, 7:56am UTC](https://discourse.julialang.org/t/detecting-low-precision-contamination-of-doublefloats-jl/77408 "2022-05-28T07:56:22Z")

</div>

For the last many months I’ve very happily used DoubleFloats.jl to compute series akin to 1+1/2+1/3-1/4-1/5… with varying signs changes and ranges up to (and fractions as as small as) 1/10^15 – or smaller. As these summ…

---

## [Arbitrary precision refinnements with Convex.jl & COSMO.jl](https://discourse.julialang.org/t/arbitrary-precision-refinnements-with-convex-jl-cosmo-jl/61806)

<div class="topic-metadata">

**Author:** [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Replies:** 9\
**Last updated:** [May 28, 2022, 7:16am UTC](https://discourse.julialang.org/t/arbitrary-precision-refinnements-with-convex-jl-cosmo-jl/61806 "2022-05-28T07:16:53Z")

</div>

Hi, I’m solving a problem through Convex.jl & COSMO.jl. I want to build a BigFloat version of the same problem to refine the solution, and i’d like to warm start it with the low-precision solution. For the dummy problem…

---

## [How can I determine the free memory?](https://discourse.julialang.org/t/how-can-i-determine-the-free-memory/81819)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 3\
**Last updated:** [May 28, 2022, 6:56am UTC](https://discourse.julialang.org/t/how-can-i-determine-the-free-memory/81819 "2022-05-28T06:56:39Z")

</div>

Is there a way to determine the free and the used memory with Julia? Perhaps even free heap and free stack?

---

## [Read .lp file into JuMP model in direct mode](https://discourse.julialang.org/t/read-lp-file-into-jump-model-in-direct-mode/81803)

<div class="topic-metadata">

**Author:** [@MarioSouto](https://discourse.julialang.org/u/MarioSouto)\
**Replies:** 3\
**Last updated:** [May 28, 2022, 2:58am UTC](https://discourse.julialang.org/t/read-lp-file-into-jump-model-in-direct-mode/81803 "2022-05-28T02:58:34Z")

</div>

Is it possible to read a .lp file into a JuMP optimization model in direct mode? I’m not sure how to combine direct\_model and read\_from\_file to achieve this.

---

## [Efficiency for calling Julia from python and purely run Julia](https://discourse.julialang.org/t/efficiency-for-calling-julia-from-python-and-purely-run-julia/81484)

<div class="topic-metadata">

**Author:** [@Geositta](https://discourse.julialang.org/u/Geositta)\
**Replies:** 20\
**Last updated:** [May 28, 2022, 2:51am UTC](https://discourse.julialang.org/t/efficiency-for-calling-julia-from-python-and-purely-run-julia/81484 "2022-05-28T02:51:32Z")

</div>

I have the follow Julia code using BenchmarkTools, LoopVectorization, TensorOperations function test7(A) @tensor B\[i,j,k,l\] := 0.1\*A\[i,j,k,l\] + 0.2\*A\[j,i,k,l\] B end @btime test7(A) setup=(n=30; A=rand(Flo…

---

## [Is it possible to see performant string processing without sacrificing ease of use in Julia one day?](https://discourse.julialang.org/t/is-it-possible-to-see-performant-string-processing-without-sacrificing-ease-of-use-in-julia-one-day/81698)

<div class="topic-metadata">

**Author:** [@ReneganRonin](https://discourse.julialang.org/u/ReneganRonin)\
**Replies:** 7\
**Last updated:** [May 28, 2022, 2:46am UTC](https://discourse.julialang.org/t/is-it-possible-to-see-performant-string-processing-without-sacrificing-ease-of-use-in-julia-one-day/81698 "2022-05-28T02:46:07Z")

</div>

I have heard a lot that string performance in Julia is bad. So is it possible to see performant string processing without sacrificing ease of use in Julia one day?

---

## [Weird behavior with "map" function](https://discourse.julialang.org/t/weird-behavior-with-map-function/81816)

<div class="topic-metadata">

**Author:** [@lancejnelson](https://discourse.julialang.org/u/lancejnelson)\
**Replies:** 5\
**Last updated:** [May 28, 2022, 2:03am UTC](https://discourse.julialang.org/t/weird-behavior-with-map-function/81816 "2022-05-28T02:03:53Z")

</div>

Simple example: a = \[5.4,2.7,8\] b = \[5.3,2.1,"Jump"\] typeof(a) # Vector{Float64} typeof(b) # Vector{Any} just as expected. Now try using map function: map(typeof,\[a,b\]) produces this: 2-element Vector{DataType}…

---

## [Using HSL library for IPOPT in PowerModels.jl](https://discourse.julialang.org/t/using-hsl-library-for-ipopt-in-powermodels-jl/81796)

<div class="topic-metadata">

**Author:** [@aaldik](https://discourse.julialang.org/u/aaldik)\
**Replies:** 4\
**Last updated:** [May 27, 2022, 10:26pm UTC](https://discourse.julialang.org/t/using-hsl-library-for-ipopt-in-powermodels-jl/81796 "2022-05-27T22:26:04Z")

</div>

Hello I would like to ask how to use the HSL library with the solver IPOPT that is used in the library PowerModels.jl.

---

## [Simple conversion from Time to Period?](https://discourse.julialang.org/t/simple-conversion-from-time-to-period/81781)

<div class="topic-metadata">

**Author:** [@taotree](https://discourse.julialang.org/u/taotree)\
**Replies:** 10\
**Last updated:** [May 27, 2022, 10:01pm UTC](https://discourse.julialang.org/t/simple-conversion-from-time-to-period/81781 "2022-05-27T22:01:23Z")

</div>

I could do Time(12).instant, but that is probably not good practice. Doing Time(12) - Time(0) seems odd. Is there some proper way to convert Time to Period? One thing that motivates this question is that I want to calcu…

---

## [Plots.jl - Strings as xticks](https://discourse.julialang.org/t/plots-jl-strings-as-xticks/20745)

<div class="topic-metadata">

**Author:** [@mariok90](https://discourse.julialang.org/u/mariok90)\
**Replies:** 5\
**Last updated:** [May 27, 2022, 8:45pm UTC](https://discourse.julialang.org/t/plots-jl-strings-as-xticks/20745 "2022-05-27T20:45:59Z")

</div>

I want to replace the xticks with strings. How can I do that? When I run : using Plots xticks = \["$i" for i in 1:10\] plot(rand(10), xticks=xticks) I get an error: Julia Client – Internal Error MethodError: no method …

---

## [How does Vector{Int64}(undef, 20) differ in a multi-threaded environment?](https://discourse.julialang.org/t/how-does-vector-int64-undef-20-differ-in-a-multi-threaded-environment/81802)

<div class="topic-metadata">

**Author:** [@finb](https://discourse.julialang.org/u/finb)\
**Replies:** 4\
**Last updated:** [May 27, 2022, 8:45pm UTC](https://discourse.julialang.org/t/how-does-vector-int64-undef-20-differ-in-a-multi-threaded-environment/81802 "2022-05-27T20:45:50Z")

</div>

I’m running a program that allocates an array of 20 integers, which I want to be initialized with zeros. So to start off with, I did this: myfunc(Vector{Int64}(undef, 20)) This worked as the array would be filled with …

---

## [Survey of software usage for control](https://discourse.julialang.org/t/survey-of-software-usage-for-control/81782)

<div class="topic-metadata">

**Author:** [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)\
**Replies:** 2\
**Last updated:** [May 27, 2022, 8:38pm UTC](https://discourse.julialang.org/t/survey-of-software-usage-for-control/81782 "2022-05-27T20:38:36Z")

</div>

In order to understand how people in the Julia community (and outside) make use of software for control-systems analysis and design, I’ve put together a little survey. Answers to this survey will help us improve upon and…

---

## [Abstract DataFrame not iterable?](https://discourse.julialang.org/t/abstract-dataframe-not-iterable/81799)

<div class="topic-metadata">

**Author:** [@ctrebbau](https://discourse.julialang.org/u/ctrebbau)\
**Replies:** 4\
**Last updated:** [May 27, 2022, 8:14pm UTC](https://discourse.julialang.org/t/abstract-dataframe-not-iterable/81799 "2022-05-27T20:14:53Z")

</div>

Hi there! I have data like so which I then combine according to the number of observations on each group like so Finally I join the new feature with my main df: The problem is when I wrap around function to t…

---

## [Check that every subtype has a method defined](https://discourse.julialang.org/t/check-that-every-subtype-has-a-method-defined/81811)

<div class="topic-metadata">

**Author:** [@Satvik](https://discourse.julialang.org/u/Satvik)\
**Replies:** 0\
**Last updated:** [May 27, 2022, 7:26pm UTC](https://discourse.julialang.org/t/check-that-every-subtype-has-a-method-defined/81811 "2022-05-27T19:26:12Z")

</div>

Say I have an abstract type with some structs, and I want to make sure some method is defined on every subtype. For example: abstract type Shape end struct Square \<: Shape length::Float64 end struct Circle \<: Shape…

---

## [What is the cleanest/best way to implement dynamic loading of Julia code?](https://discourse.julialang.org/t/what-is-the-cleanest-best-way-to-implement-dynamic-loading-of-julia-code/81579)

<div class="topic-metadata">

**Author:** [@Euhan](https://discourse.julialang.org/u/Euhan)\
**Replies:** 13\
**Last updated:** [May 27, 2022, 7:04pm UTC](https://discourse.julialang.org/t/what-is-the-cleanest-best-way-to-implement-dynamic-loading-of-julia-code/81579 "2022-05-27T19:04:15Z")

</div>

I am writing here to ask for advice on how to achieve loading of Julia code during runtime. This is not a question on how exactly any particular mechanism works but rather I ask for a more high-level advice before commit…

---

## [Offset array package with offsets in the type?](https://discourse.julialang.org/t/offset-array-package-with-offsets-in-the-type/81772)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 12\
**Last updated:** [May 27, 2022, 6:43pm UTC](https://discourse.julialang.org/t/offset-array-package-with-offsets-in-the-type/81772 "2022-05-27T18:43:45Z")

</div>

I’m a bit disappointed to realize that in OffsetArrays the offsets are a struct field instead of a type parameter. Do any alternative packages exist?

---

## [Importing package into Main conflicts with an existing identifier](https://discourse.julialang.org/t/importing-package-into-main-conflicts-with-an-existing-identifier/49804)

<div class="topic-metadata">

**Author:** [@Aje12](https://discourse.julialang.org/u/Aje12)\
**Replies:** 24\
**Last updated:** [May 27, 2022, 6:11pm UTC](https://discourse.julialang.org/t/importing-package-into-main-conflicts-with-an-existing-identifier/49804 "2022-05-27T18:11:03Z")

</div>

Hi all, When trying the code below I get the error “importing HV04 into Main conflicts with an existing identifier”. Is there a way to resolve this? I’m quite new to Julia so could be making rookie errors. When I resta…

---

## [Problems with Optimising Function](https://discourse.julialang.org/t/problems-with-optimising-function/81601)

<div class="topic-metadata">

**Author:** [@mauri5566](https://discourse.julialang.org/u/mauri5566)\
**Replies:** 2\
**Last updated:** [May 27, 2022, 6:05pm UTC](https://discourse.julialang.org/t/problems-with-optimising-function/81601 "2022-05-27T18:05:15Z")

</div>

I’m having a tough time optimising and parallelising this function that executes a simplex extrusion (solid modeling). Anything to make it faster would be great, even a couple macros. function extrudeSimplicial(model::L…

---

## [Question about Animation?](https://discourse.julialang.org/t/question-about-animation/81795)

<div class="topic-metadata">

**Author:** [@Raymond](https://discourse.julialang.org/u/Raymond)\
**Replies:** 5\
**Last updated:** [May 27, 2022, 5:37pm UTC](https://discourse.julialang.org/t/question-about-animation/81795 "2022-05-27T17:37:49Z")

</div>

Dear all, I have set the color of bar to red ,but I always get the color of grey. What’s wrong with this problem? using DataFrames using CSV using Plots using PlotThemes df = DataFrame(CSV.File("gdp.csv", header=true)…

---

## [My ImmutableDict Changes Its Values](https://discourse.julialang.org/t/my-immutabledict-changes-its-values/81793)

<div class="topic-metadata">

**Author:** [@dburch](https://discourse.julialang.org/u/dburch)\
**Replies:** 1\
**Last updated:** [May 27, 2022, 3:39pm UTC](https://discourse.julialang.org/t/my-immutabledict-changes-its-values/81793 "2022-05-27T15:39:23Z")

</div>

Is this correct? When I change some of the values in the last variable used to assign a key-val pair to the ImmutableDict the values in the immutable dictionary are changing. Is this a bug or correct behavior? Is so, the…

---

## [Why is the array version allocating, whereas the tuple version is not?](https://discourse.julialang.org/t/why-is-the-array-version-allocating-whereas-the-tuple-version-is-not/81374)

<div class="topic-metadata">

**Author:** [@navdeeprana](https://discourse.julialang.org/u/navdeeprana)\
**Replies:** 6\
**Last updated:** [May 27, 2022, 3:08pm UTC](https://discourse.julialang.org/t/why-is-the-array-version-allocating-whereas-the-tuple-version-is-not/81374 "2022-05-27T15:08:21Z")

</div>

Consider the following two functions with the following difference: In test1, Iterators.product is called with a Tuple... and in test2, it is called with a Vector.... Benchmarking shows that test1 does not allocate any…

---

## [Plotting 2\*N array giving a name to each point](https://discourse.julialang.org/t/plotting-2-n-array-giving-a-name-to-each-point/81774)

<div class="topic-metadata">

**Author:** [@Zerosum](https://discourse.julialang.org/u/Zerosum)\
**Replies:** 7\
**Last updated:** [May 27, 2022, 2:12pm UTC](https://discourse.julialang.org/t/plotting-2-n-array-giving-a-name-to-each-point/81774 "2022-05-27T14:12:41Z")

</div>

I think this is an extremely simple question, but I just can’t really understand how the plot function reads my inputs. For instance, I want to plot two points with scatter: (1,2) and (2,3) in a two-dimension vector spa…

---

## [Pardiso library was not loaded?](https://discourse.julialang.org/t/pardiso-library-was-not-loaded/81392)

<div class="topic-metadata">

**Author:** [@Amro](https://discourse.julialang.org/u/Amro)\
**Replies:** 8\
**Last updated:** [May 27, 2022, 1:33pm UTC](https://discourse.julialang.org/t/pardiso-library-was-not-loaded/81392 "2022-05-27T13:33:14Z")

</div>

I have installed MKL, MKLSparse, Pardiso. However, when I write PardisoSolver(), it gives error. I did not know how to install a working PARDISO library. Can you please guide me? \>\> \] status MKL v0.5.0 MKLSparse v1.1.0…

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

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