# Latest

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

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

**Page:** 275

---

## [The smallest positive usable number](https://discourse.julialang.org/t/the-smallest-positive-usable-number/981)

<div class="topic-metadata">

**Author:** [@Alvaro\_M](https://discourse.julialang.org/u/Alvaro_M)\
**Replies:** 6\
**Last updated:** [November 18, 2024, 11:18am UTC](https://discourse.julialang.org/t/the-smallest-positive-usable-number/981 "2024-11-18T11:18:08Z")

</div>

In python to get the smallest positive usable number for a float you can use: numpy.finfo(float).tiny Julia implement the function eps, but I don’t see nothing similar to tiny. Thanks.

---

## [Issue in collision count for a ball in 2d space using agent.jl](https://discourse.julialang.org/t/issue-in-collision-count-for-a-ball-in-2d-space-using-agent-jl/122488)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 3\
**Last updated:** [November 18, 2024, 11:09am UTC](https://discourse.julialang.org/t/issue-in-collision-count-for-a-ball-in-2d-space-using-agent-jl/122488 "2024-11-18T11:09:36Z")

</div>

Hello everyone, I have made a MWE for collision problem (2d example) in Agent Based model this based on some of my previous questions. Im using interacting\_pairs to find pairs in model and count collision if it finds an…

---

## [Unexpected behavior of global variables depending on function read/write behavior](https://discourse.julialang.org/t/unexpected-behavior-of-global-variables-depending-on-function-read-write-behavior/122624)

<div class="topic-metadata">

**Author:** [@world-peace](https://discourse.julialang.org/u/world-peace)\
**Replies:** 17\
**Last updated:** [November 18, 2024, 10:11am UTC](https://discourse.julialang.org/t/unexpected-behavior-of-global-variables-depending-on-function-read-write-behavior/122624 "2024-11-18T10:11:18Z")

</div>

Hi, I have been experimenting with the behavior of global variables in Julia. I (perhaps incorrectly) believed the behavior was quite similar, if not exactly the same, as in Python. Here’s some test code: global x="x…

---

## [ChainRules(TestUtils) slow on Mac (Github CI)?](https://discourse.julialang.org/t/chainrules-testutils-slow-on-mac-github-ci/122760)

<div class="topic-metadata">

**Author:** [@juthohaegeman](https://discourse.julialang.org/u/juthohaegeman)\
**Replies:** 0\
**Last updated:** [November 18, 2024, 9:47am UTC](https://discourse.julialang.org/t/chainrules-testutils-slow-on-mac-github-ci/122760 "2024-11-18T09:47:53Z")

</div>

Is there any known issue with the speed of ChainRules.jl or ChainRulesTestUtils.jl on MacOS, in particular on the Github CI runners? For our package TensorKit.jl, we have a quite extensive suite of tests that are ran vi…

---

## [GPU Julia vs GPU Matlab](https://discourse.julialang.org/t/gpu-julia-vs-gpu-matlab/122663)

<div class="topic-metadata">

**Author:** [@Alex90](https://discourse.julialang.org/u/Alex90)\
**Replies:** 61\
**Last updated:** [November 18, 2024, 9:32am UTC](https://discourse.julialang.org/t/gpu-julia-vs-gpu-matlab/122663 "2024-11-18T09:32:18Z")

</div>

Hello, I have tested a simple math example in Julia using GPU computing and GTX 960. The code is as follows: A = CUDA.rand(151,151,151); B = similar(A); C = CUDA.zeros(151,151,151); D = similar(C); E = similar(C); F = …

---

## [How to Automatically Generate Labels for \`ComposedFunction\`s in \`Plots.jl\`?](https://discourse.julialang.org/t/how-to-automatically-generate-labels-for-composedfunction-s-in-plots-jl/122702)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 1\
**Last updated:** [November 18, 2024, 7:40am UTC](https://discourse.julialang.org/t/how-to-automatically-generate-labels-for-composedfunction-s-in-plots-jl/122702 "2024-11-18T07:40:54Z")

</div>

I have the following code: using Plots f(x) = sin(x) plot(1:10, f.(1:10); label="$f") # This works as expected; the label is "f". g = f ∘ f plot(1:10, g.(1:10); label="$g") # The label here is "Main.f ∘ Main.f", but…

---

## [Turing's negative binomial regression with horseshoe prior failing sometimes](https://discourse.julialang.org/t/turings-negative-binomial-regression-with-horseshoe-prior-failing-sometimes/121574)

<div class="topic-metadata">

**Author:** [@ayushpatnaikgit](https://discourse.julialang.org/u/ayushpatnaikgit)\
**Replies:** 1\
**Last updated:** [November 18, 2024, 6:46am UTC](https://discourse.julialang.org/t/turings-negative-binomial-regression-with-horseshoe-prior-failing-sometimes/121574 "2024-11-18T06:46:32Z")

</div>

Hi, I am trying to do a negative binomial regression using Turing. I am using the horseshoe prior. Here is my code: using Turing, StatsModels, RDatasets, Random sanction = dataset("Zelig", "sanction") function Negati…

---

## [What does “moving compiler out of Base” actually entail?](https://discourse.julialang.org/t/what-does-moving-compiler-out-of-base-actually-entail/122757)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 4\
**Last updated:** [November 18, 2024, 6:28am UTC](https://discourse.julialang.org/t/what-does-moving-compiler-out-of-base-actually-entail/122757 "2024-11-18T06:28:55Z")

</div>

The compiler is being moved out of base. What does this entail? Does that mean that the compiler extension/custom compiler pass/etc will soon no longer rely on undocumented internals? If so, this could prove very benefic…

---

## [ModellingToolkit/ optimal control training](https://discourse.julialang.org/t/modellingtoolkit-optimal-control-training/122751)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 2\
**Last updated:** [November 18, 2024, 5:34am UTC](https://discourse.julialang.org/t/modellingtoolkit-optimal-control-training/122751 "2024-11-18T05:34:58Z")

</div>

A colleague of me is going to attend a three-day CASADI training. I told him: Only advantage of CASADI over ModingToolkit is: “CASADI supports special functionality for quadratic programming problems”, in all other asp…

---

## [Why is my root process so much longer than my other processes?](https://discourse.julialang.org/t/why-is-my-root-process-so-much-longer-than-my-other-processes/122673)

<div class="topic-metadata">

**Author:** [@Thomas\_Van\_Giel](https://discourse.julialang.org/u/Thomas_Van_Giel)\
**Replies:** 3\
**Last updated:** [November 18, 2024, 2:59am UTC](https://discourse.julialang.org/t/why-is-my-root-process-so-much-longer-than-my-other-processes/122673 "2024-11-18T02:59:22Z")

</div>

I’m trying to profile my code with the @profview command in VScode. After ~1000 seconds of running, this is what the profiling gives me: What could be the reasons root taking so much longer than all my other processe…

---

## [How to get a linsolve solution in matrix form?](https://discourse.julialang.org/t/how-to-get-a-linsolve-solution-in-matrix-form/39710)

<div class="topic-metadata">

**Author:** [@Jorge\_Silva](https://discourse.julialang.org/u/Jorge_Silva)\
**Replies:** 2\
**Last updated:** [November 18, 2024, 1:57am UTC](https://discourse.julialang.org/t/how-to-get-a-linsolve-solution-in-matrix-form/39710 "2024-11-18T01:57:30Z")

</div>

m using SymPy in Julia. My purpose is to solve a homogeneous system of linear equations (Ax=0) with more unknowns than variables (A is not square). Then, Im using the following code. using SymPy x, y, z, w = symbols("x…

---

## [Left join algorithm for columnar tables](https://discourse.julialang.org/t/left-join-algorithm-for-columnar-tables/122725)

<div class="topic-metadata">

**Author:** [@memosik97](https://discourse.julialang.org/u/memosik97)\
**Replies:** 4\
**Last updated:** [November 18, 2024, 1:20am UTC](https://discourse.julialang.org/t/left-join-algorithm-for-columnar-tables/122725 "2024-11-18T01:20:36Z")

</div>

Hello I’m making custom Tables (Dict{Symbol, Vector} basically) since there seems to be no library matching my needs (columnar tables optimized for data insertions). I’m just a beginner (few days into Julia). I have a w…

---

## [Help me think through an efficient workflow for GPS data:](https://discourse.julialang.org/t/help-me-think-through-an-efficient-workflow-for-gps-data/122563)

<div class="topic-metadata">

**Author:** [@GeodeticR](https://discourse.julialang.org/u/GeodeticR)\
**Replies:** 4\
**Last updated:** [November 18, 2024, 1:00am UTC](https://discourse.julialang.org/t/help-me-think-through-an-efficient-workflow-for-gps-data/122563 "2024-11-18T01:00:31Z")

</div>

I have 371-files of detrended GPS data formatted like such: \[decimalyear, longitude, latitude, value, sigma, station\] My end goal is plot smoothed data by region to highlight an anomaly I’m looking at for my masters th…

---

## [Why does Julia use so much memory?](https://discourse.julialang.org/t/why-does-julia-use-so-much-memory/76677)

<div class="topic-metadata">

**Author:** [@rogerkeays](https://discourse.julialang.org/u/rogerkeays)\
**Replies:** 16\
**Last updated:** [November 17, 2024, 11:14pm UTC](https://discourse.julialang.org/t/why-does-julia-use-so-much-memory/76677 "2024-11-17T23:14:51Z")

</div>

Julia seems to have a pretty high memory footprint. For example, compared to Lisp, which has similar features (dynamic types, homoiconic, incremental compling etc), Julia is pretty bad \[1\]. Is it just because Julia is s…

---

## [Generating C code from JuMP.jl model](https://discourse.julialang.org/t/generating-c-code-from-jump-jl-model/122736)

<div class="topic-metadata">

**Author:** [@langestefan](https://discourse.julialang.org/u/langestefan)\
**Replies:** 7\
**Last updated:** [November 17, 2024, 10:20pm UTC](https://discourse.julialang.org/t/generating-c-code-from-jump-jl-model/122736 "2024-11-17T22:20:53Z")

</div>

I have defined an MILP model in JuMP.jl. This model works great. Now I would like to implement it on a real time controller in C. Is there a way to generate C code for my model so that I can just copy paste it into my p…

---

## [How to create a Manifest file that works also with the test environment?](https://discourse.julialang.org/t/how-to-create-a-manifest-file-that-works-also-with-the-test-environment/122746)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [November 17, 2024, 10:05pm UTC](https://discourse.julialang.org/t/how-to-create-a-manifest-file-that-works-also-with-the-test-environment/122746 "2024-11-17T22:05:35Z")

</div>

Sometimes I have the problem that activating the test environment downgrades packages of the main environment. This can be time consuming and even error prone. I now use the following script to create a Manifest.toml f…

---

## [TagBot fails to release new tag](https://discourse.julialang.org/t/tagbot-fails-to-release-new-tag/122748)

<div class="topic-metadata">

**Author:** [@Tortar](https://discourse.julialang.org/u/Tortar)\
**Replies:** 0\
**Last updated:** [November 17, 2024, 9:21pm UTC](https://discourse.julialang.org/t/tagbot-fails-to-release-new-tag/122748 "2024-11-17T21:21:16Z")

</div>

Somehow I’m unable to release new tags with TagBot for GitHub - Tortar/DynamicSampling.jl: Sampling methods for dynamic discrete distributions, it says Processing version v0.4.0 (b10d487513b8a1c4a878494f716cae3e85c5607e…

---

## [Status of Julia 1.12](https://discourse.julialang.org/t/status-of-julia-1-12/122731)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 5\
**Last updated:** [November 17, 2024, 6:36pm UTC](https://discourse.julialang.org/t/status-of-julia-1-12/122731 "2024-11-17T18:36:04Z")

</div>

What is the current status of Julia 1.12? When can we expect a feature freeze? Which larger new features are to be expected? If I look at 1.12 Milestone · GitHub not much happened in the last 4 weeks. Is that misleadi…

---

## [Adding PID controller to a MIMO state space system](https://discourse.julialang.org/t/adding-pid-controller-to-a-mimo-state-space-system/122681)

<div class="topic-metadata">

**Author:** [@victor](https://discourse.julialang.org/u/victor)\
**Replies:** 7\
**Last updated:** [November 17, 2024, 6:55pm UTC](https://discourse.julialang.org/t/adding-pid-controller-to-a-mimo-state-space-system/122681 "2024-11-17T18:55:12Z")

</div>

I have a state space process with two inputs and one output. The inputs are highly coupled. I would like to add a PID controller to one of the inputs with the output as measurement value. But I’m having a hard time with …

---

## [Unroll setfield!](https://discourse.julialang.org/t/unroll-setfield/122545)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 30\
**Last updated:** [November 17, 2024, 1:53pm UTC](https://discourse.julialang.org/t/unroll-setfield/122545 "2024-11-17T13:53:07Z")

</div>

I need to unroll a loop calling setfield! to build a data structure. A MWE is below: julia\> @kwdef mutable struct Data32 a::Int32 = 0 b::Float32 = 0 c::String = "" d::Int32 = …

---

## [Julia ❤️ ABM tutorial series](https://discourse.julialang.org/t/julia-abm-tutorial-series/99300)

<div class="topic-metadata">

**Author:** [@fbanning](https://discourse.julialang.org/u/fbanning)\
**Replies:** 1\
**Last updated:** [November 17, 2024, 5:23pm UTC](https://discourse.julialang.org/t/julia-abm-tutorial-series/99300 "2024-11-17T17:23:37Z")

</div>

Julia :heart: ABM is a tutorial series on coding agent-based models in Julia. I write on it in irregular intervals - basically whenever I find some time to extend on it. List of issues so far: Julia :heart: ABM #0: Ag…

---

## [Blocked Updates/ Upgrades while adding "DifferentialEquations" package](https://discourse.julialang.org/t/blocked-updates-upgrades-while-adding-differentialequations-package/122450)

<div class="topic-metadata">

**Author:** [@Ziad\_ishere](https://discourse.julialang.org/u/Ziad_ishere)\
**Replies:** 5\
**Last updated:** [November 17, 2024, 5:11pm UTC](https://discourse.julialang.org/t/blocked-updates-upgrades-while-adding-differentialequations-package/122450 "2024-11-17T17:11:54Z")

</div>

When i attempt to add DifferentialEquations package, some dependencies do not install, what could be the cause? Should i reinstall Julia with different version? julia\> Pkg.add("DifferentialEquations") Resolving packa…

---

## [Is the Main module the only module where a relative path is not required?](https://discourse.julialang.org/t/is-the-main-module-the-only-module-where-a-relative-path-is-not-required/122713)

<div class="topic-metadata">

**Author:** [@world-peace](https://discourse.julialang.org/u/world-peace)\
**Replies:** 1\
**Last updated:** [November 17, 2024, 11:16am UTC](https://discourse.julialang.org/t/is-the-main-module-the-only-module-where-a-relative-path-is-not-required/122713 "2024-11-17T11:16:13Z")

</div>

Just noticed something which I’m slightly confused by and looks a bit inconsistent. If I write a file main.jl containing the following code include("ExampleModule.jl\`) ExampleModule.exampleFunction() why does this wo…

---

## [Can the overhead of \`myT{\<:T}\` compared to \`myT{T}\`, where \`T\` is a concrete type, be avoided?](https://discourse.julialang.org/t/can-the-overhead-of-myt-t-compared-to-myt-t-where-t-is-a-concrete-type-be-avoided/122721)

<div class="topic-metadata">

**Author:** [@frankwswang](https://discourse.julialang.org/u/frankwswang)\
**Replies:** 3\
**Last updated:** [November 17, 2024, 11:05am UTC](https://discourse.julialang.org/t/can-the-overhead-of-myt-t-compared-to-myt-t-where-t-is-a-concrete-type-be-avoided/122721 "2024-11-17T11:05:17Z")

</div>

I understand that Vector{\<:Float64} is not the same as Vector{Float64} as it allows the bottom type Union{} to be its element type and is (therefore) not a concrete type: julia\> Vector{Union{}} \<: Vector{\<:Float64} true…

---

## [Terminating a while loop on an empty-line input](https://discourse.julialang.org/t/terminating-a-while-loop-on-an-empty-line-input/122715)

<div class="topic-metadata">

**Author:** [@hack3rcon](https://discourse.julialang.org/u/hack3rcon)\
**Replies:** 5\
**Last updated:** [November 17, 2024, 9:39am UTC](https://discourse.julialang.org/t/terminating-a-while-loop-on-an-empty-line-input/122715 "2024-11-17T09:39:37Z")

</div>

Hello, I want this program to take some numbers from the input and print their sum. This happens until the Enter key is pressed: function numbers() flag = 0 sum = 0 while flag != "" print("Enter the…

---

## [A slight confusion with a \`let\` block](https://discourse.julialang.org/t/a-slight-confusion-with-a-let-block/122726)

<div class="topic-metadata">

**Author:** [@Dan](https://discourse.julialang.org/u/Dan)\
**Replies:** 2\
**Last updated:** [November 17, 2024, 2:01am UTC](https://discourse.julialang.org/t/a-slight-confusion-with-a-let-block/122726 "2024-11-17T02:01:59Z")

</div>

Playing around the REPL, I got confused by the following (Julia 1.11): julia\> using StaticArrays julia\> L = 3; julia\> let L = 5, Q = @MVector \[false for i in 1:L\] @show L, Q end (L, Q) = (5, Bool\[0, 0, 0…

---

## [Does knowing Rust make you a better Julia programmer](https://discourse.julialang.org/t/does-knowing-rust-make-you-a-better-julia-programmer/122668)

<div class="topic-metadata">

**Author:** [@marquito](https://discourse.julialang.org/u/marquito)\
**Replies:** 17\
**Last updated:** [November 17, 2024, 2:09am UTC](https://discourse.julialang.org/t/does-knowing-rust-make-you-a-better-julia-programmer/122668 "2024-11-17T02:09:46Z")

</div>

I am interested in the usual “does knowing X make you better at Y” theme, where X=Rust and Y=Julia, as someone who more or less knows Julia (and basic C programming), but has no experience with Rust yet. If you think t…

---

## [Query on date doesn't return what expected](https://discourse.julialang.org/t/query-on-date-doesnt-return-what-expected/122512)

<div class="topic-metadata">

**Author:** [@andreh](https://discourse.julialang.org/u/andreh)\
**Replies:** 25\
**Last updated:** [November 16, 2024, 10:25pm UTC](https://discourse.julialang.org/t/query-on-date-doesnt-return-what-expected/122512 "2024-11-16T22:25:20Z")

</div>

I am using SQLite to perform queries on my Table “Todos” I run on julia the commands: julia\> using SQLite julia\> db = SQLite.DB(“db/dev.sqlite3”) julia\> using DataFrames From my “Todos” table I want to return valu…

---

## [CFP Open for the Data Analytics DevRoom at FOSDEM 2025](https://discourse.julialang.org/t/cfp-open-for-the-data-analytics-devroom-at-fosdem-2025/122579)

<div class="topic-metadata">

**Author:** [@supercoco9](https://discourse.julialang.org/u/supercoco9)\
**Replies:** 2\
**Last updated:** [November 16, 2024, 9:04pm UTC](https://discourse.julialang.org/t/cfp-open-for-the-data-analytics-devroom-at-fosdem-2025/122579 "2024-11-16T21:04:20Z")

</div>

Hi. I am one of the organisers for the Data Analytics DevRoom at FOSDEM 2025. For those of you that are not familiar with FOSDEM, it is the largest Free and Open Source event in Europe, and it takes place every year in B…

---

## [Creating an Iterable of Dicts](https://discourse.julialang.org/t/creating-an-iterable-of-dicts/122527)

<div class="topic-metadata">

**Author:** [@Niall](https://discourse.julialang.org/u/Niall)\
**Replies:** 15\
**Last updated:** [November 16, 2024, 7:44pm UTC](https://discourse.julialang.org/t/creating-an-iterable-of-dicts/122527 "2024-11-16T19:44:55Z")

</div>

Hi. I’m interested in learning more about creating Iterables to save space. In particular, right now I want to create an Iterable that runs through the rows of a truth table. The following code generates an array that (a…

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

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