# Latest

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

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

**Page:** 344

---

## [Code works when debugging but not otherwise in repl](https://discourse.julialang.org/t/code-works-when-debugging-but-not-otherwise-in-repl/118137)

<div class="topic-metadata">

**Author:** [@PeterCourcoux](https://discourse.julialang.org/u/PeterCourcoux)\
**Replies:** 1\
**Last updated:** [August 13, 2024, 4:49pm UTC](https://discourse.julialang.org/t/code-works-when-debugging-but-not-otherwise-in-repl/118137 "2024-08-13T16:49:31Z")

</div>

I have the following code: !/usr/bin/env julia …

---

## [\[Turing.jl\] Understanding running times in Turing.jl? Beyond @time](https://discourse.julialang.org/t/turing-jl-understanding-running-times-in-turing-jl-beyond-time/118154)

<div class="topic-metadata">

**Author:** [@FJRubio](https://discourse.julialang.org/u/FJRubio)\
**Replies:** 1\
**Last updated:** [August 13, 2024, 6:29pm UTC](https://discourse.julialang.org/t/turing-jl-understanding-running-times-in-turing-jl-beyond-time/118154 "2024-08-13T18:29:16Z")

</div>

This is a general question about understanding running times in sample() from Turing.jl when I know how long it takes to evaluate a custom log-likelihood function. I have a custom log-likelihood function, my\_loglik(), f…

---

## [PSA: How to help yourself debug differential equation solving issues](https://discourse.julialang.org/t/psa-how-to-help-yourself-debug-differential-equation-solving-issues/62489)

<div class="topic-metadata">

**Author:** [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Replies:** 0\
**Last updated:** [June 7, 2021, 4:16am UTC](https://discourse.julialang.org/t/psa-how-to-help-yourself-debug-differential-equation-solving-issues/62489 "2021-06-07T04:16:54Z")

</div>

Debugging differential equation solver issues almost always boils down to doing the same thing, so this is a summary to help you out. For more information on specific issues, check out the FAQ section of the Differential…

---

## [Advocating Julia for game development (JuliaLang)](https://discourse.julialang.org/t/advocating-julia-for-game-development-julialang/118060)

<div class="topic-metadata">

**Author:** [@Kyjor](https://discourse.julialang.org/u/Kyjor)\
**Replies:** 2\
**Last updated:** [August 13, 2024, 3:39pm UTC](https://discourse.julialang.org/t/advocating-julia-for-game-development-julialang/118060 "2024-08-13T15:39:39Z")

</div>

I created a very short video trying to encourage people to get into game dev using Julia

---

## [Exception: EXCEPTION\_ACCESS\_VIOLATION at 0x7fff65494f16 -- unknown function (ip: 00007fff65494f16)](https://discourse.julialang.org/t/exception-exception-access-violation-at-0x7fff65494f16-unknown-function-ip-00007fff65494f16/118123)

<div class="topic-metadata">

**Author:** [@tom880245](https://discourse.julialang.org/u/tom880245)\
**Replies:** 2\
**Last updated:** [August 13, 2024, 3:39pm UTC](https://discourse.julialang.org/t/exception-exception-access-violation-at-0x7fff65494f16-unknown-function-ip-00007fff65494f16/118123 "2024-08-13T15:39:51Z")

</div>

I encountered an issue when trying to load a saved model in Julia. Here is the code I used: import BSON: @load,@save using Flux using CUDA using cuDNN using DataFrames using CSV severity\_levels = \["A", "B", "C"\] mo…

---

## [Julia 1.10.5 testing period](https://discourse.julialang.org/t/julia-1-10-5-testing-period/118138)

<div class="topic-metadata">

**Author:** [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Replies:** 0\
**Last updated:** [August 13, 2024, 2:42pm UTC](https://discourse.julialang.org/t/julia-1-10-5-testing-period/118138 "2024-08-13T14:42:53Z")

</div>

The release-1.10 branch on the Julia repository now contains the set of commits we’re planning to tag as v1.10.5. The list of commits included since v1.10.4 is available here . As a patch release, it should be non-breaki…

---

## [In Turing.jl get probability of the answer of the datapoint from validation set](https://discourse.julialang.org/t/in-turing-jl-get-probability-of-the-answer-of-the-datapoint-from-validation-set/118103)

<div class="topic-metadata">

**Author:** [@Jakub\_Mitura](https://discourse.julialang.org/u/Jakub_Mitura)\
**Replies:** 4\
**Last updated:** [August 13, 2024, 2:12pm UTC](https://discourse.julialang.org/t/in-turing-jl-get-probability-of-the-answer-of-the-datapoint-from-validation-set/118103 "2024-08-13T14:12:36Z")

</div>

Hello I am new to probabilistic programming and some (I suppose basic things) Firs my goal is to design model that given set of features will predict binary outcome variable. Hovewer additionally I would like to know a…

---

## [Using DGMulti FDSBP with parabolic terms in Trixi?](https://discourse.julialang.org/t/using-dgmulti-fdsbp-with-parabolic-terms-in-trixi/118088)

<div class="topic-metadata">

**Author:** [@Kelian\_Renoux](https://discourse.julialang.org/u/Kelian_Renoux)\
**Replies:** 4\
**Last updated:** [August 13, 2024, 2:10pm UTC](https://discourse.julialang.org/t/using-dgmulti-fdsbp-with-parabolic-terms-in-trixi/118088 "2024-08-13T14:10:37Z")

</div>

Hi, I am comparing the methods in the DGMulti Solver from Trixi with a visquous example but when I try to use the Finite difference methods periodic\_derivative\_operator(derivative\_order=1, accuracy\_order=4, xmin=0.0, xma…

---

## [How to install the newest version of a package?](https://discourse.julialang.org/t/how-to-install-the-newest-version-of-a-package/118110)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 23\
**Last updated:** [August 13, 2024, 12:58pm UTC](https://discourse.julialang.org/t/how-to-install-the-newest-version-of-a-package/118110 "2024-08-13T12:58:11Z")

</div>

How can I install the latest version of a package? If I have for example KiteModels v0.6.3 installed before (in a different project) and then do: mkdir test cd test julia --project="." and try to install KiteModels wi…

---

## [Converting a multivariate function to a single variate function](https://discourse.julialang.org/t/converting-a-multivariate-function-to-a-single-variate-function/21661)

<div class="topic-metadata">

**Author:** [@StevenSiew](https://discourse.julialang.org/u/StevenSiew)\
**Replies:** 14\
**Last updated:** [August 13, 2024, 12:57pm UTC](https://discourse.julialang.org/t/converting-a-multivariate-function-to-a-single-variate-function/21661 "2024-08-13T12:57:05Z")

</div>

I want to convert a multivariate function into a single variable function. Aka to perform partial differentiation. While my attempt works but it is such an ugly kludge. Is there a better way of doing this? func1(x,y) = …

---

## [Simulating quantum Hamiltonian evolution with Yao](https://discourse.julialang.org/t/simulating-quantum-hamiltonian-evolution-with-yao/117287)

<div class="topic-metadata">

**Author:** [@jzzhuang](https://discourse.julialang.org/u/jzzhuang)\
**Replies:** 8\
**Last updated:** [August 13, 2024, 12:37pm UTC](https://discourse.julialang.org/t/simulating-quantum-hamiltonian-evolution-with-yao/117287 "2024-08-13T12:37:58Z")

</div>

Hi everyone, I’ve been using Yao.jl to simulate quantum evolution and encountered an issue with the time evolution function being unexpectedly slow. Notably, it performs much slower than in Mathematica. Here’s a snippet…

---

## [Type problems in ForwardDiff with preallocations](https://discourse.julialang.org/t/type-problems-in-forwarddiff-with-preallocations/118131)

<div class="topic-metadata">

**Author:** [@Chandrasekhar](https://discourse.julialang.org/u/Chandrasekhar)\
**Replies:** 2\
**Last updated:** [August 13, 2024, 12:32pm UTC](https://discourse.julialang.org/t/type-problems-in-forwarddiff-with-preallocations/118131 "2024-08-13T12:32:46Z")

</div>

Hi everyone! I am solving a system of non-linear equations by using nlsolve. I want to use ForwardDiff to calculate the Jacobian inside nlsolve. The code which is running without any errors is the following: function g…

---

## [Fastest way to perform A \* B \* A’](https://discourse.julialang.org/t/fastest-way-to-perform-a-b-a/117386)

<div class="topic-metadata">

**Author:** [@eveningsilverfox](https://discourse.julialang.org/u/eveningsilverfox)\
**Replies:** 9\
**Last updated:** [August 13, 2024, 12:30pm UTC](https://discourse.julialang.org/t/fastest-way-to-perform-a-b-a/117386 "2024-08-13T12:30:08Z")

</div>

Given two dense square matrices with ComplexF64 elements of size approximately 100000X100000, A and B, what is the fastest way to perform R=ABA’, where A’=conj(tr(A)) is the Hermitian conjugate of A?. If it helps: (1) …

---

## [Documenter for API documentation](https://discourse.julialang.org/t/documenter-for-api-documentation/118132)

<div class="topic-metadata">

**Author:** [@Yannik](https://discourse.julialang.org/u/Yannik)\
**Replies:** 0\
**Last updated:** [August 13, 2024, 11:38am UTC](https://discourse.julialang.org/t/documenter-for-api-documentation/118132 "2024-08-13T11:38:39Z")

</div>

Hello I am looking for a tool to document an extensive API that is implemented in Julia. The package has its own documentation but additionally we would like to create a documentation for the API and the API requests sin…

---

## [NanoDates.jl has reached version 1](https://discourse.julialang.org/t/nanodates-jl-has-reached-version-1/118130)

<div class="topic-metadata">

**Author:** [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)\
**Replies:** 0\
**Last updated:** [August 13, 2024, 11:18am UTC](https://discourse.julialang.org/t/nanodates-jl-has-reached-version-1/118130 "2024-08-13T11:18:40Z")

</div>

All NanoDates.jl posted issues have been resolved, all known bugs have been quashed, and I feel good about its state.

---

## [Fts extension in DuckDB doesn't work](https://discourse.julialang.org/t/fts-extension-in-duckdb-doesnt-work/118125)

<div class="topic-metadata">

**Author:** [@TimG](https://discourse.julialang.org/u/TimG)\
**Replies:** 4\
**Last updated:** [August 13, 2024, 11:28am UTC](https://discourse.julialang.org/t/fts-extension-in-duckdb-doesnt-work/118125 "2024-08-13T11:28:40Z")

</div>

The fts extension in DuckDB is finally installed on my windows machine after much appreciated help. The first thing I need to do to use this extension is create an fts index. Following the docs for this extension, I tr…

---

## [JuliaHub Sign-up not working](https://discourse.julialang.org/t/juliahub-sign-up-not-working/118119)

<div class="topic-metadata">

**Author:** [@jdm204](https://discourse.julialang.org/u/jdm204)\
**Replies:** 2\
**Last updated:** [August 13, 2024, 10:29am UTC](https://discourse.julialang.org/t/juliahub-sign-up-not-working/118119 "2024-08-13T10:29:32Z")

</div>

Hi - I wasn’t sure of the right place to ask this, but I’m trying to sign up to JuliaHub and hitting a bug - after I hit the “get started for free” button, I get this page, which has persisted overnight, and reappears wh…

---

## [Extending JuMP @variable](https://discourse.julialang.org/t/extending-jump-variable/118094)

<div class="topic-metadata">

**Author:** [@shawn\_T](https://discourse.julialang.org/u/shawn_T)\
**Replies:** 7\
**Last updated:** [August 13, 2024, 9:41am UTC](https://discourse.julialang.org/t/extending-jump-variable/118094 "2024-08-13T09:41:59Z")

</div>

Hi, I am planning to extend JuMP @variable macro by defining a new struct to replace the VariableInfo struct defined in JuMP, the code below is following the extension page: struct My\_var \<: JuMP.AbstractVariable …

---

## [Is it possible to use Revise.jl to reload webserver on file save?](https://discourse.julialang.org/t/is-it-possible-to-use-revise-jl-to-reload-webserver-on-file-save/94866)

<div class="topic-metadata">

**Author:** [@zeroexcuses](https://discourse.julialang.org/u/zeroexcuses)\
**Replies:** 19\
**Last updated:** [August 13, 2024, 9:36am UTC](https://discourse.julialang.org/t/is-it-possible-to-use-revise-jl-to-reload-webserver-on-file-save/94866 "2024-08-13T09:36:15Z")

</div>

In Compile time: we can't find any impls for this multi dispatch fn? - #7 by zeroexcuses , I described a shell script which uses inotify to restart a webserver every time www/server.jl is modified. I was informed the “c…

---

## [Nested optimization - matrix multiplication and internal functions](https://discourse.julialang.org/t/nested-optimization-matrix-multiplication-and-internal-functions/118098)

<div class="topic-metadata">

**Author:** [@blob](https://discourse.julialang.org/u/blob)\
**Replies:** 9\
**Last updated:** [August 13, 2024, 9:25am UTC](https://discourse.julialang.org/t/nested-optimization-matrix-multiplication-and-internal-functions/118098 "2024-08-13T09:25:41Z")

</div>

I have a nested optimization problem in JuMP that fails to run because of Dual going through. In my original problem the lower level problem is a convex QP so it is possible to compute correct gradients but first the cod…

---

## [Custom xticks for dates in StatsPlots groupedbar](https://discourse.julialang.org/t/custom-xticks-for-dates-in-statsplots-groupedbar/118112)

<div class="topic-metadata">

**Author:** [@slwu89](https://discourse.julialang.org/u/slwu89)\
**Replies:** 1\
**Last updated:** [August 13, 2024, 8:33am UTC](https://discourse.julialang.org/t/custom-xticks-for-dates-in-statsplots-groupedbar/118112 "2024-08-13T08:33:47Z")

</div>

Hi all, can someone help me understand why my code is not able to produce a plot with custom xticks for a Date x-axis? I would like to plot the time axis using ticks that are spaced out more widely. using DataFrames, St…

---

## [Error starting Distributed in Linux and Julia 1.10.x](https://discourse.julialang.org/t/error-starting-distributed-in-linux-and-julia-1-10-x/115807)

<div class="topic-metadata">

**Author:** [@snowgum](https://discourse.julialang.org/u/snowgum)\
**Replies:** 7\
**Last updated:** [August 13, 2024, 8:09am UTC](https://discourse.julialang.org/t/error-starting-distributed-in-linux-and-julia-1-10-x/115807 "2024-08-13T08:09:23Z")

</div>

I am unable to use Distributed in Julia 1.10.x on a linux machine. Works fine on macOS ARM, so I am not sure if this is general enough to open an issue. It also works as expected using Julia 1.9.4 on the same machine. H…

---

## [\[Makie\] Get current theme](https://discourse.julialang.org/t/makie-get-current-theme/81564)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 4\
**Last updated:** [August 13, 2024, 7:03am UTC](https://discourse.julialang.org/t/makie-get-current-theme/81564 "2024-08-13T07:03:35Z")

</div>

When using with\_theme, the first argument is a theme, and keyword arguments modify the given theme. This is great if I have a variable bound to the current theme, and I want to make a modification to it only for the foll…

---

## [Vector{NamedTuple} vs Vector{@NamedTuple}?](https://discourse.julialang.org/t/vector-namedtuple-vs-vector-namedtuple/118111)

<div class="topic-metadata">

**Author:** [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Replies:** 4\
**Last updated:** [August 13, 2024, 5:45am UTC](https://discourse.julialang.org/t/vector-namedtuple-vs-vector-namedtuple/118111 "2024-08-13T05:45:12Z")

</div>

How can I open my function method to work on all NamedTuples collected into a Vector? I don’t understand why this isn’t working. function multicall(f::Function, user\_inputs::Vector{NamedTuple}; kwargs...) out = \[\] …

---

## [Setindex for TSFrame from TSFrames.jl](https://discourse.julialang.org/t/setindex-for-tsframe-from-tsframes-jl/117948)

<div class="topic-metadata">

**Author:** [@EOhneberg](https://discourse.julialang.org/u/EOhneberg)\
**Replies:** 4\
**Last updated:** [August 13, 2024, 4:19am UTC](https://discourse.julialang.org/t/setindex-for-tsframe-from-tsframes-jl/117948 "2024-08-13T04:19:54Z")

</div>

Hi everyone, This is my first question so please let me know if I am doing something wrong. I used the TSFrames.jl package and ran into the following issue. I have a TSFrame of stock prices: tsf = DataFrame(timestamp…

---

## [Using PreallocationTools with LinearSolve](https://discourse.julialang.org/t/using-preallocationtools-with-linearsolve/98508)

<div class="topic-metadata">

**Author:** [@clm](https://discourse.julialang.org/u/clm)\
**Replies:** 3\
**Last updated:** [August 12, 2024, 8:54pm UTC](https://discourse.julialang.org/t/using-preallocationtools-with-linearsolve/98508 "2024-08-12T20:54:48Z")

</div>

I’m trying to solve a large 2D PDE using this example as a template. I’m effectively trying to solve some simplified (though still nonlinear) pseudo-Boussinesq Navier Stokes equations where I evolve u and temperature and…

---

## [The idea behind this generated function](https://discourse.julialang.org/t/the-idea-behind-this-generated-function/118095)

<div class="topic-metadata">

**Author:** [@mohamed.d180](https://discourse.julialang.org/u/mohamed.d180)\
**Replies:** 5\
**Last updated:** [August 12, 2024, 5:47pm UTC](https://discourse.julialang.org/t/the-idea-behind-this-generated-function/118095 "2024-08-12T17:47:51Z")

</div>

Inspecting the source code of ForwardDiff.jl) , we can found this function @generated function single\_seed(::Type{NTuple{N,V}}, ::Val{i}) where {N,V,i} ex = Expr(:tuple, \[ifelse(i === j, :(one(V)), :(zero(V))…

---

## [Find all files named "findthis.csv" in nested subfolders of "rootfolder"](https://discourse.julialang.org/t/find-all-files-named-findthis-csv-in-nested-subfolders-of-rootfolder/118096)

<div class="topic-metadata">

**Author:** [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Replies:** 8\
**Last updated:** [August 12, 2024, 5:40pm UTC](https://discourse.julialang.org/t/find-all-files-named-findthis-csv-in-nested-subfolders-of-rootfolder/118096 "2024-08-12T17:40:47Z")

</div>

I am trying to do what the title says and collect the file paths into a vector but having trouble. I would use find rootfolder -name findthis.csv in bash. readdir can only read one level deep, so I am trying to find a so…

---

## [Is there a reason why typeintersect constrains the args using type assertions in the method body instead of using dispatch?](https://discourse.julialang.org/t/is-there-a-reason-why-typeintersect-constrains-the-args-using-type-assertions-in-the-method-body-instead-of-using-dispatch/118102)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 0\
**Last updated:** [August 12, 2024, 4:49pm UTC](https://discourse.julialang.org/t/is-there-a-reason-why-typeintersect-constrains-the-args-using-type-assertions-in-the-method-body-instead-of-using-dispatch/118102 "2024-08-12T16:49:58Z")

</div>

This is the definition of typeintersect: typeintersect(@nospecialize(a), @nospecialize(b)) = (@\_total\_meta; ccall(:jl\_type\_intersection, Any, (Any, Any), a::Type, b::Type)) It seems like the following would be an i…

---

## [Julia -\> C (Pthread) -\> Julia Saxpy with Threads](https://discourse.julialang.org/t/julia-c-pthread-julia-saxpy-with-threads/118097)

<div class="topic-metadata">

**Author:** [@miniskar](https://discourse.julialang.org/u/miniskar)\
**Replies:** 1\
**Last updated:** [August 12, 2024, 4:49pm UTC](https://discourse.julialang.org/t/julia-c-pthread-julia-saxpy-with-threads/118097 "2024-08-12T16:49:28Z")

</div>

I am having an C++ library environment where I am supposed to call Julia kernel (example SAXPY) with threading. A minimum work example to illustrate the issue is given below. The Julia main() function calls ‘call\_direc…

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

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