# Latest

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

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

**Page:** 1321

---

## [JuliaReach workshop materials uploaded](https://discourse.julialang.org/t/juliareach-workshop-materials-uploaded/65291)

<div class="topic-metadata">

**Author:** [@mforets](https://discourse.julialang.org/u/mforets)\
**Replies:** 0\
**Last updated:** [July 26, 2021, 6:47am UTC](https://discourse.julialang.org/t/juliareach-workshop-materials-uploaded/65291 "2021-07-26T06:47:21Z")

</div>

We have uploaded the materials for our workshop It’s all Set: A hands-on introduction to JuliaReach. The notebooks can be found here: GitHub - JuliaReach/JuliaCon-2021-Workshop-Its-All-Set: It's all Set: A hands-on intr…

---

## [Seeking Research Support On National Science Foundation Study](https://discourse.julialang.org/t/seeking-research-support-on-national-science-foundation-study/65289)

<div class="topic-metadata">

**Author:** [@YummyPampers2](https://discourse.julialang.org/u/YummyPampers2)\
**Replies:** 0\
**Last updated:** [July 26, 2021, 5:19am UTC](https://discourse.julialang.org/t/seeking-research-support-on-national-science-foundation-study/65289 "2021-07-26T05:19:18Z")

</div>

Hello Fellow Julians: We are seeking some research support on a health care research study we are submitting to NSF. We are canvassing the posting as an SDE+ (Software Development Engineer), but that is only becaus…

---

## [Overwrite the subdataframes made with a for loop](https://discourse.julialang.org/t/overwrite-the-subdataframes-made-with-a-for-loop/65176)

<div class="topic-metadata">

**Author:** [@bojusemo](https://discourse.julialang.org/u/bojusemo)\
**Replies:** 10\
**Last updated:** [July 26, 2021, 1:54am UTC](https://discourse.julialang.org/t/overwrite-the-subdataframes-made-with-a-for-loop/65176 "2021-07-26T01:54:42Z")

</div>

Hi Guys, Could someone help me, please? I have a function with two dataframes (df1 and df2) as input that filter df1 based on a column that contains unique identifiers (IDs) and creates a subdataframe, makes a series o…

---

## [About @connectors](https://discourse.julialang.org/t/about-connectors/65083)

<div class="topic-metadata">

**Author:** [@juliascrub](https://discourse.julialang.org/u/juliascrub)\
**Replies:** 3\
**Last updated:** [July 26, 2021, 12:47am UTC](https://discourse.julialang.org/t/about-connectors/65083 "2021-07-26T00:47:08Z")

</div>

Ive got a model defined as a connector @connector function Pin(iv::Num; name) ... end And another model composed of these connectors: function ModelWithConnectors(iv::Num; name) @named a = Pin(iv) @named b …

---

## [Julia API design](https://discourse.julialang.org/t/julia-api-design/65285)

<div class="topic-metadata">

**Author:** [@minetest2048](https://discourse.julialang.org/u/minetest2048)\
**Replies:** 1\
**Last updated:** [July 26, 2021, 12:26am UTC](https://discourse.julialang.org/t/julia-api-design/65285 "2021-07-26T00:26:16Z")

</div>

I want to try to reimplement pyxivapi in Julia, which is client for XIVAPI REST API. But I don’t know how to write the Julia APIs that looks like Julia library. Julia feels very different than other programming languages…

---

## [Generically iterating over arrays of points](https://discourse.julialang.org/t/generically-iterating-over-arrays-of-points/65273)

<div class="topic-metadata">

**Author:** [@dfarmer](https://discourse.julialang.org/u/dfarmer)\
**Replies:** 3\
**Last updated:** [July 25, 2021, 9:42pm UTC](https://discourse.julialang.org/t/generically-iterating-over-arrays-of-points/65273 "2021-07-25T21:42:41Z")

</div>

I’m trying to write some functions that work on arrays of 2d or 3d points, so generally speaking I’m planning to use Vector{SVector{3,T}} but I would like to make the functions generic enough to handle a 3xN matrix form …

---

## [Julia 1.6.2 weird installation: launches 1.6.0 instead of 1.6.2 \[SOLVED\]](https://discourse.julialang.org/t/julia-1-6-2-weird-installation-launches-1-6-0-instead-of-1-6-2-solved/65263)

<div class="topic-metadata">

**Author:** [@mocalvao](https://discourse.julialang.org/u/mocalvao)\
**Replies:** 5\
**Last updated:** [July 25, 2021, 9:18pm UTC](https://discourse.julialang.org/t/julia-1-6-2-weird-installation-launches-1-6-0-instead-of-1-6-2-solved/65263 "2021-07-25T21:18:22Z")

</div>

Hi there, Forgive me if I am doing something very silly, but I have downloaded version 1.6.2 from: https://julialang-s3.julialang.org/bin/linux/x64/1.6/julia-1.6.2-linux-x86\_64.tar.gz and installed it by simply decomp…

---

## [\[ANN\] Announcing AlgebraPDF.jl - operations on functions with parameters](https://discourse.julialang.org/t/ann-announcing-algebrapdf-jl-operations-on-functions-with-parameters/65213)

<div class="topic-metadata">

**Author:** [@misha\_mikhasenko](https://discourse.julialang.org/u/misha_mikhasenko)\
**Replies:** 12\
**Last updated:** [July 25, 2021, 8:53pm UTC](https://discourse.julialang.org/t/ann-announcing-algebrapdf-jl-operations-on-functions-with-parameters/65213 "2021-07-25T20:53:44Z")

</div>

Hi, I am happy to announce AlgebraPDF.jl, a package that defines operations on parametric functions and keeps track of parameters. f1 = FunctionWithParameters((x;p)-\>cos(p.a\*x+p.b), (a=5.0, b=2.0)) f2 = FunctionWithPar…

---

## [Excel data to dataframes](https://discourse.julialang.org/t/excel-data-to-dataframes/65264)

<div class="topic-metadata">

**Author:** [@mjanun](https://discourse.julialang.org/u/mjanun)\
**Replies:** 16\
**Last updated:** [July 25, 2021, 7:21pm UTC](https://discourse.julialang.org/t/excel-data-to-dataframes/65264 "2021-07-25T19:21:39Z")

</div>

I have some data in different columns of an Excel sheet. I want to read the different columns into separate dataframes. I know the the column name/number where the data for each dataframe starts but not number of rows of…

---

## [About DataFrame(array\_of\_dict)](https://discourse.julialang.org/t/about-dataframe-array-of-dict/65253)

<div class="topic-metadata">

**Author:** [@rocco\_sprmnt21](https://discourse.julialang.org/u/rocco_sprmnt21)\
**Replies:** 5\
**Last updated:** [July 25, 2021, 6:45pm UTC](https://discourse.julialang.org/t/about-dataframe-array-of-dict/65253 "2021-07-25T18:45:30Z")

</div>

using AlphaVantage, DataFrames apikey\_AV = AlphaVantage.global\_key!("5J16OULI0KY026M4"); tickerList = \["AAPL","MSFT"\]; StockHistoryRawJson = AlphaVantage.time\_series\_daily\_adjusted.(Stocks.tickerList, outputsize="compac…

---

## [Replacing missings based on values in two DataFrame columns](https://discourse.julialang.org/t/replacing-missings-based-on-values-in-two-dataframe-columns/64764)

<div class="topic-metadata">

**Author:** [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Replies:** 1\
**Last updated:** [July 16, 2021, 6:01pm UTC](https://discourse.julialang.org/t/replacing-missings-based-on-values-in-two-dataframe-columns/64764 "2021-07-16T18:01:27Z")

</div>

Given an input table like this: Row │ x y z │ Int64 Int64 Int64? ─────┼─────────────────────── 1 │ 100 1 missing 2 │ 101 1 missing 3 │ 102 1 missing 4 │ …

---

## [Avoiding memory allocation when repeatedly using small arrays](https://discourse.julialang.org/t/avoiding-memory-allocation-when-repeatedly-using-small-arrays/65261)

<div class="topic-metadata">

**Author:** [@weymouth](https://discourse.julialang.org/u/weymouth)\
**Replies:** 5\
**Last updated:** [July 25, 2021, 5:13pm UTC](https://discourse.julialang.org/t/avoiding-memory-allocation-when-repeatedly-using-small-arrays/65261 "2021-07-25T17:13:11Z")

</div>

I often find myself needing fairly simple, small autodiff vector operations applied repeatedly. I don’t know how to do this without allocation each time. Is it possible? Here is an example where I’m integrating an array…

---

## [Filter and filter! give different results](https://discourse.julialang.org/t/filter-and-filter-give-different-results/65271)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 2\
**Last updated:** [July 25, 2021, 5:11pm UTC](https://discourse.julialang.org/t/filter-and-filter-give-different-results/65271 "2021-07-25T17:11:42Z")

</div>

I am wondering why filter and filter! give different results in the example below. Case 1 with filter! includes an extra element whereas Case 2 with filter works as expected mutable struct M x::Int y::Int end C…

---

## [Selectively unpacking binary data](https://discourse.julialang.org/t/selectively-unpacking-binary-data/64768)

<div class="topic-metadata">

**Author:** [@Mikhail\_Kagalenko](https://discourse.julialang.org/u/Mikhail_Kagalenko)\
**Replies:** 1\
**Last updated:** [July 25, 2021, 11:08am UTC](https://discourse.julialang.org/t/selectively-unpacking-binary-data/64768 "2021-07-25T11:08:57Z")

</div>

I need to unpack a few values of known types and offsets from a binary file. The difference with earlier discussed cases is, firstly, that the values are not adjacent in the file, so it is necessary to specify offsefs; …

---

## [Different @code\_warntype behavior depending on number of fileds in 'struct'](https://discourse.julialang.org/t/different-code-warntype-behavior-depending-on-number-of-fileds-in-struct/65259)

<div class="topic-metadata">

**Author:** [@sidelkin](https://discourse.julialang.org/u/sidelkin)\
**Replies:** 2\
**Last updated:** [July 25, 2021, 3:54pm UTC](https://discourse.julialang.org/t/different-code-warntype-behavior-depending-on-number-of-fileds-in-struct/65259 "2021-07-25T15:54:34Z")

</div>

Hello. When the number of fields in a struct is less than 15, @code\_warntype diagnoses that the function is ‘type-stable’. But as their number grows, the function becomes ‘type-unstable’ from @code\_warntype’s point of v…

---

## [Sparse Feed Forward NN](https://discourse.julialang.org/t/sparse-feed-forward-nn/33203)

<div class="topic-metadata">

**Author:** [@olszewskip](https://discourse.julialang.org/u/olszewskip)\
**Replies:** 3\
**Last updated:** [July 25, 2021, 1:27pm UTC](https://discourse.julialang.org/t/sparse-feed-forward-nn/33203 "2021-07-25T13:27:10Z")

</div>

Hi! I have a question about (hypothetical) sparse layers in feedforward neural neworks: How would I go about using sparse array in place of W(eights) and b(iases) in the Flux’es Dense layer? What I imagine is that I hav…

---

## [Unitful.jl: State of the units](https://discourse.julialang.org/t/unitful-jl-state-of-the-units/1530)

<div class="topic-metadata">

**Author:** [@ajkeller34](https://discourse.julialang.org/u/ajkeller34)\
**Replies:** 0\
**Last updated:** [January 17, 2017, 1:55am UTC](https://discourse.julialang.org/t/unitful-jl-state-of-the-units/1530 "2017-01-17T01:55:00Z")

</div>

Unitful.jl, a package for manipulating unitful quantities, has recently undergone some extensive changes on the master branch aimed at improving the defaults system and achieving compatibility with the upcoming Julia 0.6…

---

## [Using Pixel buffer objects to update textures in OpenGl](https://discourse.julialang.org/t/using-pixel-buffer-objects-to-update-textures-in-opengl/65260)

<div class="topic-metadata">

**Author:** [@Jakub\_Mitura](https://discourse.julialang.org/u/Jakub_Mitura)\
**Replies:** 0\
**Last updated:** [July 25, 2021, 11:25am UTC](https://discourse.julialang.org/t/using-pixel-buffer-objects-to-update-textures-in-opengl/65260 "2021-07-25T11:25:05Z")

</div>

Hello I looked into GL/GLAbstraction.jl package and as far as I see texture updating is done by glTexSubImage2D , yet why Pixel buffer objects are not used? Is there some reason? Frankly I tried to implement the pixel b…

---

## [How apply Subtraction operator to extrema() function](https://discourse.julialang.org/t/how-apply-subtraction-operator-to-extrema-function/65255)

<div class="topic-metadata">

**Author:** [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Replies:** 1\
**Last updated:** [July 25, 2021, 8:29am UTC](https://discourse.julialang.org/t/how-apply-subtraction-operator-to-extrema-function/65255 "2021-07-25T08:29:22Z")

</div>

How apply Subtraction operator to extrema() function julia\> extrema(2:10) (2, 10) julia\> -(2,10) -8 julia\> -extrema(2:10) ERROR: MethodError: no method matching -(::Tuple{Int64, Int64}) Closest candidates are: -(::Un…

---

## [Unable to verify \`eigen(A)\`](https://discourse.julialang.org/t/unable-to-verify-eigen-a/65249)

<div class="topic-metadata">

**Author:** [@maxkapur](https://discourse.julialang.org/u/maxkapur)\
**Replies:** 1\
**Last updated:** [July 25, 2021, 1:26am UTC](https://discourse.julialang.org/t/unable-to-verify-eigen-a/65249 "2021-07-25T01:26:42Z")

</div>

I haven’t had my coffee yet, but it seems like following should return true. Where did I get turned around? using LinearAlgebra A = rand(5, 5) Λ, Y = eigen(A) Λ = Diagonal(Λ) A \* Y ≈ Λ \* Y

---

## [What's the deal with that "\[ANN\]" stuff in titles in Package announcements?](https://discourse.julialang.org/t/whats-the-deal-with-that-ann-stuff-in-titles-in-package-announcements/57425)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 11\
**Last updated:** [July 25, 2021, 12:50am UTC](https://discourse.julialang.org/t/whats-the-deal-with-that-ann-stuff-in-titles-in-package-announcements/57425 "2021-07-25T00:50:50Z")

</div>

I guess it stands for (package) ANNouncement? Although, the first time I saw it I thought it referred to a lady named Ann… What is the purpose of putting it in a thread’s title? I see that not all package announcement t…

---

## [Naive dot product faster in Fortran than in Juila](https://discourse.julialang.org/t/naive-dot-product-faster-in-fortran-than-in-juila/63317)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 12\
**Last updated:** [July 24, 2021, 11:03pm UTC](https://discourse.julialang.org/t/naive-dot-product-faster-in-fortran-than-in-juila/63317 "2021-07-24T23:03:42Z")

</div>

Does anyone knows why this simple dot product is faster in Fortran then in Julia? (LinearAlgebra.dot is faster and with LoopVectorization the Julia code gets also faster. but this is not what I am questioning. I am curi…

---

## [Parse string as tuple](https://discourse.julialang.org/t/parse-string-as-tuple/65244)

<div class="topic-metadata">

**Author:** [@mjanun](https://discourse.julialang.org/u/mjanun)\
**Replies:** 5\
**Last updated:** [July 24, 2021, 10:34pm UTC](https://discourse.julialang.org/t/parse-string-as-tuple/65244 "2021-07-24T22:34:10Z")

</div>

I am trying to write a function that converts a string to a tuple. This is my code: parsetuple(p::String) = Tuple(Float64(x) for x in p) This code can convert a string or a vector of string type to a tuple, but this do…

---

## [How to unpack a vector to a struct / local variables](https://discourse.julialang.org/t/how-to-unpack-a-vector-to-a-struct-local-variables/65241)

<div class="topic-metadata">

**Author:** [@lamont](https://discourse.julialang.org/u/lamont)\
**Replies:** 5\
**Last updated:** [July 24, 2021, 8:05pm UTC](https://discourse.julialang.org/t/how-to-unpack-a-vector-to-a-struct-local-variables/65241 "2021-07-24T20:05:27Z")

</div>

Is there a better way to write a function like this (which is called from an integrator so needs to have dx and x being Vector{Float64}'s and unpack them without excessive copying and mostly without all the magic numeric…

---

## [Transforming an Array{Matrix{T, N}, M} to an Array{T, N+M}](https://discourse.julialang.org/t/transforming-an-array-matrix-t-n-m-to-an-array-t-n-m/65192)

<div class="topic-metadata">

**Author:** [@mmaeusezahl](https://discourse.julialang.org/u/mmaeusezahl)\
**Replies:** 10\
**Last updated:** [July 24, 2021, 3:29pm UTC](https://discourse.julialang.org/t/transforming-an-array-matrix-t-n-m-to-an-array-t-n-m/65192 "2021-07-24T15:29:27Z")

</div>

Hi, usually I had a lot of success discovering the various ways to transform the Array datatypes into each other but this one gives me some headaches: From a parallelized operation I end up with an array (with an arbitr…

---

## [First order ODE with input delay](https://discourse.julialang.org/t/first-order-ode-with-input-delay/65231)

<div class="topic-metadata">

**Author:** [@Fabian](https://discourse.julialang.org/u/Fabian)\
**Replies:** 1\
**Last updated:** [July 24, 2021, 7:18pm UTC](https://discourse.julialang.org/t/first-order-ode-with-input-delay/65231 "2021-07-24T19:18:05Z")

</div>

Hi, I am new to Julia / Turing.jl and wondering if it is possible to estimate the affine parameters a,b of the following model. The model is a stochastic differential equation (SDE) of first order with variable input d…

---

## [Confusion with eachrow and pipe](https://discourse.julialang.org/t/confusion-with-eachrow-and-pipe/65237)

<div class="topic-metadata">

**Author:** [@drbenvincent](https://discourse.julialang.org/u/drbenvincent)\
**Replies:** 8\
**Last updated:** [July 24, 2021, 5:17pm UTC](https://discourse.julialang.org/t/confusion-with-eachrow-and-pipe/65237 "2021-07-24T17:17:50Z")

</div>

Let’s say we have a simple 2D matrix a = \[0 1 2 3 4; 5 6 7 8 9; 10 11 12 13 14; 15 16 17 18 19\] map It looks like you can apply a function to rows and columns like this julia\> map(sum, eachrow(a)) 4-elem…

---

## [JuMP is slow in generating block PSD constraints](https://discourse.julialang.org/t/jump-is-slow-in-generating-block-psd-constraints/65186)

<div class="topic-metadata">

**Author:** [@Thomas](https://discourse.julialang.org/u/Thomas)\
**Replies:** 2\
**Last updated:** [July 24, 2021, 2:48pm UTC](https://discourse.julialang.org/t/jump-is-slow-in-generating-block-psd-constraints/65186 "2021-07-24T14:48:41Z")

</div>

Could an expert help me speed up the following code? In particular, Have I used the performance tips (https://jump.dev/JuMP.jl/stable/tutorials/Getting%20started/performance\_tips/) correctly? That is only generate exp…

---

## [How to check \`-O\` optimization flag setting inside script?](https://discourse.julialang.org/t/how-to-check-o-optimization-flag-setting-inside-script/65233)

<div class="topic-metadata">

**Author:** [@johnomotani](https://discourse.julialang.org/u/johnomotani)\
**Replies:** 2\
**Last updated:** [July 24, 2021, 2:05pm UTC](https://discourse.julialang.org/t/how-to-check-o-optimization-flag-setting-inside-script/65233 "2021-07-24T14:05:01Z")

</div>

I’m writing a script to run a performance benchmark. I’d like to add a check that Julia is running with full optimization (i.e. -O3) to ensure the results are representative. Is there a way to get the -O optimization fla…

---

## [How do I know if an unbuffered (0 sized) channel ready to put! (not blocking)?](https://discourse.julialang.org/t/how-do-i-know-if-an-unbuffered-0-sized-channel-ready-to-put-not-blocking/65228)

<div class="topic-metadata">

**Author:** [@zwtechnb](https://discourse.julialang.org/u/zwtechnb)\
**Replies:** 0\
**Last updated:** [July 24, 2021, 10:43am UTC](https://discourse.julialang.org/t/how-do-i-know-if-an-unbuffered-0-sized-channel-ready-to-put-not-blocking/65228 "2021-07-24T10:43:48Z")

</div>

For a buffered channel(n) with n\>0, I can check it full or not with comparing the Channel field: sz\_max with the undocumented function Base.n\_avail(channel). For channel(0), when a take! on it, a put! can be operated on…

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

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