# Latest

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

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

**Page:** 1917

---

## [Travis CI ERROR: Repository not found. fatal: Could not read from remote repository](https://discourse.julialang.org/t/travis-ci-error-repository-not-found-fatal-could-not-read-from-remote-repository/29040)

<div class="topic-metadata">

**Author:** [@Marco-Congedo](https://discourse.julialang.org/u/Marco-Congedo)\
**Replies:** 2\
**Last updated:** [September 22, 2019, 6:01pm UTC](https://discourse.julialang.org/t/travis-ci-error-repository-not-found-fatal-could-not-read-from-remote-repository/29040 "2019-09-22T18:01:20Z")

</div>

I am finalizing a package on Fourier Analysis of multivariate time-series hosted on GitHub here. For deploying the documentation i followed the directions in Documenter’s Hosting Documentation and SSH Deploy Keys Walk…

---

## [Strange behavior of setindex() inside a function or a loop?](https://discourse.julialang.org/t/strange-behavior-of-setindex-inside-a-function-or-a-loop/29042)

<div class="topic-metadata">

**Author:** [@Seif\_Shebl](https://discourse.julialang.org/u/Seif_Shebl)\
**Replies:** 2\
**Last updated:** [September 22, 2019, 2:28pm UTC](https://discourse.julialang.org/t/strange-behavior-of-setindex-inside-a-function-or-a-loop/29042 "2019-09-22T14:28:04Z")

</div>

I’m not sure if this is a known issue or I’ve missed something obvious, but the following functions didn’t work as I expected. f() works correctly without a return value, but once I add return tt I get the original tuple…

---

## [Type inference with AbstractMatrix](https://discourse.julialang.org/t/type-inference-with-abstractmatrix/29038)

<div class="topic-metadata">

**Author:** [@dmbates](https://discourse.julialang.org/u/dmbates)\
**Replies:** 2\
**Last updated:** [September 22, 2019, 2:21pm UTC](https://discourse.julialang.org/t/type-inference-with-abstractmatrix/29038 "2019-09-22T14:21:57Z")

</div>

In the MixedModels package the bulk of the work fitting a model consists of updating a blocked Cholesky factor to new parameter values. The matrix being factored consists of a square set of blocks of possibly different …

---

## [Weak dependence on CUDA packages, 2019 version](https://discourse.julialang.org/t/weak-dependence-on-cuda-packages-2019-version/29033)

<div class="topic-metadata">

**Author:** [@dfdx](https://discourse.julialang.org/u/dfdx)\
**Replies:** 3\
**Last updated:** [September 22, 2019, 2:11pm UTC](https://discourse.julialang.org/t/weak-dependence-on-cuda-packages-2019-version/29033 "2019-09-22T14:11:48Z")

</div>

What’s state of the art for writing code with weak dependence on CUDA, e.g. when you want to provide automatic speedup if GPU is available, but provide fallback for systems with only CPUs? I remember a lot of discussion …

---

## [Making a list of all public Julia package registries](https://discourse.julialang.org/t/making-a-list-of-all-public-julia-package-registries/29035)

<div class="topic-metadata">

**Author:** [@dilumaluthge](https://discourse.julialang.org/u/dilumaluthge)\
**Replies:** 1\
**Last updated:** [September 22, 2019, 11:48am UTC](https://discourse.julialang.org/t/making-a-list-of-all-public-julia-package-registries/29035 "2019-09-22T11:48:33Z")

</div>

I would like to assemble a list of all public Julia package registries. If you register packages in a public Julia package registry other than (or in addition to) the General registry, please reply to this post with a li…

---

## [Documenter - @autodocs example evaluation - functions order](https://discourse.julialang.org/t/documenter-autodocs-example-evaluation-functions-order/28529)

<div class="topic-metadata">

**Author:** [@Amin\_Yahyaabadi](https://discourse.julialang.org/u/Amin_Yahyaabadi)\
**Replies:** 2\
**Last updated:** [September 22, 2019, 1:02am UTC](https://discourse.julialang.org/t/documenter-autodocs-example-evaluation-functions-order/28529 "2019-09-22T01:02:37Z")

</div>

I have two questions regarding @autodocs in Documenter. How can I evaluate the examples in the docstrings when I use @autodocs? The order of functions that appear when I use @index and @autodocs is based on alphabe…

---

## [Memory Allocation and Interpolation](https://discourse.julialang.org/t/memory-allocation-and-interpolation/29015)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 4\
**Last updated:** [September 21, 2019, 10:21pm UTC](https://discourse.julialang.org/t/memory-allocation-and-interpolation/29015 "2019-09-21T22:21:44Z")

</div>

I’ve got some code where I need to perform interpolations at every step of a loop (it’s the integration in time of a PDE). While the code works, currently with Dierckx, I was wondering if any of the interpolation packag…

---

## [makeAnagram, there is an error that i cannot find in my code](https://discourse.julialang.org/t/makeanagram-there-is-an-error-that-i-cannot-find-in-my-code/29032)

<div class="topic-metadata">

**Author:** [@Fuad\_Sami](https://discourse.julialang.org/u/Fuad_Sami)\
**Replies:** 14\
**Last updated:** [September 21, 2019, 7:47pm UTC](https://discourse.julialang.org/t/makeanagram-there-is-an-error-that-i-cannot-find-in-my-code/29032 "2019-09-21T19:47:28Z")

</div>

i need to write a function for two strings, and , that may or may not be of the same length, determine the minimum number of character deletions required to make and anagrams. Any characters can be deleted from either…

---

## [The way to deploy the user-defined package](https://discourse.julialang.org/t/the-way-to-deploy-the-user-defined-package/28986)

<div class="topic-metadata">

**Author:** [@zhangliye](https://discourse.julialang.org/u/zhangliye)\
**Replies:** 4\
**Last updated:** [September 21, 2019, 7:36pm UTC](https://discourse.julialang.org/t/the-way-to-deploy-the-user-defined-package/28986 "2019-09-21T19:36:27Z")

</div>

I have created two packages created as follows. (1) Create PackageA step1: generate PackageA step2: add code step3: cd PackageA dev . # deploy PackageA (2) Create PackageB depending on PackageA step1: gener…

---

## [Potential performance regression wrt 0.6: Products involving diagonal matrices MUCH slower than with general sparse matrices](https://discourse.julialang.org/t/potential-performance-regression-wrt-0-6-products-involving-diagonal-matrices-much-slower-than-with-general-sparse-matrices/29005)

<div class="topic-metadata">

**Author:** [@FHulsemann](https://discourse.julialang.org/u/FHulsemann)\
**Replies:** 7\
**Last updated:** [September 21, 2019, 5:09pm UTC](https://discourse.julialang.org/t/potential-performance-regression-wrt-0-6-products-involving-diagonal-matrices-much-slower-than-with-general-sparse-matrices/29005 "2019-09-21T17:09:20Z")

</div>

Hello. It so happens that I need to normalize sparse (real) matrices from time to time. Moving to v0.7 (and later), I have come across some surprising behaviour involving Diagonal (sparse) matrices. This example illustr…

---

## [Stupid question on Unicode](https://discourse.julialang.org/t/stupid-question-on-unicode/27674)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 17\
**Last updated:** [September 21, 2019, 4:29pm UTC](https://discourse.julialang.org/t/stupid-question-on-unicode/27674 "2019-09-21T16:29:49Z")

</div>

Julia 1.3.0 supports Unicode version 12.1.0I can see how to use characters such as h-bar println("\\u0127") I have the rather odd notion to print some Cuneiform characters - I am interested in Babylonian history and wen…

---

## [Dealing with seeds in random numbers](https://discourse.julialang.org/t/dealing-with-seeds-in-random-numbers/29029)

<div class="topic-metadata">

**Author:** [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)\
**Replies:** 4\
**Last updated:** [September 21, 2019, 3:47pm UTC](https://discourse.julialang.org/t/dealing-with-seeds-in-random-numbers/29029 "2019-09-21T15:47:51Z")

</div>

Dear users, Anyone could say me how can I generate random numbers in Julia by using a given seed? I accept examples. I need to generate some data for a paper, and then provide the seed for other researches to use the …

---

## [Generating multithreaded functions?](https://discourse.julialang.org/t/generating-multithreaded-functions/28717)

<div class="topic-metadata">

**Author:** [@Sheemon7](https://discourse.julialang.org/u/Sheemon7)\
**Replies:** 2\
**Last updated:** [September 21, 2019, 2:16pm UTC](https://discourse.julialang.org/t/generating-multithreaded-functions/28717 "2019-09-21T14:16:46Z")

</div>

Is it possible to somehow generate functions with a multithreaded for-loop with @threads macro (or any other construct with the same fuctionality)? The straightforward way fails julia\> @generated function f(x::Integer)…

---

## [How do I compose two vectorized functions?](https://discourse.julialang.org/t/how-do-i-compose-two-vectorized-functions/29026)

<div class="topic-metadata">

**Author:** [@StevenSiew](https://discourse.julialang.org/u/StevenSiew)\
**Replies:** 3\
**Last updated:** [September 21, 2019, 12:32pm UTC](https://discourse.julialang.org/t/how-do-i-compose-two-vectorized-functions/29026 "2019-09-21T12:32:08Z")

</div>

How do I compose two vectorized functions? julia\> A = \[1.0, 2.0, 3.0\] 3-element Array{Float64,1}: 1.0 2.0 3.0 julia\> sin.(cos.(A)) 3-element Array{Float64,1}: 0.5143952585235492 -0.4042391538522658 -0.8360218615…

---

## [Executed lines of code per line of written code](https://discourse.julialang.org/t/executed-lines-of-code-per-line-of-written-code/29017)

<div class="topic-metadata">

**Author:** [@eCS](https://discourse.julialang.org/u/eCS)\
**Replies:** 3\
**Last updated:** [September 21, 2019, 5:47am UTC](https://discourse.julialang.org/t/executed-lines-of-code-per-line-of-written-code/29017 "2019-09-21T05:47:48Z")

</div>

I was watching Jim Keller’s talk on Moore’s Law ( https://www.youtube.com/watch?v=oIG9ztQw2Gc&t=29m ) and an interesting measure came up. Is there an estimate for Julia? I think @code\_native could be handy here but …

---

## [Error building FFTW and SpecialFunctions on ElementaryOS](https://discourse.julialang.org/t/error-building-fftw-and-specialfunctions-on-elementaryos/29021)

<div class="topic-metadata">

**Author:** [@degleris1](https://discourse.julialang.org/u/degleris1)\
**Replies:** 4\
**Last updated:** [September 21, 2019, 3:33am UTC](https://discourse.julialang.org/t/error-building-fftw-and-specialfunctions-on-elementaryos/29021 "2019-09-21T03:33:36Z")

</div>

Does anyone have any insight into this error? This is on a clean Julia build (freshly installed 1.2.0). (v1.2) pkg\> add DSP ... # removed for brevity Building FFTW ────────────→ \`~/.julia/packages/FFTW/MJ7kl/deps/b…

---

## [Defining own math rules](https://discourse.julialang.org/t/defining-own-math-rules/29010)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 7\
**Last updated:** [September 20, 2019, 8:40pm UTC](https://discourse.julialang.org/t/defining-own-math-rules/29010 "2019-09-20T20:40:58Z")

</div>

Hey guys, so I wondered if anyone could try explaining this to me. I am trying to do some (for me) more advanced stuff than I am used to, and I want to define my own math rules in Julia by some kind of operator. Imagine …

---

## [Segmentation Fault](https://discourse.julialang.org/t/segmentation-fault/29014)

<div class="topic-metadata">

**Author:** [@natgeo-wong](https://discourse.julialang.org/u/natgeo-wong)\
**Replies:** 2\
**Last updated:** [September 20, 2019, 8:40pm UTC](https://discourse.julialang.org/t/segmentation-fault/29014 "2019-09-20T20:40:14Z")

</div>

Hi All, I have another confounding error. Basically, I have written up my own module SatPrecip. However, I keep running into the following segmentation fault: mimicdt() #Note, this is the function that I am calling f…

---

## [Solving integral equation using DifferentialEquations](https://discourse.julialang.org/t/solving-integral-equation-using-differentialequations/28992)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 7\
**Last updated:** [September 20, 2019, 6:26pm UTC](https://discourse.julialang.org/t/solving-integral-equation-using-differentialequations/28992 "2019-09-20T18:26:21Z")

</div>

Problem I need to solve an equation in x which can be simplified as an MWE into x = \\int\_{x}^\\infty A(z) dz Importantly, A(z) is decreasing, integrable, and goes to 0 at infinity. Possible solution concept I thought …

---

## [Where is error message on the remote worker?](https://discourse.julialang.org/t/where-is-error-message-on-the-remote-worker/28898)

<div class="topic-metadata">

**Author:** [@Chong\_Wang](https://discourse.julialang.org/u/Chong_Wang)\
**Replies:** 14\
**Last updated:** [September 20, 2019, 6:28pm UTC](https://discourse.julialang.org/t/where-is-error-message-on-the-remote-worker/28898 "2019-09-20T18:28:15Z")

</div>

The following code should give an error since foo is not defined on process 2. using Distributed addprocs() function foo() return 1 end remote\_do(foo, 2) I expect some error message somewhere, but the above code…

---

## [Allow syntax like Int32(1:10)?](https://discourse.julialang.org/t/allow-syntax-like-int32-1-10/28905)

<div class="topic-metadata">

**Author:** [@jling](https://discourse.julialang.org/u/jling)\
**Replies:** 30\
**Last updated:** [September 20, 2019, 5:29pm UTC](https://discourse.julialang.org/t/allow-syntax-like-int32-1-10/28905 "2019-09-20T17:29:04Z")

</div>

basically, Int32(a::UnitRange{T}) = Int32(a.start):Int32(a.stop)

---

## [Make pkg\> test . run the tests for the current project](https://discourse.julialang.org/t/make-pkg-test-run-the-tests-for-the-current-project/29009)

<div class="topic-metadata">

**Author:** [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Replies:** 2\
**Last updated:** [September 20, 2019, 5:00pm UTC](https://discourse.julialang.org/t/make-pkg-test-run-the-tests-for-the-current-project/29009 "2019-09-20T17:00:57Z")

</div>

@kristoffer.carlsson Just a thought: not sure if there’s a reason why pkg\> test only works with packages, but in my opinion, it would be very elegant if pkg\> test . would run the tests for the current project too. We’d…

---

## [Front End/DevOps Roles at Beacon Biosignals](https://discourse.julialang.org/t/front-end-devops-roles-at-beacon-biosignals/29008)

<div class="topic-metadata">

**Author:** [@jrevels](https://discourse.julialang.org/u/jrevels)\
**Replies:** 0\
**Last updated:** [September 20, 2019, 4:15pm UTC](https://discourse.julialang.org/t/front-end-devops-roles-at-beacon-biosignals/29008 "2019-09-20T16:15:06Z")

</div>

Posted to the Julia Slack, but will share here as well: My startup is looking for front-end/devops engineers if anybody here is interested. Stealth-mode gist link to job description here (feel free to share): https://gi…

---

## [How to create random values given a restriction?](https://discourse.julialang.org/t/how-to-create-random-values-given-a-restriction/28977)

<div class="topic-metadata">

**Author:** [@msechecs](https://discourse.julialang.org/u/msechecs)\
**Replies:** 3\
**Last updated:** [September 20, 2019, 3:12pm UTC](https://discourse.julialang.org/t/how-to-create-random-values-given-a-restriction/28977 "2019-09-20T15:12:20Z")

</div>

Hello everyone, I’m trying to generate three vectors (ωa, ωb, ωc) made up of random numbers. The only restriction is that: ωa\[i\] + ωb\[i\] + ωa\[i\] ==1 However I am new in the Julia and I don’t know how to do it or if th…

---

## [\]test DiffEqGPU errors with " unsupported call to the Julia runtime"](https://discourse.julialang.org/t/test-diffeqgpu-errors-with-unsupported-call-to-the-julia-runtime/28893)

<div class="topic-metadata">

**Author:** [@nilsbecker](https://discourse.julialang.org/u/nilsbecker)\
**Replies:** 19\
**Last updated:** [September 20, 2019, 2:39pm UTC](https://discourse.julialang.org/t/test-diffeqgpu-errors-with-unsupported-call-to-the-julia-runtime/28893 "2019-09-20T14:39:11Z")

</div>

hi, i’m trying to experiment with ODE solving on GPUs but can’t seem to get the packages running properly. this is on a machine with CUDA 9.0 installed and 4 Tesla K80 GPUs. i can install DiffEqGPU but the test fails as…

---

## [Why the following two methods are ambiguous?](https://discourse.julialang.org/t/why-the-following-two-methods-are-ambiguous/28997)

<div class="topic-metadata">

**Author:** [@amartin](https://discourse.julialang.org/u/amartin)\
**Replies:** 3\
**Last updated:** [September 20, 2019, 1:23pm UTC](https://discourse.julialang.org/t/why-the-following-two-methods-are-ambiguous/28997 "2019-09-20T13:23:45Z")

</div>

Dear All, I am pretty new to Julia. Going over the documentation (v1.1.1), I am struggling at Section 19.10, trying to understand why the following two method definitions for the generic function f are ambiguous: f(::A…

---

## [JuliaDB offline usage](https://discourse.julialang.org/t/juliadb-offline-usage/28995)

<div class="topic-metadata">

**Author:** [@daniel](https://discourse.julialang.org/u/daniel)\
**Replies:** 2\
**Last updated:** [September 20, 2019, 12:10pm UTC](https://discourse.julialang.org/t/juliadb-offline-usage/28995 "2019-09-20T12:10:57Z")

</div>

When using JuliaDB without a network connection, I get the following error message. The error seems to be that \_\_init\_\_() in the MemPool.jl package includes a getipaddr call which errors offline. Is JuliaDB.jl supposed …

---

## [Bad performance for dispatch-heavy code](https://discourse.julialang.org/t/bad-performance-for-dispatch-heavy-code/28989)

<div class="topic-metadata">

**Author:** [@erezsh](https://discourse.julialang.org/u/erezsh)\
**Replies:** 12\
**Last updated:** [September 20, 2019, 11:49am UTC](https://discourse.julialang.org/t/bad-performance-for-dispatch-heavy-code/28989 "2019-09-20T11:49:17Z")

</div>

I’m trying to write a compiler in Julia, and I’m getting very bad performance. Because it’s a multi-stage compiler, most of the code is just the same function for different types of ast. I made sure most of the structs …

---

## [Updating a static array, in a nested function without making a temporary array?](https://discourse.julialang.org/t/updating-a-static-array-in-a-nested-function-without-making-a-temporary-array/28980)

<div class="topic-metadata">

**Author:** [@Hieuphung](https://discourse.julialang.org/u/Hieuphung)\
**Replies:** 4\
**Last updated:** [September 20, 2019, 6:58am UTC](https://discourse.julialang.org/t/updating-a-static-array-in-a-nested-function-without-making-a-temporary-array/28980 "2019-09-20T06:58:40Z")

</div>

have been banging my head against a wall trying to use static arrays in julia. They are fast but updating them is a pain. This is no surprise, they are meant to be immutable! But it is continuously recommended to me th…

---

## [Synchronizing Cuda kernels](https://discourse.julialang.org/t/synchronizing-cuda-kernels/28220)

<div class="topic-metadata">

**Author:** [@wiktorkujawa](https://discourse.julialang.org/u/wiktorkujawa)\
**Replies:** 5\
**Last updated:** [September 20, 2019, 5:49am UTC](https://discourse.julialang.org/t/synchronizing-cuda-kernels/28220 "2019-09-20T05:49:45Z")

</div>

I have two cuda functions in my code: @cuda blocks=3 threads=numberofsegments+1 divideLine(Segment,numberofsegments+1,SegmentsCalculated) @cuda blocks=lenX,lenY,lenZ threads=numberofsegments,2,1 biotGPU(x,y,z,SegmentsCa…

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

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