# Latest

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

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

**Page:** 853

---

## [Robotics at CSAIL and National Robotarium](https://discourse.julialang.org/t/robotics-at-csail-and-national-robotarium/90892)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 1\
**Last updated:** [November 27, 2022, 11:21am UTC](https://discourse.julialang.org/t/robotics-at-csail-and-national-robotarium/90892 "2022-11-27T11:21:40Z")

</div>

The BBC program Click has an episode where they visit MIT CSAIL, the National Robotarium and cover Voice Banking for MND patients. Is Julia used for the mini Cheetah robot? The robot plays football with the presenter. …

---

## [\[ANN\] Coder and Decoder of QR codes](https://discourse.julialang.org/t/ann-coder-and-decoder-of-qr-codes/88087)

<div class="topic-metadata">

**Author:** [@Rex\_Wang](https://discourse.julialang.org/u/Rex_Wang)\
**Replies:** 1\
**Last updated:** [November 26, 2022, 6:06pm UTC](https://discourse.julialang.org/t/ann-coder-and-decoder-of-qr-codes/88087 "2022-11-26T18:06:04Z")

</div>

Hey guys!! I’m excited to announce two packages that I’ve recently completed as main works of the OSPP’22 project. QRCoders : GitHub - JuliaImages/QRCoders.jl: Creating QR Codes within Julia QRDecoders: GitHub - Ju…

---

## [ImageView not precompiling -- UndefVarError](https://discourse.julialang.org/t/imageview-not-precompiling-undefvarerror/90801)

<div class="topic-metadata">

**Author:** [@del](https://discourse.julialang.org/u/del)\
**Replies:** 4\
**Last updated:** [November 27, 2022, 9:59am UTC](https://discourse.julialang.org/t/imageview-not-precompiling-undefvarerror/90801 "2022-11-27T09:59:23Z")

</div>

I have been unable to precompile ImageView from midway in the 1.9.0 dev series to now 1.10.0-Dev.38. In all attempts there is a common error flagged: ERROR: LoadError: UndefVarError: #imshow##kw not defined It would b…

---

## [@code\_warntype all types are red in vsocde](https://discourse.julialang.org/t/code-warntype-all-types-are-red-in-vsocde/90896)

<div class="topic-metadata">

**Author:** [@freeman](https://discourse.julialang.org/u/freeman)\
**Replies:** 0\
**Last updated:** [November 27, 2022, 9:36am UTC](https://discourse.julialang.org/t/code-warntype-all-types-are-red-in-vsocde/90896 "2022-11-27T09:36:02Z")

</div>

Not sure if I’m doing something wrong or if this is a bug with the vs code extension… In here Performance Tips · The Julia Language it says The most important characteristic of @code\_warntype is that non-concrete typ…

---

## [Random variables in Julia (working list)](https://discourse.julialang.org/t/random-variables-in-julia-working-list/48762)

<div class="topic-metadata">

**Author:** [@Albert\_Zevelev](https://discourse.julialang.org/u/Albert_Zevelev)\
**Replies:** 36\
**Last updated:** [November 27, 2022, 8:49am UTC](https://discourse.julialang.org/t/random-variables-in-julia-working-list/48762 "2022-11-27T08:49:29Z")

</div>

Here is my summary of probability distributions in Julia. This is a Julia version of CRAN Task View: Probability Distributions. Packages with distributions: Package Description Note Distributions.jl fit(), ra…

---

## [DSP.jl how to use ZeroPoleGain with specifications in Hz?](https://discourse.julialang.org/t/dsp-jl-how-to-use-zeropolegain-with-specifications-in-hz/90772)

<div class="topic-metadata">

**Author:** [@dutille](https://discourse.julialang.org/u/dutille)\
**Replies:** 8\
**Last updated:** [November 27, 2022, 7:14am UTC](https://discourse.julialang.org/t/dsp-jl-how-to-use-zeropolegain-with-specifications-in-hz/90772 "2022-11-27T07:14:06Z")

</div>

Let’s say I want to implement a digital filter that is defined by its zeros and poles to filter signals sampled at fs Hz. It seems logical to use DSP.Filters.ZeroPoleGain(z,p,k). But there is little information about the…

---

## [How to specify pkg environment for Visual Studio Code project?](https://discourse.julialang.org/t/how-to-specify-pkg-environment-for-visual-studio-code-project/90868)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 4\
**Last updated:** [November 27, 2022, 6:59am UTC](https://discourse.julialang.org/t/how-to-specify-pkg-environment-for-visual-studio-code-project/90868 "2022-11-27T06:59:55Z")

</div>

Hi, I have done: \] activate MyPackage And then everything works correctly, i.e. adding packages only into this project when doing Pkg.add etc. But whenever I try to execute some code from Visual Studio Code I have to …

---

## [Help setting up a package](https://discourse.julialang.org/t/help-setting-up-a-package/90884)

<div class="topic-metadata">

**Author:** [@Lilith](https://discourse.julialang.org/u/Lilith)\
**Replies:** 2\
**Last updated:** [November 27, 2022, 6:42am UTC](https://discourse.julialang.org/t/help-setting-up-a-package/90884 "2022-11-27T06:42:25Z")

</div>

I’m running into difficulties using PkgTemplates to setup a package. I made a tiny package here But when I try to add it at the repl, it fails: (@v1.8) pkg\> add https://github.com/LilithHafner/Example.jl ERROR: invalid…

---

## [Why is copying using a loop is much slower than \`copy\` for large arrays?](https://discourse.julialang.org/t/why-is-copying-using-a-loop-is-much-slower-than-copy-for-large-arrays/90633)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 10\
**Last updated:** [November 27, 2022, 3:25am UTC](https://discourse.julialang.org/t/why-is-copying-using-a-loop-is-much-slower-than-copy-for-large-arrays/90633 "2022-11-27T03:25:28Z")

</div>

julia\> function copy2(A::Array) B = similar(A); @inbounds @simd for i in eachindex(A, B) B\[i\] = A\[i\] end B end copy2 (generic function with 1 method) jul…

---

## [How to make Julia exit 1 on error when run at the end of a pipe?](https://discourse.julialang.org/t/how-to-make-julia-exit-1-on-error-when-run-at-the-end-of-a-pipe/90879)

<div class="topic-metadata">

**Author:** [@Lilith](https://discourse.julialang.org/u/Lilith)\
**Replies:** 0\
**Last updated:** [November 27, 2022, 3:10am UTC](https://discourse.julialang.org/t/how-to-make-julia-exit-1-on-error-when-run-at-the-end-of-a-pipe/90879 "2022-11-27T03:10:22Z")

</div>

When I run this at the command line, the exit code seems to be 0: % echo 'error()' | julia && echo pass ERROR: Stacktrace: \[1\] error() @ Base ./error.jl:44 \[2\] top-level scope @ none:1 pass % In contrast, gre…

---

## [JuMP semidefinite programming - formulating via constraints versus variables](https://discourse.julialang.org/t/jump-semidefinite-programming-formulating-via-constraints-versus-variables/90832)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 4\
**Last updated:** [November 26, 2022, 11:45pm UTC](https://discourse.julialang.org/t/jump-semidefinite-programming-formulating-via-constraints-versus-variables/90832 "2022-11-26T23:45:00Z")

</div>

I have the following two model definitions in JuMP. They are formally equivalent. Will one of them be more efficient than the other? Version 1: a = \[1.0 0.0; 0.0 1.0\] b = \[1.0 0.0; 0.0 -1.0\] @variable(model, x) @constr…

---

## [AES-NI support](https://discourse.julialang.org/t/aes-ni-support/90871)

<div class="topic-metadata">

**Author:** [@hros](https://discourse.julialang.org/u/hros)\
**Replies:** 0\
**Last updated:** [November 26, 2022, 11:36pm UTC](https://discourse.julialang.org/t/aes-ni-support/90871 "2022-11-26T23:36:37Z")

</div>

There are several packages that implement AES Do any of the packages support hardware acceleration (AES-NI)? For example, OpenSSL\_jll is built with BinaryBuilder, does BinaryBuilder support AES-NI?

---

## [VSCode jupyter notebook + webIO issues?](https://discourse.julialang.org/t/vscode-jupyter-notebook-webio-issues/73530)

<div class="topic-metadata">

**Author:** [@KoenVanSever](https://discourse.julialang.org/u/KoenVanSever)\
**Replies:** 13\
**Last updated:** [November 26, 2022, 10:26pm UTC](https://discourse.julialang.org/t/vscode-jupyter-notebook-webio-issues/73530 "2022-11-26T22:26:35Z")

</div>

Hi, I’ve been using the jupyter with Julia for data analysis in VS code for quite some time now. However recently I got the request to make a GUI to visualize the data, so most obvious choice for me was Interact.jl and…

---

## [How to automatically "transfer" keyword arguments from a component structure to the constructor of the wrapping object?](https://discourse.julialang.org/t/how-to-automatically-transfer-keyword-arguments-from-a-component-structure-to-the-constructor-of-the-wrapping-object/83737)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 1\
**Last updated:** [July 4, 2022, 10:14am UTC](https://discourse.julialang.org/t/how-to-automatically-transfer-keyword-arguments-from-a-component-structure-to-the-constructor-of-the-wrapping-object/83737 "2022-07-04T10:14:11Z")

</div>

I have a struct (let’s say Model) where I would like to logically divide the fields in two different objects (lets’s say optionsa and optionsb) but I want to keep this division transparent to the user so that it can just…

---

## [Mark the Intersection Points on a Plot Graph](https://discourse.julialang.org/t/mark-the-intersection-points-on-a-plot-graph/90828)

<div class="topic-metadata">

**Author:** [@wrisurcuriosity](https://discourse.julialang.org/u/wrisurcuriosity)\
**Replies:** 10\
**Last updated:** [November 26, 2022, 6:11pm UTC](https://discourse.julialang.org/t/mark-the-intersection-points-on-a-plot-graph/90828 "2022-11-26T18:11:41Z")

</div>

Hi guys, I am struggling to point the intersection of two graphs. I am currently working on time complexity on sorting algorithms in insertion and merge. My data sets for the graphs will follow like: plot(elements,time…

---

## [How to silence a pipeline?](https://discourse.julialang.org/t/how-to-silence-a-pipeline/90726)

<div class="topic-metadata">

**Author:** [@marianoarnaiz](https://discourse.julialang.org/u/marianoarnaiz)\
**Replies:** 4\
**Last updated:** [November 26, 2022, 8:23pm UTC](https://discourse.julialang.org/t/how-to-silence-a-pipeline/90726 "2022-11-26T20:23:45Z")

</div>

Hi all. I am running an external fortran code that reads an input file and outputs another. While the program runs it prints some lines. I am calling the program with run and pipeline: run(pipeline(cat in.love,./love)…

---

## [To know if there is a Julia analogue of some Modern Fortran declarations within subroutines](https://discourse.julialang.org/t/to-know-if-there-is-a-julia-analogue-of-some-modern-fortran-declarations-within-subroutines/90861)

<div class="topic-metadata">

**Author:** [@martinmestre](https://discourse.julialang.org/u/martinmestre)\
**Replies:** 6\
**Last updated:** [November 26, 2022, 7:21pm UTC](https://discourse.julialang.org/t/to-know-if-there-is-a-julia-analogue-of-some-modern-fortran-declarations-within-subroutines/90861 "2022-11-26T19:21:38Z")

</div>

Hi all, I would like to know if it is possible to define the intention of the function arguments as in Fortran’s: intent(in), intent(out) and intent(inout). I used them a lot in Modern Fortran in order to be sure that…

---

## [Having latest \`LanguageServer.jl\` version to use formatter in Julia VSCode extension](https://discourse.julialang.org/t/having-latest-languageserver-jl-version-to-use-formatter-in-julia-vscode-extension/90702)

<div class="topic-metadata">

**Author:** [@danielsoutar](https://discourse.julialang.org/u/danielsoutar)\
**Replies:** 4\
**Last updated:** [November 26, 2022, 6:11pm UTC](https://discourse.julialang.org/t/having-latest-languageserver-jl-version-to-use-formatter-in-julia-vscode-extension/90702 "2022-11-26T18:11:47Z")

</div>

I use the JuliaFormatter in VSCode as part of the Julia extension. It works OK, but it has up until recently had broken formatting when doing a selection - forcing me to have to format the entire file and pick out my cha…

---

## [How to base64 encode a rasterized image for embedding it into SVG?](https://discourse.julialang.org/t/how-to-base64-encode-a-rasterized-image-for-embedding-it-into-svg/90848)

<div class="topic-metadata">

**Author:** [@fatteneder](https://discourse.julialang.org/u/fatteneder)\
**Replies:** 7\
**Last updated:** [November 26, 2022, 3:15pm UTC](https://discourse.julialang.org/t/how-to-base64-encode-a-rasterized-image-for-embedding-it-into-svg/90848 "2022-11-26T15:15:30Z")

</div>

Below I try to do this using just the Base64 module. MWE using Base64 using Downloads using FileIO path = Downloads.download("https://github.com/MakieOrg/Makie.jl/raw/master/assets/doge.png") img = load(path) # reduc…

---

## [EAGO does not identify infeasbility of constraints in "easy" problem](https://discourse.julialang.org/t/eago-does-not-identify-infeasbility-of-constraints-in-easy-problem/90820)

<div class="topic-metadata">

**Author:** [@recallme](https://discourse.julialang.org/u/recallme)\
**Replies:** 2\
**Last updated:** [November 26, 2022, 1:37pm UTC](https://discourse.julialang.org/t/eago-does-not-identify-infeasbility-of-constraints-in-easy-problem/90820 "2022-11-26T13:37:40Z")

</div>

Hi, in the below problem I defined two constraints for which it is trivial to show analytically that they cannot be satisfied at the same time. However, the code takes lots of time and does not give back a clear unfeasi…

---

## [Map over product](https://discourse.julialang.org/t/map-over-product/90839)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 1\
**Last updated:** [November 26, 2022, 12:39pm UTC](https://discourse.julialang.org/t/map-over-product/90839 "2022-11-26T12:39:25Z")

</div>

Is there a shorter way to write \[f(a,b) for a in A, b in B\] or map(Base.splat(f), Iterators.product(A,B)) ? I’m looking for something like prodmap(f, A, B).

---

## [Compile script before running through code](https://discourse.julialang.org/t/compile-script-before-running-through-code/90844)

<div class="topic-metadata">

**Author:** [@Michael\_Hecht](https://discourse.julialang.org/u/Michael_Hecht)\
**Replies:** 3\
**Last updated:** [November 26, 2022, 12:07pm UTC](https://discourse.julialang.org/t/compile-script-before-running-through-code/90844 "2022-11-26T12:07:45Z")

</div>

Is it possible to compile a script before passing each line? My impression is that the code is compiled line by line. I want to start a server that does some calculations. When start the server, all code should be compi…

---

## [How to Create Multiple Plots of Animation to Estimate Pi using Julia Plots or Luxor? Not with Pluto](https://discourse.julialang.org/t/how-to-create-multiple-plots-of-animation-to-estimate-pi-using-julia-plots-or-luxor-not-with-pluto/90765)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 7\
**Last updated:** [November 26, 2022, 12:05pm UTC](https://discourse.julialang.org/t/how-to-create-multiple-plots-of-animation-to-estimate-pi-using-julia-plots-or-luxor-not-with-pluto/90765 "2022-11-26T12:05:06Z")

</div>

Hi all, I want to try this, but do not want to use Pluto, is there any nice advice for me?

---

## [Summation Formula or Package in Julia](https://discourse.julialang.org/t/summation-formula-or-package-in-julia/90843)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 0\
**Last updated:** [November 26, 2022, 10:04am UTC](https://discourse.julialang.org/t/summation-formula-or-package-in-julia/90843 "2022-11-26T10:04:42Z")

</div>

Hi all, I want to know if there is a package that can be used to obtain summation formula like this below? It must use Symbolics too. Almost like this but more general:

---

## [Permanent recompilation of libraries and performance issues](https://discourse.julialang.org/t/permanent-recompilation-of-libraries-and-performance-issues/90815)

<div class="topic-metadata">

**Author:** [@Michael\_Hecht](https://discourse.julialang.org/u/Michael_Hecht)\
**Replies:** 6\
**Last updated:** [November 26, 2022, 9:06am UTC](https://discourse.julialang.org/t/permanent-recompilation-of-libraries-and-performance-issues/90815 "2022-11-26T09:06:43Z")

</div>

I have a little test program that uses some libraries println("load libs ...") t0 = time() @time using JuMP @time using Ipopt println("run prog ...") m = Model(Ipopt.Optimizer) println("set variables ...") @variable(m…

---

## [Algebraic equation in matrix form](https://discourse.julialang.org/t/algebraic-equation-in-matrix-form/90621)

<div class="topic-metadata">

**Author:** [@TrumeAAA](https://discourse.julialang.org/u/TrumeAAA)\
**Replies:** 13\
**Last updated:** [November 26, 2022, 7:27am UTC](https://discourse.julialang.org/t/algebraic-equation-in-matrix-form/90621 "2022-11-26T07:27:05Z")

</div>

Hi, I want to solve a Algebraic equation in matrix form: Actually, I need to solve AX=0, that is to say I need to solve det(A)=0 with respect to k’ when k in (-1,1). This is easy in matlab by running: ... syms k; k…

---

## [How do I test my package while avoiding adding large alternative dependencies?](https://discourse.julialang.org/t/how-do-i-test-my-package-while-avoiding-adding-large-alternative-dependencies/90838)

<div class="topic-metadata">

**Author:** [@kapple](https://discourse.julialang.org/u/kapple)\
**Replies:** 2\
**Last updated:** [November 26, 2022, 6:01am UTC](https://discourse.julialang.org/t/how-do-i-test-my-package-while-avoiding-adding-large-alternative-dependencies/90838 "2022-11-26T06:01:48Z")

</div>

Two examples of lightweight packages as alternatives to a large package: RecipesBase.jl instead of Plots.jl OrdinaryDiffEq.jl instead of DifferentialEquations.jl In both cases, the former is added to a personal packag…

---

## [Abs in JuMP](https://discourse.julialang.org/t/abs-in-jump/90811)

<div class="topic-metadata">

**Author:** [@Salvador\_Catsis](https://discourse.julialang.org/u/Salvador_Catsis)\
**Replies:** 2\
**Last updated:** [November 26, 2022, 4:51am UTC](https://discourse.julialang.org/t/abs-in-jump/90811 "2022-11-26T04:51:02Z")

</div>

Hi, I’m fairly new to Julia and new to JuMP. I am trying to implement a simple optimisation problem. I haven’t asked many programming questions before so please forgive the formatting if it’s not appropriate. I have de…

---

## [Interpolation into array rather than from array](https://discourse.julialang.org/t/interpolation-into-array-rather-than-from-array/60538)

<div class="topic-metadata">

**Author:** [@RainerHeintzmann](https://discourse.julialang.org/u/RainerHeintzmann)\
**Replies:** 15\
**Last updated:** [November 26, 2022, 4:03am UTC](https://discourse.julialang.org/t/interpolation-into-array-rather-than-from-array/60538 "2022-11-26T04:03:57Z")

</div>

I would like to do interpolation writing into an array rather than interpolation from an array. I looked around a bit and found Interpolations.jl. Yet it seems like it only supports to interpolate on read (getindex)inste…

---

## [Fixing the Piping/Chaining/Partial Application Issue (Rev 2)](https://discourse.julialang.org/t/fixing-the-piping-chaining-partial-application-issue-rev-2/90408)

<div class="topic-metadata">

**Author:** [@uniment](https://discourse.julialang.org/u/uniment)\
**Replies:** 40\
**Last updated:** [November 26, 2022, 3:15am UTC](https://discourse.julialang.org/t/fixing-the-piping-chaining-partial-application-issue-rev-2/90408 "2022-11-26T03:15:25Z")

</div>

Starting this thread anew to avoid confusion, because I changed my mind on which approach I support partway through a long thread (sorry!). It’s also useful to distill some of the last thread’s learnings. Thank you to a…

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

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