# Latest

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

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

**Page:** 748

---

## [Profiling memory allocations](https://discourse.julialang.org/t/profiling-memory-allocations/96385)

<div class="topic-metadata">

**Author:** [@Philippe\_Maincon1](https://discourse.julialang.org/u/Philippe_Maincon1)\
**Replies:** 1\
**Last updated:** [March 21, 2023, 1:12pm UTC](https://discourse.julialang.org/t/profiling-memory-allocations/96385 "2023-03-21T13:12:10Z")

</div>

I have written some code in functional/immutable style, with the aim of not allocating any memory (on the heap). The code is weird because this is a mock-up of something I then want to create a macro to generate from si…

---

## [How to launch Dashboard in browser with Dash.jl](https://discourse.julialang.org/t/how-to-launch-dashboard-in-browser-with-dash-jl/96391)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 3\
**Last updated:** [March 21, 2023, 12:59pm UTC](https://discourse.julialang.org/t/how-to-launch-dashboard-in-browser-with-dash-jl/96391 "2023-03-21T12:59:06Z")

</div>

Hi all, I am trying to launch a Dashboard in Dash.jl in my browser. Based on the documentation, I run the following code: using Dash using DashHtmlComponents using DashCoreComponents app = dash(external\_stylesheets = …

---

## [\[ANN\] SF36.jl - SF36V1 scoring](https://discourse.julialang.org/t/ann-sf36-jl-sf36v1-scoring/94442)

<div class="topic-metadata">

**Author:** [@PharmCat](https://discourse.julialang.org/u/PharmCat)\
**Replies:** 4\
**Last updated:** [March 21, 2023, 12:17pm UTC](https://discourse.julialang.org/t/ann-sf36-jl-sf36v1-scoring/94442 "2023-03-21T12:17:24Z")

</div>

SF36.jl is a simple instrument for SF36V1 scoring.

---

## [Question about using SnoopPrecompile](https://discourse.julialang.org/t/question-about-using-snoopprecompile/88227)

<div class="topic-metadata">

**Author:** [@droodman](https://discourse.julialang.org/u/droodman)\
**Replies:** 14\
**Last updated:** [March 21, 2023, 11:28am UTC](https://discourse.julialang.org/t/question-about-using-snoopprecompile/88227 "2023-03-21T11:28:46Z")

</div>

Thank you for this excellent work! As a less savvy developer, I have an elementary question that might come up for others. The current documentation for SnoopCompile models a workflow in which output from SnoopCompile.w…

---

## [Performance scaling of broadcasting compared to looping](https://discourse.julialang.org/t/performance-scaling-of-broadcasting-compared-to-looping/92000)

<div class="topic-metadata">

**Author:** [@f.ij](https://discourse.julialang.org/u/f.ij)\
**Replies:** 19\
**Last updated:** [March 21, 2023, 11:24am UTC](https://discourse.julialang.org/t/performance-scaling-of-broadcasting-compared-to-looping/92000 "2023-03-21T11:24:56Z")

</div>

I’m writing a simulation where speed is very important. The program consists of a main loop where I need to collect some scalar by multiplying some floats based on connections in an adjacency matrix. As a very simplified…

---

## [How to add registry with LocalRegistry](https://discourse.julialang.org/t/how-to-add-registry-with-localregistry/96379)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 5\
**Last updated:** [March 21, 2023, 10:06am UTC](https://discourse.julialang.org/t/how-to-add-registry-with-localregistry/96379 "2023-03-21T10:06:43Z")

</div>

Hi all, I am trying to setup a local registry for packages that are on a private server with git. I have completed the following steps: I installed LocalRegistry I created a local registry with create\_registry, which …

---

## [Help! How to give multiplicative error in turing or DifferentialEvolutionMCMC?](https://discourse.julialang.org/t/help-how-to-give-multiplicative-error-in-turing-or-differentialevolutionmcmc/96378)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 0\
**Last updated:** [March 21, 2023, 9:05am UTC](https://discourse.julialang.org/t/help-how-to-give-multiplicative-error-in-turing-or-differentialevolutionmcmc/96378 "2023-03-21T09:05:58Z")

</div>

I used to work in r and now i’m switching to Julia. In r, I was using DifferentialEvolution package where its very straight forward if you want to give multiplicative or additive noise with respect to data as shown: lik…

---

## [Further Clarification on scoping rules](https://discourse.julialang.org/t/further-clarification-on-scoping-rules/96373)

<div class="topic-metadata">

**Author:** [@phantom](https://discourse.julialang.org/u/phantom)\
**Replies:** 3\
**Last updated:** [March 21, 2023, 7:21am UTC](https://discourse.julialang.org/t/further-clarification-on-scoping-rules/96373 "2023-03-21T07:21:37Z")

</div>

Sorry if I am overlooking something again. But according to the documentation on Scope: Variables in outer scopes are visible from any scope they contain — meaning that they can be read and written in inner scopes — un…

---

## [Clarification on extensions introduced in Julia v1.9 vs Requires.jl](https://discourse.julialang.org/t/clarification-on-extensions-introduced-in-julia-v1-9-vs-requires-jl/96371)

<div class="topic-metadata">

**Author:** [@Norman](https://discourse.julialang.org/u/Norman)\
**Replies:** 1\
**Last updated:** [March 21, 2023, 7:14am UTC](https://discourse.julialang.org/t/clarification-on-extensions-introduced-in-julia-v1-9-vs-requires-jl/96371 "2023-03-21T07:14:38Z")

</div>

The introduction in the Pkg documentation makes me think that extensions is just like a built-in implementation of @require. But, after some initial attempt, I realized that they are not substitutes. To be concrete, sup…

---

## [Error with a new syntax of Flux](https://discourse.julialang.org/t/error-with-a-new-syntax-of-flux/96331)

<div class="topic-metadata">

**Author:** [@iHany](https://discourse.julialang.org/u/iHany)\
**Replies:** 2\
**Last updated:** [March 21, 2023, 12:28am UTC](https://discourse.julialang.org/t/error-with-a-new-syntax-of-flux/96331 "2023-03-21T00:28:57Z")

</div>

Hi, I’m trying to make my neural network compatible with a new syntax of Flux. Note that the network I used, PLSE, receives two arguments as PLSE(x, u). Code using Test using ParametrisedConvexApproximators using Lin…

---

## [Create a GeometryBasics convex polygon from an unordered set of points](https://discourse.julialang.org/t/create-a-geometrybasics-convex-polygon-from-an-unordered-set-of-points/96349)

<div class="topic-metadata">

**Author:** [@prittjam](https://discourse.julialang.org/u/prittjam)\
**Replies:** 1\
**Last updated:** [March 20, 2023, 9:53pm UTC](https://discourse.julialang.org/t/create-a-geometrybasics-convex-polygon-from-an-unordered-set-of-points/96349 "2023-03-20T21:53:47Z")

</div>

I have a set of four 2d points and want to create a quadrilateral. Currently, I manually order the input points to ensure it is convex. Is there a function in GeometryBasiscs that crates a convex polygon from an unordere…

---

## [\[ANN\] AWS Lambda Julia runtime](https://discourse.julialang.org/t/ann-aws-lambda-julia-runtime/59023)

<div class="topic-metadata">

**Author:** [@harris-chris](https://discourse.julialang.org/u/harris-chris)\
**Replies:** 16\
**Last updated:** [March 21, 2023, 1:31am UTC](https://discourse.julialang.org/t/ann-aws-lambda-julia-runtime/59023 "2023-03-21T01:31:48Z")

</div>

Hello all, I’ve seen the question of using Julia in AWS Lambda come up a few times in the past, but as far as I can see without any definite solution. AWS have built out their Lambda container functionality a bit since …

---

## [Vector-valued function in multidimensional list comprehension (Differentiable code)](https://discourse.julialang.org/t/vector-valued-function-in-multidimensional-list-comprehension-differentiable-code/68772)

<div class="topic-metadata">

**Author:** [@tictaccat](https://discourse.julialang.org/u/tictaccat)\
**Replies:** 17\
**Last updated:** [March 21, 2023, 12:57am UTC](https://discourse.julialang.org/t/vector-valued-function-in-multidimensional-list-comprehension-differentiable-code/68772 "2023-03-21T00:57:21Z")

</div>

I’ve been using Julia for the first time for a project, and I’ve been running into issues with using list comprehensions to make multidimensional arrays when I have a vector-valued function. As a toy example, I could hav…

---

## [Orders of magnitude runtime difference in row-wise norm](https://discourse.julialang.org/t/orders-of-magnitude-runtime-difference-in-row-wise-norm/96363)

<div class="topic-metadata">

**Author:** [@Benq](https://discourse.julialang.org/u/Benq)\
**Replies:** 5\
**Last updated:** [March 21, 2023, 12:39am UTC](https://discourse.julialang.org/t/orders-of-magnitude-runtime-difference-in-row-wise-norm/96363 "2023-03-21T00:39:51Z")

</div>

I’m trying to divide every row of a matrix by its norm using the approach suggested by this comment. However, I’m finding that two functionally equivalent implementations are resulting in more than 100x difference in run…

---

## [How can I combine different density plots in a 3D plot?](https://discourse.julialang.org/t/how-can-i-combine-different-density-plots-in-a-3d-plot/96194)

<div class="topic-metadata">

**Author:** [@bertulli](https://discourse.julialang.org/u/bertulli)\
**Replies:** 8\
**Last updated:** [March 20, 2023, 10:36pm UTC](https://discourse.julialang.org/t/how-can-i-combine-different-density-plots-in-a-3d-plot/96194 "2023-03-20T22:36:15Z")

</div>

Hi all! I’m analyzing some data that follows a more-or-less-linear dependency. Here’s a picture: I’d like to show the dispersion around the mean for each of the vertical bins you see. What I need is (I think) the den…

---

## [\[ANN\] DictArrays: dictionary-based arrays, or wide tables with the Julian interface](https://discourse.julialang.org/t/ann-dictarrays-dictionary-based-arrays-or-wide-tables-with-the-julian-interface/96364)

<div class="topic-metadata">

**Author:** [@aplavin](https://discourse.julialang.org/u/aplavin)\
**Replies:** 0\
**Last updated:** [March 20, 2023, 10:19pm UTC](https://discourse.julialang.org/t/ann-dictarrays-dictionary-based-arrays-or-wide-tables-with-the-julian-interface/96364 "2023-03-20T22:19:54Z")

</div>

Dictionary-based arrays — represent wide heterogeneous tables while enjoying familiar Julia collection and Tables interfaces. Use DictArrays when you need a lean table type, but the compilation overhead of type-stable s…

---

## [Extract binary file from HTTP request body](https://discourse.julialang.org/t/extract-binary-file-from-http-request-body/96322)

<div class="topic-metadata">

**Author:** [@sschmidhuber](https://discourse.julialang.org/u/sschmidhuber)\
**Replies:** 2\
**Last updated:** [March 20, 2023, 10:14pm UTC](https://discourse.julialang.org/t/extract-binary-file-from-http-request-body/96322 "2023-03-20T22:14:20Z")

</div>

Hello, I’m struggling currently with extracting a binary file from a POST request body. On the client side I submit a form with a binary file and the enctype=“multipart/form-data”, that seems to work well. On the serv…

---

## [\[ANN\] RobustModels: Robust linear regression using M-Estimators and more](https://discourse.julialang.org/t/ann-robustmodels-robust-linear-regression-using-m-estimators-and-more/70231)

<div class="topic-metadata">

**Author:** [@getzze](https://discourse.julialang.org/u/getzze)\
**Replies:** 7\
**Last updated:** [March 20, 2023, 9:47pm UTC](https://discourse.julialang.org/t/ann-robustmodels-robust-linear-regression-using-m-estimators-and-more/70231 "2023-03-20T21:47:36Z")

</div>

Hi, I would like to present RobustModels.jl, a new package to perform robust linear regressions using M-Estimator, MM-Estimator and τ-Estimator, but also quantile regression, MQuantile regression and robust Ridge regre…

---

## [Training is 500x slower than inference for a custom loss function](https://discourse.julialang.org/t/training-is-500x-slower-than-inference-for-a-custom-loss-function/96283)

<div class="topic-metadata">

**Author:** [@neuromancer](https://discourse.julialang.org/u/neuromancer)\
**Replies:** 5\
**Last updated:** [March 20, 2023, 9:41pm UTC](https://discourse.julialang.org/t/training-is-500x-slower-than-inference-for-a-custom-loss-function/96283 "2023-03-20T21:41:10Z")

</div>

I am trying to use gradient descent to optimize a matrix (a single layer neural network) using a custom loss function. The loss function is a sum of a Gaussian-kernel-embedded maximum mean discrepancy plus the L1 norm of…

---

## [DataFrames does not care about iocontext\[:displaysize\]?](https://discourse.julialang.org/t/dataframes-does-not-care-about-iocontext-displaysize/96358)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 1\
**Last updated:** [March 20, 2023, 9:34pm UTC](https://discourse.julialang.org/t/dataframes-does-not-care-about-iocontext-displaysize/96358 "2023-03-20T21:34:02Z")

</div>

I’m just trying to get a DataFrame to not trunctate: Suppose I have a huge monitor that can easily display statp::DataFrame: Base.active\_repl.options.iocontext\[:displaysize\] = (100, 6000) Try every REPL command: juli…

---

## [Flux: trainmode!() and testmode!() needed?](https://discourse.julialang.org/t/flux-trainmode-and-testmode-needed/94155)

<div class="topic-metadata">

**Author:** [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Replies:** 3\
**Last updated:** [March 20, 2023, 9:16pm UTC](https://discourse.julialang.org/t/flux-trainmode-and-testmode-needed/94155 "2023-03-20T21:16:52Z")

</div>

I started using Flux recently, and I am wondering when Flux.trainmode!() and Flux.testmode!() need to be called. Am I correct that these functions do not need to be called explicitly during normal training and testing, …

---

## [Vector of missing and float](https://discourse.julialang.org/t/vector-of-missing-and-float/96311)

<div class="topic-metadata">

**Author:** [@ejlongman](https://discourse.julialang.org/u/ejlongman)\
**Replies:** 10\
**Last updated:** [March 20, 2023, 8:56pm UTC](https://discourse.julialang.org/t/vector-of-missing-and-float/96311 "2023-03-20T20:56:19Z")

</div>

Hello, I dropped missing values from a dataframe and then turned a column into a vector. The vector does not have missing values, but it has type: 7554-element Vector{Union{Missing, Float64}}: This prevents me from us…

---

## [What next after SnoopCompile?](https://discourse.julialang.org/t/what-next-after-snoopcompile/96320)

<div class="topic-metadata">

**Author:** [@Jack\_Coughlin](https://discourse.julialang.org/u/Jack_Coughlin)\
**Replies:** 7\
**Last updated:** [March 20, 2023, 6:24pm UTC](https://discourse.julialang.org/t/what-next-after-snoopcompile/96320 "2023-03-20T18:24:15Z")

</div>

I’m working on reducing TTFX for my project using SnoopCompile.jl. I have eliminated all relevant invalidations according to precompile\_blockers @snoopi\_deep reports the following for my workload: julia\> tinf Inferenc…

---

## [How to properly use \[compat\] section of project.toml?](https://discourse.julialang.org/t/how-to-properly-use-compat-section-of-project-toml/79855)

<div class="topic-metadata">

**Author:** [@Shane\_Kelly](https://discourse.julialang.org/u/Shane_Kelly)\
**Replies:** 3\
**Last updated:** [March 20, 2023, 5:32pm UTC](https://discourse.julialang.org/t/how-to-properly-use-compat-section-of-project-toml/79855 "2023-03-20T17:32:36Z")

</div>

I am attempting to use the \[compat\] section to fix the version of a package, say package C, in a package, say A, that I am developing. Suppose the most up to date version of C is C@1.4 while my project.toml for project A…

---

## [LoadError: Could not find any suitable device for this configuration](https://discourse.julialang.org/t/loaderror-could-not-find-any-suitable-device-for-this-configuration/96253)

<div class="topic-metadata">

**Author:** [@stmorg](https://discourse.julialang.org/u/stmorg)\
**Replies:** 2\
**Last updated:** [March 20, 2023, 4:58pm UTC](https://discourse.julialang.org/t/loaderror-could-not-find-any-suitable-device-for-this-configuration/96253 "2023-03-20T16:58:02Z")

</div>

Hello, Currently setting up julia on my new machine and having some trouble with getting CUDA to work. I am getting errors during test. Below is the output with JULIA\_DEBUG=all Pkg.test("CUDA") ┌ Debug: Loading cache f…

---

## [Get Symbolics.simplify to work a little bit harder](https://discourse.julialang.org/t/get-symbolics-simplify-to-work-a-little-bit-harder/96353)

<div class="topic-metadata">

**Author:** [@moble](https://discourse.julialang.org/u/moble)\
**Replies:** 0\
**Last updated:** [March 20, 2023, 3:57pm UTC](https://discourse.julialang.org/t/get-symbolics-simplify-to-work-a-little-bit-harder/96353 "2023-03-20T15:57:12Z")

</div>

I’m working with some fairly long expressions, where the structure of each term is reasonably simple, but every term has the same three variables, and then a smattering of one or two other variables, and maybe an Int or …

---

## [Is it possible to store the JuMP output to an \*.xlsx?](https://discourse.julialang.org/t/is-it-possible-to-store-the-jump-output-to-an-xlsx/95887)

<div class="topic-metadata">

**Author:** [@Optimization](https://discourse.julialang.org/u/Optimization)\
**Replies:** 15\
**Last updated:** [March 20, 2023, 3:30pm UTC](https://discourse.julialang.org/t/is-it-possible-to-store-the-jump-output-to-an-xlsx/95887 "2023-03-20T15:30:19Z")

</div>

Hi, I have a model that uses CPLEX to find optimal solution. When I call JuMP.value.(x) ir cannot show all elements in the terminal. So, I’ve tried write\_to\_file(model, "model.xlsx") to store it in excel file to see wh…

---

## [Is it possible to have the same module imported twice with slightly different behaviour?](https://discourse.julialang.org/t/is-it-possible-to-have-the-same-module-imported-twice-with-slightly-different-behaviour/96344)

<div class="topic-metadata">

**Author:** [@jt1](https://discourse.julialang.org/u/jt1)\
**Replies:** 1\
**Last updated:** [March 20, 2023, 2:41pm UTC](https://discourse.julialang.org/t/is-it-possible-to-have-the-same-module-imported-twice-with-slightly-different-behaviour/96344 "2023-03-20T14:41:57Z")

</div>

Say I want to overwrite the behaviour of a Module (eg. the rank function in LinearAlgebra always returns 0 (this is a fictional problem)), but I don’t want to brake other modules that use LinearAlgebra (eg. I want rank w…

---

## [Julia, quarto and CSV fails precompile](https://discourse.julialang.org/t/julia-quarto-and-csv-fails-precompile/96300)

<div class="topic-metadata">

**Author:** [@JackStrauss](https://discourse.julialang.org/u/JackStrauss)\
**Replies:** 16\
**Last updated:** [March 20, 2023, 2:25pm UTC](https://discourse.julialang.org/t/julia-quarto-and-csv-fails-precompile/96300 "2023-03-20T14:25:35Z")

</div>

Hi All I was experimenting with quarto and ran into a strange problem with CSV. I am on the latest Julia on a M1, with all latest packages. Running Julia by itself, no problems with using CSV but with quarto precompile …

---

## [AbstractTrees - iterating without a tree](https://discourse.julialang.org/t/abstracttrees-iterating-without-a-tree/96339)

<div class="topic-metadata">

**Author:** [@freeman](https://discourse.julialang.org/u/freeman)\
**Replies:** 0\
**Last updated:** [March 20, 2023, 2:06pm UTC](https://discourse.julialang.org/t/abstracttrees-iterating-without-a-tree/96339 "2023-03-20T14:06:11Z")

</div>

If I have a tree, I can use AbstractTrees.jl to iterate it. All I needed was to define import AbstractTrees as AT AT.children(n::MyNode) = ... Great! But often times I don’t have a tree and I don’t want to build it in…

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

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