# Latest

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

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

**Page:** 1612

---

## [Memoization performance](https://discourse.julialang.org/t/memoization-performance/26361)

<div class="topic-metadata">

**Author:** [@tk3369](https://discourse.julialang.org/u/tk3369)\
**Replies:** 6\
**Last updated:** [October 5, 2020, 8:16pm UTC](https://discourse.julialang.org/t/memoization-performance/26361 "2020-10-05T20:16:12Z")

</div>

Consider the classic fibonacci example: fib = n -\> n \< 3 ? 1 : fib(n-1) + fib(n-2) I have benchmarked several memoization implementations. The result is somewhat surprising. In theory, they work almost the same way. …

---

## [Problem with sign(pi)](https://discourse.julialang.org/t/problem-with-sign-pi/47801)

<div class="topic-metadata">

**Author:** [@aml](https://discourse.julialang.org/u/aml)\
**Replies:** 8\
**Last updated:** [October 5, 2020, 7:32pm UTC](https://discourse.julialang.org/t/problem-with-sign-pi/47801 "2020-10-05T19:32:30Z")

</div>

The following behavior seems strange: sign(pi) ERROR: InexactError: Bool(-1) Stacktrace: \[1\] Bool at .\\float.jl:73 \[inlined\] \[2\] convert at .\\number.jl:7 \[inlined\] \[3\] oftype(::Bool, ::Int64) at .\\essentials.jl:367 …

---

## [Discourse difference between numbers in blue and numbers in gray](https://discourse.julialang.org/t/discourse-difference-between-numbers-in-blue-and-numbers-in-gray/47805)

<div class="topic-metadata">

**Author:** [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Replies:** 2\
**Last updated:** [October 5, 2020, 6:31pm UTC](https://discourse.julialang.org/t/discourse-difference-between-numbers-in-blue-and-numbers-in-gray/47805 "2020-10-05T18:31:01Z")

</div>

Does anyone know what the difference is on Discourse between numbers in blue and numbers in gray? Here’s an example:

---

## [Using Interpolations](https://discourse.julialang.org/t/using-interpolations/23933)

<div class="topic-metadata">

**Author:** [@Eric\_Shain](https://discourse.julialang.org/u/Eric_Shain)\
**Replies:** 47\
**Last updated:** [October 5, 2020, 4:49pm UTC](https://discourse.julialang.org/t/using-interpolations/23933 "2020-10-05T16:49:44Z")

</div>

I’m trying to convert some code from Python to Julia. The key hang up at the moment converting the following Python code: #Uses Numpy’s interp method def TestInt(x): return np.interp(x,Data\[:,0\],Data\[:,1\]) This is …

---

## [JuliaDB error loading tables](https://discourse.julialang.org/t/juliadb-error-loading-tables/47795)

<div class="topic-metadata">

**Author:** [@David\_Ortley](https://discourse.julialang.org/u/David_Ortley)\
**Replies:** 1\
**Last updated:** [October 5, 2020, 4:37pm UTC](https://discourse.julialang.org/t/juliadb-error-loading-tables/47795 "2020-10-05T16:37:32Z")

</div>

I frequently have problems reloading the JuliaDB tables that I save. Sometimes they’re smaller tables on the order of a few MBs and sometimes a couple of GBs, but never anything close to how much RAM my machine has. I’…

---

## [Using Julia Logging with Multiple Julia Scripts](https://discourse.julialang.org/t/using-julia-logging-with-multiple-julia-scripts/47796)

<div class="topic-metadata">

**Author:** [@bmalham](https://discourse.julialang.org/u/bmalham)\
**Replies:** 1\
**Last updated:** [October 5, 2020, 4:34pm UTC](https://discourse.julialang.org/t/using-julia-logging-with-multiple-julia-scripts/47796 "2020-10-05T16:34:06Z")

</div>

Hello, I currently have a situation where I have one Julia script that calls other Julia functions via the “run” command, and I am trying to find a way to use Julia logging (provided by the ‘Logging’ package) throughout…

---

## [Style rules for type annotation?](https://discourse.julialang.org/t/style-rules-for-type-annotation/47788)

<div class="topic-metadata">

**Author:** [@Landrum](https://discourse.julialang.org/u/Landrum)\
**Replies:** 6\
**Last updated:** [October 5, 2020, 4:29pm UTC](https://discourse.julialang.org/t/style-rules-for-type-annotation/47788 "2020-10-05T16:29:18Z")

</div>

I’m reading the source of Javis.jl right now, and I see that function docstrings have type annotations for arguments, but the arguments themselves are not explicitly typed. If the type of the argument is going to be give…

---

## [India Julia Meetups](https://discourse.julialang.org/t/india-julia-meetups/47800)

<div class="topic-metadata">

**Author:** [@Sameer\_Anja](https://discourse.julialang.org/u/Sameer_Anja)\
**Replies:** 0\
**Last updated:** [October 5, 2020, 4:19pm UTC](https://discourse.julialang.org/t/india-julia-meetups/47800 "2020-10-05T16:19:56Z")

</div>

Are there any India Julia meetups?

---

## [Independent LU factorization of small matrices not faster with threads](https://discourse.julialang.org/t/independent-lu-factorization-of-small-matrices-not-faster-with-threads/47694)

<div class="topic-metadata">

**Author:** [@hcarlsso](https://discourse.julialang.org/u/hcarlsso)\
**Replies:** 10\
**Last updated:** [October 5, 2020, 4:06pm UTC](https://discourse.julialang.org/t/independent-lu-factorization-of-small-matrices-not-faster-with-threads/47694 "2020-10-05T16:06:14Z")

</div>

My problem is that I want to solve many small linear systems of size 3x3, and to do it in parallel, using LU factorization. using LinearAlgebra using TimerOutputs using Random reset\_timer!() function f\_lu(N) Rando…

---

## [List of resources using Turing](https://discourse.julialang.org/t/list-of-resources-using-turing/47784)

<div class="topic-metadata">

**Author:** [@mystis](https://discourse.julialang.org/u/mystis)\
**Replies:** 2\
**Last updated:** [October 5, 2020, 3:23pm UTC](https://discourse.julialang.org/t/list-of-resources-using-turing/47784 "2020-10-05T15:23:30Z")

</div>

Hi everyone, I thought it would nice to have a “Learning” section for Turing, something similar to what exists on the Julialang website. I know there are tutorials and links to Statistical Rethinking but I thought that …

---

## [Checking membership in a MathOptInterface Set](https://discourse.julialang.org/t/checking-membership-in-a-mathoptinterface-set/47642)

<div class="topic-metadata">

**Author:** [@1ozturkbe](https://discourse.julialang.org/u/1ozturkbe)\
**Replies:** 5\
**Last updated:** [October 5, 2020, 3:13pm UTC](https://discourse.julialang.org/t/checking-membership-in-a-mathoptinterface-set/47642 "2020-10-05T15:13:59Z")

</div>

Hello folks, I hope this is an easy question, but unfortunately some of the internals of MathOptInterface and JuMP are opaque. constraint\_object(constraint::ConstraintRef) operation in JuMP returns a ScalarConstraint, w…

---

## [Help with convert error from Array{Float64, 2} to Float64](https://discourse.julialang.org/t/help-with-convert-error-from-array-float64-2-to-float64/47792)

<div class="topic-metadata">

**Author:** [@jayanth\_jayasimha](https://discourse.julialang.org/u/jayanth_jayasimha)\
**Replies:** 1\
**Last updated:** [October 5, 2020, 2:59pm UTC](https://discourse.julialang.org/t/help-with-convert-error-from-array-float64-2-to-float64/47792 "2020-10-05T14:59:17Z")

</div>

Hi How do you clear this error please do help me at the earliest. gmsh.initialize(ARGS) gmsh.option.setNumber(“General.Terminal”, 1) gmsh.model.add(“Jayanth model”) using LinearAlgebra gmsh.initialize(ARGS) gmsh.o…

---

## [3D Matrix vs Array of 2D Matrices using Comprehensions](https://discourse.julialang.org/t/3d-matrix-vs-array-of-2d-matrices-using-comprehensions/47688)

<div class="topic-metadata">

**Author:** [@jleman](https://discourse.julialang.org/u/jleman)\
**Replies:** 5\
**Last updated:** [October 5, 2020, 2:24pm UTC](https://discourse.julialang.org/t/3d-matrix-vs-array-of-2d-matrices-using-comprehensions/47688 "2020-10-05T14:24:30Z")

</div>

I am trying to populate a large, dense 3D matrix (3000 x 18 x 1000). I tried iterating over all positions of the 3D matrix (testing various row/column iteration orders) - see Attempt 1. I also tried array comprehension…

---

## [Building -- and releasing -- a fully self-contained Application written in julia](https://discourse.julialang.org/t/building-and-releasing-a-fully-self-contained-application-written-in-julia/10418)

<div class="topic-metadata">

**Author:** [@NHDaly](https://discourse.julialang.org/u/NHDaly)\
**Replies:** 16\
**Last updated:** [October 5, 2020, 2:13pm UTC](https://discourse.julialang.org/t/building-and-releasing-a-fully-self-contained-application-written-in-julia/10418 "2020-10-05T14:13:20Z")

</div>

\-– This post is a follow-up to my previous post on compiling a binary for distribution: How to compile a portable binary (at least across macs) with \`juliac.jl\`. — More cool news!! You can write software in Julia, and t…

---

## [StackOverflow Error when plotting DataFrame data](https://discourse.julialang.org/t/stackoverflow-error-when-plotting-dataframe-data/47774)

<div class="topic-metadata">

**Author:** [@b.lind](https://discourse.julialang.org/u/b.lind)\
**Replies:** 16\
**Last updated:** [October 5, 2020, 1:18pm UTC](https://discourse.julialang.org/t/stackoverflow-error-when-plotting-dataframe-data/47774 "2020-10-05T13:18:04Z")

</div>

I’ve recently adopted Julia to analyze some sensor data recorded in a \*.csv file. I used the code shown below to plot a subset of my data, however the last code block to plot the data fails with the following error: St…

---

## [\`convert\` an object of type Array{Any,1} to an object of type Float64](https://discourse.julialang.org/t/convert-an-object-of-type-array-any-1-to-an-object-of-type-float64/22523)

<div class="topic-metadata">

**Author:** [@Aquaman](https://discourse.julialang.org/u/Aquaman)\
**Replies:** 15\
**Last updated:** [March 30, 2019, 4:41am UTC](https://discourse.julialang.org/t/convert-an-object-of-type-array-any-1-to-an-object-of-type-float64/22523 "2019-03-30T04:41:47Z")

</div>

Dear All, is it possible that we convert an object of type Array{Any,1} to an object of type Float64: rb = \[0.0 0.0 1.0 1.0\] i=1 while i \< length(rb) if (rb\[i\]==rb\[i+1\]) rb\[i+1\]=\[\] global i=i-1 end gl…

---

## [Pkg.juilalang.org unresponsive?](https://discourse.julialang.org/t/pkg-juilalang-org-unresponsive/47671)

<div class="topic-metadata">

**Author:** [@Peter\_Adelman](https://discourse.julialang.org/u/Peter_Adelman)\
**Replies:** 3\
**Last updated:** [October 5, 2020, 11:32am UTC](https://discourse.julialang.org/t/pkg-juilalang-org-unresponsive/47671 "2020-10-05T11:32:56Z")

</div>

I am attempting to update my packages on Julia 1.5.1 and it tells me that it cannot contact pkg.julialang.org/registries. Messing around with curl pkg.julialang.org/registries, I receive the domain-specific redirect fin…

---

## [JSON3 - How write(serialize) the specified number of significant digits?](https://discourse.julialang.org/t/json3-how-write-serialize-the-specified-number-of-significant-digits/47633)

<div class="topic-metadata">

**Author:** [@Martin\_Florek](https://discourse.julialang.org/u/Martin_Florek)\
**Replies:** 3\
**Last updated:** [October 2, 2020, 8:17pm UTC](https://discourse.julialang.org/t/json3-how-write-serialize-the-specified-number-of-significant-digits/47633 "2020-10-02T20:17:00Z")

</div>

Hi all, I would like write short form number of digits. e.g as round(x; sigdigits=10) I parse vector of float with help JSON3 to json string and vice versa. Default Float64 is NumberType JSON3.StructType(::Type{\<:Floa…

---

## [Release a new version of registered packages (again)](https://discourse.julialang.org/t/release-a-new-version-of-registered-packages-again/47765)

<div class="topic-metadata">

**Author:** [@iHany](https://discourse.julialang.org/u/iHany)\
**Replies:** 2\
**Last updated:** [October 5, 2020, 10:28am UTC](https://discourse.julialang.org/t/release-a-new-version-of-registered-packages-again/47765 "2020-10-05T10:28:41Z")

</div>

Sorry guys, in despite of many experts gave me some advices (here), I still don’t find out how to release a new version of my registered package. What I did Register a package. Add .github/workflows/TagBot.yml like t…

---

## [Reconstruct() in Parameters.jl with parameters interdependency](https://discourse.julialang.org/t/reconstruct-in-parameters-jl-with-parameters-interdependency/47753)

<div class="topic-metadata">

**Author:** [@Caio\_Machado](https://discourse.julialang.org/u/Caio_Machado)\
**Replies:** 4\
**Last updated:** [October 5, 2020, 9:24am UTC](https://discourse.julialang.org/t/reconstruct-in-parameters-jl-with-parameters-interdependency/47753 "2020-10-05T09:24:48Z")

</div>

Hi all, I find Parameters.jl and its function reconstruct() a very convenient way to handle models that need to be computed under many set of parameters. The feature that one can define a default value for a parameter t…

---

## [Heatmap: Assign colors to discrete values](https://discourse.julialang.org/t/heatmap-assign-colors-to-discrete-values/47739)

<div class="topic-metadata">

**Author:** [@pascal-mueller](https://discourse.julialang.org/u/pascal-mueller)\
**Replies:** 32\
**Last updated:** [October 5, 2020, 9:21am UTC](https://discourse.julialang.org/t/heatmap-assign-colors-to-discrete-values/47739 "2020-10-05T09:21:30Z")

</div>

Hi, I want to plot a 2D array with heatmap. The array consists of 1s, 2s and 3s. Now I want to assign each value a color, e.g. 1: black, 2: green, 3: blue. I just can’t figure out how I can do that. :confused:

---

## [Plots export to svg with text converted to shape](https://discourse.julialang.org/t/plots-export-to-svg-with-text-converted-to-shape/47420)

<div class="topic-metadata">

**Author:** [@jlang](https://discourse.julialang.org/u/jlang)\
**Replies:** 1\
**Last updated:** [October 5, 2020, 8:36am UTC](https://discourse.julialang.org/t/plots-export-to-svg-with-text-converted-to-shape/47420 "2020-10-05T08:36:28Z")

</div>

I have two julia versions: one julia 1.0 with Plots 0.28.4 and one julia 1.5.1 with Plots 1.6.4. They both use the GR backend. Basically I don’t change anything. Take this little script: import Plots using Plots plot(e…

---

## [Pmap with multiple GPUs](https://discourse.julialang.org/t/pmap-with-multiple-gpus/47698)

<div class="topic-metadata">

**Author:** [@theogf](https://discourse.julialang.org/u/theogf)\
**Replies:** 8\
**Last updated:** [October 5, 2020, 8:15am UTC](https://discourse.julialang.org/t/pmap-with-multiple-gpus/47698 "2020-10-05T08:15:31Z")

</div>

Hi, First CUDA.jl is simply amazing and really to use, kudos to you all! Now in my problem I have multiple GPUs and I would like to parallelize the training of my networks in parallel. So basically have one training of…

---

## [Searchsortedfirst \`by\` argument not working?](https://discourse.julialang.org/t/searchsortedfirst-by-argument-not-working/47769)

<div class="topic-metadata">

**Author:** [@Donut\_Meepo](https://discourse.julialang.org/u/Donut_Meepo)\
**Replies:** 2\
**Last updated:** [October 5, 2020, 7:41am UTC](https://discourse.julialang.org/t/searchsortedfirst-by-argument-not-working/47769 "2020-10-05T07:41:23Z")

</div>

Hi, Could anyone help me figure out why the by transformation was not applied? Thank you!

---

## [Stacktraces print backwards](https://discourse.julialang.org/t/stacktraces-print-backwards/47722)

<div class="topic-metadata">

**Author:** [@Ginter](https://discourse.julialang.org/u/Ginter)\
**Replies:** 9\
**Last updated:** [October 5, 2020, 6:39am UTC](https://discourse.julialang.org/t/stacktraces-print-backwards/47722 "2020-10-05T06:39:53Z")

</div>

When an error occurs, stacktraces are get printed in the same order as the stack unwinds. This is the opposite of Python’s behavior and makes it so I always need to scroll up to see what caused the error. Is there a way …

---

## [Are there offline tools for snooping \*.ji files?](https://discourse.julialang.org/t/are-there-offline-tools-for-snooping-ji-files/46689)

<div class="topic-metadata">

**Author:** [@kimikage](https://discourse.julialang.org/u/kimikage)\
**Replies:** 4\
**Last updated:** [October 4, 2020, 8:40am UTC](https://discourse.julialang.org/t/are-there-offline-tools-for-snooping-ji-files/46689 "2020-10-04T08:40:49Z")

</div>

If I understand correctly, most of the loading of the \*.ji file is done by C code, and the parsing and applying phases are not (yet) well separated. This makes it difficult to analyze the contents of the \*.ji file withou…

---

## [Fastest way to simulate the birthday paradox](https://discourse.julialang.org/t/fastest-way-to-simulate-the-birthday-paradox/47756)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 2\
**Last updated:** [October 5, 2020, 3:58am UTC](https://discourse.julialang.org/t/fastest-way-to-simulate-the-birthday-paradox/47756 "2020-10-05T03:58:46Z")

</div>

Trying to write a script for a video to explain some Julia programming concepts. Was trying to use the birthday “paradox” as example. It states that in a room of 23 ppl, there is a 50% chance that at least one pair of pe…

---

## [How to use \`@atomic\` with CUDA?](https://discourse.julialang.org/t/how-to-use-atomic-with-cuda/47761)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 1\
**Last updated:** [October 5, 2020, 3:21am UTC](https://discourse.julialang.org/t/how-to-use-atomic-with-cuda/47761 "2020-10-05T03:21:02Z")

</div>

I am trying to get atomic to work. I am trying to produce an MWE so the code by itself doesn’t make any sense. I have a buffer which I am trying to add 1.0 for every thread in block that gets run. using CUDA CUDA.allow…

---

## [Julialang Official Discord Server](https://discourse.julialang.org/t/julialang-official-discord-server/45499)

<div class="topic-metadata">

**Author:** [@dtunacs](https://discourse.julialang.org/u/dtunacs)\
**Replies:** 2\
**Last updated:** [October 5, 2020, 3:18am UTC](https://discourse.julialang.org/t/julialang-official-discord-server/45499 "2020-10-05T03:18:16Z")

</div>

I’ve been looking for a while but I couldn’t find it. Is there an official Discord server for Julialang?

---

## [\[ANN\] TableIO - simple reading and writing of tabular data (experimental)](https://discourse.julialang.org/t/ann-tableio-simple-reading-and-writing-of-tabular-data-experimental/47427)

<div class="topic-metadata">

**Author:** [@lungben](https://discourse.julialang.org/u/lungben)\
**Replies:** 22\
**Last updated:** [October 5, 2020, 12:50am UTC](https://discourse.julialang.org/t/ann-tableio-simple-reading-and-writing-of-tabular-data-experimental/47427 "2020-10-05T00:50:36Z")

</div>

Hi, I created a small “glue” package for reading and writing tabular data. It aims to provide a uniform api for multiple sources. This package is “intelligent” in this sense that it automatically selects the right read…

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

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