# General Usage

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

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

**Page:** 208

---

## [NonlinearSolve.jl - sol.stats returns nothing](https://discourse.julialang.org/t/nonlinearsolve-jl-sol-stats-returns-nothing/109301)

<div class="topic-metadata">

**Author:** [@jcass](https://discourse.julialang.org/u/jcass)\
**Replies:** 5\
**Last updated:** [January 26, 2024, 2:03pm UTC](https://discourse.julialang.org/t/nonlinearsolve-jl-sol-stats-returns-nothing/109301 "2024-01-26T14:03:49Z")

</div>

I’m struggling to locate the solver stats in NonlinearSolve.jl. After running the basic example from the docs, using NonlinearSolve function f(u, p) u .\* u .- p end u0 = \[1.0, 1.0\] p = 2.0 prob = NonlinearProblem(f…

---

## [Julia vs C++ for Automated Reasoning](https://discourse.julialang.org/t/julia-vs-c-for-automated-reasoning/109268)

<div class="topic-metadata">

**Author:** [@Rajaram\_Venkataraman](https://discourse.julialang.org/u/Rajaram_Venkataraman)\
**Replies:** 3\
**Last updated:** [January 26, 2024, 1:21pm UTC](https://discourse.julialang.org/t/julia-vs-c-for-automated-reasoning/109268 "2024-01-26T13:21:41Z")

</div>

Hello - I have to develop an automated reasoning system that combines the power of f language models and graph processing rather than HoQ, Isabelle or LEAN type approach. It requires new development and plan to use eithe…

---

## [Who uses Dates.adjust?](https://discourse.julialang.org/t/who-uses-dates-adjust/109030)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 2\
**Last updated:** [January 26, 2024, 11:56am UTC](https://discourse.julialang.org/t/who-uses-dates-adjust/109030 "2024-01-26T11:56:21Z")

</div>

Dates.adjust is exported but has no docstring and no manual entry. I’m wondering if we can remove the export before it gets locked in with a docstring in 1.11. Who uses Dates.adjust?

---

## [Plots.jl in a docker container](https://discourse.julialang.org/t/plots-jl-in-a-docker-container/109254)

<div class="topic-metadata">

**Author:** [@bernhard](https://discourse.julialang.org/u/bernhard)\
**Replies:** 4\
**Last updated:** [January 26, 2024, 11:49am UTC](https://discourse.julialang.org/t/plots-jl-in-a-docker-container/109254 "2024-01-26T11:49:42Z")

</div>

I am trying to use Plots.jl in a docker container (FROM julia:1.9.4-bookworm). I think I am able to create the plots, but I get various warnings and errors from qt. Examples include: qt.core.plugin.factoryloader: Got …

---

## [Polyfit (in Polynomials.jl ?) not working in new Julia version?](https://discourse.julialang.org/t/polyfit-in-polynomials-jl-not-working-in-new-julia-version/108815)

<div class="topic-metadata">

**Author:** [@CosmoProf](https://discourse.julialang.org/u/CosmoProf)\
**Replies:** 17\
**Last updated:** [January 26, 2024, 7:00am UTC](https://discourse.julialang.org/t/polyfit-in-polynomials-jl-not-working-in-new-julia-version/108815 "2024-01-26T07:00:38Z")

</div>

Hi, has the Polynomials.polyfit command been discontinued or changed? I recently updated from Julia (JuliaPro) 1.4.2-1 to Julia 1.10.0, and ran a large simulation program in the new version, which crashed with an error …

---

## [\`munmap\_chunk(): invalid pointer\` when wrapping a C++ package](https://discourse.julialang.org/t/munmap-chunk-invalid-pointer-when-wrapping-a-c-package/109205)

<div class="topic-metadata">

**Author:** [@biona001](https://discourse.julialang.org/u/biona001)\
**Replies:** 1\
**Last updated:** [January 26, 2024, 5:00am UTC](https://discourse.julialang.org/t/munmap-chunk-invalid-pointer-when-wrapping-a-c-package/109205 "2024-01-26T05:00:48Z")

</div>

Hello community, I’ve been trying to wrap a C++ package using CxxWrap.jl. My wrapper code and CMakeList.txt are available here, and they seem to work locally. Then, using this build\_tarballs.jl I created a jll package g…

---

## [Get indices of unique rows in 2D array](https://discourse.julialang.org/t/get-indices-of-unique-rows-in-2d-array/109208)

<div class="topic-metadata">

**Author:** [@dalarev](https://discourse.julialang.org/u/dalarev)\
**Replies:** 12\
**Last updated:** [January 25, 2024, 11:07pm UTC](https://discourse.julialang.org/t/get-indices-of-unique-rows-in-2d-array/109208 "2024-01-25T23:07:04Z")

</div>

MWE: A = \[1 2 ; 3 4 ; 1 2 \] I want as output the row indices 1, 2. Using unique, one can access the indices of unique values by using i = unique(i -\> A\[i\], eachindex(A)), however I don’t know how to modify this for …

---

## [\[Workgroup\] JuliaHealth Meeting (Americas/Europe/Africa) -- January 25th, 2024](https://discourse.julialang.org/t/workgroup-juliahealth-meeting-americas-europe-africa-january-25th-2024/109181)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 3\
**Last updated:** [January 25, 2024, 9:40pm UTC](https://discourse.julialang.org/t/workgroup-juliahealth-meeting-americas-europe-africa-january-25th-2024/109181 "2024-01-25T21:40:49Z")

</div>

Hi folks and Happy New Year! :partying\_face: Welcome to 2024! I hope the year so far has been off to a great start for you all! I am excited to announce the first monthly meeting for the JuliaHealth Americas/Europe/Afric…

---

## [ChunkSplitters.jl: Simple parallel chunk splitter](https://discourse.julialang.org/t/chunksplitters-jl-simple-parallel-chunk-splitter/87945)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 10\
**Last updated:** [January 25, 2024, 2:02pm UTC](https://discourse.julialang.org/t/chunksplitters-jl-simple-parallel-chunk-splitter/87945 "2024-01-25T14:02:33Z")

</div>

I have just put up this small package that provides a chunks function to be used within threaded loops. It is something that I find useful and appears somewhat often here: This is so basic that I have always the impre…

---

## [Independent threads much slower by parallelizable](https://discourse.julialang.org/t/independent-threads-much-slower-by-parallelizable/109227)

<div class="topic-metadata">

**Author:** [@jabru](https://discourse.julialang.org/u/jabru)\
**Replies:** 2\
**Last updated:** [January 25, 2024, 10:26am UTC](https://discourse.julialang.org/t/independent-threads-much-slower-by-parallelizable/109227 "2024-01-25T10:26:42Z")

</div>

Hi there. So soon I will give a talk on the Julia programming language in my research group. In that presentation, I wanted to show how well parallelization works in Julia. So I decided to take the following as an exam…

---

## [Export functions](https://discourse.julialang.org/t/export-functions/109235)

<div class="topic-metadata">

**Author:** [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Replies:** 3\
**Last updated:** [January 25, 2024, 5:31am UTC](https://discourse.julialang.org/t/export-functions/109235 "2024-01-25T05:31:10Z")

</div>

I am using a package witten by someone. Somes functions are defined in the module, but not exported. I cannot invoke them in the REPL. How can I modify the original codes to make these functions visible?

---

## [Endatabas: An SQL Document Database with Full History](https://discourse.julialang.org/t/endatabas-an-sql-document-database-with-full-history/109230)

<div class="topic-metadata">

**Author:** [@g-gundam](https://discourse.julialang.org/u/g-gundam)\
**Replies:** 0\
**Last updated:** [January 25, 2024, 2:15am UTC](https://discourse.julialang.org/t/endatabas-an-sql-document-database-with-full-history/109230 "2024-01-25T02:15:37Z")

</div>

I was recently introduced to a new database called Endatabas, and the way it works is so interesting to me. Check their very brief intro video out: My takeaways It has no schema. When you insert data, the…

---

## [Documenter.jl: ERROR: LoadError: The repo path... should not contain the protocol](https://discourse.julialang.org/t/documenter-jl-error-loaderror-the-repo-path-should-not-contain-the-protocol/109224)

<div class="topic-metadata">

**Author:** [@mpeters2](https://discourse.julialang.org/u/mpeters2)\
**Replies:** 2\
**Last updated:** [January 25, 2024, 2:04am UTC](https://discourse.julialang.org/t/documenter-jl-error-loaderror-the-repo-path-should-not-contain-the-protocol/109224 "2024-01-25T02:04:18Z")

</div>

I’m running a Documenter.jl action on Github, and I’m getting this cryptic error. Does anyone know what it means? ERROR: LoadError: The repo path https://github.com/mpeters2/PsychoJL.jl.git should not contain the proto…

---

## [SVector from concat of subvectors](https://discourse.julialang.org/t/svector-from-concat-of-subvectors/109215)

<div class="topic-metadata">

**Author:** [@Domenico\_Lahaye](https://discourse.julialang.org/u/Domenico_Lahaye)\
**Replies:** 10\
**Last updated:** [January 24, 2024, 11:28pm UTC](https://discourse.julialang.org/t/svector-from-concat-of-subvectors/109215 "2024-01-24T23:28:05Z")

</div>

Greetings. I am seeking to replace # generates local stiffness matrix function genLocStiffMat(element::Element) h = element.area e1 = element.e1 e2 = element.e2 Iloc = SVector(e1, e1, e2, e2…

---

## [Passing struct as argument to optimizer](https://discourse.julialang.org/t/passing-struct-as-argument-to-optimizer/109209)

<div class="topic-metadata">

**Author:** [@structural](https://discourse.julialang.org/u/structural)\
**Replies:** 2\
**Last updated:** [January 24, 2024, 9:38pm UTC](https://discourse.julialang.org/t/passing-struct-as-argument-to-optimizer/109209 "2024-01-24T21:38:51Z")

</div>

Is it possible to pass a struct of parameters as an argument to an optimizer? The example below estimates an OLS model in which the intercept and slope are passed a vector p. function ssr(y,x,p) return sum((y .- (p\[…

---

## [IJulia problem?](https://discourse.julialang.org/t/ijulia-problem/109194)

<div class="topic-metadata">

**Author:** [@Ronneesley](https://discourse.julialang.org/u/Ronneesley)\
**Replies:** 5\
**Last updated:** [January 24, 2024, 8:54pm UTC](https://discourse.julialang.org/t/ijulia-problem/109194 "2024-01-24T20:54:40Z")

</div>

Hello, I created a package called GeometriaPlana at my projects. In the iteractive terminal this dev project run perfectly, but at Jupyter via IJulia, this project throw an error. ArgumentError: Package GeometriaPlana …

---

## [Jll package is pointing to an older artifacts file?](https://discourse.julialang.org/t/jll-package-is-pointing-to-an-older-artifacts-file/109183)

<div class="topic-metadata">

**Author:** [@biona001](https://discourse.julialang.org/u/biona001)\
**Replies:** 7\
**Last updated:** [January 24, 2024, 6:17pm UTC](https://discourse.julialang.org/t/jll-package-is-pointing-to-an-older-artifacts-file/109183 "2024-01-24T18:17:44Z")

</div>

I am experimenting with BinaryBuilder.jl and jll packages. My Julia version is 1.8.4. I built ghostbasil\_jll which is now on version 0.0.11+0. I then install this package locally via \]add https://github.com/biona001/gho…

---

## [Individual threads superfast, while sync really slow with virtually no communication](https://discourse.julialang.org/t/individual-threads-superfast-while-sync-really-slow-with-virtually-no-communication/109203)

<div class="topic-metadata">

**Author:** [@jabru](https://discourse.julialang.org/u/jabru)\
**Replies:** 4\
**Last updated:** [January 24, 2024, 5:56pm UTC](https://discourse.julialang.org/t/individual-threads-superfast-while-sync-really-slow-with-virtually-no-communication/109203 "2024-01-24T17:56:24Z")

</div>

Hey there! So I am currently trying to understand how parallelization works in Julia, as a practice I tried writing this nice pi estimator: function estimate\_pi(number) m=0. for i=1:number x=rand() …

---

## [Problem with plotting large time series data sets with GLMakie](https://discourse.julialang.org/t/problem-with-plotting-large-time-series-data-sets-with-glmakie/109136)

<div class="topic-metadata">

**Author:** [@marast](https://discourse.julialang.org/u/marast)\
**Replies:** 1\
**Last updated:** [January 24, 2024, 4:25pm UTC](https://discourse.julialang.org/t/problem-with-plotting-large-time-series-data-sets-with-glmakie/109136 "2024-01-24T16:25:55Z")

</div>

Hello, I am plotting large time series data sets with GLMakie. In some cases I get a time out from my graphics driver. Then the plotting fails and sometimes julia freezes or crashes. I use the integrated graphics of my …

---

## [@inbounds does nothing when converting Cartesian to linear Index](https://discourse.julialang.org/t/inbounds-does-nothing-when-converting-cartesian-to-linear-index/109201)

<div class="topic-metadata">

**Author:** [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Replies:** 4\
**Last updated:** [January 24, 2024, 4:01pm UTC](https://discourse.julialang.org/t/inbounds-does-nothing-when-converting-cartesian-to-linear-index/109201 "2024-01-24T16:01:29Z")

</div>

Hi, I do not understand the profiling of the following MWE. using BenchmarkTools using Random function weirdsum(a,lis,ci) li = @inbounds lis\[ci\] ac = @inbounds a\[ci\] al = @inbounds a\[li\] return ac+al e…

---

## [Using a function on each row of a matrix and getting a similar matrix back](https://discourse.julialang.org/t/using-a-function-on-each-row-of-a-matrix-and-getting-a-similar-matrix-back/109162)

<div class="topic-metadata">

**Author:** [@aris](https://discourse.julialang.org/u/aris)\
**Replies:** 13\
**Last updated:** [January 24, 2024, 2:40pm UTC](https://discourse.julialang.org/t/using-a-function-on-each-row-of-a-matrix-and-getting-a-similar-matrix-back/109162 "2024-01-24T14:40:53Z")

</div>

Suppose we have a function acting on a 3-element vector, function foo(xyz) a = xyz\[1\]+1 b = xyz\[2\]\*5 c = xyz\[3\]/2 return\[a,b,c\] end It works fine if I use a vector as an input, like foo(\[1,2,3\]), but what if I’d l…

---

## [Unable to sum CuArray with Julia 1.10.0](https://discourse.julialang.org/t/unable-to-sum-cuarray-with-julia-1-10-0/109100)

<div class="topic-metadata">

**Author:** [@Avec](https://discourse.julialang.org/u/Avec)\
**Replies:** 3\
**Last updated:** [January 24, 2024, 1:56pm UTC](https://discourse.julialang.org/t/unable-to-sum-cuarray-with-julia-1-10-0/109100 "2024-01-24T13:56:09Z")

</div>

Hi all, I have just updated my julia from 1.8.3 to 1.10.1 an I struggle with summing a CuArray. Following lines k\_ssim = exp.(-(-5:1:5).^2/(2\*1.5^2)) k\_ssim = k\_ssim |\> gpu sum(k\_ssim) returns LoadError: MethodError: …

---

## [Issue while using nested ForwardDiff.Dual](https://discourse.julialang.org/t/issue-while-using-nested-forwarddiff-dual/107923)

<div class="topic-metadata">

**Author:** [@Pablo\_Marchant](https://discourse.julialang.org/u/Pablo_Marchant)\
**Replies:** 3\
**Last updated:** [January 24, 2024, 1:28pm UTC](https://discourse.julialang.org/t/issue-while-using-nested-forwarddiff-dual/107923 "2024-01-24T13:28:14Z")

</div>

Hi! I’ve been working on some code that makes use of the dual number implementation in ForwardDiff.Dual. I end up using the dual numbers directly rather than through the functions provided by ForwardDiff as I’ve found i…

---

## [GLib-GIO-WARNING](https://discourse.julialang.org/t/glib-gio-warning/109186)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 0\
**Last updated:** [January 24, 2024, 7:40am UTC](https://discourse.julialang.org/t/glib-gio-warning/109186 "2024-01-24T07:40:03Z")

</div>

Since I installed Julia 1.10, I get this: (process:19308): GLib-GIO-WARNING \*\*: 08:25:31.129: Failed to open application manifest \`C:\\Windows\\SystemApps\\Microsoft.MicrosoftEdge\_8wekyb3d8bbwe\\AppxManifest.xml' There is …

---

## [Can StackOverflow exceptions be reliably caught?](https://discourse.julialang.org/t/can-stackoverflow-exceptions-be-reliably-caught/109178)

<div class="topic-metadata">

**Author:** [@oxinabox](https://discourse.julialang.org/u/oxinabox)\
**Replies:** 1\
**Last updated:** [January 24, 2024, 4:13am UTC](https://discourse.julialang.org/t/can-stackoverflow-exceptions-be-reliably-caught/109178 "2024-01-24T04:13:49Z")

</div>

In several languages you can’t catch StackOverflowExceptions (C# for example) I believe this is because the stack is full so there is no space left to put the error handling frames. Other languages I believe keep some …

---

## [GLIBCXX\_3.4.26 not available -- PackageCompiler.jl -- should I recompile julia?](https://discourse.julialang.org/t/glibcxx-3-4-26-not-available-packagecompiler-jl-should-i-recompile-julia/109147)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 1\
**Last updated:** [January 24, 2024, 3:59am UTC](https://discourse.julialang.org/t/glibcxx-3-4-26-not-available-packagecompiler-jl-should-i-recompile-julia/109147 "2024-01-24T03:59:05Z")

</div>

I’m running an Ubuntu 18.04.2 version of Linux on wsl version 1,0. It comes with a GCC 7.5.0-3ubuntu1~18.04. I’ve installed the latest julia prebuilt version 1.10.0. It runs fine. I have a problem, when I use the pac…

---

## [Reducing allocations in quadgk within loop](https://discourse.julialang.org/t/reducing-allocations-in-quadgk-within-loop/109127)

<div class="topic-metadata">

**Author:** [@physh](https://discourse.julialang.org/u/physh)\
**Replies:** 7\
**Last updated:** [January 24, 2024, 2:10am UTC](https://discourse.julialang.org/t/reducing-allocations-in-quadgk-within-loop/109127 "2024-01-24T02:10:33Z")

</div>

Hi all, I try to optimize some code which calls quadgk many times on a matrix. A MWE is using SpecialFunctions using QuadGK Lsum = 2 v\_arr = zeros(100,Lsum+1); alpha\_arr = rand(100); gamma\_dict = Dict{Float64,Float64}…

---

## [Question Julia best practices for structs of numbers](https://discourse.julialang.org/t/question-julia-best-practices-for-structs-of-numbers/109164)

<div class="topic-metadata">

**Author:** [@Devetak](https://discourse.julialang.org/u/Devetak)\
**Replies:** 7\
**Last updated:** [January 23, 2024, 9:59pm UTC](https://discourse.julialang.org/t/question-julia-best-practices-for-structs-of-numbers/109164 "2024-01-23T21:59:21Z")

</div>

Hello. As the title suggests, I have a struct of the form: struct Foo arr int end Of course, then: myFoo = Foo(rand(5), 2) myFoo.int = 3 This code errors. However, I can still do myFoo.arr .= rand(5). Suppose…

---

## [Which Lock to use when locking external stateful commands like git or file systems?](https://discourse.julialang.org/t/which-lock-to-use-when-locking-external-stateful-commands-like-git-or-file-systems/109161)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 7\
**Last updated:** [January 23, 2024, 9:58pm UTC](https://discourse.julialang.org/t/which-lock-to-use-when-locking-external-stateful-commands-like-git-or-file-systems/109161 "2024-01-23T21:58:10Z")

</div>

Hi, I am wondering whether there is a standard Lock object I can use to secure something like git add -A git commit -m "this should be run together"

---

## [Different Methods of Creating a Pkg?](https://discourse.julialang.org/t/different-methods-of-creating-a-pkg/108273)

<div class="topic-metadata">

**Author:** [@benslinux](https://discourse.julialang.org/u/benslinux)\
**Replies:** 19\
**Last updated:** [January 23, 2024, 1:34pm UTC](https://discourse.julialang.org/t/different-methods-of-creating-a-pkg/108273 "2024-01-23T13:34:31Z")

</div>

I’m new to creating pkgs in Julia and have found two methods that work. I’m interested to know if what I’ve written here is accurate and if those with more experience or an opinion on the process would share their input.…

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

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