# Latest

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

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

**Page:** 961

---

## [What is 0.14\*300?](https://discourse.julialang.org/t/what-is-0-14-300/85397)

<div class="topic-metadata">

**Author:** [@thompsonmj](https://discourse.julialang.org/u/thompsonmj)\
**Replies:** 7\
**Last updated:** [August 6, 2022, 2:14pm UTC](https://discourse.julialang.org/t/what-is-0-14-300/85397 "2022-08-06T14:14:10Z")

</div>

julia\> 0.14\*300 42.00000000000001 julia\> Int32(0.14\*300) ERROR: InexactError: Int32(42.00000000000001) Stacktrace: \[1\] Int32(x::Float64) @ Base .\\float.jl:791 \[2\] top-level scope @ REPL\[12\]:1 Or for that matter…

---

## [Julia vs Python almost the same performance but Python with taichi is 100x faster. Why?And can be improved?](https://discourse.julialang.org/t/julia-vs-python-almost-the-same-performance-but-python-with-taichi-is-100x-faster-why-and-can-be-improved/85239)

<div class="topic-metadata">

**Author:** [@ajsagit](https://discourse.julialang.org/u/ajsagit)\
**Replies:** 13\
**Last updated:** [August 6, 2022, 1:07pm UTC](https://discourse.julialang.org/t/julia-vs-python-almost-the-same-performance-but-python-with-taichi-is-100x-faster-why-and-can-be-improved/85239 "2022-08-06T13:07:33Z")

</div>

Dudes,recently I reviewed Python and the Taichi package. As lots of users mentioned, the performance enchanced almost 100x by Taichi. And, when I compare with the counting primes code between Julia and Python, it seems t…

---

## [Copulas in Julia?](https://discourse.julialang.org/t/copulas-in-julia/10285)

<div class="topic-metadata">

**Author:** [@floswald](https://discourse.julialang.org/u/floswald)\
**Replies:** 17\
**Last updated:** [August 6, 2022, 11:24am UTC](https://discourse.julialang.org/t/copulas-in-julia/10285 "2022-08-06T11:24:47Z")

</div>

hi all, I am looking for a native julia Copula package. I have come across https://github.com/JuliaFinMetriX/Copulas.jl but it seems quite something to install - plus I can’t figure out the most basic things from the d…

---

## [@gif without saving all images](https://discourse.julialang.org/t/gif-without-saving-all-images/85160)

<div class="topic-metadata">

**Author:** [@qwerty](https://discourse.julialang.org/u/qwerty)\
**Replies:** 5\
**Last updated:** [August 6, 2022, 10:22am UTC](https://discourse.julialang.org/t/gif-without-saving-all-images/85160 "2022-08-06T10:22:47Z")

</div>

Is it possible to generate an animation with @gif without saving all images to disk?

---

## [Doctest, terminal size, and show's limit interact poorly](https://discourse.julialang.org/t/doctest-terminal-size-and-shows-limit-interact-poorly/85372)

<div class="topic-metadata">

**Author:** [@dsweber2](https://discourse.julialang.org/u/dsweber2)\
**Replies:** 2\
**Last updated:** [August 6, 2022, 9:13am UTC](https://discourse.julialang.org/t/doctest-terminal-size-and-shows-limit-interact-poorly/85372 "2022-08-06T09:13:50Z")

</div>

For jldoctests, is there a way to deal with the variation in size caused by show’s limit property? This is causing local doctests to execute fine, but when I push to github, they break. Simple working example: if I gene…

---

## [\[Markdown Pkg\] Issues with parsing of nested list](https://discourse.julialang.org/t/markdown-pkg-issues-with-parsing-of-nested-list/85211)

<div class="topic-metadata">

**Author:** [@o314](https://discourse.julialang.org/u/o314)\
**Replies:** 2\
**Last updated:** [August 3, 2022, 5:12am UTC](https://discourse.julialang.org/t/markdown-pkg-issues-with-parsing-of-nested-list/85211 "2022-08-03T05:12:03Z")

</div>

I need to parse a very simple nested list with julia markdown, but can’t get it correctly. The doc states to insert some newline. It works upto level 2, but it does not seem to work at depth 3 and more. LIST THAT BUGS …

---

## [Bucket sorting in Julia](https://discourse.julialang.org/t/bucket-sorting-in-julia/85275)

<div class="topic-metadata">

**Author:** [@Alejandro\_Quiaro\_San](https://discourse.julialang.org/u/Alejandro_Quiaro_San)\
**Replies:** 9\
**Last updated:** [August 6, 2022, 2:41am UTC](https://discourse.julialang.org/t/bucket-sorting-in-julia/85275 "2022-08-06T02:41:56Z")

</div>

Hello guys, I wrote a bucket sorting algorithm in Julia, which apparently is not available in the built-in modules, or in any other library. I will be using this bucket sorting for ray tracing, and I need the code to be …

---

## [In a set of related packages, where is pre-compilation best done?](https://discourse.julialang.org/t/in-a-set-of-related-packages-where-is-pre-compilation-best-done/85375)

<div class="topic-metadata">

**Author:** [@Alec\_Loudenback](https://discourse.julialang.org/u/Alec_Loudenback)\
**Replies:** 0\
**Last updated:** [August 6, 2022, 1:49am UTC](https://discourse.julialang.org/t/in-a-set-of-related-packages-where-is-pre-compilation-best-done/85375 "2022-08-06T01:49:02Z")

</div>

I am in the process of abstracting out some core functionality and methods from packages in the JuliaActuary ecosystem into a “Core” package. Is it always good to precompile code where it’s defined? E.g. in the “Core” p…

---

## [Regarding use of Max in Jump code](https://discourse.julialang.org/t/regarding-use-of-max-in-jump-code/84837)

<div class="topic-metadata">

**Author:** [@Ali9266](https://discourse.julialang.org/u/Ali9266)\
**Replies:** 30\
**Last updated:** [August 5, 2022, 11:57pm UTC](https://discourse.julialang.org/t/regarding-use-of-max-in-jump-code/84837 "2022-08-05T23:57:31Z")

</div>

Objective function is to minimize Z(i) =T(i)+E(i) ; i = 1:n where T(i) = max\[ x(i) - y(i), 0\] and E = max\[ y(i) - x(i), 0\] Please help Also , how can we take absolute values in Jump

---

## [How do I customize the derivative of a matrix using Zygote: @adjoint](https://discourse.julialang.org/t/how-do-i-customize-the-derivative-of-a-matrix-using-zygote-adjoint/85176)

<div class="topic-metadata">

**Author:** [@F-YF](https://discourse.julialang.org/u/F-YF)\
**Replies:** 2\
**Last updated:** [August 5, 2022, 10:26pm UTC](https://discourse.julialang.org/t/how-do-i-customize-the-derivative-of-a-matrix-using-zygote-adjoint/85176 "2022-08-05T22:26:58Z")

</div>

Let’s say I have a matrix A, and each of the entries of this matrix A is the function of x. And then we have matrix B, and the entries in matrix B are the derivatives of the entries in matrix A with respect to x. When I …

---

## [Can Flux handle multiple GPUs?](https://discourse.julialang.org/t/can-flux-handle-multiple-gpus/85323)

<div class="topic-metadata">

**Author:** [@Lewis\_Hein](https://discourse.julialang.org/u/Lewis_Hein)\
**Replies:** 16\
**Last updated:** [August 5, 2022, 10:23pm UTC](https://discourse.julialang.org/t/can-flux-handle-multiple-gpus/85323 "2022-08-05T22:23:09Z")

</div>

I am playing around with ML in Julia and stumbled on a source of cheap nvidia Quadro K2000s. Far from modern, I know, but I can’t afford modern hardware for side projects. If I stuck 4 of them in 1 tower, would Flux/Cuda…

---

## [Is there a way to create a comprehensive set of conditional combinations](https://discourse.julialang.org/t/is-there-a-way-to-create-a-comprehensive-set-of-conditional-combinations/85368)

<div class="topic-metadata">

**Author:** [@phantom](https://discourse.julialang.org/u/phantom)\
**Replies:** 11\
**Last updated:** [August 5, 2022, 9:11pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-create-a-comprehensive-set-of-conditional-combinations/85368 "2022-08-05T21:11:09Z")

</div>

Hi I was just wondering if there was a way to generate a combinatorial collection subject to some condition. For example using the Combinatorics package If I can generate all combinations of some vector collect(combina…

---

## [Run a command in a new terminal window](https://discourse.julialang.org/t/run-a-command-in-a-new-terminal-window/37739)

<div class="topic-metadata">

**Author:** [@colintbowers](https://discourse.julialang.org/u/colintbowers)\
**Replies:** 19\
**Last updated:** [August 5, 2022, 9:09pm UTC](https://discourse.julialang.org/t/run-a-command-in-a-new-terminal-window/37739 "2022-08-05T21:09:32Z")

</div>

Hi all, I’m trying to run a Command asynchronously and direct the output to a new terminal window. I understand that I can do this: run(pipeline(\`echo hello\`, stdout="out.txt")) which works to re-direct the output to …

---

## [Polynomial fitting with all fitting feedback (chi-squared, etc.)](https://discourse.julialang.org/t/polynomial-fitting-with-all-fitting-feedback-chi-squared-etc/85122)

<div class="topic-metadata">

**Author:** [@CosmoProf](https://discourse.julialang.org/u/CosmoProf)\
**Replies:** 1\
**Last updated:** [August 5, 2022, 9:00pm UTC](https://discourse.julialang.org/t/polynomial-fitting-with-all-fitting-feedback-chi-squared-etc/85122 "2022-08-05T21:00:33Z")

</div>

Hi, I’m familiar with ‘’‘PolyFit’‘’ for fitting polynomials to data, but that algorithm just returns the best-fit polynomial coefficients. Is there any easy way to automatically get back more of the useful fitting result…

---

## [Funny things from Julia YT channel](https://discourse.julialang.org/t/funny-things-from-julia-yt-channel/84273)

<div class="topic-metadata">

**Author:** [@KZiemian](https://discourse.julialang.org/u/KZiemian)\
**Replies:** 5\
**Last updated:** [August 5, 2022, 7:24pm UTC](https://discourse.julialang.org/t/funny-things-from-julia-yt-channel/84273 "2022-08-05T19:24:35Z")

</div>

This is just off topic for funny things that were said about Julia on Julia YT channel. I hope that they make you smile like they made me. Feel free to add all others funny about Julia that you see or hear. It should n…

---

## [Package installation problem](https://discourse.julialang.org/t/package-installation-problem/85038)

<div class="topic-metadata">

**Author:** [@mwsohn](https://discourse.julialang.org/u/mwsohn)\
**Replies:** 3\
**Last updated:** [August 5, 2022, 7:15pm UTC](https://discourse.julialang.org/t/package-installation-problem/85038 "2022-08-05T19:15:48Z")

</div>

I am using Julia v1.7.3 and am trying to update StaticArrays.jl to 1.5.2. No matter what I do, I have this issue with unsatisfiable requirments. My ultimate goal is to install Survey.jl. I would appreciate any help on th…

---

## [What is the fastest method to shift matrix?](https://discourse.julialang.org/t/what-is-the-fastest-method-to-shift-matrix/85261)

<div class="topic-metadata">

**Author:** [@Amro](https://discourse.julialang.org/u/Amro)\
**Replies:** 43\
**Last updated:** [August 5, 2022, 6:20pm UTC](https://discourse.julialang.org/t/what-is-the-fastest-method-to-shift-matrix/85261 "2022-08-05T18:20:23Z")

</div>

I want to shift a sparse matrix (A) one digit to left with adding zeros in the first column at the right. For that I am multiplying the matrix with Rotate. However, when the matrix is big in size and diversity of values,…

---

## [EnsembleProblem with SteadyStateProblem in Zygote](https://discourse.julialang.org/t/ensembleproblem-with-steadystateproblem-in-zygote/85018)

<div class="topic-metadata">

**Author:** [@kcqpo](https://discourse.julialang.org/u/kcqpo)\
**Replies:** 5\
**Last updated:** [August 5, 2022, 6:49pm UTC](https://discourse.julialang.org/t/ensembleproblem-with-steadystateproblem-in-zygote/85018 "2022-08-05T18:49:10Z")

</div>

Is there a premade parallel simulation version of SteadyStateProblem (currently using a for loop)? I am assuming there isn’t because EnsembleProblem expects tspan which I don’t provide. My goal is to obtain the steady st…

---

## [Error while reading and writing raster dataset using ArchGDAL](https://discourse.julialang.org/t/error-while-reading-and-writing-raster-dataset-using-archgdal/85268)

<div class="topic-metadata">

**Author:** [@anu21](https://discourse.julialang.org/u/anu21)\
**Replies:** 2\
**Last updated:** [August 5, 2022, 6:20pm UTC](https://discourse.julialang.org/t/error-while-reading-and-writing-raster-dataset-using-archgdal/85268 "2022-08-05T18:20:36Z")

</div>

I am new to the Julia. I am using ArchGDAL to open and write raster data, but I keep getting this error. GDALError (CE\_Failure, code 1): GDALOpen() called on “/path/to/file” recursively Is anyone familiar with this err…

---

## [Docker Build w/ Sockets connection refused (ECONNREFUSED)](https://discourse.julialang.org/t/docker-build-w-sockets-connection-refused-econnrefused/85362)

<div class="topic-metadata">

**Author:** [@DrPapa](https://discourse.julialang.org/u/DrPapa)\
**Replies:** 0\
**Last updated:** [August 5, 2022, 5:59pm UTC](https://discourse.julialang.org/t/docker-build-w-sockets-connection-refused-econnrefused/85362 "2022-08-05T17:59:11Z")

</div>

I have been building sysimages with PackageCompiler in docker without issue until recently. I recently add some functions that require Sockets networking. To exercise the function in the PackageCompiler.jl tracing scrip…

---

## [SciMLBenchmarks.jl: Comparison with Fixed timestep methods](https://discourse.julialang.org/t/scimlbenchmarks-jl-comparison-with-fixed-timestep-methods/85246)

<div class="topic-metadata">

**Author:** [@Mikel\_Antonana](https://discourse.julialang.org/u/Mikel_Antonana)\
**Replies:** 12\
**Last updated:** [August 5, 2022, 5:40pm UTC](https://discourse.julialang.org/t/scimlbenchmarks-jl-comparison-with-fixed-timestep-methods/85246 "2022-08-05T17:40:54Z")

</div>

Hi, I have run a benchmark to compare adaptive and fixed step size method DPRKN12(): tols=abstols=reltols=\[1e-8, 1e-9, 1e-10, 1e-11, 1e-12, 1e-13, 1e-14, 1e-15\] dts= \[15., 25.,35., 50., 65., 75., 100., 125.\] setups …

---

## [Thinning MCMC posteriors to reduce autocorrelation?](https://discourse.julialang.org/t/thinning-mcmc-posteriors-to-reduce-autocorrelation/85254)

<div class="topic-metadata">

**Author:** [@99dB](https://discourse.julialang.org/u/99dB)\
**Replies:** 12\
**Last updated:** [August 5, 2022, 4:22pm UTC](https://discourse.julialang.org/t/thinning-mcmc-posteriors-to-reduce-autocorrelation/85254 "2022-08-05T16:22:07Z")

</div>

Hi all, I have some autocorrelation issues in my chains and tried different things that didn’t help much. My issue is certainly internal to the model I used, where I have some parameter correlations. I read some piece …

---

## [How to add WebSocket to Genie Site?](https://discourse.julialang.org/t/how-to-add-websocket-to-genie-site/84976)

<div class="topic-metadata">

**Author:** [@Jack\_N](https://discourse.julialang.org/u/Jack_N)\
**Replies:** 5\
**Last updated:** [August 5, 2022, 3:58pm UTC](https://discourse.julialang.org/t/how-to-add-websocket-to-genie-site/84976 "2022-08-05T15:58:54Z")

</div>

The Genie.jl documentation does not seem to have any information as to how to include a websocket in a web app, all the examples are just from the command line. I have a website composed of html and javascript in a webap…

---

## [Can't Install Julia Packages on AWS Lightsail Ubuntu](https://discourse.julialang.org/t/cant-install-julia-packages-on-aws-lightsail-ubuntu/85301)

<div class="topic-metadata">

**Author:** [@Jack\_N](https://discourse.julialang.org/u/Jack_N)\
**Replies:** 3\
**Last updated:** [August 5, 2022, 3:17pm UTC](https://discourse.julialang.org/t/cant-install-julia-packages-on-aws-lightsail-ubuntu/85301 "2022-08-05T15:17:24Z")

</div>

I am trying to create a Genie.jl website hosted with Amazon, but when I try to install the required packages, the process is killed. The image below demonstrates this when trying to install the CSV package. Any help fixi…

---

## [ReactiveMP: How to run linear model with multiple predictors and an intercept](https://discourse.julialang.org/t/reactivemp-how-to-run-linear-model-with-multiple-predictors-and-an-intercept/85290)

<div class="topic-metadata">

**Author:** [@EvoArt](https://discourse.julialang.org/u/EvoArt)\
**Replies:** 9\
**Last updated:** [August 5, 2022, 3:03pm UTC](https://discourse.julialang.org/t/reactivemp-how-to-run-linear-model-with-multiple-predictors-and-an-intercept/85290 "2022-08-05T15:03:15Z")

</div>

Hi there I would like to adapt the linear regression example from the docs to work with multiple predictor variables. So far, I have the following code, which runs. using GraphPPL, Rocket, ReactiveMP, LinearAlgebra n …

---

## [Delete the nth frontal of a 3th-order tensor(array)](https://discourse.julialang.org/t/delete-the-nth-frontal-of-a-3th-order-tensor-array/85214)

<div class="topic-metadata">

**Author:** [@tapyu](https://discourse.julialang.org/u/tapyu)\
**Replies:** 13\
**Last updated:** [August 5, 2022, 2:57pm UTC](https://discourse.julialang.org/t/delete-the-nth-frontal-of-a-3th-order-tensor-array/85214 "2022-08-05T14:57:01Z")

</div>

Consider the following tensor A = reshape(1:24,4,2,3) I want to split it into two elements: B, which is the second frontal of A; and C, which is the remaining elements. Getting B is pretty obvious, B = A\[:,:,2\] But I…

---

## [Select colums by the value of rows](https://discourse.julialang.org/t/select-colums-by-the-value-of-rows/84793)

<div class="topic-metadata">

**Author:** [@chenr86](https://discourse.julialang.org/u/chenr86)\
**Replies:** 4\
**Last updated:** [August 5, 2022, 2:32pm UTC](https://discourse.julialang.org/t/select-colums-by-the-value-of-rows/84793 "2022-08-05T14:32:55Z")

</div>

Hello, I want to select target colums with row values between an interval. For example, with df like below, I want to select colums with row values between \[3, 5\], which means that it should return :x1 :x2 :y1. How can …

---

## [How to define string \`" foo\\n bar\\n "\` in one \`""" ... """\` block?](https://discourse.julialang.org/t/how-to-define-string-foo-n-bar-n-in-one-block/85347)

<div class="topic-metadata">

**Author:** [@hyrodium](https://discourse.julialang.org/u/hyrodium)\
**Replies:** 2\
**Last updated:** [August 5, 2022, 2:02pm UTC](https://discourse.julialang.org/t/how-to-define-string-foo-n-bar-n-in-one-block/85347 "2022-08-05T14:02:41Z")

</div>

I really love the Julia’s syntax for """ with indents (See doc): julia\> function check\_string\_indent() s = """ foo bar """ return s end check\_string\_indent (…

---

## [The default alignment of markdown table should be left-aligned?](https://discourse.julialang.org/t/the-default-alignment-of-markdown-table-should-be-left-aligned/85344)

<div class="topic-metadata">

**Author:** [@hyrodium](https://discourse.julialang.org/u/hyrodium)\
**Replies:** 0\
**Last updated:** [August 5, 2022, 1:03pm UTC](https://discourse.julialang.org/t/the-default-alignment-of-markdown-table-should-be-left-aligned/85344 "2022-08-05T13:03:40Z")

</div>

Julia’s default tables are right-aligned (See documentation), but many other markdown parsers default to left-aligned (e.g. GitHub markdown). I have made some PRs to some docs (PlotDocs.jl, Images.jl) because left-align…

---

## [Precompile a script?](https://discourse.julialang.org/t/precompile-a-script/5364)

<div class="topic-metadata">

**Author:** [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Replies:** 17\
**Last updated:** [August 5, 2022, 11:52am UTC](https://discourse.julialang.org/t/precompile-a-script/5364 "2022-08-05T11:52:29Z")

</div>

Is there a way to precompile a script, so that I can execute it in batch fast?

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

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