# Latest

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

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

**Page:** 487

---

## [SIMD.jl/shufflevector without support for SIMD vector as mask?](https://discourse.julialang.org/t/simd-jl-shufflevector-without-support-for-simd-vector-as-mask/110079)

<div class="topic-metadata">

**Author:** [@Julia2001](https://discourse.julialang.org/u/Julia2001)\
**Replies:** 2\
**Last updated:** [February 11, 2024, 9:19pm UTC](https://discourse.julialang.org/t/simd-jl-shufflevector-without-support-for-simd-vector-as-mask/110079 "2024-02-11T21:19:03Z")

</div>

Hi! Could anybody explain a bit on why SIMD.jl/shufflevector does not accept a Vec{N, T} object as “mask” argument. Wouldn’t it be a natural choice to allow “mask” to be a SIMD vector? Is this an LLVM limitation? Is …

---

## [Why this specific package I created will not be added in a new PC?](https://discourse.julialang.org/t/why-this-specific-package-i-created-will-not-be-added-in-a-new-pc/110077)

<div class="topic-metadata">

**Author:** [@Soldalma](https://discourse.julialang.org/u/Soldalma)\
**Replies:** 3\
**Last updated:** [February 11, 2024, 8:50pm UTC](https://discourse.julialang.org/t/why-this-specific-package-i-created-will-not-be-added-in-a-new-pc/110077 "2024-02-11T20:50:20Z")

</div>

I got a fast new PC and was excited about developing Julia with it. I managed to install the standard packages and a couple of my own packages. One package I developed, called Utils.jl will not load, with the message bel…

---

## [Makie diffeq recipes](https://discourse.julialang.org/t/makie-diffeq-recipes/110078)

<div class="topic-metadata">

**Author:** [@henry2004y](https://discourse.julialang.org/u/henry2004y)\
**Replies:** 0\
**Last updated:** [February 11, 2024, 7:57pm UTC](https://discourse.julialang.org/t/makie-diffeq-recipes/110078 "2024-02-11T19:57:57Z")

</div>

Recently a new Makie recipe for DifferentialEquations was added using PlotSpec. However, I noticed that at least two things are not working: Line attributes are ignored. For example, linestyle and linewidth are always …

---

## [Nanmean options?](https://discourse.julialang.org/t/nanmean-options/4994)

<div class="topic-metadata">

**Author:** [@Daneel](https://discourse.julialang.org/u/Daneel)\
**Replies:** 17\
**Last updated:** [February 11, 2024, 6:50pm UTC](https://discourse.julialang.org/t/nanmean-options/4994 "2024-02-11T18:50:40Z")

</div>

Up until Julia 0.6 mean ignored NaN’s. What are the options for those of us that want a simple nanmean function? Somewhere I remember seeing an alternative function in Base but I haven’t been able to find it again. The…

---

## [MySQL Cursor](https://discourse.julialang.org/t/mysql-cursor/110075)

<div class="topic-metadata">

**Author:** [@Pino](https://discourse.julialang.org/u/Pino)\
**Replies:** 0\
**Last updated:** [February 11, 2024, 6:49pm UTC](https://discourse.julialang.org/t/mysql-cursor/110075 "2024-02-11T18:49:20Z")

</div>

Hi, I’m trying to loop through exsisting SQL tables to retrieve the balance at a certain report date. query\_data = "SELECT \`date\`, \`balance\` FROM $table\_name" # Execute the query data = DBInterface.execute(con…

---

## [Optimize code which uses KernelAbstractions.jl](https://discourse.julialang.org/t/optimize-code-which-uses-kernelabstractions-jl/110068)

<div class="topic-metadata">

**Author:** [@roflmaostc](https://discourse.julialang.org/u/roflmaostc)\
**Replies:** 1\
**Last updated:** [February 11, 2024, 5:29pm UTC](https://discourse.julialang.org/t/optimize-code-which-uses-kernelabstractions-jl/110068 "2024-02-11T17:29:57Z")

</div>

Hi, in RadonKA.jl I just launch the kernel with the following code: \[....\] kernel! = radon\_kernel!(backend) kernel!(sinogram::AbstractArray{T}, img, weights, in\_height, out\_height, angles, mid, rad…

---

## [Julia, MOJO, Rust in a Primeagen video](https://discourse.julialang.org/t/julia-mojo-rust-in-a-primeagen-video/110056)

<div class="topic-metadata">

**Author:** [@Dan](https://discourse.julialang.org/u/Dan)\
**Replies:** 4\
**Last updated:** [February 11, 2024, 4:24pm UTC](https://discourse.julialang.org/t/julia-mojo-rust-in-a-primeagen-video/110056 "2024-02-11T16:24:19Z")

</div>

Thanks to an astute commenter, Mojo still does PR for Julia

---

## [Julia crashes for larger PINNs?](https://discourse.julialang.org/t/julia-crashes-for-larger-pinns/109714)

<div class="topic-metadata">

**Author:** [@georgegito](https://discourse.julialang.org/u/georgegito)\
**Replies:** 6\
**Last updated:** [February 11, 2024, 3:49pm UTC](https://discourse.julialang.org/t/julia-crashes-for-larger-pinns/109714 "2024-02-11T15:49:27Z")

</div>

Hello, I am trying to train a PINN using NeuralPDE. I use the example of the documentation (Introduction to NeuralPDE for PDEs · NeuralPDE.jl) and when I try to increase the network size, the performance struggles and Ju…

---

## [Ongoing maintenance and support for DelaunayTriangulation.jl](https://discourse.julialang.org/t/ongoing-maintenance-and-support-for-delaunaytriangulation-jl/109635)

<div class="topic-metadata">

**Author:** [@mbauman](https://discourse.julialang.org/u/mbauman)\
**Replies:** 11\
**Last updated:** [February 11, 2024, 3:26pm UTC](https://discourse.julialang.org/t/ongoing-maintenance-and-support-for-delaunaytriangulation-jl/109635 "2024-02-11T15:26:14Z")

</div>

In the what aspects is Julia weak in thread, the topic of ongoing support for DelaunayTriangulation.jl was raised and prompted a good amount of subsequent discussion: We will probably pull this into SciML. I still need…

---

## [Help me optimize my special solution to save VTP (VTK) file?](https://discourse.julialang.org/t/help-me-optimize-my-special-solution-to-save-vtp-vtk-file/110064)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 1\
**Last updated:** [February 11, 2024, 2:39pm UTC](https://discourse.julialang.org/t/help-me-optimize-my-special-solution-to-save-vtp-vtk-file/110064 "2024-02-11T14:39:52Z")

</div>

Hello! Lately I’ve learned a lot from all of you guys on the forum on how to write performant code and reduce allocs/type instabilities, which has been really nice. I have a case where I want to save a lot of simulation…

---

## [\[ANN\] Announcing AutoPrettyPrinting.jl](https://discourse.julialang.org/t/ann-announcing-autoprettyprinting-jl/109410)

<div class="topic-metadata">

**Author:** [@curtd](https://discourse.julialang.org/u/curtd)\
**Replies:** 8\
**Last updated:** [February 11, 2024, 2:13pm UTC](https://discourse.julialang.org/t/ann-announcing-autoprettyprinting-jl/109410 "2024-02-11T14:13:14Z")

</div>

Hey everyone. I’m happy to announce AutoPrettyPrinting.jl v0.1, which makes generating data-dependent pretty printing code a (relative) breeze. This package makes use of the excellent PrettyPrinting.jl, along with some s…

---

## [Problem with GRU and LSTM Layers in Flux](https://discourse.julialang.org/t/problem-with-gru-and-lstm-layers-in-flux/110060)

<div class="topic-metadata">

**Author:** [@LucaGeminiani00](https://discourse.julialang.org/u/LucaGeminiani00)\
**Replies:** 0\
**Last updated:** [February 11, 2024, 11:14am UTC](https://discourse.julialang.org/t/problem-with-gru-and-lstm-layers-in-flux/110060 "2024-02-11T11:14:21Z")

</div>

I have built a Time series forecasting model in Flux.jl including an LSTM layer (the problem is the same also when I include a GRU layer). I am able to train the model without errors. However, when I try to run: model(va…

---

## [Error: SymbolicUtils.BasicSymbolic{Real}\[a, b, c, d\] are missing from the variable map](https://discourse.julialang.org/t/error-symbolicutils-basicsymbolic-real-a-b-c-d-are-missing-from-the-variable-map/110054)

<div class="topic-metadata">

**Author:** [@orebas](https://discourse.julialang.org/u/orebas)\
**Replies:** 1\
**Last updated:** [February 11, 2024, 8:37am UTC](https://discourse.julialang.org/t/error-symbolicutils-basicsymbolic-real-a-b-c-d-are-missing-from-the-variable-map/110054 "2024-02-11T08:37:01Z")

</div>

I believe this is the same error as from Missing from the variable map error Specifically, I have created a ModelingToolkit ODESystem, saved it into a variable, and passed that variable to a function. The below is an M…

---

## [Bug in Julia or in a package](https://discourse.julialang.org/t/bug-in-julia-or-in-a-package/110043)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 4\
**Last updated:** [February 11, 2024, 8:35am UTC](https://discourse.julialang.org/t/bug-in-julia-or-in-a-package/110043 "2024-02-11T08:35:16Z")

</div>

The following bug was closed with the comment it would be a Julia bug: I am not convinced that this is a bug in Julia, I think it is a bug in a package. What do you think?

---

## [CPLEX: CPXwritemipstarts without optimize!](https://discourse.julialang.org/t/cplex-cpxwritemipstarts-without-optimize/109973)

<div class="topic-metadata">

**Author:** [@remi-garcia](https://discourse.julialang.org/u/remi-garcia)\
**Replies:** 5\
**Last updated:** [February 11, 2024, 7:42am UTC](https://discourse.julialang.org/t/cplex-cpxwritemipstarts-without-optimize/109973 "2024-02-11T07:42:23Z")

</div>

Hi, I would like to be able to save a model and its warm start as the solver got them when calling optimize!. using JuMP using CPLEX m = Model(CPLEX.Optimizer); direct\_m = direct\_model(CPLEX.Optimizer()); @variable(m, …

---

## [Metalhead.UNet output array limit](https://discourse.julialang.org/t/metalhead-unet-output-array-limit/110029)

<div class="topic-metadata">

**Author:** [@cirobr](https://discourse.julialang.org/u/cirobr)\
**Replies:** 2\
**Last updated:** [February 10, 2024, 11:24pm UTC](https://discourse.julialang.org/t/metalhead-unet-output-array-limit/110029 "2024-02-10T23:24:01Z")

</div>

Cheers, Would like to confirm if the yhat array output of Metalhead.UNet model is limited to \[0:1\] elements. Apparently its upper bound is higher than 1. Model is instantiated as follows: backbone = Metalhead.backbon…

---

## [If I have a string such as, "Float64", can I convert it to the Julia DataType?](https://discourse.julialang.org/t/if-i-have-a-string-such-as-float64-can-i-convert-it-to-the-julia-datatype/110035)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 8\
**Last updated:** [February 10, 2024, 10:26pm UTC](https://discourse.julialang.org/t/if-i-have-a-string-such-as-float64-can-i-convert-it-to-the-julia-datatype/110035 "2024-02-10T22:26:40Z")

</div>

Basically, if I have my type written in a string format, can I convert it to the actual DataType inside of Julia? Kind regards

---

## [Random number generation](https://discourse.julialang.org/t/random-number-generation/110010)

<div class="topic-metadata">

**Author:** [@math\_opt](https://discourse.julialang.org/u/math_opt)\
**Replies:** 19\
**Last updated:** [February 10, 2024, 10:42pm UTC](https://discourse.julialang.org/t/random-number-generation/110010 "2024-02-10T22:42:48Z")

</div>

Why do I get different result when I run the rand command twice with the same seed in the Julia REPL? using Random using Distributions rng = MersenneTwister(1234) rand(rng) # outputs 0.5908446386657102 #run again ran…

---

## [JuMP new nonlinear interface: adding constraint programatically](https://discourse.julialang.org/t/jump-new-nonlinear-interface-adding-constraint-programatically/110041)

<div class="topic-metadata">

**Author:** [@franckgaga](https://discourse.julialang.org/u/franckgaga)\
**Replies:** 4\
**Last updated:** [February 10, 2024, 8:41pm UTC](https://discourse.julialang.org/t/jump-new-nonlinear-interface-adding-constraint-programatically/110041 "2024-02-10T20:41:15Z")

</div>

ModelPredictiveControl.jl is still using the legacy syntax for NLP, but I’m starting the migration right now. The nonlinear inequality constraints are currently added programmatically with (simplified for the purpose of …

---

## [How to remove edge lines when drawing a triangle mesh with Makie?](https://discourse.julialang.org/t/how-to-remove-edge-lines-when-drawing-a-triangle-mesh-with-makie/110044)

<div class="topic-metadata">

**Author:** [@Midez](https://discourse.julialang.org/u/Midez)\
**Replies:** 0\
**Last updated:** [February 10, 2024, 8:32pm UTC](https://discourse.julialang.org/t/how-to-remove-edge-lines-when-drawing-a-triangle-mesh-with-makie/110044 "2024-02-10T20:32:36Z")

</div>

Briefly if I run using CairoMakie, Makie, DelaunayTriangulation, GeometryBasics P = \[ (0.0,0.0),(2.0,1.0),(4.0,0.0), (6.0,2.0),(2.0,3.0),(3.0,4.0), (6.0,6.0),(0.0,6.0),(0.0,0.0) \] boundary\_nodes, points = convert\_bo…

---

## [Implementing semi-implicit Fourier spectral method](https://discourse.julialang.org/t/implementing-semi-implicit-fourier-spectral-method/109686)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 1\
**Last updated:** [February 10, 2024, 7:40pm UTC](https://discourse.julialang.org/t/implementing-semi-implicit-fourier-spectral-method/109686 "2024-02-10T19:40:44Z")

</div>

I’m trying to implement the semi-implicit Fourier spectral method described here. It is basically a fourth-order phase-field equation, the linear fourth order operator is treated implicitly and the nonlinear operator ter…

---

## [Online Documentation: improving navigation](https://discourse.julialang.org/t/online-documentation-improving-navigation/110037)

<div class="topic-metadata">

**Author:** [@JimCircadian](https://discourse.julialang.org/u/JimCircadian)\
**Replies:** 3\
**Last updated:** [February 10, 2024, 7:19pm UTC](https://discourse.julialang.org/t/online-documentation-improving-navigation/110037 "2024-02-10T19:19:16Z")

</div>

I imagine this might well have been discussed and / or considered, but as I find it a particular barrier to ease-of-learning with Julia (and am totally willing to contribute to change :wink:) I wanted to ask this obvious…

---

## [Behavior of \`fieldtypes\` applied to \`Tuple{...}\`](https://discourse.julialang.org/t/behavior-of-fieldtypes-applied-to-tuple/110030)

<div class="topic-metadata">

**Author:** [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Replies:** 2\
**Last updated:** [February 10, 2024, 6:42pm UTC](https://discourse.julialang.org/t/behavior-of-fieldtypes-applied-to-tuple/110030 "2024-02-10T18:42:50Z")

</div>

Here is the docstring for fieldtypes: fieldtypes(T::Type) The declared types of all fields in a composite DataType T as a tuple. Examples ≡≡≡≡≡≡≡≡≡≡ julia\> struct Foo x::Int64 y::String e…

---

## [How to add Juliaup to path?](https://discourse.julialang.org/t/how-to-add-juliaup-to-path/110005)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 6\
**Last updated:** [February 10, 2024, 6:35pm UTC](https://discourse.julialang.org/t/how-to-add-juliaup-to-path/110005 "2024-02-10T18:35:59Z")

</div>

Windows pc decided to suddenly cleanse some environment variables. How can I add it again? I tried reinstalling juliaup, nothing happened. Kind regards

---

## [Solve y'=y with neuralode](https://discourse.julialang.org/t/solve-y-y-with-neuralode/109993)

<div class="topic-metadata">

**Author:** [@ATR](https://discourse.julialang.org/u/ATR)\
**Replies:** 6\
**Last updated:** [February 10, 2024, 6:33pm UTC](https://discourse.julialang.org/t/solve-y-y-with-neuralode/109993 "2024-02-10T18:33:38Z")

</div>

Dear all, I am beginner in this topic and trying to solve simple y’=y (analytical solution: exp(t)) with y0=0 by modifying code on Neural Ordinary Differential Equations · DiffEqFlux.jl (sciml.ai), my code until now: be…

---

## [Error mySQL connect](https://discourse.julialang.org/t/error-mysql-connect/110031)

<div class="topic-metadata">

**Author:** [@Pino](https://discourse.julialang.org/u/Pino)\
**Replies:** 1\
**Last updated:** [February 10, 2024, 4:42pm UTC](https://discourse.julialang.org/t/error-mysql-connect/110031 "2024-02-10T16:42:14Z")

</div>

I’m using Julia 1.8.5 and I’m trying to operate on a mysql database. When I try to use the below string I get a UndefVarError:mysql\_connect. I wonder if there’s a compatibility problem because the code I’m using seems l…

---

## [I am unable to run a simple distributed.jl code on my slurm cluster](https://discourse.julialang.org/t/i-am-unable-to-run-a-simple-distributed-jl-code-on-my-slurm-cluster/109892)

<div class="topic-metadata">

**Author:** [@Shashank](https://discourse.julialang.org/u/Shashank)\
**Replies:** 11\
**Last updated:** [February 10, 2024, 4:30pm UTC](https://discourse.julialang.org/t/i-am-unable-to-run-a-simple-distributed-jl-code-on-my-slurm-cluster/109892 "2024-02-10T16:30:36Z")

</div>

I am trying to run a simple file that is pasted below: using Distributed addprocs(4) println("Number of processes: ", nprocs()) println("Number of workers: ", nworkers()) @sync @distributed for i in 1:4 sleep(1) …

---

## [Pattern recognition](https://discourse.julialang.org/t/pattern-recognition/110028)

<div class="topic-metadata">

**Author:** [@Andrew\_Palfreyman](https://discourse.julialang.org/u/Andrew_Palfreyman)\
**Replies:** 3\
**Last updated:** [February 10, 2024, 3:51pm UTC](https://discourse.julialang.org/t/pattern-recognition/110028 "2024-02-10T15:51:21Z")

</div>

I am a novice Julia user and investigating its capabilities. Is it capable of pattern recognition? Here’s an example: For E(n)=n^2 -n + p, p=41, p \<=n \<2p; There exists a mixture of primes and composites. The composite…

---

## [C++2026 vs Julia syntax comparison](https://discourse.julialang.org/t/c-2026-vs-julia-syntax-comparison/109533)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 19\
**Last updated:** [February 10, 2024, 2:01pm UTC](https://discourse.julialang.org/t/c-2026-vs-julia-syntax-comparison/109533 "2024-02-10T14:01:09Z")

</div>

Are you kidding, guys? C++ vs. Julia

---

## [Do-block syntax with keyword arguments](https://discourse.julialang.org/t/do-block-syntax-with-keyword-arguments/101111)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 4\
**Last updated:** [February 10, 2024, 1:37pm UTC](https://discourse.julialang.org/t/do-block-syntax-with-keyword-arguments/101111 "2024-02-10T13:37:26Z")

</div>

Is is possible to use the do syntax with keyword arguments? MWE: just\_call(f, args...; kwargs...) = f(args...; kwargs...) # lambda just\_call((x; z) -\> @show(x, z), 1; z = 2) # do just\_call(1; z = 2) do x; z @show …

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

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