# Latest

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

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

**Page:** 235

---

## [Is there anything like Python's import or Rust's mod/use in Julia?](https://discourse.julialang.org/t/is-there-anything-like-pythons-import-or-rusts-mod-use-in-julia/124960)

<div class="topic-metadata">

**Author:** [@Tehtiam](https://discourse.julialang.org/u/Tehtiam)\
**Replies:** 5\
**Last updated:** [January 20, 2025, 5:10pm UTC](https://discourse.julialang.org/t/is-there-anything-like-pythons-import-or-rusts-mod-use-in-julia/124960 "2025-01-20T17:10:29Z")

</div>

Hello, everyone. I am asking a question on Julia’s code loading mechanism. In Python, import some\_module can be used for both importing some package in site packages and loading a module file in the same directory. Howe…

---

## [Create\_library method not exporting the ccallable function](https://discourse.julialang.org/t/create-library-method-not-exporting-the-ccallable-function/124950)

<div class="topic-metadata">

**Author:** [@Sandy45](https://discourse.julialang.org/u/Sandy45)\
**Replies:** 0\
**Last updated:** [January 20, 2025, 6:29am UTC](https://discourse.julialang.org/t/create-library-method-not-exporting-the-ccallable-function/124950 "2025-01-20T06:29:36Z")

</div>

I am trying to precompile my module using create\_library method and try to call the functions exported in dll files from my julia app but create\_library isn’t exporting ccallable functions that has been created in my mod…

---

## [Extremely slow debugging in VS Code](https://discourse.julialang.org/t/extremely-slow-debugging-in-vs-code/124762)

<div class="topic-metadata">

**Author:** [@MathMan](https://discourse.julialang.org/u/MathMan)\
**Replies:** 53\
**Last updated:** [January 20, 2025, 4:30pm UTC](https://discourse.julialang.org/t/extremely-slow-debugging-in-vs-code/124762 "2025-01-20T16:30:12Z")

</div>

I am new to Julia. I installed the application and the VS Code extension. When I run very simple scripts, e.g. just plotting a sin() function, stepping through the program via breakpoints is nearly impossible. Stepping f…

---

## [VMRobotControl.jl](https://discourse.julialang.org/t/vmrobotcontrol-jl/124972)

<div class="topic-metadata">

**Author:** [@Larbino1](https://discourse.julialang.org/u/Larbino1)\
**Replies:** 2\
**Last updated:** [January 20, 2025, 4:19pm UTC](https://discourse.julialang.org/t/vmrobotcontrol-jl/124972 "2025-01-20T16:19:47Z")

</div>

I’d like to announce the release of a package for modelling, simulating and controlling torque-controlled robots that I have developed as part of my PhD in the control lab at Cambridge (No not that Cambridge, the origina…

---

## [Convert vector of binaries to decimal and/or hex](https://discourse.julialang.org/t/convert-vector-of-binaries-to-decimal-and-or-hex/124974)

<div class="topic-metadata">

**Author:** [@stefaniecg](https://discourse.julialang.org/u/stefaniecg)\
**Replies:** 4\
**Last updated:** [January 20, 2025, 4:15pm UTC](https://discourse.julialang.org/t/convert-vector-of-binaries-to-decimal-and-or-hex/124974 "2025-01-20T16:15:43Z")

</div>

I want to convert a binary string to decimal. This converst one item of the array to an int value: bit\_vector = digits(0x0284, base=2, pad=16) convert(Int,bit\_vector\[1\]) but i want something like this, but it does not…

---

## [Documenter.jl PDF output on MacOS](https://discourse.julialang.org/t/documenter-jl-pdf-output-on-macos/124969)

<div class="topic-metadata">

**Author:** [@Eetu\_Reijonen](https://discourse.julialang.org/u/Eetu_Reijonen)\
**Replies:** 0\
**Last updated:** [January 20, 2025, 2:13pm UTC](https://discourse.julialang.org/t/documenter-jl-pdf-output-on-macos/124969 "2025-01-20T14:13:30Z")

</div>

Has anyone been able to create PDF output with Documenter.jl on MacOS? I have used way too much time trying to get this to work with no success. The Documenter.jl documentation is quite short and I have no idea what cou…

---

## [Looking for opinion on dot methods completion implementation](https://discourse.julialang.org/t/looking-for-opinion-on-dot-methods-completion-implementation/97153)

<div class="topic-metadata">

**Author:** [@xgdgsc](https://discourse.julialang.org/u/xgdgsc)\
**Replies:** 3\
**Last updated:** [January 20, 2025, 12:51pm UTC](https://discourse.julialang.org/t/looking-for-opinion-on-dot-methods-completion-implementation/97153 "2025-01-20T12:51:39Z")

</div>

After reading Allowing the object.method(args...) syntax as an alias for method(object, args ...) and some complaints on other blog posts, I’ m working on an implementation like something in Goland in vscode extension.…

---

## [Simple, understandable iterator](https://discourse.julialang.org/t/simple-understandable-iterator/124937)

<div class="topic-metadata">

**Author:** [@jlapeyre](https://discourse.julialang.org/u/jlapeyre)\
**Replies:** 0\
**Last updated:** [January 20, 2025, 1:24am UTC](https://discourse.julialang.org/t/simple-understandable-iterator/124937 "2025-01-20T01:24:44Z")

</div>

It’s been noted that a lot of Julia code has more unnecessary allocation and construction of containers than, say, Rust code. I think this is due in large part to Julia’s dual role as a programming language and an applic…

---

## [Make the extension ignore some folders](https://discourse.julialang.org/t/make-the-extension-ignore-some-folders/124955)

<div class="topic-metadata">

**Author:** [@Kolaru](https://discourse.julialang.org/u/Kolaru)\
**Replies:** 0\
**Last updated:** [January 20, 2025, 10:20am UTC](https://discourse.julialang.org/t/make-the-extension-ignore-some-folders/124955 "2025-01-20T10:20:15Z")

</div>

I was using a workspace which includes a (quite big) shared folder. Since VSCode and the julia extension look into the workspace (for some indexing purpose I think), this was putting a bit too much load on the shared fol…

---

## [3D rigid body energy level - from Matlab to Julia](https://discourse.julialang.org/t/3d-rigid-body-energy-level-from-matlab-to-julia/124880)

<div class="topic-metadata">

**Author:** [@khaledharizb](https://discourse.julialang.org/u/khaledharizb)\
**Replies:** 3\
**Last updated:** [January 20, 2025, 9:14am UTC](https://discourse.julialang.org/t/3d-rigid-body-energy-level-from-matlab-to-julia/124880 "2025-01-20T09:14:12Z")

</div>

I would like to plot the energy level of the 3D rigid body, with Matlab found the following code clear all figure for H=\[.01:0.05:0.46 .5 .54:0.05:1.5\] I1=2;I2=1;I3=2/3; y1=\[-1:.0001:0\]; y2=sqrt(((2\*H-1/I3)-(1/I1-1/I3)…

---

## [How can different versions of julia in juliaup share a same \`startup.jl\` file?](https://discourse.julialang.org/t/how-can-different-versions-of-julia-in-juliaup-share-a-same-startup-jl-file/124948)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 4\
**Last updated:** [January 20, 2025, 8:30am UTC](https://discourse.julialang.org/t/how-can-different-versions-of-julia-in-juliaup-share-a-same-startup-jl-file/124948 "2025-01-20T08:30:05Z")

</div>

How can different versions of julia in juliaup share a same startup.jl file? For example, I have installed julia v1.11.2 and v1.10.7 in juliaup and they both appears in the JULIAUP\_DEPOT\_PATH, but the startup.jl files a…

---

## [CPU threads stress test problem](https://discourse.julialang.org/t/cpu-threads-stress-test-problem/124849)

<div class="topic-metadata">

**Author:** [@Mohamad\_Badiez](https://discourse.julialang.org/u/Mohamad_Badiez)\
**Replies:** 3\
**Last updated:** [January 20, 2025, 7:54am UTC](https://discourse.julialang.org/t/cpu-threads-stress-test-problem/124849 "2025-01-20T07:54:56Z")

</div>

Hi everybody, I want to test my CPU threads in full load. I wrote this code: https://github.com/mbzadegan/Fortran\_Julia\_HPC/blob/main/cpu\_stress\_test.jl When I run it with the -t auto option, my CPU threads get a ful…

---

## [Experience with FunctionalCollections.jl](https://discourse.julialang.org/t/experience-with-functionalcollections-jl/124951)

<div class="topic-metadata">

**Author:** [@ShalokShalom](https://discourse.julialang.org/u/ShalokShalom)\
**Replies:** 0\
**Last updated:** [January 20, 2025, 7:39am UTC](https://discourse.julialang.org/t/experience-with-functionalcollections-jl/124951 "2025-01-20T07:39:46Z")

</div>

Who has practical experience with the FunctionalCollections package, please? I like to adopt a persistent datastructure and it seems the most advanced. Still, it hasn’t gotten any update in years. Is it simply complet…

---

## [MetaheuristicsAlgorithms.jl: Now Over 100 Algorithms!](https://discourse.julialang.org/t/metaheuristicsalgorithms-jl-now-over-100-algorithms/124930)

<div class="topic-metadata">

**Author:** [@AbdelazimHussien](https://discourse.julialang.org/u/AbdelazimHussien)\
**Replies:** 3\
**Last updated:** [January 20, 2025, 6:54am UTC](https://discourse.julialang.org/t/metaheuristicsalgorithms-jl-now-over-100-algorithms/124930 "2025-01-20T06:54:53Z")

</div>

I’m excited to share that MetaheuristicsAlgorithms.jl has grown significantly since its release. The package now includes over 100 algorithms, with plans to expand it to 200 original algorithms as well as enhanced versio…

---

## [SelfStarter: make Julia scripts self-starters](https://discourse.julialang.org/t/selfstarter-make-julia-scripts-self-starters/124917)

<div class="topic-metadata">

**Author:** [@inokawazu](https://discourse.julialang.org/u/inokawazu)\
**Replies:** 5\
**Last updated:** [January 20, 2025, 6:39am UTC](https://discourse.julialang.org/t/selfstarter-make-julia-scripts-self-starters/124917 "2025-01-20T06:39:35Z")

</div>

I would like to share a package I wrote a first draft of today called SelfStarter. Essentially, it’s a way to make your script self-contained via a simple macro, @selfstart, and Julia’s standard library package, Pkg. It’…

---

## [Why is IPOPT executed repeatedly for OPF on MultiNetworks from PowerModels.jl?](https://discourse.julialang.org/t/why-is-ipopt-executed-repeatedly-for-opf-on-multinetworks-from-powermodels-jl/124936)

<div class="topic-metadata">

**Author:** [@beccy\_julia](https://discourse.julialang.org/u/beccy_julia)\
**Replies:** 5\
**Last updated:** [January 20, 2025, 2:09am UTC](https://discourse.julialang.org/t/why-is-ipopt-executed-repeatedly-for-opf-on-multinetworks-from-powermodels-jl/124936 "2025-01-20T02:09:13Z")

</div>

Dear community, I am using Multi Networks from PowerModels.jl on which I would like to run Optimal Power Flow (OPF). I use the MINLP solver Juniper with IPOPT as the nlp-solver. As a test grid I take the IEEE case14 and …

---

## [Why is BigFloat mutable?](https://discourse.julialang.org/t/why-is-bigfloat-mutable/124918)

<div class="topic-metadata">

**Author:** [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Replies:** 18\
**Last updated:** [January 20, 2025, 1:29am UTC](https://discourse.julialang.org/t/why-is-bigfloat-mutable/124918 "2025-01-20T01:29:33Z")

</div>

In adding more tests to BorrowChecker.jl, I ran into the weird cases of BigInt and BigFloat. Apparently these are actually mutable: julia\> x = big(1.0) 1.0 julia\> y = x 1.0 julia\> y.prec \*= 2 512 julia\> x # \[Origina…

---

## [@threads in for loop and push! in if statement](https://discourse.julialang.org/t/threads-in-for-loop-and-push-in-if-statement/124916)

<div class="topic-metadata">

**Author:** [@Stephen](https://discourse.julialang.org/u/Stephen)\
**Replies:** 6\
**Last updated:** [January 20, 2025, 1:19am UTC](https://discourse.julialang.org/t/threads-in-for-loop-and-push-in-if-statement/124916 "2025-01-20T01:19:21Z")

</div>

Hello there, I’m using @threads to accelerate my for loop, I don’t know how to push! a variable in if , I ask ChatGPT, it gives the code as following: # Initialize an empty array to store symbols, shared across threads …

---

## [Why does \`@inbounds\` disable constant propagation?](https://discourse.julialang.org/t/why-does-inbounds-disable-constant-propagation/105789)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 25\
**Last updated:** [January 20, 2025, 12:00am UTC](https://discourse.julialang.org/t/why-does-inbounds-disable-constant-propagation/105789 "2025-01-20T00:00:58Z")

</div>

The Julia manual says: An explicit @inbounds annotation inside the function will also disable constant folding and not be overridden by :foldable. Some other references of this fact: Issue #48245 says: turning on -…

---

## [Environment variables, debugging, globals, etcetera](https://discourse.julialang.org/t/environment-variables-debugging-globals-etcetera/124928)

<div class="topic-metadata">

**Author:** [@Joris\_Pinkse](https://discourse.julialang.org/u/Joris_Pinkse)\
**Replies:** 2\
**Last updated:** [January 19, 2025, 11:49pm UTC](https://discourse.julialang.org/t/environment-variables-debugging-globals-etcetera/124928 "2025-01-19T23:49:12Z")

</div>

Suppose that I want to use a global switch to turn certain activity on or off. An example activity would be to save a large amount of state information to disk after an iteration (or not). There are several ways of ach…

---

## [Any way to do asymmetric tolerances in Julia?](https://discourse.julialang.org/t/any-way-to-do-asymmetric-tolerances-in-julia/124933)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 4\
**Last updated:** [January 19, 2025, 11:28pm UTC](https://discourse.julialang.org/t/any-way-to-do-asymmetric-tolerances-in-julia/124933 "2025-01-19T23:28:11Z")

</div>

Hello! Suppose I have: LowerTolerance = 1 UpperTolerance = 3 Could I then have an assymmetric tolerance such that if I have a value of x = 10, its lower bound would be 9 and upper bound 13? Measurements.jl seems inca…

---

## [Tidier ! ! interpolation of external variables](https://discourse.julialang.org/t/tidier-interpolation-of-external-variables/124776)

<div class="topic-metadata">

**Author:** [@hatmatrix](https://discourse.julialang.org/u/hatmatrix)\
**Replies:** 8\
**Last updated:** [January 19, 2025, 11:23pm UTC](https://discourse.julialang.org/t/tidier-interpolation-of-external-variables/124776 "2025-01-19T23:23:16Z")

</div>

Invoking the @filter function in the TidierData package, I’m trying to use the the !! syntax to refer to a variable not in the data frame as described here: If you want to refer to an object a that is defined outside o…

---

## [Type instability when broadcasting anonymous function](https://discourse.julialang.org/t/type-instability-when-broadcasting-anonymous-function/124924)

<div class="topic-metadata">

**Author:** [@Eliassj](https://discourse.julialang.org/u/Eliassj)\
**Replies:** 3\
**Last updated:** [January 19, 2025, 11:06pm UTC](https://discourse.julialang.org/t/type-instability-when-broadcasting-anonymous-function/124924 "2025-01-19T23:06:45Z")

</div>

I found the following behavior a bit strange. When defining a function anonymously, broadcasting it introduces type instability? julia\> f = x -\> x^2 # Simple function #1 (generic function with 1 method) julia\> @code\_wa…

---

## [I have noticed a cold period for mojo, the reason?](https://discourse.julialang.org/t/i-have-noticed-a-cold-period-for-mojo-the-reason/124931)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [January 19, 2025, 8:29pm UTC](https://discourse.julialang.org/t/i-have-noticed-a-cold-period-for-mojo-the-reason/124931 "2025-01-19T20:29:02Z")

</div>

Looking on google trends, I have noticed that the Mojo language, that in many way has similar objectives than Julia, has gonna trough a would-call “cold” adoption, after an initial warm welcoming and despite both the ped…

---

## [How to update julia from downloaded tar.gz file](https://discourse.julialang.org/t/how-to-update-julia-from-downloaded-tar-gz-file/124913)

<div class="topic-metadata">

**Author:** [@jinfreedom](https://discourse.julialang.org/u/jinfreedom)\
**Replies:** 2\
**Last updated:** [January 19, 2025, 8:21pm UTC](https://discourse.julialang.org/t/how-to-update-julia-from-downloaded-tar-gz-file/124913 "2025-01-19T20:21:08Z")

</div>

I currently have Julia 1.9.3 on win11 WSL2 and would like to upgrade to 1.10.7 LTS. I followed suggestions to use juliaup which I managed to install. I ran ~\>\>juliaup add 1.10 but the download was enormously slow (due…

---

## [Contour plot on Structured grid using Meshes.jl](https://discourse.julialang.org/t/contour-plot-on-structured-grid-using-meshes-jl/123854)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 4\
**Last updated:** [January 19, 2025, 6:18pm UTC](https://discourse.julialang.org/t/contour-plot-on-structured-grid-using-meshes-jl/123854 "2025-01-19T18:18:18Z")

</div>

In Julia i am using Meshes.jl and GLMakie.jl . I am using x , z, alfsurf and psi variables of size (109,50) each. I input them to StructuredGrid() function which creates a structured grid of size (108,49). using Meshe…

---

## [App compilation](https://discourse.julialang.org/t/app-compilation/122374)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 5\
**Last updated:** [January 19, 2025, 3:27pm UTC](https://discourse.julialang.org/t/app-compilation/122374 "2025-01-19T15:27:47Z")

</div>

I’m currently trying to make a docker image from Julia code. So far, I tested two approaches, making a sysimage and making an app. In either case a sysimage is created in the process. My question is: What do I need to do…

---

## [\[ANN\] PeriodicSystems.jl - Analysis and design of linear periodic time-varying systems](https://discourse.julialang.org/t/ann-periodicsystems-jl-analysis-and-design-of-linear-periodic-time-varying-systems/124919)

<div class="topic-metadata">

**Author:** [@andreasvarga](https://discourse.julialang.org/u/andreasvarga)\
**Replies:** 0\
**Last updated:** [January 19, 2025, 12:32pm UTC](https://discourse.julialang.org/t/ann-periodicsystems-jl-analysis-and-design-of-linear-periodic-time-varying-systems/124919 "2025-01-19T12:32:55Z")

</div>

Many control system applications are formulated as genuine periodic control problems, as for example, satellite attitude control, helicopter forward flight control, orbital stabilization of underactuated systems, etc. Be…

---

## [Error at structure initialization](https://discourse.julialang.org/t/error-at-structure-initialization/124893)

<div class="topic-metadata">

**Author:** [@Bogdan\_Virag](https://discourse.julialang.org/u/Bogdan_Virag)\
**Replies:** 1\
**Last updated:** [January 19, 2025, 12:06pm UTC](https://discourse.julialang.org/t/error-at-structure-initialization/124893 "2025-01-19T12:06:26Z")

</div>

Hi! I created a structure for ML (for a generalized linear modell) and i want to store the linking function by initializing the structure using the name of the distribution. The code of the structure: mutable struct G…

---

## [JuMP - Finding feasible discrete solutions](https://discourse.julialang.org/t/jump-finding-feasible-discrete-solutions/124865)

<div class="topic-metadata">

**Author:** [@samram](https://discourse.julialang.org/u/samram)\
**Replies:** 6\
**Last updated:** [January 19, 2025, 11:21am UTC](https://discourse.julialang.org/t/jump-finding-feasible-discrete-solutions/124865 "2025-01-19T11:21:43Z")

</div>

Hi - I’ve been enjoying experimenting with JuMP recently and I’m very grateful to the devs for open-sourcing this project. In general, I need to solve constrained non-linear mixed-integer optimisation problems. I’ve had …

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

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