# Latest

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

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

**Page:** 1619

---

## [No REPL output when editor code is run (remote julia process over sftp)](https://discourse.julialang.org/t/no-repl-output-when-editor-code-is-run-remote-julia-process-over-sftp/47392)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 0\
**Last updated:** [September 28, 2020, 5:45am UTC](https://discourse.julialang.org/t/no-repl-output-when-editor-code-is-run-remote-julia-process-over-sftp/47392 "2020-09-28T05:45:32Z")

</div>

Steps to reproduce: open ftp pane to remote host click the start remote julia process tab open an editor file highlight a line of executable code (without a trailing “;”) hit ctrl+enter What settings do I need to chan…

---

## [Trying to understand how getindex works with vectors](https://discourse.julialang.org/t/trying-to-understand-how-getindex-works-with-vectors/47391)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 1\
**Last updated:** [September 28, 2020, 5:44am UTC](https://discourse.julialang.org/t/trying-to-understand-how-getindex-works-with-vectors/47391 "2020-09-28T05:44:27Z")

</div>

I am trying to track down the functions that are being called when I’m evaluating julia\> A = 1:4 1:4 julia\> A\[A .\> 2\] 2-element Array{Int64,1}: 3 4 This starts with function getindex(A::AbstractArray, I...) @\_p…

---

## [Short functions or not: where would Julia fit?](https://discourse.julialang.org/t/short-functions-or-not-where-would-julia-fit/47327)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 14\
**Last updated:** [September 28, 2020, 3:11am UTC](https://discourse.julialang.org/t/short-functions-or-not-where-would-julia-fit/47327 "2020-09-28T03:11:26Z")

</div>

Are short functions a code smell?

---

## [Fast copy from stream to IOBuffer?](https://discourse.julialang.org/t/fast-copy-from-stream-to-iobuffer/42099)

<div class="topic-metadata">

**Author:** [@bobcassels](https://discourse.julialang.org/u/bobcassels)\
**Replies:** 7\
**Last updated:** [September 28, 2020, 12:49am UTC](https://discourse.julialang.org/t/fast-copy-from-stream-to-iobuffer/42099 "2020-09-28T00:49:54Z")

</div>

I need to read parts of a (binary) stream, and concatenate them, so I can read from that concatenated buffer. I’m reconstructing a thing that was packetized into segments. I see I can do write(iob, read(s, ...)), but I …

---

## [Can this random matrix simulation be sped up?](https://discourse.julialang.org/t/can-this-random-matrix-simulation-be-sped-up/47277)

<div class="topic-metadata">

**Author:** [@patrick](https://discourse.julialang.org/u/patrick)\
**Replies:** 16\
**Last updated:** [September 27, 2020, 11:09pm UTC](https://discourse.julialang.org/t/can-this-random-matrix-simulation-be-sped-up/47277 "2020-09-27T23:09:19Z")

</div>

I am a Julia novice and converted the following program from Python (for a simple practice exercise). It computes a N by N random matrix of quaternions, drawn from the Gaussian distribution, and then computes the smalles…

---

## [Testing code that is executed when solve reaches non-optimal status](https://discourse.julialang.org/t/testing-code-that-is-executed-when-solve-reaches-non-optimal-status/47293)

<div class="topic-metadata">

**Author:** [@vtjeng](https://discourse.julialang.org/u/vtjeng)\
**Replies:** 3\
**Last updated:** [September 27, 2020, 10:51pm UTC](https://discourse.julialang.org/t/testing-code-that-is-executed-when-solve-reaches-non-optimal-status/47293 "2020-09-27T22:51:50Z")

</div>

I’m looking for advice on the best way to test code that is executed only when the termination status for optimization returns a status of MathOptInterface.TIME\_LIMIT. The first approach I tried was to construct models …

---

## [Codecov PR comments show wrong percentage](https://discourse.julialang.org/t/codecov-pr-comments-show-wrong-percentage/47377)

<div class="topic-metadata">

**Author:** [@mmiller](https://discourse.julialang.org/u/mmiller)\
**Replies:** 0\
**Last updated:** [September 27, 2020, 10:45pm UTC](https://discourse.julialang.org/t/codecov-pr-comments-show-wrong-percentage/47377 "2020-09-27T22:45:09Z")

</div>

I’m getting Codecov comments on PR that suggest a significant change in coverage (e.g. this PR ) , but then actually when I check on Codecov itself there is little or no change (corresponding Codecov link). Does anyone k…

---

## [How to do distributed multithreading?](https://discourse.julialang.org/t/how-to-do-distributed-multithreading/47373)

<div class="topic-metadata">

**Author:** [@vkv](https://discourse.julialang.org/u/vkv)\
**Replies:** 1\
**Last updated:** [September 27, 2020, 10:30pm UTC](https://discourse.julialang.org/t/how-to-do-distributed-multithreading/47373 "2020-09-27T22:30:31Z")

</div>

I’ve a function that uses multithreading to compute a function f with each thread value and stores the value as an array element. function multithread() num\_threads = 8 output = Array{Float64}(num\_thread…

---

## [Error installing Mosek (unable to build)](https://discourse.julialang.org/t/error-installing-mosek-unable-to-build/47337)

<div class="topic-metadata">

**Author:** [@axw](https://discourse.julialang.org/u/axw)\
**Replies:** 1\
**Last updated:** [September 27, 2020, 9:47pm UTC](https://discourse.julialang.org/t/error-installing-mosek-unable-to-build/47337 "2020-09-27T21:47:54Z")

</div>

Got the license file and put in C:\\Users\\user\_name\\mosek. Ran pkg add mosek, and looks fine. But when I pkg build mosek I get this error. Any ideas? I see on the mosek site it mentions defining some distro but I’m …

---

## [PackageCompile system image for different computers](https://discourse.julialang.org/t/packagecompile-system-image-for-different-computers/47319)

<div class="topic-metadata">

**Author:** [@tp2750](https://discourse.julialang.org/u/tp2750)\
**Replies:** 6\
**Last updated:** [September 27, 2020, 7:39pm UTC](https://discourse.julialang.org/t/packagecompile-system-image-for-different-computers/47319 "2020-09-27T19:39:01Z")

</div>

I’ll like to compile a system image that I can use on our in-house compute cluster. My problem is that the image I build on one computer, will not load on an other. I have build a system image on my laptop using this c…

---

## [Getting started with distributed Julia computations on a cluster](https://discourse.julialang.org/t/getting-started-with-distributed-julia-computations-on-a-cluster/47366)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 1\
**Last updated:** [September 27, 2020, 7:06pm UTC](https://discourse.julialang.org/t/getting-started-with-distributed-julia-computations-on-a-cluster/47366 "2020-09-27T19:06:45Z")

</div>

Thus far, my parallel Julia experiences have involved running jobs on a single node on a cluster (shared memory environment) using the Distributed.jl module for computations like: using SharedArrays a = SharedArray{Flo…

---

## [First Julia Installathon next Saturday at 12:00 pm EDT (October 3rd)](https://discourse.julialang.org/t/first-julia-installathon-next-saturday-at-12-00-pm-edt-october-3rd/47367)

<div class="topic-metadata">

**Author:** [@logankilpatrick](https://discourse.julialang.org/u/logankilpatrick)\
**Replies:** 0\
**Last updated:** [September 27, 2020, 5:49pm UTC](https://discourse.julialang.org/t/first-julia-installathon-next-saturday-at-12-00-pm-edt-october-3rd/47367 "2020-09-27T17:49:20Z")

</div>

Hi everyone, We will be hosting our first Julia Installathon next Saturday at 12:00pm EDT (see the Julia community calendar Community to add this event to your own calendar) . Please tell anyone you know who might be in…

---

## [DataFrames.jl development survey](https://discourse.julialang.org/t/dataframes-jl-development-survey/44022)

<div class="topic-metadata">

**Author:** [@bkamins](https://discourse.julialang.org/u/bkamins)\
**Replies:** 52\
**Last updated:** [September 27, 2020, 4:50pm UTC](https://discourse.julialang.org/t/dataframes-jl-development-survey/44022 "2020-09-27T16:50:56Z")

</div>

Hi, before Julia & Data: An Evolving Ecosystem BOF I wanted to run a quick pool what you think about different major directions in DataFrames.jl development. So please upvote the things you perceive as important. This …

---

## [Matrix vector multiplication](https://discourse.julialang.org/t/matrix-vector-multiplication/47356)

<div class="topic-metadata">

**Author:** [@j\_tanu](https://discourse.julialang.org/u/j_tanu)\
**Replies:** 4\
**Last updated:** [September 27, 2020, 4:50pm UTC](https://discourse.julialang.org/t/matrix-vector-multiplication/47356 "2020-09-27T16:50:10Z")

</div>

I am doing a dense matrix-vector multiplication in a 64 core workstation. The order of the matrix is 11000. By default, BLAS is using only 8 threads. I have changed both the BLAS & JULIA(1.5.1) NUM\_THREADS and getting th…

---

## [TLS Libraries](https://discourse.julialang.org/t/tls-libraries/47268)

<div class="topic-metadata">

**Author:** [@cshenton](https://discourse.julialang.org/u/cshenton)\
**Replies:** 2\
**Last updated:** [September 27, 2020, 3:48pm UTC](https://discourse.julialang.org/t/tls-libraries/47268 "2020-09-27T15:48:40Z")

</div>

Are there any widely used TLS libraries in Julia, even non pure ones? The sockets API in stdlib is great but my use case isn’t over LAN so I need proper crypto and google searches don’t turn up an obvious choice for TLS…

---

## [Is \`macro\` "a compressed part of code"?](https://discourse.julialang.org/t/is-macro-a-compressed-part-of-code/47360)

<div class="topic-metadata">

**Author:** [@iHany](https://discourse.julialang.org/u/iHany)\
**Replies:** 9\
**Last updated:** [September 27, 2020, 3:25pm UTC](https://discourse.julialang.org/t/is-macro-a-compressed-part-of-code/47360 "2020-09-27T15:25:18Z")

</div>

According to this, I’m trying to use macro for inheritance as @xiaodai suggested. However, I’ve not figured out how exactly macro works :frowning: What I’m trying to do is basically “refering a struct’s fields from oth…

---

## [Variable rate jumps diffeq?](https://discourse.julialang.org/t/variable-rate-jumps-diffeq/42356)

<div class="topic-metadata">

**Author:** [@mcreel](https://discourse.julialang.org/u/mcreel)\
**Replies:** 7\
**Last updated:** [September 27, 2020, 3:06pm UTC](https://discourse.julialang.org/t/variable-rate-jumps-diffeq/42356 "2020-09-27T15:06:01Z")

</div>

I’m trying to get a variable rate jump to work. I am using ## jump in price #rate1(u,p,t) = λ0 # constant jump rate rate1(u,p,t) = λ0.\*exp(u\[2\]) # volatility dependent jump rate # jump is normal with st. dev. equal to …

---

## [Nested lambda functions overhead: ideas for algebra of functions](https://discourse.julialang.org/t/nested-lambda-functions-overhead-ideas-for-algebra-of-functions/47335)

<div class="topic-metadata">

**Author:** [@misha\_mikhasenko](https://discourse.julialang.org/u/misha_mikhasenko)\
**Replies:** 9\
**Last updated:** [September 27, 2020, 2:49pm UTC](https://discourse.julialang.org/t/nested-lambda-functions-overhead-ideas-for-algebra-of-functions/47335 "2020-09-27T14:49:35Z")

</div>

I have an implementation of algebraic operations (addition, multiplication) with use-defined 1d functions for the purpose of the LLH fitting. The modular construction of PDFs is nice and handy, but I noticed a significa…

---

## [Pkg Error: Expected LinearAlgebra to be registered](https://discourse.julialang.org/t/pkg-error-expected-linearalgebra-to-be-registered/47315)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 1\
**Last updated:** [September 27, 2020, 4:27am UTC](https://discourse.julialang.org/t/pkg-error-expected-linearalgebra-to-be-registered/47315 "2020-09-27T04:27:10Z")

</div>

I am trying to test the master branch of OffsetArrays.jl on julia 1.5.2 and encountering a strange error that I’ve not seen before. \_ \_ \_ \_(\_)\_ | Documentation: https://docs.julialang.org …

---

## [Using sequential conditions inside sum()](https://discourse.julialang.org/t/using-sequential-conditions-inside-sum/47342)

<div class="topic-metadata">

**Author:** [@asavasci](https://discourse.julialang.org/u/asavasci)\
**Replies:** 1\
**Last updated:** [September 27, 2020, 12:46am UTC](https://discourse.julialang.org/t/using-sequential-conditions-inside-sum/47342 "2020-09-27T00:46:05Z")

</div>

How to define sequential conditions inside sum() ? For example, embedding the block tot=0 for j in Set1 if (i,j) in Set2 condition1 if k in Set3\[(i,j)\] condition2 tot = …

---

## [Can't add GLM](https://discourse.julialang.org/t/cant-add-glm/47317)

<div class="topic-metadata">

**Author:** [@compleat](https://discourse.julialang.org/u/compleat)\
**Replies:** 24\
**Last updated:** [September 26, 2020, 9:11pm UTC](https://discourse.julialang.org/t/cant-add-glm/47317 "2020-09-26T21:11:21Z")

</div>

Trying to add GLM and getting dependency errors. \[StatsPlots, Distributions, etc.\] I’m using Julia 1.2 (can’t change for other dependency reasons). Does anyone have any ideas? I tried to build but GLM could not be fo…

---

## [Comparing GMM results](https://discourse.julialang.org/t/comparing-gmm-results/47322)

<div class="topic-metadata">

**Author:** [@DShiu](https://discourse.julialang.org/u/DShiu)\
**Replies:** 8\
**Last updated:** [September 26, 2020, 9:09pm UTC](https://discourse.julialang.org/t/comparing-gmm-results/47322 "2020-09-26T21:09:36Z")

</div>

I am working on implementing a linear GMM estimator in Julia. As a first step, I compare 2 ways of getting parameter estimates: numerically minimizing the loss function function LossFn(θ, y, X, Z) W = diagm(0 =\> one…

---

## [Hiring Machine Learning Research Scientists at Capital One New York](https://discourse.julialang.org/t/hiring-machine-learning-research-scientists-at-capital-one-new-york/16323)

<div class="topic-metadata">

**Author:** [@jiahao](https://discourse.julialang.org/u/jiahao)\
**Replies:** 11\
**Last updated:** [September 26, 2020, 7:51pm UTC](https://discourse.julialang.org/t/hiring-machine-learning-research-scientists-at-capital-one-new-york/16323 "2020-09-26T19:51:45Z")

</div>

I’m hiring a team at Capital One in New York for R&D efforts to bring state-of-the-art machine learning techniques to the retail financial services industry. Capital One’s goal is to Change Banking for Good, and in this …

---

## [Adding (remote) workers to ongoing Dagger job](https://discourse.julialang.org/t/adding-remote-workers-to-ongoing-dagger-job/47196)

<div class="topic-metadata">

**Author:** [@DrChainsaw](https://discourse.julialang.org/u/DrChainsaw)\
**Replies:** 4\
**Last updated:** [September 26, 2020, 7:12pm UTC](https://discourse.julialang.org/t/adding-remote-workers-to-ongoing-dagger-job/47196 "2020-09-26T19:12:19Z")

</div>

Use case is that on LSF (and probably many other cluster systems) jobs to fire up workers are queued and started individually at the whim of the cluster scheduler. This basically means that the time between the first wor…

---

## [How to create an app from a Julia code that is writing and using other Julia files inside itself?](https://discourse.julialang.org/t/how-to-create-an-app-from-a-julia-code-that-is-writing-and-using-other-julia-files-inside-itself/47301)

<div class="topic-metadata">

**Author:** [@AmirHosein](https://discourse.julialang.org/u/AmirHosein)\
**Replies:** 2\
**Last updated:** [September 26, 2020, 7:01pm UTC](https://discourse.julialang.org/t/how-to-create-an-app-from-a-julia-code-that-is-writing-and-using-other-julia-files-inside-itself/47301 "2020-09-26T19:01:57Z")

</div>

I will explain my question in details using a super simple toy example in below. The structure of the code is as the following. Everything is in a folder called “Test\_making\_app”. This folder contains two julia files an…

---

## [Architecture: general module and specific module](https://discourse.julialang.org/t/architecture-general-module-and-specific-module/47127)

<div class="topic-metadata">

**Author:** [@misha\_mikhasenko](https://discourse.julialang.org/u/misha_mikhasenko)\
**Replies:** 18\
**Last updated:** [September 26, 2020, 6:20pm UTC](https://discourse.julialang.org/t/architecture-general-module-and-specific-module/47127 "2020-09-26T18:20:46Z")

</div>

I guess I am lacking knowledge of design patterns, can someone suggest the right solution (common in Julia) to set of specific modules that reexport general module functionality with one argument inserted? The general …

---

## [Unable to add stdlib packages to environment in julia 1.5.2](https://discourse.julialang.org/t/unable-to-add-stdlib-packages-to-environment-in-julia-1-5-2/47328)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 1\
**Last updated:** [September 26, 2020, 5:58pm UTC](https://discourse.julialang.org/t/unable-to-add-stdlib-packages-to-environment-in-julia-1-5-2/47328 "2020-09-26T17:58:14Z")

</div>

I have just downloaded Julia 1.5.2, and I’m facing a strange issue: \_ \_ \_(\_)\_ | Documentation: https://docs.julialang.org (\_) | (\_) (\_) | \_ \_ \_| |\_ \_\_ \_ | Type "?" for help, "\]?" for Pkg …

---

## [Multiple Dispatch - Call Abstract Type Function](https://discourse.julialang.org/t/multiple-dispatch-call-abstract-type-function/47311)

<div class="topic-metadata">

**Author:** [@akhil\_teja](https://discourse.julialang.org/u/akhil_teja)\
**Replies:** 2\
**Last updated:** [September 26, 2020, 3:12pm UTC](https://discourse.julialang.org/t/multiple-dispatch-call-abstract-type-function/47311 "2020-09-26T15:12:46Z")

</div>

I’m new to Julia and I have a problem with multiple dispatch. Consider below code: abstract type A end struct A1\<:A end struct A2\<:A end foo(a::A) = println("It's A") function foo(a::A1) # Do Something with A1 ty…

---

## [Dictionary initialization](https://discourse.julialang.org/t/dictionary-initialization/47318)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 0\
**Last updated:** [September 26, 2020, 3:12pm UTC](https://discourse.julialang.org/t/dictionary-initialization/47318 "2020-09-26T15:12:45Z")

</div>

If I type the following in the REPL, I get what I expect: a dictionary with two elements. Note: I want the definition to be over two lines. cols = Dict(\[ "FID\_NEW" =\> :fid\_new, "POINT\_X" =\> :point\_x\]) #, However, if th…

---

## [Export functions included from different modules with the same name](https://discourse.julialang.org/t/export-functions-included-from-different-modules-with-the-same-name/47307)

<div class="topic-metadata">

**Author:** [@iHany](https://discourse.julialang.org/u/iHany)\
**Replies:** 4\
**Last updated:** [September 26, 2020, 2:44pm UTC](https://discourse.julialang.org/t/export-functions-included-from-different-modules-with-the-same-name/47307 "2020-09-26T14:44:03Z")

</div>

Here is my example: module AB using Reexport include("A.jl") include("B.jl") @reexport using .A @reexport using .B end And, both A, B has functions close!. Then, using close! causes warning like this: WARNING: bo…

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

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