# Latest

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

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

**Page:** 762

---

## [Surprising type instability in apply\_type](https://discourse.julialang.org/t/surprising-type-instability-in-apply-type/95655)

<div class="topic-metadata">

**Author:** [@tverho](https://discourse.julialang.org/u/tverho)\
**Replies:** 2\
**Last updated:** [March 7, 2023, 11:31am UTC](https://discourse.julialang.org/t/surprising-type-instability-in-apply-type/95655 "2023-03-07T11:31:22Z")

</div>

It seems suprising that type inferrence doesn’t work here: f(Tp) = Tp{Int, Int} julia\> f(Tuple) Tuple{Int64, Int64} julia\> @code\_warntype f(Tuple) MethodInstance for f(::Type{Tuple}) from f(Tp) in Main at REPL\[5\]:1 …

---

## [Missing Relocatability of Tulip](https://discourse.julialang.org/t/missing-relocatability-of-tulip/94886)

<div class="topic-metadata">

**Author:** [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Replies:** 17\
**Last updated:** [March 7, 2023, 10:58am UTC](https://discourse.julialang.org/t/missing-relocatability-of-tulip/94886 "2023-03-07T10:58:35Z")

</div>

Relocatability I try to compile a project into an application that depends on Tulip.jl, but the resulting App is not portable, see: https://github.com/ds4dm/Tulip.jl/issues/131 Has someone managed a similar situation a…

---

## [Best way to break out of recursive loop in Julia?](https://discourse.julialang.org/t/best-way-to-break-out-of-recursive-loop-in-julia/95652)

<div class="topic-metadata">

**Author:** [@phantom](https://discourse.julialang.org/u/phantom)\
**Replies:** 0\
**Last updated:** [March 7, 2023, 8:22am UTC](https://discourse.julialang.org/t/best-way-to-break-out-of-recursive-loop-in-julia/95652 "2023-03-07T08:22:14Z")

</div>

(topic deleted by author)

---

## [Why is identity on an Any vector so much slower when broadcasting than when mapped?](https://discourse.julialang.org/t/why-is-identity-on-an-any-vector-so-much-slower-when-broadcasting-than-when-mapped/95569)

<div class="topic-metadata">

**Author:** [@numberMX](https://discourse.julialang.org/u/numberMX)\
**Replies:** 7\
**Last updated:** [March 7, 2023, 8:16am UTC](https://discourse.julialang.org/t/why-is-identity-on-an-any-vector-so-much-slower-when-broadcasting-than-when-mapped/95569 "2023-03-07T08:16:58Z")

</div>

In the REPL I was experimenting with a function that returns Vector{Any}, and I wanted to see how I could make Julia “automatically” change the type to a fixed type without having to specify it myself. I noticed that eve…

---

## [Makie Observables](https://discourse.julialang.org/t/makie-observables/69796)

<div class="topic-metadata">

**Author:** [@sransome](https://discourse.julialang.org/u/sransome)\
**Replies:** 6\
**Last updated:** [March 6, 2023, 5:19pm UTC](https://discourse.julialang.org/t/makie-observables/69796 "2023-03-06T17:19:05Z")

</div>

Hi, I’m trying to use an interval slider to update xlims on a series plot but the xlims! function is not being triggered when the observables are being changed. EndDate = Observable(500.0) DateRange\_is = IntervalSlider…

---

## [Controlling gaps between Axis3 areas in Makie](https://discourse.julialang.org/t/controlling-gaps-between-axis3-areas-in-makie/95643)

<div class="topic-metadata">

**Author:** [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Replies:** 2\
**Last updated:** [March 7, 2023, 6:26am UTC](https://discourse.julialang.org/t/controlling-gaps-between-axis3-areas-in-makie/95643 "2023-03-07T06:26:17Z")

</div>

I am trying to show xy-, xz-, yz-views of a 3D object using Makie. Here is the code to set up three panels for the views: using CairoMakie fig = Figure(resolution=(1500,1500)) fig\[1,1\] = Axis3(fig, aspect=:data, viewm…

---

## [Internal Design of a Julia Runtime in C#](https://discourse.julialang.org/t/internal-design-of-a-julia-runtime-in-c/95646)

<div class="topic-metadata">

**Author:** [@HyperSphereStudio](https://discourse.julialang.org/u/HyperSphereStudio)\
**Replies:** 1\
**Last updated:** [March 7, 2023, 5:02am UTC](https://discourse.julialang.org/t/internal-design-of-a-julia-runtime-in-c/95646 "2023-03-07T05:02:55Z")

</div>

I have been working hard recently on developing a runtime for Julia from the ground up written purely in C# (GitHub - HyperSphereStudio/Spinor: Spinor Programming Language. Dynamically Typed Extension of Julia written an…

---

## [On Developing Common Interfaces for the Julia Ecosystem](https://discourse.julialang.org/t/on-developing-common-interfaces-for-the-julia-ecosystem/95642)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 0\
**Last updated:** [March 7, 2023, 1:02am UTC](https://discourse.julialang.org/t/on-developing-common-interfaces-for-the-julia-ecosystem/95642 "2023-03-07T01:02:22Z")

</div>

Hi folks, I have spent much time ruminating on the idea of interfaces within the Julia ecosystem. Before I start a discussion about interfaces, let me first share my understandings of interfaces. Background Working Def…

---

## [JuMP - Nested Optimization with user defined functions](https://discourse.julialang.org/t/jump-nested-optimization-with-user-defined-functions/83199)

<div class="topic-metadata">

**Author:** [@jmcastro2109](https://discourse.julialang.org/u/jmcastro2109)\
**Replies:** 10\
**Last updated:** [March 6, 2023, 10:02pm UTC](https://discourse.julialang.org/t/jump-nested-optimization-with-user-defined-functions/83199 "2023-03-06T22:02:33Z")

</div>

Hi! I have a Nested Optimization problem that I am trying to solve using JuMP. Inside, I have a linear problem with power constraints where I use JuMP + Mosek to solve. Outside, I have a concave problem defined on a set…

---

## [ODE with heterogeneous input through RecursiveArrayTools](https://discourse.julialang.org/t/ode-with-heterogeneous-input-through-recursivearraytools/95625)

<div class="topic-metadata">

**Author:** [@christianhvejsel](https://discourse.julialang.org/u/christianhvejsel)\
**Replies:** 2\
**Last updated:** [March 6, 2023, 8:26pm UTC](https://discourse.julialang.org/t/ode-with-heterogeneous-input-through-recursivearraytools/95625 "2023-03-06T20:26:46Z")

</div>

Hi all I am trying to solve a first-order ODE with initial conditions input as a heterogeneous array using of RecursiveArrayTools.jl https://docs.sciml.ai/DiffEqDocs/stable/features/diffeq\_arrays/#ArrayPartitions. I ca…

---

## [Julia:master Failed to precompile VSCodeServer -\> LoadError: UndefVarError: \`Slot\` not defined](https://discourse.julialang.org/t/julia-master-failed-to-precompile-vscodeserver-loaderror-undefvarerror-slot-not-defined/95624)

<div class="topic-metadata">

**Author:** [@ndinsmore](https://discourse.julialang.org/u/ndinsmore)\
**Replies:** 1\
**Last updated:** [March 6, 2023, 8:38pm UTC](https://discourse.julialang.org/t/julia-master-failed-to-precompile-vscodeserver-loaderror-undefvarerror-slot-not-defined/95624 "2023-03-06T20:38:53Z")

</div>

I know that there is an issue for this already failing to precompile VSCodeServer on nightly: \`LoadError: UndefVarError: Slot not defined\` · Issue #3223 · julia-vscode/julia-vscode · GitHub But has anyone managed to fin…

---

## [Error on load DataFrame with BSON](https://discourse.julialang.org/t/error-on-load-dataframe-with-bson/95634)

<div class="topic-metadata">

**Author:** [@rodolforbcoutinho](https://discourse.julialang.org/u/rodolforbcoutinho)\
**Replies:** 1\
**Last updated:** [March 6, 2023, 8:29pm UTC](https://discourse.julialang.org/t/error-on-load-dataframe-with-bson/95634 "2023-03-06T20:29:11Z")

</div>

Hello all! I’m getting an odd erro when loading a file with BSON. This file was created by other project/enviroment. I’m using and outdated enviroment now because I want to use SOM.jl ERROR: BoundsError: attempt to acc…

---

## [Deploying HTTP.jl tutorial?](https://discourse.julialang.org/t/deploying-http-jl-tutorial/95631)

<div class="topic-metadata">

**Author:** [@evanfields](https://discourse.julialang.org/u/evanfields)\
**Replies:** 1\
**Last updated:** [March 6, 2023, 8:15pm UTC](https://discourse.julialang.org/t/deploying-http-jl-tutorial/95631 "2023-03-06T20:15:34Z")

</div>

Are there any beginner tutorials for connecting a HTTP.jl server to the public internet? That is, I have wrapped some logic in a tiny HTTP.jl server running on localhost, but I’d like to host it somewhere as a small publ…

---

## [Are arrays in Julia column major?](https://discourse.julialang.org/t/are-arrays-in-julia-column-major/95619)

<div class="topic-metadata">

**Author:** [@Yanqing\_Jing](https://discourse.julialang.org/u/Yanqing_Jing)\
**Replies:** 3\
**Last updated:** [March 6, 2023, 8:14pm UTC](https://discourse.julialang.org/t/are-arrays-in-julia-column-major/95619 "2023-03-06T20:14:29Z")

</div>

Just learned that Julia arrays are column major, I have several questions regarding this. Is this true? Is the memory buffer for a julia array always continuous or is there a way to check? If arrays are column major, t…

---

## [Reuse a JuMP model with different solvers](https://discourse.julialang.org/t/reuse-a-jump-model-with-different-solvers/95629)

<div class="topic-metadata">

**Author:** [@jacob-roth](https://discourse.julialang.org/u/jacob-roth)\
**Replies:** 3\
**Last updated:** [March 6, 2023, 8:09pm UTC](https://discourse.julialang.org/t/reuse-a-jump-model-with-different-solvers/95629 "2023-03-06T20:09:56Z")

</div>

Is there an efficient way to change the solver associated with a JuMP model? For example, I want to solve a model that takes a nontrivial amount of time to setup with a few different solvers. I am wondering if it is poss…

---

## [Convert Vector{SVector} to Matrix](https://discourse.julialang.org/t/convert-vector-svector-to-matrix/27939)

<div class="topic-metadata">

**Author:** [@benzwick](https://discourse.julialang.org/u/benzwick)\
**Replies:** 20\
**Last updated:** [March 6, 2023, 8:05pm UTC](https://discourse.julialang.org/t/convert-vector-svector-to-matrix/27939 "2023-03-06T20:05:58Z")

</div>

I have some code where I need to store coordinates x of a mesh. I’m using a vector of points (static vectors), i.e. using StaticArrays Point{dim} = SVector{dim, Float64} x = rand(Point{3}, 10) but some parts of the cod…

---

## [Best way to select implementation based on runtime argument? (dispatch vs. control flow)](https://discourse.julialang.org/t/best-way-to-select-implementation-based-on-runtime-argument-dispatch-vs-control-flow/95479)

<div class="topic-metadata">

**Author:** [@lmtzx9h4qqnt](https://discourse.julialang.org/u/lmtzx9h4qqnt)\
**Replies:** 10\
**Last updated:** [March 6, 2023, 7:40pm UTC](https://discourse.julialang.org/t/best-way-to-select-implementation-based-on-runtime-argument-dispatch-vs-control-flow/95479 "2023-03-06T19:40:31Z")

</div>

I’ve been running into the following question: What is the most “sensible” or idiomatic way to select a function implementation based on a runtime argument (by which I mean, it could potentially be passed e. g. as a comm…

---

## [How to use compat to force the use of given julia version](https://discourse.julialang.org/t/how-to-use-compat-to-force-the-use-of-given-julia-version/95623)

<div class="topic-metadata">

**Author:** [@tencnivel](https://discourse.julialang.org/u/tencnivel)\
**Replies:** 0\
**Last updated:** [March 6, 2023, 5:50pm UTC](https://discourse.julialang.org/t/how-to-use-compat-to-force-the-use-of-given-julia-version/95623 "2023-03-06T17:50:35Z")

</div>

I try to tell that my project is compatible with julia 1.8.5 only I added the following \[compat\] julia="~1.8.5" and I was expecting to get an error when trying to load the module with a different julia version than th…

---

## [LMM coefficient difference](https://discourse.julialang.org/t/lmm-coefficient-difference/95626)

<div class="topic-metadata">

**Author:** [@PharmCat](https://discourse.julialang.org/u/PharmCat)\
**Replies:** 0\
**Last updated:** [March 6, 2023, 6:05pm UTC](https://discourse.julialang.org/t/lmm-coefficient-difference/95626 "2023-03-06T18:05:04Z")

</div>

Hello! I try to use MixedModels and GLM for binary data outcome analysis. So I have model: @formula(resp ~ pred1 + pred2) where pred1 and pred2 are continuous predictors. I fit model with Bernoulli() distribution an…

---

## [Approach for using codecov with subpackages](https://discourse.julialang.org/t/approach-for-using-codecov-with-subpackages/95438)

<div class="topic-metadata">

**Author:** [@beorostica](https://discourse.julialang.org/u/beorostica)\
**Replies:** 3\
**Last updated:** [March 6, 2023, 5:12pm UTC](https://discourse.julialang.org/t/approach-for-using-codecov-with-subpackages/95438 "2023-03-06T17:12:09Z")

</div>

I want to know how to use codecov when there are subpackages in a github repo. Initially, I was working in a repo with codecov configured in the CI workflow and everything worked as expected. However, once we started to…

---

## [Problem with training a spiking neural network with Flux](https://discourse.julialang.org/t/problem-with-training-a-spiking-neural-network-with-flux/95149)

<div class="topic-metadata">

**Author:** [@Daniele\_Linaro](https://discourse.julialang.org/u/Daniele_Linaro)\
**Replies:** 7\
**Last updated:** [March 6, 2023, 4:30pm UTC](https://discourse.julialang.org/t/problem-with-training-a-spiking-neural-network-with-flux/95149 "2023-03-06T16:30:53Z")

</div>

Hello, I am trying to use Flux to train a simple spiking neural network to perform input classification. The network has 100 inputs that represent incoming spike streams: half of the inputs are “active” (i.e., they rece…

---

## [Difference between Type.parameters and Type.types](https://discourse.julialang.org/t/difference-between-type-parameters-and-type-types/95622)

<div class="topic-metadata">

**Author:** [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Replies:** 4\
**Last updated:** [March 6, 2023, 4:12pm UTC](https://discourse.julialang.org/t/difference-between-type-parameters-and-type-types/95622 "2023-03-06T16:12:10Z")

</div>

I am trying to retrieve the parameters of a parametric type, and find that both parameters and types fields of Type provide what I want: julia\> VERSION v"1.9.0-beta4" julia\> struct MyType{S,T} a::S …

---

## [Revise, Pkg, PkgTemplates, PkgSkeleton and smooth Julia package development](https://discourse.julialang.org/t/revise-pkg-pkgtemplates-pkgskeleton-and-smooth-julia-package-development/95608)

<div class="topic-metadata">

**Author:** [@johannesnauta](https://discourse.julialang.org/u/johannesnauta)\
**Replies:** 6\
**Last updated:** [March 6, 2023, 3:23pm UTC](https://discourse.julialang.org/t/revise-pkg-pkgtemplates-pkgskeleton-and-smooth-julia-package-development/95608 "2023-03-06T15:23:46Z")

</div>

Hi all. After having used Python extensively for the last 4-5 years, I am now switching to Julia both out of interest and for performance reasons. I am now actively learning to master the REPL-focused Julia development c…

---

## [GRUtils - Surface color and transparency](https://discourse.julialang.org/t/grutils-surface-color-and-transparency/95617)

<div class="topic-metadata">

**Author:** [@Maucejo](https://discourse.julialang.org/u/Maucejo)\
**Replies:** 0\
**Last updated:** [March 6, 2023, 2:57pm UTC](https://discourse.julialang.org/t/grutils-surface-color-and-transparency/95617 "2023-03-06T14:57:56Z")

</div>

Hi all, I don’t figure out how to set the color of a surface as well as its transparency with GRUtils.jl. Here is a MWE: using GRUtils x = LinRange(0., 100., 100) y = ones(50) vl = LinRange(0., 1., 50) v = repeat(vl'…

---

## [Tip: use Julia as custom shell in GitHub Actions](https://discourse.julialang.org/t/tip-use-julia-as-custom-shell-in-github-actions/53377)

<div class="topic-metadata">

**Author:** [@giordano](https://discourse.julialang.org/u/giordano)\
**Replies:** 3\
**Last updated:** [March 6, 2023, 2:33pm UTC](https://discourse.julialang.org/t/tip-use-julia-as-custom-shell-in-github-actions/53377 "2023-03-06T14:33:04Z")

</div>

This isn’t maybe very well-known, but in GitHub Actions you can run commands using custom shells, including julia. For example, in a package I always want to test on CI a package using the latest development revision of…

---

## [\[ANN\] Pandoc.jl - Pandoc Interface and Pandoc Types in Julia](https://discourse.julialang.org/t/ann-pandoc-jl-pandoc-interface-and-pandoc-types-in-julia/95588)

<div class="topic-metadata">

**Author:** [@kdheepak](https://discourse.julialang.org/u/kdheepak)\
**Replies:** 2\
**Last updated:** [March 6, 2023, 2:29pm UTC](https://discourse.julialang.org/t/ann-pandoc-jl-pandoc-interface-and-pandoc-types-in-julia/95588 "2023-03-06T14:29:40Z")

</div>

I just made a new release v0.4.0 of Pandoc.jl: https://github.com/kdheepak/Pandoc.jl Pandoc is a swiss-army knife tool for converting one markup format (e.g. markdown, html, latex) to another (e.g. markdown, epub, rst) …

---

## [PyPlot Scatter-Plot Performance](https://discourse.julialang.org/t/pyplot-scatter-plot-performance/94129)

<div class="topic-metadata">

**Author:** [@ratwolf](https://discourse.julialang.org/u/ratwolf)\
**Replies:** 12\
**Last updated:** [March 6, 2023, 1:27pm UTC](https://discourse.julialang.org/t/pyplot-scatter-plot-performance/94129 "2023-03-06T13:27:38Z")

</div>

I wrote a small program to display the “Hopalong Attractor”. The calculations themselves are relatively fast, as is the scatter plot if you only use a single color. Coloring the scatterplot as a function of the distance…

---

## [Glitch with readline() in VSCode?](https://discourse.julialang.org/t/glitch-with-readline-in-vscode/95550)

<div class="topic-metadata">

**Author:** [@Maddy](https://discourse.julialang.org/u/Maddy)\
**Replies:** 8\
**Last updated:** [March 6, 2023, 1:08pm UTC](https://discourse.julialang.org/t/glitch-with-readline-in-vscode/95550 "2023-03-06T13:08:41Z")

</div>

(Ignore the code I wrote… the glitch is about the REPL) The first time I input something for readline(), nothing happens. I have to enter my input again. And after the code is done running, a weird input not define…

---

## [Help to select a Raspberry Pi for embedding Julia application](https://discourse.julialang.org/t/help-to-select-a-raspberry-pi-for-embedding-julia-application/39848)

<div class="topic-metadata">

**Author:** [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Replies:** 83\
**Last updated:** [March 6, 2023, 1:06pm UTC](https://discourse.julialang.org/t/help-to-select-a-raspberry-pi-for-embedding-julia-application/39848 "2023-03-06T13:06:27Z")

</div>

Hi! I would like to buy a Raspberry Pi to do some experiments about embedded applications using Julia. Basically, I want to test thinks like latency, real-time performance, etc. Thus, I need to install Julia and a lot o…

---

## [Mathematical validity of using SDE solver schemes for custom NoiseProcess(es) in DifferentialEquations.jl](https://discourse.julialang.org/t/mathematical-validity-of-using-sde-solver-schemes-for-custom-noiseprocess-es-in-differentialequations-jl/95025)

<div class="topic-metadata">

**Author:** [@tom-plaa](https://discourse.julialang.org/u/tom-plaa)\
**Replies:** 4\
**Last updated:** [March 6, 2023, 1:01pm UTC](https://discourse.julialang.org/t/mathematical-validity-of-using-sde-solver-schemes-for-custom-noiseprocess-es-in-differentialequations-jl/95025 "2023-03-06T13:01:51Z")

</div>

As we know, DifferentialEquations.jl has the amazing feature of allowing us to define our own NoiseProcess object and use all the solving interface with it. My question here is more related to the mathematical validity o…

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

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