# Latest

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

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

**Page:** 500

---

## [\`eval\` scope problem and \`println\` problem for multithreading](https://discourse.julialang.org/t/eval-scope-problem-and-println-problem-for-multithreading/109333)

<div class="topic-metadata">

**Author:** [@ccestbon](https://discourse.julialang.org/u/ccestbon)\
**Replies:** 13\
**Last updated:** [January 28, 2024, 9:17am UTC](https://discourse.julialang.org/t/eval-scope-problem-and-println-problem-for-multithreading/109333 "2024-01-28T09:17:55Z")

</div>

Update 1: Thanks for all the suggesions. I have modifed the code as follows: using Sockets # server server = listen(2000) errormonitor( @async begin sock = accept(server) ex = quote my() = println("aa") end …

---

## [How to actively develop a package I am working on?](https://discourse.julialang.org/t/how-to-actively-develop-a-package-i-am-working-on/109331)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 6\
**Last updated:** [January 28, 2024, 8:55am UTC](https://discourse.julialang.org/t/how-to-actively-develop-a-package-i-am-working-on/109331 "2024-01-28T08:55:18Z")

</div>

Hello! I have a package I am working on and currently my workflow is a bit of a hassle. I want to develop my package a bit more interactively, but currently my workflow is: Do changes Commit changes to Github and push …

---

## [Problem when using Pluto (UnauthorizedAccess on Windows)](https://discourse.julialang.org/t/problem-when-using-pluto-unauthorizedaccess-on-windows/109265)

<div class="topic-metadata">

**Author:** [@MHaensel](https://discourse.julialang.org/u/MHaensel)\
**Replies:** 5\
**Last updated:** [January 28, 2024, 4:44am UTC](https://discourse.julialang.org/t/problem-when-using-pluto-unauthorizedaccess-on-windows/109265 "2024-01-28T04:44:43Z")

</div>

Hi everyone I am a bit clueless about the following: I recently updated to Julia 1.10.0 which I installed via the Microsoft store. Everything seemed fine so far. Now, I wanted to use a Pluto.jl notebook. When starting …

---

## [Computing binomial(n,k) without overflow](https://discourse.julialang.org/t/computing-binomial-n-k-without-overflow/109349)

<div class="topic-metadata">

**Author:** [@mike.ingold](https://discourse.julialang.org/u/mike.ingold)\
**Replies:** 14\
**Last updated:** [January 28, 2024, 3:52am UTC](https://discourse.julialang.org/t/computing-binomial-n-k-without-overflow/109349 "2024-01-28T03:52:11Z")

</div>

The function binomial(n,k) throws an OverflowError if the standard ::Int64 arguments are large enough that the result overflows an ::Int64. This can be modified to binomial(big(b),k) to promote the output to BigInt, e.g.…

---

## [Macro CheatSheet for Julia 2024.01](https://discourse.julialang.org/t/macro-cheatsheet-for-julia-2024-01/109291)

<div class="topic-metadata">

**Author:** [@Marcell\_Havlik](https://discourse.julialang.org/u/Marcell_Havlik)\
**Replies:** 2\
**Last updated:** [January 27, 2024, 8:51pm UTC](https://discourse.julialang.org/t/macro-cheatsheet-for-julia-2024-01/109291 "2024-01-27T20:51:56Z")

</div>

Hey Julianners, I created a not so hard to read and hopefully clean Julia Cheat Sheet for macros. This is I think a very good way to fill the gaps on the harder parts. JuliaMacroCheatSheet It is worth to check it her…

---

## [How to keep the cursor focus on the REPL?](https://discourse.julialang.org/t/how-to-keep-the-cursor-focus-on-the-repl/109321)

<div class="topic-metadata">

**Author:** [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Replies:** 6\
**Last updated:** [January 27, 2024, 8:09pm UTC](https://discourse.julialang.org/t/how-to-keep-the-cursor-focus-on-the-repl/109321 "2024-01-27T20:09:46Z")

</div>

I need help with Gtk.jl for the following basic problem. I am trying to get input from the REPL in a closed loop program and update a Gtk window that keeps track of all items generated during program execution. See the…

---

## [Matrix storage](https://discourse.julialang.org/t/matrix-storage/109343)

<div class="topic-metadata">

**Author:** [@Enlil50](https://discourse.julialang.org/u/Enlil50)\
**Replies:** 11\
**Last updated:** [January 27, 2024, 6:59pm UTC](https://discourse.julialang.org/t/matrix-storage/109343 "2024-01-27T18:59:18Z")

</div>

How are matrices stored? Let us make an example: I initialize a 10\*10 int32 matrix. I first fill the 5\*5 left-top block. I then extend the matrix to be a 10\*10, adding the new elements with the correct \[ , \] syntax. …

---

## [Cannot instantiate env in Julia 1.10: adwaita\_icon\_theme\_jll git tree hash error - anyone else?](https://discourse.julialang.org/t/cannot-instantiate-env-in-julia-1-10-adwaita-icon-theme-jll-git-tree-hash-error-anyone-else/108105)

<div class="topic-metadata">

**Author:** [@harvestdeparture729](https://discourse.julialang.org/u/harvestdeparture729)\
**Replies:** 11\
**Last updated:** [January 27, 2024, 6:58pm UTC](https://discourse.julialang.org/t/cannot-instantiate-env-in-julia-1-10-adwaita-icon-theme-jll-git-tree-hash-error-anyone-else/108105 "2024-01-27T18:58:02Z")

</div>

Hello all, long-time lurker, first time caller, etc. etc. When excitedly trying to instantiate an environment w/ shiny new Julia 1.10 today (Windows), I encountered an odd error, which I’ve submitted/summarized here: Ca…

---

## [Remove bounds checking for the entire program](https://discourse.julialang.org/t/remove-bounds-checking-for-the-entire-program/109339)

<div class="topic-metadata">

**Author:** [@Enlil50](https://discourse.julialang.org/u/Enlil50)\
**Replies:** 8\
**Last updated:** [January 27, 2024, 6:38pm UTC](https://discourse.julialang.org/t/remove-bounds-checking-for-the-entire-program/109339 "2024-01-27T18:38:53Z")

</div>

I don’t need bound checking. Instead of writing @inbounds everywhere, can I test my program without it and then, when it all works, enable a flag which disables all the bound checking and other automatic behaviours typi…

---

## [Removing undesirable allocations in some functions](https://discourse.julialang.org/t/removing-undesirable-allocations-in-some-functions/109337)

<div class="topic-metadata">

**Author:** [@aris](https://discourse.julialang.org/u/aris)\
**Replies:** 15\
**Last updated:** [January 27, 2024, 6:15pm UTC](https://discourse.julialang.org/t/removing-undesirable-allocations-in-some-functions/109337 "2024-01-27T18:15:41Z")

</div>

Greetings everyone, Here I would like to use a specific example from a code of mine, to help me (and hopefully others) better understand how allocations work. I’ve got a code which imports data (xyz coordinates of hydr…

---

## [A most harrowing collection of Julia WATs](https://discourse.julialang.org/t/a-most-harrowing-collection-of-julia-wats/77323)

<div class="topic-metadata">

**Author:** [@miguelraz](https://discourse.julialang.org/u/miguelraz)\
**Replies:** 106\
**Last updated:** [January 27, 2024, 4:05pm UTC](https://discourse.julialang.org/t/a-most-harrowing-collection-of-julia-wats/77323 "2024-01-27T16:05:08Z")

</div>

Hello all! :wave: I’ve been collecting a few of the most cursed corner cases of Julia WATs that I know of here (WIP), but I would appreciate if people could share their own rare specimens as well. Please ping me with y…

---

## [Pluto problem with Base.load\_path() when importing locally installed packages](https://discourse.julialang.org/t/pluto-problem-with-base-load-path-when-importing-locally-installed-packages/107755)

<div class="topic-metadata">

**Author:** [@hisacro](https://discourse.julialang.org/u/hisacro)\
**Replies:** 2\
**Last updated:** [January 27, 2024, 2:35pm UTC](https://discourse.julialang.org/t/pluto-problem-with-base-load-path-when-importing-locally-installed-packages/107755 "2024-01-27T14:35:12Z")

</div>

I used to use begin import Pkg Pkg.activate() using ForwardDiff, LinearAlgebra,PlutoUI, DelimitedFiles, DynamicalSystems, GLMakie, Plots, OrdinaryDiffEq, ProgressMeter; plotly(); end to import locally installed packa…

---

## [Compiler doesn't know the type of real.(vec) in compile time](https://discourse.julialang.org/t/compiler-doesnt-know-the-type-of-real-vec-in-compile-time/109336)

<div class="topic-metadata">

**Author:** [@Shayan](https://discourse.julialang.org/u/Shayan)\
**Replies:** 6\
**Last updated:** [January 27, 2024, 2:03pm UTC](https://discourse.julialang.org/t/compiler-doesnt-know-the-type-of-real-vec-in-compile-time/109336 "2024-01-27T14:03:04Z")

</div>

How to make the cc function type stable? function cc( model::Type{\<:CepstralCoeffModel}, tseries::AbstractVector, p::Integer, n::Integer; normalize::Bool=false ) series = tseries normalize && begin ser…

---

## [How to change colormap for plotting with arrows()?](https://discourse.julialang.org/t/how-to-change-colormap-for-plotting-with-arrows/109323)

<div class="topic-metadata">

**Author:** [@Midez](https://discourse.julialang.org/u/Midez)\
**Replies:** 4\
**Last updated:** [January 27, 2024, 12:49pm UTC](https://discourse.julialang.org/t/how-to-change-colormap-for-plotting-with-arrows/109323 "2024-01-27T12:49:33Z")

</div>

Julia has an awesome documentation, including an example for arrows(). However I don’t figure, how to change the colormap that shows the strength of the arrows. I’d like to change it to :bluesreds. If you know how, let m…

---

## [How to calculate the real cepstrums of a time-series in Julia?](https://discourse.julialang.org/t/how-to-calculate-the-real-cepstrums-of-a-time-series-in-julia/109169)

<div class="topic-metadata">

**Author:** [@Shayan](https://discourse.julialang.org/u/Shayan)\
**Replies:** 6\
**Last updated:** [January 27, 2024, 10:01am UTC](https://discourse.julialang.org/t/how-to-calculate-the-real-cepstrums-of-a-time-series-in-julia/109169 "2024-01-27T10:01:25Z")

</div>

That being said, the real cepstrum of a time series can be calculated by the inverse Fourier transform of the real logarithm of the Fourier transform of the time–series (K. Kalpakis et al., 2001). Let’s assume that w…

---

## [How does one programmatically examine the contents of a function?](https://discourse.julialang.org/t/how-does-one-programmatically-examine-the-contents-of-a-function/109320)

<div class="topic-metadata">

**Author:** [@alex-s-gardner](https://discourse.julialang.org/u/alex-s-gardner)\
**Replies:** 1\
**Last updated:** [January 27, 2024, 4:09am UTC](https://discourse.julialang.org/t/how-does-one-programmatically-examine-the-contents-of-a-function/109320 "2024-01-27T04:09:41Z")

</div>

I would like to examine a user defined function to create a variable example function function foo(var) out = var.a.a1 .+ var.b.c3 return out end in this case I would like to examine the code to identify that var …

---

## [Minor issue with if statement and may about types?](https://discourse.julialang.org/t/minor-issue-with-if-statement-and-may-about-types/109326)

<div class="topic-metadata">

**Author:** [@Wooheon](https://discourse.julialang.org/u/Wooheon)\
**Replies:** 5\
**Last updated:** [January 27, 2024, 3:03am UTC](https://discourse.julialang.org/t/minor-issue-with-if-statement-and-may-about-types/109326 "2024-01-27T03:03:29Z")

</div>

Hello, I just tried to make the following function. function CRRA\_bernoulli(ω::Float16,x::Int16) if ω == 1.00 val = log( exp(1), x ) else val = ( x / ( 1 - ω ) ) ^ ( 1 - ω ) end return va…

---

## [\[FR\] provide a predicate to check whether a type intersection subtypes some type?](https://discourse.julialang.org/t/fr-provide-a-predicate-to-check-whether-a-type-intersection-subtypes-some-type/109303)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 10\
**Last updated:** [January 27, 2024, 2:46am UTC](https://discourse.julialang.org/t/fr-provide-a-predicate-to-check-whether-a-type-intersection-subtypes-some-type/109303 "2024-01-27T02:46:56Z")

</div>

Just found out that typeintersect isn’t commutative, i.e., typeintersect(A, B) == typeintersect(B, A) isn’t guaranteed for general A and B: suboptimal typeintersections for degenerate TypeVars · Issue #53069 · JuliaLang/…

---

## [Integration of ~1/r and ~1/r^2 functions](https://discourse.julialang.org/t/integration-of-1-r-and-1-r-2-functions/109200)

<div class="topic-metadata">

**Author:** [@svretina](https://discourse.julialang.org/u/svretina)\
**Replies:** 7\
**Last updated:** [January 25, 2024, 12:49pm UTC](https://discourse.julialang.org/t/integration-of-1-r-and-1-r-2-functions/109200 "2024-01-25T12:49:12Z")

</div>

I would like to integrate some rational functions I have which scale as 1/r and 1/r^2 respectively. Gaussian quadratures are exact for polynomial functions. Do you know any julia implementation of a rational quadrature? …

---

## [4D Meshing in julia](https://discourse.julialang.org/t/4d-meshing-in-julia/109239)

<div class="topic-metadata">

**Author:** [@c\_sell](https://discourse.julialang.org/u/c_sell)\
**Replies:** 4\
**Last updated:** [January 26, 2024, 10:58pm UTC](https://discourse.julialang.org/t/4d-meshing-in-julia/109239 "2024-01-26T22:58:31Z")

</div>

Hi there, Is there a julia package with the ability to generate 4d meshes (the 4th dimension being time). There are no strict requirements for the quality of the mesh (the elements do not have to be convex). Thank you…

---

## [Plotting a matrix with wireframe where one axis isn't 1:max](https://discourse.julialang.org/t/plotting-a-matrix-with-wireframe-where-one-axis-isnt-1-max/109316)

<div class="topic-metadata">

**Author:** [@bwanab](https://discourse.julialang.org/u/bwanab)\
**Replies:** 4\
**Last updated:** [January 26, 2024, 10:42pm UTC](https://discourse.julialang.org/t/plotting-a-matrix-with-wireframe-where-one-axis-isnt-1-max/109316 "2024-01-26T22:42:27Z")

</div>

I’m plotting a matrix in which the interpretation of one axis isn’t the 1:n where n is size of the axis. For example: using Plots data = reshape(rand(9), 3,3) p = wireframe(data) # works fine with both axis 1:3 xtick…

---

## [\[ANN\] PkgBump.jl: Automatically increment Julia Project file version](https://discourse.julialang.org/t/ann-pkgbump-jl-automatically-increment-julia-project-file-version/109318)

<div class="topic-metadata">

**Author:** [@terasakisatoshi](https://discourse.julialang.org/u/terasakisatoshi)\
**Replies:** 4\
**Last updated:** [January 26, 2024, 10:39pm UTC](https://discourse.julialang.org/t/ann-pkgbump-jl-automatically-increment-julia-project-file-version/109318 "2024-01-26T22:39:04Z")

</div>

PkgBump.jl Currently this project is WIP. Introduction When it comes to release new version of your package, you are supposed to update version entry Project.toml. name = "YourJuliaPkg" version = "0.1.0" # \<--- ... .…

---

## [My Package cannot be installed using Pkg.add](https://discourse.julialang.org/t/my-package-cannot-be-installed-using-pkg-add/109294)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 6\
**Last updated:** [January 26, 2024, 9:53pm UTC](https://discourse.julialang.org/t/my-package-cannot-be-installed-using-pkg-add/109294 "2024-01-26T21:53:12Z")

</div>

Hello! I think the issue is to due with my specific package and not any bug in Pkg. The package is: GitHub - AhmedSalih3d/SPHExample: Simple SPH dam-break simulation in Julia When I do Pkg.add(url="https://github.com/…

---

## [Why doesn't the loss calculated by Flux \`withgradient\` match what I have calculated?](https://discourse.julialang.org/t/why-doesnt-the-loss-calculated-by-flux-withgradient-match-what-i-have-calculated/109228)

<div class="topic-metadata">

**Author:** [@kirklong](https://discourse.julialang.org/u/kirklong)\
**Replies:** 2\
**Last updated:** [January 26, 2024, 9:05pm UTC](https://discourse.julialang.org/t/why-doesnt-the-loss-calculated-by-flux-withgradient-match-what-i-have-calculated/109228 "2024-01-26T21:05:57Z")

</div>

Just posted this to StackOverflow, but crossposting here for Julia reach. TL;DR – when making a simple CNN I noticed weird behavior between the reported loss during training and the loss I actually calculated from the “…

---

## [How to run ptx code on CUDA from julia?](https://discourse.julialang.org/t/how-to-run-ptx-code-on-cuda-from-julia/109306)

<div class="topic-metadata">

**Author:** [@Marcell\_Havlik](https://discourse.julialang.org/u/Marcell_Havlik)\
**Replies:** 11\
**Last updated:** [January 26, 2024, 8:42pm UTC](https://discourse.julialang.org/t/how-to-run-ptx-code-on-cuda-from-julia/109306 "2024-01-26T20:42:17Z")

</div>

Hi I am trying to create a NN library that directly output a very optimized version of ptx code, also would be open to output even lower level code if possible. But of course I see I have to go step by step as it is get…

---

## [Krylov based lanczos etc for sparse matrices](https://discourse.julialang.org/t/krylov-based-lanczos-etc-for-sparse-matrices/109310)

<div class="topic-metadata">

**Author:** [@Enlil50](https://discourse.julialang.org/u/Enlil50)\
**Replies:** 2\
**Last updated:** [January 26, 2024, 8:31pm UTC](https://discourse.julialang.org/t/krylov-based-lanczos-etc-for-sparse-matrices/109310 "2024-01-26T20:31:34Z")

</div>

I found Home · KrylovKit.jl and it points to KrylovMethods.jl/README.md at master · JuliaInv/KrylovMethods.jl · GitHub for sparse matrices. However I don’t find any documentation. How can i use it? Does it support comp…

---

## [What is Julia used for?](https://discourse.julialang.org/t/what-is-julia-used-for/109199)

<div class="topic-metadata">

**Author:** [@Rajaram\_Venkataraman](https://discourse.julialang.org/u/Rajaram_Venkataraman)\
**Replies:** 15\
**Last updated:** [January 26, 2024, 7:29pm UTC](https://discourse.julialang.org/t/what-is-julia-used-for/109199 "2024-01-26T19:29:56Z")

</div>

For classic ML and DNN, scikitlearn, tensorflow and pytorch are popular - will be so in the foreseeablefuture. For genetic algorithms, GNNs and LLMs also, Python - C/C++ ecosyem is at the forefront. I would like to under…

---

## [Julia Copenhagen Meetup - 5th of February 2024](https://discourse.julialang.org/t/julia-copenhagen-meetup-5th-of-february-2024/108899)

<div class="topic-metadata">

**Author:** [@wc4wc4wc4](https://discourse.julialang.org/u/wc4wc4wc4)\
**Replies:** 3\
**Last updated:** [January 26, 2024, 6:23pm UTC](https://discourse.julialang.org/t/julia-copenhagen-meetup-5th-of-february-2024/108899 "2024-01-26T18:23:03Z")

</div>

The next meetup will be Monday the 5th of February at 18.00 at Desupervised, Strandboulevarden 122 3rd floor, 2100 København. This time we will hear from Michael Green, CEO / CTO at Desupervised. Michael will give a tal…

---

## [How to preview a Luxor drawing](https://discourse.julialang.org/t/how-to-preview-a-luxor-drawing/109298)

<div class="topic-metadata">

**Author:** [@aleppersico](https://discourse.julialang.org/u/aleppersico)\
**Replies:** 8\
**Last updated:** [January 26, 2024, 5:15pm UTC](https://discourse.julialang.org/t/how-to-preview-a-luxor-drawing/109298 "2024-01-26T17:15:27Z")

</div>

Hello all, I am using Julia to run simulations on a given system and in my post-processing module I plot and save the results. Also, I have implemented a Luxor drawing function named drawSystem() that shows my data in a…

---

## [Parallelization seems to increase the necessary amount of allocations for single threads](https://discourse.julialang.org/t/parallelization-seems-to-increase-the-necessary-amount-of-allocations-for-single-threads/109259)

<div class="topic-metadata">

**Author:** [@jabru](https://discourse.julialang.org/u/jabru)\
**Replies:** 8\
**Last updated:** [January 26, 2024, 3:10pm UTC](https://discourse.julialang.org/t/parallelization-seems-to-increase-the-necessary-amount-of-allocations-for-single-threads/109259 "2024-01-26T15:10:00Z")

</div>

Hi there, so I am currently working on a small piece of code that is meant to demonstrate the usefulness of parallelization. Therefore I wrote a small Euler like differential equation solver that solves the Euler equatio…

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

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