# Latest

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

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

**Page:** 1484

---

## [Flux: Locally connected layer performance](https://discourse.julialang.org/t/flux-locally-connected-layer-performance/55711)

<div class="topic-metadata">

**Author:** [@johnbb](https://discourse.julialang.org/u/johnbb)\
**Replies:** 2\
**Last updated:** [February 21, 2021, 7:34pm UTC](https://discourse.julialang.org/t/flux-locally-connected-layer-performance/55711 "2021-02-21T19:34:20Z")

</div>

I have tried to implement a 2D locally connected layer (convolution with non-shared weights) in Flux restricted to filter size (1,1) only. That is, the linear combinations/convolutions are only over the (3rd) channel/var…

---

## [\[ANN\] EarlyStopping.jl 0.1.0: For terminating iterative algorithms](https://discourse.julialang.org/t/ann-earlystopping-jl-0-1-0-for-terminating-iterative-algorithms/55740)

<div class="topic-metadata">

**Author:** [@ablaom](https://discourse.julialang.org/u/ablaom)\
**Replies:** 0\
**Last updated:** [February 21, 2021, 8:51pm UTC](https://discourse.julialang.org/t/ann-earlystopping-jl-0-1-0-for-terminating-iterative-algorithms/55740 "2021-02-21T20:51:58Z")

</div>

The EarlyStopper objects defined in EarlyStopping.jl consume a sequence of numbers called losses generated by some external algorithm - generally the training loss or out-of-sample loss of some iterative statistical mode…

---

## [View + LinearAlgebra.BLAS.gemm!](https://discourse.julialang.org/t/view-linearalgebra-blas-gemm/55720)

<div class="topic-metadata">

**Author:** [@PharmCat](https://discourse.julialang.org/u/PharmCat)\
**Replies:** 3\
**Last updated:** [February 21, 2021, 8:37pm UTC](https://discourse.julialang.org/t/view-linearalgebra-blas-gemm/55720 "2021-02-21T20:37:13Z")

</div>

try to use: LinearAlgebra.BLAS.gemm!('T', 'N', one(T), view(mx, block, :), A, one(T), B) where block - Vector{Int} and have: ERROR: ArgumentError: strides is invalid for SubArrays with indices of type Vector{Int64} …

---

## [Documentation suggestion - noteworthy differences to other languages page](https://discourse.julialang.org/t/documentation-suggestion-noteworthy-differences-to-other-languages-page/55734)

<div class="topic-metadata">

**Author:** [@billtubbs](https://discourse.julialang.org/u/billtubbs)\
**Replies:** 0\
**Last updated:** [February 21, 2021, 6:46pm UTC](https://discourse.julialang.org/t/documentation-suggestion-noteworthy-differences-to-other-languages-page/55734 "2021-02-21T18:46:47Z")

</div>

I have a suggested change to the Noteworthy differences from Python page in the documentation but thought a discussion would be appropriate first since I’m not a Julia expert. For me, one of the key differences between …

---

## [Make broadcasted function return Matrix instead of Array of Arrays](https://discourse.julialang.org/t/make-broadcasted-function-return-matrix-instead-of-array-of-arrays/55729)

<div class="topic-metadata">

**Author:** [@Uroc327](https://discourse.julialang.org/u/Uroc327)\
**Replies:** 2\
**Last updated:** [February 21, 2021, 5:52pm UTC](https://discourse.julialang.org/t/make-broadcasted-function-return-matrix-instead-of-array-of-arrays/55729 "2021-02-21T17:52:49Z")

</div>

I have a function returning a (fixed and known-length) array for some input: function bitlevels(n, x) l = reverse(digits(x, base=2)) \[repeat(\[0\], n - length(l)); l\] end When broadcasting this function to a vect…

---

## [Problem with huge number of memory allocations in for loops](https://discourse.julialang.org/t/problem-with-huge-number-of-memory-allocations-in-for-loops/55714)

<div class="topic-metadata">

**Author:** [@spenam](https://discourse.julialang.org/u/spenam)\
**Replies:** 11\
**Last updated:** [February 21, 2021, 5:52pm UTC](https://discourse.julialang.org/t/problem-with-huge-number-of-memory-allocations-in-for-loops/55714 "2021-02-21T17:52:21Z")

</div>

Hello, I am just trying to migrate from Python/C++ to Julia, so I am just starting to get familiar with the Julia syntax. I wrote a code for doing some numerical integrations in nested for loops, the very same code perfo…

---

## [Map! on Base.generator](https://discourse.julialang.org/t/map-on-base-generator/55713)

<div class="topic-metadata">

**Author:** [@Shuhua](https://discourse.julialang.org/u/Shuhua)\
**Replies:** 8\
**Last updated:** [February 21, 2021, 4:08pm UTC](https://discourse.julialang.org/t/map-on-base-generator/55713 "2021-02-21T16:08:54Z")

</div>

Suppose that I want to get the maximum of each column of a matrix (the actual task is of course a more complex function). julia\> x = randn(3, 4); julia\> map(maximum, eachcol(x)) 4-element Array{Float64,1}: 0.189834692…

---

## [How to make CUDA.jl work in WSL2](https://discourse.julialang.org/t/how-to-make-cuda-jl-work-in-wsl2/42474)

<div class="topic-metadata">

**Author:** [@zwwi](https://discourse.julialang.org/u/zwwi)\
**Replies:** 13\
**Last updated:** [February 21, 2021, 2:30pm UTC](https://discourse.julialang.org/t/how-to-make-cuda-jl-work-in-wsl2/42474 "2021-02-21T14:30:34Z")

</div>

I am using the WSL2 (Ubuntu) with version 4.19.121-microsoft-standard, and have installed the CUDA driver provided here: NVIDIA Drivers for CUDA on WSL. I also have installed nvidia-cuda-toolkit. I’m curious to know ho…

---

## [Recommended development workflow in VSCode](https://discourse.julialang.org/t/recommended-development-workflow-in-vscode/55348)

<div class="topic-metadata">

**Author:** [@marty0801](https://discourse.julialang.org/u/marty0801)\
**Replies:** 12\
**Last updated:** [February 21, 2021, 1:11pm UTC](https://discourse.julialang.org/t/recommended-development-workflow-in-vscode/55348 "2021-02-21T13:11:12Z")

</div>

I’m trying to move from Juno to VSCode, but I’m having trouble getting introspection to work well with my code setup. In Juno, I made local modules available by push!ing to LOAD\_PATH. This post indicates that this is not…

---

## [Weird IJulia issue \[Help! I really \]](https://discourse.julialang.org/t/weird-ijulia-issue-help-i-really/54877)

<div class="topic-metadata">

**Author:** [@Jojo\_Dad](https://discourse.julialang.org/u/Jojo_Dad)\
**Replies:** 5\
**Last updated:** [February 21, 2021, 10:57am UTC](https://discourse.julialang.org/t/weird-ijulia-issue-help-i-really/54877 "2021-02-21T10:57:55Z")

</div>

I have a weird IJulia issue. I have just installed the newest version of Julia (I tried both 1.5.3 and 1.6.0-rc1, they have the same issue). I am stuck in this loop: /Users/reiner\_hase/.julia/conda/3/bin/jupyter noteboo…

---

## [Discrete inverse Laplace transform (constrains and regularisation)](https://discourse.julialang.org/t/discrete-inverse-laplace-transform-constrains-and-regularisation/55580)

<div class="topic-metadata">

**Author:** [@MatFi](https://discourse.julialang.org/u/MatFi)\
**Replies:** 8\
**Last updated:** [February 21, 2021, 10:44am UTC](https://discourse.julialang.org/t/discrete-inverse-laplace-transform-constrains-and-regularisation/55580 "2021-02-21T10:44:31Z")

</div>

I want to conduct an Inverse Laplace Transform (ILT) on sampled data. I am aware of InverseLaplace.jl, but sadly it doesn’t work well on discrete (sampled) data due to a missing interface and regularization. So I decide…

---

## [How to use Manifold projection in differential equations jl](https://discourse.julialang.org/t/how-to-use-manifold-projection-in-differential-equations-jl/55681)

<div class="topic-metadata">

**Author:** [@manvibharat](https://discourse.julialang.org/u/manvibharat)\
**Replies:** 3\
**Last updated:** [February 21, 2021, 10:43am UTC](https://discourse.julialang.org/t/how-to-use-manifold-projection-in-differential-equations-jl/55681 "2021-02-21T10:43:55Z")

</div>

Hi all. I am trying to simulate a geometric control which we proposed in our paper. Since it involves a differential equation evolving on a manifold. I thought of using manifold projection as mentioned in Callback Librar…

---

## [Error in initial\_population of Evolutionary.jl](https://discourse.julialang.org/t/error-in-initial-population-of-evolutionary-jl/55610)

<div class="topic-metadata">

**Author:** [@umbe](https://discourse.julialang.org/u/umbe)\
**Replies:** 3\
**Last updated:** [February 21, 2021, 9:34am UTC](https://discourse.julialang.org/t/error-in-initial-population-of-evolutionary-jl/55610 "2021-02-21T09:34:01Z")

</div>

Hello everybody, I’m having a weird issue using the package Evolutionary.jl. I tried to write a minimal example of my problem but unluckily, being too much simplified, the issue does not appear. Anyway, I’ll try to exp…

---

## [Announcing ygg](https://discourse.julialang.org/t/announcing-ygg/54687)

<div class="topic-metadata">

**Author:** [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Replies:** 11\
**Last updated:** [February 21, 2021, 6:26am UTC](https://discourse.julialang.org/t/announcing-ygg/54687 "2021-02-21T06:26:18Z")

</div>

ygg ygg is a simple installer for using BinaryBuilder.jl built binaries from Yggdrasil outside of Julia. Installing ygg is simple (see the README), and then installing binaries is even simpler. Here is an example of addi…

---

## [Is this expected \`hash\`ing behaviour?\`\`\`julia&gt; a = \[rand(0:1, 200) for i in 1:](https://discourse.julialang.org/t/is-this-expected-hash-ing-behaviour-julia-gt-a-rand-0-1-200-for-i-in-1/55510)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 1\
**Last updated:** [February 21, 2021, 4:38am UTC](https://discourse.julialang.org/t/is-this-expected-hash-ing-behaviour-julia-gt-a-rand-0-1-200-for-i-in-1/55510 "2021-02-21T04:38:35Z")

</div>

Is this expected hashing behaviour? julia&gt; a = \[rand(0:1, 200) for i in 1:10000\] julia&gt; b = deepcopy(a) julia&gt; a\[1\]\[1\] = 2 julia&gt; hash(a) == hash(b) true It seems to be different with smaller vectors: juli…

---

## [Can we have a unified LaTex output interface for StatsKit?](https://discourse.julialang.org/t/can-we-have-a-unified-latex-output-interface-for-statskit/55695)

<div class="topic-metadata">

**Author:** [@Yifan\_Liu](https://discourse.julialang.org/u/Yifan_Liu)\
**Replies:** 5\
**Last updated:** [February 21, 2021, 2:04am UTC](https://discourse.julialang.org/t/can-we-have-a-unified-latex-output-interface-for-statskit/55695 "2021-02-21T02:04:50Z")

</div>

It would be great if we could have a unified LaTex output interface for the packages in StatsKit, so we can conveniently convert tabular data, statistical test results, and regression results into LaTex.

---

## [Allowing a preexisting vector to contain missings later on](https://discourse.julialang.org/t/allowing-a-preexisting-vector-to-contain-missings-later-on/55704)

<div class="topic-metadata">

**Author:** [@askvorts](https://discourse.julialang.org/u/askvorts)\
**Replies:** 7\
**Last updated:** [February 21, 2021, 2:01am UTC](https://discourse.julialang.org/t/allowing-a-preexisting-vector-to-contain-missings-later-on/55704 "2021-02-21T02:01:27Z")

</div>

Following A = \[1.0, 2.0\] A = Union{Float64,Missing}\[1.0, 2.0\] A\[1\] = missing # Union{Missing, Float64}\[missing, 2.0\] tried B = \[1.0, 2.0\] missB = Union{Float64,Missing}B # errors How may I accomplish …

---

## [Read large stream from STDIN](https://discourse.julialang.org/t/read-large-stream-from-stdin/55627)

<div class="topic-metadata">

**Author:** [@tferic](https://discourse.julialang.org/u/tferic)\
**Replies:** 5\
**Last updated:** [February 20, 2021, 9:38pm UTC](https://discourse.julialang.org/t/read-large-stream-from-stdin/55627 "2021-02-20T21:38:25Z")

</div>

Hi I would like to use Julia to process large logfiles piped into STDIN, in order to create reports. The amount of data is too big to fit into RAM, so I need to process every line by line while reading the stream of da…

---

## [\[MathOptFormat.jl\] Error when reading MPS file: objective functions with constant terms](https://discourse.julialang.org/t/mathoptformat-jl-error-when-reading-mps-file-objective-functions-with-constant-terms/55683)

<div class="topic-metadata">

**Author:** [@hustkisas](https://discourse.julialang.org/u/hustkisas)\
**Replies:** 1\
**Last updated:** [February 20, 2021, 9:31pm UTC](https://discourse.julialang.org/t/mathoptformat-jl-error-when-reading-mps-file-objective-functions-with-constant-terms/55683 "2021-02-20T21:31:21Z")

</div>

The objective function of a math programming problem usually does not have constant terms. But occasionally, MILP models processed by the solvers (CPLEX in this case) have constants in objective functions. When JuMP.read…

---

## [Interesting NASA "Language-Comparison" repository](https://discourse.julialang.org/t/interesting-nasa-language-comparison-repository/31356)

<div class="topic-metadata">

**Author:** [@GregVernon](https://discourse.julialang.org/u/GregVernon)\
**Replies:** 29\
**Last updated:** [February 20, 2021, 9:30pm UTC](https://discourse.julialang.org/t/interesting-nasa-language-comparison-repository/31356 "2021-02-20T21:30:00Z")

</div>

I came across this GitHub repository the other day, discovered it within the troves of NASA’s software catalog – the repository’s entry on the catalog is here. I thought this might be useful for Julia novices. Basic C…

---

## [How to use zerocorr() while creating a formula?](https://discourse.julialang.org/t/how-to-use-zerocorr-while-creating-a-formula/54458)

<div class="topic-metadata">

**Author:** [@lisovyk](https://discourse.julialang.org/u/lisovyk)\
**Replies:** 1\
**Last updated:** [February 20, 2021, 8:02pm UTC](https://discourse.julialang.org/t/how-to-use-zerocorr-while-creating-a-formula/54458 "2021-02-20T20:02:22Z")

</div>

I’m passing variables to put into formula in Julia from R. The way I construct formula is such: effects = Symbol.(\["asd","sdf","dfg"\]) effects = :(+$(effects...)) dep\_var = Symbol("depend\_var") julia\> fm = @eval @formu…

---

## [Documentation for shell mode?](https://discourse.julialang.org/t/documentation-for-shell-mode/55564)

<div class="topic-metadata">

**Author:** [@DanielIngraham](https://discourse.julialang.org/u/DanielIngraham)\
**Replies:** 3\
**Last updated:** [February 20, 2021, 7:45pm UTC](https://discourse.julialang.org/t/documentation-for-shell-mode/55564 "2021-02-20T19:45:20Z")

</div>

I really like the REPL’s shell mode (the thing you get after typing ;). But I struggle with understanding which features of my normal $SHELL are available, and which don’t work. I’ve read the official docs, but I can’t f…

---

## [Zygote gradient accumulation?](https://discourse.julialang.org/t/zygote-gradient-accumulation/55654)

<div class="topic-metadata">

**Author:** [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Replies:** 2\
**Last updated:** [February 20, 2021, 7:15pm UTC](https://discourse.julialang.org/t/zygote-gradient-accumulation/55654 "2021-02-20T19:15:24Z")

</div>

I ported a neural network from pytorch to Flux and now I am immediately out of GPU memory. I would like to better understand allocations in the backward pass in Flux/Zygote. Say I have the following toy function: func…

---

## [Performance tips on turning arrays into tuples](https://discourse.julialang.org/t/performance-tips-on-turning-arrays-into-tuples/55586)

<div class="topic-metadata">

**Author:** [@Ribeiro](https://discourse.julialang.org/u/Ribeiro)\
**Replies:** 15\
**Last updated:** [February 20, 2021, 6:27pm UTC](https://discourse.julialang.org/t/performance-tips-on-turning-arrays-into-tuples/55586 "2021-02-20T18:27:07Z")

</div>

Hello, I have some Vectors of StaticArrays and I use them in functions like this: fun(vec\[1\],vec\[2\],vec\[3\]) where each position of vec is a StaticArray. It would be helpful to do something like this: fun(vec\[1:3\]) f…

---

## [Constructor compilation error](https://discourse.julialang.org/t/constructor-compilation-error/55662)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 3\
**Last updated:** [February 20, 2021, 6:26pm UTC](https://discourse.julialang.org/t/constructor-compilation-error/55662 "2021-02-20T18:26:22Z")

</div>

I have this very naive custom data structure and an associated constructor: module MyModule struct MyStruct{TG,TF\<:AbstractFloat} g::TG Δt::TF end function MyStruct(g::TG, Δt::TF) where {TG, TF\<:AbstractFloat}…

---

## [Is there any way in Julia to perform string interpolation after the string is decl](https://discourse.julialang.org/t/is-there-any-way-in-julia-to-perform-string-interpolation-after-the-string-is-decl/55688)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 1\
**Last updated:** [February 20, 2021, 5:37pm UTC](https://discourse.julialang.org/t/is-there-any-way-in-julia-to-perform-string-interpolation-after-the-string-is-decl/55688 "2021-02-20T17:37:12Z")

</div>

Is there any way in Julia to perform string interpolation after the string is declared? For example in python I can do: &gt; x = "Hello, {}" &gt; x.format("friend") 'Hello, friend' So I can declare x with placeholders…

---

## [Modern CAS Programmable Calculators](https://discourse.julialang.org/t/modern-cas-programmable-calculators/55689)

<div class="topic-metadata">

**Author:** [@Leviset](https://discourse.julialang.org/u/Leviset)\
**Replies:** 0\
**Last updated:** [February 20, 2021, 5:09pm UTC](https://discourse.julialang.org/t/modern-cas-programmable-calculators/55689 "2021-02-20T17:09:43Z")

</div>

I’m a fairly new/old Julia Programmer. I’ve got decades experience with vintage programmable calculators. Does anyone know if any of the modern day calculators (TI-Nspire CX CAS, HP Prime, Casio FX-Prizm etc.) can have J…

---

## [Feature: Higher order type constructors](https://discourse.julialang.org/t/feature-higher-order-type-constructors/55456)

<div class="topic-metadata">

**Author:** [@bgroenks](https://discourse.julialang.org/u/bgroenks)\
**Replies:** 14\
**Last updated:** [February 20, 2021, 4:00pm UTC](https://discourse.julialang.org/t/feature-higher-order-type-constructors/55456 "2021-02-20T16:00:23Z")

</div>

Apologies if this has already been discussed before. I couldn’t find an issue on GitHub or a discussion on Discourse that seems to address this (though I feel like I remember seeing one before…). It would be really nice…

---

## [Converting - for loop to Cuarray dot syntax](https://discourse.julialang.org/t/converting-for-loop-to-cuarray-dot-syntax/55679)

<div class="topic-metadata">

**Author:** [@naviinkapoor](https://discourse.julialang.org/u/naviinkapoor)\
**Replies:** 8\
**Last updated:** [February 20, 2021, 3:59pm UTC](https://discourse.julialang.org/t/converting-for-loop-to-cuarray-dot-syntax/55679 "2021-02-20T15:59:37Z")

</div>

Hello Everyone, I need help to convert the below code to carry dot syntax From for i=1:j a\[i\] = a\[i\] + a\[i+j\] end I converted it to a\[1:j\].=a\[1:j\].+a\[1:j+j\] , but it is not working

---

## [How to avoid allocations when multiplying numbers with missings](https://discourse.julialang.org/t/how-to-avoid-allocations-when-multiplying-numbers-with-missings/55393)

<div class="topic-metadata">

**Author:** [@bgctw](https://discourse.julialang.org/u/bgctw)\
**Replies:** 15\
**Last updated:** [February 20, 2021, 3:50pm UTC](https://discourse.julialang.org/t/how-to-avoid-allocations-when-multiplying-numbers-with-missings/55393 "2021-02-20T15:50:27Z")

</div>

Coming from R I have a hard time to use missings and ensure type stability. I guess that the following allocations in multiplication of numbers also relate to this issue. How can I avoid the memory allocations in the fo…

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

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