# Latest

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

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

**Page:** 823

---

## [Julia PINN converged but bcs are not fulfilled](https://discourse.julialang.org/t/julia-pinn-converged-but-bcs-are-not-fulfilled/92351)

<div class="topic-metadata">

**Author:** [@c\_sell](https://discourse.julialang.org/u/c_sell)\
**Replies:** 4\
**Last updated:** [January 3, 2023, 7:12pm UTC](https://discourse.julialang.org/t/julia-pinn-converged-but-bcs-are-not-fulfilled/92351 "2023-01-03T19:12:37Z")

</div>

Hi everyone, I am trying to solve a PDE with the julia package Neural.jl. I have 3 bcs. At two boundarys the pressure has to be zero. The last bsc ist a periodic boundary condition. The pressure at the one side has to …

---

## [Reading headers of delimited files](https://discourse.julialang.org/t/reading-headers-of-delimited-files/92464)

<div class="topic-metadata">

**Author:** [@DanDeepPhase](https://discourse.julialang.org/u/DanDeepPhase)\
**Replies:** 1\
**Last updated:** [January 3, 2023, 6:54pm UTC](https://discourse.julialang.org/t/reading-headers-of-delimited-files/92464 "2023-01-03T18:54:06Z")

</div>

I frequently have to read CSVs that mix headers and data. Currently i have a hacky workflow, which could use some help. The header information needs to be parsed, and cannot be discarded. The files take two general form…

---

## [Why can't iteration figure out that all elements are identical in this case, and short-circuit the evaluation?](https://discourse.julialang.org/t/why-cant-iteration-figure-out-that-all-elements-are-identical-in-this-case-and-short-circuit-the-evaluation/92454)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 6\
**Last updated:** [January 3, 2023, 6:06pm UTC](https://discourse.julialang.org/t/why-cant-iteration-figure-out-that-all-elements-are-identical-in-this-case-and-short-circuit-the-evaluation/92454 "2023-01-03T18:06:15Z")

</div>

julia\> struct ConstVector \<: AbstractVector{Int} x :: Int len :: Int end julia\> Base.size(c::ConstVector) = (c.len,) julia\> @inline function Base.getindex(c::ConstVector, i::Int) …

---

## [\[ANN\] jlbun: use Julia from Bun](https://discourse.julialang.org/t/ann-jlbun-use-julia-from-bun/92348)

<div class="topic-metadata">

**Author:** [@lucifer1004](https://discourse.julialang.org/u/lucifer1004)\
**Replies:** 3\
**Last updated:** [January 3, 2023, 4:53pm UTC](https://discourse.julialang.org/t/ann-jlbun-use-julia-from-bun/92348 "2023-01-03T16:53:47Z")

</div>

Bun is a new Javascript runtime. It is fast, and it has a very fast bun:ffi. Based on bun:ffi, I just wrote an experimental package jlbun which enables using Julia from Javascript/Typescript. The package has been publi…

---

## [How to run julia code that depends on other packages in Jenkins？](https://discourse.julialang.org/t/how-to-run-julia-code-that-depends-on-other-packages-in-jenkins/92388)

<div class="topic-metadata">

**Author:** [@YiboXia](https://discourse.julialang.org/u/YiboXia)\
**Replies:** 15\
**Last updated:** [January 3, 2023, 4:37pm UTC](https://discourse.julialang.org/t/how-to-run-julia-code-that-depends-on-other-packages-in-jenkins/92388 "2023-01-03T16:37:33Z")

</div>

Hi guys, I try to run some codes with the help of Jenkins. OS is win10. I tried this command but failed: cd E:\\\\sim\_1\\scripts set JULIA\_NUM\_THREADS=8 julia E:\\\\sim\_1\\scripts\\main.jl error says that julia is not a comm…

---

## [\[Discussion\] A new Bokeh binding?](https://discourse.julialang.org/t/discussion-a-new-bokeh-binding/44661)

<div class="topic-metadata">

**Author:** [@jling](https://discourse.julialang.org/u/jling)\
**Replies:** 7\
**Last updated:** [January 3, 2023, 4:24pm UTC](https://discourse.julialang.org/t/discussion-a-new-bokeh-binding/44661 "2023-01-03T16:24:43Z")

</div>

Recently I’ve been looking for a interactive visualization solution (again), and realized that one of Bokeh’s core dev @Bryan is actually here on the discourse and at one point was looking for people to re-make a Bokeh b…

---

## [Accuracy issues on Flux](https://discourse.julialang.org/t/accuracy-issues-on-flux/92016)

<div class="topic-metadata">

**Author:** [@Radu\_Mihai\_Diaconu](https://discourse.julialang.org/u/Radu_Mihai_Diaconu)\
**Replies:** 25\
**Last updated:** [January 3, 2023, 3:43pm UTC](https://discourse.julialang.org/t/accuracy-issues-on-flux/92016 "2023-01-03T15:43:17Z")

</div>

Hello guys. I have a problem with Flux. I have a very low accuracy (about 50%) on this code and I dont know why. i converted some tf code to Flux bu i dont get the issue. i mention that i am new to Julia and Flux so mayb…

---

## [Cannot add RxInfer latest version](https://discourse.julialang.org/t/cannot-add-rxinfer-latest-version/91910)

<div class="topic-metadata">

**Author:** [@BinaryBot](https://discourse.julialang.org/u/BinaryBot)\
**Replies:** 1\
**Last updated:** [January 3, 2023, 2:14pm UTC](https://discourse.julialang.org/t/cannot-add-rxinfer-latest-version/91910 "2023-01-03T14:14:10Z")

</div>

Although there exists a newer RxInfer package, Julia only downloads v1.0.0 and refuses to update either. I have tried \]update, but Julia makes no changes to the manifest or the project. I am using the latest 1.8.3 Julia …

---

## [SavingCallback influences result of ODE problem](https://discourse.julialang.org/t/savingcallback-influences-result-of-ode-problem/91731)

<div class="topic-metadata">

**Author:** [@Pitaevskii](https://discourse.julialang.org/u/Pitaevskii)\
**Replies:** 9\
**Last updated:** [January 3, 2023, 1:27pm UTC](https://discourse.julialang.org/t/savingcallback-influences-result-of-ode-problem/91731 "2023-01-03T13:27:30Z")

</div>

Hello I have some code for simulating complex differential equations of a certain model that used to work fine, but fails after going from Julia 1.7 to 1.8 and updating all the packages. using DifferentialEquations, Di…

---

## [Segmentation fault using Plots in 1.8.4](https://discourse.julialang.org/t/segmentation-fault-using-plots-in-1-8-4/92456)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 6\
**Last updated:** [January 3, 2023, 1:21pm UTC](https://discourse.julialang.org/t/segmentation-fault-using-plots-in-1-8-4/92456 "2023-01-03T13:21:31Z")

</div>

I’m experiencing a segmentation fault when using Plots in 1.8.4. Thing I have done recently: upgraded Mint to 21 (fresh install) installed (with juliaup) the 1.9.0-beta2 version of julia, and added Plots to it The p…

---

## [How to model Zero Inflated Distribution](https://discourse.julialang.org/t/how-to-model-zero-inflated-distribution/92325)

<div class="topic-metadata">

**Author:** [@Guilherme\_Namen\_Pime](https://discourse.julialang.org/u/Guilherme_Namen_Pime)\
**Replies:** 2\
**Last updated:** [January 3, 2023, 12:38pm UTC](https://discourse.julialang.org/t/how-to-model-zero-inflated-distribution/92325 "2023-01-03T12:38:21Z")

</div>

Hi. How to programing a Zero Inflated Distribution using Turing?

---

## [Optimize the product of a matrix and scalar](https://discourse.julialang.org/t/optimize-the-product-of-a-matrix-and-scalar/92443)

<div class="topic-metadata">

**Author:** [@ejlongman](https://discourse.julialang.org/u/ejlongman)\
**Replies:** 3\
**Last updated:** [January 3, 2023, 11:17am UTC](https://discourse.julialang.org/t/optimize-the-product-of-a-matrix-and-scalar/92443 "2023-01-03T11:17:26Z")

</div>

This code: function objective(xy) x, y = xy return (3y^2\*x + x^3-m3)\*W\*(3y^2\*x + x^3-m3) end xy0 = \[x, y\] result = optimize(objective, xy0, NelderMead()) println(result) minimizer = result.minimizer x, y = min…

---

## [How to estimate likelihood functions with normalizing flows in Julia](https://discourse.julialang.org/t/how-to-estimate-likelihood-functions-with-normalizing-flows-in-julia/92414)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 7\
**Last updated:** [January 3, 2023, 11:03am UTC](https://discourse.julialang.org/t/how-to-estimate-likelihood-functions-with-normalizing-flows-in-julia/92414 "2023-01-03T11:03:17Z")

</div>

Hi- I am interested in using normalizing flows in Julia to approximate intractable likelihood functions. The basic idea is to train a neural network to learn the relationship between parameters and samples from a model.…

---

## [How to extend Query.jl with new data source](https://discourse.julialang.org/t/how-to-extend-query-jl-with-new-data-source/92449)

<div class="topic-metadata">

**Author:** [@minetest2048](https://discourse.julialang.org/u/minetest2048)\
**Replies:** 0\
**Last updated:** [January 3, 2023, 10:22am UTC](https://discourse.julialang.org/t/how-to-extend-query-jl-with-new-data-source/92449 "2023-01-03T10:22:23Z")

</div>

Introduction · Query.jl says: (emphasis mine) There are three different APIs that package authors can use to make their data sources queryable with this package. The most simple API only requires a data source to prov…

---

## [How to embed Linkedin page in franklin.jl made website?](https://discourse.julialang.org/t/how-to-embed-linkedin-page-in-franklin-jl-made-website/92376)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 17\
**Last updated:** [January 3, 2023, 9:40am UTC](https://discourse.julialang.org/t/how-to-embed-linkedin-page-in-franklin-jl-made-website/92376 "2023-01-03T09:40:41Z")

</div>

How can i add Linkedin icon franklin.jl made website ?

---

## [FOSDEM 2023 in Brussels - who is going?](https://discourse.julialang.org/t/fosdem-2023-in-brussels-who-is-going/92447)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 0\
**Last updated:** [January 3, 2023, 9:10am UTC](https://discourse.julialang.org/t/fosdem-2023-in-brussels-who-is-going/92447 "2023-01-03T09:10:29Z")

</div>

Is anyone planning to go to FOSDEM in Brussels 4/5 February? We could meet for a beer. I note Rust has an entire devroom. Mutter… mumble…

---

## [State space feedback](https://discourse.julialang.org/t/state-space-feedback/92416)

<div class="topic-metadata">

**Author:** [@lev96jeff](https://discourse.julialang.org/u/lev96jeff)\
**Replies:** 6\
**Last updated:** [January 3, 2023, 8:02am UTC](https://discourse.julialang.org/t/state-space-feedback/92416 "2023-01-03T08:02:39Z")

</div>

Hello everyone! I am new to julia and trying to model with 1 input and 2 output. my problem is that i am unable to create a feedback with a pid controller in the forward path, even if i create the feedback the (first o…

---

## [Symbolics.jl collect like terms?](https://discourse.julialang.org/t/symbolics-jl-collect-like-terms/92426)

<div class="topic-metadata">

**Author:** [@Samuel\_Remedios](https://discourse.julialang.org/u/Samuel_Remedios)\
**Replies:** 1\
**Last updated:** [January 3, 2023, 7:56am UTC](https://discourse.julialang.org/t/symbolics-jl-collect-like-terms/92426 "2023-01-03T07:56:56Z")

</div>

Is there functionality similar to SymPy’s collect in Symbolics.jl? Alternatively I would appreciate another solution to this problem which maybe makes more sense: I’m manipulating a multivariate symbolic equation in th…

---

## [\[SOLVED\] Unexpected dispatch behavior](https://discourse.julialang.org/t/solved-unexpected-dispatch-behavior/92307)

<div class="topic-metadata">

**Author:** [@bombusfragrans](https://discourse.julialang.org/u/bombusfragrans)\
**Replies:** 5\
**Last updated:** [January 3, 2023, 6:16am UTC](https://discourse.julialang.org/t/solved-unexpected-dispatch-behavior/92307 "2023-01-03T06:16:05Z")

</div>

question and broken code removed SOLVED

---

## [Very weird take on Julia found on the LinkedIn. Have u come across this misconception before?](https://discourse.julialang.org/t/very-weird-take-on-julia-found-on-the-linkedin-have-u-come-across-this-misconception-before/92434)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 2\
**Last updated:** [January 3, 2023, 12:47am UTC](https://discourse.julialang.org/t/very-weird-take-on-julia-found-on-the-linkedin-have-u-come-across-this-misconception-before/92434 "2023-01-03T00:47:43Z")

</div>

---

## [Data normalization with NaN values in StatsBase](https://discourse.julialang.org/t/data-normalization-with-nan-values-in-statsbase/92429)

<div class="topic-metadata">

**Author:** [@Jack](https://discourse.julialang.org/u/Jack)\
**Replies:** 1\
**Last updated:** [January 2, 2023, 10:51pm UTC](https://discourse.julialang.org/t/data-normalization-with-nan-values-in-statsbase/92429 "2023-01-02T22:51:35Z")

</div>

Greetings, I have been trying to do some basic normalization with ZScore transform like in this StatsBase package, and found that the package wouldn’t handle NaN values properly. For example Random.seed!(1234) input =…

---

## [Loss function with scalable constraints](https://discourse.julialang.org/t/loss-function-with-scalable-constraints/92433)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 2\
**Last updated:** [January 2, 2023, 11:38pm UTC](https://discourse.julialang.org/t/loss-function-with-scalable-constraints/92433 "2023-01-02T23:38:49Z")

</div>

Assume a loss function of the firm L1 + a \* L2 where L1 and L2 depend on model parameters. I wish to adjust the coefficient ‘a’ so that the two terms have equal magnitude. However, I do not want the coefficient to be dif…

---

## [Functionality of torch.nograd](https://discourse.julialang.org/t/functionality-of-torch-nograd/92432)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 1\
**Last updated:** [January 2, 2023, 10:55pm UTC](https://discourse.julialang.org/t/functionality-of-torch-nograd/92432 "2023-01-02T22:55:36Z")

</div>

What is the recommended approach to exclude parts of my loss functiin from being targeted by Zygote? I am using Lux.jl. Thanks.

---

## [Fail to precompile Plots.jl](https://discourse.julialang.org/t/fail-to-precompile-plots-jl/92422)

<div class="topic-metadata">

**Author:** [@fdekerme](https://discourse.julialang.org/u/fdekerme)\
**Replies:** 2\
**Last updated:** [January 2, 2023, 10:00pm UTC](https://discourse.julialang.org/t/fail-to-precompile-plots-jl/92422 "2023-01-02T22:00:00Z")

</div>

Hello ! :grin: I can’t use Plots anymore. An error appears during the precompilation indicating that it misses libraries, but these last ones are however well present in C:\\Users\\xxx.julia\\packages. I couldn’t say exact…

---

## [Optim fails test?](https://discourse.julialang.org/t/optim-fails-test/92339)

<div class="topic-metadata">

**Author:** [@ejlongman](https://discourse.julialang.org/u/ejlongman)\
**Replies:** 9\
**Last updated:** [January 2, 2023, 9:34pm UTC](https://discourse.julialang.org/t/optim-fails-test/92339 "2023-01-02T21:34:25Z")

</div>

Hello, I get the following error when I test Optim. When I try to use the package with “using Optim” I get an error regarding “printf” Package Optim errored during testing Stacktrace: \[1\] pkgerror(msg::String) @ …

---

## [Efficient filter for product iterator](https://discourse.julialang.org/t/efficient-filter-for-product-iterator/92392)

<div class="topic-metadata">

**Author:** [@hros](https://discourse.julialang.org/u/hros)\
**Replies:** 4\
**Last updated:** [January 2, 2023, 9:33pm UTC](https://discourse.julialang.org/t/efficient-filter-for-product-iterator/92392 "2023-01-02T21:33:55Z")

</div>

while solving a Kakuro puzzle I decided to brute force a section of the puzzle (see image with 8 squares marked x1…x8) I wrote a succinct iterator based approach (f1() in the code below) which is not very efficient comp…

---

## [Auto-diff Friendly GPU Stencils](https://discourse.julialang.org/t/auto-diff-friendly-gpu-stencils/92126)

<div class="topic-metadata">

**Author:** [@Dreycen\_Foiles](https://discourse.julialang.org/u/Dreycen_Foiles)\
**Replies:** 3\
**Last updated:** [January 2, 2023, 9:16pm UTC](https://discourse.julialang.org/t/auto-diff-friendly-gpu-stencils/92126 "2023-01-02T21:16:34Z")

</div>

I’m solving a semi-discretized PDE on my GPU and one of the steps involves performing the Laplacian via a 5-point stencil. My current method does this with a CUDA kernel, but I also want to perform automatic differentiat…

---

## [Gemm! vs symm! performance](https://discourse.julialang.org/t/gemm-vs-symm-performance/92201)

<div class="topic-metadata">

**Author:** [@PharmCat](https://discourse.julialang.org/u/PharmCat)\
**Replies:** 7\
**Last updated:** [January 2, 2023, 8:19pm UTC](https://discourse.julialang.org/t/gemm-vs-symm-performance/92201 "2023-01-02T20:19:58Z")

</div>

Hi! I try to compare gemm! or symm! performance and get these results for small matrices. gemm! have much better performance, when to use symm!? C = rand(10, 10) A = rand(10, 10) B = rand(10, 10) julia\> @benchmark Lin…

---

## [Evaluating expression on tuple of variables doesn't work inside function](https://discourse.julialang.org/t/evaluating-expression-on-tuple-of-variables-doesnt-work-inside-function/92423)

<div class="topic-metadata">

**Author:** [@derikk](https://discourse.julialang.org/u/derikk)\
**Replies:** 2\
**Last updated:** [January 2, 2023, 7:44pm UTC](https://discourse.julialang.org/t/evaluating-expression-on-tuple-of-variables-doesnt-work-inside-function/92423 "2023-01-02T19:44:04Z")

</div>

I’m trying to write a function that takes in an expression and an assignment to a set of variables, and outputs the expression evaluated on those variables. I came up with the following code: function eval\_vars(expr::Ex…

---

## [OpenCV package - not properly supported](https://discourse.julialang.org/t/opencv-package-not-properly-supported/70389)

<div class="topic-metadata">

**Author:** [@vladimr](https://discourse.julialang.org/u/vladimr)\
**Replies:** 10\
**Last updated:** [January 2, 2023, 7:51pm UTC](https://discourse.julialang.org/t/opencv-package-not-properly-supported/70389 "2023-01-02T19:51:43Z")

</div>

Professional Image Processing in Julia is impossible without the OpenCV package. But this package doesn’t seem properly supported, at least the Windows x64 version - basic functionality doesn’t work. Is there any idea …

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

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