# Latest

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

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

**Page:** 976

---

## [Can the result of @time measure the spatial complexity of the algorithm?](https://discourse.julialang.org/t/can-the-result-of-time-measure-the-spatial-complexity-of-the-algorithm/84509)

<div class="topic-metadata">

**Author:** [@F-YF](https://discourse.julialang.org/u/F-YF)\
**Replies:** 10\
**Last updated:** [July 21, 2022, 3:16am UTC](https://discourse.julialang.org/t/can-the-result-of-time-measure-the-spatial-complexity-of-the-algorithm/84509 "2022-07-21T03:16:24Z")

</div>

julia\> function myfunc(n::Int64) D=20 a=rand(D,D) for i in 1:n a\*a end end myfunc (generic function with 1 method) julia\> @time myfunc(100) 0.000193 se…

---

## [\[ANN\] NanoDates.jl](https://discourse.julialang.org/t/ann-nanodates-jl/84557)

<div class="topic-metadata">

**Author:** [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)\
**Replies:** 5\
**Last updated:** [July 21, 2022, 3:02am UTC](https://discourse.julialang.org/t/ann-nanodates-jl/84557 "2022-07-21T03:02:44Z")

</div>

This is to announce NanoDates, a package that lets you use nanosecond resolved dates and ISO8061 timestamps. Please see the docs for more information.

---

## [GitHub CI: How to build my manifest if I want to test on stable and LTS?](https://discourse.julialang.org/t/github-ci-how-to-build-my-manifest-if-i-want-to-test-on-stable-and-lts/84567)

<div class="topic-metadata">

**Author:** [@maxkapur](https://discourse.julialang.org/u/maxkapur)\
**Replies:** 2\
**Last updated:** [July 21, 2022, 2:55am UTC](https://discourse.julialang.org/t/github-ci-how-to-build-my-manifest-if-i-want-to-test-on-stable-and-lts/84567 "2022-07-21T02:55:10Z")

</div>

I am trying to set up a GitHub action that runs tests for my package on the latest LTS (1.6) and the latest stable (1.7, soon to be 1.8) release. Here is my .github/workflows/RunTests.yml file: name: RunTests on: \[push,…

---

## [JuliaCon 2022 Info](https://discourse.julialang.org/t/juliacon-2022-info/84574)

<div class="topic-metadata">

**Author:** [@logankilpatrick](https://discourse.julialang.org/u/logankilpatrick)\
**Replies:** 0\
**Last updated:** [July 21, 2022, 2:43am UTC](https://discourse.julialang.org/t/juliacon-2022-info/84574 "2022-07-21T02:43:07Z")

</div>

JuliaCon 2022 is here! To access the conference resources, make sure to register today! You can keep up with talks as they happen on the https://live.juliacon.org site. JuliaCon T-shirts, Socks, Stickers, and more are av…

---

## [Rank with ties](https://discourse.julialang.org/t/rank-with-ties/84512)

<div class="topic-metadata">

**Author:** [@Nash](https://discourse.julialang.org/u/Nash)\
**Replies:** 5\
**Last updated:** [July 21, 2022, 12:43am UTC](https://discourse.julialang.org/t/rank-with-ties/84512 "2022-07-21T00:43:43Z")

</div>

Suppose I have a vector containing the following integers: \[1 1 1 2 3 5 5 9\] Now I wish to create a vector that ranks the integers in the following way: rank = \[1 1 1 2 3 4 4 5\] The rank essentially answers the questi…

---

## [Max Plus Method for Joint Action Selection: Use-Case and Implementation](https://discourse.julialang.org/t/max-plus-method-for-joint-action-selection-use-case-and-implementation/71847)

<div class="topic-metadata">

**Author:** [@YummyPampers2](https://discourse.julialang.org/u/YummyPampers2)\
**Replies:** 1\
**Last updated:** [July 21, 2022, 12:42am UTC](https://discourse.julialang.org/t/max-plus-method-for-joint-action-selection-use-case-and-implementation/71847 "2022-07-21T00:42:32Z")

</div>

Good Day Folks: Could anyone point me towards a successful implementation (or proxy) of the Max-Plus method for joint selection? If not are there any Markov Decision Process (MDP) or multi-agent Markov decision proce…

---

## [Previewing Documentation from Documenter.jl](https://discourse.julialang.org/t/previewing-documentation-from-documenter-jl/84560)

<div class="topic-metadata">

**Author:** [@liamfdoherty](https://discourse.julialang.org/u/liamfdoherty)\
**Replies:** 2\
**Last updated:** [July 20, 2022, 11:41pm UTC](https://discourse.julialang.org/t/previewing-documentation-from-documenter-jl/84560 "2022-07-20T23:41:58Z")

</div>

Does anybody know if there is a way to preview package documentation from Documenter.jl (i.e., locally before pushing to GitHub)? I am looking for something similar to the serve() functionality in Franklin.jl, and I have…

---

## [Cuda-memcheck reports over 1300 errors with 4 lines of julia code with CUDA.jl](https://discourse.julialang.org/t/cuda-memcheck-reports-over-1300-errors-with-4-lines-of-julia-code-with-cuda-jl/84516)

<div class="topic-metadata">

**Author:** [@Lian\_Yunlong](https://discourse.julialang.org/u/Lian_Yunlong)\
**Replies:** 2\
**Last updated:** [July 20, 2022, 11:39pm UTC](https://discourse.julialang.org/t/cuda-memcheck-reports-over-1300-errors-with-4-lines-of-julia-code-with-cuda-jl/84516 "2022-07-20T23:39:00Z")

</div>

I have a file test.jl of four lines of Julia code using CUDA A = CuArray(rand(1000,1000)); B = CuArray(rand(1000,1000)); C = A \* B; After running the command cuda-memcheck julia test.jl \>\> test.jl.log I have got so m…

---

## [MLStyle.jl difficult pattern](https://discourse.julialang.org/t/mlstyle-jl-difficult-pattern/84561)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 0\
**Last updated:** [July 20, 2022, 11:38pm UTC](https://discourse.julialang.org/t/mlstyle-jl-difficult-pattern/84561 "2022-07-20T23:38:59Z")

</div>

Is it possible to do something like this? using MLStyle @match 1:10 begin \[a, o1..., 5, o2..., b, c\] =\> (a,o1,o2,b,c) end

---

## [Iterating through rows in julia Dataframe](https://discourse.julialang.org/t/iterating-through-rows-in-julia-dataframe/84475)

<div class="topic-metadata">

**Author:** [@ayodyas](https://discourse.julialang.org/u/ayodyas)\
**Replies:** 15\
**Last updated:** [July 20, 2022, 10:08pm UTC](https://discourse.julialang.org/t/iterating-through-rows-in-julia-dataframe/84475 "2022-07-20T22:08:51Z")

</div>

df=DataFrame(p1 = \[1, 2, 3, 4, 5\],p1 = \[10,20,30,40,50\]) df2=DataFrame(q1 = \[1, 12, 13,14, 15\],q2 = \[100,200,300,400,500\]) datas=Dict() for data1 in eachrow(df2) for data in eachrow(df) print("H",data\[1\]," " ,da…

---

## [Error in bulid MPI](https://discourse.julialang.org/t/error-in-bulid-mpi/43948)

<div class="topic-metadata">

**Author:** [@Ke\_Gao](https://discourse.julialang.org/u/Ke_Gao)\
**Replies:** 4\
**Last updated:** [July 20, 2022, 6:38pm UTC](https://discourse.julialang.org/t/error-in-bulid-mpi/43948 "2022-07-20T18:38:41Z")

</div>

Hi, I had an error when I built MPI on my MacBook: (@v1.4) pkg\> build MPI Building MPI → \`~/.julia/packages/MPI/k7f4E/deps/build.log\` ┌ Error: Error building \`MPI\`: │ \[ Info: using system MPI │ ERROR: LoadError: li…

---

## [Error building MPI---ERROR: LoadError: libmpi could not be found](https://discourse.julialang.org/t/error-building-mpi-error-loaderror-libmpi-could-not-be-found/65016)

<div class="topic-metadata">

**Author:** [@QuanlingDeng](https://discourse.julialang.org/u/QuanlingDeng)\
**Replies:** 3\
**Last updated:** [July 20, 2022, 5:54pm UTC](https://discourse.julialang.org/t/error-building-mpi-error-loaderror-libmpi-could-not-be-found/65016 "2022-07-20T17:54:40Z")

</div>

I was trying to build MPI and had the following error (after several searches/tries, see below) (@v1.6) pkg\> build MPI Building MPI → ~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/00488c6fcaf828685c2bc513…

---

## [How to parse an form data with HTTP.jl?](https://discourse.julialang.org/t/how-to-parse-an-form-data-with-http-jl/84523)

<div class="topic-metadata">

**Author:** [@xor0110](https://discourse.julialang.org/u/xor0110)\
**Replies:** 3\
**Last updated:** [July 20, 2022, 5:45pm UTC](https://discourse.julialang.org/t/how-to-parse-an-form-data-with-http-jl/84523 "2022-07-20T17:45:11Z")

</div>

HTTP.Form can take a dictionary of key-value pairs and produce an encoded form string for making POST requests with "Content-Type", "application/x-www-form-urlencoded". How can I take such a request in my server and pars…

---

## [Boundary Value Problem Incompatible With Ensemble Simulations](https://discourse.julialang.org/t/boundary-value-problem-incompatible-with-ensemble-simulations/84233)

<div class="topic-metadata">

**Author:** [@liamfdoherty](https://discourse.julialang.org/u/liamfdoherty)\
**Replies:** 1\
**Last updated:** [July 20, 2022, 5:37pm UTC](https://discourse.julialang.org/t/boundary-value-problem-incompatible-with-ensemble-simulations/84233 "2022-07-20T17:37:05Z")

</div>

Hi all, I have a boundary value differential equation that I would like to solve, and it has a random coefficient. I would like to be able to use the Ensemble Simulation functionality documented here, as I have with ini…

---

## [ModelingToolkit : Incorparating 2nd Order ODE's into functions](https://discourse.julialang.org/t/modelingtoolkit-incorparating-2nd-order-odes-into-functions/84421)

<div class="topic-metadata">

**Author:** [@xztt](https://discourse.julialang.org/u/xztt)\
**Replies:** 8\
**Last updated:** [July 20, 2022, 5:30pm UTC](https://discourse.julialang.org/t/modelingtoolkit-incorparating-2nd-order-odes-into-functions/84421 "2022-07-20T17:30:47Z")

</div>

Hi all, I am looking to incorporate the following valve functions in MTK from a paper the images below give the mathematical description of the valves. The paper can be found here The way I am trying to implement…

---

## [Conjugate inference](https://discourse.julialang.org/t/conjugate-inference/84536)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 4\
**Last updated:** [July 20, 2022, 5:14pm UTC](https://discourse.julialang.org/t/conjugate-inference/84536 "2022-07-20T17:14:22Z")

</div>

Is there a package that analytically and automatically computers posteriors based on conjugate priors? I found GitHub - JuliaStats/ConjugatePriors.jl: A Julia package to support conjugate prior distributions. and the na…

---

## [DoctreePages v1.2.1](https://discourse.julialang.org/t/doctreepages-v1-2-1/84546)

<div class="topic-metadata">

**Author:** [@Rratic](https://discourse.julialang.org/u/Rratic)\
**Replies:** 0\
**Last updated:** [July 20, 2022, 3:41pm UTC](https://discourse.julialang.org/t/doctreepages-v1-2-1/84546 "2022-07-20T15:41:14Z")

</div>

repo here (also read it’s .github/workflows) | sample here Since it’s been quite some time since last release and things have changed quite greatly, I guess it’s the time to publish v1.2 announcement ; and since I haven…

---

## [Nlsolve for find root for a system of ODE for an implicit runge kutta method](https://discourse.julialang.org/t/nlsolve-for-find-root-for-a-system-of-ode-for-an-implicit-runge-kutta-method/84349)

<div class="topic-metadata">

**Author:** [@Vick](https://discourse.julialang.org/u/Vick)\
**Replies:** 32\
**Last updated:** [July 20, 2022, 3:35pm UTC](https://discourse.julialang.org/t/nlsolve-for-find-root-for-a-system-of-ode-for-an-implicit-runge-kutta-method/84349 "2022-07-20T15:35:06Z")

</div>

Hi, I’m new to Julia. I have successfully coded a runge kutta implicit method in Julia on Windows using VS code. I have built everything from scratch. However, the running time is about 5 minutes. So I want to use NLso…

---

## [Is there a way to deepcopy a module?](https://discourse.julialang.org/t/is-there-a-way-to-deepcopy-a-module/84094)

<div class="topic-metadata">

**Author:** [@danielw2904](https://discourse.julialang.org/u/danielw2904)\
**Replies:** 1\
**Last updated:** [July 20, 2022, 3:08pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-deepcopy-a-module/84094 "2022-07-20T15:08:36Z")

</div>

using DeepcopyModules module M; x = 1; f() = (global x += 1); end M2 = deepcopy\_module(M) The package is on github. However, this code crashes. Is there any other way? The error is: main at /buildworker/worker/pack…

---

## [High-order functions prototyping](https://discourse.julialang.org/t/high-order-functions-prototyping/84526)

<div class="topic-metadata">

**Author:** [@dgagnon](https://discourse.julialang.org/u/dgagnon)\
**Replies:** 9\
**Last updated:** [July 20, 2022, 2:56pm UTC](https://discourse.julialang.org/t/high-order-functions-prototyping/84526 "2022-07-20T14:56:44Z")

</div>

I’m an old C/C++ programmer so please forgive me for addressing a problem from that point of view. I have a function that takes, as an argument, another function that the user is expected to supply. A little bit like a …

---

## [Overloading zeros](https://discourse.julialang.org/t/overloading-zeros/84540)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 2\
**Last updated:** [July 20, 2022, 2:39pm UTC](https://discourse.julialang.org/t/overloading-zeros/84540 "2022-07-20T14:39:53Z")

</div>

I find the error message here unclear, it seems to me that the zeros for this new type is clearly defined. What is going on here? Is there any reason not to define new methods to zeros explicitly? julia\> struct A …

---

## [How to make method globally accessible (for interface/protocols/polymorphic types) and avoid "per-module" extension?](https://discourse.julialang.org/t/how-to-make-method-globally-accessible-for-interface-protocols-polymorphic-types-and-avoid-per-module-extension/84533)

<div class="topic-metadata">

**Author:** [@omnifect](https://discourse.julialang.org/u/omnifect)\
**Replies:** 4\
**Last updated:** [July 20, 2022, 2:26pm UTC](https://discourse.julialang.org/t/how-to-make-method-globally-accessible-for-interface-protocols-polymorphic-types-and-avoid-per-module-extension/84533 "2022-07-20T14:26:02Z")

</div>

Hello, I am new to Julia and it’s namespace system. I also don’t know the correct terminology for what I am trying to do (so apologies in advance). I am trying to see how to one could write “polymorphic” types without h…

---

## [Seeking an "isvector" function](https://discourse.julialang.org/t/seeking-an-isvector-function/80173)

<div class="topic-metadata">

**Author:** [@chadagreene](https://discourse.julialang.org/u/chadagreene)\
**Replies:** 48\
**Last updated:** [July 20, 2022, 1:24pm UTC](https://discourse.julialang.org/t/seeking-an-isvector-function/80173 "2022-07-20T13:24:01Z")

</div>

I’m seeking a function similar to Matlab’s isvector, to determine whether a variable is one dimensional. These are the cases where isvector(a) should return true: a = \[1 2 3 4\] a = \[1, 2, 3, 4\] a = \[1 2 3 4\]' a = \[1, 2…

---

## [Convert string "date code" for month and year to proper date type](https://discourse.julialang.org/t/convert-string-date-code-for-month-and-year-to-proper-date-type/84451)

<div class="topic-metadata">

**Author:** [@Nash](https://discourse.julialang.org/u/Nash)\
**Replies:** 8\
**Last updated:** [July 20, 2022, 1:19pm UTC](https://discourse.julialang.org/t/convert-string-date-code-for-month-and-year-to-proper-date-type/84451 "2022-07-20T13:19:47Z")

</div>

I have a data frame with where one of the columns contains a string “date code”. An example of this code is as follows: “04\_22” which indicates the 4th month of the year 2022. “11\_23” would indicate the 11th month of…

---

## [Combining @show with display](https://discourse.julialang.org/t/combining-show-with-display/84522)

<div class="topic-metadata">

**Author:** [@b-fg](https://discourse.julialang.org/u/b-fg)\
**Replies:** 2\
**Last updated:** [July 20, 2022, 1:07pm UTC](https://discourse.julialang.org/t/combining-show-with-display/84522 "2022-07-20T13:07:27Z")

</div>

Hi, I have been looking for a way to output values with their variable name. @show does exactly this, except the output is not as pretty as when using display. Is there a way I can combine both of them and have somethin…

---

## [I got an unknown memory error when using Zygote](https://discourse.julialang.org/t/i-got-an-unknown-memory-error-when-using-zygote/84507)

<div class="topic-metadata">

**Author:** [@F-YF](https://discourse.julialang.org/u/F-YF)\
**Replies:** 0\
**Last updated:** [July 20, 2022, 5:51am UTC](https://discourse.julialang.org/t/i-got-an-unknown-memory-error-when-using-zygote/84507 "2022-07-20T05:51:09Z")

</div>

I don’t know how to describe the problem in my project, but I got the following two simple examples after a series of tests. First of all, the first test looks like this: #test1.jl using Integrals using SciMLSensitivit…

---

## [Failed to precompile DifferentialEquations and DiffEqFlux Julia 1.7.1](https://discourse.julialang.org/t/failed-to-precompile-differentialequations-and-diffeqflux-julia-1-7-1/82551)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 8\
**Last updated:** [July 20, 2022, 12:24pm UTC](https://discourse.julialang.org/t/failed-to-precompile-differentialequations-and-diffeqflux-julia-1-7-1/82551 "2022-07-20T12:24:40Z")

</div>

Hi, I just updated all packages \]up and out of a sudden precompilation failed which worked before. Precompiling failed after \]up julia\> import Pkg; Pkg.precompile() Precompiling project... ✗ OrdinaryDiffEq ✗ Trebuc…

---

## [How to add metadata such as labels to nodes in Graphs.jl?](https://discourse.julialang.org/t/how-to-add-metadata-such-as-labels-to-nodes-in-graphs-jl/84513)

<div class="topic-metadata">

**Author:** [@tiZ](https://discourse.julialang.org/u/tiZ)\
**Replies:** 4\
**Last updated:** [July 20, 2022, 12:21pm UTC](https://discourse.julialang.org/t/how-to-add-metadata-such-as-labels-to-nodes-in-graphs-jl/84513 "2022-07-20T12:21:42Z")

</div>

Hi, I wonder if there some convenient way to add the labels to nodes in a graph, I’m using Graphs.jl currently. I have try to record the (node Number =\> label) in a separated dictionary, but I think the order of node…

---

## [CUDA.jl mystery : VSCode + Julia extension works fine but commandline run fails](https://discourse.julialang.org/t/cuda-jl-mystery-vscode-julia-extension-works-fine-but-commandline-run-fails/84524)

<div class="topic-metadata">

**Author:** [@Lian\_Yunlong](https://discourse.julialang.org/u/Lian_Yunlong)\
**Replies:** 4\
**Last updated:** [July 20, 2022, 12:10pm UTC](https://discourse.julialang.org/t/cuda-jl-mystery-vscode-julia-extension-works-fine-but-commandline-run-fails/84524 "2022-07-20T12:10:33Z")

</div>

Hi, I have encountered some mysterious issues with CUDA.jl. When I run the code from within the file (in VSCode + Julia extension), everything seems fine and I got the expected answer. But if I run the same code in comm…

---

## [VSCode Julia debugger usability](https://discourse.julialang.org/t/vscode-julia-debugger-usability/58121)

<div class="topic-metadata">

**Author:** [@Zhong\_Pan](https://discourse.julialang.org/u/Zhong_Pan)\
**Replies:** 19\
**Last updated:** [July 20, 2022, 12:16pm UTC](https://discourse.julialang.org/t/vscode-julia-debugger-usability/58121 "2022-07-20T12:16:46Z")

</div>

This is not a new topic, and I am aware progress is being made… Just would like to bump its priority if possible. :slight\_smile: Currently the VSCode Julia debugger’s standard mode is too slow for practical use if large…

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

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