# Latest

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

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

**Page:** 602

---

## [Revise with include chain](https://discourse.julialang.org/t/revise-with-include-chain/103684)

<div class="topic-metadata">

**Author:** [@Leibniz](https://discourse.julialang.org/u/Leibniz)\
**Replies:** 6\
**Last updated:** [September 9, 2023, 11:20pm UTC](https://discourse.julialang.org/t/revise-with-include-chain/103684 "2023-09-09T23:20:16Z")

</div>

Hi guys, how do I make Revise work properly here? File1: using Revise includet("testrevise1.jl") using .testrevise1 func() File “testrevise1.jl”: module testrevise1 export func include("testrevise2.jl") end F…

---

## [Examples of FINUFFT?](https://discourse.julialang.org/t/examples-of-finufft/103708)

<div class="topic-metadata">

**Author:** [@erny123](https://discourse.julialang.org/u/erny123)\
**Replies:** 4\
**Last updated:** [September 9, 2023, 9:51pm UTC](https://discourse.julialang.org/t/examples-of-finufft/103708 "2023-09-09T21:51:16Z")

</div>

I’m trying to learn some basic Non-Uniform FFT. I want to see if I can get a frequency spectrum of a laser pulse with a NUFFT type 1 using the FINUFFT.jl library. Here’s the example: using FFTW using FINUFFT c = 2.99…

---

## [NonlinearSolve.jl and Optimization.jl conflict on install](https://discourse.julialang.org/t/nonlinearsolve-jl-and-optimization-jl-conflict-on-install/103707)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 1\
**Last updated:** [September 9, 2023, 7:57pm UTC](https://discourse.julialang.org/t/nonlinearsolve-jl-and-optimization-jl-conflict-on-install/103707 "2023-09-09T19:57:14Z")

</div>

Tried on an Mac M1 and on Windows, also on (initially) empty package. Whatever of these two I install first, on installation of the second one I get error like this: (OptimizationInd) pkg\> add NonlinearSolve Resolvin…

---

## [Phase field modeling](https://discourse.julialang.org/t/phase-field-modeling/103706)

<div class="topic-metadata">

**Author:** [@mary](https://discourse.julialang.org/u/mary)\
**Replies:** 0\
**Last updated:** [September 9, 2023, 7:01pm UTC](https://discourse.julialang.org/t/phase-field-modeling/103706 "2023-09-09T19:01:04Z")

</div>

Hi everyone. I am doing a phase field modeling for fracture in julia using gridap. I have done two different method:1- is the phase field modeling by applying displacement on a boundary incrementally which works. 2- i am…

---

## [Filtering Data Made Easy: Tips and Tricks in Julia](https://discourse.julialang.org/t/filtering-data-made-easy-tips-and-tricks-in-julia/103690)

<div class="topic-metadata">

**Author:** [@VinodV](https://discourse.julialang.org/u/VinodV)\
**Replies:** 7\
**Last updated:** [September 9, 2023, 2:33pm UTC](https://discourse.julialang.org/t/filtering-data-made-easy-tips-and-tricks-in-julia/103690 "2023-09-09T14:33:01Z")

</div>

I have published a post here : Filtering Data Made Easy: Tips and Tricks in Julia Can you suggest additional/efficient methods for filtering lists/tuples?

---

## [How to plot 3-dimensional "IntervalBox()"?](https://discourse.julialang.org/t/how-to-plot-3-dimensional-intervalbox/103698)

<div class="topic-metadata">

**Author:** [@Ashu](https://discourse.julialang.org/u/Ashu)\
**Replies:** 1\
**Last updated:** [September 9, 2023, 2:24pm UTC](https://discourse.julialang.org/t/how-to-plot-3-dimensional-intervalbox/103698 "2023-09-09T14:24:52Z")

</div>

Hello, Let’s say there is a box = IntervalBox(1..2, 2..3, 3..4). How can I plot it in Pluto.jl notebook? I am using IntervalArithmetic.jl and Plots.jl packages. The code block is not working for me. begin box = Inte…

---

## [How to initialize an array of structs](https://discourse.julialang.org/t/how-to-initialize-an-array-of-structs/83674)

<div class="topic-metadata">

**Author:** [@fft](https://discourse.julialang.org/u/fft)\
**Replies:** 9\
**Last updated:** [September 9, 2023, 12:47pm UTC](https://discourse.julialang.org/t/how-to-initialize-an-array-of-structs/83674 "2023-09-09T12:47:01Z")

</div>

I want to create an array of structs like shown below mutable struct mystruct a::Float32 b::Float32 c::UInt32 end mystruct() = mystruct(0,0,0) size = 3 a = Array{mystruct, 3}(undef, size, size, size) fo…

---

## [Multiple Binaries from one Project](https://discourse.julialang.org/t/multiple-binaries-from-one-project/103701)

<div class="topic-metadata">

**Author:** [@ShalokShalom](https://discourse.julialang.org/u/ShalokShalom)\
**Replies:** 0\
**Last updated:** [September 9, 2023, 12:16pm UTC](https://discourse.julialang.org/t/multiple-binaries-from-one-project/103701 "2023-09-09T12:16:34Z")

</div>

Hi, lovely community I am on the journey to port one of my projects to Julia, and I like to export several binaries under one umbrella. The background of this is, so that you can better understand, that my fish shell d…

---

## [Cached data and thread safety](https://discourse.julialang.org/t/cached-data-and-thread-safety/103665)

<div class="topic-metadata">

**Author:** [@Pavel\_Kalouguine](https://discourse.julialang.org/u/Pavel_Kalouguine)\
**Replies:** 4\
**Last updated:** [September 9, 2023, 10:37am UTC](https://discourse.julialang.org/t/cached-data-and-thread-safety/103665 "2023-09-09T10:37:16Z")

</div>

Consider the situation where numerous lightweight objects depend all on a heavy-weight context (something akin to the Flyweight pattern in OOP). Here’s how it looks like in my projects: The heavy-weight context: mutabl…

---

## [Awesome Julia: a list of anything-Julia worth of seeing](https://discourse.julialang.org/t/awesome-julia-a-list-of-anything-julia-worth-of-seeing/103371)

<div class="topic-metadata">

**Author:** [@vituri](https://discourse.julialang.org/u/vituri)\
**Replies:** 17\
**Last updated:** [September 9, 2023, 10:28am UTC](https://discourse.julialang.org/t/awesome-julia-a-list-of-anything-julia-worth-of-seeing/103371 "2023-09-09T10:28:00Z")

</div>

Inspired by this really good list of shiny extensions and this gigantic list of machine learning packages in several languages, I created a small repo to host any kind of suggestion you have. For example: what are the GU…

---

## [Package manager error "but no such entry exists in the manifest"](https://discourse.julialang.org/t/package-manager-error-but-no-such-entry-exists-in-the-manifest/103695)

<div class="topic-metadata">

**Author:** [@bgctw](https://discourse.julialang.org/u/bgctw)\
**Replies:** 8\
**Last updated:** [September 9, 2023, 10:05am UTC](https://discourse.julialang.org/t/package-manager-error-but-no-such-entry-exists-in-the-manifest/103695 "2023-09-09T10:05:00Z")

</div>

On Julia version 1.9.2 on a Linux system (cluster with a module system) the package manager gets confused even with deleting Manifest.toml. MWE \]activate --temp add SpecialFunctions results in persistent error (even o…

---

## [Calculation of Hessian of a loss function w.r.t. dense layer weight matrices](https://discourse.julialang.org/t/calculation-of-hessian-of-a-loss-function-w-r-t-dense-layer-weight-matrices/103697)

<div class="topic-metadata">

**Author:** [@Harsh\_Choudhary](https://discourse.julialang.org/u/Harsh_Choudhary)\
**Replies:** 0\
**Last updated:** [September 9, 2023, 7:23am UTC](https://discourse.julialang.org/t/calculation-of-hessian-of-a-loss-function-w-r-t-dense-layer-weight-matrices/103697 "2023-09-09T07:23:51Z")

</div>

Hi, I am trying to train a dummy Neural Net which is given as: y = transpose(W1)sigmoid(W2x) where W1 and W2 are 10x1 and x is a scalar input. I am using second-order optimization and for that purpose, I need to calculat…

---

## [Making Revise the default?](https://discourse.julialang.org/t/making-revise-the-default/103506)

<div class="topic-metadata">

**Author:** [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Replies:** 31\
**Last updated:** [September 9, 2023, 6:40am UTC](https://discourse.julialang.org/t/making-revise-the-default/103506 "2023-09-09T06:40:28Z")

</div>

Well this has gone bizarre :sweat\_smile:. Maybe the preconceived notion that Revise is difficult blocks the idea that it actually only requires a single character change, i.e. change include to includet, and now it a…

---

## [Make my own alias infix operator](https://discourse.julialang.org/t/make-my-own-alias-infix-operator/103631)

<div class="topic-metadata">

**Author:** [@ShalokShalom](https://discourse.julialang.org/u/ShalokShalom)\
**Replies:** 23\
**Last updated:** [September 9, 2023, 4:57am UTC](https://discourse.julialang.org/t/make-my-own-alias-infix-operator/103631 "2023-09-09T04:57:22Z")

</div>

Hi there :slight\_smile: I see that custom infix operators are a long-standing object to discussion, and I like to ask if there is a way today, how I can alias ∘ to \>\> As an explanation, my VSCode wont tab complete the …

---

## [Generalized matrix\*vector operation](https://discourse.julialang.org/t/generalized-matrix-vector-operation/103683)

<div class="topic-metadata">

**Author:** [@SantiagoOrtiz](https://discourse.julialang.org/u/SantiagoOrtiz)\
**Replies:** 1\
**Last updated:** [September 9, 2023, 1:32am UTC](https://discourse.julialang.org/t/generalized-matrix-vector-operation/103683 "2023-09-09T01:32:10Z")

</div>

Hi everyone, Take the following matrix and vector: vij = \[-2 -2 -2; 1 0 0; 0 1 0; 0 0 1; 1 1 1\] xj = \[0.1 0.15 0.1\] This operation will work, resulting in a vector (as expected): vij\*xj' However, if the matrix is re…

---

## [Ideas for the Julia community to improve its communication/promotion](https://discourse.julialang.org/t/ideas-for-the-julia-community-to-improve-its-communication-promotion/103646)

<div class="topic-metadata">

**Author:** [@xiaoxi](https://discourse.julialang.org/u/xiaoxi)\
**Replies:** 5\
**Last updated:** [September 8, 2023, 11:25pm UTC](https://discourse.julialang.org/t/ideas-for-the-julia-community-to-improve-its-communication-promotion/103646 "2023-09-08T23:25:47Z")

</div>

According to the latest Stack Overflow survey, people who use Julia really like Julia, but few people want to use it. So, while many are working on highly requested language features, improving the tools and enriching th…

---

## [Type Instability when composing functor and function](https://discourse.julialang.org/t/type-instability-when-composing-functor-and-function/103680)

<div class="topic-metadata">

**Author:** [@elenev](https://discourse.julialang.org/u/elenev)\
**Replies:** 3\
**Last updated:** [September 8, 2023, 9:46pm UTC](https://discourse.julialang.org/t/type-instability-when-composing-functor-and-function/103680 "2023-09-08T21:46:33Z")

</div>

I am training a neural net using Flux.jl. I have a custom function that normalizes inputs before evaluating the model: function normalize(state) state\_min = \[-1.2f0, -0.07f0\] state\_max = \[0.6f0, 0.07f0\] norm…

---

## [Calling C function with pointer of C strings works once but not twice](https://discourse.julialang.org/t/calling-c-function-with-pointer-of-c-strings-works-once-but-not-twice/103632)

<div class="topic-metadata">

**Author:** [@dforero0896](https://discourse.julialang.org/u/dforero0896)\
**Replies:** 11\
**Last updated:** [September 8, 2023, 8:06pm UTC](https://discourse.julialang.org/t/calling-c-function-with-pointer-of-c-strings-works-once-but-not-twice/103632 "2023-09-08T20:06:14Z")

</div>

Hi, I’ve written a wrapper to a C library (GitHub - dforero0896/libpowspec: Library based on Cheng Zhao's powspec code) in here GitHub - dforero0896/Powspec.jl: Julia bindings to Cheng Zhao's powspec C code. . While my i…

---

## [Improve startup time of REPL](https://discourse.julialang.org/t/improve-startup-time-of-repl/103675)

<div class="topic-metadata">

**Author:** [@ShalokShalom](https://discourse.julialang.org/u/ShalokShalom)\
**Replies:** 4\
**Last updated:** [September 8, 2023, 5:42pm UTC](https://discourse.julialang.org/t/improve-startup-time-of-repl/103675 "2023-09-08T17:42:39Z")

</div>

Somebody shared some way to improve the startup time of the REPL on Zulip and JuliaNotes. The person notes, to have brought down the startup time from 2.5 seconds to 0.1 seconds. The implementation in JuliaNotes is act…

---

## [Proposal: ability to add entire organizations (ecosystems) with a single command](https://discourse.julialang.org/t/proposal-ability-to-add-entire-organizations-ecosystems-with-a-single-command/103531)

<div class="topic-metadata">

**Author:** [@GregVernon](https://discourse.julialang.org/u/GregVernon)\
**Replies:** 20\
**Last updated:** [September 8, 2023, 5:30pm UTC](https://discourse.julialang.org/t/proposal-ability-to-add-entire-organizations-ecosystems-with-a-single-command/103531 "2023-09-08T17:30:16Z")

</div>

As I mentioned in one of my comments over in the “What steps” megathread, it would be nice if there were simple means of adding all “production-level” packages from an organization such as JuliaMath. The reasoning for t…

---

## [When do type constructors \*not\* return an instance of the type?](https://discourse.julialang.org/t/when-do-type-constructors-not-return-an-instance-of-the-type/103672)

<div class="topic-metadata">

**Author:** [@Benny](https://discourse.julialang.org/u/Benny)\
**Replies:** 7\
**Last updated:** [September 8, 2023, 3:33pm UTC](https://discourse.julialang.org/t/when-do-type-constructors-not-return-an-instance-of-the-type/103672 "2023-09-08T15:33:49Z")

</div>

The call T(x) is type-unstable if x is type-unstable, requiring an additional type assertion T(x)::T to be inferable. My understanding of the reason is T(x)'s return value isn’t required to be an instance of T. But I can…

---

## [Is periodic boundary conditions posible in NeuralPDE.jl?](https://discourse.julialang.org/t/is-periodic-boundary-conditions-posible-in-neuralpde-jl/103674)

<div class="topic-metadata">

**Author:** [@Knud\_Sorensen](https://discourse.julialang.org/u/Knud_Sorensen)\
**Replies:** 1\
**Last updated:** [September 8, 2023, 3:24pm UTC](https://discourse.julialang.org/t/is-periodic-boundary-conditions-posible-in-neuralpde-jl/103674 "2023-09-08T15:24:29Z")

</div>

Hi. With NeuralPDE i have this conditions. L=10 bcs0 = \[G(x,y,0)~0, G(-L,y,z)~G(L,y,z), G(x,-L,z)~G(x,L,z)\] I get loss like 0 loss: 67.44680398772921 pde: \[0.8533529399741632, 1.3552322555600897, 20.41989735134126\] b…

---

## [Matching for interpolation](https://discourse.julialang.org/t/matching-for-interpolation/103636)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 4\
**Last updated:** [September 8, 2023, 2:49pm UTC](https://discourse.julialang.org/t/matching-for-interpolation/103636 "2023-09-08T14:49:24Z")

</div>

Is there a matching package that can do something like V = \[1.1, 2, 4.8, 6, 9, 11\] x = 5.1 @match begin V\[i\] ≤ x \< V\[i+1\] =\> #some interp function of V\[i\] and V\[i+i\]

---

## [Parse Float32 string](https://discourse.julialang.org/t/parse-float32-string/103667)

<div class="topic-metadata">

**Author:** [@johnbb](https://discourse.julialang.org/u/johnbb)\
**Replies:** 9\
**Last updated:** [September 8, 2023, 2:46pm UTC](https://discourse.julialang.org/t/parse-float32-string/103667 "2023-09-08T14:46:05Z")

</div>

How can I parse strings like “1.23f-4” to Float32? julia\> parse(Float64, "1.23e-4") 0.000123 julia\> parse(Float32, "1.23f-4") ERROR: ArgumentError: cannot parse "1.23f-4" as Float32 Stacktrace: \[1\] \_parse\_failure(T::T…

---

## [Use exception: MethodError: Cannot \`convert\` an object of type Vector{String} to an object of type String](https://discourse.julialang.org/t/use-exception-methoderror-cannot-convert-an-object-of-type-vector-string-to-an-object-of-type-string/103669)

<div class="topic-metadata">

**Author:** [@Leibniz](https://discourse.julialang.org/u/Leibniz)\
**Replies:** 1\
**Last updated:** [September 8, 2023, 2:16pm UTC](https://discourse.julialang.org/t/use-exception-methoderror-cannot-convert-an-object-of-type-vector-string-to-an-object-of-type-string/103669 "2023-09-08T14:16:51Z")

</div>

I try to use the DimensionMismatch excpetion https://docs.julialang.org/en/v1/base/base/#Base.DimensionMismatch throw(DimensionMismatch(\["\\n some message \\n"\])) gives MethodError: Cannot convert an object of type Vec…

---

## [Best practice: develop and adjust own package / precompilation](https://discourse.julialang.org/t/best-practice-develop-and-adjust-own-package-precompilation/103656)

<div class="topic-metadata">

**Author:** [@Lukas\_Hebing](https://discourse.julialang.org/u/Lukas_Hebing)\
**Replies:** 7\
**Last updated:** [September 8, 2023, 1:19pm UTC](https://discourse.julialang.org/t/best-practice-develop-and-adjust-own-package-precompilation/103656 "2023-09-08T13:19:03Z")

</div>

A am currently using Julia for a project, which I splitted into two different packages. Each of these package has it\`s own Manifest/Project files. There is an “application” section, in which I use the functions from the…

---

## [How to extract first arguments from dictionaries in Julia?](https://discourse.julialang.org/t/how-to-extract-first-arguments-from-dictionaries-in-julia/103653)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 3\
**Last updated:** [September 8, 2023, 1:09pm UTC](https://discourse.julialang.org/t/how-to-extract-first-arguments-from-dictionaries-in-julia/103653 "2023-09-08T13:09:07Z")

</div>

Hello, this is a basic question but I am not familiar with dictionaries, preferring arrays. I have set a dictionary as julia\> D = Dict("Field\_1"=\>\[1,2,3,4,5\], "Field\_2"=\>\["a", "b", "c", "d", "e"\]) Dict{Stri…

---

## [Custom train function in SimpleChains.jl](https://discourse.julialang.org/t/custom-train-function-in-simplechains-jl/103663)

<div class="topic-metadata">

**Author:** [@Luca\_Pepe\_Sciarria](https://discourse.julialang.org/u/Luca_Pepe_Sciarria)\
**Replies:** 0\
**Last updated:** [September 8, 2023, 12:30pm UTC](https://discourse.julialang.org/t/custom-train-function-in-simplechains-jl/103663 "2023-09-08T12:30:31Z")

</div>

Hi SimpleChains team! I’m currently using SimpleChains and I want to implement my own train function based on the available template in Flux: for d in training\_set # Our super logic gs = gradient(params(m)) do …

---

## [Mutating function plot in Makie, and plotting 2 data sets on the same figure](https://discourse.julialang.org/t/mutating-function-plot-in-makie-and-plotting-2-data-sets-on-the-same-figure/103655)

<div class="topic-metadata">

**Author:** [@Axze-rgb](https://discourse.julialang.org/u/Axze-rgb)\
**Replies:** 6\
**Last updated:** [September 8, 2023, 11:46am UTC](https://discourse.julialang.org/t/mutating-function-plot-in-makie-and-plotting-2-data-sets-on-the-same-figure/103655 "2023-09-08T11:46:05Z")

</div>

Hello, I am trying to plot 2 histograms in the same figure using Makie, f, ax1, h1 = hist(df1\[:, “AF”\]) h2 = hist!(ax1, df2\[:, “AF”\]) f but TypeError: non-boolean (Missing) used in boolean context However, thi…

---

## [How to add value labels on top of contours in Makie?](https://discourse.julialang.org/t/how-to-add-value-labels-on-top-of-contours-in-makie/59242)

<div class="topic-metadata">

**Author:** [@aramirezreyes](https://discourse.julialang.org/u/aramirezreyes)\
**Replies:** 10\
**Last updated:** [September 8, 2023, 11:18am UTC](https://discourse.julialang.org/t/how-to-add-value-labels-on-top-of-contours-in-makie/59242 "2023-09-08T11:18:38Z")

</div>

The documentation example shows that we can create a contour plot with: using CairoMakie f = Figure(resolution = (800, 600)) Axis(f\[1, 1\]) xs = LinRange(0, 10, 100) ys = LinRange(0, 15, 100) zs = \[cos(x) \* sin(y) for …

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

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