# Latest

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

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

**Page:** 233

---

## [Learning Machine Learning (SVM) with Julia](https://discourse.julialang.org/t/learning-machine-learning-svm-with-julia/36083)

<div class="topic-metadata">

**Author:** [@Fred](https://discourse.julialang.org/u/Fred)\
**Replies:** 10\
**Last updated:** [March 18, 2020, 4:38pm UTC](https://discourse.julialang.org/t/learning-machine-learning-svm-with-julia/36083 "2020-03-18T16:38:42Z")

</div>

Hi ! I would like to learn machine learning, SVM in particular. I am a complete newbie and I search few advices from experimented user before starting. 1- Is it a good idea to learn SVM with Julia or it will be much mo…

---

## [Type stability and iterating over operations](https://discourse.julialang.org/t/type-stability-and-iterating-over-operations/125019)

<div class="topic-metadata">

**Author:** [@JADekker](https://discourse.julialang.org/u/JADekker)\
**Replies:** 6\
**Last updated:** [January 23, 2025, 9:36am UTC](https://discourse.julialang.org/t/type-stability-and-iterating-over-operations/125019 "2025-01-23T09:36:50Z")

</div>

Hi, in my project I have to define a sequence of operations that need to performed on some data. Two ways of capturing this in a struct came to my mind: either store them as a vector of operations (FooVec) (which suggest…

---

## [Fitting a truncated distribution](https://discourse.julialang.org/t/fitting-a-truncated-distribution/125067)

<div class="topic-metadata">

**Author:** [@johannesnauta](https://discourse.julialang.org/u/johannesnauta)\
**Replies:** 0\
**Last updated:** [January 22, 2025, 10:33am UTC](https://discourse.julialang.org/t/fitting-a-truncated-distribution/125067 "2025-01-22T10:33:22Z")

</div>

In Distributions.jl, is there no build-in functionality to fit truncated distributions? Of course I can write a small routine to do this, but either I cannot find documentation on it, or it is perhaps not implemented? If…

---

## [JuMP register function](https://discourse.julialang.org/t/jump-register-function/125099)

<div class="topic-metadata">

**Author:** [@Sushrut\_Deshpande](https://discourse.julialang.org/u/Sushrut_Deshpande)\
**Replies:** 4\
**Last updated:** [January 23, 2025, 6:33am UTC](https://discourse.julialang.org/t/jump-register-function/125099 "2025-01-23T06:33:44Z")

</div>

Hello, This is my first time using JuMP hence my question is basic. The following fails using JuMP, Ipopt f(x) = x\[1\]^2 + x\[2\]^2 ∇f(x) = \[2\*x\[1\], 2\*x\[2\]\] ∇²f(x) = \[2 0; 0 2\] model = Model(Ipopt.Optimizer) register(mo…

---

## [Possible bug in Surrogates.jl RTEA](https://discourse.julialang.org/t/possible-bug-in-surrogates-jl-rtea/124524)

<div class="topic-metadata">

**Author:** [@ij05](https://discourse.julialang.org/u/ij05)\
**Replies:** 7\
**Last updated:** [January 23, 2025, 3:59am UTC](https://discourse.julialang.org/t/possible-bug-in-surrogates-jl-rtea/124524 "2025-01-23T03:59:35Z")

</div>

Hi, This is regarding a discrepancy that I have noticed while using the Surrogates.jl RTEA optimizer. I am not sure if this is the right medium to discuss regarding the same. Please let me know. I was going through the…

---

## [Julia v1.10.8 has been released](https://discourse.julialang.org/t/julia-v1-10-8-has-been-released/125095)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 0\
**Last updated:** [January 23, 2025, 2:46am UTC](https://discourse.julialang.org/t/julia-v1-10-8-has-been-released/125095 "2025-01-23T02:46:27Z")

</div>

Julia version 1.10.8, the eighth patch release in the 1.10 long-term support (LTS) series of releases, is now available. Binaries are available via JuliaUp and at https://julialang.org/downloads/ for macOS (Intel and M-s…

---

## [Makie recipe to plot ODESolution of DifferentialEquations.jl?](https://discourse.julialang.org/t/makie-recipe-to-plot-odesolution-of-differentialequations-jl/105879)

<div class="topic-metadata">

**Author:** [@homocomputeris](https://discourse.julialang.org/u/homocomputeris)\
**Replies:** 11\
**Last updated:** [January 23, 2025, 12:28am UTC](https://discourse.julialang.org/t/makie-recipe-to-plot-odesolution-of-differentialequations-jl/105879 "2025-01-23T00:28:55Z")

</div>

Related to this question. Is there a recipe to plot the DiffEq solution components against time? I tried Makie.convert\_arguments(sol::ODESolution) = (sol.t, \[\[v\[1\] for v in sol.u\], \[\[v\[2\] for v in sol.u\]\]\]) but it pl…

---

## [Preserve data behind nested pointers in ccall with array of structs of pointers](https://discourse.julialang.org/t/preserve-data-behind-nested-pointers-in-ccall-with-array-of-structs-of-pointers/124607)

<div class="topic-metadata">

**Author:** [@cshen](https://discourse.julialang.org/u/cshen)\
**Replies:** 3\
**Last updated:** [January 22, 2025, 11:18pm UTC](https://discourse.julialang.org/t/preserve-data-behind-nested-pointers-in-ccall-with-array-of-structs-of-pointers/124607 "2025-01-22T23:18:53Z")

</div>

Hello, I’m doing some FFI gymnastics but I am a bit lost in the woods. Here is a mock up of my situation: struct TAG\_DEF # this structure was automatically generated by Clang.jl name::Ptr{Cuchar} # string dims…

---

## [Error building FFTW on Windows](https://discourse.julialang.org/t/error-building-fftw-on-windows/125025)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 7\
**Last updated:** [January 22, 2025, 8:46pm UTC](https://discourse.julialang.org/t/error-building-fftw-on-windows/125025 "2025-01-22T20:46:20Z")

</div>

Any idea: ERROR: LoadError: Unable to open libLLVM! ... in expression starting at C:\\Users\\runneradmin\\.julia\\packages\\FFTW\\oepdx\\deps\\build\_fftw.jl:1 in expression starting at C:\\Users\\runneradmin\\.julia\\packages\\FFT…

---

## [Updates to JuMP dependencies (MathOptInterface) affecting results](https://discourse.julialang.org/t/updates-to-jump-dependencies-mathoptinterface-affecting-results/125058)

<div class="topic-metadata">

**Author:** [@nealhughes](https://discourse.julialang.org/u/nealhughes)\
**Replies:** 3\
**Last updated:** [January 22, 2025, 7:22pm UTC](https://discourse.julialang.org/t/updates-to-jump-dependencies-mathoptinterface-affecting-results/125058 "2025-01-22T19:22:56Z")

</div>

I have a large JuMP project developed on older versions of Julia (1.7.0) and JuMP (1.22.1) (because I was stuck on a corporate IT system and it was hard to update). I’ve since moved my project to a new IT system, and us…

---

## [How to get rid of allocations in this simple filtered generator example?](https://discourse.julialang.org/t/how-to-get-rid-of-allocations-in-this-simple-filtered-generator-example/124847)

<div class="topic-metadata">

**Author:** [@marius311](https://discourse.julialang.org/u/marius311)\
**Replies:** 3\
**Last updated:** [January 22, 2025, 6:45pm UTC](https://discourse.julialang.org/t/how-to-get-rid-of-allocations-in-this-simple-filtered-generator-example/124847 "2025-01-22T18:45:43Z")

</div>

Here’s a MWE of the allocating code (Julia 1.11.2): function foo() arr = \[Ref(i) for i=1:100\] iter = (i for i in arr if rand()\>0) @time begin elem, state = iterate(iter) while true …

---

## [Symbolic Integration for hard expressions and generate function](https://discourse.julialang.org/t/symbolic-integration-for-hard-expressions-and-generate-function/124744)

<div class="topic-metadata">

**Author:** [@MechRob](https://discourse.julialang.org/u/MechRob)\
**Replies:** 9\
**Last updated:** [January 22, 2025, 6:22pm UTC](https://discourse.julialang.org/t/symbolic-integration-for-hard-expressions-and-generate-function/124744 "2025-01-22T18:22:59Z")

</div>

Hello All, I am trying to generate Julia functions by deriving the symbolic expressions in Julia. I started using Symbolics.jl and SymbolicNumericIntegration.jl, however it seems that SymbolicNumericIntegration.jl is no…

---

## [Mod1 for CartesianIndex](https://discourse.julialang.org/t/mod1-for-cartesianindex/125065)

<div class="topic-metadata">

**Author:** [@JoergF](https://discourse.julialang.org/u/JoergF)\
**Replies:** 6\
**Last updated:** [January 22, 2025, 6:00pm UTC](https://discourse.julialang.org/t/mod1-for-cartesianindex/125065 "2025-01-22T18:00:47Z")

</div>

Since there is no implementation of mod1 for a CartesianIndex I wanted to implement one myself. However I am confused how to make it performant. function mod1(CI::CartesianIndex{2}, MOD::CartesianIndex{2}) Cartesian…

---

## [Calculating "triple" dot products](https://discourse.julialang.org/t/calculating-triple-dot-products/124840)

<div class="topic-metadata">

**Author:** [@kevinli1993](https://discourse.julialang.org/u/kevinli1993)\
**Replies:** 14\
**Last updated:** [January 22, 2025, 3:29pm UTC](https://discourse.julialang.org/t/calculating-triple-dot-products/124840 "2025-01-22T15:29:49Z")

</div>

I have Float64 arrays x, y, z and want to compute sum(x\[i\] \* y\[i\] \* z\[i\]) over all indices i. I’m curious what is the fastest way to calculate this? Some ideas: a plain for loop Einsum.jl OMEinsum.jl LinearAlgebra.do…

---

## [Organising JuliaAstro meeting](https://discourse.julialang.org/t/organising-juliaastro-meeting/72313)

<div class="topic-metadata">

**Author:** [@giordano](https://discourse.julialang.org/u/giordano)\
**Replies:** 5\
**Last updated:** [January 22, 2025, 3:01pm UTC](https://discourse.julialang.org/t/organising-juliaastro-meeting/72313 "2025-01-22T15:01:56Z")

</div>

We’re organising the first JuliaAstro call! This will be a very preliminary meeting, to know each other and talk about the development of Julia packages in the astronomy/astrophysics domain. If you’re interest in this …

---

## [Error adding Plots to v.1.11](https://discourse.julialang.org/t/error-adding-plots-to-v-1-11/124984)

<div class="topic-metadata">

**Author:** [@mirandaholmes](https://discourse.julialang.org/u/mirandaholmes)\
**Replies:** 6\
**Last updated:** [January 22, 2025, 2:39pm UTC](https://discourse.julialang.org/t/error-adding-plots-to-v-1-11/124984 "2025-01-22T14:39:34Z")

</div>

I recently updated my version on Julia to the latest stable version, 1.11.2, using juliaup. Now I am trying to add the set of packages that I usually add. I was able to add a few pacakges with no problems, but now I am t…

---

## [Updating latest version of package in registry](https://discourse.julialang.org/t/updating-latest-version-of-package-in-registry/125080)

<div class="topic-metadata">

**Author:** [@aris](https://discourse.julialang.org/u/aris)\
**Replies:** 2\
**Last updated:** [January 22, 2025, 1:58pm UTC](https://discourse.julialang.org/t/updating-latest-version-of-package-in-registry/125080 "2025-01-22T13:58:16Z")

</div>

Hello everyone, I’ve got a package in the julia registry, and I realized that the latest release contains a silly bug, which would be fixed by changing a single line. Would there be a way to seamlessly incorporate a ne…

---

## [Makie log scale axis with nicer ticks](https://discourse.julialang.org/t/makie-log-scale-axis-with-nicer-ticks/125062)

<div class="topic-metadata">

**Author:** [@Oto\_Brzobohaty](https://discourse.julialang.org/u/Oto_Brzobohaty)\
**Replies:** 3\
**Last updated:** [January 22, 2025, 1:02pm UTC](https://discourse.julialang.org/t/makie-log-scale-axis-with-nicer-ticks/125062 "2025-01-22T13:02:57Z")

</div>

Is there any way how to set the ticks in log scale axis automatically (default) to be only 10^N, where N is an integer? I do not like the 10^0.5 10^1.5 etc.

---

## [Virtual (or lazy) representation of a repeated array](https://discourse.julialang.org/t/virtual-or-lazy-representation-of-a-repeated-array/124954)

<div class="topic-metadata">

**Author:** [@Alexander-Barth](https://discourse.julialang.org/u/Alexander-Barth)\
**Replies:** 4\
**Last updated:** [January 22, 2025, 12:22pm UTC](https://discourse.julialang.org/t/virtual-or-lazy-representation-of-a-repeated-array/124954 "2025-01-22T12:22:50Z")

</div>

Is there an array type, that allows me to create a virtual (or lazy) representation of the following array x ? sz = (64, 64, 2, 10589) tmp = reshape(range(-1,1,64),(:,1,1,1)); x = repeat(tmp,1,sz\[2\],sz\[3\],sz\[4\]); It …

---

## [Unsatisfiable requirements](https://discourse.julialang.org/t/unsatisfiable-requirements/125040)

<div class="topic-metadata">

**Author:** [@evmi](https://discourse.julialang.org/u/evmi)\
**Replies:** 3\
**Last updated:** [January 22, 2025, 11:45am UTC](https://discourse.julialang.org/t/unsatisfiable-requirements/125040 "2025-01-22T11:45:55Z")

</div>

I tried to add ApproxBayes to Julia@v1.11 and received an ERROR: Unsatisfiable requirements detected for package StatsBase \[2913bbd2\] message. I retrograded StatsBase to a version within the compatibility window 0.24.0 -…

---

## [Can no longer use private repository on Github as dependency](https://discourse.julialang.org/t/can-no-longer-use-private-repository-on-github-as-dependency/125023)

<div class="topic-metadata">

**Author:** [@MatPeron](https://discourse.julialang.org/u/MatPeron)\
**Replies:** 5\
**Last updated:** [January 22, 2025, 11:07am UTC](https://discourse.julialang.org/t/can-no-longer-use-private-repository-on-github-as-dependency/125023 "2025-01-22T11:07:48Z")

</div>

Hello everyone. I’m quite new to Julia and I’m currently developing a package that uses several dependencies, among which are CUDA and a core package I developed myself and put on Github (basically the package is a GPU f…

---

## [Agents abmexploration callback errors in "on hover"](https://discourse.julialang.org/t/agents-abmexploration-callback-errors-in-on-hover/124675)

<div class="topic-metadata">

**Author:** [@Niall](https://discourse.julialang.org/u/Niall)\
**Replies:** 7\
**Last updated:** [January 22, 2025, 10:38am UTC](https://discourse.julialang.org/t/agents-abmexploration-callback-errors-in-on-hover/124675 "2025-01-22T10:38:18Z")

</div>

Hi. I’m struggling a bit with understanding all the details of using abmexploration with the Agents package. I got occasional crashes with small models, but they greatly increased with large numbers of agents. Finally, I…

---

## [Working with JDBC in Julia](https://discourse.julialang.org/t/working-with-jdbc-in-julia/125030)

<div class="topic-metadata">

**Author:** [@GregorM](https://discourse.julialang.org/u/GregorM)\
**Replies:** 1\
**Last updated:** [January 22, 2025, 10:37am UTC](https://discourse.julialang.org/t/working-with-jdbc-in-julia/125030 "2025-01-22T10:37:09Z")

</div>

In the last couple of years I have been using Julia for various data projects in different companies. What I’m always struggling with is getting all the needed data out of a database. In most cases databases can be acces…

---

## [Benchmarking function compile time](https://discourse.julialang.org/t/benchmarking-function-compile-time/125013)

<div class="topic-metadata">

**Author:** [@AntonReinhard](https://discourse.julialang.org/u/AntonReinhard)\
**Replies:** 10\
**Last updated:** [January 22, 2025, 10:33am UTC](https://discourse.julialang.org/t/benchmarking-function-compile-time/125013 "2025-01-22T10:33:11Z")

</div>

I have some code that generates functions at runtime that vary greatly in size (10 to 100k lines of code). I’d like to benchmark the compilation of these functions. Is there any intended way to do this? Something like a …

---

## [HTTP package install error](https://discourse.julialang.org/t/http-package-install-error/124637)

<div class="topic-metadata">

**Author:** [@v162363\_ual](https://discourse.julialang.org/u/v162363_ual)\
**Replies:** 2\
**Last updated:** [January 22, 2025, 9:43am UTC](https://discourse.julialang.org/t/http-package-install-error/124637 "2025-01-22T09:43:20Z")

</div>

I tried to install julia HTTP package and got failure artifact 'OpenSSL. julia\> Pkg.add(“HTTP”) Resolving package versions… Failure artifact: OpenSSL Downloading artifact: OpenSSL System ERROR: Failure artifact: O…

---

## [Unsatisfying results from the calibration of a model](https://discourse.julialang.org/t/unsatisfying-results-from-the-calibration-of-a-model/124912)

<div class="topic-metadata">

**Author:** [@Iforire](https://discourse.julialang.org/u/Iforire)\
**Replies:** 3\
**Last updated:** [January 22, 2025, 9:17am UTC](https://discourse.julialang.org/t/unsatisfying-results-from-the-calibration-of-a-model/124912 "2025-01-22T09:17:54Z")

</div>

Hi everyone, First of all, I am quite new to Julia and not at all an expert in either coding or optimization/modelling! I want to calibate the following model with 2 parameters to calibrate (K\[1\] and K\[2\]) and 2 variab…

---

## [Julia v1.11.3 has been released](https://discourse.julialang.org/t/julia-v1-11-3-has-been-released/125056)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 0\
**Last updated:** [January 22, 2025, 5:02am UTC](https://discourse.julialang.org/t/julia-v1-11-3-has-been-released/125056 "2025-01-22T05:02:32Z")

</div>

Julia version 1.11.3, the third patch release in the 1.11 series of releases, is now available. Binaries are available via JuliaUp and at https://julialang.org/downloads/ for macOS (Intel and M-series processors), Window…

---

## [Bilevel JuMP](https://discourse.julialang.org/t/bilevel-jump/44068)

<div class="topic-metadata">

**Author:** [@dty](https://discourse.julialang.org/u/dty)\
**Replies:** 50\
**Last updated:** [January 22, 2025, 3:59am UTC](https://discourse.julialang.org/t/bilevel-jump/44068 "2025-01-22T03:59:34Z")

</div>

How to define the right objective function in jump？Is there a problem with my definition? In addition, if the objective function is composed of multiple sub functions and cannot be represented by a single formula, the su…

---

## [CUDA app by PackageCompiler hangs at runtime on Ubuntu / Debian](https://discourse.julialang.org/t/cuda-app-by-packagecompiler-hangs-at-runtime-on-ubuntu-debian/124995)

<div class="topic-metadata">

**Author:** [@pxshen](https://discourse.julialang.org/u/pxshen)\
**Replies:** 3\
**Last updated:** [January 22, 2025, 12:49am UTC](https://discourse.julialang.org/t/cuda-app-by-packagecompiler-hangs-at-runtime-on-ubuntu-debian/124995 "2025-01-22T00:49:08Z")

</div>

Dummy app made by PackageCompiler with CUDA@5.6.1 (latest) as sole dep hangs at runtime on Ubuntu 24 and Debian 12. Works on Windows. module Dummy function julia\_main()::Cint return 0 end end name = "Dummy" uuid = …

---

## [Replicating power law distribution](https://discourse.julialang.org/t/replicating-power-law-distribution/125021)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 4\
**Last updated:** [January 21, 2025, 10:24pm UTC](https://discourse.julialang.org/t/replicating-power-law-distribution/125021 "2025-01-21T22:24:08Z")

</div>

Hi, I am trying to generate a power law degree distribution using barabasi\_albert from Graphs.jl. I am having trouble replicating the figure 4 on page 7 of this resource. Please forgive me in advance if I am doing somet…

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

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