# Latest

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

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

**Page:** 1667

---

## [Share and modify struct from master in worker](https://discourse.julialang.org/t/share-and-modify-struct-from-master-in-worker/43952)

<div class="topic-metadata">

**Author:** [@Iulian.Cioarca](https://discourse.julialang.org/u/Iulian.Cioarca)\
**Replies:** 8\
**Last updated:** [August 7, 2020, 10:41am UTC](https://discourse.julialang.org/t/share-and-modify-struct-from-master-in-worker/43952 "2020-08-07T10:41:50Z")

</div>

I am developing a GUI using CImGui.jl and want to run it in a separate process and communicate to/from the master process by modifying a struct. The struct contents could be anything: Array, Strings, file handles. I can…

---

## [Unable to create shared libraries or custom sysimages with PackageCompiler in ubuntu](https://discourse.julialang.org/t/unable-to-create-shared-libraries-or-custom-sysimages-with-packagecompiler-in-ubuntu/44128)

<div class="topic-metadata">

**Author:** [@Jorge\_Alvarado](https://discourse.julialang.org/u/Jorge_Alvarado)\
**Replies:** 1\
**Last updated:** [August 7, 2020, 10:37am UTC](https://discourse.julialang.org/t/unable-to-create-shared-libraries-or-custom-sysimages-with-packagecompiler-in-ubuntu/44128 "2020-08-07T10:37:03Z")

</div>

I’m trying to create a small app using Julia. This is the repo: I ventured into the packagecompiler.jl documentation, I tried to follow all the steps, unfortunately I get an error: $ julia --startup-file=no --output…

---

## [RNG object that provides random numbers from a pre-defined vector](https://discourse.julialang.org/t/rng-object-that-provides-random-numbers-from-a-pre-defined-vector/44424)

<div class="topic-metadata">

**Author:** [@zierenberg](https://discourse.julialang.org/u/zierenberg)\
**Replies:** 3\
**Last updated:** [August 7, 2020, 10:37am UTC](https://discourse.julialang.org/t/rng-object-that-provides-random-numbers-from-a-pre-defined-vector/44424 "2020-08-07T10:37:02Z")

</div>

Hi all, I could need some help to understand how I can implement (clean) new RNGs. I have the following in mind: Given I have a (large) set of random numbers (e.g. real random numbers from some experiment) or a sequence…

---

## [Julia JuMP optimization help](https://discourse.julialang.org/t/julia-jump-optimization-help/43259)

<div class="topic-metadata">

**Author:** [@jovansam](https://discourse.julialang.org/u/jovansam)\
**Replies:** 3\
**Last updated:** [August 7, 2020, 10:04am UTC](https://discourse.julialang.org/t/julia-jump-optimization-help/43259 "2020-08-07T10:04:09Z")

</div>

With complements in Julia/JuMP/PATH/KNITRO. How do you get to use non-linear functions. See in the code below. using PATH, JuMP, KNITRO function geological\_constraints\_MCP() Α = 50.0 Β = 0.1 δ = 0.05 …

---

## [Julia & PyQt](https://discourse.julialang.org/t/julia-pyqt/44426)

<div class="topic-metadata">

**Author:** [@gour](https://discourse.julialang.org/u/gour)\
**Replies:** 8\
**Last updated:** [August 7, 2020, 9:45am UTC](https://discourse.julialang.org/t/julia-pyqt/44426 "2020-08-07T09:45:17Z")

</div>

Hello, I consider that PyQt (or PySide) is the best option for my open-source & multi-platform desktop project…however, Julia as language is very attractive and, afaics, there is possibility to use it via PyCall.jl pack…

---

## [Type of array views](https://discourse.julialang.org/t/type-of-array-views/44476)

<div class="topic-metadata">

**Author:** [@Philippe\_Maincon1](https://discourse.julialang.org/u/Philippe_Maincon1)\
**Replies:** 4\
**Last updated:** [August 7, 2020, 9:00am UTC](https://discourse.julialang.org/t/type-of-array-views/44476 "2020-08-07T09:00:40Z")

</div>

Hi, I have just discovered the catch with passing array slices to a function that is to modify the array entries. “view” is the solution. (9792). The rub is, that while c\[:,i\] is a plain ol’ vector, view(c,:,i) has som…

---

## [Building documentation for module](https://discourse.julialang.org/t/building-documentation-for-module/44460)

<div class="topic-metadata">

**Author:** [@danielw2904](https://discourse.julialang.org/u/danielw2904)\
**Replies:** 5\
**Last updated:** [August 7, 2020, 8:41am UTC](https://discourse.julialang.org/t/building-documentation-for-module/44460 "2020-08-07T08:41:34Z")

</div>

I have implemented a small module to read JSONLines files and especially parts of a file without loading the whole file into memory. I would (eventually) like to register the package so I would like to build documentatio…

---

## [Pkg.add("IJulia") can not work](https://discourse.julialang.org/t/pkg-add-ijulia-can-not-work/13341)

<div class="topic-metadata">

**Author:** [@Dingxijian](https://discourse.julialang.org/u/Dingxijian)\
**Replies:** 12\
**Last updated:** [August 7, 2020, 8:02am UTC](https://discourse.julialang.org/t/pkg-add-ijulia-can-not-work/13341 "2020-08-07T08:02:12Z")

</div>

When I use Pkg.add(“IJulia”), I get back an error like this:

---

## [A Survey of Numerical Methods Utilizing Mixed Precision Arithmetic](https://discourse.julialang.org/t/a-survey-of-numerical-methods-utilizing-mixed-precision-arithmetic/44479)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 0\
**Last updated:** [August 7, 2020, 7:59am UTC](https://discourse.julialang.org/t/a-survey-of-numerical-methods-utilizing-mixed-precision-arithmetic/44479 "2020-08-07T07:59:39Z")

</div>

Paper here https://www.icl.utk.edu/files/publications/2020/icl-utk-1392-2020.pdf

---

## [Question about HHT Pkg](https://discourse.julialang.org/t/question-about-hht-pkg/44477)

<div class="topic-metadata">

**Author:** [@abcde](https://discourse.julialang.org/u/abcde)\
**Replies:** 1\
**Last updated:** [August 7, 2020, 7:47am UTC](https://discourse.julialang.org/t/question-about-hht-pkg/44477 "2020-08-07T07:47:26Z")

</div>

using EmpiricalModeDecomposition a=convert(Vector{Float64},rand(20)) s=EmpiricalModeDecomposition.EEMDSetting(2,2,2,2,2,10.0) w=EmpiricalModeDecomposition.eemd(a,s) EMD\_heping\_1MX\_V\_35kV1=EmpiricalModeDecomposition.hht(a…

---

## [MethodError: no method matching findall(::Regex, ::String)](https://discourse.julialang.org/t/methoderror-no-method-matching-findall-regex-string/44468)

<div class="topic-metadata">

**Author:** [@BMval](https://discourse.julialang.org/u/BMval)\
**Replies:** 2\
**Last updated:** [August 7, 2020, 6:43am UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-findall-regex-string/44468 "2020-08-07T06:43:16Z")

</div>

Would you help me? Is there any way, how to use function findall(::Regex,::String) in Julia ver1.1.1 Thank you in advance. Best

---

## [Parameter Structure in Array](https://discourse.julialang.org/t/parameter-structure-in-array/44390)

<div class="topic-metadata">

**Author:** [@Jerome\_Braun](https://discourse.julialang.org/u/Jerome_Braun)\
**Replies:** 3\
**Last updated:** [August 7, 2020, 5:45am UTC](https://discourse.julialang.org/t/parameter-structure-in-array/44390 "2020-08-07T05:45:41Z")

</div>

I’m conducting a set of simulations where each scenario has a set of parameters that can vary. These are scalars (e.g., random number seed, sample size, dropout rate, number of simulations), vectors (e.g., a set of eval…

---

## [Splatting tuples into a named tuple implicitly converts them to pairs?](https://discourse.julialang.org/t/splatting-tuples-into-a-named-tuple-implicitly-converts-them-to-pairs/44351)

<div class="topic-metadata">

**Author:** [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Replies:** 2\
**Last updated:** [August 7, 2020, 2:48am UTC](https://discourse.julialang.org/t/splatting-tuples-into-a-named-tuple-implicitly-converts-them-to-pairs/44351 "2020-08-07T02:48:36Z")

</div>

I was reading the docstring for NamedTuple and I discovered something odd. You can create a named tuple using pairs, like this: julia\> (; :a=\>1, :b=\>2) (a = 1, b = 2) Trying to do the same thing with tuples instead of …

---

## [How to get first or last n elements from SortedMultiDict?](https://discourse.julialang.org/t/how-to-get-first-or-last-n-elements-from-sortedmultidict/44469)

<div class="topic-metadata">

**Author:** [@pauljurczak](https://discourse.julialang.org/u/pauljurczak)\
**Replies:** 6\
**Last updated:** [August 7, 2020, 4:58am UTC](https://discourse.julialang.org/t/how-to-get-first-or-last-n-elements-from-sortedmultidict/44469 "2020-08-07T04:58:29Z")

</div>

Let’s say I want to call a function on the first n elements of sorted multi-dictionary. I can only come up with this clumsy way of doing it: smdict = SortedMultiDict{Float64, Int64}(0.7=\>7, 0.1=\>1, 0.4=\>4, 0.2=\>2) i = s…

---

## [Installing R in Julia](https://discourse.julialang.org/t/installing-r-in-julia/44466)

<div class="topic-metadata">

**Author:** [@pauloat](https://discourse.julialang.org/u/pauloat)\
**Replies:** 1\
**Last updated:** [August 7, 2020, 3:39am UTC](https://discourse.julialang.org/t/installing-r-in-julia/44466 "2020-08-07T03:39:09Z")

</div>

Hi, im trying to install the package RCall but I’m running in some problem. for context: \>R RHOME /usr/local/lib/R \>R --version R version 3.6.3 (2020-02-29) – “Holding the Windsock” OS: Linux Mint 19 Now, when…

---

## [Heatmap Interpolation](https://discourse.julialang.org/t/heatmap-interpolation/44472)

<div class="topic-metadata">

**Author:** [@bobmccrory](https://discourse.julialang.org/u/bobmccrory)\
**Replies:** 0\
**Last updated:** [August 7, 2020, 2:57am UTC](https://discourse.julialang.org/t/heatmap-interpolation/44472 "2020-08-07T02:57:23Z")

</div>

I’m trying to get a smooth heatmap for showing fluid flow. When I use MatPlotLib in Python, using this code: im = plt.imshow(fluid.density, cmap=‘hot’, vmax=100, interpolation=‘bilinear’) I get a heatmap that interpol…

---

## [Looking for ways to generalize using IndexedTables to Plot / Graph N-Dimensional data](https://discourse.julialang.org/t/looking-for-ways-to-generalize-using-indexedtables-to-plot-graph-n-dimensional-data/42266)

<div class="topic-metadata">

**Author:** [@Marc.Cox](https://discourse.julialang.org/u/Marc.Cox)\
**Replies:** 4\
**Last updated:** [August 7, 2020, 2:09am UTC](https://discourse.julialang.org/t/looking-for-ways-to-generalize-using-indexedtables-to-plot-graph-n-dimensional-data/42266 "2020-08-07T02:09:54Z")

</div>

Hi All, I’m looking for ways to generalize using IndexedTables to graph N-Dimensional data, but I’m stuck on how to collect the “for iter in eachindex(keys(tab\_t1.index.columns))”. In that regard, would you please see…

---

## [What is faster, abs(x) or x^2?](https://discourse.julialang.org/t/what-is-faster-abs-x-or-x-2/42547)

<div class="topic-metadata">

**Author:** [@azadoroz](https://discourse.julialang.org/u/azadoroz)\
**Replies:** 15\
**Last updated:** [August 7, 2020, 12:56am UTC](https://discourse.julialang.org/t/what-is-faster-abs-x-or-x-2/42547 "2020-08-07T00:56:48Z")

</div>

I need to compare many values to one. What would be faster: Option A: for i = 1 : N if abs(arr\[i\]) \> someValue doSomething(i); end end Option B: someValueSquared = someValue^2; for i = 1 : N if…

---

## [Problem understanding Loss function behavior using Flux.jl](https://discourse.julialang.org/t/problem-understanding-loss-function-behavior-using-flux-jl/44375)

<div class="topic-metadata">

**Author:** [@german\_brunini](https://discourse.julialang.org/u/german_brunini)\
**Replies:** 5\
**Last updated:** [August 7, 2020, 12:45am UTC](https://discourse.julialang.org/t/problem-understanding-loss-function-behavior-using-flux-jl/44375 "2020-08-07T00:45:44Z")

</div>

First of all, I am new to Neural Network (NN). Now, to the point! As part of my PhD, I am trying to solve some problem through NN. For this, I have created a program that creates some data set made of a collection of…

---

## [Mesh / GeometryBasics Rotate function](https://discourse.julialang.org/t/mesh-geometrybasics-rotate-function/44361)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 4\
**Last updated:** [August 7, 2020, 12:03am UTC](https://discourse.julialang.org/t/mesh-geometrybasics-rotate-function/44361 "2020-08-07T00:03:56Z")

</div>

I would have thought I could find this easier. I have loaded up and OBJ file with FileIO/MeshIO and am able to plot it in Makie with mesh. Is there a function already that will allow me to apply translations and rotati…

---

## [Collecting possible improvements in word choice](https://discourse.julialang.org/t/collecting-possible-improvements-in-word-choice/44433)

<div class="topic-metadata">

**Author:** [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)\
**Replies:** 3\
**Last updated:** [August 6, 2020, 11:30pm UTC](https://discourse.julialang.org/t/collecting-possible-improvements-in-word-choice/44433 "2020-08-06T23:30:15Z")

</div>

On slack, @quinnj noted that valtype would be more clear as valuetype. From time to time people mention similar suggestions and I thought it reasonable to collect then here.

---

## [Thank you Julia community](https://discourse.julialang.org/t/thank-you-julia-community/1227)

<div class="topic-metadata">

**Author:** [@cormullion](https://discourse.julialang.org/u/cormullion)\
**Replies:** 2\
**Last updated:** [August 6, 2020, 10:48pm UTC](https://discourse.julialang.org/t/thank-you-julia-community/1227 "2020-08-06T22:48:51Z")

</div>

I’d like to say a big thank you to the creators and developers of Julia. The year 2016, if disappointing in some ways (!), has though been a good year for us Julia users! What I like about Julia is that it’s easy to us…

---

## [Knet: Need Help Generating Minibatches for RNN input](https://discourse.julialang.org/t/knet-need-help-generating-minibatches-for-rnn-input/38169)

<div class="topic-metadata">

**Author:** [@themadprogramer](https://discourse.julialang.org/u/themadprogramer)\
**Replies:** 2\
**Last updated:** [August 6, 2020, 9:59pm UTC](https://discourse.julialang.org/t/knet-need-help-generating-minibatches-for-rnn-input/38169 "2020-08-06T21:59:45Z")

</div>

I’m fairly new to Knet and still trying to figure my way around. The project I’m working on right now is a simple “speech emotion recognizer”. Unfortunately, the RNN tutorial makes for a better introduction to NLP proble…

---

## [Julia: The Goldilocks language (article from 2018)](https://discourse.julialang.org/t/julia-the-goldilocks-language-article-from-2018/44378)

<div class="topic-metadata">

**Author:** [@anon37204545](https://discourse.julialang.org/u/anon37204545)\
**Replies:** 1\
**Last updated:** [August 6, 2020, 9:54pm UTC](https://discourse.julialang.org/t/julia-the-goldilocks-language-article-from-2018/44378 "2020-08-06T21:54:42Z")

</div>

I stumbled upon an article which provides great insight into Julia’s mission, development and transition into mainstream. The only reference of it that I could find is May 2018 Julia Computing newsletter. Many users (…

---

## [Swap two number](https://discourse.julialang.org/t/swap-two-number/44456)

<div class="topic-metadata">

**Author:** [@Fuad\_Sami](https://discourse.julialang.org/u/Fuad_Sami)\
**Replies:** 1\
**Last updated:** [August 6, 2020, 9:24pm UTC](https://discourse.julialang.org/t/swap-two-number/44456 "2020-08-06T21:24:47Z")

</div>

i just need to swap to number i try it on REPL and some thing weird is happen function highestValuePalindrome(s, n, k) temp = Array{Int64}(undef,n) j=1 for i in s println(i) # here i =3 temp\[j\] = i # i is 3 right ? …

---

## [\`make testall\` noninteractively?](https://discourse.julialang.org/t/make-testall-noninteractively/44447)

<div class="topic-metadata">

**Author:** [@afbarnard](https://discourse.julialang.org/u/afbarnard)\
**Replies:** 1\
**Last updated:** [August 6, 2020, 7:33pm UTC](https://discourse.julialang.org/t/make-testall-noninteractively/44447 "2020-08-06T19:33:52Z")

</div>

Is there a way to run make testall noninteractively? I want to do something along the lines of nice make testall1 &\> make.tests.julia-1.5.0.$(date +'%Y%m%d-%H%M%S').log & but the tests hang. Presumably this has to do w…

---

## [How do I forcefully upgrade a package to its latest version?](https://discourse.julialang.org/t/how-do-i-forcefully-upgrade-a-package-to-its-latest-version/44446)

<div class="topic-metadata">

**Author:** [@NightMachinary](https://discourse.julialang.org/u/NightMachinary)\
**Replies:** 1\
**Last updated:** [August 6, 2020, 7:19pm UTC](https://discourse.julialang.org/t/how-do-i-forcefully-upgrade-a-package-to-its-latest-version/44446 "2020-08-06T19:19:38Z")

</div>

Some packages have malfunctional requirements and set explicit, fixed versions for critical packages, e.g., setting LanguageServer to 2.0.1. How can I forcefully ignore these requirements, and install the latest version…

---

## [How to break apart a UnitRange?](https://discourse.julialang.org/t/how-to-break-apart-a-unitrange/44415)

<div class="topic-metadata">

**Author:** [@HelgavonLichtenstein](https://discourse.julialang.org/u/HelgavonLichtenstein)\
**Replies:** 11\
**Last updated:** [August 6, 2020, 6:55pm UTC](https://discourse.julialang.org/t/how-to-break-apart-a-unitrange/44415 "2020-08-06T18:55:16Z")

</div>

How would one break apart a UnitRange? From this example I’d like to create a Vector or Array that has 1,2,3,4,5,6 etc. in it, instead of 1:2, 3:4, 5:6 searching = DataFrame(A = 1:5:1000) searching\_specific = searching\[…

---

## [Debugging/modifying functions stack without reloading all the code](https://discourse.julialang.org/t/debugging-modifying-functions-stack-without-reloading-all-the-code/44432)

<div class="topic-metadata">

**Author:** [@anj](https://discourse.julialang.org/u/anj)\
**Replies:** 2\
**Last updated:** [August 6, 2020, 6:39pm UTC](https://discourse.julialang.org/t/debugging-modifying-functions-stack-without-reloading-all-the-code/44432 "2020-08-06T18:39:39Z")

</div>

say I have foo() calling bar() and the bug is in the second one using Printf function foo() bar() end function bar() println("bar 1") end I run @run foo() all good bar 1 is printed out (in real live, found bu…

---

## [Any tutorials/examples on implementing a basic cnn in Flux?](https://discourse.julialang.org/t/any-tutorials-examples-on-implementing-a-basic-cnn-in-flux/6065)

<div class="topic-metadata">

**Author:** [@TravisA9](https://discourse.julialang.org/u/TravisA9)\
**Replies:** 1\
**Last updated:** [August 6, 2020, 6:38pm UTC](https://discourse.julialang.org/t/any-tutorials-examples-on-implementing-a-basic-cnn-in-flux/6065 "2020-08-06T18:38:43Z")

</div>

I’ve been playing around with Flux since I’m trying to learn deep learning. Since I am an extreme beginner in the subject I’ve been trying to learn by reading as much as possible but the best understanding usually comes …

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

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