# General Usage

**URL:** https://discourse.julialang.org/c/usage/6.md?page=542

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

**Page:** 543

---

## [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.

---

## [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…

---

## [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…

---

## [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…

---

## [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 …

---

## [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…

---

## [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…

---

## [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…

---

## [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…

---

## [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…

---

## [High RAM usage](https://discourse.julialang.org/t/high-ram-usage/67091)

<div class="topic-metadata">

**Author:** [@Joao\_Barata](https://discourse.julialang.org/u/Joao_Barata)\
**Replies:** 14\
**Last updated:** [September 23, 2021, 10:24am UTC](https://discourse.julialang.org/t/high-ram-usage/67091 "2021-09-23T10:24:44Z")

</div>

Hi I’ve built a code which basically calculates the value of a complex non-linear function with a set of parameters for which I need to find a fixed point. Because of it is computationally heavy, I use distributed compu…

---

## [Advanced iteration interface in Julia](https://discourse.julialang.org/t/advanced-iteration-interface-in-julia/68618)

<div class="topic-metadata">

**Author:** [@ettersi](https://discourse.julialang.org/u/ettersi)\
**Replies:** 5\
**Last updated:** [September 23, 2021, 9:39am UTC](https://discourse.julialang.org/t/advanced-iteration-interface-in-julia/68618 "2021-09-23T09:39:15Z")

</div>

I’m working on a function to simplify iterating over binary trees. Ideally, this function should have the following signature: walk\_down( tree, starting\_vertex; two\_children, # Function vertex -\> Union{Val(:le…

---

## [Is there a way to use a debugger on scripts running embedded in C++? If so, how?](https://discourse.julialang.org/t/is-there-a-way-to-use-a-debugger-on-scripts-running-embedded-in-c-if-so-how/68031)

<div class="topic-metadata">

**Author:** [@solaris](https://discourse.julialang.org/u/solaris)\
**Replies:** 12\
**Last updated:** [September 23, 2021, 9:00am UTC](https://discourse.julialang.org/t/is-there-a-way-to-use-a-debugger-on-scripts-running-embedded-in-c-if-so-how/68031 "2021-09-23T09:00:08Z")

</div>

Ideally in an IDE like VSCode. If only command line is possible, that’s ok for now.

---

## [SetUp and TearDown in Test module?](https://discourse.julialang.org/t/setup-and-teardown-in-test-module/68589)

<div class="topic-metadata">

**Author:** [@fspreck-indiscale](https://discourse.julialang.org/u/fspreck-indiscale)\
**Replies:** 4\
**Last updated:** [September 23, 2021, 7:34am UTC](https://discourse.julialang.org/t/setup-and-teardown-in-test-module/68589 "2021-09-23T07:34:26Z")

</div>

Hello everyone, I’m still quite new to Julia, so please excuse me if I have missed something obvious here. Is there a way in Test.jl to declare functions that are called before/after every @testset similar to SetUp/Tea…

---

## ["Unget" char from stream](https://discourse.julialang.org/t/unget-char-from-stream/68588)

<div class="topic-metadata">

**Author:** [@ess3sq](https://discourse.julialang.org/u/ess3sq)\
**Replies:** 7\
**Last updated:** [September 23, 2021, 12:42am UTC](https://discourse.julialang.org/t/unget-char-from-stream/68588 "2021-09-23T00:42:44Z")

</div>

Hello there, I was wondering whether the Julia IO API provided a built-in facility for ungetting characters from an ::IO stream in a way analogous to C’s ungetc() function. If not I am aware I can implement it by cachi…

---

## [Meaning of outputs of Profile.print()](https://discourse.julialang.org/t/meaning-of-outputs-of-profile-print/68609)

<div class="topic-metadata">

**Author:** [@ZHEN\_LIN](https://discourse.julialang.org/u/ZHEN_LIN)\
**Replies:** 0\
**Last updated:** [September 22, 2021, 11:23pm UTC](https://discourse.julialang.org/t/meaning-of-outputs-of-profile-print/68609 "2021-09-22T23:23:12Z")

</div>

In Julia 1.4.2, the output of Profile.print() has the following columns: Overhead ╎ \[+additional indent\] Count File:Line; Function This looks different from the official documentation, which does not have the Overhead …

---

## [Can not install PyCall and PyPlot on HPC cluster](https://discourse.julialang.org/t/can-not-install-pycall-and-pyplot-on-hpc-cluster/68466)

<div class="topic-metadata">

**Author:** [@fksayaci](https://discourse.julialang.org/u/fksayaci)\
**Replies:** 16\
**Last updated:** [September 22, 2021, 9:44pm UTC](https://discourse.julialang.org/t/can-not-install-pycall-and-pyplot-on-hpc-cluster/68466 "2021-09-22T21:44:35Z")

</div>

Hi All, I am using a high-performance computing cluster to solve my optimization problem. After I get the results, I need to plot results on bar plots, line plots, and stack graphs. I am doing these successfully on my l…

---

## [Inline macro](https://discourse.julialang.org/t/inline-macro/68595)

<div class="topic-metadata">

**Author:** [@eliascarv](https://discourse.julialang.org/u/eliascarv)\
**Replies:** 7\
**Last updated:** [September 22, 2021, 7:11pm UTC](https://discourse.julialang.org/t/inline-macro/68595 "2021-09-22T19:11:35Z")

</div>

When should I use the @inline macro to optimize performance?

---

## [Shared C dependencies and artifacts](https://discourse.julialang.org/t/shared-c-dependencies-and-artifacts/68525)

<div class="topic-metadata">

**Author:** [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Replies:** 7\
**Last updated:** [September 22, 2021, 6:52pm UTC](https://discourse.julialang.org/t/shared-c-dependencies-and-artifacts/68525 "2021-09-22T18:52:21Z")

</div>

I want to create julia bindings to onnxruntime, see ONNXRunTime.jl. Things already work on my local machine CPU+GPU. However, I don’t quite know how to package it so GPU also works anywhere. Here is what I did so far and…

---

## [Slow compiling of many AxisArrays](https://discourse.julialang.org/t/slow-compiling-of-many-axisarrays/68596)

<div class="topic-metadata">

**Author:** [@klowrey](https://discourse.julialang.org/u/klowrey)\
**Replies:** 0\
**Last updated:** [September 22, 2021, 6:16pm UTC](https://discourse.julialang.org/t/slow-compiling-of-many-axisarrays/68596 "2021-09-22T18:16:59Z")

</div>

I’ve scratched my head on this for a few days and suspect there may not be a good solution but wanted the community’s input. We have a package that wraps a C-library MuJoCo and as added feature of using it through Julia,…

---

## [Empty figure saved in Plots](https://discourse.julialang.org/t/empty-figure-saved-in-plots/68585)

<div class="topic-metadata">

**Author:** [@henry2004y](https://discourse.julialang.org/u/henry2004y)\
**Replies:** 4\
**Last updated:** [September 22, 2021, 3:50pm UTC](https://discourse.julialang.org/t/empty-figure-saved-in-plots/68585 "2021-09-22T15:50:20Z")

</div>

I have an issue when trying to save pngs from subplots in a loop using the GR backend. Plots.jl v1.22.1 GR v0.59.0 using Plots, Measures x = 1:10 y = 1:10 l = @layout \[a{0.01h}; grid(2,1)\] const ax = fill(plot(),3,…

---

## [Inorequals](https://discourse.julialang.org/t/inorequals/68577)

<div class="topic-metadata">

**Author:** [@gustaphe](https://discourse.julialang.org/u/gustaphe)\
**Replies:** 7\
**Last updated:** [September 22, 2021, 3:27pm UTC](https://discourse.julialang.org/t/inorequals/68577 "2021-09-22T15:27:25Z")

</div>

A fairly common pattern for me is to have a part of a function depend on what amounts to flags: using Plots function f(x; extras=\[\]) pl = plot(x) if :v in extras vline!(pl, 0) end if :h in extra…

---

## [Peculiar behavior with Pkg.test](https://discourse.julialang.org/t/peculiar-behavior-with-pkg-test/68540)

<div class="topic-metadata">

**Author:** [@Josiah\_Slack](https://discourse.julialang.org/u/Josiah_Slack)\
**Replies:** 3\
**Last updated:** [September 22, 2021, 1:11pm UTC](https://discourse.julialang.org/t/peculiar-behavior-with-pkg-test/68540 "2021-09-22T13:11:56Z")

</div>

Unfortunately, I’m going to have to describe my problem in pretty general terms; I don’t know of a simple way of inducing it, and it’s not practical to include the actual code involved. I have a package that I’m writing …

---

## [How to check if function is in-place](https://discourse.julialang.org/t/how-to-check-if-function-is-in-place/68570)

<div class="topic-metadata">

**Author:** [@Luapulu](https://discourse.julialang.org/u/Luapulu)\
**Replies:** 9\
**Last updated:** [September 22, 2021, 11:37am UTC](https://discourse.julialang.org/t/how-to-check-if-function-is-in-place/68570 "2021-09-22T11:37:35Z")

</div>

Say I am given a function f and would like to know whether f will return a new array or simply write into its first argument. How do I do that? I know DifferentialEquations.jl does this, for example. You just supply a f…

---

## [How can I access multiple values of a dictionary using a tuple of keys?](https://discourse.julialang.org/t/how-can-i-access-multiple-values-of-a-dictionary-using-a-tuple-of-keys/56868)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 5\
**Last updated:** [September 22, 2021, 10:50am UTC](https://discourse.julialang.org/t/how-can-i-access-multiple-values-of-a-dictionary-using-a-tuple-of-keys/56868 "2021-09-22T10:50:44Z")

</div>

How can I access multiple values of a dictionary using a tuple of keys? Note that the original poster on Slack cannot see your response here on Discourse. Consider transcribing the appropriate answer back to Slack, or p…

---

## [Error in Pre-Compiling](https://discourse.julialang.org/t/error-in-pre-compiling/68563)

<div class="topic-metadata">

**Author:** [@pafloxy](https://discourse.julialang.org/u/pafloxy)\
**Replies:** 5\
**Last updated:** [September 22, 2021, 7:48am UTC](https://discourse.julialang.org/t/error-in-pre-compiling/68563 "2021-09-22T07:48:25Z")

</div>

Hi! I am facing problem importing DynamicalSystems.jl library in jupyter environment by using DynamicalSystems . I recently installed version 1.2.2. of the library. The following error message appears. However no…

[Previous page](https://discourse.julialang.org/c/usage/6.md?page=541)

[Next page](https://discourse.julialang.org/c/usage/6.md?page=543)
