# Latest

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

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

**Page:** 1922

---

## [Problem with parametric method definition](https://discourse.julialang.org/t/problem-with-parametric-method-definition/28683)

<div class="topic-metadata">

**Author:** [@pnalysz](https://discourse.julialang.org/u/pnalysz)\
**Replies:** 4\
**Last updated:** [September 13, 2019, 7:33am UTC](https://discourse.julialang.org/t/problem-with-parametric-method-definition/28683 "2019-09-13T07:33:09Z")

</div>

Hi, How to adjust definition of f so it works for both As and Bs types in the following code: struct A end struct B{b} end va = Vector{Union{A, Missing}}() vb = Vector{Union{B, Missing}}() f(v::Vector{Union{t, Missin…

---

## [Automatic creation of log of package updates](https://discourse.julialang.org/t/automatic-creation-of-log-of-package-updates/28711)

<div class="topic-metadata">

**Author:** [@Ajaychat3](https://discourse.julialang.org/u/Ajaychat3)\
**Replies:** 1\
**Last updated:** [September 13, 2019, 5:42am UTC](https://discourse.julialang.org/t/automatic-creation-of-log-of-package-updates/28711 "2019-09-13T05:42:56Z")

</div>

Recently I updated Julia packages and this led to Julia scripts throwing warnings or error messages which were running fine earlier. When carrying out the update I did notice that a few packages were updated but did not …

---

## [Why does \`write\` not have \`!\` in its name?](https://discourse.julialang.org/t/why-does-write-not-have-in-its-name/28201)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 2\
**Last updated:** [September 13, 2019, 5:06am UTC](https://discourse.julialang.org/t/why-does-write-not-have-in-its-name/28201 "2019-09-13T05:06:24Z")

</div>

Julia style guide suggests appending an ! to the function’s name. I am curious about why write does not follow this guide? Isn’t write modifying io or filename? What is the boundary of distinguishing modifying or not? w…

---

## [Save and restore DataFrame, and serialize()/deserialize()](https://discourse.julialang.org/t/save-and-restore-dataframe-and-serialize-deserialize/9699)

<div class="topic-metadata">

**Author:** [@iwelch](https://discourse.julialang.org/u/iwelch)\
**Replies:** 13\
**Last updated:** [September 13, 2019, 5:00am UTC](https://discourse.julialang.org/t/save-and-restore-dataframe-and-serialize-deserialize/9699 "2019-09-13T05:00:41Z")

</div>

dear j wizards—is there a mechanism to save and restore a DataFrame in binary format to disk, with all type information? serialize() and deserialize() do not work for DataFrame in DataFrames.jl 0.11.5 . incidentally, …

---

## [Take part of string](https://discourse.julialang.org/t/take-part-of-string/28689)

<div class="topic-metadata">

**Author:** [@romeritomorais](https://discourse.julialang.org/u/romeritomorais)\
**Replies:** 2\
**Last updated:** [September 13, 2019, 4:51am UTC](https://discourse.julialang.org/t/take-part-of-string/28689 "2019-09-13T04:51:28Z")

</div>

how do I get part of a string from a field in the dataframe

---

## [Status of AxisArrays.jl](https://discourse.julialang.org/t/status-of-axisarrays-jl/28682)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 21\
**Last updated:** [September 13, 2019, 4:19am UTC](https://discourse.julialang.org/t/status-of-axisarrays-jl/28682 "2019-09-13T04:19:53Z")

</div>

Hello, What is the status of this package? Even though there was some activity lately it looks as if it lacks a little bit of love an care… Can it already be used in a production system, or are a lot of hidden bugs to…

---

## [Square Bracket Notation for Broadcasting getindex Across Array of Vectors?](https://discourse.julialang.org/t/square-bracket-notation-for-broadcasting-getindex-across-array-of-vectors/6227)

<div class="topic-metadata">

**Author:** [@jessebett](https://discourse.julialang.org/u/jessebett)\
**Replies:** 5\
**Last updated:** [September 13, 2019, 1:14am UTC](https://discourse.julialang.org/t/square-bracket-notation-for-broadcasting-getindex-across-array-of-vectors/6227 "2019-09-13T01:14:30Z")

</div>

Hi, I’m working with an array holding 2D points so I can plot a trajectory of an iterative process. Each point has the type Vector{Float64}, e.g. \[1., 2.\] My array has the type Vector{Array{Float64,1}}, E.g. traject…

---

## [Nonlinear equations on abstract vectors?](https://discourse.julialang.org/t/nonlinear-equations-on-abstract-vectors/28692)

<div class="topic-metadata">

**Author:** [@tobydriscoll](https://discourse.julialang.org/u/tobydriscoll)\
**Replies:** 8\
**Last updated:** [September 12, 2019, 8:52pm UTC](https://discourse.julialang.org/t/nonlinear-equations-on-abstract-vectors/28692 "2019-09-12T20:52:23Z")

</div>

I need to solve a (smooth, unconstrained) system of nonlinear equations for an unknown defined on multiple subdomains (to wit, domain decomposition for a PDE). A natural representation of the unknown might be a vector of…

---

## [Issue in compiling DifferentialEquations](https://discourse.julialang.org/t/issue-in-compiling-differentialequations/28638)

<div class="topic-metadata">

**Author:** [@Ajaychat3](https://discourse.julialang.org/u/Ajaychat3)\
**Replies:** 15\
**Last updated:** [September 12, 2019, 7:07pm UTC](https://discourse.julialang.org/t/issue-in-compiling-differentialequations/28638 "2019-09-12T19:07:37Z")

</div>

I had some issue in compiling DifferentialEquations after an update so I removed it re-add it. Here is the output. Please see the last couple of lines. (v1.1) pkg\> st Status \`C:\\Users\\Himanshi\\.julia\\environments\\v1…

---

## [How do you guys would plot and histogram this Distribution F code?](https://discourse.julialang.org/t/how-do-you-guys-would-plot-and-histogram-this-distribution-f-code/28675)

<div class="topic-metadata">

**Author:** [@Halor](https://discourse.julialang.org/u/Halor)\
**Replies:** 3\
**Last updated:** [September 12, 2019, 7:29pm UTC](https://discourse.julialang.org/t/how-do-you-guys-would-plot-and-histogram-this-distribution-f-code/28675 "2019-09-12T19:29:28Z")

</div>

Hi. I am a new user in programming and in statistics so I want to learn all the things that I can. I try to code a PDF of F Distribution which formula have taken from Wikipedia (Distribución F - Wikipedia, la encicloped…

---

## [Run command](https://discourse.julialang.org/t/run-command/28668)

<div class="topic-metadata">

**Author:** [@Luiz1](https://discourse.julialang.org/u/Luiz1)\
**Replies:** 2\
**Last updated:** [September 12, 2019, 3:00pm UTC](https://discourse.julialang.org/t/run-command/28668 "2019-09-12T15:00:30Z")

</div>

I need to run: run(zip code.zip "\*.jl") But \* does not work. Help please.

---

## [Clearing up memory](https://discourse.julialang.org/t/clearing-up-memory/28670)

<div class="topic-metadata">

**Author:** [@iamsuddhasattwa](https://discourse.julialang.org/u/iamsuddhasattwa)\
**Replies:** 4\
**Last updated:** [September 12, 2019, 2:12pm UTC](https://discourse.julialang.org/t/clearing-up-memory/28670 "2019-09-12T14:12:41Z")

</div>

Hi, I had a question about clearing up memory by removing temporary variables that we have used. For example, if I create a huge matrix julia\> A = rand(100000,10000); the memory usage on my RAM visibly increases. If I …

---

## [ApproxFun: defining a nonlinear differential operator](https://discourse.julialang.org/t/approxfun-defining-a-nonlinear-differential-operator/15296)

<div class="topic-metadata">

**Author:** [@zdenek\_hurak](https://discourse.julialang.org/u/zdenek_hurak)\
**Replies:** 6\
**Last updated:** [September 12, 2019, 12:44pm UTC](https://discourse.julialang.org/t/approxfun-defining-a-nonlinear-differential-operator/15296 "2019-09-12T12:44:11Z")

</div>

Hello, I am struggling with the very basics of usage of ApproxFun package. I would like to define a nonlinear differential operator (the ultimate motivation is actually to define and solve a nonlinear ODE). The operator \\…

---

## [Conditional logit regression -solved using cox regression](https://discourse.julialang.org/t/conditional-logit-regression-solved-using-cox-regression/28615)

<div class="topic-metadata">

**Author:** [@compleat](https://discourse.julialang.org/u/compleat)\
**Replies:** 11\
**Last updated:** [September 12, 2019, 11:52am UTC](https://discourse.julialang.org/t/conditional-logit-regression-solved-using-cox-regression/28615 "2019-09-12T11:52:47Z")

</div>

I noticed on here a thread which can’t now find about conditional/multinomial logit. Actually, there is no need to implement anything new - this is trivial if cox proportional hazards regression exists and allows for l…

---

## [ANN: OnlineStats 1.0](https://discourse.julialang.org/t/ann-onlinestats-1-0/28605)

<div class="topic-metadata">

**Author:** [@joshday](https://discourse.julialang.org/u/joshday)\
**Replies:** 3\
**Last updated:** [September 12, 2019, 11:31am UTC](https://discourse.julialang.org/t/ann-onlinestats-1-0/28605 "2019-09-12T11:31:09Z")

</div>

Just this week, I’ve released 1.0 versions of OnlineStatsBase and OnlineStats. The OnlineStats interface has been stable for quite some time and I think 1.0 versions were overdue. So please check it out, try it, open i…

---

## [How to do batching in Flux's recurrent sequence model to take advantage of GPU during training?](https://discourse.julialang.org/t/how-to-do-batching-in-fluxs-recurrent-sequence-model-to-take-advantage-of-gpu-during-training/28678)

<div class="topic-metadata">

**Author:** [@Azamat](https://discourse.julialang.org/u/Azamat)\
**Replies:** 1\
**Last updated:** [September 12, 2019, 10:37am UTC](https://discourse.julialang.org/t/how-to-do-batching-in-fluxs-recurrent-sequence-model-to-take-advantage-of-gpu-during-training/28678 "2019-09-12T10:37:38Z")

</div>

Suppose I have a recurrent model in Flux, say using Flux D = 2 m = RNN(D,3) If want to apply it to sequence, then the documentation says I should represent my sequence seq as a vector of vectors, so something like T =…

---

## [LoadError when cloning JuliaRegistries](https://discourse.julialang.org/t/loaderror-when-cloning-juliaregistries/28677)

<div class="topic-metadata">

**Author:** [@jeppe](https://discourse.julialang.org/u/jeppe)\
**Replies:** 4\
**Last updated:** [September 12, 2019, 10:27am UTC](https://discourse.julialang.org/t/loaderror-when-cloning-juliaregistries/28677 "2019-09-12T10:27:19Z")

</div>

Hi I just installed Julia for the first time, and I am trying to install atom and Juno. I downloaded and install Atom and Juno through the Atom package manager. However when i try to lunch Juno i get the following error…

---

## [VegaLite.jl: render as raw image](https://discourse.julialang.org/t/vegalite-jl-render-as-raw-image/28645)

<div class="topic-metadata">

**Author:** [@jtackm](https://discourse.julialang.org/u/jtackm)\
**Replies:** 8\
**Last updated:** [September 12, 2019, 10:12am UTC](https://discourse.julialang.org/t/vegalite-jl-render-as-raw-image/28645 "2019-09-12T10:12:17Z")

</div>

I ran into a problem when using VegaLite (+Jupyter) on larger datasets (80k+ rows, 6 variables). When rendering a scatterplot inline in a notebook, jupyter hangs when saving. This is a MWE: df = DataFrame(\[Symbol("var$i…

---

## [Mapfoldr and inference on Tuple](https://discourse.julialang.org/t/mapfoldr-and-inference-on-tuple/28657)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 2\
**Last updated:** [September 12, 2019, 8:45am UTC](https://discourse.julialang.org/t/mapfoldr-and-inference-on-tuple/28657 "2019-09-12T08:45:58Z")

</div>

I would like mapfoldr to infer on a Tuple. MWE: using Test prefix\_combinations(x, y) = vec(((x, y) -\> (x, y...)).(x, permutedims(y))) @inferred prefix\_combinations(\[1, 2\], \[(3, ), (4, )\]) # OK f1(D) = mapfoldr(Base.OneT…

---

## [\[ANN\] Turing.jl Breaking Changes](https://discourse.julialang.org/t/ann-turing-jl-breaking-changes/28493)

<div class="topic-metadata">

**Author:** [@cpfiffer](https://discourse.julialang.org/u/cpfiffer)\
**Replies:** 1\
**Last updated:** [September 12, 2019, 8:23am UTC](https://discourse.julialang.org/t/ann-turing-jl-breaking-changes/28493 "2019-09-12T08:23:55Z")

</div>

Hey folks. Over the past couple months we’ve been working on a fairly significant PR designed to overhaul Turing’s internal API to make future development a lot easier. Many of these changes are never something a use wi…

---

## [Why does reduce not work on logical OR](https://discourse.julialang.org/t/why-does-reduce-not-work-on-logical-or/28679)

<div class="topic-metadata">

**Author:** [@StevenSiew](https://discourse.julialang.org/u/StevenSiew)\
**Replies:** 3\
**Last updated:** [September 12, 2019, 8:23am UTC](https://discourse.julialang.org/t/why-does-reduce-not-work-on-logical-or/28679 "2019-09-12T08:23:41Z")

</div>

Why does reduce not work on logical OR julia\> a = UInt8\[0,2,4,0,5,6,0\] 7-element Array{UInt8,1}: 0x00 0x02 0x04 0x00 0x05 0x06 0x00 julia\> b = map(x-\>x\>0,a) 7-element Array{Bool,1}: 0 1 1 0 1 1 0 julia\> …

---

## [Teaching Julia prerequisites](https://discourse.julialang.org/t/teaching-julia-prerequisites/28379)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 30\
**Last updated:** [September 12, 2019, 4:24am UTC](https://discourse.julialang.org/t/teaching-julia-prerequisites/28379 "2019-09-12T04:24:41Z")

</div>

Hello all! My question is basically, to those who are teaching Julia currently, how are you going about setting the fundementals up (ie. software) to ensure that your students (with no previous programming experience) g…

---

## [Why do Rationals promote to Floats](https://discourse.julialang.org/t/why-do-rationals-promote-to-floats/28526)

<div class="topic-metadata">

**Author:** [@thelonious](https://discourse.julialang.org/u/thelonious)\
**Replies:** 4\
**Last updated:** [September 12, 2019, 3:19am UTC](https://discourse.julialang.org/t/why-do-rationals-promote-to-floats/28526 "2019-09-12T03:19:31Z")

</div>

Hello, I’m just getting started with Julia and I ran across something that confused me in this section of the docs; Promotion. It shows the following example: julia\> promote(1, 2.5, 3, 3//4) (1.0, 2.5, 3.0, 0.75) I wa…

---

## [Broadcast a function to a generator of tuples](https://discourse.julialang.org/t/broadcast-a-function-to-a-generator-of-tuples/28672)

<div class="topic-metadata">

**Author:** [@milesf](https://discourse.julialang.org/u/milesf)\
**Replies:** 2\
**Last updated:** [September 12, 2019, 2:29am UTC](https://discourse.julialang.org/t/broadcast-a-function-to-a-generator-of-tuples/28672 "2019-09-12T02:29:01Z")

</div>

I have a generator that produces tuples, and I’d like to call a function with the contents of each tuple as arguments. The output I’m looking for should be equivalent to 2(1:3). julia\> g = ((x,x) for x=1:3) Base.Genera…

---

## [F Distribution, Beta function](https://discourse.julialang.org/t/f-distribution-beta-function/28630)

<div class="topic-metadata">

**Author:** [@Halor](https://discourse.julialang.org/u/Halor)\
**Replies:** 7\
**Last updated:** [September 12, 2019, 2:26am UTC](https://discourse.julialang.org/t/f-distribution-beta-function/28630 "2019-09-12T02:26:43Z")

</div>

Hi. I am new in this programming world so I need help for coding a F Distribution, due to I do not have idea to do this. I am having trouble even programming beta function. I just need some ideas so I would be able to d…

---

## [@cfunction cannot find function defined in the same module](https://discourse.julialang.org/t/cfunction-cannot-find-function-defined-in-the-same-module/28658)

<div class="topic-metadata">

**Author:** [@pemryan](https://discourse.julialang.org/u/pemryan)\
**Replies:** 3\
**Last updated:** [September 12, 2019, 12:57am UTC](https://discourse.julialang.org/t/cfunction-cannot-find-function-defined-in-the-same-module/28658 "2019-09-12T00:57:28Z")

</div>

I’d like to use a function f() defined in a module as a callback in another function g() in the same module. However, I encountered this error: ERROR: LoadError: UndefVarError: f not defined. moving the definition of f…

---

## [Potential Julia 1.3 memory bug. Can someone help me diagnose before I submit an issue?](https://discourse.julialang.org/t/potential-julia-1-3-memory-bug-can-someone-help-me-diagnose-before-i-submit-an-issue/28652)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 5\
**Last updated:** [September 12, 2019, 12:40am UTC](https://discourse.julialang.org/t/potential-julia-1-3-memory-bug-can-someone-help-me-diagnose-before-i-submit-an-issue/28652 "2019-09-12T00:40:48Z")

</div>

I am trying to define a Vector type where it has a pointer to a compressed vector and a pointer to an uncompressed vector. To save RAM initially only the compressed vector is stored in memory. Upon accessing an element o…

---

## [Pkg Proxy Cache automatically adds installed packages](https://discourse.julialang.org/t/pkg-proxy-cache-automatically-adds-installed-packages/28398)

<div class="topic-metadata">

**Author:** [@khanhvd21](https://discourse.julialang.org/u/khanhvd21)\
**Replies:** 4\
**Last updated:** [September 11, 2019, 9:55pm UTC](https://discourse.julialang.org/t/pkg-proxy-cache-automatically-adds-installed-packages/28398 "2019-09-11T21:55:56Z")

</div>

Hello, The more things are productive, the more paranoid we become. Julia relies on the github repository of a dependency there. If it disappears, the package cannot be installed. So far, I’ve only found projects that …

---

## [How's AutoGrad different from Flux](https://discourse.julialang.org/t/hows-autograd-different-from-flux/28666)

<div class="topic-metadata">

**Author:** [@stochastic\_guy](https://discourse.julialang.org/u/stochastic_guy)\
**Replies:** 0\
**Last updated:** [September 11, 2019, 9:04pm UTC](https://discourse.julialang.org/t/hows-autograd-different-from-flux/28666 "2019-09-11T21:04:02Z")

</div>

Is there any difference between AutoGrad.jl and Flux’s automatic differentiation utilities?

---

## [TextUserInterfaces.jl: Focus manager!](https://discourse.julialang.org/t/textuserinterfaces-jl-focus-manager/28632)

<div class="topic-metadata">

**Author:** [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Replies:** 7\
**Last updated:** [September 11, 2019, 7:31pm UTC](https://discourse.julialang.org/t/textuserinterfaces-jl-focus-manager/28632 "2019-09-11T19:31:01Z")

</div>

Hi! Long time no see :slight\_smile: I have pushed a new commit to TextUserInterfaces.jl that added the initial version of a focus manager. This is by far the most annoying part of ncurses IMHO: how to manage the focus …

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

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