# General Usage

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

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

**Page:** 513

---

## [Point location library](https://discourse.julialang.org/t/point-location-library/55606)

<div class="topic-metadata">

**Author:** [@Skoffer](https://discourse.julialang.org/u/Skoffer)\
**Replies:** 2\
**Last updated:** [December 3, 2021, 11:31am UTC](https://discourse.julialang.org/t/point-location-library/55606 "2021-12-03T11:31:28Z")

</div>

Does anyone know, is there any Julia library for the Point Location problem? My search gave nothing, only this GEOS functions, but it looks like they are not exposed in LibGEOS.jl package. If there is no Julia package,…

---

## [Understanding \`@eval\` help string and expressions](https://discourse.julialang.org/t/understanding-eval-help-string-and-expressions/72510)

<div class="topic-metadata">

**Author:** [@danielw2904](https://discourse.julialang.org/u/danielw2904)\
**Replies:** 0\
**Last updated:** [December 3, 2021, 9:38am UTC](https://discourse.julialang.org/t/understanding-eval-help-string-and-expressions/72510 "2021-12-03T09:38:01Z")

</div>

I came across this implementing the rotational cipher in exercism with the very nice help of @tomerarnon. The help for @eval states: @eval \[mod,\] ex Evaluate an expression with values interpolated into it using eval. …

---

## [Project nested environments](https://discourse.julialang.org/t/project-nested-environments/72499)

<div class="topic-metadata">

**Author:** [@jekyllstein](https://discourse.julialang.org/u/jekyllstein)\
**Replies:** 2\
**Last updated:** [December 3, 2021, 7:43am UTC](https://discourse.julialang.org/t/project-nested-environments/72499 "2021-12-03T07:43:52Z")

</div>

I have a package with an examples folder inside of it. I want the examples folder to have its own Project.toml with things like Plots that I don’t want as dependencies in the package itself. I created an environment in t…

---

## [Erratic test failure: difference between \]test and include(./test/runtests.jl)](https://discourse.julialang.org/t/erratic-test-failure-difference-between-test-and-include-test-runtests-jl/72342)

<div class="topic-metadata">

**Author:** [@fipelle](https://discourse.julialang.org/u/fipelle)\
**Replies:** 8\
**Last updated:** [December 3, 2021, 3:28am UTC](https://discourse.julialang.org/t/erratic-test-failure-difference-between-test-and-include-test-runtests-jl/72342 "2021-12-03T03:28:50Z")

</div>

Hi, I am having a strange problem with the tests of one of my packages, MessyTimeSeriesOptim.jl, which is currently under registration. I have cloned the dev branch on my laptop and added the package via Pkg.add(path="…

---

## [JULIA matrix norm is different MATLAB](https://discourse.julialang.org/t/julia-matrix-norm-is-different-matlab/72500)

<div class="topic-metadata">

**Author:** [@Sbeltranj](https://discourse.julialang.org/u/Sbeltranj)\
**Replies:** 6\
**Last updated:** [December 3, 2021, 3:24am UTC](https://discourse.julialang.org/t/julia-matrix-norm-is-different-matlab/72500 "2021-12-03T03:24:42Z")

</div>

Hi, when I calculate the norm of vector a3, I get different values ​​in julia vs MatLab

---

## [\`filter\` with \`eachrow\`](https://discourse.julialang.org/t/filter-with-eachrow/72466)

<div class="topic-metadata">

**Author:** [@austinbean](https://discourse.julialang.org/u/austinbean)\
**Replies:** 5\
**Last updated:** [December 2, 2021, 11:28pm UTC](https://discourse.julialang.org/t/filter-with-eachrow/72466 "2021-12-02T23:28:02Z")

</div>

Suppose I have an array with two columns. I want to filter the array based on the values of the first column, but would like what is returned by filter to include the second column. This method seems to be missing fro…

---

## [Why is ccall syntax?](https://discourse.julialang.org/t/why-is-ccall-syntax/72427)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 8\
**Last updated:** [December 2, 2021, 11:12pm UTC](https://discourse.julialang.org/t/why-is-ccall-syntax/72427 "2021-12-02T23:12:13Z")

</div>

ccall isn’t a function or macro but syntax. Why does it need to be syntax?

---

## [General registry disappeared from 1.6 after updating to 1.7](https://discourse.julialang.org/t/general-registry-disappeared-from-1-6-after-updating-to-1-7/72485)

<div class="topic-metadata">

**Author:** [@grahamas](https://discourse.julialang.org/u/grahamas)\
**Replies:** 2\
**Last updated:** [December 2, 2021, 7:23pm UTC](https://discourse.julialang.org/t/general-registry-disappeared-from-1-6-after-updating-to-1-7/72485 "2021-12-02T19:23:52Z")

</div>

I updated to v1.7 yesterday and have been using it without issues since, but I just went back to v1.6 to test something, and found that Pkg doesn’t see the General registry (I also have a personal registry that is unaffe…

---

## [When, exactly, is a Julia version released, and how can I tell?](https://discourse.julialang.org/t/when-exactly-is-a-julia-version-released-and-how-can-i-tell/72338)

<div class="topic-metadata">

**Author:** [@Lilith](https://discourse.julialang.org/u/Lilith)\
**Replies:** 15\
**Last updated:** [December 2, 2021, 3:02pm UTC](https://discourse.julialang.org/t/when-exactly-is-a-julia-version-released-and-how-can-i-tell/72338 "2021-12-02T15:02:27Z")

</div>

I’m developing a package to automatically update Julia, and uses https://julialang-s3.julialang.org/bin/versions.json from Download Julia as an official source for what versions are available. The discourse release annou…

---

## [Porting Fortran code, negative indices](https://discourse.julialang.org/t/porting-fortran-code-negative-indices/72386)

<div class="topic-metadata">

**Author:** [@baptnz](https://discourse.julialang.org/u/baptnz)\
**Replies:** 10\
**Last updated:** [December 2, 2021, 2:32pm UTC](https://discourse.julialang.org/t/porting-fortran-code-negative-indices/72386 "2021-12-02T14:32:04Z")

</div>

I’m porting a low-level program from Fortran, and ideally I would only make minimal changes in the conversion (do loop becoming for kind of thing) to help track down any changes between the two versions. (Later on, once …

---

## [How to find the nearest point on a grid?](https://discourse.julialang.org/t/how-to-find-the-nearest-point-on-a-grid/72402)

<div class="topic-metadata">

**Author:** [@leon](https://discourse.julialang.org/u/leon)\
**Replies:** 10\
**Last updated:** [December 2, 2021, 2:07pm UTC](https://discourse.julialang.org/t/how-to-find-the-nearest-point-on-a-grid/72402 "2021-12-02T14:07:20Z")

</div>

I have a grid defined as Lon = \[-180:0.25:180\]; Lat = \[-90:0.25:90\]; X, Y = meshgrid(Lon, Lat); I have many pairs of station data with corresponding longitude and latitude values and my goal is to find the nearest grid…

---

## [DimensionMismatch("arrays could not be broadcast to a common size; )](https://discourse.julialang.org/t/dimensionmismatch-arrays-could-not-be-broadcast-to-a-common-size/72448)

<div class="topic-metadata">

**Author:** [@FH96](https://discourse.julialang.org/u/FH96)\
**Replies:** 2\
**Last updated:** [December 2, 2021, 12:46pm UTC](https://discourse.julialang.org/t/dimensionmismatch-arrays-could-not-be-broadcast-to-a-common-size/72448 "2021-12-02T12:46:47Z")

</div>

I’m trying to write a simple for loop!: for coef in reacions\_to\_test in which “reacions\_to\_test” is 2582-element Vector{Int64} but I face this error : DimensionMismatch("arrays could not be broadcast to a common size…

---

## [Interrupting execution](https://discourse.julialang.org/t/interrupting-execution/72434)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 4\
**Last updated:** [December 2, 2021, 11:07am UTC](https://discourse.julialang.org/t/interrupting-execution/72434 "2021-12-02T11:07:14Z")

</div>

I have read that julia only checks for IO and signals etc at certain points in the code. How was I able to interrupt this execution with ctrl-c? Where can I read the details? julia\> function f() while true …

---

## [Calling fork](https://discourse.julialang.org/t/calling-fork/72410)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 2\
**Last updated:** [December 2, 2021, 10:18am UTC](https://discourse.julialang.org/t/calling-fork/72410 "2021-12-02T10:18:38Z")

</div>

Julia has more sophisticated multi-processing tools but I want to experiment with some low level options. I expected this code to print the child pid from the parent and 0 from the child but it only prints from the paren…

---

## ["plot not defined" and / or "twinx not defined"](https://discourse.julialang.org/t/plot-not-defined-and-or-twinx-not-defined/72435)

<div class="topic-metadata">

**Author:** [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Replies:** 6\
**Last updated:** [December 2, 2021, 9:41am UTC](https://discourse.julialang.org/t/plot-not-defined-and-or-twinx-not-defined/72435 "2021-12-02T09:41:36Z")

</div>

Julia v1.7.0 I faced two issues: LoadError: UndefVarError: plot not defined and LoadError: UndefVarError: twinx not defined It took a while, how to achieve the result I was looking for. Below my simple example co…

---

## [Extremely high first call latency Julia 1.6 versus 1.5 with multiphysics PDE solver](https://discourse.julialang.org/t/extremely-high-first-call-latency-julia-1-6-versus-1-5-with-multiphysics-pde-solver/71692)

<div class="topic-metadata">

**Author:** [@amartinhuertas](https://discourse.julialang.org/u/amartinhuertas)\
**Replies:** 27\
**Last updated:** [December 2, 2021, 8:03am UTC](https://discourse.julialang.org/t/extremely-high-first-call-latency-julia-1-6-versus-1-5-with-multiphysics-pde-solver/71692 "2021-12-02T08:03:02Z")

</div>

Dear all, we are experiencing extremely high first call latency times with Julia 1.6 when running our geophysical flows multiphysics finite element PDE solver (on the order of 15 hours on a supercomputer node with 192 G…

---

## [Thank you, Thank you, Thank you](https://discourse.julialang.org/t/thank-you-thank-you-thank-you/72406)

<div class="topic-metadata">

**Author:** [@lewis](https://discourse.julialang.org/u/lewis)\
**Replies:** 1\
**Last updated:** [December 2, 2021, 6:40am UTC](https://discourse.julialang.org/t/thank-you-thank-you-thank-you/72406 "2021-12-02T06:40:06Z")

</div>

Just installed Julia 1.7 for Apple Binary. STUNNING. So incredibly fast on just “eye-balling” performance. Will do a couple unscientific benchmarks later. Plots to GR almost blits to the screen first time! Plots to p…

---

## [Advent of Code 2021](https://discourse.julialang.org/t/advent-of-code-2021/72415)

<div class="topic-metadata">

**Author:** [@stevensonmt](https://discourse.julialang.org/u/stevensonmt)\
**Replies:** 4\
**Last updated:** [December 2, 2021, 2:11am UTC](https://discourse.julialang.org/t/advent-of-code-2021/72415 "2021-12-02T02:11:46Z")

</div>

Didn’t find a thread for Advent of Code 2021. This year I thought I’d use it to kickstart learning Julia. I plan to solve the exercises in Elixir and Julia. Last year I didn’t make it through to the end, hopefully this y…

---

## [Floating point addition in Julia](https://discourse.julialang.org/t/floating-point-addition-in-julia/72341)

<div class="topic-metadata">

**Author:** [@n90](https://discourse.julialang.org/u/n90)\
**Replies:** 6\
**Last updated:** [December 2, 2021, 1:54am UTC](https://discourse.julialang.org/t/floating-point-addition-in-julia/72341 "2021-12-02T01:54:33Z")

</div>

I am a bit confused about the floating value addition in Julia. When I try to add two float values in Julia am getting a non rounded value with more precision. julia\> 106.8 + 1.085 107.88499999999999 I want to know if…

---

## [Merging dataframes on dates](https://discourse.julialang.org/t/merging-dataframes-on-dates/72417)

<div class="topic-metadata">

**Author:** [@Bruno322](https://discourse.julialang.org/u/Bruno322)\
**Replies:** 3\
**Last updated:** [December 1, 2021, 11:29pm UTC](https://discourse.julialang.org/t/merging-dataframes-on-dates/72417 "2021-12-01T23:29:25Z")

</div>

I’m trying to clean a data set and I am stuck at the last step. The main dataframe, that I call maindf, will contain all the data and has 3000 rows and 200 columns, like this Each row of maindf will be filled with a…

---

## [M1 vs. M1Pro vs. M1Max For DiffEq & Optim](https://discourse.julialang.org/t/m1-vs-m1pro-vs-m1max-for-diffeq-optim/72418)

<div class="topic-metadata">

**Author:** [@donkeysaddle](https://discourse.julialang.org/u/donkeysaddle)\
**Replies:** 0\
**Last updated:** [December 1, 2021, 11:00pm UTC](https://discourse.julialang.org/t/m1-vs-m1pro-vs-m1max-for-diffeq-optim/72418 "2021-12-01T23:00:55Z")

</div>

I think I will experience a performance boost with any of the Arm Macs but I was curious to hear people’s experiences particularly as it pertains to DifferentialEquations.jl and Optim.jl. My question is quite vague becau…

---

## [Lift and @Lift generically](https://discourse.julialang.org/t/lift-and-lift-generically/72399)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 3\
**Last updated:** [December 1, 2021, 8:40pm UTC](https://discourse.julialang.org/t/lift-and-lift-generically/72399 "2021-12-01T20:40:56Z")

</div>

I have some routines that I used for calculations and simulation. Occasionally I want to use those same routines in a Makie GUI using observable Nodes and lift/@lift. In the past I have two versions of the plotting fun…

---

## [New julia 1.7 install with jill: how transfer julia 1.6 packages (macos)](https://discourse.julialang.org/t/new-julia-1-7-install-with-jill-how-transfer-julia-1-6-packages-macos/72394)

<div class="topic-metadata">

**Author:** [@murrayE](https://discourse.julialang.org/u/murrayE)\
**Replies:** 6\
**Last updated:** [December 1, 2021, 8:36pm UTC](https://discourse.julialang.org/t/new-julia-1-7-install-with-jill-how-transfer-julia-1-6-packages-macos/72394 "2021-12-01T20:36:45Z")

</div>

Under macOS I had previously installed julia 1.6\* directly from Download Julia. This created ~/.julia/, which includes subdirectories config, environments, packages, and others. In particular, packages that I install go …

---

## [Border Matrix in Pluto](https://discourse.julialang.org/t/border-matrix-in-pluto/72253)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 4\
**Last updated:** [December 1, 2021, 7:21pm UTC](https://discourse.julialang.org/t/border-matrix-in-pluto/72253 "2021-12-01T19:21:14Z")

</div>

Hi, I was wondering if it is possible to use a bordermatrix in Pluto? I tried the following without success: md" $M = \\bordermatrix{~ & x & y \\cr A & 1 & 0 \\cr B & 0 & 1 \\cr}$ "

---

## [Makie Scatter Plot recipe for vector of custom types](https://discourse.julialang.org/t/makie-scatter-plot-recipe-for-vector-of-custom-types/72255)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 5\
**Last updated:** [December 1, 2021, 7:05pm UTC](https://discourse.julialang.org/t/makie-scatter-plot-recipe-for-vector-of-custom-types/72255 "2021-12-01T19:05:14Z")

</div>

This should be easy. At least it was for plots. I don’t understand what I am doing wrong. Looking for a simple example that shows me how to use convert\_arguments. I think the documentation makes too many assumptions …

---

## [Huge performance fluctuations in parallel benchmark: insights?](https://discourse.julialang.org/t/huge-performance-fluctuations-in-parallel-benchmark-insights/67953)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 52\
**Last updated:** [December 1, 2021, 4:28pm UTC](https://discourse.julialang.org/t/huge-performance-fluctuations-in-parallel-benchmark-insights/67953 "2021-12-01T16:28:17Z")

</div>

I have the following scenario. The function I am evaluating uses multi-threading, and it takes 5 to 6s to finish. But sometimes, to do exactly the same thing, it takes 2, 3 times that time. The machine is not running any…

---

## [Multidimensional array syntax](https://discourse.julialang.org/t/multidimensional-array-syntax/72349)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 11\
**Last updated:** [December 1, 2021, 4:26pm UTC](https://discourse.julialang.org/t/multidimensional-array-syntax/72349 "2021-12-01T16:26:59Z")

</div>

Are there any articles explaining the multidomensional array syntax at a level a complete idiot (me) can understand?

---

## [Multi-threading or multi-processing, how to know which to use and when?](https://discourse.julialang.org/t/multi-threading-or-multi-processing-how-to-know-which-to-use-and-when/72278)

<div class="topic-metadata">

**Author:** [@Lamma](https://discourse.julialang.org/u/Lamma)\
**Replies:** 32\
**Last updated:** [December 1, 2021, 3:23pm UTC](https://discourse.julialang.org/t/multi-threading-or-multi-processing-how-to-know-which-to-use-and-when/72278 "2021-12-01T15:23:52Z")

</div>

I am wanting to run a simple for loop that is writing certain lines from a very large file to a new file based on a if check of pre computed criteria. reader = FASTA.Reader(GzipDecompressorStream(open("/home/people/robm…

---

## [Error: Installing “julia-client@0.12.6” failed.](https://discourse.julialang.org/t/error-installing-julia-client-0-12-6-failed/72381)

<div class="topic-metadata">

**Author:** [@glaicer](https://discourse.julialang.org/u/glaicer)\
**Replies:** 0\
**Last updated:** [December 1, 2021, 2:11pm UTC](https://discourse.julialang.org/t/error-installing-julia-client-0-12-6-failed/72381 "2021-12-01T14:11:35Z")

</div>

Juno: Error installing package julia-client Please check your internet connection, or report this to https://github.com/JunoLab/Juno.jl/issues or https://discourse.julialang.org and we’ll try to help. Error: Installing…

---

## [Braket symbol in Pluto does not work](https://discourse.julialang.org/t/braket-symbol-in-pluto-does-not-work/72376)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 0\
**Last updated:** [December 1, 2021, 1:30pm UTC](https://discourse.julialang.org/t/braket-symbol-in-pluto-does-not-work/72376 "2021-12-01T13:30:39Z")

</div>

Hi all, In the example below, the braket and contents are scrunched together. Am I doing something incorrect or is this a bug?

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

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