# Latest

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

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

**Page:** 1295

---

## [VSCODE says there are unsaved files, but there aren't?](https://discourse.julialang.org/t/vscode-says-there-are-unsaved-files-but-there-arent/66668)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 1\
**Last updated:** [August 19, 2021, 1:26pm UTC](https://discourse.julialang.org/t/vscode-says-there-are-unsaved-files-but-there-arent/66668 "2021-08-19T13:26:26Z")

</div>

In a project, VSCode keeps saying there are unsaved files in the project, though I cannot figure where they are (and I think there aren’t). Anyone has experienced this before?

---

## [Detect User Language?](https://discourse.julialang.org/t/detect-user-language/66670)

<div class="topic-metadata">

**Author:** [@Daneel](https://discourse.julialang.org/u/Daneel)\
**Replies:** 3\
**Last updated:** [August 19, 2021, 1:13pm UTC](https://discourse.julialang.org/t/detect-user-language/66670 "2021-08-19T13:13:47Z")

</div>

Is there a way to detect the default language that the user speaks? Presumably this would be the current operating system language. I’m trying to tailor the outputs to the user. It would be great if it were a constant l…

---

## [JuliaHub doesn't find documentation for functions in sub-modules re-exported with Reexport.jl](https://discourse.julialang.org/t/juliahub-doesnt-find-documentation-for-functions-in-sub-modules-re-exported-with-reexport-jl/66672)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 0\
**Last updated:** [August 19, 2021, 1:09pm UTC](https://discourse.julialang.org/t/juliahub-doesnt-find-documentation-for-functions-in-sub-modules-re-exported-with-reexport-jl/66672 "2021-08-19T13:09:45Z")

</div>

In my package I have all functions under a submodule (e.g. Clustering.predictMissing) that I reexport using Reexport.jl. In this functions they can be used and their doc searched by users without the submodule prefix: …

---

## [Speed comparison matrix multiplication in Julia](https://discourse.julialang.org/t/speed-comparison-matrix-multiplication-in-julia/66656)

<div class="topic-metadata">

**Author:** [@sivakon](https://discourse.julialang.org/u/sivakon)\
**Replies:** 45\
**Last updated:** [August 19, 2021, 12:33pm UTC](https://discourse.julialang.org/t/speed-comparison-matrix-multiplication-in-julia/66656 "2021-08-19T12:33:30Z")

</div>

Optimized version in Julia. (126ms opt. Julia vs. 676ms in Jax - Int32) (521ms opt. Julia vs. 2.2s in Jax - Int64) Using tullio Int32 using Tullio, BenchmarkTools, LoopVectorization # Row major a = Array(reshape(Int32…

---

## [LMI, Control system, Robust Control Adaptive Controller](https://discourse.julialang.org/t/lmi-control-system-robust-control-adaptive-controller/65626)

<div class="topic-metadata">

**Author:** [@Asifalimaitlo\_Asifal](https://discourse.julialang.org/u/Asifalimaitlo_Asifal)\
**Replies:** 13\
**Last updated:** [August 19, 2021, 9:31am UTC](https://discourse.julialang.org/t/lmi-control-system-robust-control-adaptive-controller/65626 "2021-08-19T09:31:23Z")

</div>

Piecewise gain-scheduled L2 control

---

## [load not defined](https://discourse.julialang.org/t/load-not-defined/22385)

<div class="topic-metadata">

**Author:** [@avner\_yakov](https://discourse.julialang.org/u/avner_yakov)\
**Replies:** 8\
**Last updated:** [August 19, 2021, 11:16am UTC](https://discourse.julialang.org/t/load-not-defined/22385 "2021-08-19T11:16:50Z")

</div>

I’m new to Julia. I’m trying to read image, here is my package status: julia\> Pkg.status() Status \`C:\\Users\\ayakov\\.julia\\environments\\v1.1\\Project.toml\` \[c52e3926\] Atom v0.8.2 \[34da2185\] Compat v2.1.0 \[31c24…

---

## [Verify generated images during automated testing](https://discourse.julialang.org/t/verify-generated-images-during-automated-testing/66389)

<div class="topic-metadata">

**Author:** [@sloede](https://discourse.julialang.org/u/sloede)\
**Replies:** 3\
**Last updated:** [August 19, 2021, 11:20am UTC](https://discourse.julialang.org/t/verify-generated-images-during-automated-testing/66389 "2021-08-19T11:20:25Z")

</div>

I am looking for a way to verify images that are auto-generated during CI/automated testing. For example, I would like to run a simulation, plot the result with Plots.jl or Makie.jl, and then verify the resulting PNG fil…

---

## [Is there a "select case" equivalent in Julia?](https://discourse.julialang.org/t/is-there-a-select-case-equivalent-in-julia/66516)

<div class="topic-metadata">

**Author:** [@CRquantum](https://discourse.julialang.org/u/CRquantum)\
**Replies:** 21\
**Last updated:** [August 19, 2021, 10:58am UTC](https://discourse.julialang.org/t/is-there-a-select-case-equivalent-in-julia/66516 "2021-08-19T10:58:58Z")

</div>

Here is a small Fortran subroutine, with select case, subroutine steps(it) integer(kind=i8) :: it select case (imode) case (11) call step11(it) case (12) call step12(it) case default write (6,'(''Illegal imode …

---

## [DynamicHMC: Reached maximum number of iterations while bisecting interval for epsilon](https://discourse.julialang.org/t/dynamichmc-reached-maximum-number-of-iterations-while-bisecting-interval-for-epsilon/63595)

<div class="topic-metadata">

**Author:** [@kai](https://discourse.julialang.org/u/kai)\
**Replies:** 8\
**Last updated:** [August 19, 2021, 10:56am UTC](https://discourse.julialang.org/t/dynamichmc-reached-maximum-number-of-iterations-while-bisecting-interval-for-epsilon/63595 "2021-08-19T10:56:11Z")

</div>

@Tamas\_Papp I saw there is a previous thread discussing this problem, but I don’t quite get the solution so I’m starting a new one. “Reached maximum number of iterations while bisecting interval for ϵ.” I’ve seen this…

---

## [Getting first digit of an integer(big or small)](https://discourse.julialang.org/t/getting-first-digit-of-an-integer-big-or-small/66636)

<div class="topic-metadata">

**Author:** [@Ogweno\_Emmanuel](https://discourse.julialang.org/u/Ogweno_Emmanuel)\
**Replies:** 15\
**Last updated:** [August 19, 2021, 9:09am UTC](https://discourse.julialang.org/t/getting-first-digit-of-an-integer-big-or-small/66636 "2021-08-19T09:09:22Z")

</div>

I’m looking for a way to get the first digit of any integer. I’ve seen the digits function a lot on the net but it’s not working on my end. Could it be that there is a package I ought to add? Also, how can I easily get …

---

## [Dynamically Bypass CUDA.jl for non-gpu machine](https://discourse.julialang.org/t/dynamically-bypass-cuda-jl-for-non-gpu-machine/66608)

<div class="topic-metadata">

**Author:** [@kadir-gunel](https://discourse.julialang.org/u/kadir-gunel)\
**Replies:** 20\
**Last updated:** [August 19, 2021, 8:16am UTC](https://discourse.julialang.org/t/dynamically-bypass-cuda-jl-for-non-gpu-machine/66608 "2021-08-19T08:16:16Z")

</div>

Hello, I have different src files which I collect them inside a single module by calling include(../src/X.jl.). The problem is that one of the src files is using CUDA.jl and when a non gpu machine tries to call that src…

---

## [Is \`@async\` memory safe?](https://discourse.julialang.org/t/is-async-memory-safe/66558)

<div class="topic-metadata">

**Author:** [@heliosdrm](https://discourse.julialang.org/u/heliosdrm)\
**Replies:** 13\
**Last updated:** [August 19, 2021, 7:14am UTC](https://discourse.julialang.org/t/is-async-memory-safe/66558 "2021-08-19T07:14:33Z")

</div>

The page of the manual on multi-threading warns about memory-unsafe operations in data race conditions, and gives the advice of using locks or atomic operations on Threads.Atomic objects to work around that problem. I g…

---

## [How to unpack log.gz to an array or CSv file?](https://discourse.julialang.org/t/how-to-unpack-log-gz-to-an-array-or-csv-file/66657)

<div class="topic-metadata">

**Author:** [@programista](https://discourse.julialang.org/u/programista)\
**Replies:** 0\
**Last updated:** [August 19, 2021, 6:44am UTC](https://discourse.julialang.org/t/how-to-unpack-log-gz-to-an-array-or-csv-file/66657 "2021-08-19T06:44:53Z")

</div>

How to unpack log.gz to an array or CSv file ? The separators are spaces and in the data there are sometimes strings closed in “some text” ? 5.252.230.133 - - \[04/Aug/2021:23:49:50 +0200\] "POST /wp-cron.php?doing\_wp\_cro…

---

## [Installing The Package Named SnFFT](https://discourse.julialang.org/t/installing-the-package-named-snfft/66184)

<div class="topic-metadata">

**Author:** [@Abdul\_Rab\_Chachar](https://discourse.julialang.org/u/Abdul_Rab_Chachar)\
**Replies:** 6\
**Last updated:** [August 18, 2021, 3:49pm UTC](https://discourse.julialang.org/t/installing-the-package-named-snfft/66184 "2021-08-18T15:49:02Z")

</div>

Dear All, Hope you are fine. I have tried a lot of time to install the following package. But I am unable to install it due to several errors. There are two methods listed to install the following package. but both of …

---

## [Flux running slow?](https://discourse.julialang.org/t/flux-running-slow/46032)

<div class="topic-metadata">

**Author:** [@ChrisBlake](https://discourse.julialang.org/u/ChrisBlake)\
**Replies:** 16\
**Last updated:** [August 19, 2021, 5:35am UTC](https://discourse.julialang.org/t/flux-running-slow/46032 "2021-08-19T05:35:24Z")

</div>

Hi, I’m new to Julia and testing it out for ML, hoping to use it for RL which is my main area of work. I noticed that Flux seems to be running much slower than I would have expected. I created a simple example of how I’…

---

## [Allocation-free type hiding?](https://discourse.julialang.org/t/allocation-free-type-hiding/66609)

<div class="topic-metadata">

**Author:** [@pablosanjose](https://discourse.julialang.org/u/pablosanjose)\
**Replies:** 14\
**Last updated:** [August 19, 2021, 5:30am UTC](https://discourse.julialang.org/t/allocation-free-type-hiding/66609 "2021-08-19T05:30:37Z")

</div>

I’m trying to reduce latency in a package, and was intrigued by the mention of “type hiding” in the Dataframes.jl Juliacon talk by @bkamins (State of DataFrames.jl - YouTube). As I understand it, type hiding consists of…

---

## [\[ANN\] DashTable.jl: Web-app based interactive table component](https://discourse.julialang.org/t/ann-dashtable-jl-web-app-based-interactive-table-component/66266)

<div class="topic-metadata">

**Author:** [@Manu\_Francis](https://discourse.julialang.org/u/Manu_Francis)\
**Replies:** 7\
**Last updated:** [August 19, 2021, 5:17am UTC](https://discourse.julialang.org/t/ann-dashtable-jl-web-app-based-interactive-table-component/66266 "2021-08-19T05:17:34Z")

</div>

DashTable.jl provides an interactive table component designed by Plotly for viewing, editing, and exploring large datasets. Now all data scientists and analysts using Julia can view their data in an interactive table in …

---

## [Struct Encapsulation Question for Optimization Test Set](https://discourse.julialang.org/t/struct-encapsulation-question-for-optimization-test-set/66645)

<div class="topic-metadata">

**Author:** [@danphenderson](https://discourse.julialang.org/u/danphenderson)\
**Replies:** 6\
**Last updated:** [August 19, 2021, 4:08am UTC](https://discourse.julialang.org/t/struct-encapsulation-question-for-optimization-test-set/66645 "2021-08-19T04:08:21Z")

</div>

I am building a test set of unconstrained optimization problems and each program is held in the struct: mutable struct UncProgram name::String f::Function g!::Function fg!::Function n::Int x0::Ab…

---

## [How can I avoid insatisfient random variable in Turing.jl?](https://discourse.julialang.org/t/how-can-i-avoid-insatisfient-random-variable-in-turing-jl/66397)

<div class="topic-metadata">

**Author:** [@dddd1007](https://discourse.julialang.org/u/dddd1007)\
**Replies:** 2\
**Last updated:** [August 19, 2021, 2:52am UTC](https://discourse.julialang.org/t/how-can-i-avoid-insatisfient-random-variable-in-turing-jl/66397 "2021-08-19T02:52:41Z")

</div>

Hi! I want to ask how to keep the suitable beta distribution parameters in the HMM model in Turing.jl . The details as follow: I am trying to implement Bayesian Learner Model of Tim Behrens. It’s a model like this: W…

---

## [How to do format write correctly?](https://discourse.julialang.org/t/how-to-do-format-write-correctly/66648)

<div class="topic-metadata">

**Author:** [@CRquantum](https://discourse.julialang.org/u/CRquantum)\
**Replies:** 2\
**Last updated:** [August 19, 2021, 1:51am UTC](https://discourse.julialang.org/t/how-to-do-format-write-correctly/66648 "2021-08-19T01:51:53Z")

</div>

I am sorry another stupid question, I read the IO part of the Julia documents I/O and Network · The Julia Language, but I am still too stupid to do the following simply thing. For example, the short illustration code be…

---

## [Accessing profiling data programmatically](https://discourse.julialang.org/t/accessing-profiling-data-programmatically/66355)

<div class="topic-metadata">

**Author:** [@goretkin](https://discourse.julialang.org/u/goretkin)\
**Replies:** 0\
**Last updated:** [August 13, 2021, 7:49pm UTC](https://discourse.julialang.org/t/accessing-profiling-data-programmatically/66355 "2021-08-13T19:49:29Z")

</div>

I did not find an example of querying Julia profiling data for e.g. the number of samples that hit a given function. I want to post what I’m using in case it’s useful to anyone searching: using Profile using FlameGraphs…

---

## [Design of a function which takes ownership of memory, and Julia memory functions (:jl\_malloc etc)](https://discourse.julialang.org/t/design-of-a-function-which-takes-ownership-of-memory-and-julia-memory-functions-jl-malloc-etc/66631)

<div class="topic-metadata">

**Author:** [@rayegun](https://discourse.julialang.org/u/rayegun)\
**Replies:** 1\
**Last updated:** [August 18, 2021, 10:41pm UTC](https://discourse.julialang.org/t/design-of-a-function-which-takes-ownership-of-memory-and-julia-memory-functions-jl-malloc-etc/66631 "2021-08-18T22:41:33Z")

</div>

I need to implement a function which takes a Julia array (vector is sufficient) and passes ownership to a C function from SuiteSparse:GraphBLAS. This will be a long post so please bear with me. I want to implement the f…

---

## [What is the advantage of Julia over Fortran?](https://discourse.julialang.org/t/what-is-the-advantage-of-julia-over-fortran/65964)

<div class="topic-metadata">

**Author:** [@CRquantum](https://discourse.julialang.org/u/CRquantum)\
**Replies:** 132\
**Last updated:** [August 18, 2021, 11:06pm UTC](https://discourse.julialang.org/t/what-is-the-advantage-of-julia-over-fortran/65964 "2021-08-18T23:06:03Z")

</div>

I am from Fortran (high performance modern Fortran) to Julia. May I just straightforwardly ask a question to you guys, so, What is the advantage of Julia over Fortran? I mean, modern Fortran seems is not that bad, and…

---

## [EEG.jl -\> Present and Future](https://discourse.julialang.org/t/eeg-jl-present-and-future/44936)

<div class="topic-metadata">

**Author:** [@VMHidalgo](https://discourse.julialang.org/u/VMHidalgo)\
**Replies:** 44\
**Last updated:** [August 18, 2021, 10:32pm UTC](https://discourse.julialang.org/t/eeg-jl-present-and-future/44936 "2021-08-18T22:32:55Z")

</div>

Hi everybody, Present Today I tried to use the EEG.jl package but I could not add it. Is anybody using it? (@v1.5) pkg\> add https://github.com/rob-luke/EEG.jl Updating git-repo \`https://github.com/rob-luke/EEG.jl\`…

---

## [LightGraphs benchmark study, take 2](https://discourse.julialang.org/t/lightgraphs-benchmark-study-take-2/39297)

<div class="topic-metadata">

**Author:** [@anon94023334](https://discourse.julialang.org/u/anon94023334)\
**Replies:** 6\
**Last updated:** [August 18, 2021, 10:07pm UTC](https://discourse.julialang.org/t/lightgraphs-benchmark-study-take-2/39297 "2021-08-18T22:07:46Z")

</div>

Hi all, You might recall that back in February Tim Lin posted some graph benchmarks, and LightGraphs did reasonably well. In my post at the time, I mentioned that Tim was going to re-run the benchmarks in a few months. …

---

## [Pinning LinearAlgebra in Julia 1.6.2](https://discourse.julialang.org/t/pinning-linearalgebra-in-julia-1-6-2/66596)

<div class="topic-metadata">

**Author:** [@fipelle](https://discourse.julialang.org/u/fipelle)\
**Replies:** 13\
**Last updated:** [August 18, 2021, 9:27pm UTC](https://discourse.julialang.org/t/pinning-linearalgebra-in-julia-1-6-2/66596 "2021-08-18T21:27:45Z")

</div>

Hi, I am testing two packages in Julia 1.6.2 (TSAnalysis.jl and a new private package in the same area), as I have been using them with the LTS version until now. They seem to be working fine and pass all unit tests exc…

---

## [Discrepancy betwteen \`htop\` and \`sum(map(x-\>sizeof(x),names(Main)))\`](https://discourse.julialang.org/t/discrepancy-betwteen-htop-and-sum-map-x-sizeof-x-names-main/66629)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 0\
**Last updated:** [August 18, 2021, 8:59pm UTC](https://discourse.julialang.org/t/discrepancy-betwteen-htop-and-sum-map-x-sizeof-x-names-main/66629 "2021-08-18T20:59:44Z")

</div>

1. Check the total size of stuff julia knows about: sizeof I get a negligible value when I check the size of the environment: GC.gc() julia\> sum(map(x-\>sizeof(x),names(Main)))/1e6 # total size in megabytes 0.000598 2. …

---

## [Instead of OutOfMemory Error being thrown, my OS (Ubuntu) is killing the julia process](https://discourse.julialang.org/t/instead-of-outofmemory-error-being-thrown-my-os-ubuntu-is-killing-the-julia-process/66612)

<div class="topic-metadata">

**Author:** [@Antell](https://discourse.julialang.org/u/Antell)\
**Replies:** 6\
**Last updated:** [August 18, 2021, 9:11pm UTC](https://discourse.julialang.org/t/instead-of-outofmemory-error-being-thrown-my-os-ubuntu-is-killing-the-julia-process/66612 "2021-08-18T21:11:11Z")

</div>

I am writing a process that loads file into memory, does some operations, and then moves to the next file. Some large files do not fit into my RAM, and I would like to catch the OOM exception and skip the file. However, …

---

## [How to create a dictionary of dictionaries from an n-dimensional array?](https://discourse.julialang.org/t/how-to-create-a-dictionary-of-dictionaries-from-an-n-dimensional-array/66605)

<div class="topic-metadata">

**Author:** [@Mitch](https://discourse.julialang.org/u/Mitch)\
**Replies:** 4\
**Last updated:** [August 18, 2021, 8:50pm UTC](https://discourse.julialang.org/t/how-to-create-a-dictionary-of-dictionaries-from-an-n-dimensional-array/66605 "2021-08-18T20:50:09Z")

</div>

Thanks for your help! I need to create a nested JSON file and the first step is to create a dictionary of dictionaries. The below should provide a minimum working example. Pkg.add("Random") #Sample of desired keys and…

---

## [Julia suitable language for operational weather analysis?](https://discourse.julialang.org/t/julia-suitable-language-for-operational-weather-analysis/66401)

<div class="topic-metadata">

**Author:** [@Dieter](https://discourse.julialang.org/u/Dieter)\
**Replies:** 16\
**Last updated:** [August 18, 2021, 8:11pm UTC](https://discourse.julialang.org/t/julia-suitable-language-for-operational-weather-analysis/66401 "2021-08-18T20:11:56Z")

</div>

Hello community, I have programmed Matlab from 1997 up to now and now I think about changing to Julia (skipping Python). Working at a private weather company in Austria, I have created a lot of Matlab programmes which a…

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

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