# Latest

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

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

**Page:** 1977

---

## [Convert input function variable name to string](https://discourse.julialang.org/t/convert-input-function-variable-name-to-string/25398)

<div class="topic-metadata">

**Author:** [@donquicote](https://discourse.julialang.org/u/donquicote)\
**Replies:** 1\
**Last updated:** [June 18, 2019, 11:56am UTC](https://discourse.julialang.org/t/convert-input-function-variable-name-to-string/25398 "2019-06-18T11:56:59Z")

</div>

Hi, macro Name(arg) string(arg) end Household = @with\_kw (r=0.03, β=0.97) Model = Household() function doplot(Model, x) @unpack r = Model plot(x, ylabel=@Name(x), title="r=$r") end…

---

## [How to measure time in spawned process?](https://discourse.julialang.org/t/how-to-measure-time-in-spawned-process/25383)

<div class="topic-metadata">

**Author:** [@hsgg](https://discourse.julialang.org/u/hsgg)\
**Replies:** 3\
**Last updated:** [June 18, 2019, 11:55am UTC](https://discourse.julialang.org/t/how-to-measure-time-in-spawned-process/25383 "2019-06-18T11:55:50Z")

</div>

I’m trying to parallelize my code, and find it useful to measure the elapsed CPU time for a single process. However, I find that using @time the output is garbled. Here is a MWE, minimal.jl: using Distributed @everywhe…

---

## [Optimization using SAMIN()](https://discourse.julialang.org/t/optimization-using-samin/25351)

<div class="topic-metadata">

**Author:** [@Farnazmdi](https://discourse.julialang.org/u/Farnazmdi)\
**Replies:** 10\
**Last updated:** [June 18, 2019, 10:00am UTC](https://discourse.julialang.org/t/optimization-using-samin/25351 "2019-06-18T10:00:31Z")

</div>

Hi, I am trying to use SAMIN() for constrained optimization for a DDE parameter estimation, I have seen the example in \[Optim.jl\] and I am following the same syntax, but get the error of Dimension mismatch. resid is t…

---

## [Install Juno, fails](https://discourse.julialang.org/t/install-juno-fails/24757)

<div class="topic-metadata">

**Author:** [@zhangliye](https://discourse.julialang.org/u/zhangliye)\
**Replies:** 6\
**Last updated:** [June 18, 2019, 9:53am UTC](https://discourse.julialang.org/t/install-juno-fails/24757 "2019-06-18T09:53:08Z")

</div>

I have updated Atom and cannot install any package. The error should be related to the Atom as bellow, which shows “Self signed certificate in certificate chain”. I can install package from the command window using the c…

---

## [How to simplify type parameters and still be type stable?](https://discourse.julialang.org/t/how-to-simplify-type-parameters-and-still-be-type-stable/25387)

<div class="topic-metadata">

**Author:** [@fverdugo](https://discourse.julialang.org/u/fverdugo)\
**Replies:** 5\
**Last updated:** [June 18, 2019, 9:52am UTC](https://discourse.julialang.org/t/how-to-simplify-type-parameters-and-still-be-type-stable/25387 "2019-06-18T09:52:49Z")

</div>

In my code I need to use type parameters to keep my structs type stable. E.g., struct Foo{A,B} a::A b::B end So far, so good. Now, imagine that the types A and B are also structs that in turn have type parameter…

---

## [Upgrading JuliaPro (Windows)](https://discourse.julialang.org/t/upgrading-juliapro-windows/25233)

<div class="topic-metadata">

**Author:** [@tt1234567](https://discourse.julialang.org/u/tt1234567)\
**Replies:** 1\
**Last updated:** [June 18, 2019, 7:16am UTC](https://discourse.julialang.org/t/upgrading-juliapro-windows/25233 "2019-06-18T07:16:40Z")

</div>

I’ve just upgraded to JuliaPro 1.1.1.1 and now I have both that and version 1.1.0.1 installed (local user). Is there an easy way to copy the settings, package lists, etc. from the old version to the new before I uninstal…

---

## [Method error for maxpool(x,(2,2))](https://discourse.julialang.org/t/method-error-for-maxpool-x-2-2/24693)

<div class="topic-metadata">

**Author:** [@Don\_Burgess](https://discourse.julialang.org/u/Don_Burgess)\
**Replies:** 4\
**Last updated:** [June 18, 2019, 6:15am UTC](https://discourse.julialang.org/t/method-error-for-maxpool-x-2-2/24693 "2019-06-18T06:15:50Z")

</div>

This call from a formerly work code seems to throw a method error: x → maxpool(x, (2,2)), ERROR: MethodError: no method matching maxpool(::TrackedArray{…,Array{Float32,4}}, ::Tuple{Int64,Int64}) ======= Has the inter…

---

## [Way to reclaim recently unassigned variable?](https://discourse.julialang.org/t/way-to-reclaim-recently-unassigned-variable/25385)

<div class="topic-metadata">

**Author:** [@djsegal](https://discourse.julialang.org/u/djsegal)\
**Replies:** 1\
**Last updated:** [June 18, 2019, 5:21am UTC](https://discourse.julialang.org/t/way-to-reclaim-recently-unassigned-variable/25385 "2019-06-18T05:21:55Z")

</div>

Let’s say you’ve created some data object: cur\_dict = Dict() for i in 1:10000 cur\_dict\[i+rand()\] = i sleep(2) end Then you fat finger the previous code again so that cur\_dict is reset to Dict(). Is there a way to …

---

## [When is it necessary to qualify names](https://discourse.julialang.org/t/when-is-it-necessary-to-qualify-names/25378)

<div class="topic-metadata">

**Author:** [@Ross\_Boylan](https://discourse.julialang.org/u/Ross_Boylan)\
**Replies:** 2\
**Last updated:** [June 18, 2019, 3:38am UTC](https://discourse.julialang.org/t/when-is-it-necessary-to-qualify-names/25378 "2019-06-18T03:38:33Z")

</div>

I am having trouble figuring out when I need to qualify names or use modules and when I don’t. \* seems to do matrix multiplication even though I haven’t even issued using LinearAlgebra. optimize worked after using Op…

---

## [Write structure to HDF5 file and read a compound type from HDF5 into Julia structure](https://discourse.julialang.org/t/write-structure-to-hdf5-file-and-read-a-compound-type-from-hdf5-into-julia-structure/20358)

<div class="topic-metadata">

**Author:** [@sairus7](https://discourse.julialang.org/u/sairus7)\
**Replies:** 3\
**Last updated:** [June 18, 2019, 1:58am UTC](https://discourse.julialang.org/t/write-structure-to-hdf5-file-and-read-a-compound-type-from-hdf5-into-julia-structure/20358 "2019-06-18T01:58:17Z")

</div>

How to write a structure in HDF5 file? using HDF5 mutable struct Foo a::Int b::Float64 end vect = \[1,2,3,4,5\] foo = Foo(1, 2.0) foovect = \[P(i, i/2) for i=1:5\] path = "/testfile.h5" h5write(path, "/vect", vect) …

---

## [\[CfP\] Parallel Application Workshop, Alternatives to MPI+X -- Supercomputing 2019](https://discourse.julialang.org/t/cfp-parallel-application-workshop-alternatives-to-mpi-x-supercomputing-2019/23656)

<div class="topic-metadata">

**Author:** [@vchuravy](https://discourse.julialang.org/u/vchuravy)\
**Replies:** 1\
**Last updated:** [June 18, 2019, 1:33am UTC](https://discourse.julialang.org/t/cfp-parallel-application-workshop-alternatives-to-mpi-x-supercomputing-2019/23656 "2019-06-18T01:33:06Z")

</div>

Call for Papers PAW-ATM 2019: Parallel Applications Workshop, Alternatives To MPI+X Held in conjunction with SC 19, Denver, CO http://sourceryinstitute.github.io/PAW/ Summary S…

---

## [JuliaDB versus](https://discourse.julialang.org/t/juliadb-versus/20977)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 12\
**Last updated:** [June 18, 2019, 12:35am UTC](https://discourse.julialang.org/t/juliadb-versus/20977 "2019-06-18T00:35:48Z")

</div>

I’ve been using JuliaDB and absolutely loving it . It helped me restructure my data and I’m now able to process my data in about 40 LOC. It all makes sense. In my application, I’m joining and grouping sources together t…

---

## [Any way to figure out if a WeakRef is referenced elsewhere?](https://discourse.julialang.org/t/any-way-to-figure-out-if-a-weakref-is-referenced-elsewhere/25380)

<div class="topic-metadata">

**Author:** [@marius311](https://discourse.julialang.org/u/marius311)\
**Replies:** 3\
**Last updated:** [June 17, 2019, 10:45pm UTC](https://discourse.julialang.org/t/any-way-to-figure-out-if-a-weakref-is-referenced-elsewhere/25380 "2019-06-17T22:45:08Z")

</div>

If I have a WeakRef to an object, is there any more efficient way to figure out if its referenced elsewhere, other than just running a GC.gc() and checking if my WeakRef value has become nothing?

---

## [Generating plots(heatmap, surf, mesh) using cimgui and Cuda libraries](https://discourse.julialang.org/t/generating-plots-heatmap-surf-mesh-using-cimgui-and-cuda-libraries/24597)

<div class="topic-metadata">

**Author:** [@wiktorkujawa](https://discourse.julialang.org/u/wiktorkujawa)\
**Replies:** 15\
**Last updated:** [June 17, 2019, 10:09pm UTC](https://discourse.julialang.org/t/generating-plots-heatmap-surf-mesh-using-cimgui-and-cuda-libraries/24597 "2019-06-17T22:09:13Z")

</div>

I have a problem, in which I have to generate some physical Field(Magnetic Field) in plot which value is dependent of 3 cartesian coordinates(x,y,z) and position of inducing elements(wires, poles, cables - line elements)…

---

## [How to define a set literal like Python?](https://discourse.julialang.org/t/how-to-define-a-set-literal-like-python/25352)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 9\
**Last updated:** [June 17, 2019, 9:51pm UTC](https://discourse.julialang.org/t/how-to-define-a-set-literal-like-python/25352 "2019-06-17T21:51:48Z")

</div>

In Python, we could write a set by {1, 2, 3}. In Julia, we have to write Set(\[1, 2, 3\]). Is there a way to define a set literal the same way as Python?

---

## [Meeting "Julia and Optimization" at Nantes (France), June 17, 2019](https://discourse.julialang.org/t/meeting-julia-and-optimization-at-nantes-france-june-17-2019/23782)

<div class="topic-metadata">

**Author:** [@XavierG](https://discourse.julialang.org/u/XavierG)\
**Replies:** 1\
**Last updated:** [June 17, 2019, 9:36pm UTC](https://discourse.julialang.org/t/meeting-julia-and-optimization-at-nantes-france-june-17-2019/23782 "2019-06-17T21:36:33Z")

</div>

Dear all, I’m very glad to announce this Julia meeting in France. The meeting will be held at the University of Nantes, with talks and discussions given in french. The program is composed by 3 tutorials, 6 regular talks…

---

## [Spelling of sum(x\*y for (x,y) in zip(xs, ys)), e.g. linear combinations](https://discourse.julialang.org/t/spelling-of-sum-x-y-for-x-y-in-zip-xs-ys-e-g-linear-combinations/25379)

<div class="topic-metadata">

**Author:** [@goretkin](https://discourse.julialang.org/u/goretkin)\
**Replies:** 3\
**Last updated:** [June 17, 2019, 9:10pm UTC](https://discourse.julialang.org/t/spelling-of-sum-x-y-for-x-y-in-zip-xs-ys-e-g-linear-combinations/25379 "2019-06-17T21:10:25Z")

</div>

Is there a good canonical spelling for taking a linear combination, e.g. combo(xs, ys) = sum(x\*y for (x,y) in zip(xs, ys)) basis = \[\[1,0\], \[1,1\]\] weights = \[0.5, 0.5\] julia\> combo(basis, weights) 2-element Array{Float6…

---

## [Web App File Uploading](https://discourse.julialang.org/t/web-app-file-uploading/25370)

<div class="topic-metadata">

**Author:** [@versipellis](https://discourse.julialang.org/u/versipellis)\
**Replies:** 3\
**Last updated:** [June 17, 2019, 8:12pm UTC](https://discourse.julialang.org/t/web-app-file-uploading/25370 "2019-06-17T20:12:24Z")

</div>

I spent the last few weeks building out a pure-Julia webapp for exploratory data analysis in WebIO + Blink + Interact, and recently switched over to WebIO + Mux + Interact as I wanted to deploy it rather than being an El…

---

## [\[ANN\] v1.0 of SteamTables now available](https://discourse.julialang.org/t/ann-v1-0-of-steamtables-now-available/25314)

<div class="topic-metadata">

**Author:** [@braamvandyk](https://discourse.julialang.org/u/braamvandyk)\
**Replies:** 12\
**Last updated:** [June 17, 2019, 7:27pm UTC](https://discourse.julialang.org/t/ann-v1-0-of-steamtables-now-available/25314 "2019-06-17T19:27:33Z")

</div>

SteamTables v1.0 is now available. I have added option physical unit support via the excellent Unitful.jl. I dropped support for \<v.1.0, simply because I am no longer maintaining a copy to check if something gets broken…

---

## [PR to stdlib](https://discourse.julialang.org/t/pr-to-stdlib/25369)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 3\
**Last updated:** [June 17, 2019, 3:26pm UTC](https://discourse.julialang.org/t/pr-to-stdlib/25369 "2019-06-17T15:26:11Z")

</div>

I wanted to add “default” functionality to TemrinalMenus.jl (so one could specify a default pre-selected item/s to the menus). So I \]dev TerminalMenus changed stuff in .julia/dev/TerminalMenus added documentations an…

---

## [Julia: Lorentz attractor and what to download?](https://discourse.julialang.org/t/julia-lorentz-attractor-and-what-to-download/25360)

<div class="topic-metadata">

**Author:** [@P\_ter](https://discourse.julialang.org/u/P_ter)\
**Replies:** 2\
**Last updated:** [June 17, 2019, 12:54pm UTC](https://discourse.julialang.org/t/julia-lorentz-attractor-and-what-to-download/25360 "2019-06-17T12:54:20Z")

</div>

Hello, I downloaded Julia via Debian Stretch synaptic. I wanted to see some graphics from Juliaplots.org. Did not work. Got some red message to download from julialang.org. Ok. I removed Julia via synaptic. I downloaded…

---

## [How to get new random values at every run of a testset?](https://discourse.julialang.org/t/how-to-get-new-random-values-at-every-run-of-a-testset/25365)

<div class="topic-metadata">

**Author:** [@tencnivel](https://discourse.julialang.org/u/tencnivel)\
**Replies:** 1\
**Last updated:** [June 17, 2019, 12:14pm UTC](https://discourse.julialang.org/t/how-to-get-new-random-values-at-every-run-of-a-testset/25365 "2019-06-17T12:14:51Z")

</div>

Hello, How can I have functions like randstring() generate new values at every run of a testset. For example, in the following test, I have to restart a julia session to get a different value from the previous executio…

---

## [Unexplained Allocation](https://discourse.julialang.org/t/unexplained-allocation/25332)

<div class="topic-metadata">

**Author:** [@cortner](https://discourse.julialang.org/u/cortner)\
**Replies:** 8\
**Last updated:** [June 17, 2019, 10:38am UTC](https://discourse.julialang.org/t/unexplained-allocation/25332 "2019-06-17T10:38:11Z")

</div>

Here is a short code-snippet that confused me. I’d appreciate any explanation of this phenomenon? using BenchmarkTools f(A, B) = A, B g(A, B) = A A = rand(5) B = rand(5) @btime f($A, $B); # 10.919 ns (1 allocation: …

---

## [Manually updating the parameters of a Neural Network in Flux](https://discourse.julialang.org/t/manually-updating-the-parameters-of-a-neural-network-in-flux/25327)

<div class="topic-metadata">

**Author:** [@mlpeschl](https://discourse.julialang.org/u/mlpeschl)\
**Replies:** 3\
**Last updated:** [June 17, 2019, 9:32am UTC](https://discourse.julialang.org/t/manually-updating-the-parameters-of-a-neural-network-in-flux/25327 "2019-06-17T09:32:10Z")

</div>

I am currently working on a Reinforcement Learning problem, which requires to form and store (matrices) of gradients and then update the parameters of the Neural Network manually. Basically, what I have done is take the…

---

## [How to type a latex formula in editor Atom when using Julia?](https://discourse.julialang.org/t/how-to-type-a-latex-formula-in-editor-atom-when-using-julia/25358)

<div class="topic-metadata">

**Author:** [@bsnyh](https://discourse.julialang.org/u/bsnyh)\
**Replies:** 6\
**Last updated:** [June 17, 2019, 9:05am UTC](https://discourse.julialang.org/t/how-to-type-a-latex-formula-in-editor-atom-when-using-julia/25358 "2019-06-17T09:05:35Z")

</div>

Hi, I have a quick question as the following. I was wondering, how to type a latex formula like e^2 in a .jl file when using Atom? Any suggestions?

---

## [Dynamically documenting fields in "dictionary-like" type](https://discourse.julialang.org/t/dynamically-documenting-fields-in-dictionary-like-type/25295)

<div class="topic-metadata">

**Author:** [@sebasguts](https://discourse.julialang.org/u/sebasguts)\
**Replies:** 5\
**Last updated:** [June 17, 2019, 8:48am UTC](https://discourse.julialang.org/t/dynamically-documenting-fields-in-dictionary-like-type/25295 "2019-06-17T08:48:27Z")

</div>

Dear all, I a trying to add dynamic documentation to fields of a “dictionary-like” type in GAP.jl, namely the type struct GlobalsType funcs::Dict{Symbol,Cuint} end There is only one global instance of this type, n…

---

## [Greek Alphabet with Weave](https://discourse.julialang.org/t/greek-alphabet-with-weave/25357)

<div class="topic-metadata">

**Author:** [@kapple](https://discourse.julialang.org/u/kapple)\
**Replies:** 0\
**Last updated:** [June 17, 2019, 7:36am UTC](https://discourse.julialang.org/t/greek-alphabet-with-weave/25357 "2019-06-17T07:36:40Z")

</div>

Is there a possible way to include the Greek alphabet as part of using Weave for MarkDown to pdf? As in, use Greek letters in the code and in the output. E.g. \\alpha + TAB becomes \\alpha in editor, and \\alpha becomes \\a…

---

## [Why the performance hit on this trivial vector wrapper broadcast?](https://discourse.julialang.org/t/why-the-performance-hit-on-this-trivial-vector-wrapper-broadcast/25335)

<div class="topic-metadata">

**Author:** [@marius311](https://discourse.julialang.org/u/marius311)\
**Replies:** 3\
**Last updated:** [June 17, 2019, 12:56am UTC](https://discourse.julialang.org/t/why-the-performance-hit-on-this-trivial-vector-wrapper-broadcast/25335 "2019-06-17T00:56:20Z")

</div>

I’ve got a trivial vector wrapper type implementing a minimal array interface: using Lazy struct VecWrapper{T, V\<:AbstractVector{T}} \<: AbstractVector{T} data :: V end @forward VecWrapper.data (Base.getindex, Base.…

---

## [Juno IDE extremely laggy](https://discourse.julialang.org/t/juno-ide-extremely-laggy/19756)

<div class="topic-metadata">

**Author:** [@economyboy](https://discourse.julialang.org/u/economyboy)\
**Replies:** 5\
**Last updated:** [June 16, 2019, 9:51pm UTC](https://discourse.julialang.org/t/juno-ide-extremely-laggy/19756 "2019-06-16T21:51:54Z")

</div>

A few days ago I wanted to upgrade Julia and all dependencies to 1.0. Therefore I deinstalled all old versions and installed the JuliaPro distribution 1.0.2.1. So far everything went good, Juno ran without problems and I…

---

## [Loop over function names to document them](https://discourse.julialang.org/t/loop-over-function-names-to-document-them/25328)

<div class="topic-metadata">

**Author:** [@heliosdrm](https://discourse.julialang.org/u/heliosdrm)\
**Replies:** 1\
**Last updated:** [June 16, 2019, 11:51pm UTC](https://discourse.julialang.org/t/loop-over-function-names-to-document-them/25328 "2019-06-16T23:51:32Z")

</div>

I have written a set of functions, say foo!, bar!, etc., to do some operations that modify their first argument. Now say I want to have their complements foo, bar… that operate on a default value of that first argument, …

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

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