# Latest

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

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

**Page:** 1258

---

## [How to write cpp codes to fetch the output with a custom type from julia code](https://discourse.julialang.org/t/how-to-write-cpp-codes-to-fetch-the-output-with-a-custom-type-from-julia-code/68633)

<div class="topic-metadata">

**Author:** [@feimeng93](https://discourse.julialang.org/u/feimeng93)\
**Replies:** 0\
**Last updated:** [September 23, 2021, 1:53pm UTC](https://discourse.julialang.org/t/how-to-write-cpp-codes-to-fetch-the-output-with-a-custom-type-from-julia-code/68633 "2021-09-23T13:53:18Z")

</div>

Dear all, I have gotten a result with a custom type “Array{Array{Polynomial{true,Float64},1},1}” from my julia code. But I fail to fetch it using my main c++ source code. Is there any solution? Many thanks in advance! …

---

## [Language for processing unstructured data](https://discourse.julialang.org/t/language-for-processing-unstructured-data/68646)

<div class="topic-metadata">

**Author:** [@neophytedave](https://discourse.julialang.org/u/neophytedave)\
**Replies:** 1\
**Last updated:** [September 24, 2021, 2:34am UTC](https://discourse.julialang.org/t/language-for-processing-unstructured-data/68646 "2021-09-24T02:34:05Z")

</div>

The subject line says it all.

---

## [How to call an element of a set?](https://discourse.julialang.org/t/how-to-call-an-element-of-a-set/68648)

<div class="topic-metadata">

**Author:** [@leon](https://discourse.julialang.org/u/leon)\
**Replies:** 9\
**Last updated:** [September 24, 2021, 1:38am UTC](https://discourse.julialang.org/t/how-to-call-an-element-of-a-set/68648 "2021-09-24T01:38:57Z")

</div>

Sorry for the very silly question. I’m trying to figure out how to call the elements of a set. For example in my below example, how do I get the first element, i.e., “Acg”? A = Set(\[“Acg”, “Bdc”, “HH”\]); I tried, A\[1\],…

---

## [Channel with sliding window buffer?](https://discourse.julialang.org/t/channel-with-sliding-window-buffer/68647)

<div class="topic-metadata">

**Author:** [@vshesh](https://discourse.julialang.org/u/vshesh)\
**Replies:** 0\
**Last updated:** [September 23, 2021, 8:16pm UTC](https://discourse.julialang.org/t/channel-with-sliding-window-buffer/68647 "2021-09-23T20:16:42Z")

</div>

Are there any versions of julia channels that do not block when they are full? I’m looking for a channel that will do a sliding window (so drop the front of the queue when adding something to the back if it’s full). Doe…

---

## [Error when trying to run /FluxML/model-zoo/vision/vae\_mnist/vae\_mnist.jl on newer versions of CUDA, Flux](https://discourse.julialang.org/t/error-when-trying-to-run-fluxml-model-zoo-vision-vae-mnist-vae-mnist-jl-on-newer-versions-of-cuda-flux/68300)

<div class="topic-metadata">

**Author:** [@tylerjthomas9](https://discourse.julialang.org/u/tylerjthomas9)\
**Replies:** 1\
**Last updated:** [September 24, 2021, 12:28am UTC](https://discourse.julialang.org/t/error-when-trying-to-run-fluxml-model-zoo-vision-vae-mnist-vae-mnist-jl-on-newer-versions-of-cuda-flux/68300 "2021-09-24T00:28:58Z")

</div>

I’m trying to run the file found here: https://github.com/FluxML/model-zoo/blob/master/vision/vae\_mnist/vae\_mnist.jl on newer versions of Flux, CUDA. CUDA = v3.4.2 Flux = v0.12.6 Do you know what could be causing erro…

---

## [Flattened data vs Flux.flatten layer](https://discourse.julialang.org/t/flattened-data-vs-flux-flatten-layer/68650)

<div class="topic-metadata">

**Author:** [@congUoM](https://discourse.julialang.org/u/congUoM)\
**Replies:** 2\
**Last updated:** [September 23, 2021, 11:40pm UTC](https://discourse.julialang.org/t/flattened-data-vs-flux-flatten-layer/68650 "2021-09-23T23:40:20Z")

</div>

Hi all, I am trying to use the following MLP model (for MNIST) in the model zoo as a template for my work, and I have this problem: https://github.com/FluxML/model-zoo/blob/master/vision/mlp\_mnist/mlp\_mnist.jl I remo…

---

## [Help implementing task parallelism in Julia](https://discourse.julialang.org/t/help-implementing-task-parallelism-in-julia/68545)

<div class="topic-metadata">

**Author:** [@adriano.vilela](https://discourse.julialang.org/u/adriano.vilela)\
**Replies:** 11\
**Last updated:** [September 23, 2021, 11:31pm UTC](https://discourse.julialang.org/t/help-implementing-task-parallelism-in-julia/68545 "2021-09-23T23:31:58Z")

</div>

Dear fellow Julians, I’m currently working on a project about using computer vision to monitor vast areas for wild fires. We currently have a working version of the software implemented in Python. The code is running on…

---

## [How can I calculate different vcov matrices after FixedEffectModels.jl?](https://discourse.julialang.org/t/how-can-i-calculate-different-vcov-matrices-after-fixedeffectmodels-jl/23200)

<div class="topic-metadata">

**Author:** [@flxho](https://discourse.julialang.org/u/flxho)\
**Replies:** 6\
**Last updated:** [September 23, 2021, 11:12pm UTC](https://discourse.julialang.org/t/how-can-i-calculate-different-vcov-matrices-after-fixedeffectmodels-jl/23200 "2021-09-23T23:12:27Z")

</div>

Imagine that for some model we calculate standard errors clustered on one dimension, e.g. state: using DataFrames, RDatasets, FixedEffectModels df = dataset("plm", "Cigar") df\[:StateCategorical\] = categorical(df\[:State…

---

## [Do faster optimization with Cbc solver in JuMP](https://discourse.julialang.org/t/do-faster-optimization-with-cbc-solver-in-jump/46276)

<div class="topic-metadata">

**Author:** [@Luis\_Tormo](https://discourse.julialang.org/u/Luis_Tormo)\
**Replies:** 6\
**Last updated:** [September 23, 2021, 11:00pm UTC](https://discourse.julialang.org/t/do-faster-optimization-with-cbc-solver-in-jump/46276 "2021-09-23T23:00:44Z")

</div>

I am trying to do an optimization of a MILP problem with Cbc solver but it is too slow. I know that with CPLEX it is much faster but I need to use Cbc. Does anyone know of a resource to get it? Maybe multi-threading?

---

## [Function sub typing of Functors](https://discourse.julialang.org/t/function-sub-typing-of-functors/68658)

<div class="topic-metadata">

**Author:** [@jdlara-berkeley](https://discourse.julialang.org/u/jdlara-berkeley)\
**Replies:** 1\
**Last updated:** [September 23, 2021, 10:55pm UTC](https://discourse.julialang.org/t/function-sub-typing-of-functors/68658 "2021-09-23T22:55:14Z")

</div>

When defining a functor should the struct be subtyped from Function? For instance struct foo \<: Function a b end function (functor::foo)(x, y) return functor.a\*x + functor.b\*y end or just is fine? struct…

---

## [Is it a good time to buy an Arm macbook to learn and play Julia?](https://discourse.julialang.org/t/is-it-a-good-time-to-buy-an-arm-macbook-to-learn-and-play-julia/59929)

<div class="topic-metadata">

**Author:** [@zfeng](https://discourse.julialang.org/u/zfeng)\
**Replies:** 12\
**Last updated:** [September 23, 2021, 10:51pm UTC](https://discourse.julialang.org/t/is-it-a-good-time-to-buy-an-arm-macbook-to-learn-and-play-julia/59929 "2021-09-23T22:51:04Z")

</div>

Hi, I’m a grad student who is very interested in Julia. Since my laptop is almost 6-year old and slow, I’m considering and looking forward to buying an apple-silicon MacBook as my major work device. However, aware of thi…

---

## [Algebra of Graphics Web Dashboard Code by Pietro Vertechi](https://discourse.julialang.org/t/algebra-of-graphics-web-dashboard-code-by-pietro-vertechi/68536)

<div class="topic-metadata">

**Author:** [@Brad\_Carman](https://discourse.julialang.org/u/Brad_Carman)\
**Replies:** 2\
**Last updated:** [September 23, 2021, 9:40pm UTC](https://discourse.julialang.org/t/algebra-of-graphics-web-dashboard-code-by-pietro-vertechi/68536 "2021-09-23T21:40:14Z")

</div>

The presentation/poster by Simon Danish at JuliaCon2021 shows a beautiful Algebra of Graphics Web Dashboard by Pietro Vertechi (Makie Showcases and future | Simon Danish | JuliaCon2021 - YouTube). Does anyone know where…

---

## [Why substituting "for loop" with direct assignment of Matrix worsen the performance time?](https://discourse.julialang.org/t/why-substituting-for-loop-with-direct-assignment-of-matrix-worsen-the-performance-time/68601)

<div class="topic-metadata">

**Author:** [@Amro](https://discourse.julialang.org/u/Amro)\
**Replies:** 20\
**Last updated:** [September 23, 2021, 9:08pm UTC](https://discourse.julialang.org/t/why-substituting-for-loop-with-direct-assignment-of-matrix-worsen-the-performance-time/68601 "2021-09-23T21:08:20Z")

</div>

Why the execution time of “testS()” is faster than “testP()”, although the later has reduced a “for loop” (which is supposed to consume time) by a direct assignment of the Matrix, as shown below: using BenchmarkTools …

---

## [Projection from Lambert Conformal Conic to Lat/Lon](https://discourse.julialang.org/t/projection-from-lambert-conformal-conic-to-lat-lon/68629)

<div class="topic-metadata">

**Author:** [@Dieter](https://discourse.julialang.org/u/Dieter)\
**Replies:** 10\
**Last updated:** [September 23, 2021, 8:38pm UTC](https://discourse.julialang.org/t/projection-from-lambert-conformal-conic-to-lat-lon/68629 "2021-09-23T20:38:51Z")

</div>

Hello Community After taking a look at packages like ArchGDAL I have still no idea how to project coordinates from an arbitrary Lambert Conformal Conic projection, defined by standard\_parallel, latitude\_of\_projection\_or…

---

## [Missing run selection in Juno via Atom](https://discourse.julialang.org/t/missing-run-selection-in-juno-via-atom/68644)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 1\
**Last updated:** [September 23, 2021, 8:03pm UTC](https://discourse.julialang.org/t/missing-run-selection-in-juno-via-atom/68644 "2021-09-23T20:03:42Z")

</div>

Hello, I don’t know if this is the right forum but I have a problem: I re-installed atom editor so now I have Atom 1.57.0. I installed Juno (0.12) but I now miss the thunderbolt-like icon that allowed the execution of t…

---

## [Kuramoto model using DifferentialEquations.jl](https://discourse.julialang.org/t/kuramoto-model-using-differentialequations-jl/68641)

<div class="topic-metadata">

**Author:** [@VMHidalgo](https://discourse.julialang.org/u/VMHidalgo)\
**Replies:** 2\
**Last updated:** [September 23, 2021, 7:57pm UTC](https://discourse.julialang.org/t/kuramoto-model-using-differentialequations-jl/68641 "2021-09-23T19:57:38Z")

</div>

Hi everyone, I wonder if you can help me with this one. I am trying to model a simple Kuramoto model using OrdinaryDiffEq and I get an error because the code is trying to Float a complex number. Sorry if I am too ignor…

---

## [VS Code IntelliSense issues](https://discourse.julialang.org/t/vs-code-intellisense-issues/8437)

<div class="topic-metadata">

**Author:** [@julbinb](https://discourse.julialang.org/u/julbinb)\
**Replies:** 12\
**Last updated:** [September 23, 2021, 7:23pm UTC](https://discourse.julialang.org/t/vs-code-intellisense-issues/8437 "2021-09-23T19:23:05Z")

</div>

VS Code extension for Julia provides some nice static checks, e.g. it hints “possibly undeclared variable”, and also allows going to definition. But it seems to work only within one file. Even if I have include, definiti…

---

## [How do I enter a value as a DecFP](https://discourse.julialang.org/t/how-do-i-enter-a-value-as-a-decfp/67266)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 2\
**Last updated:** [September 23, 2021, 7:13pm UTC](https://discourse.julialang.org/t/how-do-i-enter-a-value-as-a-decfp/67266 "2021-09-23T19:13:27Z")

</div>

using DataFrames using DecFP final2019\_ledger=Dict("debit"=\>Dict("assets"=\>Dict("Chequing"=\>DataFrame("balance"=\>8.00)))) "Chequing"=\>DataFrame( date=Vector{String}(\["1 Jan 2019"\]), memo=Vector{String}(\["Start…

---

## [3d contour - calculation not plot](https://discourse.julialang.org/t/3d-contour-calculation-not-plot/68549)

<div class="topic-metadata">

**Author:** [@BioTurboNick](https://discourse.julialang.org/u/BioTurboNick)\
**Replies:** 2\
**Last updated:** [September 23, 2021, 6:40pm UTC](https://discourse.julialang.org/t/3d-contour-calculation-not-plot/68549 "2021-09-23T18:40:34Z")

</div>

I have code that convolves a 2d cluster of points, then finds a contour of the convolution, which it takes to be the cluster boundary. I’d like to extend it to 3 dimensions. Naively, I’m thinking I can just find the con…

---

## [Is Convex.jl still working?](https://discourse.julialang.org/t/is-convex-jl-still-working/68624)

<div class="topic-metadata">

**Author:** [@compleat](https://discourse.julialang.org/u/compleat)\
**Replies:** 12\
**Last updated:** [September 23, 2021, 6:19pm UTC](https://discourse.julialang.org/t/is-convex-jl-still-working/68624 "2021-09-23T18:19:30Z")

</div>

I would like to run an example for a class like the tutorials on Convex.jl, but these no longer work (they fail at the ‘solve’ step). I could use JUMP but I just want to do simple quadratic programming and the syntax o…

---

## [How to find indices like Matlab](https://discourse.julialang.org/t/how-to-find-indices-like-matlab/68639)

<div class="topic-metadata">

**Author:** [@leon](https://discourse.julialang.org/u/leon)\
**Replies:** 3\
**Last updated:** [September 23, 2021, 6:09pm UTC](https://discourse.julialang.org/t/how-to-find-indices-like-matlab/68639 "2021-09-23T18:09:13Z")

</div>

For example, I have a matrix A as below: A = \[1, 2, 3; 4, 3, 8; 12, 2, 5; 7 , 4, 9\]; So its first column would be like this: 1 4 12 7 How do I find the rows with the first column \>6? In Matlab I can do the belo…

---

## [First time setting up CI/CD on BitBucket](https://discourse.julialang.org/t/first-time-setting-up-ci-cd-on-bitbucket/68526)

<div class="topic-metadata">

**Author:** [@affans](https://discourse.julialang.org/u/affans)\
**Replies:** 6\
**Last updated:** [September 23, 2021, 5:25pm UTC](https://discourse.julialang.org/t/first-time-setting-up-ci-cd-on-bitbucket/68526 "2021-09-23T17:25:01Z")

</div>

Looking for some assistance in setting up CI/CD on Bitbucket pipeline. I have a package with a test folder that includes all my unit tests. How can I make it so that everytime I commit code, it runs all the tests?

---

## [Regime-switching Model in Turing.jl](https://discourse.julialang.org/t/regime-switching-model-in-turing-jl/68614)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 1\
**Last updated:** [September 23, 2021, 5:07pm UTC](https://discourse.julialang.org/t/regime-switching-model-in-turing-jl/68614 "2021-09-23T17:07:46Z")

</div>

Is it possible to replicate this Stan model in Turing.jl? https://khakieconomics.github.io/2018/02/24/Regime-switching-models.html

---

## [Updated micro benchmark plot](https://discourse.julialang.org/t/updated-micro-benchmark-plot/68631)

<div class="topic-metadata">

**Author:** [@grasph](https://discourse.julialang.org/u/grasph)\
**Replies:** 1\
**Last updated:** [September 23, 2021, 4:46pm UTC](https://discourse.julialang.org/t/updated-micro-benchmark-plot/68631 "2021-09-23T16:46:12Z")

</div>

Hello, On Julia Micro-Benchmarks it’s written the numbers for Julia in the shown micro-benchmark plot were obtained with Julia version 1.0.0. Is there an update of the plot and do we expect newer Julia versions to perf…

---

## [Julia version of cv.getPerspectiveTransform?](https://discourse.julialang.org/t/julia-version-of-cv-getperspectivetransform/68553)

<div class="topic-metadata">

**Author:** [@vshesh](https://discourse.julialang.org/u/vshesh)\
**Replies:** 11\
**Last updated:** [September 23, 2021, 4:34pm UTC](https://discourse.julialang.org/t/julia-version-of-cv-getperspectivetransform/68553 "2021-09-23T16:34:40Z")

</div>

I want to create and use a projective transform matrix between four points in one coordinate system to four points in another coordinate system. Is there a way to do this in Julia? In OpenCV I can call cv.getPerspectiveT…

---

## [Derivative of linear function](https://discourse.julialang.org/t/derivative-of-linear-function/68607)

<div class="topic-metadata">

**Author:** [@Afaria1971](https://discourse.julialang.org/u/Afaria1971)\
**Replies:** 5\
**Last updated:** [September 23, 2021, 3:42pm UTC](https://discourse.julialang.org/t/derivative-of-linear-function/68607 "2021-09-23T15:42:16Z")

</div>

How to balance the variants type in the simple case below: function dev(X::Number) return diff(X) end if Julia derivatives X with respect to X returns 1.0? ERROR: LoadError: MethodError: no method matching diff(::Fl…

---

## [Type instability in FLoop reduction](https://discourse.julialang.org/t/type-instability-in-floop-reduction/68598)

<div class="topic-metadata">

**Author:** [@smillerc](https://discourse.julialang.org/u/smillerc)\
**Replies:** 6\
**Last updated:** [September 23, 2021, 1:41pm UTC](https://discourse.julialang.org/t/type-instability-in-floop-reduction/68598 "2021-09-23T13:41:33Z")

</div>

I’m attempting to speed up a residual computation function with FLoops but am getting some type instability. The resid\_simple function is the version that uses LinearAlgebra the allocations make it slow. The Floops versi…

---

## [Julia, a Spotify playlist](https://discourse.julialang.org/t/julia-a-spotify-playlist/54953)

<div class="topic-metadata">

**Author:** [@rocarvaj](https://discourse.julialang.org/u/rocarvaj)\
**Replies:** 8\
**Last updated:** [September 23, 2021, 1:19pm UTC](https://discourse.julialang.org/t/julia-a-spotify-playlist/54953 "2021-09-23T13:19:42Z")

</div>

I’ve compiled a Julia playlist here: As you can see, the songs are not necessarily good (well, that’s relative). Enjoy! P.S. Suggestions are, of course, welcome.

---

## [Dealing with "C style" memory layout](https://discourse.julialang.org/t/dealing-with-c-style-memory-layout/68627)

<div class="topic-metadata">

**Author:** [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Replies:** 2\
**Last updated:** [September 23, 2021, 1:11pm UTC](https://discourse.julialang.org/t/dealing-with-c-style-memory-layout/68627 "2021-09-23T13:11:44Z")

</div>

In julia arrays are stored using the fortran memory ordering. When interacting with other languages that use “C” ordering it is often necessary to convert between the two. Usually I do this in an add hoc manner like pe…

---

## [Julia for HEP Mini-workshop](https://discourse.julialang.org/t/julia-for-hep-mini-workshop/68622)

<div class="topic-metadata">

**Author:** [@giordano](https://discourse.julialang.org/u/giordano)\
**Replies:** 1\
**Last updated:** [September 23, 2021, 12:37pm UTC](https://discourse.julialang.org/t/julia-for-hep-mini-workshop/68622 "2021-09-23T12:37:22Z")

</div>

Following up the Julia session at the last PyHEP workshop, a study of potential of this programming language for HEP is being launched within the PyHEP WG of HSF. The goal is to write a report that will describe its pot…

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

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