# Latest

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

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

**Page:** 929

---

## [Julia v1.8.1 has been released](https://discourse.julialang.org/t/julia-v1-8-1-has-been-released/87058)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 0\
**Last updated:** [September 11, 2022, 3:45am UTC](https://discourse.julialang.org/t/julia-v1-8-1-has-been-released/87058 "2022-09-11T03:45:01Z")

</div>

Julia version 1.8.1, the first patch release in the 1.8 series of releases, is now available. Binaries are available at https://julialang.org/downloads/ for the following platforms, listed here by support tier: Tier 1:…

---

## [Getting generated\_quantities from optimization result in Turing.jl](https://discourse.julialang.org/t/getting-generated-quantities-from-optimization-result-in-turing-jl/87025)

<div class="topic-metadata">

**Author:** [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Replies:** 3\
**Last updated:** [September 10, 2022, 11:45pm UTC](https://discourse.julialang.org/t/getting-generated-quantities-from-optimization-result-in-turing-jl/87025 "2022-09-10T23:45:41Z")

</div>

Suppose I optimize my Turing model to get some kind of reasonable parameter values… Is there a way to get the generated\_quantities? mapest = optimize(mymodel,MAP()) gen\_quant = ???

---

## [JuliaCall and SimpleChains not working together](https://discourse.julialang.org/t/juliacall-and-simplechains-not-working-together/86978)

<div class="topic-metadata">

**Author:** [@marcobonici](https://discourse.julialang.org/u/marcobonici)\
**Replies:** 8\
**Last updated:** [September 10, 2022, 9:12pm UTC](https://discourse.julialang.org/t/juliacall-and-simplechains-not-working-together/86978 "2022-09-10T21:12:28Z")

</div>

Hi, I have been working on a surrogate model, based on SimpleChains NNs, and I am quite satisfied with the performance. from juliacall import Main as jl jl.seval(“using Capse”) jl.seval(“using SimpleChains”) Since…

---

## [Julia autodiff result exporting to Fortran](https://discourse.julialang.org/t/julia-autodiff-result-exporting-to-fortran/87053)

<div class="topic-metadata">

**Author:** [@congUoM](https://discourse.julialang.org/u/congUoM)\
**Replies:** 2\
**Last updated:** [September 10, 2022, 9:11pm UTC](https://discourse.julialang.org/t/julia-autodiff-result-exporting-to-fortran/87053 "2022-09-10T21:11:16Z")

</div>

Hi all, I am working on an optimization problem in Fortran and I need a gradient of a function. Fortran does not have a good autodiff library so I am thinking of writing the Fortran function in Julia, using Julia autodi…

---

## [Stdio and Julia run time - implications for embedding Julia?](https://discourse.julialang.org/t/stdio-and-julia-run-time-implications-for-embedding-julia/87050)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 0\
**Last updated:** [September 10, 2022, 7:52pm UTC](https://discourse.julialang.org/t/stdio-and-julia-run-time-implications-for-embedding-julia/87050 "2022-09-10T19:52:13Z")

</div>

I came across Julia’s documentation on printf() and stdio in the Julia runtime. Is there any implication on how to safely mix stdio / iostream with Julia’s IO methods, when embedding Julia in a C/C++ program? This is fol…

---

## [When are two expressions equal?](https://discourse.julialang.org/t/when-are-two-expressions-equal/87045)

<div class="topic-metadata">

**Author:** [@qwerty](https://discourse.julialang.org/u/qwerty)\
**Replies:** 1\
**Last updated:** [September 10, 2022, 6:31pm UTC](https://discourse.julialang.org/t/when-are-two-expressions-equal/87045 "2022-09-10T18:31:37Z")

</div>

We know that an expression can be written in various forms. For example: (x - 2)^2 and 4 + x^2 - 4x are the same function. Given a set of substitution rules (such as the default ones in SymbolicUtils.jl), what is the be…

---

## [SymbolicUtils: LiteralReal](https://discourse.julialang.org/t/symbolicutils-literalreal/87044)

<div class="topic-metadata">

**Author:** [@qwerty](https://discourse.julialang.org/u/qwerty)\
**Replies:** 0\
**Last updated:** [September 10, 2022, 5:14pm UTC](https://discourse.julialang.org/t/symbolicutils-literalreal/87044 "2022-09-10T17:14:22Z")

</div>

When should the LiteralReal type be used? How can I convert an expression that contains LiteralReal types?

---

## [Negate \`a in b\`?](https://discourse.julialang.org/t/negate-a-in-b/86963)

<div class="topic-metadata">

**Author:** [@SodAlmighty](https://discourse.julialang.org/u/SodAlmighty)\
**Replies:** 10\
**Last updated:** [September 10, 2022, 3:27pm UTC](https://discourse.julialang.org/t/negate-a-in-b/86963 "2022-09-10T15:27:30Z")

</div>

The opposite of a in b seems to be !(a in b) which looks clunky to me. I would prefer something like a not in b, but that doesn’t work. Seems to me that a general rule would work well: x not op y ≣ !(x op y) Is there …

---

## [Can we require at least Julia 1.6 in DataFrames.jl](https://discourse.julialang.org/t/can-we-require-at-least-julia-1-6-in-dataframes-jl/86959)

<div class="topic-metadata">

**Author:** [@bkamins](https://discourse.julialang.org/u/bkamins)\
**Replies:** 21\
**Last updated:** [September 10, 2022, 1:18pm UTC](https://discourse.julialang.org/t/can-we-require-at-least-julia-1-6-in-dataframes-jl/86959 "2022-09-10T13:18:18Z")

</div>

DataFrames.jl currently supports Julia 1.0. We would like to drop this support and require at least Julia 1.6. If anyone objects to this please comment in this thread. Thank you!

---

## [COST Action proposal "Making Agent-Based Modelling Policy-Ready"](https://discourse.julialang.org/t/cost-action-proposal-making-agent-based-modelling-policy-ready/87035)

<div class="topic-metadata">

**Author:** [@bkamins](https://discourse.julialang.org/u/bkamins)\
**Replies:** 1\
**Last updated:** [September 10, 2022, 12:00pm UTC](https://discourse.julialang.org/t/cost-action-proposal-making-agent-based-modelling-policy-ready/87035 "2022-09-10T12:00:34Z")

</div>

Hi, This message is relevant for researchers in EU countries or affiliated countries supported by European Cooperation in Science and Technology. Soon a COST Action proposal “Making Agent-Based Modelling Policy-Ready” …

---

## [Error when supplying initial guess](https://discourse.julialang.org/t/error-when-supplying-initial-guess/86574)

<div class="topic-metadata">

**Author:** [@ivzktch99](https://discourse.julialang.org/u/ivzktch99)\
**Replies:** 6\
**Last updated:** [September 10, 2022, 11:56am UTC](https://discourse.julialang.org/t/error-when-supplying-initial-guess/86574 "2022-09-10T11:56:02Z")

</div>

If I set my variable to be lower trianglar, how can I supply an initial guess? The following gives me an error that has to do with the difference in the data type between the variable X and the initial guess X0 using Ju…

---

## [Duplication of standard libraries](https://discourse.julialang.org/t/duplication-of-standard-libraries/87034)

<div class="topic-metadata">

**Author:** [@Lilith](https://discourse.julialang.org/u/Lilith)\
**Replies:** 2\
**Last updated:** [September 10, 2022, 10:11am UTC](https://discourse.julialang.org/t/duplication-of-standard-libraries/87034 "2022-09-10T10:11:08Z")

</div>

It looks like there is a lot of duplication between julia/stdlib and julia/usr/share/julia/stdlib/v1.9. What is the deal with that?

---

## [Why the Project Activated in Jupyter Notebook Does Not Change?](https://discourse.julialang.org/t/why-the-project-activated-in-jupyter-notebook-does-not-change/87032)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 5\
**Last updated:** [September 10, 2022, 8:56am UTC](https://discourse.julialang.org/t/why-the-project-activated-in-jupyter-notebook-does-not-change/87032 "2022-09-10T08:56:17Z")

</div>

Hi all, I know to start a new clean environment / project is by typing this in a terminal: julia --project="." So when I do that in different folder and check with: julia\> \] pkg\> st the packages will be different f…

---

## [Help understanding when .= allocates](https://discourse.julialang.org/t/help-understanding-when-allocates/87009)

<div class="topic-metadata">

**Author:** [@bmit](https://discourse.julialang.org/u/bmit)\
**Replies:** 9\
**Last updated:** [September 10, 2022, 8:47am UTC](https://discourse.julialang.org/t/help-understanding-when-allocates/87009 "2022-09-10T08:47:49Z")

</div>

I could use help understanding the magic of allocations in Julia with the inplace .= operation. Below I have 4 ways to write the same operation, but allocations are different for each. Only the first doesn’t allocate. My…

---

## [Request for un'stdlibfication of Statistics](https://discourse.julialang.org/t/request-for-unstdlibfication-of-statistics/82443)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 78\
**Last updated:** [September 10, 2022, 8:15am UTC](https://discourse.julialang.org/t/request-for-unstdlibfication-of-statistics/82443 "2022-09-10T08:15:16Z")

</div>

I feel that many of us doing statistics and data science in Julia agree that the statistics ecosystem could be improved by a lot if we had more freedom to evolve Statistics, StatsBase.jl … to support Tables.jl tables ins…

---

## [Getting started with ReinforcementLearning.jl](https://discourse.julialang.org/t/getting-started-with-reinforcementlearning-jl/87011)

<div class="topic-metadata">

**Author:** [@bwanab](https://discourse.julialang.org/u/bwanab)\
**Replies:** 1\
**Last updated:** [September 10, 2022, 7:54am UTC](https://discourse.julialang.org/t/getting-started-with-reinforcementlearning-jl/87011 "2022-09-10T07:54:09Z")

</div>

In ReinforcementLearningAnIntroduction/notebooks/Chapter01\_Tic\_Tac\_Toe.jl in the Testing section there is the comment “I leave it as an exercise to change the select\_action to a greedy version and confirm that our traine…

---

## [Mosek.jl not compiling in Julia 1.8 (Apple Silicon M1)](https://discourse.julialang.org/t/mosek-jl-not-compiling-in-julia-1-8-apple-silicon-m1/87024)

<div class="topic-metadata">

**Author:** [@raktim](https://discourse.julialang.org/u/raktim)\
**Replies:** 1\
**Last updated:** [September 10, 2022, 1:23am UTC](https://discourse.julialang.org/t/mosek-jl-not-compiling-in-julia-1-8-apple-silicon-m1/87024 "2022-09-10T01:23:22Z")

</div>

Mosek.jl is not compiling in Julia 1.8 macOS ARM (M-series Processor). It is unable to load libmosek (~/.julia/packages/Mosek/3NJdY/deps/src/mosek/9.3/tools/platform/osx64x86/bin/libmosek64.9.3.dylib). It is probably an…

---

## [Precompile error on Windows](https://discourse.julialang.org/t/precompile-error-on-windows/87026)

<div class="topic-metadata">

**Author:** [@mkoculak](https://discourse.julialang.org/u/mkoculak)\
**Replies:** 0\
**Last updated:** [September 10, 2022, 1:14am UTC](https://discourse.julialang.org/t/precompile-error-on-windows/87026 "2022-09-10T01:14:55Z")

</div>

Since last week I am encountering problems with precompilation - with language server on VSCode and with packages in projects. Seems to be the same issue as here, although it seems it should have been fixed. For me, th…

---

## [Discussion on "Why I no longer recommend Julia" by Yuri Vishnevsky](https://discourse.julialang.org/t/discussion-on-why-i-no-longer-recommend-julia-by-yuri-vishnevsky/81151)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 292\
**Last updated:** [September 9, 2022, 10:34pm UTC](https://discourse.julialang.org/t/discussion-on-why-i-no-longer-recommend-julia-by-yuri-vishnevsky/81151 "2022-09-09T22:34:41Z")

</div>

Hey folks! There was a pretty good critical article written about Julia recently called “Why I no longer recommend Julia” by Yuri Vishnevsky There is an ongoing discussion about the article that has largely been constr…

---

## [@unpack with Parameters.jl when key is not found](https://discourse.julialang.org/t/unpack-with-parameters-jl-when-key-is-not-found/60716)

<div class="topic-metadata">

**Author:** [@gregory](https://discourse.julialang.org/u/gregory)\
**Replies:** 12\
**Last updated:** [September 9, 2022, 10:28pm UTC](https://discourse.julialang.org/t/unpack-with-parameters-jl-when-key-is-not-found/60716 "2022-09-09T22:28:43Z")

</div>

Hi, is there an easy way to have Parameters.jl skip missing keys or fields? using Parameters mydict = Dict(a=\>3,b=\>2.3,c=\>"mystr") @unpack (a,b,c,d) = mydict ERROR: KeyError: key "d" not found I would like it to just s…

---

## [Multithreading in many nested loops](https://discourse.julialang.org/t/multithreading-in-many-nested-loops/87017)

<div class="topic-metadata">

**Author:** [@Jonas208](https://discourse.julialang.org/u/Jonas208)\
**Replies:** 1\
**Last updated:** [September 9, 2022, 9:46pm UTC](https://discourse.julialang.org/t/multithreading-in-many-nested-loops/87017 "2022-09-09T21:46:13Z")

</div>

I am trying to optimize a function which performs a convolution-operation known from neuronal networks. I have already tried to optimize the function as much as possible (e.g. code\_warntype etc.), now I would like to gi…

---

## [How to find the location of julia.api from jupyter notebook](https://discourse.julialang.org/t/how-to-find-the-location-of-julia-api-from-jupyter-notebook/86962)

<div class="topic-metadata">

**Author:** [@bdas123](https://discourse.julialang.org/u/bdas123)\
**Replies:** 2\
**Last updated:** [September 9, 2022, 8:48pm UTC](https://discourse.julialang.org/t/how-to-find-the-location-of-julia-api-from-jupyter-notebook/86962 "2022-09-09T20:48:58Z")

</div>

Hello, I am executing the following code in a Python Jupyter Notebook: from julia.api import Julia jl = Julia(compiled\_modules=True) from julia import Main I would like to find where the julia executable file is with…

---

## [Advice on rank-hot (thermometer) encoding of categorical variables](https://discourse.julialang.org/t/advice-on-rank-hot-thermometer-encoding-of-categorical-variables/87007)

<div class="topic-metadata">

**Author:** [@opera\_malenky](https://discourse.julialang.org/u/opera_malenky)\
**Replies:** 3\
**Last updated:** [September 9, 2022, 7:38pm UTC](https://discourse.julialang.org/t/advice-on-rank-hot-thermometer-encoding-of-categorical-variables/87007 "2022-09-09T19:38:54Z")

</div>

As the title says, I was interested in trying to play around with rank-hot encoding for ordinal data (sometimes also called thermometer encoding). It’s like one-hot, but instead of a single 1 in the position associated …

---

## [How to convert Vector{Array{T,N}} to Array{T,N+1}](https://discourse.julialang.org/t/how-to-convert-vector-array-t-n-to-array-t-n-1/87004)

<div class="topic-metadata">

**Author:** [@ChiMaoShuPhy](https://discourse.julialang.org/u/ChiMaoShuPhy)\
**Replies:** 6\
**Last updated:** [September 9, 2022, 7:32pm UTC](https://discourse.julialang.org/t/how-to-convert-vector-array-t-n-to-array-t-n-1/87004 "2022-09-09T19:32:03Z")

</div>

Is there any way (without using third party packages) to convert a vector of multi-dimensional array to multidimensional array, such as convert \[T\_1,T\_2,...,T\_q\] (each T\_i is a multi-dimensional array of type Array{T,3},…

---

## [Using Optim.jl with only\_fg!, what is the "Function value" that prints in the trace?](https://discourse.julialang.org/t/using-optim-jl-with-only-fg-what-is-the-function-value-that-prints-in-the-trace/87013)

<div class="topic-metadata">

**Author:** [@pluie](https://discourse.julialang.org/u/pluie)\
**Replies:** 0\
**Last updated:** [September 9, 2022, 7:14pm UTC](https://discourse.julialang.org/t/using-optim-jl-with-only-fg-what-is-the-function-value-that-prints-in-the-trace/87013 "2022-09-09T19:14:23Z")

</div>

I am trying to execute the following optimization. res = optimize( Optim.only\_fg!((F, G, Az)-\>fg!(F,G,first(Az),x,z)), \[100000.0\],\[500000.0\],\[400000.0\],Fminbox(GradientDescent()),Optim.Options(iterations=10,show\_trace=t…

---

## [Pos-doc position on Computational Methods for Geophysical Fluid Dynamics](https://discourse.julialang.org/t/pos-doc-position-on-computational-methods-for-geophysical-fluid-dynamics/87012)

<div class="topic-metadata">

**Author:** [@favba](https://discourse.julialang.org/u/favba)\
**Replies:** 0\
**Last updated:** [September 9, 2022, 6:50pm UTC](https://discourse.julialang.org/t/pos-doc-position-on-computational-methods-for-geophysical-fluid-dynamics/87012 "2022-09-09T18:50:54Z")

</div>

Post-doc position at the Applied Mathematics Department at the Naval Postgraduate School https://nrc58.nas.edu/RAPLab10/opportunity/Opportunity.aspx?LabCode=62&ROPCD=621002&RONum=B7054 From the position description W…

---

## [Problem with where clause in macro?](https://discourse.julialang.org/t/problem-with-where-clause-in-macro/86984)

<div class="topic-metadata">

**Author:** [@SodAlmighty](https://discourse.julialang.org/u/SodAlmighty)\
**Replies:** 13\
**Last updated:** [September 9, 2022, 6:17pm UTC](https://discourse.julialang.org/t/problem-with-where-clause-in-macro/86984 "2022-09-09T18:17:59Z")

</div>

I dislike the somevariable = \[somevariable; somevalue\] concatenation syntax, due to the repetition of somevariable. So I tried to write an append macro, but I’m having difficulty. Initially, I tried writing an infix mac…

---

## [Package to compute dominators in a DAG (directed acyclic graph)](https://discourse.julialang.org/t/package-to-compute-dominators-in-a-dag-directed-acyclic-graph/86617)

<div class="topic-metadata">

**Author:** [@brianguenter](https://discourse.julialang.org/u/brianguenter)\
**Replies:** 2\
**Last updated:** [September 9, 2022, 6:17pm UTC](https://discourse.julialang.org/t/package-to-compute-dominators-in-a-dag-directed-acyclic-graph/86617 "2022-09-09T18:17:44Z")

</div>

Is there a Julia package for DAG’s that supports these operations: dominator, postdominator, preorderdfs, postorderdfs? AbstractTrees looks like it only works for trees not DAG’s (big surprise) and the few graph package…

---

## [Official JuliaUp Recommendation](https://discourse.julialang.org/t/official-juliaup-recommendation/86994)

<div class="topic-metadata">

**Author:** [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Replies:** 4\
**Last updated:** [September 9, 2022, 5:50pm UTC](https://discourse.julialang.org/t/official-juliaup-recommendation/86994 "2022-09-09T17:50:24Z")

</div>

I opened an issue here, but maybe this is a better place to ask. Basically, my company is very strict about what they approve to be installed on our computers. Right now, if we request to install Julia, they remote into …

---

## [How to plot this diagram?](https://discourse.julialang.org/t/how-to-plot-this-diagram/86990)

<div class="topic-metadata">

**Author:** [@Raymond](https://discourse.julialang.org/u/Raymond)\
**Replies:** 2\
**Last updated:** [September 9, 2022, 5:24pm UTC](https://discourse.julialang.org/t/how-to-plot-this-diagram/86990 "2022-09-09T17:24:25Z")

</div>

Can Julia plot this kind of graph?

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

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