# Latest

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

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

**Page:** 1946

---

## [Memory allocation and SharedArrays](https://discourse.julialang.org/t/memory-allocation-and-sharedarrays/27272)

<div class="topic-metadata">

**Author:** [@HugoLhuillier](https://discourse.julialang.org/u/HugoLhuillier)\
**Replies:** 3\
**Last updated:** [August 7, 2019, 10:43pm UTC](https://discourse.julialang.org/t/memory-allocation-and-sharedarrays/27272 "2019-08-07T22:43:10Z")

</div>

Hi all, I am new to parallel computing and I had a question regarding memory allocation. Is it possible to update an array in place while doing parallel computing? I tried using SharedArrays and DistributedArrays witho…

---

## [Another resource for talk prep](https://discourse.julialang.org/t/another-resource-for-talk-prep/11259)

<div class="topic-metadata">

**Author:** [@sirtom67](https://discourse.julialang.org/u/sirtom67)\
**Replies:** 0\
**Last updated:** [May 30, 2018, 12:48pm UTC](https://discourse.julialang.org/t/another-resource-for-talk-prep/11259 "2018-05-30T12:48:16Z")

</div>

---

## [ANN: JILL - Julia Installer 4 Linux (and MacOS) - Light](https://discourse.julialang.org/t/ann-jill-julia-installer-4-linux-and-macos-light/27234)

<div class="topic-metadata">

**Author:** [@abelsiqueira](https://discourse.julialang.org/u/abelsiqueira)\
**Replies:** 1\
**Last updated:** [August 7, 2019, 3:14pm UTC](https://discourse.julialang.org/t/ann-jill-julia-installer-4-linux-and-macos-light/27234 "2019-08-07T15:14:53Z")

</div>

Hi all, thanks to the efforts of @JohnnyChen94, JILL now works on MacOS too! For those unaware, JILL uses the Download Julia page to select the latest stable version of Julia, downloads, unpacks and installs it. Best, …

---

## [Can I write a DelimitedFile with a header?](https://discourse.julialang.org/t/can-i-write-a-delimitedfile-with-a-header/27270)

<div class="topic-metadata">

**Author:** [@alvrg](https://discourse.julialang.org/u/alvrg)\
**Replies:** 2\
**Last updated:** [August 7, 2019, 3:04pm UTC](https://discourse.julialang.org/t/can-i-write-a-delimitedfile-with-a-header/27270 "2019-08-07T15:04:41Z")

</div>

Hi, I would like to save a matrix in txt format (I know there are better alternatives, but this is a two-liner). I can do that with using DelimitedFiles A = \[\[1 2\]; \[3 4\]\] writedlm("./data.txt", A) Can I also write a …

---

## [\`Base.Printf.ini\_dec\` has a fall-thru issue](https://discourse.julialang.org/t/base-printf-ini-dec-has-a-fall-thru-issue/27247)

<div class="topic-metadata">

**Author:** [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)\
**Replies:** 1\
**Last updated:** [August 7, 2019, 1:04pm UTC](https://discourse.julialang.org/t/base-printf-ini-dec-has-a-fall-thru-issue/27247 "2019-08-07T13:04:10Z")

</div>

Some of my more precise floating point types do not properly know how to overload Base.Printf.ini\_dec or any of its very close algorithmic partners Printf.fix\_dec Printf.decode\_dec (nor which of those should be given spe…

---

## [How do you make zoomable inline plot with PyPlot.jl?](https://discourse.julialang.org/t/how-do-you-make-zoomable-inline-plot-with-pyplot-jl/12294)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 2\
**Last updated:** [August 7, 2019, 12:47pm UTC](https://discourse.julialang.org/t/how-do-you-make-zoomable-inline-plot-with-pyplot-jl/12294 "2019-08-07T12:47:43Z")

</div>

It seems, that according to PyPlot.jl documentation, you have only two options: You make the plots inline, but you can not interact with them, no zoom etc. You make the plots in separate GUI windows, then you gain acce…

---

## [How to print function summary programmatically](https://discourse.julialang.org/t/how-to-print-function-summary-programmatically/27230)

<div class="topic-metadata">

**Author:** [@GregVernon](https://discourse.julialang.org/u/GregVernon)\
**Replies:** 4\
**Last updated:** [August 7, 2019, 12:25pm UTC](https://discourse.julialang.org/t/how-to-print-function-summary-programmatically/27230 "2019-08-07T12:25:58Z")

</div>

I’m curious how to programmatically print the function summary that REPL outputs, i.e. myFunction doStatic (generic function with 3 methods) For instance, I’d like to be able to do the following: function myFunction(a…

---

## [\[ANN\] PropertyFiles.jl - Properties and property files like in Java](https://discourse.julialang.org/t/ann-propertyfiles-jl-properties-and-property-files-like-in-java/27109)

<div class="topic-metadata">

**Author:** [@cserteGT3](https://discourse.julialang.org/u/cserteGT3)\
**Replies:** 11\
**Last updated:** [August 7, 2019, 10:39am UTC](https://discourse.julialang.org/t/ann-propertyfiles-jl-properties-and-property-files-like-in-java/27109 "2019-08-07T10:39:31Z")

</div>

I’m very happy to announce my very first published Julia package: PropertyFiles.jl. I really liked the Properties class, when I was working with Java, and thought that replicate this functionality in Julia. What this pa…

---

## [CxxWrap and visual C++ linkage error](https://discourse.julialang.org/t/cxxwrap-and-visual-c-linkage-error/27217)

<div class="topic-metadata">

**Author:** [@phlavenk](https://discourse.julialang.org/u/phlavenk)\
**Replies:** 3\
**Last updated:** [August 7, 2019, 9:47am UTC](https://discourse.julialang.org/t/cxxwrap-and-visual-c-linkage-error/27217 "2019-08-07T09:47:33Z")

</div>

I’ve been trying to use CxxWrap with the minimal example from the readme, using MS visual C 2017 (and 2015), CxxWrap 0.8.2 on Win10 64 bit and in both cases I’ve ended with Creating library C:/Users/petr.hlavenka/.julia…

---

## [Why add periods after functions?](https://discourse.julialang.org/t/why-add-periods-after-functions/27255)

<div class="topic-metadata">

**Author:** [@MuadhF](https://discourse.julialang.org/u/MuadhF)\
**Replies:** 2\
**Last updated:** [August 7, 2019, 7:28am UTC](https://discourse.julialang.org/t/why-add-periods-after-functions/27255 "2019-08-07T07:28:24Z")

</div>

Hi, I’m relatively new to Julia, and I have been going through a lot of manuals and stuff. I was wondering, why would there be a period after some functions, and sometimes there isn’t? For example, I’ve seen DataFrame.…

---

## [Problem with NaN's when plugging minimizing vectors (NLopt) back into function](https://discourse.julialang.org/t/problem-with-nans-when-plugging-minimizing-vectors-nlopt-back-into-function/27154)

<div class="topic-metadata">

**Author:** [@CPPhysics](https://discourse.julialang.org/u/CPPhysics)\
**Replies:** 8\
**Last updated:** [August 7, 2019, 5:15am UTC](https://discourse.julialang.org/t/problem-with-nans-when-plugging-minimizing-vectors-nlopt-back-into-function/27154 "2019-08-07T05:15:54Z")

</div>

Hello, first off I don’t have a working example due to research privacy and I know that will make things much harder to debug. But I would like to see if anyone recognizes this problem by chance. I have a function, whic…

---

## [Drawing on widgets defined in a layout produced from Glade](https://discourse.julialang.org/t/drawing-on-widgets-defined-in-a-layout-produced-from-glade/27197)

<div class="topic-metadata">

**Author:** [@mantzaris](https://discourse.julialang.org/u/mantzaris)\
**Replies:** 5\
**Last updated:** [August 7, 2019, 3:38am UTC](https://discourse.julialang.org/t/drawing-on-widgets-defined-in-a-layout-produced-from-glade/27197 "2019-08-07T03:38:37Z")

</div>

I can draw on canvases (created via Gtk.Canvas) which are are then pushed onto containers, and have their draw functions set to functions I have written (eg. canvasA.draw = drawFnA) and in that draw function use the some…

---

## [Using a macro to define two methods at once?](https://discourse.julialang.org/t/using-a-macro-to-define-two-methods-at-once/27239)

<div class="topic-metadata">

**Author:** [@longemen3000](https://discourse.julialang.org/u/longemen3000)\
**Replies:** 2\
**Last updated:** [August 7, 2019, 3:14am UTC](https://discourse.julialang.org/t/using-a-macro-to-define-two-methods-at-once/27239 "2019-08-07T03:14:26Z")

</div>

there is a way to define two methods of a function with a macro?, for example, a macro like this: f = @mymacro (2,3) that generates the following code: f(x) = 2\*x f(x,y) = 2\*x+3\*y the example is simple and what i’m l…

---

## [Efficiently traverse binary tree represented as tuple of tuples](https://discourse.julialang.org/t/efficiently-traverse-binary-tree-represented-as-tuple-of-tuples/26989)

<div class="topic-metadata">

**Author:** [@non-Jedi](https://discourse.julialang.org/u/non-Jedi)\
**Replies:** 9\
**Last updated:** [August 7, 2019, 2:25am UTC](https://discourse.julialang.org/t/efficiently-traverse-binary-tree-represented-as-tuple-of-tuples/26989 "2019-08-07T02:25:51Z")

</div>

I’m trying to see if I can squeeze out a bit more performance from the Julia implementation of the computer language benchmark game binary trees test. One thing I noticed was that I could create binary trees very fas…

---

## [Delete Function for a struct instance](https://discourse.julialang.org/t/delete-function-for-a-struct-instance/27248)

<div class="topic-metadata">

**Author:** [@Noel\_Araujo](https://discourse.julialang.org/u/Noel_Araujo)\
**Replies:** 2\
**Last updated:** [August 7, 2019, 12:56am UTC](https://discourse.julialang.org/t/delete-function-for-a-struct-instance/27248 "2019-08-07T00:56:25Z")

</div>

Hello internet. I’m defining my own struct, and it does something on PC internals when it is created. I would to perform other operations (some deleting files) when the struct instance is no more in use. Here an simple …

---

## [Gradient loop vs batch gradient speed](https://discourse.julialang.org/t/gradient-loop-vs-batch-gradient-speed/27209)

<div class="topic-metadata">

**Author:** [@CraftyVisage](https://discourse.julialang.org/u/CraftyVisage)\
**Replies:** 4\
**Last updated:** [August 7, 2019, 12:01am UTC](https://discourse.julialang.org/t/gradient-loop-vs-batch-gradient-speed/27209 "2019-08-07T00:01:36Z")

</div>

I am training a neural network using a manual custom gradient update. I have a loop that goes through every example and computes the gradient of the loss on that example. I then use that gradient in my custom update. Th…

---

## [Empty dataframe row as a copy of existing DF](https://discourse.julialang.org/t/empty-dataframe-row-as-a-copy-of-existing-df/27245)

<div class="topic-metadata">

**Author:** [@purplishrock](https://discourse.julialang.org/u/purplishrock)\
**Replies:** 1\
**Last updated:** [August 6, 2019, 11:20pm UTC](https://discourse.julialang.org/t/empty-dataframe-row-as-a-copy-of-existing-df/27245 "2019-08-06T23:20:31Z")

</div>

I found a question very similar to this but it doesn’t work for my situation. I have an existing dataframe. I’m using groupby on it, however, the function which looks at the group is an all or nothing evalution. That i…

---

## [Status of Power9 support?](https://discourse.julialang.org/t/status-of-power9-support/27228)

<div class="topic-metadata">

**Author:** [@oschulz](https://discourse.julialang.org/u/oschulz)\
**Replies:** 4\
**Last updated:** [August 6, 2019, 11:04pm UTC](https://discourse.julialang.org/t/status-of-power9-support/27228 "2019-08-06T23:04:52Z")

</div>

I’m curious, what’s the current status of Julia 1.x on Power9? The reason I’m asking is that while comparatively few people have access to Power9 systems, some of the few relevant Power9 systems (e.g. Summit/Sierra) are…

---

## [Modify arrays in function](https://discourse.julialang.org/t/modify-arrays-in-function/27243)

<div class="topic-metadata">

**Author:** [@elemenopeereste](https://discourse.julialang.org/u/elemenopeereste)\
**Replies:** 4\
**Last updated:** [August 6, 2019, 10:14pm UTC](https://discourse.julialang.org/t/modify-arrays-in-function/27243 "2019-08-06T22:14:22Z")

</div>

How to modify array t=\[1,2,3\] in function like function dosth!( arg ) . . . end In body i wanna in first case change my array to empty(arg = \[ \] ), in second case change table something like ( arg = arg\[2:end\] ) Af…

---

## [Setting up a Julia environment module for a cluster](https://discourse.julialang.org/t/setting-up-a-julia-environment-module-for-a-cluster/27240)

<div class="topic-metadata">

**Author:** [@benfulton](https://discourse.julialang.org/u/benfulton)\
**Replies:** 0\
**Last updated:** [August 6, 2019, 8:54pm UTC](https://discourse.julialang.org/t/setting-up-a-julia-environment-module-for-a-cluster/27240 "2019-08-06T20:54:18Z")

</div>

I’m trying to get environment modules set up properly for a multiuser cluster environment. I have two versions set up now; 0.6 and 1.1, and I would like to add environment variables to the modules to set it up so that us…

---

## [Best way to bin data from dataframe?](https://discourse.julialang.org/t/best-way-to-bin-data-from-dataframe/27237)

<div class="topic-metadata">

**Author:** [@purplishrock](https://discourse.julialang.org/u/purplishrock)\
**Replies:** 3\
**Last updated:** [August 6, 2019, 8:46pm UTC](https://discourse.julialang.org/t/best-way-to-bin-data-from-dataframe/27237 "2019-08-06T20:46:28Z")

</div>

I have the classic problem. The data from my dataframe needs to be split into multiple dataframes, in particular if x \< a1=\> group1, x \>=a1 && x\<=a2 =\> group2, x \>= a3 && x \<=a4 =\> group3, etc… Normally I would write s…

---

## [Release-1.3 branch date approaching: Aug. 15](https://discourse.julialang.org/t/release-1-3-branch-date-approaching-aug-15/27233)

<div class="topic-metadata">

**Author:** [@jeff.bezanson](https://discourse.julialang.org/u/jeff.bezanson)\
**Replies:** 0\
**Last updated:** [August 6, 2019, 6:04pm UTC](https://discourse.julialang.org/t/release-1-3-branch-date-approaching-aug-15/27233 "2019-08-06T18:04:38Z")

</div>

Hello all, We are targeting Aug. 15 as the feature freeze / branch date for 1.3. This is roughly 4 months after the branch date for 1.2, in keeping with our usual release schedule. If you have any PRs or such that are c…

---

## [Workaround for modifying coefficients in constraints in JuMP?](https://discourse.julialang.org/t/workaround-for-modifying-coefficients-in-constraints-in-jump/27123)

<div class="topic-metadata">

**Author:** [@torgo](https://discourse.julialang.org/u/torgo)\
**Replies:** 9\
**Last updated:** [August 6, 2019, 8:09pm UTC](https://discourse.julialang.org/t/workaround-for-modifying-coefficients-in-constraints-in-jump/27123 "2019-08-06T20:09:34Z")

</div>

In the 0.19 documentation on this page it says: Modifying a constant term Most often, modifications involve changing the “right-hand side” of a linear constraint. This presents a challenge for JuMP because it leads to …

---

## [How to run a Process in background but still close it on exit?](https://discourse.julialang.org/t/how-to-run-a-process-in-background-but-still-close-it-on-exit/27231)

<div class="topic-metadata">

**Author:** [@NHDaly](https://discourse.julialang.org/u/NHDaly)\
**Replies:** 2\
**Last updated:** [August 6, 2019, 7:36pm UTC](https://discourse.julialang.org/t/how-to-run-a-process-in-background-but-still-close-it-on-exit/27231 "2019-08-06T19:36:30Z")

</div>

In development for the PProf.jl package, we want to spawn a child process (pprof -web ...), and have it run in the background, so that you can keep using julia with the webserver open. (This suggestion came from @gdkrmr,…

---

## [JuliaCon 2019 talks](https://discourse.julialang.org/t/juliacon-2019-talks/26811)

<div class="topic-metadata">

**Author:** [@trappmartin](https://discourse.julialang.org/u/trappmartin)\
**Replies:** 4\
**Last updated:** [August 6, 2019, 7:36pm UTC](https://discourse.julialang.org/t/juliacon-2019-talks/26811 "2019-08-06T19:36:13Z")

</div>

Here are the links to the talks on probabilistic programming during JuliaCon 2019. JuliaCon 2019 | Turing: Probabalistic Programming in Julia | Cameron Pfiffer - YouTube JuliaCon 2019 | Gaussian Process Probabilistic P…

---

## [How to read TIFF metadata (tags) as strings in Julia?](https://discourse.julialang.org/t/how-to-read-tiff-metadata-tags-as-strings-in-julia/27121)

<div class="topic-metadata">

**Author:** [@vlandau](https://discourse.julialang.org/u/vlandau)\
**Replies:** 2\
**Last updated:** [August 6, 2019, 7:27pm UTC](https://discourse.julialang.org/t/how-to-read-tiff-metadata-tags-as-strings-in-julia/27121 "2019-08-06T19:27:11Z")

</div>

Hi all, I’m trying to find a way to read .tif image tags as strings to I can get metadata from the image. Specifically, I need to read in a GeoTiff and access several properties of the image to maintain its spatial refe…

---

## [Difficulty building JuMP SparseAxisArrays for network problems](https://discourse.julialang.org/t/difficulty-building-jump-sparseaxisarrays-for-network-problems/27227)

<div class="topic-metadata">

**Author:** [@pulsipher](https://discourse.julialang.org/u/pulsipher)\
**Replies:** 1\
**Last updated:** [August 6, 2019, 4:51pm UTC](https://discourse.julialang.org/t/difficulty-building-jump-sparseaxisarrays-for-network-problems/27227 "2019-08-06T16:51:32Z")

</div>

I am trying to model a network flow problem via JuMP and I am having difficulty building the flow variables with the correct indexing using @variable. For example, let’s suppose I have a network with 2 flow variables x\_…

---

## [2019 JuliaCon Prize Winners!](https://discourse.julialang.org/t/2019-juliacon-prize-winners/26885)

<div class="topic-metadata">

**Author:** [@avik](https://discourse.julialang.org/u/avik)\
**Replies:** 1\
**Last updated:** [August 6, 2019, 4:01pm UTC](https://discourse.julialang.org/t/2019-juliacon-prize-winners/26885 "2019-08-06T16:01:15Z")

</div>

At JuliaCon 2019 in Baltimore, we announced the winners of the 2019 Julia Community Prize. The prize bestows a certificate and a cash award of USD 1000. Out of many amazing and deserving nominations, the judges chose the…

---

## [Package registration bottleneck?](https://discourse.julialang.org/t/package-registration-bottleneck/27223)

<div class="topic-metadata">

**Author:** [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Replies:** 5\
**Last updated:** [August 6, 2019, 3:53pm UTC](https://discourse.julialang.org/t/package-registration-bottleneck/27223 "2019-08-06T15:53:22Z")

</div>

I might’ve been extra eager and pushed 2 version updates for Genie over the weekend, out of which none has been merged yet. Wondering: is there any kind of best practice in making registration requests - I don’t want …

---

## [Custom tuple unpacking](https://discourse.julialang.org/t/custom-tuple-unpacking/27224)

<div class="topic-metadata">

**Author:** [@manuelma](https://discourse.julialang.org/u/manuelma)\
**Replies:** 1\
**Last updated:** [August 6, 2019, 3:30pm UTC](https://discourse.julialang.org/t/custom-tuple-unpacking/27224 "2019-08-06T15:30:02Z")

</div>

I would like to be able to write something like x, y, z = collect(I) and then have z == collect(I)\[3:end\]. In other words, I’d like to unpack the entire ‘tail’ of I into the last value on the left hand side. I don’t k…

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

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