# Latest

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

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

**Page:** 1342

---

## [Control where mutables are allocated in a very special case: a large number of mutables of the same type](https://discourse.julialang.org/t/control-where-mutables-are-allocated-in-a-very-special-case-a-large-number-of-mutables-of-the-same-type/63971)

<div class="topic-metadata">

**Author:** [@zsunberg](https://discourse.julialang.org/u/zsunberg)\
**Replies:** 11\
**Last updated:** [July 4, 2021, 5:41am UTC](https://discourse.julialang.org/t/control-where-mutables-are-allocated-in-a-very-special-case-a-large-number-of-mutables-of-the-same-type/63971 "2021-07-04T05:41:36Z")

</div>

In my research, I often find myself incrementally creating large graphs or trees where each node has some properties that might get updated later. Semantically, it makes the most sense for each node to be represented by…

---

## [\[ANN\]: Announcing RxNav.jl interface to National Library of Medicine RxNav database](https://discourse.julialang.org/t/ann-announcing-rxnav-jl-interface-to-national-library-of-medicine-rxnav-database/64020)

<div class="topic-metadata">

**Author:** [@wherrera](https://discourse.julialang.org/u/wherrera)\
**Replies:** 0\
**Last updated:** [July 4, 2021, 5:27am UTC](https://discourse.julialang.org/t/ann-announcing-rxnav-jl-interface-to-national-library-of-medicine-rxnav-database/64020 "2021-07-04T05:27:18Z")

</div>

and

---

## [Saving to PDF Using Palatino Roman Doesn't Show Negative Signs with Plots.jl](https://discourse.julialang.org/t/saving-to-pdf-using-palatino-roman-doesnt-show-negative-signs-with-plots-jl/64003)

<div class="topic-metadata">

**Author:** [@ggarza](https://discourse.julialang.org/u/ggarza)\
**Replies:** 8\
**Last updated:** [July 4, 2021, 5:19am UTC](https://discourse.julialang.org/t/saving-to-pdf-using-palatino-roman-doesnt-show-negative-signs-with-plots-jl/64003 "2021-07-04T05:19:22Z")

</div>

As stated in the topic title, saving a plot to a pdf when using the fontfamily “Palatino Roman” doesn’t show negative signs. Here’s a MWE: using Plots f(x) = x^2-3 pl = plot(f, -3, 3, fontfamily="Palatino Roman") savef…

---

## [Learning and benchmarking resources](https://discourse.julialang.org/t/learning-and-benchmarking-resources/64018)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 0\
**Last updated:** [July 4, 2021, 4:16am UTC](https://discourse.julialang.org/t/learning-and-benchmarking-resources/64018 "2021-07-04T04:16:30Z")

</div>

I saw a post in the Data domain saying it was hard to get resources to learn MPI programming. First off I am not promoting the company I work for (Dell). I like to connect people and to inspire people with possibilities …

---

## [ANN: Canberra Meetup - Mixed Effect Modelling with Julia](https://discourse.julialang.org/t/ann-canberra-meetup-mixed-effect-modelling-with-julia/63670)

<div class="topic-metadata">

**Author:** [@mohamed82008](https://discourse.julialang.org/u/mohamed82008)\
**Replies:** 1\
**Last updated:** [July 4, 2021, 2:52am UTC](https://discourse.julialang.org/t/ann-canberra-meetup-mixed-effect-modelling-with-julia/63670 "2021-07-04T02:52:09Z")

</div>

I am happy to announce that the next virtual Julia meetup in Canberra has been scheduled for July 4, 1 pm AEST. https://www.meetup.com/en-AU/canberra-julia-programming-language-meetup-group/events/279116530/ In this mee…

---

## [Fun, Interesting or Important Projects in Need of Contribution?](https://discourse.julialang.org/t/fun-interesting-or-important-projects-in-need-of-contribution/64002)

<div class="topic-metadata">

**Author:** [@Luapulu](https://discourse.julialang.org/u/Luapulu)\
**Replies:** 4\
**Last updated:** [July 4, 2021, 2:36am UTC](https://discourse.julialang.org/t/fun-interesting-or-important-projects-in-need-of-contribution/64002 "2021-07-04T02:36:16Z")

</div>

Hey community, I’m asking about great projects to contribute to by writing code, fixing bugs, etc. either in the language itself, the standard library or in some package. So, what project/issue/codebase did you have fu…

---

## [ReinforcementLearning.jl I'm lost .. trying to implement an HVAC time to start system](https://discourse.julialang.org/t/reinforcementlearning-jl-im-lost-trying-to-implement-an-hvac-time-to-start-system/63941)

<div class="topic-metadata">

**Author:** [@mackyo123](https://discourse.julialang.org/u/mackyo123)\
**Replies:** 7\
**Last updated:** [July 4, 2021, 1:31am UTC](https://discourse.julialang.org/t/reinforcementlearning-jl-im-lost-trying-to-implement-an-hvac-time-to-start-system/63941 "2021-07-04T01:31:48Z")

</div>

I’m trying to figure out how to read in data from an HVAC system with 75 units with Zone Temperature (What the temperature is now) , Set Point(What the temperature needs to be at start time), Minutes till start time from…

---

## [SCIP solver presolve](https://discourse.julialang.org/t/scip-solver-presolve/63946)

<div class="topic-metadata">

**Author:** [@mjanun](https://discourse.julialang.org/u/mjanun)\
**Replies:** 2\
**Last updated:** [July 3, 2021, 11:34pm UTC](https://discourse.julialang.org/t/scip-solver-presolve/63946 "2021-07-03T23:34:25Z")

</div>

SCIP presolve incorrectly returns some MILP and MINLP problems as infeasible or it gets stuck on presolving. I am trying to turn off presolve, but I am not sure which parameter to use. I have tried concurrent\_presolvebef…

---

## [PackageCompiler: compiling modules not in a package](https://discourse.julialang.org/t/packagecompiler-compiling-modules-not-in-a-package/24274)

<div class="topic-metadata">

**Author:** [@asprionj](https://discourse.julialang.org/u/asprionj)\
**Replies:** 3\
**Last updated:** [July 3, 2021, 11:15pm UTC](https://discourse.julialang.org/t/packagecompiler-compiling-modules-not-in-a-package/24274 "2021-07-03T23:15:28Z")

</div>

I have several modules that are not in a package but defined in each one file in some local folder. For normal usage, I just add this folder to LOAD\_PATH in the startup.jl and I can use using to load the modules. Is ther…

---

## [How to raise a warning when using the default constructor directly?](https://discourse.julialang.org/t/how-to-raise-a-warning-when-using-the-default-constructor-directly/64011)

<div class="topic-metadata">

**Author:** [@andrey2185](https://discourse.julialang.org/u/andrey2185)\
**Replies:** 1\
**Last updated:** [July 3, 2021, 10:34pm UTC](https://discourse.julialang.org/t/how-to-raise-a-warning-when-using-the-default-constructor-directly/64011 "2021-07-03T22:34:20Z")

</div>

Hellow! I have a code : module Test export custom\_constructor\_1, custom\_constructor\_2 struct Foo a::Int b::Int c::Int function Foo(a::Int, b::Int) # @warn "You should use a custom constructor!" # this must work…

---

## [\[ANN\] Announcing AlphaZero.jl](https://discourse.julialang.org/t/ann-announcing-alphazero-jl/36877)

<div class="topic-metadata">

**Author:** [@jonathan-laurent](https://discourse.julialang.org/u/jonathan-laurent)\
**Replies:** 36\
**Last updated:** [July 3, 2021, 11:00pm UTC](https://discourse.julialang.org/t/ann-announcing-alphazero-jl/36877 "2021-07-03T23:00:06Z")

</div>

I am excited to announce AlphaZero.jl: a generic, simple and fast implementation of Deepmind’s AlphaZero algorithm. The core algorithm is only 2,000 lines of pure, hackable Julia code. Generic interfaces make it easy t…

---

## [Overriding Base.show for Int64 causes madness](https://discourse.julialang.org/t/overriding-base-show-for-int64-causes-madness/63961)

<div class="topic-metadata">

**Author:** [@ess3sq](https://discourse.julialang.org/u/ess3sq)\
**Replies:** 6\
**Last updated:** [July 3, 2021, 10:32pm UTC](https://discourse.julialang.org/t/overriding-base-show-for-int64-causes-madness/63961 "2021-07-03T22:32:40Z")

</div>

Dear all, I am dumbstruck. I just tried the pointless endeavour overriding Base.show for Int64. This is what I did (REPL): julia\> import Base.show julia\> Base.show(io::IO, x::Int64) = println("Hello. I am $x") julia\> …

---

## [CUDA.rand() returns duplicate columns](https://discourse.julialang.org/t/cuda-rand-returns-duplicate-columns/63993)

<div class="topic-metadata">

**Author:** [@jpdoane](https://discourse.julialang.org/u/jpdoane)\
**Replies:** 2\
**Last updated:** [July 3, 2021, 8:51pm UTC](https://discourse.julialang.org/t/cuda-rand-returns-duplicate-columns/63993 "2021-07-03T20:51:34Z")

</div>

CUDA.rand() appears to return duplicate columns of complex numbers: julia\> CUDA.rand(ComplexF32, 512, 3) 512×3 CuArray{ComplexF32, 2}: 0.831271+0.460309im 0.831271+0.460309im 0.831271+0.460309im 0.0160654+0.0647…

---

## [HPV disease model estimation (beginner issue)](https://discourse.julialang.org/t/hpv-disease-model-estimation-beginner-issue/63981)

<div class="topic-metadata">

**Author:** [@Mevlut\_Cayli](https://discourse.julialang.org/u/Mevlut_Cayli)\
**Replies:** 2\
**Last updated:** [July 3, 2021, 8:41pm UTC](https://discourse.julialang.org/t/hpv-disease-model-estimation-beginner-issue/63981 "2021-07-03T20:41:21Z")

</div>

\`Hi, I 'm trying to estimate HPV model parameters with Turing but I’m not sure about how to determine prior parameters especially with σ , so when I run the model it seems because of the bad selection of σ last parameter…

---

## [Turing TypeError: in typeassert, expected Float64, got a value of type ForwardDiff.Dual{Nothing, Float64, 5}](https://discourse.julialang.org/t/turing-typeerror-in-typeassert-expected-float64-got-a-value-of-type-forwarddiff-dual-nothing-float64-5/63986)

<div class="topic-metadata">

**Author:** [@fkrauer](https://discourse.julialang.org/u/fkrauer)\
**Replies:** 2\
**Last updated:** [July 3, 2021, 8:11pm UTC](https://discourse.julialang.org/t/turing-typeerror-in-typeassert-expected-float64-got-a-value-of-type-forwarddiff-dual-nothing-float64-5/63986 "2021-07-03T20:11:30Z")

</div>

Hi all I have the well-known dual numbers problem when using Turing with an ODE model. The code below throws TypeError: in typeassert, expected Float64, got a value of type ForwardDiff.Dual{Nothing, Float64, 5}. From th…

---

## [Initializing a Vector{Cuchar} (string) prior to calling a C function](https://discourse.julialang.org/t/initializing-a-vector-cuchar-string-prior-to-calling-a-c-function/63991)

<div class="topic-metadata">

**Author:** [@mmv](https://discourse.julialang.org/u/mmv)\
**Replies:** 2\
**Last updated:** [July 3, 2021, 8:05pm UTC](https://discourse.julialang.org/t/initializing-a-vector-cuchar-string-prior-to-calling-a-c-function/63991 "2021-07-03T20:05:21Z")

</div>

Hi! I m declaring a 28 characters-long string variable before calling a C program as follows: julia\> datetime = Vector{Cuchar}(undef, 28) 28-element Vector{UInt8}: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 …

---

## [Solving two sparse linear systems one is the transpose of the other](https://discourse.julialang.org/t/solving-two-sparse-linear-systems-one-is-the-transpose-of-the-other/63984)

<div class="topic-metadata">

**Author:** [@Mohamed\_AbdElrahman](https://discourse.julialang.org/u/Mohamed_AbdElrahman)\
**Replies:** 2\
**Last updated:** [July 3, 2021, 7:02pm UTC](https://discourse.julialang.org/t/solving-two-sparse-linear-systems-one-is-the-transpose-of-the-other/63984 "2021-07-03T19:02:59Z")

</div>

I’m solving two sparse linear systems (A^T) \* x\_1 = b\_1 and A \* x\_2 = b\_2. where A^T is the transpose of A and b\_1, b\_2 are different. With a direct LU solver. How can I factorize once and use it to solve the two li…

---

## [Large memory consumption when reading multiple HDF5 files](https://discourse.julialang.org/t/large-memory-consumption-when-reading-multiple-hdf5-files/63992)

<div class="topic-metadata">

**Author:** [@useJulia](https://discourse.julialang.org/u/useJulia)\
**Replies:** 3\
**Last updated:** [July 3, 2021, 6:30pm UTC](https://discourse.julialang.org/t/large-memory-consumption-when-reading-multiple-hdf5-files/63992 "2021-07-03T18:30:55Z")

</div>

I found this large memory consumption running the following code. Memory usage n=1 0.003026944 GB Memory usage n=2 0.136589312 GB Memory usage n=4 0.27860992 GB Memory usage n=8 0.60479488 GB Memory usage n=16 1.2072632…

---

## [Installed last version of Julia and and Jupyter doesnt work because Kernel error](https://discourse.julialang.org/t/installed-last-version-of-julia-and-and-jupyter-doesnt-work-because-kernel-error/53288)

<div class="topic-metadata">

**Author:** [@elkinjosuerc](https://discourse.julialang.org/u/elkinjosuerc)\
**Replies:** 4\
**Last updated:** [July 3, 2021, 5:20pm UTC](https://discourse.julialang.org/t/installed-last-version-of-julia-and-and-jupyter-doesnt-work-because-kernel-error/53288 "2021-07-03T17:20:00Z")

</div>

Hi i used to have the Julia version 1.0.5 but i read i must update the version for the most recent one in order to solve a package error, so i installed the last version and delete the older. But when i try tu use Jupyte…

---

## [\[ANN\] FluxTraining.jl](https://discourse.julialang.org/t/ann-fluxtraining-jl/50856)

<div class="topic-metadata">

**Author:** [@holylorenzo](https://discourse.julialang.org/u/holylorenzo)\
**Replies:** 12\
**Last updated:** [July 3, 2021, 4:52pm UTC](https://discourse.julialang.org/t/ann-fluxtraining-jl/50856 "2021-07-03T16:52:09Z")

</div>

I am happy to announce the release of FluxTraining.jl, a deep learning training package for Flux models. It has an extensible callback system inspired by fastai’s and comes with features like metrics, hyperparameter sch…

---

## [Status of math intrinsics](https://discourse.julialang.org/t/status-of-math-intrinsics/63990)

<div class="topic-metadata">

**Author:** [@shiroghost](https://discourse.julialang.org/u/shiroghost)\
**Replies:** 1\
**Last updated:** [July 3, 2021, 3:35pm UTC](https://discourse.julialang.org/t/status-of-math-intrinsics/63990 "2021-07-03T15:35:29Z")

</div>

Hi all, I would like to understand what is the status of math functions in CUDA.jl. In particular: Is it neccesary to write CUDA.sin? It looks to me that this calls are converted automatically when code is executed on…

---

## [How to properly add two new columns (in dataframe) from a function that returns two arrays?](https://discourse.julialang.org/t/how-to-properly-add-two-new-columns-in-dataframe-from-a-function-that-returns-two-arrays/63964)

<div class="topic-metadata">

**Author:** [@joonp](https://discourse.julialang.org/u/joonp)\
**Replies:** 7\
**Last updated:** [July 3, 2021, 1:42pm UTC](https://discourse.julialang.org/t/how-to-properly-add-two-new-columns-in-dataframe-from-a-function-that-returns-two-arrays/63964 "2021-07-03T13:42:09Z")

</div>

Hello, I am a Julia newbie and I have a question. The example below sort of simplified my current problem— function myfun(id) a = \[id .+ 1, id .+ 2, id .+ 2\] b = \[id .- 1, id .- 2, id .- 3\] return \[a, b\] end myd…

---

## [Functions as keyword arguments](https://discourse.julialang.org/t/functions-as-keyword-arguments/63983)

<div class="topic-metadata">

**Author:** [@cormullion](https://discourse.julialang.org/u/cormullion)\
**Replies:** 2\
**Last updated:** [July 3, 2021, 12:54pm UTC](https://discourse.julialang.org/t/functions-as-keyword-arguments/63983 "2021-07-03T12:54:58Z")

</div>

This function is to be called either without an auxiliary function or with one. But how can you test the supplied keyword argument to know when an auxiliary function has been supplied? function f(a; func = (b, c) -\> ())…

---

## [Tools/patterns to reduce latency with strategy pattern](https://discourse.julialang.org/t/tools-patterns-to-reduce-latency-with-strategy-pattern/63985)

<div class="topic-metadata">

**Author:** [@DrChainsaw](https://discourse.julialang.org/u/DrChainsaw)\
**Replies:** 0\
**Last updated:** [July 3, 2021, 12:15pm UTC](https://discourse.julialang.org/t/tools-patterns-to-reduce-latency-with-strategy-pattern/63985 "2021-07-03T12:15:56Z")

</div>

I’m looking into redesigning some code I wrote long ago which implements a strategy pattern. A mockup example: struct StrategyX{T1,T2, V} \<: AbstractStrategy strategyparam1::T1 strategyparam2::T2 applyto:…

---

## [How to sample from estimated posterior distribution?](https://discourse.julialang.org/t/how-to-sample-from-estimated-posterior-distribution/59975)

<div class="topic-metadata">

**Author:** [@Abhishek\_Sharma](https://discourse.julialang.org/u/Abhishek_Sharma)\
**Replies:** 1\
**Last updated:** [July 3, 2021, 12:00pm UTC](https://discourse.julialang.org/t/how-to-sample-from-estimated-posterior-distribution/59975 "2021-07-03T12:00:34Z")

</div>

Hi, I am new to both Bayesian stuff and Julia. I’m not sure if this question is too basic or has already been answered but I have some code which I wanted to translate into turing from pymc3. It’s from this blog post. I…

---

## [Linear regression Gibbs sampler](https://discourse.julialang.org/t/linear-regression-gibbs-sampler/62817)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 2\
**Last updated:** [July 3, 2021, 11:06am UTC](https://discourse.julialang.org/t/linear-regression-gibbs-sampler/62817 "2021-07-03T11:06:53Z")

</div>

I tried to copy this Python sampler Gibbs sampling for Bayesian linear regression in Python | Kieran R Campbell - blog but my Julia implementation returns unexpected numbers. What am I doing wrong? using Distributions…

---

## [Remove inner module function name with @docs in Documenter.jl](https://discourse.julialang.org/t/remove-inner-module-function-name-with-docs-in-documenter-jl/61617)

<div class="topic-metadata">

**Author:** [@MattWillFlood](https://discourse.julialang.org/u/MattWillFlood)\
**Replies:** 2\
**Last updated:** [July 3, 2021, 10:09am UTC](https://discourse.julialang.org/t/remove-inner-module-function-name-with-docs-in-documenter-jl/61617 "2021-07-03T10:09:44Z")

</div>

Hi Guys, :slightly\_smiling\_face: I’m creating documentation for a package using Documenter.jl :man\_teacher:t2: :woman\_teacher:t2:, and I’m loving the efficiency that the @docs macro provides. :raised\_hands:t2: However…

---

## [ODE solver giving wrong results](https://discourse.julialang.org/t/ode-solver-giving-wrong-results/63891)

<div class="topic-metadata">

**Author:** [@rodpiferreira](https://discourse.julialang.org/u/rodpiferreira)\
**Replies:** 5\
**Last updated:** [July 3, 2021, 3:56am UTC](https://discourse.julialang.org/t/ode-solver-giving-wrong-results/63891 "2021-07-03T03:56:29Z")

</div>

Hey everyone! I want to solve f(u,p,t) = An\*u + b, where: An = \[0.0+0.0im 1.0+0.0im 5.0+0.0im -1.0+0.0im\], b = \[1.0+0.0im, 0.0+0.0im\], x = \[0.0+0.0im, 1.0+0.0im\] (initial condition) Which means that I have a system…

---

## [Modelling and Simulation: Regarding DDEs](https://discourse.julialang.org/t/modelling-and-simulation-regarding-ddes/63677)

<div class="topic-metadata">

**Author:** [@Phonindra](https://discourse.julialang.org/u/Phonindra)\
**Replies:** 19\
**Last updated:** [July 2, 2021, 10:43pm UTC](https://discourse.julialang.org/t/modelling-and-simulation-regarding-ddes/63677 "2021-07-02T22:43:13Z")

</div>

I was facing a problem regarding delay. For low delay e.g. tau = 0.101 the code was fine as tau increases slightly as tau = 0.104 or more it shows some error not exactly error but warning and shows no promising result. W…

---

## [\[ANN\] SuiteSparseGraphBLAS.jl v0.4.0 - Complete Rewrite!](https://discourse.julialang.org/t/ann-suitesparsegraphblas-jl-v0-4-0-complete-rewrite/63958)

<div class="topic-metadata">

**Author:** [@rayegun](https://discourse.julialang.org/u/rayegun)\
**Replies:** 0\
**Last updated:** [July 2, 2021, 9:03pm UTC](https://discourse.julialang.org/t/ann-suitesparsegraphblas-jl-v0-4-0-complete-rewrite/63958 "2021-07-02T21:03:30Z")

</div>

Hi everyone, I’m happy to announce the v0.4.0 release of JuliaSparse/SuiteSparseGraphBLAS.jl (github.com)! This release is a complete rewrite of the original package, updating it to the latest version of SuiteSparse:Gra…

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

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