# Latest

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

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

**Page:** 1829

---

## [\[ANN\] PkgDashboards](https://discourse.julialang.org/t/ann-pkgdashboards/34302)

<div class="topic-metadata">

**Author:** [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)\
**Replies:** 15\
**Last updated:** [February 10, 2020, 8:05am UTC](https://discourse.julialang.org/t/ann-pkgdashboards/34302 "2020-02-10T08:05:46Z")

</div>

PkgDashboards.jl helps you create a markdown page or html page with all your badges from travis, Codecov, PkgEval, commit activity, stars and stars over time graphs. The exported functions are dashboard(target\_users; …

---

## [Reuse \`Tuple\` \`convert\` mechanism in another parametric type](https://discourse.julialang.org/t/reuse-tuple-convert-mechanism-in-another-parametric-type/34353)

<div class="topic-metadata">

**Author:** [@goretkin](https://discourse.julialang.org/u/goretkin)\
**Replies:** 4\
**Last updated:** [February 10, 2020, 7:38am UTC](https://discourse.julialang.org/t/reuse-tuple-convert-mechanism-in-another-parametric-type/34353 "2020-02-10T07:38:31Z")

</div>

Tuples have this nice behavior: z8 = (Int8(0),Int8(0)) z64 = (0,0) a8 = Vector{Tuple{Int8, Int8}}() a64 = Vector{Tuple{Int64, Int64}}() # these all work push!(a8, z8) push!(a64, z64) push!(a8, z64) push!(a64, z8) At …

---

## [In Zygote, why (model)-\>... in gradient](https://discourse.julialang.org/t/in-zygote-why-model-in-gradient/34367)

<div class="topic-metadata">

**Author:** [@jaynick](https://discourse.julialang.org/u/jaynick)\
**Replies:** 4\
**Last updated:** [February 10, 2020, 6:16am UTC](https://discourse.julialang.org/t/in-zygote-why-model-in-gradient/34367 "2020-02-10T06:16:23Z")

</div>

In this (helpful!) post, https://kiranshila.com/index.php/2020/02/04/teaching-myself-machine-learning-with-julia-part-1/ The (zygote) gradient call is g = gradient(model -\> mse(model.(x),y), model) I tried instead…

---

## [Innocent looking optimization of the forward pass causes performance cliff in gradient calculation with Zygote.jl v0.4.7](https://discourse.julialang.org/t/innocent-looking-optimization-of-the-forward-pass-causes-performance-cliff-in-gradient-calculation-with-zygote-jl-v0-4-7/34188)

<div class="topic-metadata">

**Author:** [@Azamat](https://discourse.julialang.org/u/Azamat)\
**Replies:** 5\
**Last updated:** [February 5, 2020, 3:50pm UTC](https://discourse.julialang.org/t/innocent-looking-optimization-of-the-forward-pass-causes-performance-cliff-in-gradient-calculation-with-zygote-jl-v0-4-7/34188 "2020-02-05T15:50:17Z")

</div>

Consider the following code example: using LinearAlgebra using Flux using BenchmarkTools function diagmatmul(m, xs) ys = m.(xs) zs = diag.((first(ys)',) .\* ys) return sum(sum(zs)) end function colwise(m, x…

---

## [Gradient of the einsum not working with CuArrays, when it's output is assigned to the field of a mutable struct](https://discourse.julialang.org/t/gradient-of-the-einsum-not-working-with-cuarrays-when-its-output-is-assigned-to-the-field-of-a-mutable-struct/34396)

<div class="topic-metadata">

**Author:** [@Azamat](https://discourse.julialang.org/u/Azamat)\
**Replies:** 0\
**Last updated:** [February 10, 2020, 3:00am UTC](https://discourse.julialang.org/t/gradient-of-the-einsum-not-working-with-cuarrays-when-its-output-is-assigned-to-the-field-of-a-mutable-struct/34396 "2020-02-10T03:00:46Z")

</div>

I’m getting a strange error when using OMEinsum, CuArrays and Zygote together. Here is the MRE: using CuArrays using Zygote using OMEinsum mutable struct S{T} c::T end function f(α, s, H) @ein s.c\[d,b\] := α\[t,b\]…

---

## [Julia v1.4.0-rc1 is now available](https://discourse.julialang.org/t/julia-v1-4-0-rc1-is-now-available/33715)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 36\
**Last updated:** [February 10, 2020, 12:02am UTC](https://discourse.julialang.org/t/julia-v1-4-0-rc1-is-now-available/33715 "2020-02-10T00:02:57Z")

</div>

The first release candidate for Julia v1.4.0 is now available. You can get binaries at Download Julia for Linux (i686, x86-64, ARMv7, AArch64), macOS, FreeBSD (x86-64), and Windows (32-, 64-bit). Check out the NEWS file …

---

## [What does this error message mean? From Convex.jl: Cannot \`convert\` an object of type EqConstraint](https://discourse.julialang.org/t/what-does-this-error-message-mean-from-convex-jl-cannot-convert-an-object-of-type-eqconstraint/34384)

<div class="topic-metadata">

**Author:** [@kai](https://discourse.julialang.org/u/kai)\
**Replies:** 2\
**Last updated:** [February 9, 2020, 10:50pm UTC](https://discourse.julialang.org/t/what-does-this-error-message-mean-from-convex-jl-cannot-convert-an-object-of-type-eqconstraint/34384 "2020-02-09T22:50:19Z")

</div>

Hi, I ran into the following error and could not find help from reading the documentation. The error is MethodError: Cannot \`convert\` an object of type EqConstraint to an object of type Array{Constraint,N} where N My …

---

## [\[ANN\] OwnTime - Gives alternate view of profiling data. Seeking feedback](https://discourse.julialang.org/t/ann-owntime-gives-alternate-view-of-profiling-data-seeking-feedback/34095)

<div class="topic-metadata">

**Author:** [@DevJac](https://discourse.julialang.org/u/DevJac)\
**Replies:** 7\
**Last updated:** [February 9, 2020, 8:41pm UTC](https://discourse.julialang.org/t/ann-owntime-gives-alternate-view-of-profiling-data-seeking-feedback/34095 "2020-02-09T20:41:03Z")

</div>

I am accustomed to seeing profiling data in tools like “py-spy” with “Own Time” and “Total Time” views. Julia doesn’t have this (?), so I wrote my own code for it and have made it into a package. The README explains ho…

---

## [How can I convert this type of dictionary into a dataframe?](https://discourse.julialang.org/t/how-can-i-convert-this-type-of-dictionary-into-a-dataframe/34321)

<div class="topic-metadata">

**Author:** [@Aizzaac](https://discourse.julialang.org/u/Aizzaac)\
**Replies:** 12\
**Last updated:** [February 9, 2020, 7:13pm UTC](https://discourse.julialang.org/t/how-can-i-convert-this-type-of-dictionary-into-a-dataframe/34321 "2020-02-09T19:13:08Z")

</div>

Hi I have used a Python SDK to extract data from Splunk. In the image you can see an example of the output. I want to send that information to a DataFrame. Any clues will be helpful. Thank yoi

---

## [What is the correct way to iterate over "Kroneker Product" like terms?](https://discourse.julialang.org/t/what-is-the-correct-way-to-iterate-over-kroneker-product-like-terms/34363)

<div class="topic-metadata">

**Author:** [@ArjunNarayanan](https://discourse.julialang.org/u/ArjunNarayanan)\
**Replies:** 2\
**Last updated:** [February 9, 2020, 5:48pm UTC](https://discourse.julialang.org/t/what-is-the-correct-way-to-iterate-over-kroneker-product-like-terms/34363 "2020-02-09T17:48:29Z")

</div>

I would like to write functions that iterate over objects that have a “Kroneker Product” like structure. Consider for example: using StaticArrays struct MyKronekerType{D,N,T} data::SVector{T,N} function MyKron…

---

## [Calling Mosek on Convex.jl](https://discourse.julialang.org/t/calling-mosek-on-convex-jl/34378)

<div class="topic-metadata">

**Author:** [@martincornejo](https://discourse.julialang.org/u/martincornejo)\
**Replies:** 3\
**Last updated:** [February 9, 2020, 4:09pm UTC](https://discourse.julialang.org/t/calling-mosek-on-convex-jl/34378 "2020-02-09T16:09:09Z")

</div>

I get the following error when trying to solve an SDP problem with Mosek using Convex, Mosek ... (problem formulation) solve!(problem, MosekSolver()) ERROR: UndefVarError: MosekSolver not defined

---

## [Function to create concretetype for abstracttype](https://discourse.julialang.org/t/function-to-create-concretetype-for-abstracttype/34354)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 6\
**Last updated:** [February 9, 2020, 2:46pm UTC](https://discourse.julialang.org/t/function-to-create-concretetype-for-abstracttype/34354 "2020-02-09T14:46:13Z")

</div>

Advanced Question. Background: For every abstract type in julia I can construct a respective concretetype like struct MyConcreteType{A, B, C} \<: MyAbstractType{A, B, C} end This correspondence is always possible, i.e.…

---

## [Save kwargs in struct field to be used later in function calls](https://discourse.julialang.org/t/save-kwargs-in-struct-field-to-be-used-later-in-function-calls/34376)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 3\
**Last updated:** [February 9, 2020, 1:48pm UTC](https://discourse.julialang.org/t/save-kwargs-in-struct-field-to-be-used-later-in-function-calls/34376 "2020-02-09T13:48:07Z")

</div>

I have a struct Foo with a field that contains keyword arguments given at construction. I want to then be able to call a function with keyword arguments recovered from Foo: struct Foo kwargs end Foo(;kwargs...) = F…

---

## [Is Manifest.toml "write only"?](https://discourse.julialang.org/t/is-manifest-toml-write-only/34368)

<div class="topic-metadata">

**Author:** [@jaynick](https://discourse.julialang.org/u/jaynick)\
**Replies:** 2\
**Last updated:** [February 9, 2020, 12:57pm UTC](https://discourse.julialang.org/t/is-manifest-toml-write-only/34368 "2020-02-09T12:57:18Z")

</div>

Starting from .toml files mentioned in a bug post, I did a Pkg.activate(".") and Pkg.instantiate(). It added the packages mentioned in Project.toml but not the ones in Manifest.toml. Further (this surprised me), when…

---

## [DataFrames.jl: keep group by result in every row](https://discourse.julialang.org/t/dataframes-jl-keep-group-by-result-in-every-row/34110)

<div class="topic-metadata">

**Author:** [@altre](https://discourse.julialang.org/u/altre)\
**Replies:** 4\
**Last updated:** [February 9, 2020, 12:24pm UTC](https://discourse.julialang.org/t/dataframes-jl-keep-group-by-result-in-every-row/34110 "2020-02-09T12:24:05Z")

</div>

Using R data.table I’m used to saving the result of a group by aggregation in each row of each group, e.g.: \> d = data.table(a=c(1,2,3,4), b=c(1,1,2,2)) \> d a b 1: 1 1 2: 2 1 3: 3 2 4: 4 2 \> d\[,s:=sum(a), b\] \> d a…

---

## [\[ANN\] FilteredGroupbyMacro.jl](https://discourse.julialang.org/t/ann-filteredgroupbymacro-jl/34373)

<div class="topic-metadata">

**Author:** [@jules](https://discourse.julialang.org/u/jules)\
**Replies:** 0\
**Last updated:** [February 9, 2020, 12:18pm UTC](https://discourse.julialang.org/t/ann-filteredgroupbymacro-jl/34373 "2020-02-09T12:18:22Z")

</div>

This is a really simple package (my first macro package) that does only one thing. It exports the macro @by which gives you the combination of filtering and split-apply-combine approach of R’s data.table (or something ap…

---

## [VSCode LOAD\_PATH discussion](https://discourse.julialang.org/t/vscode-load-path-discussion/34085)

<div class="topic-metadata">

**Author:** [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)\
**Replies:** 40\
**Last updated:** [February 9, 2020, 6:53am UTC](https://discourse.julialang.org/t/vscode-load-path-discussion/34085 "2020-02-09T06:53:23Z")

</div>

That is a tricky issue that interacts with a lot of other stuff. In particular, we are still not done fixing our general environment handling story, and we need to coordinate a fix for the LOAD\_PATH issue with the other…

---

## [How to kill thread?](https://discourse.julialang.org/t/how-to-kill-thread/34236)

<div class="topic-metadata">

**Author:** [@Sijun](https://discourse.julialang.org/u/Sijun)\
**Replies:** 9\
**Last updated:** [February 9, 2020, 1:43am UTC](https://discourse.julialang.org/t/how-to-kill-thread/34236 "2020-02-09T01:43:16Z")

</div>

Is there a way to kill a thread spawned by Threads.@spawn macro?

---

## [JuliaLang is now part of Github sponsors](https://discourse.julialang.org/t/julialang-is-now-part-of-github-sponsors/34106)

<div class="topic-metadata">

**Author:** [@viralbshah](https://discourse.julialang.org/u/viralbshah)\
**Replies:** 6\
**Last updated:** [February 9, 2020, 12:13am UTC](https://discourse.julialang.org/t/julialang-is-now-part-of-github-sponsors/34106 "2020-02-09T00:13:27Z")

</div>

Hello all, JuliaLang is now officially part of Github Sponsors. We’ve already have a couple of folks sign up! Do spread the word. https://github.com/sponsors/JuliaLang For developer orgs, You can enable the funding l…

---

## [How to convert namedarray to dataframe while preserving index/column names](https://discourse.julialang.org/t/how-to-convert-namedarray-to-dataframe-while-preserving-index-column-names/34357)

<div class="topic-metadata">

**Author:** [@Julia1](https://discourse.julialang.org/u/Julia1)\
**Replies:** 1\
**Last updated:** [February 8, 2020, 10:45pm UTC](https://discourse.julialang.org/t/how-to-convert-namedarray-to-dataframe-while-preserving-index-column-names/34357 "2020-02-08T22:45:41Z")

</div>

Hi, I’m trying to make a pivot table in Julia that aggregates the count of something. Freqtable is perfect, except that it returns this namedarray format, and when I use to convert back to a dataframe, the index and colu…

---

## [FieldProperties.jl](https://discourse.julialang.org/t/fieldproperties-jl/34356)

<div class="topic-metadata">

**Author:** [@Zach\_Christensen](https://discourse.julialang.org/u/Zach_Christensen)\
**Replies:** 0\
**Last updated:** [February 8, 2020, 8:51pm UTC](https://discourse.julialang.org/t/fieldproperties-jl/34356 "2020-02-08T20:51:49Z")

</div>

FieldProperties.jl helps in documenting, creating, and assigning properties. This package was developed because I had a need to create a consistent but generic interface for many different types. Documentation goes over …

---

## [Learning Julia on exercism.io through practice problems and free mentorship](https://discourse.julialang.org/t/learning-julia-on-exercism-io-through-practice-problems-and-free-mentorship/19457)

<div class="topic-metadata">

**Author:** [@SaschaMann](https://discourse.julialang.org/u/SaschaMann)\
**Replies:** 14\
**Last updated:** [February 8, 2020, 12:12pm UTC](https://discourse.julialang.org/t/learning-julia-on-exercism-io-through-practice-problems-and-free-mentorship/19457 "2020-02-08T12:12:57Z")

</div>

Hey everyone, Exercism is a platform designed to help people improve their coding skills through practice and mentorship. It relaunched a few months ago with a new mentoring feature. The Julia track has since grown sig…

---

## [How to make Optim's optimize work for scalars](https://discourse.julialang.org/t/how-to-make-optims-optimize-work-for-scalars/34343)

<div class="topic-metadata">

**Author:** [@compleat](https://discourse.julialang.org/u/compleat)\
**Replies:** 3\
**Last updated:** [February 8, 2020, 1:16pm UTC](https://discourse.julialang.org/t/how-to-make-optims-optimize-work-for-scalars/34343 "2020-02-08T13:16:30Z")

</div>

In the interest of user-friendliness, would anyone know a way to overload ‘optimize’ to work conveniently for scalar input without crashing? \[please note I am not asking for opinions as to how good/bad an idea it would …

---

## [Embed Matlab function files in Julia](https://discourse.julialang.org/t/embed-matlab-function-files-in-julia/34312)

<div class="topic-metadata">

**Author:** [@uwechsler](https://discourse.julialang.org/u/uwechsler)\
**Replies:** 3\
**Last updated:** [February 8, 2020, 1:13pm UTC](https://discourse.julialang.org/t/embed-matlab-function-files-in-julia/34312 "2020-02-08T13:13:27Z")

</div>

I would like to call some custom Matlab functions in julia which are defined in separate .m file. As MVP, consider the file Cps.m which contains the following code function C = Cps(T) % solid maltodextrin % from Jakob…

---

## [About NaN, 0/0 and false](https://discourse.julialang.org/t/about-nan-0-0-and-false/34272)

<div class="topic-metadata">

**Author:** [@aerdely](https://discourse.julialang.org/u/aerdely)\
**Replies:** 21\
**Last updated:** [February 8, 2020, 8:12am UTC](https://discourse.julialang.org/t/about-nan-0-0-and-false/34272 "2020-02-08T08:12:57Z")

</div>

Why… NaN\*(0/0)\*false gives 0.0, (0/0)\*NaN\*false gives -0.0, and: false\*(0/0)\*NaN false\*NaN\*(0/0) NaN\*false\*(0/0) (0/0)\*false\*NaN all give NaN? :thinking: Because changing false by true we get always the same …

---

## [Software engineer positions on CliMA project at Caltech](https://discourse.julialang.org/t/software-engineer-positions-on-clima-project-at-caltech/34322)

<div class="topic-metadata">

**Author:** [@simonbyrne](https://discourse.julialang.org/u/simonbyrne)\
**Replies:** 3\
**Last updated:** [February 7, 2020, 11:43pm UTC](https://discourse.julialang.org/t/software-engineer-positions-on-clima-project-at-caltech/34322 "2020-02-07T23:43:05Z")

</div>

Do you love translating mathematical concepts into code? Do you find shaving microseconds off your function calls satisfying? Are you tenacious in tracking down obscure bugs? Can you build high-level abstractions without…

---

## [How would I write this Pandas column filter code in Julia?](https://discourse.julialang.org/t/how-would-i-write-this-pandas-column-filter-code-in-julia/34310)

<div class="topic-metadata">

**Author:** [@Julia1](https://discourse.julialang.org/u/Julia1)\
**Replies:** 5\
**Last updated:** [February 8, 2020, 1:54am UTC](https://discourse.julialang.org/t/how-would-i-write-this-pandas-column-filter-code-in-julia/34310 "2020-02-08T01:54:03Z")

</div>

Hi how’s t going? I’ve searched all over the place for regular expression column filtering in Julia, but I can’t seem to figure it out. Say you have a variable regex that contains a regular expression string. This wor…

---

## [Subtyping with Parametric Abstract Types](https://discourse.julialang.org/t/subtyping-with-parametric-abstract-types/34314)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 4\
**Last updated:** [February 8, 2020, 12:08am UTC](https://discourse.julialang.org/t/subtyping-with-parametric-abstract-types/34314 "2020-02-08T00:08:54Z")

</div>

I don’t understand why struct MultiDist{D \<: UnivariateDistribution{S \<: ValueSupport}} \<: MultivariateDistribution{S \<: ValueSupport} dist::D n::Int end returns that S in undefined. I also tried struct MultiD…

---

## [Pre-allocating outputs, inplace functions and performance](https://discourse.julialang.org/t/pre-allocating-outputs-inplace-functions-and-performance/34271)

<div class="topic-metadata">

**Author:** [@cosmia](https://discourse.julialang.org/u/cosmia)\
**Replies:** 13\
**Last updated:** [February 7, 2020, 10:50pm UTC](https://discourse.julialang.org/t/pre-allocating-outputs-inplace-functions-and-performance/34271 "2020-02-07T22:50:51Z")

</div>

Hi all, I’m trying to understand the Pre-allocating outputs section in the performance tips of the docs. I have a code that basically does the following: function test(x, a) if a == 1 res = x .^ 2 else …

---

## [How would you implement or replace Python-like class attributes?](https://discourse.julialang.org/t/how-would-you-implement-or-replace-python-like-class-attributes/34324)

<div class="topic-metadata">

**Author:** [@Benny](https://discourse.julialang.org/u/Benny)\
**Replies:** 1\
**Last updated:** [February 7, 2020, 9:49pm UTC](https://discourse.julialang.org/t/how-would-you-implement-or-replace-python-like-class-attributes/34324 "2020-02-07T21:49:50Z")

</div>

I don’t expect this to be useful in practice, but what would be the more elegant way to associate mutable values with a type, analogous to class attributes in Python? I thought of this question after reading an example m…

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

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