# Latest

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

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

**Page:** 706

---

## [Random variations between results of CPU and GPU computation](https://discourse.julialang.org/t/random-variations-between-results-of-cpu-and-gpu-computation/98517)

<div class="topic-metadata">

**Author:** [@ReWoP](https://discourse.julialang.org/u/ReWoP)\
**Replies:** 7\
**Last updated:** [May 9, 2023, 7:02pm UTC](https://discourse.julialang.org/t/random-variations-between-results-of-cpu-and-gpu-computation/98517 "2023-05-09T19:02:20Z")

</div>

Hi all, I’ve noticed that I’m getting some variations between the results computed in the GPU VS the ones obtained in the CPU. Here is a simple example: a = CUDA.rand(Float64, 10000); @show CUDA.sum(a) - sum(Array(a)…

---

## [CSV.Row very slow for reading files line by line](https://discourse.julialang.org/t/csv-row-very-slow-for-reading-files-line-by-line/98563)

<div class="topic-metadata">

**Author:** [@amael](https://discourse.julialang.org/u/amael)\
**Replies:** 0\
**Last updated:** [May 9, 2023, 4:39pm UTC](https://discourse.julialang.org/t/csv-row-very-slow-for-reading-files-line-by-line/98563 "2023-05-09T16:39:20Z")

</div>

Hi @stevengj @quinnj @CodeGodz, I’m trying to use CSV.Row as well as ViewReader to read files line by line as efficiently as possible (following the topic ViewReader discussion). Ultimately the goal is to process on the…

---

## [Where do these allocations come from?](https://discourse.julialang.org/t/where-do-these-allocations-come-from/98549)

<div class="topic-metadata">

**Author:** [@matthias314](https://discourse.julialang.org/u/matthias314)\
**Replies:** 4\
**Last updated:** [May 9, 2023, 4:29pm UTC](https://discourse.julialang.org/t/where-do-these-allocations-come-from/98549 "2023-05-09T16:29:13Z")

</div>

I want to write a function g(w, x...) with the following properties: If none of the arguments following w is a vector, then the tuple x is appended to w (a vector). For each of the other vector arguments, the function sh…

---

## [What is Julia's maxk(Matlab) that returns the indice of top K largest values?](https://discourse.julialang.org/t/what-is-julias-maxk-matlab-that-returns-the-indice-of-top-k-largest-values/14100)

<div class="topic-metadata">

**Author:** [@complexfilter](https://discourse.julialang.org/u/complexfilter)\
**Replies:** 20\
**Last updated:** [May 9, 2023, 4:19pm UTC](https://discourse.julialang.org/t/what-is-julias-maxk-matlab-that-returns-the-indice-of-top-k-largest-values/14100 "2023-05-09T16:19:51Z")

</div>

I am currently converting my Matlab code into Julia code. In an effort to converting the Matlab off-the-shelf function maxk, which returns the values and indices of the top K largest/smallest values, I found it difficult…

---

## [Introducing Genie UI Assistant: the AI-powered UI builder for Genie apps](https://discourse.julialang.org/t/introducing-genie-ui-assistant-the-ai-powered-ui-builder-for-genie-apps/98561)

<div class="topic-metadata">

**Author:** [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Replies:** 0\
**Last updated:** [May 9, 2023, 4:05pm UTC](https://discourse.julialang.org/t/introducing-genie-ui-assistant-the-ai-powered-ui-builder-for-genie-apps/98561 "2023-05-09T16:05:29Z")

</div>

Hi everyone! I am thrilled to announce the launch of :genie:Genie UI Assistant, an AI-powered UI builder for Genie apps! Developed with GPT-4 :robot:, it enables Genie Builder and Genie Cloud users to create UIs faster,…

---

## [GLMakie. How to choose a specific GPU?](https://discourse.julialang.org/t/glmakie-how-to-choose-a-specific-gpu/98557)

<div class="topic-metadata">

**Author:** [@fedoroff](https://discourse.julialang.org/u/fedoroff)\
**Replies:** 4\
**Last updated:** [May 9, 2023, 4:12pm UTC](https://discourse.julialang.org/t/glmakie-how-to-choose-a-specific-gpu/98557 "2023-05-09T16:12:46Z")

</div>

If I’m using GLMakie on a system with multiple GPUs, how can I select a specific GPU unit for rendering?

---

## [Parallelization of Genetic Algorithm (Evolutionaty.jl) with Distributed.jl and Gurobi](https://discourse.julialang.org/t/parallelization-of-genetic-algorithm-evolutionaty-jl-with-distributed-jl-and-gurobi/98389)

<div class="topic-metadata">

**Author:** [@umbe](https://discourse.julialang.org/u/umbe)\
**Replies:** 4\
**Last updated:** [May 9, 2023, 3:53pm UTC](https://discourse.julialang.org/t/parallelization-of-genetic-algorithm-evolutionaty-jl-with-distributed-jl-and-gurobi/98389 "2023-05-09T15:53:32Z")

</div>

Hello to everyone, I’m trying to solve an nested optimization problem that is structured in the following way: Master Problem: heuristic solver (genetic algorithm with Evolutionary.jl) for nonlinear black box problem S…

---

## [How is Float16 implemented?](https://discourse.julialang.org/t/how-is-float16-implemented/98554)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 3\
**Last updated:** [May 9, 2023, 2:45pm UTC](https://discourse.julialang.org/t/how-is-float16-implemented/98554 "2023-05-09T14:45:26Z")

</div>

Found a Float16 bug, the rounding of subnormals seems incorrect, however I can’t find the implementation of Float16. The help that’s built into the REPL and @which both just point me to “intrinsic functions”. Is the Flo…

---

## [Saving to encrypted files?](https://discourse.julialang.org/t/saving-to-encrypted-files/98555)

<div class="topic-metadata">

**Author:** [@Thanh\_nhut\_nhat](https://discourse.julialang.org/u/Thanh_nhut_nhat)\
**Replies:** 0\
**Last updated:** [May 9, 2023, 12:32pm UTC](https://discourse.julialang.org/t/saving-to-encrypted-files/98555 "2023-05-09T12:32:51Z")

</div>

is it posible to save a variable to encrypted file with password, and get variable from the encrypted file.

---

## [Can I name new JuMP constraints in a function using an argument?](https://discourse.julialang.org/t/can-i-name-new-jump-constraints-in-a-function-using-an-argument/95640)

<div class="topic-metadata">

**Author:** [@sallyrobson](https://discourse.julialang.org/u/sallyrobson)\
**Replies:** 2\
**Last updated:** [May 9, 2023, 1:30pm UTC](https://discourse.julialang.org/t/can-i-name-new-jump-constraints-in-a-function-using-an-argument/95640 "2023-05-09T13:30:09Z")

</div>

I’m trying to define a function that would add a JuMP constraint to a model, and I would like to set the name of the constraint using an argument from the function. When I have tried to do this in the past it just sets t…

---

## [Market analysis plotting](https://discourse.julialang.org/t/market-analysis-plotting/98543)

<div class="topic-metadata">

**Author:** [@gudyrmik](https://discourse.julialang.org/u/gudyrmik)\
**Replies:** 2\
**Last updated:** [May 9, 2023, 1:25pm UTC](https://discourse.julialang.org/t/market-analysis-plotting/98543 "2023-05-09T13:25:30Z")

</div>

Hello guys, I’m developing a fin. market analysis webapp and need to plot a price chart (OHLC data) with some additional simple graphics, like rectangles, polylines, curves, text. A plot doesn’t necessarily has to be in…

---

## [How to Plot Slope Field with only 1 Solution Line with CairoMakie?](https://discourse.julialang.org/t/how-to-plot-slope-field-with-only-1-solution-line-with-cairomakie/98479)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 1\
**Last updated:** [May 9, 2023, 1:09pm UTC](https://discourse.julialang.org/t/how-to-plot-slope-field-with-only-1-solution-line-with-cairomakie/98479 "2023-05-09T13:09:31Z")

</div>

Hi all, I was trying to plot a Slope Field with only 1 solution line like this: CairoMakie can do better, I have come out with this but I have problem that in this code I cannot delete the contour!(...) and it i…

---

## [Sum with generic implementation is slower than double sum](https://discourse.julialang.org/t/sum-with-generic-implementation-is-slower-than-double-sum/98512)

<div class="topic-metadata">

**Author:** [@PaterPen](https://discourse.julialang.org/u/PaterPen)\
**Replies:** 2\
**Last updated:** [May 9, 2023, 12:28pm UTC](https://discourse.julialang.org/t/sum-with-generic-implementation-is-slower-than-double-sum/98512 "2023-05-09T12:28:09Z")

</div>

Why is the latter implementation slower? These results surprise me especially given the fact that we have less allocations. using BenchmarkTools mat = randn(1000, 1000) @btime sum(sum(x -\> x \> 1, mat, dims=1)) # 135.16…

---

## [Save variable](https://discourse.julialang.org/t/save-variable/33986)

<div class="topic-metadata">

**Author:** [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)\
**Replies:** 4\
**Last updated:** [January 30, 2020, 6:05pm UTC](https://discourse.julialang.org/t/save-variable/33986 "2020-01-30T18:05:50Z")

</div>

Hi everyone, Sorry for the elementary question. How do I save any variables after a program runs in Julia? Could someone give me an example of how to save the variable “a” in a file .dat in this code? global a for i…

---

## [Help with ::](https://discourse.julialang.org/t/help-with/98544)

<div class="topic-metadata">

**Author:** [@VISHWARATH\_T](https://discourse.julialang.org/u/VISHWARATH_T)\
**Replies:** 2\
**Last updated:** [May 9, 2023, 12:08pm UTC](https://discourse.julialang.org/t/help-with/98544 "2023-05-09T12:08:52Z")

</div>

Hello, I am executing the following function, and it should only accept Int64 as the argument. However, I find that it does not throw an error when any other data types like float is used. Can anyone pls clarify? C is a…

---

## [CalculusWithJulia ODEs Part Question](https://discourse.julialang.org/t/calculuswithjulia-odes-part-question/98540)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 0\
**Last updated:** [May 9, 2023, 10:36am UTC](https://discourse.julialang.org/t/calculuswithjulia-odes-part-question/98540 "2023-05-09T10:36:45Z")

</div>

Hi all, I want to know why the code in CalculusWithJulia produce different solution for the same Initial Value problem: y' = 0.2y(16-y) y(0)=3 The plot is great anyway, since CairoMakie is a bit difficult to handle, …

---

## [Fixing invalidation - what would an expert do?](https://discourse.julialang.org/t/fixing-invalidation-what-would-an-expert-do/98484)

<div class="topic-metadata">

**Author:** [@svilupp](https://discourse.julialang.org/u/svilupp)\
**Replies:** 3\
**Last updated:** [May 9, 2023, 9:47am UTC](https://discourse.julialang.org/t/fixing-invalidation-what-would-an-expert-do/98484 "2023-05-09T09:47:30Z")

</div>

First of all, thank you for the awesome tooling around this. I appreciate there isn’t a straightforward answer to each case. I’ve re-read and re-watched a few times: the blog post on invalidations and the post Snoop…

---

## [Deactivate plot display to avoid need for X server](https://discourse.julialang.org/t/deactivate-plot-display-to-avoid-need-for-x-server/19359)

<div class="topic-metadata">

**Author:** [@samo](https://discourse.julialang.org/u/samo)\
**Replies:** 16\
**Last updated:** [May 9, 2023, 9:37am UTC](https://discourse.julialang.org/t/deactivate-plot-display-to-avoid-need-for-x-server/19359 "2023-05-09T09:37:54Z")

</div>

I use the following type of code to create a gif animation: using Plots anim = Animation(); for it = 1:nt contourf(...); frame(anim); end gif(anim, "test.gif", fps = 15); This works fine on my local noteboo…

---

## [JuMP: How to see output of particular variable and indicies?](https://discourse.julialang.org/t/jump-how-to-see-output-of-particular-variable-and-indicies/98505)

<div class="topic-metadata">

**Author:** [@Optimization](https://discourse.julialang.org/u/Optimization)\
**Replies:** 5\
**Last updated:** [May 9, 2023, 9:22am UTC](https://discourse.julialang.org/t/jump-how-to-see-output-of-particular-variable-and-indicies/98505 "2023-05-09T09:22:49Z")

</div>

Hi there Is it possible to ask JuMp to just show some particular indicies of varaiables? For instance let’s say we have a binary variable @variable(model, x\[i = 2:3, j = 1:2:30, \["A", "B",..."Z"\]\] \>= 0, Bin) and aft…

---

## [Manual colorbar location with Makie](https://discourse.julialang.org/t/manual-colorbar-location-with-makie/98533)

<div class="topic-metadata">

**Author:** [@Gravlax](https://discourse.julialang.org/u/Gravlax)\
**Replies:** 1\
**Last updated:** [May 9, 2023, 9:06am UTC](https://discourse.julialang.org/t/manual-colorbar-location-with-makie/98533 "2023-05-09T09:06:51Z")

</div>

Dear all, I was wondering which is the best way to set the location of a colorbar (associated to a heatmap) with makie. I have tried the bbox argument without success. There is also the translate! function but it does …

---

## [Julia academy data science tutorial](https://discourse.julialang.org/t/julia-academy-data-science-tutorial/98483)

<div class="topic-metadata">

**Author:** [@VISHWARATH\_T](https://discourse.julialang.org/u/VISHWARATH_T)\
**Replies:** 2\
**Last updated:** [May 9, 2023, 9:05am UTC](https://discourse.julialang.org/t/julia-academy-data-science-tutorial/98483 "2023-05-09T09:05:54Z")

</div>

Hello I am not able to execute this command: G\[1\] I executed this : G = XLSX.readtable(“data/zillow\_data\_download\_april2020.xlsx”,“Sale\_counts\_city”) XLSX.DataTable

---

## [Out of memory when constructing large sparse SDP in JuMP](https://discourse.julialang.org/t/out-of-memory-when-constructing-large-sparse-sdp-in-jump/98332)

<div class="topic-metadata">

**Author:** [@mattgiamou](https://discourse.julialang.org/u/mattgiamou)\
**Replies:** 2\
**Last updated:** [May 9, 2023, 8:17am UTC](https://discourse.julialang.org/t/out-of-memory-when-constructing-large-sparse-sdp-in-jump/98332 "2023-05-09T08:17:29Z")

</div>

I need to solve large but very sparse SDPs with COSMO.jl. The following code runs out of memory while constructing the linear matrix inequality (i.e., the PSD constraint): using JuMP, COSMO using LinearAlgebra using Spa…

---

## [Ambiguous method bug in ReverseDiff](https://discourse.julialang.org/t/ambiguous-method-bug-in-reversediff/98461)

<div class="topic-metadata">

**Author:** [@liao2877104858](https://discourse.julialang.org/u/liao2877104858)\
**Replies:** 6\
**Last updated:** [May 9, 2023, 8:58am UTC](https://discourse.julialang.org/t/ambiguous-method-bug-in-reversediff/98461 "2023-05-09T08:58:59Z")

</div>

This is my code function p2vec(p) w\_b = p\[1:nr\] .+ b0; w\_out = reshape(p\[nr + 1:end\], ns, nr); # w\_out = clamp.(w\_out, -2.5, 2.5); w\_in = clamp.(-w\_out, 0, 2.5); return w\_in, w\_b, w\_out end function…

---

## [Ignore compat entry for loading extension (for debugging)](https://discourse.julialang.org/t/ignore-compat-entry-for-loading-extension-for-debugging/98535)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 0\
**Last updated:** [May 9, 2023, 8:49am UTC](https://discourse.julialang.org/t/ignore-compat-entry-for-loading-extension-for-debugging/98535 "2023-05-09T08:49:32Z")

</div>

I am working on a project that uses package A, which provides an extension when B is loaded. B has a \[compat\] entry as a weak dependency in A. Debugging a problem requires that I use B#main. So it will not load the ext…

---

## [Using ThinkJulia](https://discourse.julialang.org/t/using-thinkjulia/98462)

<div class="topic-metadata">

**Author:** [@AGoh2019](https://discourse.julialang.org/u/AGoh2019)\
**Replies:** 4\
**Last updated:** [May 9, 2023, 8:44am UTC](https://discourse.julialang.org/t/using-thinkjulia/98462 "2023-05-09T08:44:42Z")

</div>

using ThinkJulia Info: Precompiling ThinkJulia \[a7fb756-c18b-4c7f-87da-faca9ac81629\] Info: Skipping recompilation since precompile(false). Importing ThinkJulia \[a7fb756-c18b-4c7f-87da-faca9ac81629\] ERROR: LocalError: …

---

## [What does the "maxiters" solver option do?](https://discourse.julialang.org/t/what-does-the-maxiters-solver-option-do/37376)

<div class="topic-metadata">

**Author:** [@donkeysaddle](https://discourse.julialang.org/u/donkeysaddle)\
**Replies:** 19\
**Last updated:** [May 9, 2023, 8:26am UTC](https://discourse.julialang.org/t/what-does-the-maxiters-solver-option-do/37376 "2023-05-09T08:26:45Z")

</div>

New to Numerical Analysis, so please excuse the rookie question and forgive me if this has been discussed somewhere else, I couldn’t find it. According to the documentation: maxiters : Maximum number of iterations be…

---

## [Doctests don't appear in REPL help mode](https://discourse.julialang.org/t/doctests-dont-appear-in-repl-help-mode/98534)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 5\
**Last updated:** [May 9, 2023, 8:01am UTC](https://discourse.julialang.org/t/doctests-dont-appear-in-repl-help-mode/98534 "2023-05-09T08:01:36Z")

</div>

Hi there! Does anyone know why doctests are not displayed in the REPL help mode? For instance this works julia\> """ foo(x) Compute the foo. # Example \`\`\`julia foo…

---

## [Is this a good way to tar.gz a list of files](https://discourse.julialang.org/t/is-this-a-good-way-to-tar-gz-a-list-of-files/98532)

<div class="topic-metadata">

**Author:** [@sparrowhawk](https://discourse.julialang.org/u/sparrowhawk)\
**Replies:** 0\
**Last updated:** [May 9, 2023, 7:09am UTC](https://discourse.julialang.org/t/is-this-a-good-way-to-tar-gz-a-list-of-files/98532 "2023-05-09T07:09:37Z")

</div>

Hi, I have some code which I don’t control the output of, which generates a whole bunch of files per unique index. We have a restriction on the number of files (inodes) on our filesystem, so it would be nice to make a ta…

---

## [Plotting a phase portrait for the nonlinear system](https://discourse.julialang.org/t/plotting-a-phase-portrait-for-the-nonlinear-system/98514)

<div class="topic-metadata">

**Author:** [@moxeeeem](https://discourse.julialang.org/u/moxeeeem)\
**Replies:** 3\
**Last updated:** [May 9, 2023, 7:05am UTC](https://discourse.julialang.org/t/plotting-a-phase-portrait-for-the-nonlinear-system/98514 "2023-05-09T07:05:31Z")

</div>

How can I plot a phase portrait for the nonlinear system in Julia? For example: u=Y v=X \* (1 - X\*\*2) + Y.

---

## [OpenSSL v3 Support Released](https://discourse.julialang.org/t/openssl-v3-support-released/97710)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 4\
**Last updated:** [May 9, 2023, 1:06am UTC](https://discourse.julialang.org/t/openssl-v3-support-released/97710 "2023-05-09T01:06:50Z")

</div>

I recently introduced OpenSSL\_jll v3.0.8. Before doing so, we added a version cap to existing packages that use OpenSSL. Support in OpenSSL.jl for OpenSSL v3 is now under review. Support for OpenSSL v1.1 is maintained …

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

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