# Latest

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

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

**Page:** 1762

---

## [\[RFC, ANN\] WindowMap.jl](https://discourse.julialang.org/t/rfc-ann-windowmap-jl/38441)

<div class="topic-metadata">

**Author:** [@aplavin](https://discourse.julialang.org/u/aplavin)\
**Replies:** 2\
**Last updated:** [April 30, 2020, 1:45pm UTC](https://discourse.julialang.org/t/rfc-ann-windowmap-jl/38441 "2020-04-30T13:45:42Z")

</div>

Regularly I need to apply a function to a series of y\[i\] in a windowed (rolling) way, where the window is defined by values of another series x\[i\] instead of the indices i themselves. E.g. x represents timestamps, y are …

---

## [Make \` Array{T}(undef, ...) \` fill with a value for debugging?](https://discourse.julialang.org/t/make-array-t-undef-fill-with-a-value-for-debugging/38471)

<div class="topic-metadata">

**Author:** [@dlfivefifty](https://discourse.julialang.org/u/dlfivefifty)\
**Replies:** 12\
**Last updated:** [April 30, 2020, 1:24pm UTC](https://discourse.julialang.org/t/make-array-t-undef-fill-with-a-value-for-debugging/38471 "2020-04-30T13:24:39Z")

</div>

Is there a way to force array allocation to fill with a specific value, eg NaN? I often find myself debugging bugs that don’t appear when the array happens to be filled with zeros, so this would make these bugs reproduci…

---

## [Syntax for outer constructor and thow-away input argument](https://discourse.julialang.org/t/syntax-for-outer-constructor-and-thow-away-input-argument/38468)

<div class="topic-metadata">

**Author:** [@RGerzaguet](https://discourse.julialang.org/u/RGerzaguet)\
**Replies:** 3\
**Last updated:** [April 30, 2020, 1:10pm UTC](https://discourse.julialang.org/t/syntax-for-outer-constructor-and-thow-away-input-argument/38468 "2020-04-30T13:10:57Z")

</div>

Hello there, A simple semantic question, and a way to call an inner constructor Assuming I have a simple structure defined as follows struct Test b::Int; m::Int; n::Int; end But such that we have b = m+n+1…

---

## [Plots with string xaxis and y-errorbars gives error](https://discourse.julialang.org/t/plots-with-string-xaxis-and-y-errorbars-gives-error/37228)

<div class="topic-metadata">

**Author:** [@transarcus](https://discourse.julialang.org/u/transarcus)\
**Replies:** 3\
**Last updated:** [April 30, 2020, 11:48am UTC](https://discourse.julialang.org/t/plots-with-string-xaxis-and-y-errorbars-gives-error/37228 "2020-04-30T11:48:24Z")

</div>

Plotting a bar plot with text as the xaxis gives me an error where it didn’t use to. I’m using Julia 1.4 and plots v1.0.5 plot(\[“a”,“b”\],\[10,2\],yerr=\[1,1\],st=:bar) gives the error “Cannot convert an object of type Strin…

---

## [New line in substitution string?](https://discourse.julialang.org/t/new-line-in-substitution-string/21891)

<div class="topic-metadata">

**Author:** [@nickeubank](https://discourse.julialang.org/u/nickeubank)\
**Replies:** 7\
**Last updated:** [April 30, 2020, 9:32am UTC](https://discourse.julialang.org/t/new-line-in-substitution-string/21891 "2020-04-30T09:32:10Z")

</div>

How does one put a new line (\\n) in a substitution string? e.g.: println(replace("test string", r"(test string)" =\> s"\\1 \\n line 2")) Id like it to return: test string line 2 But I get: Bad replacement string: \\1 \\n…

---

## [Prevent Juno startup from triggering package updates](https://discourse.julialang.org/t/prevent-juno-startup-from-triggering-package-updates/38465)

<div class="topic-metadata">

**Author:** [@jaynick](https://discourse.julialang.org/u/jaynick)\
**Replies:** 1\
**Last updated:** [April 30, 2020, 7:45am UTC](https://discourse.julialang.org/t/prevent-juno-startup-from-triggering-package-updates/38465 "2020-04-30T07:45:47Z")

</div>

I noticed that after staring atom and initially attaching to a (remote) Julia, some package upgrades are triggered. Before printing the julia logo we see Updating registry at ~/.julia/registries/General Resolving pack…

---

## [Flux vs Keras time series prediction performance](https://discourse.julialang.org/t/flux-vs-keras-time-series-prediction-performance/38421)

<div class="topic-metadata">

**Author:** [@Volker](https://discourse.julialang.org/u/Volker)\
**Replies:** 3\
**Last updated:** [April 30, 2020, 7:45am UTC](https://discourse.julialang.org/t/flux-vs-keras-time-series-prediction-performance/38421 "2020-04-30T07:45:45Z")

</div>

Hi, I compare the prediction quality of two neural networks on a time series. One trained by Keras and one trained by Flux. Unfortunately I´m not able to achieve the same quality (see figure) and I don´t know why. I…

---

## [Julia 1.5 feature freeze: May 4th](https://discourse.julialang.org/t/julia-1-5-feature-freeze-may-4th/38469)

<div class="topic-metadata">

**Author:** [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Replies:** 0\
**Last updated:** [April 30, 2020, 7:41am UTC](https://discourse.julialang.org/t/julia-1-5-feature-freeze-may-4th/38469 "2020-04-30T07:41:20Z")

</div>

Heads up: this is to let people know that if they have any PRs that they really want to get into Julia 1.5, the feature freeze for the 1.5 release will be on Monday, May 4th (be with you). If you have open PRs or other t…

---

## [Clang.jl ignoring #define starting with underscore](https://discourse.julialang.org/t/clang-jl-ignoring-define-starting-with-underscore/38426)

<div class="topic-metadata">

**Author:** [@Iulian.Cioarca](https://discourse.julialang.org/u/Iulian.Cioarca)\
**Replies:** 2\
**Last updated:** [April 30, 2020, 7:04am UTC](https://discourse.julialang.org/t/clang-jl-ignoring-define-starting-with-underscore/38426 "2020-04-30T07:04:00Z")

</div>

I have some header files which I’d like to wrap with Clang.jl. Why does it ignore definitions starting with underscore such as: #define \_VAR (1) If I remove the underscore, it works fine: #define VAR (1) const VAR =…

---

## [Status of Flux model zoo](https://discourse.julialang.org/t/status-of-flux-model-zoo/38130)

<div class="topic-metadata">

**Author:** [@Emmanuel-R8](https://discourse.julialang.org/u/Emmanuel-R8)\
**Replies:** 6\
**Last updated:** [April 30, 2020, 6:39am UTC](https://discourse.julialang.org/t/status-of-flux-model-zoo/38130 "2020-04-30T06:39:03Z")

</div>

I was interested in updating Flux’s model zoo since everything I tried is out of date. But I saw that there are a lot of pull requests which are outstanding. Is it still maintained? Did I miss an announcement on that? …

---

## [How to break out of exactly the current loop?](https://discourse.julialang.org/t/how-to-break-out-of-exactly-the-current-loop/38457)

<div class="topic-metadata">

**Author:** [@Yusen\_Liu](https://discourse.julialang.org/u/Yusen_Liu)\
**Replies:** 4\
**Last updated:** [April 30, 2020, 12:58am UTC](https://discourse.julialang.org/t/how-to-break-out-of-exactly-the-current-loop/38457 "2020-04-30T00:58:29Z")

</div>

Hi all, I know the use of break, which is that a ‘break’ statement inside such a loop exits the entire nest of loops, not just the inner one. What if I just want to exit the inner one? For instance for i in 1:5, j in…

---

## [Shared memory limitations](https://discourse.julialang.org/t/shared-memory-limitations/38391)

<div class="topic-metadata">

**Author:** [@calebwin](https://discourse.julialang.org/u/calebwin)\
**Replies:** 4\
**Last updated:** [April 29, 2020, 10:16pm UTC](https://discourse.julialang.org/t/shared-memory-limitations/38391 "2020-04-29T22:16:48Z")

</div>

My apologies if this has already been asked. But right now, what all operations are supported for shared memory in CUDANative.jl? is it likely that more stuff can/will be added in the future? or a better question - how h…

---

## [How would you plot a 3d histogram (or lego plot as people call it)](https://discourse.julialang.org/t/how-would-you-plot-a-3d-histogram-or-lego-plot-as-people-call-it/38427)

<div class="topic-metadata">

**Author:** [@Julia1](https://discourse.julialang.org/u/Julia1)\
**Replies:** 5\
**Last updated:** [April 29, 2020, 9:46pm UTC](https://discourse.julialang.org/t/how-would-you-plot-a-3d-histogram-or-lego-plot-as-people-call-it/38427 "2020-04-29T21:46:14Z")

</div>

Hi how’s it going? I want to make a 3d histogram, or a lego plot. What would be the best way of going about this? For a hypothetical example, say x = \[1,2,3,4,5\], y = \[0,5,30,10,15\] and z = \[50,100,150,200,250\] Here i…

---

## [What is "splatting" in flux (loss?)?](https://discourse.julialang.org/t/what-is-splatting-in-flux-loss/37548)

<div class="topic-metadata">

**Author:** [@jaynick](https://discourse.julialang.org/u/jaynick)\
**Replies:** 2\
**Last updated:** [April 29, 2020, 8:34pm UTC](https://discourse.julialang.org/t/what-is-splatting-in-flux-loss/37548 "2020-04-29T20:34:04Z")

</div>

In the Flux docs for train! it says In case datapoints d are of numeric array type, assume no splatting is needed and compute the gradient of loss(d) . What does “splatting” mean here? I am guessing that what this m…

---

## [Visualizing Jacobians/Gradients(?) - How's this?](https://discourse.julialang.org/t/visualizing-jacobians-gradients-hows-this/36799)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 3\
**Last updated:** [April 29, 2020, 7:22pm UTC](https://discourse.julialang.org/t/visualizing-jacobians-gradients-hows-this/36799 "2020-04-29T19:22:08Z")

</div>

I’ve been studying calculus and in the online course I’m following, the instructor says (in relation to a plot of a particular function): the Jacobian is simply a vector that we can calculate for each location on this …

---

## [How to apply two macros to a struct definition?](https://discourse.julialang.org/t/how-to-apply-two-macros-to-a-struct-definition/37957)

<div class="topic-metadata">

**Author:** [@SteffenPL](https://discourse.julialang.org/u/SteffenPL)\
**Replies:** 2\
**Last updated:** [April 29, 2020, 6:50pm UTC](https://discourse.julialang.org/t/how-to-apply-two-macros-to-a-struct-definition/37957 "2020-04-29T18:50:46Z")

</div>

I would like to use two macros to add extra functions to one struct, namely @with\_kw (from Parameters.jl ) and @auto\_hash\_equals (from AutoHashEquals.jl ). using Parameters, AutoHashEqual @with\_kw @auto\_hash\_equals s…

---

## [\[RFC/ANN\] FLoops.jl: fast generic for loops (foldl for humans™)](https://discourse.julialang.org/t/rfc-ann-floops-jl-fast-generic-for-loops-foldl-for-humans/37876)

<div class="topic-metadata">

**Author:** [@tkf](https://discourse.julialang.org/u/tkf)\
**Replies:** 42\
**Last updated:** [April 29, 2020, 6:29pm UTC](https://discourse.julialang.org/t/rfc-ann-floops-jl-fast-generic-for-loops-foldl-for-humans/37876 "2020-04-29T18:29:12Z")

</div>

FLoops.jl provides a macro @floop to provide alternative “backend” of the for loop syntax based on the mechanism provided by Transducers.jl. It can be used to generate a fast generic iteration over complex collections. I…

---

## [Bug in \`sizeof\` for nested arrays](https://discourse.julialang.org/t/bug-in-sizeof-for-nested-arrays/38420)

<div class="topic-metadata">

**Author:** [@dataSurfer](https://discourse.julialang.org/u/dataSurfer)\
**Replies:** 18\
**Last updated:** [April 29, 2020, 5:56pm UTC](https://discourse.julialang.org/t/bug-in-sizeof-for-nested-arrays/38420 "2020-04-29T17:56:29Z")

</div>

Just checking before I raise an issue in Julia repo, this is a bug right? sizeof(\[\[rand(Float64) for j in 1:10\] for i in 1:10\]) # 80 sizeof(\[\[rand(Float32) for j in 1:10\] for i in 1:10\]) # 80 sizeof(rand(Float64, (10,…

---

## [DiffEqFlux.sciml\_train resulting parameters](https://discourse.julialang.org/t/diffeqflux-sciml-train-resulting-parameters/38409)

<div class="topic-metadata">

**Author:** [@Matthew\_Overlin](https://discourse.julialang.org/u/Matthew_Overlin)\
**Replies:** 4\
**Last updated:** [April 29, 2020, 4:48pm UTC](https://discourse.julialang.org/t/diffeqflux-sciml-train-resulting-parameters/38409 "2020-04-29T16:48:21Z")

</div>

I am following an example here. The neural network is defined as Chain(Dense(2,50,tanh),Dense(50,2)). The resulting “.minimizer” array of values has 252 entries. How are each of these entries mapped to the W1, b1, W2,…

---

## [Controlling save behavior and performance of DiffEqBiological](https://discourse.julialang.org/t/controlling-save-behavior-and-performance-of-diffeqbiological/38387)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 6\
**Last updated:** [April 29, 2020, 2:53pm UTC](https://discourse.julialang.org/t/controlling-save-behavior-and-performance-of-diffeqbiological/38387 "2020-04-29T14:53:57Z")

</div>

I’m interested in the bistable Schlogl model, which, under resevoir assumptions on species A and B, can be represented inside of DiffEqBiological as schlogl = @reaction\_network begin c1 \* a/ V, 2\*S --\> 3\*S c2 / …

---

## [Virtual GPU office hours](https://discourse.julialang.org/t/virtual-gpu-office-hours/38385)

<div class="topic-metadata">

**Author:** [@vchuravy](https://discourse.julialang.org/u/vchuravy)\
**Replies:** 0\
**Last updated:** [April 28, 2020, 5:09pm UTC](https://discourse.julialang.org/t/virtual-gpu-office-hours/38385 "2020-04-28T17:09:41Z")

</div>

We have decided to experiment with a new format and decided to hold virtual office hours for GPU programming in Julia. So everything that is under the JuliaGPU · GitHub umbrella. Feel free to drop by and to discuss your…

---

## [Need help with array calculation](https://discourse.julialang.org/t/need-help-with-array-calculation/38423)

<div class="topic-metadata">

**Author:** [@QUANG\_VU\_NGUY\_N\_PH\_M](https://discourse.julialang.org/u/QUANG_VU_NGUY_N_PH_M)\
**Replies:** 3\
**Last updated:** [April 29, 2020, 2:46pm UTC](https://discourse.julialang.org/t/need-help-with-array-calculation/38423 "2020-04-29T14:46:02Z")

</div>

I would like to ask for help about array calculation I want to plot contourline of f in which: f = q + p\*ln(p ) To do that, n = 100 p = range(0, stop = 200, length =n ) q = range(0, stop = 200, lengt…

---

## [Outer constructors with a field of static vector](https://discourse.julialang.org/t/outer-constructors-with-a-field-of-static-vector/38415)

<div class="topic-metadata">

**Author:** [@Vadim\_Zotin](https://discourse.julialang.org/u/Vadim_Zotin)\
**Replies:** 2\
**Last updated:** [April 29, 2020, 1:08pm UTC](https://discourse.julialang.org/t/outer-constructors-with-a-field-of-static-vector/38415 "2020-04-29T13:08:32Z")

</div>

Dear all, Can you help me to clarify some point? Suppose, I have two composite types, one of them is parametric. They look rather similar. using StaticArrays struct test1 t::SVector{5,AbstractFloat} end struct tes…

---

## [Skip layer with masked weights in Flux](https://discourse.julialang.org/t/skip-layer-with-masked-weights-in-flux/38419)

<div class="topic-metadata">

**Author:** [@DeepQ](https://discourse.julialang.org/u/DeepQ)\
**Replies:** 0\
**Last updated:** [April 29, 2020, 12:44pm UTC](https://discourse.julialang.org/t/skip-layer-with-masked-weights-in-flux/38419 "2020-04-29T12:44:51Z")

</div>

I know that I could define an skip layer in Flux, like below: struct Skip inner end (m::Skip) = x .+ m.inner(x) But how could I multiply m.inner(x) by an sparse weight mask? How could I define the layer?

---

## [@test return is not what the docs say it is](https://discourse.julialang.org/t/test-return-is-not-what-the-docs-say-it-is/38396)

<div class="topic-metadata">

**Author:** [@dsweber2](https://discourse.julialang.org/u/dsweber2)\
**Replies:** 4\
**Last updated:** [April 29, 2020, 12:02pm UTC](https://discourse.julialang.org/t/test-return-is-not-what-the-docs-say-it-is/38396 "2020-04-29T12:02:59Z")

</div>

The documentation for @test suggests that if the expression returns either true of false, you should get back either Test.Pass or Test.Fail. However, running simply foo = @test false in the repl causes and error (so foo …

---

## [Draw vectors on scatter plot with flipped axis](https://discourse.julialang.org/t/draw-vectors-on-scatter-plot-with-flipped-axis/38416)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 2\
**Last updated:** [April 29, 2020, 11:59am UTC](https://discourse.julialang.org/t/draw-vectors-on-scatter-plot-with-flipped-axis/38416 "2020-04-29T11:59:04Z")

</div>

Hi all- Is there a way to draw a vector with flipped axes? In the example, the vectors are drawn in two places (and without an error in the correct place). using Plots m1 = (x=350,y=250) m2 = (x=375,y=26) vm = (x=m1…

---

## [Pkg.add doesn't work](https://discourse.julialang.org/t/pkg-add-doesnt-work/38299)

<div class="topic-metadata">

**Author:** [@EmmyJ](https://discourse.julialang.org/u/EmmyJ)\
**Replies:** 5\
**Last updated:** [April 29, 2020, 9:34am UTC](https://discourse.julialang.org/t/pkg-add-doesnt-work/38299 "2020-04-29T09:34:26Z")

</div>

Hi, I’ve just done a fresh install of Julia (tried multiple versions already, but I need v0.6) and whenever I try Pkg.add, I get the same error: I’m on a Windows 10. julia\> Pkg.add(“IJulia”) INFO: Initializing packa…

---

## [Name That Tune: I Can Code That In One Step](https://discourse.julialang.org/t/name-that-tune-i-can-code-that-in-one-step/38353)

<div class="topic-metadata">

**Author:** [@blackeneth](https://discourse.julialang.org/u/blackeneth)\
**Replies:** 13\
**Last updated:** [April 29, 2020, 8:17am UTC](https://discourse.julialang.org/t/name-that-tune-i-can-code-that-in-one-step/38353 "2020-04-29T08:17:10Z")

</div>

A highly fascinating function I’m writing requires, at one point, I create a vector of length nv that contains the result of this calculation: abs(2\*mod(q\[i-1\]+rand(),1)-1) That is, each row needs to start with a ran…

---

## [Plethora of Julia related GitHub organizations and how to know which of them are "official"](https://discourse.julialang.org/t/plethora-of-julia-related-github-organizations-and-how-to-know-which-of-them-are-official/37967)

<div class="topic-metadata">

**Author:** [@fingolfin](https://discourse.julialang.org/u/fingolfin)\
**Replies:** 8\
**Last updated:** [April 29, 2020, 6:31am UTC](https://discourse.julialang.org/t/plethora-of-julia-related-github-organizations-and-how-to-know-which-of-them-are-official/37967 "2020-04-29T06:31:13Z")

</div>

Not sure if this fits in here exactly, but it seems close enough: There is a bunch of “official” or at least “official looking” (???) GitHub organizations in the Julia ecosystem. Some I am aware of: The Julia Programmi…

---

## [Makie scene, wait for input](https://discourse.julialang.org/t/makie-scene-wait-for-input/28860)

<div class="topic-metadata">

**Author:** [@BioTurboNick](https://discourse.julialang.org/u/BioTurboNick)\
**Replies:** 3\
**Last updated:** [April 29, 2020, 4:51am UTC](https://discourse.julialang.org/t/makie-scene-wait-for-input/28860 "2020-04-29T04:51:31Z")

</div>

I want a loop using Makie where: scene rendered user input collected user terminates input (keys entered, window closed) advances to next scene What would I need to do to implement the wait-then-advance-on-input par…

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

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