# Latest

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

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

**Page:** 582

---

## [Is sizeof() giving incorrect results instead of errors for structs with mutable fields?](https://discourse.julialang.org/t/is-sizeof-giving-incorrect-results-instead-of-errors-for-structs-with-mutable-fields/104721)

<div class="topic-metadata">

**Author:** [@sadish-d](https://discourse.julialang.org/u/sadish-d)\
**Replies:** 3\
**Last updated:** [October 8, 2023, 3:59am UTC](https://discourse.julialang.org/t/is-sizeof-giving-incorrect-results-instead-of-errors-for-structs-with-mutable-fields/104721 "2023-10-08T03:59:58Z")

</div>

Example: struct IMMUT a::Int64 b::Bool end sizeof(IMMUT(0, false)) == 16 # true since this is "with padding", as the documentation describes. struct MUT a::Array end vctr = Int64\[1, 2, 3\] sizeof(vctr) ==…

---

## [Can't see why OpenSSL\_jll@v3.0.11 is incompatible with Plots.jl](https://discourse.julialang.org/t/cant-see-why-openssl-jll-v3-0-11-is-incompatible-with-plots-jl/104702)

<div class="topic-metadata">

**Author:** [@wheeheee](https://discourse.julialang.org/u/wheeheee)\
**Replies:** 1\
**Last updated:** [October 8, 2023, 12:06am UTC](https://discourse.julialang.org/t/cant-see-why-openssl-jll-v3-0-11-is-incompatible-with-plots-jl/104702 "2023-10-08T00:06:11Z")

</div>

Using st -m --outdated shows that OpenSSL\_jll is held back by FFMPEG\_jll, but looking in the compat sections of FFMPEG\_jll’s and Plots’ project files doesn’t turn up anything. Where should I look to understand what compa…

---

## [How to use an abstract type created in module A in module B](https://discourse.julialang.org/t/how-to-use-an-abstract-type-created-in-module-a-in-module-b/104635)

<div class="topic-metadata">

**Author:** [@Rafael\_Brus](https://discourse.julialang.org/u/Rafael_Brus)\
**Replies:** 6\
**Last updated:** [October 7, 2023, 10:48pm UTC](https://discourse.julialang.org/t/how-to-use-an-abstract-type-created-in-module-a-in-module-b/104635 "2023-10-07T22:48:42Z")

</div>

Hi, I created this code in Main: module PormG abstract type PormGAbstractType end abstract type SQLType \<: PormGAbstractType end mutable struct SQLQuery \<: SQLType model\_name::Union{String, Missing} ... end funct…

---

## [Using Base.Iterators for optimization, good idea?](https://discourse.julialang.org/t/using-base-iterators-for-optimization-good-idea/104717)

<div class="topic-metadata">

**Author:** [@bguillen](https://discourse.julialang.org/u/bguillen)\
**Replies:** 0\
**Last updated:** [October 7, 2023, 10:15pm UTC](https://discourse.julialang.org/t/using-base-iterators-for-optimization-good-idea/104717 "2023-10-07T22:15:34Z")

</div>

I implemented Hoare and Lomuto’s partitions with iterators. They behave as expected in terms of numbers of comparisons (N-1) and swaps (Hoare’s doing fewer than Lomuto’s). However the benchmarks are giving me same times…

---

## [A brief for Julia in Jupyter Notebook (in Turkish)](https://discourse.julialang.org/t/a-brief-for-julia-in-jupyter-notebook-in-turkish/104710)

<div class="topic-metadata">

**Author:** [@qneoxk](https://discourse.julialang.org/u/qneoxk)\
**Replies:** 0\
**Last updated:** [October 7, 2023, 7:47pm UTC](https://discourse.julialang.org/t/a-brief-for-julia-in-jupyter-notebook-in-turkish/104710 "2023-10-07T19:47:08Z")

</div>

Some basic applications for Julia with Jupyter Notebook https://github.com/qneoxk/Julia

---

## [Streamlined way of making a package?](https://discourse.julialang.org/t/streamlined-way-of-making-a-package/104682)

<div class="topic-metadata">

**Author:** [@loisel](https://discourse.julialang.org/u/loisel)\
**Replies:** 18\
**Last updated:** [October 7, 2023, 9:26pm UTC](https://discourse.julialang.org/t/streamlined-way-of-making-a-package/104682 "2023-10-07T21:26:30Z")

</div>

Julia has a detailed, comprehensive, punctilious package management system. As a user of Julia, I am grateful for this. I’m finishing up a paper. Part of it is a new solver for some nonlinear PDEs. Although I’m a season…

---

## [Fixing plot position during an animation for CairoMakie](https://discourse.julialang.org/t/fixing-plot-position-during-an-animation-for-cairomakie/104709)

<div class="topic-metadata">

**Author:** [@Varun\_V](https://discourse.julialang.org/u/Varun_V)\
**Replies:** 1\
**Last updated:** [October 7, 2023, 9:16pm UTC](https://discourse.julialang.org/t/fixing-plot-position-during-an-animation-for-cairomakie/104709 "2023-10-07T21:16:49Z")

</div>

Hello, I want to animate a series of heatmaps and save it to a video but when I try, the heatmap does not stay in the same place and shakes (its position changes slightly for each frame). Below is code for a minimum wor…

---

## [How to use package extensions with Documenter.jl](https://discourse.julialang.org/t/how-to-use-package-extensions-with-documenter-jl/104704)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 4\
**Last updated:** [October 7, 2023, 8:55pm UTC](https://discourse.julialang.org/t/how-to-use-package-extensions-with-documenter-jl/104704 "2023-10-07T20:55:13Z")

</div>

When I test my documentation locally via LiveServer, Documenter recognizes functions in the extension in the @example macro block. However, the method is not found when the docs are built on Github. Is there a solution?

---

## [Workflow with redefining structs](https://discourse.julialang.org/t/workflow-with-redefining-structs/102982)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 0\
**Last updated:** [August 19, 2023, 3:23pm UTC](https://discourse.julialang.org/t/workflow-with-redefining-structs/102982 "2023-08-19T15:23:55Z")

</div>

Continuing the discussion from Workflow challenges with redefining structs (from "Why I still recommend Julia"): I have decided to continue in a separate topic, but please see the linked post. So, I have now managed to …

---

## [Julia 1.9 vs 1.10 incompatibility](https://discourse.julialang.org/t/julia-1-9-vs-1-10-incompatibility/104708)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 2\
**Last updated:** [October 7, 2023, 8:11pm UTC](https://discourse.julialang.org/t/julia-1-9-vs-1-10-incompatibility/104708 "2023-10-07T20:11:05Z")

</div>

This message comes up in 1.10 (1.9 is silent). the complaint is about a method from one module being overwritten in another. WARNING: Method definition inspectintegpoints(FEMM, FinEtools.NodalFieldModule.NodalField{Floa…

---

## [Is mine a genie.jl use case?](https://discourse.julialang.org/t/is-mine-a-genie-jl-use-case/104694)

<div class="topic-metadata">

**Author:** [@floswald](https://discourse.julialang.org/u/floswald)\
**Replies:** 4\
**Last updated:** [October 7, 2023, 6:30pm UTC](https://discourse.julialang.org/t/is-mine-a-genie-jl-use-case/104694 "2023-10-07T18:30:26Z")

</div>

hi all quick question for how people would address my use case. I have a google sheet where a human enters jobs to be done. I check the sheet once per day. I have another google sheet where I can see the availability …

---

## [Trouble Getting Newton solver to converge for ContinuationPar](https://discourse.julialang.org/t/trouble-getting-newton-solver-to-converge-for-continuationpar/104541)

<div class="topic-metadata">

**Author:** [@wombat1432](https://discourse.julialang.org/u/wombat1432)\
**Replies:** 9\
**Last updated:** [October 7, 2023, 3:18pm UTC](https://discourse.julialang.org/t/trouble-getting-newton-solver-to-converge-for-continuationpar/104541 "2023-10-07T15:18:03Z")

</div>

I’m trying to use Julia to analyze the Luo-Rudy model of a cardiac action potential (similar to what Tran et al did at PMID 19659123). I have the model producing reasonable-looking trajectories and I would like to make …

---

## [The erros of using RAPOSa(https://raposa.usc.es) based on AmplNLWriter](https://discourse.julialang.org/t/the-erros-of-using-raposa-https-raposa-usc-es-based-on-amplnlwriter/104493)

<div class="topic-metadata">

**Author:** [@wjulia](https://discourse.julialang.org/u/wjulia)\
**Replies:** 6\
**Last updated:** [October 7, 2023, 12:39pm UTC](https://discourse.julialang.org/t/the-erros-of-using-raposa-https-raposa-usc-es-based-on-amplnlwriter/104493 "2023-10-07T12:39:12Z")

</div>

using JuMP, AmplNLWriter m = Model(() → AmplNLWriter.Optimizer(“raposa”)) @variable(m, 1 \<= x \<= 10 ) @variable(m, 0 \<= y \<= 8 ) @NLobjective(m, Min, x^2 + y^2 + x ) @NLconstraint(m, x\*y \>= 1.0 ) optimize!(m) @sho…

---

## [Docstrings from package extensions in Documenter.jl](https://discourse.julialang.org/t/docstrings-from-package-extensions-in-documenter-jl/104690)

<div class="topic-metadata">

**Author:** [@April-Hannah-Lena](https://discourse.julialang.org/u/April-Hannah-Lena)\
**Replies:** 2\
**Last updated:** [October 7, 2023, 9:43am UTC](https://discourse.julialang.org/t/docstrings-from-package-extensions-in-documenter-jl/104690 "2023-10-07T09:43:28Z")

</div>

Say I have a package MyPackage module MyPackage """ Standard behavior. """ function do\_something(x::Vector) x .^ 3 end end # module with a CUDA extension: module CUDAExt import MyPackage: do\_something """ Spec…

---

## [How to define UInt256?](https://discourse.julialang.org/t/how-to-define-uint256/104688)

<div class="topic-metadata">

**Author:** [@tomtom](https://discourse.julialang.org/u/tomtom)\
**Replies:** 2\
**Last updated:** [October 7, 2023, 5:53am UTC](https://discourse.julialang.org/t/how-to-define-uint256/104688 "2023-10-07T05:53:36Z")

</div>

is there an efficient way to define a “big” unsigned integer type like UInt256? what things should I implement? don’t wanna use BigInt. thanks

---

## [How to create a single shared parameter for multiple gates within a circuit directly using Yao.jl?](https://discourse.julialang.org/t/how-to-create-a-single-shared-parameter-for-multiple-gates-within-a-circuit-directly-using-yao-jl/104648)

<div class="topic-metadata">

**Author:** [@nethaji8](https://discourse.julialang.org/u/nethaji8)\
**Replies:** 3\
**Last updated:** [October 7, 2023, 5:10am UTC](https://discourse.julialang.org/t/how-to-create-a-single-shared-parameter-for-multiple-gates-within-a-circuit-directly-using-yao-jl/104648 "2023-10-07T05:10:32Z")

</div>

I am trying to parameterize a circuit using a single variable θ in the code below but the output is: Number of parameters in the circuit: 4 . Can someone please help me create a single shared parameter for multiple g…

---

## [Avoid allocations for string concatenation](https://discourse.julialang.org/t/avoid-allocations-for-string-concatenation/104666)

<div class="topic-metadata">

**Author:** [@pjuergens](https://discourse.julialang.org/u/pjuergens)\
**Replies:** 5\
**Last updated:** [October 7, 2023, 3:35am UTC](https://discourse.julialang.org/t/avoid-allocations-for-string-concatenation/104666 "2023-10-07T03:35:14Z")

</div>

Hei together, I realised with the allocation profiler that our model allocates a lot when concatenating strings like "a" \* "b". Is there a way to avoid allocation in such cases? I tried with InternedStrings and intern("…

---

## [What is preventing these packages from upgrading](https://discourse.julialang.org/t/what-is-preventing-these-packages-from-upgrading/104618)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 7\
**Last updated:** [October 6, 2023, 1:47pm UTC](https://discourse.julialang.org/t/what-is-preventing-these-packages-from-upgrading/104618 "2023-10-06T13:47:37Z")

</div>

I have been experiencing a lot of package downgrades and version conflicts after adding FunctionZeros.jl to one of my projects. To investigate the matter further, I add FunctionZeros to a separate environment and examine…

---

## [Collecting a list of features Julia accidentally has](https://discourse.julialang.org/t/collecting-a-list-of-features-julia-accidentally-has/104654)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 7\
**Last updated:** [October 7, 2023, 12:41am UTC](https://discourse.julialang.org/t/collecting-a-list-of-features-julia-accidentally-has/104654 "2023-10-07T00:41:18Z")

</div>

Julia is a powerful language, so powerful it has many accidental features. First, let’s use Tullio we can create a superset of shader onto basic Julia array. Hook it up to some rendering system and we basically accident…

---

## [Best practices for passing vector index in function](https://discourse.julialang.org/t/best-practices-for-passing-vector-index-in-function/104650)

<div class="topic-metadata">

**Author:** [@bguillen](https://discourse.julialang.org/u/bguillen)\
**Replies:** 3\
**Last updated:** [October 7, 2023, 12:43am UTC](https://discourse.julialang.org/t/best-practices-for-passing-vector-index-in-function/104650 "2023-10-07T00:43:54Z")

</div>

I’m making a bunch of partition and selection functions. In my use case I will always have vectors indexed by one, but given that offsetarray exists I wonder what would be a good signature for a function that takes an ar…

---

## [Ann Arbor (USA) Julia Meetup 2023 | TUE, OCT 17 8:30 PM](https://discourse.julialang.org/t/ann-arbor-usa-julia-meetup-2023-tue-oct-17-8-30-pm/104669)

<div class="topic-metadata">

**Author:** [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Replies:** 0\
**Last updated:** [October 6, 2023, 4:43pm UTC](https://discourse.julialang.org/t/ann-arbor-usa-julia-meetup-2023-tue-oct-17-8-30-pm/104669 "2023-10-06T16:43:26Z")

</div>

Hey everyone, I’ll be in Ann Arbor so we’re putting together a local meetup on October 17th. Join if you want to chat about Julia!

---

## [Solving a system of PDEs and defining equations](https://discourse.julialang.org/t/solving-a-system-of-pdes-and-defining-equations/104444)

<div class="topic-metadata">

**Author:** [@Reza\_AO](https://discourse.julialang.org/u/Reza_AO)\
**Replies:** 3\
**Last updated:** [October 6, 2023, 11:23pm UTC](https://discourse.julialang.org/t/solving-a-system-of-pdes-and-defining-equations/104444 "2023-10-06T23:23:00Z")

</div>

Hi I want to solve a system of equation with one PDE which is heat-diffusion equation and one ODE which is Arrhenius equation: eq = \[ρ\*Cp\*Dt(T(t,x,y)) ~ kx\*Dxx(T(t,x,y)) + ky\*Dyy(T(t,x,y)) - H\*W\*Dt(c(t,x,y)), -Dt(c…

---

## [PackageCompiler.jl and default header file creation](https://discourse.julialang.org/t/packagecompiler-jl-and-default-header-file-creation/104663)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 1\
**Last updated:** [October 6, 2023, 10:28pm UTC](https://discourse.julialang.org/t/packagecompiler-jl-and-default-header-file-creation/104663 "2023-10-06T22:28:56Z")

</div>

First time using package compiler to make a shared c library of julia functions for use in a larger C and C++ project. Initially I was thinking that the compile\_library function would be able to see all of the fancy @cc…

---

## [(Insanely-) Higher Order Derivatives](https://discourse.julialang.org/t/insanely-higher-order-derivatives/104455)

<div class="topic-metadata">

**Author:** [@NitinGupta](https://discourse.julialang.org/u/NitinGupta)\
**Replies:** 36\
**Last updated:** [October 6, 2023, 10:29pm UTC](https://discourse.julialang.org/t/insanely-higher-order-derivatives/104455 "2023-10-06T22:29:58Z")

</div>

What’s the recommended way to obtain insanely high order derivatives of a complex valued (terribly complicated) function in Julia? Presently, I’m using TaylorSeries and it works fantastically. However, I need to compute…

---

## [Senior Systems Modeling and Controls Engineer, Instron](https://discourse.julialang.org/t/senior-systems-modeling-and-controls-engineer-instron/104680)

<div class="topic-metadata">

**Author:** [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Replies:** 0\
**Last updated:** [October 6, 2023, 8:18pm UTC](https://discourse.julialang.org/t/senior-systems-modeling-and-controls-engineer-instron/104680 "2023-10-06T20:18:47Z")

</div>

Posting for a friend: If you’re curious of the kind of work done here, see:

---

## [How to kill Thread which is running in background in julia](https://discourse.julialang.org/t/how-to-kill-thread-which-is-running-in-background-in-julia/104606)

<div class="topic-metadata">

**Author:** [@Jayesh\_Patil](https://discourse.julialang.org/u/Jayesh_Patil)\
**Replies:** 3\
**Last updated:** [October 6, 2023, 5:50pm UTC](https://discourse.julialang.org/t/how-to-kill-thread-which-is-running-in-background-in-julia/104606 "2023-10-06T17:50:34Z")

</div>

I have one project in that project there is process which executing some calculations . and while execution is running when user request to stop the execution of process then Django send request to julia in julia that pr…

---

## ["Switching" out the attached \`Optimizer\` of an (empty) model](https://discourse.julialang.org/t/switching-out-the-attached-optimizer-of-an-empty-model/104633)

<div class="topic-metadata">

**Author:** [@sstroemer](https://discourse.julialang.org/u/sstroemer)\
**Replies:** 9\
**Last updated:** [October 6, 2023, 5:28pm UTC](https://discourse.julialang.org/t/switching-out-the-attached-optimizer-of-an-empty-model/104633 "2023-10-06T17:28:04Z")

</div>

I’m trying to do the following, in order to “parameterize” a model function make\_parametric!(model::JuMP.Model) if !isempty(model) @error "\[core\] Model must be empty when trying to switch to parametric mode"…

---

## [How to write an asynchronous version of the following code?](https://discourse.julialang.org/t/how-to-write-an-asynchronous-version-of-the-following-code/104657)

<div class="topic-metadata">

**Author:** [@Xiaoguang\_Pan](https://discourse.julialang.org/u/Xiaoguang_Pan)\
**Replies:** 4\
**Last updated:** [October 6, 2023, 4:54pm UTC](https://discourse.julialang.org/t/how-to-write-an-asynchronous-version-of-the-following-code/104657 "2023-10-06T16:54:38Z")

</div>

function parseFiles(inputFile::String,outFile::String) outf = open(outFile,"w") ### read in and process for line in eachline(inputFile) if startswith(line,"#") continue else …

---

## [The Economics of Programming Languages](https://discourse.julialang.org/t/the-economics-of-programming-languages/104644)

<div class="topic-metadata">

**Author:** [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Replies:** 3\
**Last updated:** [October 6, 2023, 4:49pm UTC](https://discourse.julialang.org/t/the-economics-of-programming-languages/104644 "2023-10-06T16:49:26Z")

</div>

Next time a user tries to asks “How do we get that Google money?” I think we can just skip the 900 posts and all rewatch this video by the maker of Elm. Edit: Tl;Dr (updating now that it isn’t so late here…

---

## [Status of ABC-SMC samplers in Julia](https://discourse.julialang.org/t/status-of-abc-smc-samplers-in-julia/88348)

<div class="topic-metadata">

**Author:** [@fipelle](https://discourse.julialang.org/u/fipelle)\
**Replies:** 10\
**Last updated:** [October 6, 2023, 4:36pm UTC](https://discourse.julialang.org/t/status-of-abc-smc-samplers-in-julia/88348 "2023-10-06T16:36:51Z")

</div>

Hi, I was wondering what is the current status of ABC samplers in Julia. I have seen that GpABC.jl has a few options, but I was wondering if there are alternative packages with a special focus on SMC. I do not have some…

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

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