# Latest

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

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

**Page:** 854

---

## [Dash Julia: Processing Multiple Near-Simultaneous Requests](https://discourse.julialang.org/t/dash-julia-processing-multiple-near-simultaneous-requests/72106)

<div class="topic-metadata">

**Author:** [@grahamstark](https://discourse.julialang.org/u/grahamstark)\
**Replies:** 5\
**Last updated:** [November 25, 2022, 10:09pm UTC](https://discourse.julialang.org/t/dash-julia-processing-multiple-near-simultaneous-requests/72106 "2022-11-25T22:09:41Z")

</div>

Hi, I have a little simulation in Dash that takes ~20 seconds to run. Is there a trick that would allow the Dash app to run multiple requests simultaneously? From what I can see, Dash just queues up multiple requests an…

---

## [Hlines!() xmin/xmax do not accept Observable list in GLMakie](https://discourse.julialang.org/t/hlines-xmin-xmax-do-not-accept-observable-list-in-glmakie/90788)

<div class="topic-metadata">

**Author:** [@garrek](https://discourse.julialang.org/u/garrek)\
**Replies:** 2\
**Last updated:** [November 25, 2022, 9:26pm UTC](https://discourse.julialang.org/t/hlines-xmin-xmax-do-not-accept-observable-list-in-glmakie/90788 "2022-11-25T21:26:58Z")

</div>

I’m trying to plot horizontal (or vertical) lines using GLMakie, but I need both the lines and the endpoints to be an Observable of a list. I want to do something very similar to the documentation for hlines and vlines, …

---

## [\[ANN\] PackageAnalyzer v1.0](https://discourse.julialang.org/t/ann-packageanalyzer-v1-0/90824)

<div class="topic-metadata">

**Author:** [@ericphanson](https://discourse.julialang.org/u/ericphanson)\
**Replies:** 3\
**Last updated:** [November 25, 2022, 6:23pm UTC](https://discourse.julialang.org/t/ann-packageanalyzer-v1-0/90824 "2022-11-25T18:23:47Z")

</div>

PackageAnalyzer is a tool @giordano created while writing this awesome blog post. After that, I helped expand some of the functionality, and together we used the tool to survey the General registry, resulting in this blo…

---

## [Assigning values in threaded nested for-loop](https://discourse.julialang.org/t/assigning-values-in-threaded-nested-for-loop/90762)

<div class="topic-metadata">

**Author:** [@astro-kevin](https://discourse.julialang.org/u/astro-kevin)\
**Replies:** 6\
**Last updated:** [November 25, 2022, 6:15pm UTC](https://discourse.julialang.org/t/assigning-values-in-threaded-nested-for-loop/90762 "2022-11-25T18:15:54Z")

</div>

I have some code which looks like this: Threads.@threads for branch in tree Threads.@threads for twig in branch append!(biglist, dostuff.(twig)) end end where tree is a vector (tree) of vectors (branch)…

---

## [\[ANN\] jlrs 0.17: generic targets, foreign type support, Julia 1.9 support, and more!](https://discourse.julialang.org/t/ann-jlrs-0-17-generic-targets-foreign-type-support-julia-1-9-support-and-more/90823)

<div class="topic-metadata">

**Author:** [@Taaitaaiger](https://discourse.julialang.org/u/Taaitaaiger)\
**Replies:** 0\
**Last updated:** [November 25, 2022, 6:06pm UTC](https://discourse.julialang.org/t/ann-jlrs-0-17-generic-targets-foreign-type-support-julia-1-9-support-and-more/90823 "2022-11-25T18:06:47Z")

</div>

jlrs is a crate for the Rust programming language that provides access to most of the Julia C API, it can be used to embed Julia in Rust applications and to use functionality from the Julia C API when writing ccallable f…

---

## [I have Windows portable Julia1.8.3. How to install?](https://discourse.julialang.org/t/i-have-windows-portable-julia1-8-3-how-to-install/90791)

<div class="topic-metadata">

**Author:** [@kkm](https://discourse.julialang.org/u/kkm)\
**Replies:** 5\
**Last updated:** [November 25, 2022, 5:42pm UTC](https://discourse.julialang.org/t/i-have-windows-portable-julia1-8-3-how-to-install/90791 "2022-11-25T17:42:11Z")

</div>

Hi i have downloaded Julia 1.8.3 Windows. Can i directly use with Julia.exe application from the /bin folder? or i must do some sort of installation too?

---

## [Meaning of non-anonymous nested/local function](https://discourse.julialang.org/t/meaning-of-non-anonymous-nested-local-function/90799)

<div class="topic-metadata">

**Author:** [@hexaeder](https://discourse.julialang.org/u/hexaeder)\
**Replies:** 1\
**Last updated:** [November 25, 2022, 5:12pm UTC](https://discourse.julialang.org/t/meaning-of-non-anonymous-nested-local-function/90799 "2022-11-25T17:12:41Z")

</div>

Consider the following function function outer(capture) function foo() capture + 1 end bar = function() capture + 1 end baz = () -\> begin capture + 1 end ... end Afai…

---

## [File IO Buffers too small?](https://discourse.julialang.org/t/file-io-buffers-too-small/89931)

<div class="topic-metadata">

**Author:** [@mwlidar](https://discourse.julialang.org/u/mwlidar)\
**Replies:** 14\
**Last updated:** [November 25, 2022, 5:05pm UTC](https://discourse.julialang.org/t/file-io-buffers-too-small/89931 "2022-11-25T17:05:12Z")

</div>

I typically have the task to read and process large binary data files consisting of relatively small consecutive records (\< 30 kB). If I read each record one after the other the read performance lacks far behind of what …

---

## [Updating / adding functions together](https://discourse.julialang.org/t/updating-adding-functions-together/90817)

<div class="topic-metadata">

**Author:** [@tsojtc](https://discourse.julialang.org/u/tsojtc)\
**Replies:** 0\
**Last updated:** [November 25, 2022, 4:44pm UTC](https://discourse.julialang.org/t/updating-adding-functions-together/90817 "2022-11-25T16:44:23Z")

</div>

I am working on a problem where I have a continuous real valued function, e.g. a solution to an ODE, and I want to be able to update it multiple times by adding other continuous functions, which are calculated by code ru…

---

## [Is it possible to check if a function has been called with a keyword argument explicitly?](https://discourse.julialang.org/t/is-it-possible-to-check-if-a-function-has-been-called-with-a-keyword-argument-explicitly/90812)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 3\
**Last updated:** [November 25, 2022, 4:51pm UTC](https://discourse.julialang.org/t/is-it-possible-to-check-if-a-function-has-been-called-with-a-keyword-argument-explicitly/90812 "2022-11-25T16:51:46Z")

</div>

Is there a way to determine if a keyword argument with a default value has been explicitly given or the default has been used ? function foo(;karg1::Int64=3) # if foo has been called with karg1 explicitly then... e…

---

## [Call Python skopt package from Julia](https://discourse.julialang.org/t/call-python-skopt-package-from-julia/90816)

<div class="topic-metadata">

**Author:** [@xspeng](https://discourse.julialang.org/u/xspeng)\
**Replies:** 0\
**Last updated:** [November 25, 2022, 4:42pm UTC](https://discourse.julialang.org/t/call-python-skopt-package-from-julia/90816 "2022-11-25T16:42:55Z")

</div>

When I try to call python skopt from Julia, I find a weird problem, here is a simple example that can reflect my question, if I define all variable range with Real, it will cause error in res = opt.tell(suggested, y) how…

---

## [Directly write logical rules](https://discourse.julialang.org/t/directly-write-logical-rules/90413)

<div class="topic-metadata">

**Author:** [@colleybrb](https://discourse.julialang.org/u/colleybrb)\
**Replies:** 3\
**Last updated:** [November 25, 2022, 4:38pm UTC](https://discourse.julialang.org/t/directly-write-logical-rules/90413 "2022-11-25T16:38:17Z")

</div>

I’ve been tinkering around with julog and it has met a course requirement of an expert system. I will work out my problem set for the class with this package, but I want to continue the project after this class, and am h…

---

## [How to get the results and gradients when using ForwardDiff.jl](https://discourse.julialang.org/t/how-to-get-the-results-and-gradients-when-using-forwarddiff-jl/90525)

<div class="topic-metadata">

**Author:** [@Frankiewaang](https://discourse.julialang.org/u/Frankiewaang)\
**Replies:** 9\
**Last updated:** [November 25, 2022, 4:21pm UTC](https://discourse.julialang.org/t/how-to-get-the-results-and-gradients-when-using-forwarddiff-jl/90525 "2022-11-25T16:21:24Z")

</div>

I did some research and found out that if I want to get both the value of a function and its gradients I could use the API from DiffResults. But if the result from a function returns a tuple(instead of a scalar) where th…

---

## [Performance issues sampling a multimomial logit (slightly modified) with Turing.jl](https://discourse.julialang.org/t/performance-issues-sampling-a-multimomial-logit-slightly-modified-with-turing-jl/90730)

<div class="topic-metadata">

**Author:** [@sarkispa](https://discourse.julialang.org/u/sarkispa)\
**Replies:** 6\
**Last updated:** [November 25, 2022, 3:36pm UTC](https://discourse.julialang.org/t/performance-issues-sampling-a-multimomial-logit-slightly-modified-with-turing-jl/90730 "2022-11-25T15:36:54Z")

</div>

Hi all, I’m essentially trying to sample from a Bayesian multinomial logit with a few complexities: choices have characteristics and choices might not be available in all time periods (no time series here). Choice proba…

---

## [DimensionMismatch: The size of a distance matrix ((1, 440)) doesn't match the length of assignment vector (440)](https://discourse.julialang.org/t/dimensionmismatch-the-size-of-a-distance-matrix-1-440-doesnt-match-the-length-of-assignment-vector-440/90807)

<div class="topic-metadata">

**Author:** [@JUL1A](https://discourse.julialang.org/u/JUL1A)\
**Replies:** 3\
**Last updated:** [November 25, 2022, 3:36pm UTC](https://discourse.julialang.org/t/dimensionmismatch-the-size-of-a-distance-matrix-1-440-doesnt-match-the-length-of-assignment-vector-440/90807 "2022-11-25T15:36:13Z")

</div>

How to fix this: using Clustering using VectorizedStatistics function MyKmeans(Train::Vector{Float64}, k::Int64) the\_mat = Train' model = kmeans(the\_mat, k) return vmean(silhouettes(assignments(model), cou…

---

## [Sort allocates twice more memory](https://discourse.julialang.org/t/sort-allocates-twice-more-memory/90756)

<div class="topic-metadata">

**Author:** [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Replies:** 1\
**Last updated:** [November 25, 2022, 3:25pm UTC](https://discourse.julialang.org/t/sort-allocates-twice-more-memory/90756 "2022-11-25T15:25:38Z")

</div>

Hi, It seems the sort function allocates twice more memory in master vs 1.8.3: using BenchmarkTools x = rand(10^8); @btime sort($x); In 1.8.3 I get 2 allocations 762 MiB vs 6 allocations 1.49GiB in master. Is that co…

---

## [Is there a way to modify expressions in \`Documenter\` to remove \`rng\`](https://discourse.julialang.org/t/is-there-a-way-to-modify-expressions-in-documenter-to-remove-rng/90808)

<div class="topic-metadata">

**Author:** [@t-bltg](https://discourse.julialang.org/u/t-bltg)\
**Replies:** 2\
**Last updated:** [November 25, 2022, 2:20pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-modify-expressions-in-documenter-to-remove-rng/90808 "2022-11-25T14:20:15Z")

</div>

In PlotDocs, we use DemoCards and Literate to generate example plots, and Documenter for rendering docs. I’d like the generated code to take a rng argument so that the output is more reproducible. So far this works wel…

---

## [Reading hdf5 file saved with nested dict from Python](https://discourse.julialang.org/t/reading-hdf5-file-saved-with-nested-dict-from-python/90767)

<div class="topic-metadata">

**Author:** [@rakshith95](https://discourse.julialang.org/u/rakshith95)\
**Replies:** 5\
**Last updated:** [November 25, 2022, 2:42pm UTC](https://discourse.julialang.org/t/reading-hdf5-file-saved-with-nested-dict-from-python/90767 "2022-11-25T14:42:17Z")

</div>

Hello, I’m having problems reading hdf5 files using the ‘HDF5’ package, with nested dictionaries in them stored from Python. The data consists of a key (string) and its value (dict containing two keys for different arra…

---

## [Allocations (again...)](https://discourse.julialang.org/t/allocations-again/90780)

<div class="topic-metadata">

**Author:** [@aaraujo71](https://discourse.julialang.org/u/aaraujo71)\
**Replies:** 15\
**Last updated:** [November 25, 2022, 2:26pm UTC](https://discourse.julialang.org/t/allocations-again/90780 "2022-11-25T14:26:34Z")

</div>

When I run using BenchmarkTools function test(x, Y) sum!(x, Y') return nothing end x = rand(Float64, 100) Y = rand(Float64, 1, 100) @btime(test(x, Y)) I get the following: 367.952 ns (2 allocations: 96 bytes…

---

## [It's All Set - LazySets Errors: Showing Types and set\_tolerance not defined](https://discourse.julialang.org/t/its-all-set-lazysets-errors-showing-types-and-set-tolerance-not-defined/85994)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 3\
**Last updated:** [November 25, 2022, 1:59pm UTC](https://discourse.julialang.org/t/its-all-set-lazysets-errors-showing-types-and-set-tolerance-not-defined/85994 "2022-11-25T13:59:48Z")

</div>

Hi all, I get two errors on LazySets tutorial at the last section, the first one: using LazySets println("=== Concrete set types ===\\n") for S in subtypes(LazySet, true) if !isoperationtype(S) println(S) …

---

## [Mosek does not give the optimal value derived by simplex methods](https://discourse.julialang.org/t/mosek-does-not-give-the-optimal-value-derived-by-simplex-methods/90727)

<div class="topic-metadata">

**Author:** [@Khashayar-Neshat](https://discourse.julialang.org/u/Khashayar-Neshat)\
**Replies:** 10\
**Last updated:** [November 25, 2022, 1:34pm UTC](https://discourse.julialang.org/t/mosek-does-not-give-the-optimal-value-derived-by-simplex-methods/90727 "2022-11-25T13:34:54Z")

</div>

I have a linear Polynomial Optimization problem (DSOS) programming, and I want to solve it with Mosek. Mosek first does the interior point method (IPM) and then switches to simplex method and reoptimizes it with simplex …

---

## [Speed up \`x::Bool ^ y::Float64\`](https://discourse.julialang.org/t/speed-up-x-bool-y-float64/90601)

<div class="topic-metadata">

**Author:** [@andrey2185](https://discourse.julialang.org/u/andrey2185)\
**Replies:** 9\
**Last updated:** [November 25, 2022, 1:02pm UTC](https://discourse.julialang.org/t/speed-up-x-bool-y-float64/90601 "2022-11-25T13:02:11Z")

</div>

Hello i am trying to speed up this: x::Bool ^ y::Float64, and even something come out Is there any way to avoid branching of f2() in example? How else to speed up? using BenchmarkTools, Test # simple f1(x::Bool, y:…

---

## [Fast "bool ^ float", and fast "float ^ bool" as a gift!](https://discourse.julialang.org/t/fast-bool-float-and-fast-float-bool-as-a-gift/90674)

<div class="topic-metadata">

**Author:** [@andrey2185](https://discourse.julialang.org/u/andrey2185)\
**Replies:** 4\
**Last updated:** [November 25, 2022, 12:34pm UTC](https://discourse.julialang.org/t/fast-bool-float-and-fast-float-bool-as-a-gift/90674 "2022-11-25T12:34:00Z")

</div>

I already wrote this before I thought to ask Oscar Smith what he meant by “PR”. I am not an user of GitHab and do not know how to make pull requests, so I leave it here. THIS TEXT AND CODE IS PROVIDED “AS IS”, WITHOUT W…

---

## [Agents.jl and DifferentialEquations.jl memory usage](https://discourse.julialang.org/t/agents-jl-and-differentialequations-jl-memory-usage/90798)

<div class="topic-metadata">

**Author:** [@drchris](https://discourse.julialang.org/u/drchris)\
**Replies:** 4\
**Last updated:** [November 25, 2022, 12:18pm UTC](https://discourse.julialang.org/t/agents-jl-and-differentialequations-jl-memory-usage/90798 "2022-11-25T12:18:01Z")

</div>

Hi All, I’m pretty new to Julia and have been playing around with a few packages that are available; specifically, Agents.jl and linking it to DifferentialEquations.jl. I’ve been following the example given here: https…

---

## [Can I separate unspaced data in Julia?/or round data](https://discourse.julialang.org/t/can-i-separate-unspaced-data-in-julia-or-round-data/90787)

<div class="topic-metadata">

**Author:** [@dangda](https://discourse.julialang.org/u/dangda)\
**Replies:** 4\
**Last updated:** [November 25, 2022, 11:58am UTC](https://discourse.julialang.org/t/can-i-separate-unspaced-data-in-julia-or-round-data/90787 "2022-11-25T11:58:45Z")

</div>

I got protein distance data in Julia. And it’s like 0.03.9054839648883466.8782495592992210.390223770448832 … etc(millions of data) And I can’t sort data one by one It supposed to be 0.0;3.905483964888346;6.87824955…

---

## [How to disable expression evaluation at compile time?](https://discourse.julialang.org/t/how-to-disable-expression-evaluation-at-compile-time/90800)

<div class="topic-metadata">

**Author:** [@andrey2185](https://discourse.julialang.org/u/andrey2185)\
**Replies:** 0\
**Last updated:** [November 25, 2022, 11:52am UTC](https://discourse.julialang.org/t/how-to-disable-expression-evaluation-at-compile-time/90800 "2022-11-25T11:52:55Z")

</div>

How to disable expression evaluation at compile time ? f1(x) = x + 2 f2(x) = x + f1(2) f1() need evaluate at function call

---

## [Program for a monitoring device](https://discourse.julialang.org/t/program-for-a-monitoring-device/90113)

<div class="topic-metadata">

**Author:** [@llovalin](https://discourse.julialang.org/u/llovalin)\
**Replies:** 5\
**Last updated:** [November 25, 2022, 11:34am UTC](https://discourse.julialang.org/t/program-for-a-monitoring-device/90113 "2022-11-25T11:34:11Z")

</div>

Hello folks, What is the best way to learn new stuff? By choosing a small project :wink: I want to write a small monitoring program for a machine. For example, it should plot the last 5 minutes of temperature of a cert…

---

## [Get this exit code -1073741819 / 3221225477 every couple of runs in the MWE](https://discourse.julialang.org/t/get-this-exit-code-1073741819-3221225477-every-couple-of-runs-in-the-mwe/90288)

<div class="topic-metadata">

**Author:** [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Replies:** 9\
**Last updated:** [November 25, 2022, 10:11am UTC](https://discourse.julialang.org/t/get-this-exit-code-1073741819-3221225477-every-couple-of-runs-in-the-mwe/90288 "2022-11-25T10:11:48Z")

</div>

Hi all :slight\_smile: I’ve got a script that runs the whole day, streaming data and calculating stuff every second. But around 3 hours the scripts suddenly stops with no error message, no output. I only got an error cod…

---

## [CUDA How to limit the gpu memory available?](https://discourse.julialang.org/t/cuda-how-to-limit-the-gpu-memory-available/90599)

<div class="topic-metadata">

**Author:** [@Ludovic\_Dumoulin](https://discourse.julialang.org/u/Ludovic_Dumoulin)\
**Replies:** 7\
**Last updated:** [November 25, 2022, 9:56am UTC](https://discourse.julialang.org/t/cuda-how-to-limit-the-gpu-memory-available/90599 "2022-11-25T09:56:12Z")

</div>

Hello, With other lab members we share a jupyter hub server with a single gpu (A30). The problem is that when one is using FFTW or CuArray operations he fills the entire memory. When one runs a code with only low leve…

---

## [Function returning "(nothing, nothing,...)" after returning some strings](https://discourse.julialang.org/t/function-returning-nothing-nothing-after-returning-some-strings/90789)

<div class="topic-metadata">

**Author:** [@XavierJack](https://discourse.julialang.org/u/XavierJack)\
**Replies:** 3\
**Last updated:** [November 25, 2022, 9:28am UTC](https://discourse.julialang.org/t/function-returning-nothing-nothing-after-returning-some-strings/90789 "2022-11-25T09:28:02Z")

</div>

I am new to Julia and posting to forums so please excuse any bad formatting, I have some background with python so I have been trying to translate my python code to Julia which led me to being confused why this code is r…

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

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