# Latest

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

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

**Page:** 243

---

## [EOFError when extracting from a ZipFile inside a function](https://discourse.julialang.org/t/eoferror-when-extracting-from-a-zipfile-inside-a-function/124511)

<div class="topic-metadata">

**Author:** [@Mitch\_Phillipson](https://discourse.julialang.org/u/Mitch_Phillipson)\
**Replies:** 5\
**Last updated:** [January 7, 2025, 10:12pm UTC](https://discourse.julialang.org/t/eoferror-when-extracting-from-a-zipfile-inside-a-function/124511 "2025-01-07T22:12:14Z")

</div>

I am trying to download a Zip file and extract a few files. When I run this code outside of a function, it works great. However, when wrapped in a function I get an EOFError. I’ve included the two versions below. Any ad…

---

## [Persistent tree data structure as an alternative to Rust-like borrow checker](https://discourse.julialang.org/t/persistent-tree-data-structure-as-an-alternative-to-rust-like-borrow-checker/124485)

<div class="topic-metadata">

**Author:** [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Replies:** 9\
**Last updated:** [January 7, 2025, 9:57pm UTC](https://discourse.julialang.org/t/persistent-tree-data-structure-as-an-alternative-to-rust-like-borrow-checker/124485 "2025-01-07T21:57:57Z")

</div>

Hi, @MilesCranmer, I’m opening this as a separate thread so the other thread can focus on your thoughts about a Rust-like borrow checker for Julia. I made an example of a Node type with a splice method that replaces a s…

---

## [Handling Divergent Trajectories in Global Sensitivity Analysis](https://discourse.julialang.org/t/handling-divergent-trajectories-in-global-sensitivity-analysis/123186)

<div class="topic-metadata">

**Author:** [@duodenum](https://discourse.julialang.org/u/duodenum)\
**Replies:** 4\
**Last updated:** [January 7, 2025, 8:05pm UTC](https://discourse.julialang.org/t/handling-divergent-trajectories-in-global-sensitivity-analysis/123186 "2025-01-07T20:05:25Z")

</div>

I am having the following problem in a large parameter space. Let’s say I have two parameters A and B. If I constrain the range of A between 0 and 10 and B between 0 and 5, the sensitivity to A turns out higher. If I do …

---

## [GLMakie error: cannot get context in Julia 1.11.\*, but works in Julia 1.10.\*](https://discourse.julialang.org/t/glmakie-error-cannot-get-context-in-julia-1-11-but-works-in-julia-1-10/124509)

<div class="topic-metadata">

**Author:** [@prittjam](https://discourse.julialang.org/u/prittjam)\
**Replies:** 2\
**Last updated:** [January 7, 2025, 7:44pm UTC](https://discourse.julialang.org/t/glmakie-error-cannot-get-context-in-julia-1-11-but-works-in-julia-1-10/124509 "2025-01-07T19:44:53Z")

</div>

Plotting with GLMakie causes a crash. I don’t understand what is missing: julia\> VERSION v"1.11.2" glxinfo | grep “OpenGL version” OpenGL version string: 4.6.0 NVIDIA 470.256.02 using Colors using Distributions …

---

## [Evaluate a function for many values fast](https://discourse.julialang.org/t/evaluate-a-function-for-many-values-fast/124510)

<div class="topic-metadata">

**Author:** [@stefaniecg](https://discourse.julialang.org/u/stefaniecg)\
**Replies:** 2\
**Last updated:** [January 7, 2025, 7:23pm UTC](https://discourse.julialang.org/t/evaluate-a-function-for-many-values-fast/124510 "2025-01-07T19:23:45Z")

</div>

I want to evaluate my function fast for many values. Is there a easy way to do this in Julia? :slight\_smile: y(x) = 4\*x^2 + 6\*x + 34 x1 = \[44,75,45\] y(x1) # my favorite sintax does not work, i was really hopping this w…

---

## [Accessors.jl - "Dynamic" version of @reset](https://discourse.julialang.org/t/accessors-jl-dynamic-version-of-reset/124493)

<div class="topic-metadata">

**Author:** [@kampfkoloss](https://discourse.julialang.org/u/kampfkoloss)\
**Replies:** 3\
**Last updated:** [January 7, 2025, 4:35pm UTC](https://discourse.julialang.org/t/accessors-jl-dynamic-version-of-reset/124493 "2025-01-07T16:35:06Z")

</div>

Hi, I want to use @reset in Accessors.jl to update some immutable data. The issue is that I have a “path” to the object which changes dynamically, and in my actual code it is impossible to “hard-code” this path. A minim…

---

## [How to interpolate a scalar field?](https://discourse.julialang.org/t/how-to-interpolate-a-scalar-field/124499)

<div class="topic-metadata">

**Author:** [@Valery](https://discourse.julialang.org/u/Valery)\
**Replies:** 1\
**Last updated:** [January 7, 2025, 3:18pm UTC](https://discourse.julialang.org/t/how-to-interpolate-a-scalar-field/124499 "2025-01-07T15:18:20Z")

</div>

I want to get a polynomial scalar field that interpolate z as a function of x and y. # consider an integer k, # then the goal is that a called function f(x\[k\],y\[k\]) # would approximate z\[k\]. # abscissa example with dum…

---

## [julia.additionalArgs -e (...) REPL not recognised](https://discourse.julialang.org/t/julia-additionalargs-e-repl-not-recognised/124466)

<div class="topic-metadata">

**Author:** [@eldee](https://discourse.julialang.org/u/eldee)\
**Replies:** 10\
**Last updated:** [January 7, 2025, 3:31pm UTC](https://discourse.julialang.org/t/julia-additionalargs-e-repl-not-recognised/124466 "2025-01-07T15:31:12Z")

</div>

Hi, When executing some code at REPL startup in VS Code by adding "-e ..." to julia.additionalArgs in ./.vscode/settings.json, I noticed that Ctrl+Enter / Execute code in REPL does not work for a new REPL (where the cod…

---

## [Dispatch and junk values](https://discourse.julialang.org/t/dispatch-and-junk-values/124497)

<div class="topic-metadata">

**Author:** [@JADekker](https://discourse.julialang.org/u/JADekker)\
**Replies:** 10\
**Last updated:** [January 7, 2025, 2:57pm UTC](https://discourse.julialang.org/t/dispatch-and-junk-values/124497 "2025-01-07T14:57:14Z")

</div>

I have the following situation, where I have a function, where depending on the types of the supplied objects, I may or may not use all arguments. I then wish to define a shortcut function for some types of the supplied …

---

## [Instability after reducing number of equations in DifferentialEquations.jl](https://discourse.julialang.org/t/instability-after-reducing-number-of-equations-in-differentialequations-jl/124133)

<div class="topic-metadata">

**Author:** [@diffeqslvr](https://discourse.julialang.org/u/diffeqslvr)\
**Replies:** 10\
**Last updated:** [January 7, 2025, 2:56pm UTC](https://discourse.julialang.org/t/instability-after-reducing-number-of-equations-in-differentialequations-jl/124133 "2025-01-07T14:56:51Z")

</div>

I have a large set of differential equations (O(10000)) which I try to solve using Tsit5() and DifferentialEquations.jl. sol = solve( prob, Tsit5(), dtmax = 0.1, maxiters = 100000, progress = true, saveat = 0.01, …

---

## [\[pre-ANN\] StackEnvs.jl](https://discourse.julialang.org/t/pre-ann-stackenvs-jl/124487)

<div class="topic-metadata">

**Author:** [@jlapeyre](https://discourse.julialang.org/u/jlapeyre)\
**Replies:** 0\
**Last updated:** [January 7, 2025, 12:19am UTC](https://discourse.julialang.org/t/pre-ann-stackenvs-jl/124487 "2025-01-07T00:19:40Z")

</div>

StackEnvs.jl From the README: StackEnvs provides tools for minimal management of a shared environment that is meant to be used from your “stacked environment” but never to be active itself. This is useful if you are d…

---

## [Makie inset fully "on top"](https://discourse.julialang.org/t/makie-inset-fully-on-top/124492)

<div class="topic-metadata">

**Author:** [@gvdeynde](https://discourse.julialang.org/u/gvdeynde)\
**Replies:** 2\
**Last updated:** [January 7, 2025, 1:04pm UTC](https://discourse.julialang.org/t/makie-inset-fully-on-top/124492 "2025-01-07T13:04:31Z")

</div>

Similar to this question. I’m drawing a figure that has a main axis and an inset (a zoom). How would I go about to have the whole inset with a background, effectively blocking out the underlying main figure? Using a gra…

---

## [Using Oscar takes a long time to import (~1 minute) — Is this expected behavior?](https://discourse.julialang.org/t/using-oscar-takes-a-long-time-to-import-1-minute-is-this-expected-behavior/124494)

<div class="topic-metadata">

**Author:** [@Rowing0914](https://discourse.julialang.org/u/Rowing0914)\
**Replies:** 2\
**Last updated:** [January 7, 2025, 12:32pm UTC](https://discourse.julialang.org/t/using-oscar-takes-a-long-time-to-import-1-minute-is-this-expected-behavior/124494 "2025-01-07T12:32:33Z")

</div>

Hello, I noticed that importing the Oscar.jl package in Julia using using Oscar takes quite a long time, around a minute. Here’s a simple reproducible example: julia Copy code @time using Oscar On my machine, it con…

---

## [\[ANN\] CDSAPI.jl](https://discourse.julialang.org/t/ann-cdsapi-jl/43708)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 2\
**Last updated:** [January 7, 2025, 12:11pm UTC](https://discourse.julialang.org/t/ann-cdsapi-jl/43708 "2025-01-07T12:11:44Z")

</div>

Dear climate sciences community, We are happy to announce CDSAPI.jl for querying climate data from the Climate Data Store. Please acknowledge @LakshyaKhatri and @michiboo for their amazing work :heart: I would like to…

---

## [FunctionWrappers.jl -\> ERROR: LoadError: TypeError: in cfunction, expected Union{}, got a value of type Nothing](https://discourse.julialang.org/t/functionwrappers-jl-error-loaderror-typeerror-in-cfunction-expected-union-got-a-value-of-type-nothing/112447)

<div class="topic-metadata">

**Author:** [@mcmuffin6o](https://discourse.julialang.org/u/mcmuffin6o)\
**Replies:** 4\
**Last updated:** [January 7, 2025, 11:49am UTC](https://discourse.julialang.org/t/functionwrappers-jl-error-loaderror-typeerror-in-cfunction-expected-union-got-a-value-of-type-nothing/112447 "2025-01-07T11:49:04Z")

</div>

The more I investigated this error, the more confused I got. It’s to the point where I don’t even think I could give an accurate reproduction procedure. All I know and all I want to share with people that search for thi…

---

## [DuckDB load problem](https://discourse.julialang.org/t/duckdb-load-problem/124467)

<div class="topic-metadata">

**Author:** [@kobusherbst](https://discourse.julialang.org/u/kobusherbst)\
**Replies:** 3\
**Last updated:** [January 7, 2025, 11:01am UTC](https://discourse.julialang.org/t/duckdb-load-problem/124467 "2025-01-07T11:01:33Z")

</div>

I created a new project, with just DuckDB and DBInterface packages. When executing the following code: using DuckDB # create a new in-memory database con = DBInterface.connect(DuckDB.DB, ":memory:") fails with the fol…

---

## [How to fix some parameters when least-squares-fitting using \`NonlinearSolve\`?](https://discourse.julialang.org/t/how-to-fix-some-parameters-when-least-squares-fitting-using-nonlinearsolve/124451)

<div class="topic-metadata">

**Author:** [@thudjx](https://discourse.julialang.org/u/thudjx)\
**Replies:** 4\
**Last updated:** [January 7, 2025, 9:28am UTC](https://discourse.julialang.org/t/how-to-fix-some-parameters-when-least-squares-fitting-using-nonlinearsolve/124451 "2025-01-07T09:28:03Z")

</div>

I have 2 questions: I find there are two different practices when performing lsqfit. One defines a function without a sideeffect, as done here; the other defines a function that mutates a predefined variable, examplifi…

---

## [Choosing a convention for complex numbers in DifferentiationInterface](https://discourse.julialang.org/t/choosing-a-convention-for-complex-numbers-in-differentiationinterface/124433)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 3\
**Last updated:** [January 7, 2025, 8:46am UTC](https://discourse.julialang.org/t/choosing-a-convention-for-complex-numbers-in-differentiationinterface/124433 "2025-01-07T08:46:17Z")

</div>

Hi everyone, As DifferentiationInterface.jl gains more traction, I find myself forced to confront the issue of AD with complex numbers. Right now they are not officially supported, but they should be and I wonder what t…

---

## [Unit tangent vector in Gridap.jl](https://discourse.julialang.org/t/unit-tangent-vector-in-gridap-jl/108181)

<div class="topic-metadata">

**Author:** [@andy45](https://discourse.julialang.org/u/andy45)\
**Replies:** 4\
**Last updated:** [January 7, 2025, 8:38am UTC](https://discourse.julialang.org/t/unit-tangent-vector-in-gridap-jl/108181 "2025-01-07T08:38:16Z")

</div>

Hi. I am trying to solve two-dimensional Stokes-Darcy equations using Gridap.jl. One of the terms in a weak formulation has the form {\\int\_{I}\\lambda\\left(u\\cdot\\tau\\right)\\left(v\\cdot\\tau\\right)ds} where \\tau is a unit …

---

## [WringTwistree 1.1.0 whole-message cipher and keyed hash](https://discourse.julialang.org/t/wringtwistree-1-1-0-whole-message-cipher-and-keyed-hash/124490)

<div class="topic-metadata">

**Author:** [@phma](https://discourse.julialang.org/u/phma)\
**Replies:** 0\
**Last updated:** [January 7, 2025, 7:32am UTC](https://discourse.julialang.org/t/wringtwistree-1-1-0-whole-message-cipher-and-keyed-hash/124490 "2025-01-07T07:32:33Z")

</div>

This is a bugfix release, but I haven’t announced WringTwistree before, so here goes. Wring is a whole-message cipher, which means that instead of enciphering eight or sixteen bytes at a time, it enciphers a whole messa…

---

## [Best practices for managing websocket/http server lifecycle](https://discourse.julialang.org/t/best-practices-for-managing-websocket-http-server-lifecycle/124434)

<div class="topic-metadata">

**Author:** [@danvinci](https://discourse.julialang.org/u/danvinci)\
**Replies:** 12\
**Last updated:** [January 7, 2025, 2:12am UTC](https://discourse.julialang.org/t/best-practices-for-managing-websocket-http-server-lifecycle/124434 "2025-01-07T02:12:24Z")

</div>

Hello folks! I’m experimenting with HTTP.jl and I’m trying to put in a place a watchdog task that would regularly check on the server, and spin up a new one if it goes down. The issue I’m encountering is that I get thi…

---

## [Using MathOptInterface.AbstractOptimizer in parametric type declaration](https://discourse.julialang.org/t/using-mathoptinterface-abstractoptimizer-in-parametric-type-declaration/124486)

<div class="topic-metadata">

**Author:** [@danrib07](https://discourse.julialang.org/u/danrib07)\
**Replies:** 1\
**Last updated:** [January 6, 2025, 11:40pm UTC](https://discourse.julialang.org/t/using-mathoptinterface-abstractoptimizer-in-parametric-type-declaration/124486 "2025-01-06T23:40:06Z")

</div>

Hi all, I have a question regarding using the MathOptInterface.AbstractOptimizer for parametric type declaration when defining a composite type. For example, take the type definition below: using JuMP # JuMP reexports …

---

## [Broadcasting performance](https://discourse.julialang.org/t/broadcasting-performance/123392)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 13\
**Last updated:** [January 6, 2025, 9:39am UTC](https://discourse.julialang.org/t/broadcasting-performance/123392 "2025-01-06T09:39:27Z")

</div>

f(x) = sin(x)cos(x)tan(x)exp(x)sin(x)cos(x)tan(x)exp(x) X = randn(100\_000\_000) @time f.(X) # 4 seconds @time @threads for x in X; f(x) end # .8 seconds 16 threads @time @turbo f.(X) …

---

## [\[ANN\] SatelliteToolbox v1 - After almost 10 years, we reached v1.0!](https://discourse.julialang.org/t/ann-satellitetoolbox-v1-after-almost-10-years-we-reached-v1-0/124349)

<div class="topic-metadata">

**Author:** [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Replies:** 6\
**Last updated:** [January 6, 2025, 9:41pm UTC](https://discourse.julialang.org/t/ann-satellitetoolbox-v1-after-almost-10-years-we-reached-v1-0/124349 "2025-01-06T21:41:57Z")

</div>

Hi everyone! I started coding the SatelliteToolbox.jl package 10 years ago. It’s been daily used at the Brazilian National Institute for Space Research (INPE) for various tasks. The most important ones were related to …

---

## [Multiple page plots](https://discourse.julialang.org/t/multiple-page-plots/124481)

<div class="topic-metadata">

**Author:** [@g2g](https://discourse.julialang.org/u/g2g)\
**Replies:** 5\
**Last updated:** [January 6, 2025, 9:41pm UTC](https://discourse.julialang.org/t/multiple-page-plots/124481 "2025-01-06T21:41:28Z")

</div>

As shown in the following plot, Makie’s GridLayout is ideal for making a small multiple plot as described by Edward Tufte as a way to make plots more informative by increasing their “data density”. This is especially hel…

---

## [How can i create a random signal within a fixed range ±1e-6?](https://discourse.julialang.org/t/how-can-i-create-a-random-signal-within-a-fixed-range-1e-6/124474)

<div class="topic-metadata">

**Author:** [@stefaniecg](https://discourse.julialang.org/u/stefaniecg)\
**Replies:** 9\
**Last updated:** [January 6, 2025, 7:34pm UTC](https://discourse.julialang.org/t/how-can-i-create-a-random-signal-within-a-fixed-range-1e-6/124474 "2025-01-06T19:34:43Z")

</div>

This one is close, but it goes above the ±1e-6. signal = randn(Int(1e6)) \* 1e-6 plot(signal)

---

## [Julia and the GPS payload onboard Waratah Seed-1 satellite](https://discourse.julialang.org/t/julia-and-the-gps-payload-onboard-waratah-seed-1-satellite/123795)

<div class="topic-metadata">

**Author:** [@minetest2048](https://discourse.julialang.org/u/minetest2048)\
**Replies:** 24\
**Last updated:** [January 6, 2025, 5:08pm UTC](https://discourse.julialang.org/t/julia-and-the-gps-payload-onboard-waratah-seed-1-satellite/123795 "2025-01-06T17:08:26Z")

</div>

Hi Julia community, I’m Ignatius Rivaldi, research engineer working at UNSW ACSER: Australian Centre for Space Engineering Research (ACSER) We flew our GPS receiver payload, Harry v3 on Waratah Seed-1 6U cubesat develo…

---

## [How to compute TanhExp / TeLU function accurately?](https://discourse.julialang.org/t/how-to-compute-tanhexp-telu-function-accurately/124464)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 10\
**Last updated:** [January 6, 2025, 5:07pm UTC](https://discourse.julialang.org/t/how-to-compute-tanhexp-telu-function-accurately/124464 "2025-01-06T17:07:34Z")

</div>

A new paper advocates using the TeLU activation function, x \\cdot \\tanh (e^x), for neural networks, also proposed in this paper under the name TanhExp. The intermediate result e^x grows very fast for large x, even thoug…

---

## [Using Visualization with EasyABM.jl in VSCode](https://discourse.julialang.org/t/using-visualization-with-easyabm-jl-in-vscode/124472)

<div class="topic-metadata">

**Author:** [@daler6](https://discourse.julialang.org/u/daler6)\
**Replies:** 0\
**Last updated:** [January 6, 2025, 5:05pm UTC](https://discourse.julialang.org/t/using-visualization-with-easyabm-jl-in-vscode/124472 "2025-01-06T17:05:27Z")

</div>

I have tried to implement the Simple example in EasyABM.jl inside VSCode using the Julia extension. The basics work fine, but I am running into difficulty getting the visualizations to work. I have tried this with both a…

---

## [Two activation methods differ on results](https://discourse.julialang.org/t/two-activation-methods-differ-on-results/124386)

<div class="topic-metadata">

**Author:** [@Ken\_Williams](https://discourse.julialang.org/u/Ken_Williams)\
**Replies:** 2\
**Last updated:** [January 6, 2025, 4:27pm UTC](https://discourse.julialang.org/t/two-activation-methods-differ-on-results/124386 "2025-01-06T16:27:04Z")

</div>

When activating projects, I’m seeing some different results for a couple of methods I thought were supposed to be essentially the same. This runs fine: % julia --project=examples -e 'using MyProj' jul…

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

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