# Latest

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

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

**Page:** 1395

---

## [Cannon's or SUMA algorithm implementation?](https://discourse.julialang.org/t/cannons-or-suma-algorithm-implementation/61034)

<div class="topic-metadata">

**Author:** [@Chase\_Roberts](https://discourse.julialang.org/u/Chase_Roberts)\
**Replies:** 0\
**Last updated:** [May 12, 2021, 5:22pm UTC](https://discourse.julialang.org/t/cannons-or-suma-algorithm-implementation/61034 "2021-05-12T17:22:57Z")

</div>

Are there any examples of doing distributed matmuls with Cannon’s or SUMA algorithm in Julia?

---

## [Sampling using Turing and a customized distribution](https://discourse.julialang.org/t/sampling-using-turing-and-a-customized-distribution/61031)

<div class="topic-metadata">

**Author:** [@marouane](https://discourse.julialang.org/u/marouane)\
**Replies:** 0\
**Last updated:** [May 12, 2021, 4:35pm UTC](https://discourse.julialang.org/t/sampling-using-turing-and-a-customized-distribution/61031 "2021-05-12T16:35:20Z")

</div>

I have this customized distribution below: using Distributions struct OrthoNNDist \<: DiscreteMultivariateDistribution x0::Vector{Int64} oc::Array{Int64,2} x1s::Array prob::Float64 #return a new uniform distribut…

---

## [Using modules causes isa() to return the incorrect result](https://discourse.julialang.org/t/using-modules-causes-isa-to-return-the-incorrect-result/61028)

<div class="topic-metadata">

**Author:** [@anon60034542](https://discourse.julialang.org/u/anon60034542)\
**Replies:** 3\
**Last updated:** [May 12, 2021, 4:04pm UTC](https://discourse.julialang.org/t/using-modules-causes-isa-to-return-the-incorrect-result/61028 "2021-05-12T16:04:16Z")

</div>

\# GameObj.jl module GameObj export GameObject abstract type GameObject end end # WeaponObj.jl module WeaponObj export Weapon include("GameObj.jl") using .GameObj abstract type Weapon \<: GameObject end end # ChargeGunOb…

---

## [Difference between Inference methods in BayesNet.jl](https://discourse.julialang.org/t/difference-between-inference-methods-in-bayesnet-jl/61023)

<div class="topic-metadata">

**Author:** [@ashwanimalviya](https://discourse.julialang.org/u/ashwanimalviya)\
**Replies:** 0\
**Last updated:** [May 12, 2021, 1:36pm UTC](https://discourse.julialang.org/t/difference-between-inference-methods-in-bayesnet-jl/61023 "2021-05-12T13:36:05Z")

</div>

Hi Guys, Can someone please suggest to me where can I get more details to understand the difference between the attached InferenceMethods. Thanks in advance.

---

## [Source of financial data including earnings dates, implied volatility, historical vol and much more](https://discourse.julialang.org/t/source-of-financial-data-including-earnings-dates-implied-volatility-historical-vol-and-much-more/60925)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 4\
**Last updated:** [May 12, 2021, 1:26pm UTC](https://discourse.julialang.org/t/source-of-financial-data-including-earnings-dates-implied-volatility-historical-vol-and-much-more/60925 "2021-05-12T13:26:55Z")

</div>

Hi all, so I’ve noticed that quite a few of you are wanting a reliable source of earnings data and dates. Also implied volatility and historical vol. This is not an ad as we have no fiscal relationship with them, It’s j…

---

## [PiGPIO need help](https://discourse.julialang.org/t/pigpio-need-help/61021)

<div class="topic-metadata">

**Author:** [@Sarantis\_Bokolis](https://discourse.julialang.org/u/Sarantis_Bokolis)\
**Replies:** 0\
**Last updated:** [May 12, 2021, 1:21pm UTC](https://discourse.julialang.org/t/pigpio-need-help/61021 "2021-05-12T13:21:14Z")

</div>

Hello.I need some help writing some code.I am receiving pulses in my Rarpberry Pi pin and want to write some code to count pulses and print a message "button was pressed " at each pulse.Any ideas?

---

## [Deps and test folders in package](https://discourse.julialang.org/t/deps-and-test-folders-in-package/61003)

<div class="topic-metadata">

**Author:** [@Mastomaki](https://discourse.julialang.org/u/Mastomaki)\
**Replies:** 3\
**Last updated:** [May 12, 2021, 1:14pm UTC](https://discourse.julialang.org/t/deps-and-test-folders-in-package/61003 "2021-05-12T13:14:29Z")

</div>

I am building my own package according to https://pkgdocs.julialang.org/v1/creating-packages/. I am wondering at which point the deps/ and test/ folders should appear in the package directory? after “generate mypkg” I h…

---

## [Controlling thread affinity for distributed multithreading](https://discourse.julialang.org/t/controlling-thread-affinity-for-distributed-multithreading/53869)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 3\
**Last updated:** [May 12, 2021, 12:44pm UTC](https://discourse.julialang.org/t/controlling-thread-affinity-for-distributed-multithreading/53869 "2021-05-12T12:44:49Z")

</div>

I have a question regarding the setup of hybrid parallelism which combines multithreading and distributed computations. Let’s say I want to run some computation on a machine with Non-Uniform Memory Access. In this case,…

---

## [Persistant arrays (or parameters) to avoid re-allocation](https://discourse.julialang.org/t/persistant-arrays-or-parameters-to-avoid-re-allocation/60889)

<div class="topic-metadata">

**Author:** [@RGerzaguet](https://discourse.julialang.org/u/RGerzaguet)\
**Replies:** 4\
**Last updated:** [May 12, 2021, 11:59am UTC](https://discourse.julialang.org/t/persistant-arrays-or-parameters-to-avoid-re-allocation/60889 "2021-05-12T11:59:48Z")

</div>

Hello there I have a question on how we can avoid array re-allocation (without changing the API of a function) by making variables (and especially array) persistent from one function call to another, specialized on the …

---

## [Proper way to access large matrix in a matrix list](https://discourse.julialang.org/t/proper-way-to-access-large-matrix-in-a-matrix-list/60965)

<div class="topic-metadata">

**Author:** [@ZhiyuanYao](https://discourse.julialang.org/u/ZhiyuanYao)\
**Replies:** 12\
**Last updated:** [May 12, 2021, 11:42am UTC](https://discourse.julialang.org/t/proper-way-to-access-large-matrix-in-a-matrix-list/60965 "2021-05-12T11:42:37Z")

</div>

I have the following code snippet where eigvecs\_k is a global variable, of type Vector{Matrix{ComplexF64}} and consists two matrix of size 4300\*4300. basisN = 4300 function constructPsi!(coeffs\_k::Vector{Vector{ComplexF…

---

## [Optim: Problems with Fminbox and the NelderMead algorithm](https://discourse.julialang.org/t/optim-problems-with-fminbox-and-the-neldermead-algorithm/60978)

<div class="topic-metadata">

**Author:** [@itzui](https://discourse.julialang.org/u/itzui)\
**Replies:** 4\
**Last updated:** [May 12, 2021, 10:44am UTC](https://discourse.julialang.org/t/optim-problems-with-fminbox-and-the-neldermead-algorithm/60978 "2021-05-12T10:44:39Z")

</div>

Hi, Today my Optim package was updated. However, after this update, the optimization doesn’t work anymore. For the optimization I use the Nelder-Mead algorithm. In order to set some boundaries, I use Fminbox, i.e., the …

---

## [Set global markersize in Makie](https://discourse.julialang.org/t/set-global-markersize-in-makie/61007)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 2\
**Last updated:** [May 12, 2021, 9:31am UTC](https://discourse.julialang.org/t/set-global-markersize-in-makie/61007 "2021-05-12T09:31:47Z")

</div>

Is it possible to set an attribute like markersize globally? If yes, how so? I have tried activating a theme my\_theme = Theme(markersize=50) set\_theme!(my\_theme) but this does not change the marker size of my scatterp…

---

## [Abstract Types and StructTypes - error reading AbstractTypes into concrete with JSON3](https://discourse.julialang.org/t/abstract-types-and-structtypes-error-reading-abstracttypes-into-concrete-with-json3/60897)

<div class="topic-metadata">

**Author:** [@djholiver](https://discourse.julialang.org/u/djholiver)\
**Replies:** 14\
**Last updated:** [May 12, 2021, 9:30am UTC](https://discourse.julialang.org/t/abstract-types-and-structtypes-error-reading-abstracttypes-into-concrete-with-json3/60897 "2021-05-12T09:30:07Z")

</div>

Hi, Believe I am running into a bit of a bug / unexpected behaviour that I can’t seem to work around when extracting an interface into a concrete type having defined more than one in a module. e.g.: this works: using…

---

## [Set axis-label size in Makie](https://discourse.julialang.org/t/set-axis-label-size-in-makie/61006)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 1\
**Last updated:** [May 12, 2021, 8:24am UTC](https://discourse.julialang.org/t/set-axis-label-size-in-makie/61006 "2021-05-12T08:24:42Z")

</div>

How does one set the size of the xlabel and ylabel in Makie? That is, change the font-size that makes up the label. Can a size be set globally, or would one have to do it for each plot?

---

## [Run external program escape charaters](https://discourse.julialang.org/t/run-external-program-escape-charaters/60896)

<div class="topic-metadata">

**Author:** [@LinasBa](https://discourse.julialang.org/u/LinasBa)\
**Replies:** 4\
**Last updated:** [May 12, 2021, 8:22am UTC](https://discourse.julialang.org/t/run-external-program-escape-charaters/60896 "2021-05-12T08:22:39Z")

</div>

Hello, I’m trying to run .exe file, but Julia command doesn’t seem to work correctly. .bat file that works: cmd /min /C "set \_\_COMPAT\_LAYER=RUNASINVOKER && start "" "C:/Users/User/AppData/Local/Programs/My Program.exe…

---

## [Gradient of latent space variable in Turing?](https://discourse.julialang.org/t/gradient-of-latent-space-variable-in-turing/60941)

<div class="topic-metadata">

**Author:** [@marius311](https://discourse.julialang.org/u/marius311)\
**Replies:** 1\
**Last updated:** [May 12, 2021, 7:10am UTC](https://discourse.julialang.org/t/gradient-of-latent-space-variable-in-turing/60941 "2021-05-12T07:10:58Z")

</div>

I just started playing with Turing so this is probably a stupid question, is there an easy way (say for the purposes of inspecting my model) to get a posterior gradient of a latent space variable at fixed data? Here’s m…

---

## [Dispatch on plot recipe](https://discourse.julialang.org/t/dispatch-on-plot-recipe/60944)

<div class="topic-metadata">

**Author:** [@rveltz](https://discourse.julialang.org/u/rveltz)\
**Replies:** 2\
**Last updated:** [May 12, 2021, 5:26am UTC](https://discourse.julialang.org/t/dispatch-on-plot-recipe/60944 "2021-05-12T05:26:08Z")

</div>

Hi, I have a problem with Plot recipe in Plots.jl. I have a plot for an abstracttype that I want to use for a concrete type. How can I do this? RecipesBase.@recipe function Plots(contres::AbstractBranchResult) # do…

---

## [How to expand a polynomial in Symbolics.jl?](https://discourse.julialang.org/t/how-to-expand-a-polynomial-in-symbolics-jl/58530)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 8\
**Last updated:** [May 12, 2021, 4:28am UTC](https://discourse.julialang.org/t/how-to-expand-a-polynomial-in-symbolics-jl/58530 "2021-05-12T04:28:03Z")

</div>

I’m trying out the package Symbolics.jl. There is a “simplify” function, but not “expand” which is ubiquitous among other CASs. Is this functionality still to be implemented, or hidden somewhere?

---

## [Warmstarting variables does not work with Xpress](https://discourse.julialang.org/t/warmstarting-variables-does-not-work-with-xpress/60989)

<div class="topic-metadata">

**Author:** [@obar](https://discourse.julialang.org/u/obar)\
**Replies:** 3\
**Last updated:** [May 12, 2021, 4:00am UTC](https://discourse.julialang.org/t/warmstarting-variables-does-not-work-with-xpress/60989 "2021-05-12T04:00:19Z")

</div>

Hello, When using the xpress solver through JuMP and the Xpress.jl packages to solve a mixed-integer program, I seem to be unable to warm-start primal variable values using set\_start\_value. Is this expected? Thanks!

---

## [Bayes Testing](https://discourse.julialang.org/t/bayes-testing/60373)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 27\
**Last updated:** [May 12, 2021, 3:05am UTC](https://discourse.julialang.org/t/bayes-testing/60373 "2021-05-12T03:05:17Z")

</div>

I tried to add BayesTesting.jl , but apparently it’s gone from GitHub. Is there a packages that does Bayesian t-tests or other hypothesis testsing?

---

## [Constraint for scheduling worker to complete task before moving on](https://discourse.julialang.org/t/constraint-for-scheduling-worker-to-complete-task-before-moving-on/60984)

<div class="topic-metadata">

**Author:** [@eipi10](https://discourse.julialang.org/u/eipi10)\
**Replies:** 3\
**Last updated:** [May 12, 2021, 2:44am UTC](https://discourse.julialang.org/t/constraint-for-scheduling-worker-to-complete-task-before-moving-on/60984 "2021-05-12T02:44:21Z")

</div>

I have a worker-task scheduling problem that I am using a MILP on with JuMP. I want to set a constraint where once a worker starts a task they must complete that task before moving to a new task. I am looking at workers,…

---

## [Gridap.jl solution at mesh nodes?](https://discourse.julialang.org/t/gridap-jl-solution-at-mesh-nodes/60993)

<div class="topic-metadata">

**Author:** [@kc104](https://discourse.julialang.org/u/kc104)\
**Replies:** 0\
**Last updated:** [May 12, 2021, 2:41am UTC](https://discourse.julialang.org/t/gridap-jl-solution-at-mesh-nodes/60993 "2021-05-12T02:41:03Z")

</div>

I’m using Gridap.jl for some PDE work and would like to access the solution at the mesh nodes + the mesh coordinates in the form of a standard julia array (the end goal is to interpolate the solution at a new set of coor…

---

## [Usage of MbedTLS with TCP sockets](https://discourse.julialang.org/t/usage-of-mbedtls-with-tcp-sockets/60811)

<div class="topic-metadata">

**Author:** [@ligert123](https://discourse.julialang.org/u/ligert123)\
**Replies:** 4\
**Last updated:** [May 11, 2021, 7:06am UTC](https://discourse.julialang.org/t/usage-of-mbedtls-with-tcp-sockets/60811 "2021-05-11T07:06:56Z")

</div>

Hello, i have been trying to setup an encrypted TCP server connection using MbedTLS and i have been having trouble getting it working. I keep receiving: MbedTLS error code -31104: SSL - Processing of the ServerHello han…

---

## [Testing RCall in CI](https://discourse.julialang.org/t/testing-rcall-in-ci/16832)

<div class="topic-metadata">

**Author:** [@kevbonham](https://discourse.julialang.org/u/kevbonham)\
**Replies:** 2\
**Last updated:** [May 12, 2021, 1:44am UTC](https://discourse.julialang.org/t/testing-rcall-in-ci/16832 "2021-05-12T01:44:27Z")

</div>

I’m attempting to get CI working on a package that depends on RCall. I copied the initialization code in the RCall repo, but I’m still running into issues. As far as I can tell, there are two things: Pkg.build("Rcall"…

---

## [How to use AD for function with multiple inputs?](https://discourse.julialang.org/t/how-to-use-ad-for-function-with-multiple-inputs/60932)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 4\
**Last updated:** [May 12, 2021, 12:36am UTC](https://discourse.julialang.org/t/how-to-use-ad-for-function-with-multiple-inputs/60932 "2021-05-12T00:36:24Z")

</div>

Over the past several days I have been struggling with AD for a particular function. I have boiled down the problem to this: using ForwardDiff function F!(resx, resy, x, y) resx\[1\] = 1 - x\[1\] resx\[2\] = 10(x\[2\]-…

---

## [PGFPlotsX dependency ArgCheck](https://discourse.julialang.org/t/pgfplotsx-dependency-argcheck/60979)

<div class="topic-metadata">

**Author:** [@GregR](https://discourse.julialang.org/u/GregR)\
**Replies:** 8\
**Last updated:** [May 11, 2021, 11:36pm UTC](https://discourse.julialang.org/t/pgfplotsx-dependency-argcheck/60979 "2021-05-11T23:36:57Z")

</div>

It looks like the package ArgCheck.jl got deregistered, or whatever happens when the Package Manager doesn’t know about a package. So this breaks PGFPlotsX. I am using Julia 1.6.1. But the github repository is here: …

---

## [WGLMakie doesn't display in browser](https://discourse.julialang.org/t/wglmakie-doesnt-display-in-browser/60868)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 2\
**Last updated:** [May 11, 2021, 10:30pm UTC](https://discourse.julialang.org/t/wglmakie-doesnt-display-in-browser/60868 "2021-05-11T22:30:06Z")

</div>

I’m trying to copy the jsserve-wglmakie example. I cloned JSServe.jl, installed WGLMakie and ran JSServe.browser\_display() app = App() do return scatter(1:5,1:5) end display(app) but the page in the bro…

---

## [Trying to install QML.jl without success](https://discourse.julialang.org/t/trying-to-install-qml-jl-without-success/60761)

<div class="topic-metadata">

**Author:** [@Jussi\_Salmela](https://discourse.julialang.org/u/Jussi_Salmela)\
**Replies:** 7\
**Last updated:** [May 11, 2021, 9:23pm UTC](https://discourse.julialang.org/t/trying-to-install-qml-jl-without-success/60761 "2021-05-11T21:23:57Z")

</div>

Hello all! I decided to try what I can do with QML but I got stuck before even getting started i.e. in the installation phase. Here’s what I tried and what happened: Environment: PC: Razer Blade 15 OS: Win 10 (with al…

---

## [Trying to save MPS from raw solver and problems with MOI.RawSolver()](https://discourse.julialang.org/t/trying-to-save-mps-from-raw-solver-and-problems-with-moi-rawsolver/58515)

<div class="topic-metadata">

**Author:** [@Henrique\_Becker](https://discourse.julialang.org/u/Henrique_Becker)\
**Replies:** 5\
**Last updated:** [May 11, 2021, 9:16pm UTC](https://discourse.julialang.org/t/trying-to-save-mps-from-raw-solver-and-problems-with-moi-rawsolver/58515 "2021-05-11T21:16:07Z")

</div>

I am having problems with JuMP.write\_to\_file which calls MOI.write\_to\_file. I had some problems using Model with no solver attached (because this calls the MOI function mentioned above and, at the moment, it seems a litt…

---

## [Derivative of a Symbolic Expression as a Symbol Valued Function](https://discourse.julialang.org/t/derivative-of-a-symbolic-expression-as-a-symbol-valued-function/60975)

<div class="topic-metadata">

**Author:** [@GpuCoder](https://discourse.julialang.org/u/GpuCoder)\
**Replies:** 6\
**Last updated:** [May 11, 2021, 8:55pm UTC](https://discourse.julialang.org/t/derivative-of-a-symbolic-expression-as-a-symbol-valued-function/60975 "2021-05-11T20:55:37Z")

</div>

julia\> using Symbolics julia\> @variables a3, a2, a1, a0, t 5-element Vector{Num}: a3 a2 a1 a0 t julia\> f0(t) = a3\*t^3 + a2\*t^2 + a1\*t + a0 f0 (generic function with 1 method) julia\> f1Gen = Differential(t)(f0(t))…

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

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