# Latest

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

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

**Page:** 1534

---

## [Understanding precompilation and its limitations (reducing latency)](https://discourse.julialang.org/t/understanding-precompilation-and-its-limitations-reducing-latency/48294)

<div class="topic-metadata">

**Author:** [@tim.holy](https://discourse.julialang.org/u/tim.holy)\
**Replies:** 13\
**Last updated:** [December 31, 2020, 7:37pm UTC](https://discourse.julialang.org/t/understanding-precompilation-and-its-limitations-reducing-latency/48294 "2020-12-31T19:37:00Z")

</div>

Many people have wanted to know more about how to reduce latency and the internal details of precompilation. I’ve just added a variant of the discussion below to SnoopCompile’s docs (Snooping on inference: @snoopi · Snoo…

---

## [Simple Turing model fails for InexactError](https://discourse.julialang.org/t/simple-turing-model-fails-for-inexacterror/52655)

<div class="topic-metadata">

**Author:** [@BradGroff](https://discourse.julialang.org/u/BradGroff)\
**Replies:** 5\
**Last updated:** [December 31, 2020, 7:04pm UTC](https://discourse.julialang.org/t/simple-turing-model-fails-for-inexacterror/52655 "2020-12-31T19:04:55Z")

</div>

Hi all, The model is a simple binomial on binary data: @model function coinflip\_binomial\_broken(y::Array{Int64}) # prior on p p ~ Beta(1, 1) # updates on p heads = sum(y) heads ~ Binomial(lengt…

---

## [MultivariateStats - Error in LinearDiscriminant option? Opportunity?](https://discourse.julialang.org/t/multivariatestats-error-in-lineardiscriminant-option-opportunity/52667)

<div class="topic-metadata">

**Author:** [@compleat](https://discourse.julialang.org/u/compleat)\
**Replies:** 0\
**Last updated:** [December 31, 2020, 5:50pm UTC](https://discourse.julialang.org/t/multivariatestats-error-in-lineardiscriminant-option-opportunity/52667 "2020-12-31T17:50:19Z")

</div>

The LinearDiscriminant option of MultivariateStats allows input of means and covariance, the latter either common or distinct. In the case of common covariance matrices, the Discriminant is linear. However, if the c…

---

## [Packages used to create animated reaction systems](https://discourse.julialang.org/t/packages-used-to-create-animated-reaction-systems/52664)

<div class="topic-metadata">

**Author:** [@22natarajank](https://discourse.julialang.org/u/22natarajank)\
**Replies:** 2\
**Last updated:** [December 31, 2020, 4:35pm UTC](https://discourse.julialang.org/t/packages-used-to-create-animated-reaction-systems/52664 "2020-12-31T16:35:53Z")

</div>

Hello! I am working on a Pluto notebook where I am trying to simulate how reaction systems will naturally move back to equilibrium, even after making changes to concentrations of the species, the addition of catalysts, o…

---

## [How to automatically use packages at startup?](https://discourse.julialang.org/t/how-to-automatically-use-packages-at-startup/8509)

<div class="topic-metadata">

**Author:** [@dlfivefifty](https://discourse.julialang.org/u/dlfivefifty)\
**Replies:** 16\
**Last updated:** [December 31, 2020, 4:03pm UTC](https://discourse.julialang.org/t/how-to-automatically-use-packages-at-startup/8509 "2020-12-31T16:03:16Z")

</div>

Is it possible to have the REPL automatically call using PackageName at startup? This seems very useful with 0.7 (using LinearAlgebra), etc. I tried to find it the Julia docs, maybe the answer could be added to the FAQ …

---

## [Black scholes pde](https://discourse.julialang.org/t/black-scholes-pde/52336)

<div class="topic-metadata">

**Author:** [@animeshsaxena](https://discourse.julialang.org/u/animeshsaxena)\
**Replies:** 3\
**Last updated:** [December 31, 2020, 3:16pm UTC](https://discourse.julialang.org/t/black-scholes-pde/52336 "2020-12-31T15:16:10Z")

</div>

Hello I am new to julia coming from a python / mathematica background for pde solving. For simple testing I was trying a simpler version of black scholes equation. 0 drift (rates / dividends 0) so it’s just the 2 term …

---

## [Consistency testing when unit-testing is infeasible](https://discourse.julialang.org/t/consistency-testing-when-unit-testing-is-infeasible/52540)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 25\
**Last updated:** [December 31, 2020, 2:40pm UTC](https://discourse.julialang.org/t/consistency-testing-when-unit-testing-is-infeasible/52540 "2020-12-31T14:40:46Z")

</div>

Unit-testing is a great concept. Unfortunately, when you are dealing with complex scientific code, it is usually impossible to formulate the tests since you don’t know exactly what are you going to obtain (with the excep…

---

## [How to "source" a string?](https://discourse.julialang.org/t/how-to-source-a-string/52643)

<div class="topic-metadata">

**Author:** [@tomtom](https://discourse.julialang.org/u/tomtom)\
**Replies:** 12\
**Last updated:** [December 31, 2020, 1:56pm UTC](https://discourse.julialang.org/t/how-to-source-a-string/52643 "2020-12-31T13:56:55Z")

</div>

I have 2 functions that are highly similar, except that there’s a block of codes appears only in one of the functions. For example, something like: function fun() XXXXXX XXXXXX YYYYYY YYYYYY end function gun(…

---

## [Finding values and deleting rows in a DataFrame](https://discourse.julialang.org/t/finding-values-and-deleting-rows-in-a-dataframe/52653)

<div class="topic-metadata">

**Author:** [@FDon](https://discourse.julialang.org/u/FDon)\
**Replies:** 2\
**Last updated:** [December 31, 2020, 1:45pm UTC](https://discourse.julialang.org/t/finding-values-and-deleting-rows-in-a-dataframe/52653 "2020-12-31T13:45:30Z")

</div>

I’m new to this place, as I am currently taking an introduction course to Julia at university. I am having trouble regarding our take home assignement and hope that you guys can help me out a bit. So here’s the question…

---

## [Flux; \`params\` cannot track any parameters of networks when building networks without \`Chain\`](https://discourse.julialang.org/t/flux-params-cannot-track-any-parameters-of-networks-when-building-networks-without-chain/52257)

<div class="topic-metadata">

**Author:** [@iHany](https://discourse.julialang.org/u/iHany)\
**Replies:** 6\
**Last updated:** [December 31, 2020, 12:17pm UTC](https://discourse.julialang.org/t/flux-params-cannot-track-any-parameters-of-networks-when-building-networks-without-chain/52257 "2020-12-31T12:17:36Z")

</div>

For my personal uses, I build a network like the example provided by Flux. However, the resulting function (model) m is not compatible with Flux.params. Here’s reproducible easy example corresponding to my case: julia\>…

---

## [Function with Vararg and Missing ambiguity check?](https://discourse.julialang.org/t/function-with-vararg-and-missing-ambiguity-check/52657)

<div class="topic-metadata">

**Author:** [@tomaklutfu](https://discourse.julialang.org/u/tomaklutfu)\
**Replies:** 1\
**Last updated:** [December 31, 2020, 12:39pm UTC](https://discourse.julialang.org/t/function-with-vararg-and-missing-ambiguity-check/52657 "2020-12-31T12:39:03Z")

</div>

Consider the function with two methods julia\> f(::Integer, x::Vararg{Integer, N}) where {N} = NTuple{N,Int}(s) # Here s intentional f (generic function with 1 method) julia\> f(::Integer, x::Vararg{Any, N}) where {N} = …

---

## [Benchmarking with @time @btime and subsequent runs return shorter execution time](https://discourse.julialang.org/t/benchmarking-with-time-btime-and-subsequent-runs-return-shorter-execution-time/52580)

<div class="topic-metadata">

**Author:** [@neo\_abs](https://discourse.julialang.org/u/neo_abs)\
**Replies:** 8\
**Last updated:** [December 31, 2020, 10:33am UTC](https://discourse.julialang.org/t/benchmarking-with-time-btime-and-subsequent-runs-return-shorter-execution-time/52580 "2020-12-31T10:33:20Z")

</div>

I am using @time and @btime macros to determine how my function preforms on different number of threads. I am mostly interested not in specific time but relative values. Threads aside, I noticed that the more times I ru…

---

## [LibPQ.Errors.PQResultError](https://discourse.julialang.org/t/libpq-errors-pqresulterror/52649)

<div class="topic-metadata">

**Author:** [@Laco\_Kovac](https://discourse.julialang.org/u/Laco_Kovac)\
**Replies:** 0\
**Last updated:** [December 31, 2020, 9:27am UTC](https://discourse.julialang.org/t/libpq-errors-pqresulterror/52649 "2020-12-31T09:27:53Z")

</div>

I am quite new to Julia and I suspect my question is probably rather about how to access/analyze data type/structure. Using LibPQ, execute is throwing an exception exc. typeof(exc) is LibPQ.Errors.PQResultError{LibPQ.E…

---

## [How to invoke library from function](https://discourse.julialang.org/t/how-to-invoke-library-from-function/52591)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 7\
**Last updated:** [December 31, 2020, 6:55am UTC](https://discourse.julialang.org/t/how-to-invoke-library-from-function/52591 "2020-12-31T06:55:58Z")

</div>

I am setting a function (let’s say, A)that requires a library. I would like to put the function in a common file and call it with include from other files. To use such a function as any other Julia functions, the library…

---

## [\[ANN\] Juno-Plus 0.10.2](https://discourse.julialang.org/t/ann-juno-plus-0-10-2/32807)

<div class="topic-metadata">

**Author:** [@Amin\_Yahyaabadi](https://discourse.julialang.org/u/Amin_Yahyaabadi)\
**Replies:** 6\
**Last updated:** [December 31, 2020, 3:50am UTC](https://discourse.julialang.org/t/ann-juno-plus-0-10-2/32807 "2020-12-31T03:50:14Z")

</div>

2020-Feb-17: Juno-Plus 0.10.2: I released Juno-Plus 0.10.2 recently. Download it here: Sunsetting Atom - The GitHub Blog Changelog: new button: Enable/Disable Juno new button: Debug: Run File new button: Debug: Step…

---

## [String interpolation in the short-hand call of macro @bash1\_str](https://discourse.julialang.org/t/string-interpolation-in-the-short-hand-call-of-macro-bash1-str/51846)

<div class="topic-metadata">

**Author:** [@Lian\_Yunlong](https://discourse.julialang.org/u/Lian_Yunlong)\
**Replies:** 2\
**Last updated:** [December 31, 2020, 3:01am UTC](https://discourse.julialang.org/t/string-interpolation-in-the-short-hand-call-of-macro-bash1-str/51846 "2020-12-31T03:01:54Z")

</div>

Hello everyone, I am trying to improve the following macro: macro bash1\_str(s1) s = eval(s1); println(s); open(bash,"w",stdout) do io; print(io, s); end; end ; If I call @bash1\_str "mkdir $FD" The string FD is inter…

---

## [Variational inference for linear regression](https://discourse.julialang.org/t/variational-inference-for-linear-regression/52636)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 0\
**Last updated:** [December 30, 2020, 10:42pm UTC](https://discourse.julialang.org/t/variational-inference-for-linear-regression/52636 "2020-12-30T22:42:38Z")

</div>

This code presents a linear regression with generated data. Using NUTS, the parameter estimates are close to the true parameter values. However, using ADVI, the estimates are far from the true parameter values. Because …

---

## [Static website](https://discourse.julialang.org/t/static-website/52492)

<div class="topic-metadata">

**Author:** [@Kampuny11](https://discourse.julialang.org/u/Kampuny11)\
**Replies:** 2\
**Last updated:** [December 30, 2020, 10:32pm UTC](https://discourse.julialang.org/t/static-website/52492 "2020-12-30T22:32:03Z")

</div>

Does anyone know any documentation about Franklin for website creation? or is there another tool with documentation?

---

## [Plotting variable number of subplots in a plot](https://discourse.julialang.org/t/plotting-variable-number-of-subplots-in-a-plot/52632)

<div class="topic-metadata">

**Author:** [@iamsuddhasattwa](https://discourse.julialang.org/u/iamsuddhasattwa)\
**Replies:** 2\
**Last updated:** [December 30, 2020, 8:45pm UTC](https://discourse.julialang.org/t/plotting-variable-number-of-subplots-in-a-plot/52632 "2020-12-30T20:45:20Z")

</div>

Ho do I plot a variable number of subplots in a single common plot. For example, the following simple code using Plots; plotlyjs(); N = 3; Q = Array{Plots.Plot, 1}(undef, N); for n in 1:N Q\[n\] = plot(rand(4)); end …

---

## [Learning Julia, Visual Studio Code Shortcut Keys, Key Bindings](https://discourse.julialang.org/t/learning-julia-visual-studio-code-shortcut-keys-key-bindings/52629)

<div class="topic-metadata">

**Author:** [@jasonhnicholson](https://discourse.julialang.org/u/jasonhnicholson)\
**Replies:** 0\
**Last updated:** [December 30, 2020, 7:20pm UTC](https://discourse.julialang.org/t/learning-julia-visual-studio-code-shortcut-keys-key-bindings/52629 "2020-12-30T19:20:03Z")

</div>

I am working on learning these shortcut keys using Quizlet.com, which is like flashcards but better. Here is what I have put together so far. You can use these as well. Please make suggestions, and I will make updates. …

---

## [Using "Module.jl" as alias to include("Module.jl"); using .Module](https://discourse.julialang.org/t/using-module-jl-as-alias-to-include-module-jl-using-module/52610)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 4\
**Last updated:** [December 30, 2020, 7:00pm UTC](https://discourse.julialang.org/t/using-module-jl-as-alias-to-include-module-jl-using-module/52610 "2020-12-30T19:00:40Z")

</div>

Wouldn’t it be handy if using and import had methods (or @using and @import macros) that include and load the module at once? using "MyModule.jl" as an alias to include("MyModule.jl") using .MyModule and using "./M…

---

## [Clamp floats to int](https://discourse.julialang.org/t/clamp-floats-to-int/52624)

<div class="topic-metadata">

**Author:** [@hergum](https://discourse.julialang.org/u/hergum)\
**Replies:** 4\
**Last updated:** [December 30, 2020, 6:55pm UTC](https://discourse.julialang.org/t/clamp-floats-to-int/52624 "2020-12-30T18:55:59Z")

</div>

What is the appropriate way to clamp/convert a vector of floats to (unsigned) integers? I dont want convert/clamp/round/UInt8 to error out with InexactError, I just want to force some float’s into UInt8’s. I am sure the…

---

## [Registrator's crazy privileges](https://discourse.julialang.org/t/registrators-crazy-privileges/52222)

<div class="topic-metadata">

**Author:** [@FedericoStra](https://discourse.julialang.org/u/FedericoStra)\
**Replies:** 11\
**Last updated:** [December 30, 2020, 6:53pm UTC](https://discourse.julialang.org/t/registrators-crazy-privileges/52222 "2020-12-30T18:53:30Z")

</div>

I was trying to register a package on https://juliahub.com/ui/Registrator but got stuck at a scary banner: We need read/write privileges for your repositories to determine whether you are a contributor of this package. …

---

## [Are there good resources for learning deep learning in Julia?](https://discourse.julialang.org/t/are-there-good-resources-for-learning-deep-learning-in-julia/48355)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 3\
**Last updated:** [December 30, 2020, 5:08pm UTC](https://discourse.julialang.org/t/are-there-good-resources-for-learning-deep-learning-in-julia/48355 "2020-12-30T17:08:17Z")

</div>

I want to learn some machine learning / deep learning in my spare time, to understand algorithms like Google’s AlphaGo. I recently learned Julia and I’m wondering if there are good pedagogical introductions to ML without…

---

## [Performance problems when dealing with deliberately type-unstable code. How to use type knowledge better?](https://discourse.julialang.org/t/performance-problems-when-dealing-with-deliberately-type-unstable-code-how-to-use-type-knowledge-better/52535)

<div class="topic-metadata">

**Author:** [@jules](https://discourse.julialang.org/u/jules)\
**Replies:** 33\
**Last updated:** [December 30, 2020, 1:47pm UTC](https://discourse.julialang.org/t/performance-problems-when-dealing-with-deliberately-type-unstable-code-how-to-use-type-knowledge-better/52535 "2020-12-30T13:47:40Z")

</div>

I have a problem that crops up again and again, which relates to the use of different concrete types in situations where I can’t possibly establish type stability. Here’s a contrived example: There are three different su…

---

## [So I think I've learned the basics of Julia, where do I learn some more advanced content? (specifcally image feature extraction)](https://discourse.julialang.org/t/so-i-think-ive-learned-the-basics-of-julia-where-do-i-learn-some-more-advanced-content-specifcally-image-feature-extraction/34108)

<div class="topic-metadata">

**Author:** [@samantp](https://discourse.julialang.org/u/samantp)\
**Replies:** 3\
**Last updated:** [December 30, 2020, 2:01pm UTC](https://discourse.julialang.org/t/so-i-think-ive-learned-the-basics-of-julia-where-do-i-learn-some-more-advanced-content-specifcally-image-feature-extraction/34108 "2020-12-30T14:01:00Z")

</div>

I am learning to use Julia for my new research (MRI image feature extraction and classification). The language I am most comfortable with is MATLAB but I also have some basic understanding of python. What I don’t yet hav…

---

## [How to add a development version of an unregistered package](https://discourse.julialang.org/t/how-to-add-a-development-version-of-an-unregistered-package/52611)

<div class="topic-metadata">

**Author:** [@compleat](https://discourse.julialang.org/u/compleat)\
**Replies:** 2\
**Last updated:** [December 30, 2020, 1:30pm UTC](https://discourse.julialang.org/t/how-to-add-a-development-version-of-an-unregistered-package/52611 "2020-12-30T13:30:48Z")

</div>

Hello. I know how to add a development version of a registered package add PackageName#dev Also, I know how to add an unregistered package Pkg.add(url="\<git path\>/PackageName.jl") However, I have tried lots of ways…

---

## [Compute integral of a beta distribution](https://discourse.julialang.org/t/compute-integral-of-a-beta-distribution/52607)

<div class="topic-metadata">

**Author:** [@TBu](https://discourse.julialang.org/u/TBu)\
**Replies:** 7\
**Last updated:** [December 30, 2020, 12:40pm UTC](https://discourse.julialang.org/t/compute-integral-of-a-beta-distribution/52607 "2020-12-30T12:40:54Z")

</div>

Hi everyone, I used the Distributions package in order to generate a beta distribution, which works quite nicely: using Distributions d = Beta(10,15) However - is it possible to integrate over an interval of the distr…

---

## [DiscriminantAnalysis - old Package?](https://discourse.julialang.org/t/discriminantanalysis-old-package/34496)

<div class="topic-metadata">

**Author:** [@compleat](https://discourse.julialang.org/u/compleat)\
**Replies:** 2\
**Last updated:** [December 30, 2020, 12:13pm UTC](https://discourse.julialang.org/t/discriminantanalysis-old-package/34496 "2020-12-30T12:13:28Z")

</div>

I have been trying to get DiscriminantAnalysis to work, and it seems to add OK (with a couple of warnings), but when I try to use it, it falls over: julia\> using DiscriminantAnalysis \[ Info: Precompiling DiscriminantAn…

---

## [ANN MinimallyDisruptiveCurves.jl](https://discourse.julialang.org/t/ann-minimallydisruptivecurves-jl/47874)

<div class="topic-metadata">

**Author:** [@Dhruva2](https://discourse.julialang.org/u/Dhruva2)\
**Replies:** 5\
**Last updated:** [December 30, 2020, 10:46am UTC](https://discourse.julialang.org/t/ann-minimallydisruptivecurves-jl/47874 "2020-12-30T10:46:07Z")

</div>

Hi all, I thought I would crosspost my package announcement here. The package implements a recent algorithm for regional sensitivity analysis of models with many parameters. Any models, as long as there is a differe…

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

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