# Latest

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

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

**Page:** 884

---

## [Instantiate does not instantiate?](https://discourse.julialang.org/t/instantiate-does-not-instantiate/89309)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 4\
**Last updated:** [October 26, 2022, 5:56pm UTC](https://discourse.julialang.org/t/instantiate-does-not-instantiate/89309 "2022-10-26T17:56:29Z")

</div>

I’m playing with some student code, and the following is happening: while there is a Manifest.toml file and it seems to contain all the packages, instantiate does nothing: shell\> ls config.jl 'ddt\_polipart!.jl' …

---

## [Storing and parsing Dates.CompoundPeriod?](https://discourse.julialang.org/t/storing-and-parsing-dates-compoundperiod/89295)

<div class="topic-metadata">

**Author:** [@hacklint](https://discourse.julialang.org/u/hacklint)\
**Replies:** 5\
**Last updated:** [October 26, 2022, 5:34pm UTC](https://discourse.julialang.org/t/storing-and-parsing-dates-compoundperiod/89295 "2022-10-26T17:34:59Z")

</div>

Hi, In a small application I need to store and do simple arithmetics on durations (estimates and effort). So far the best option I have found seem to be Dates.CompoundPeriod, which works fine for now, providing additio…

---

## [ANN: JuliaSmoothOptimisers just got smoother - reverse-mode AD support](https://discourse.julialang.org/t/ann-juliasmoothoptimisers-just-got-smoother-reverse-mode-ad-support/58966)

<div class="topic-metadata">

**Author:** [@mohamed82008](https://discourse.julialang.org/u/mohamed82008)\
**Replies:** 5\
**Last updated:** [October 26, 2022, 5:29pm UTC](https://discourse.julialang.org/t/ann-juliasmoothoptimisers-just-got-smoother-reverse-mode-ad-support/58966 "2022-10-26T17:29:41Z")

</div>

I am glad to announce that you can now use reverse-mode automatic differentiation (AD) packages such as Zygote and ReverseDiff in the JuliaSmoothOptimisers ecosystem. This is part of an effort towards an AD-based first-o…

---

## [Matt Parker's Crappy Python Challenge](https://discourse.julialang.org/t/matt-parkers-crappy-python-challenge/88970)

<div class="topic-metadata">

**Author:** [@HexSpin](https://discourse.julialang.org/u/HexSpin)\
**Replies:** 19\
**Last updated:** [October 26, 2022, 5:20pm UTC](https://discourse.julialang.org/t/matt-parkers-crappy-python-challenge/88970 "2022-10-26T17:20:55Z")

</div>

I found this amusing and perhaps you will too… and maybe someone with Julia will make their mark. (The scattergram does show a Julia competitor looking pretty good.)

---

## [PyScript is very cool](https://discourse.julialang.org/t/pyscript-is-very-cool/89306)

<div class="topic-metadata">

**Author:** [@runjaj](https://discourse.julialang.org/u/runjaj)\
**Replies:** 2\
**Last updated:** [October 26, 2022, 5:17pm UTC](https://discourse.julialang.org/t/pyscript-is-very-cool/89306 "2022-10-26T17:17:03Z")

</div>

I just visited the PyScript website and I found it very impressive. It’s a way to run Python applications in the browser. The good part is that you don’t need a server, everything is run locally. Matplotlib, numpy and mo…

---

## [Multiple Condition for DifferentialEquations callback](https://discourse.julialang.org/t/multiple-condition-for-differentialequations-callback/89308)

<div class="topic-metadata">

**Author:** [@pimler73](https://discourse.julialang.org/u/pimler73)\
**Replies:** 1\
**Last updated:** [October 26, 2022, 5:11pm UTC](https://discourse.julialang.org/t/multiple-condition-for-differentialequations-callback/89308 "2022-10-26T17:11:46Z")

</div>

I am solving an IVP with the DifferentialEquations package and I am looking to find n events with a specific condition. The issue rises from the fact that my events require 2 conditions to be satisfied. I am using Contin…

---

## [Wrapping methods used by multiple structs](https://discourse.julialang.org/t/wrapping-methods-used-by-multiple-structs/89311)

<div class="topic-metadata">

**Author:** [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)\
**Replies:** 0\
**Last updated:** [October 26, 2022, 5:04pm UTC](https://discourse.julialang.org/t/wrapping-methods-used-by-multiple-structs/89311 "2022-10-26T17:04:05Z")

</div>

For use running incremental statistics over windowed data, I have some structs that share struct-function-like methods. Here is an example that keeps track of the maximum value encountered as it runs over a windowed dat…

---

## [Getting Each Pixel Covered by a Bezier Curve](https://discourse.julialang.org/t/getting-each-pixel-covered-by-a-bezier-curve/89162)

<div class="topic-metadata">

**Author:** [@GameDungeon](https://discourse.julialang.org/u/GameDungeon)\
**Replies:** 4\
**Last updated:** [October 25, 2022, 10:24pm UTC](https://discourse.julialang.org/t/getting-each-pixel-covered-by-a-bezier-curve/89162 "2022-10-25T22:24:21Z")

</div>

For a project of mine, I have a bezier curve’s control points. I need to get the pixels that the curve passes over. I haven’t been able to find anything that does this and was wondering if any of you knew of something. T…

---

## [ModelingToolkit - component defaults](https://discourse.julialang.org/t/modelingtoolkit-component-defaults/89281)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 4\
**Last updated:** [October 26, 2022, 3:54pm UTC](https://discourse.julialang.org/t/modelingtoolkit-component-defaults/89281 "2022-10-26T15:54:18Z")

</div>

I have some background with Modelica, where the specification and modification of defaults is relatively simple. From the ModelingToolkit documentation \[p. 2 of ModelingToolkit.jl documentation\]: Often it is a good ide…

---

## [@turbo macro gives incorrect results](https://discourse.julialang.org/t/turbo-macro-gives-incorrect-results/89280)

<div class="topic-metadata">

**Author:** [@sidelkin](https://discourse.julialang.org/u/sidelkin)\
**Replies:** 4\
**Last updated:** [October 26, 2022, 3:53pm UTC](https://discourse.julialang.org/t/turbo-macro-gives-incorrect-results/89280 "2022-10-26T15:53:47Z")

</div>

I often use the @turbo macro for calculations. But I recently discovered that using it sometimes gives incorrect results. Below are minimal working examples where different options are compared. using LoopVectorization …

---

## [ComponentArrays vs LabelledArrays](https://discourse.julialang.org/t/componentarrays-vs-labelledarrays/67464)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 5\
**Last updated:** [October 26, 2022, 3:41pm UTC](https://discourse.julialang.org/t/componentarrays-vs-labelledarrays/67464 "2022-10-26T15:41:38Z")

</div>

I’ve been a user of ComponentArrays.jl for a while. Just recently discovered LabelledArrays.jl. They strike as very similar. Are there any fundamental differences between them? Just as example, this is the kind of use f…

---

## [Overlay Pie chart and scatter plot with CairoMakie](https://discourse.julialang.org/t/overlay-pie-chart-and-scatter-plot-with-cairomakie/88982)

<div class="topic-metadata">

**Author:** [@JJ\_DY](https://discourse.julialang.org/u/JJ_DY)\
**Replies:** 2\
**Last updated:** [October 26, 2022, 3:20pm UTC](https://discourse.julialang.org/t/overlay-pie-chart-and-scatter-plot-with-cairomakie/88982 "2022-10-26T15:20:17Z")

</div>

Hi Julia community, Do you know if there is a way to put multiple pie charts on an existing scatter plot based on the x y position? I am trying to create a figure like this with Makie but can’t get it to work. Thank v…

---

## [DataDrivenDiffEq package error](https://discourse.julialang.org/t/datadrivendiffeq-package-error/89303)

<div class="topic-metadata">

**Author:** [@BILEHGUELLEHSAHAL](https://discourse.julialang.org/u/BILEHGUELLEHSAHAL)\
**Replies:** 1\
**Last updated:** [October 26, 2022, 3:00pm UTC](https://discourse.julialang.org/t/datadrivendiffeq-package-error/89303 "2022-10-26T15:00:22Z")

</div>

Hello I am new in Julia and i would like your help on how to manage differents package that are compatible with differents versions. I found this error when using the DataDrivenDiffEq Pkg. Also note I’m using Julia 1.8. …

---

## [Problem with LoopVectorization : @turbo, LoopVectorization.check\_args](https://discourse.julialang.org/t/problem-with-loopvectorization-turbo-loopvectorization-check-args/77963)

<div class="topic-metadata">

**Author:** [@Elyco](https://discourse.julialang.org/u/Elyco)\
**Replies:** 27\
**Last updated:** [October 26, 2022, 2:46pm UTC](https://discourse.julialang.org/t/problem-with-loopvectorization-turbo-loopvectorization-check-args/77963 "2022-10-26T14:46:50Z")

</div>

Hi, I’m trying to optimize a loop and I get a warning about \`LoopVectorization.check\_args\` on your inputs failed. Here is my MWE: psi = rand(ComplexF64,4,4) dpsi = zeros(ComplexF64,4,4) function test\_turbo(dpsi::Arr…

---

## [What is a custom mark function supposed to return?](https://discourse.julialang.org/t/what-is-a-custom-mark-function-supposed-to-return/87877)

<div class="topic-metadata">

**Author:** [@Taaitaaiger](https://discourse.julialang.org/u/Taaitaaiger)\
**Replies:** 1\
**Last updated:** [October 26, 2022, 2:44pm UTC](https://discourse.julialang.org/t/what-is-a-custom-mark-function-supposed-to-return/87877 "2022-10-26T14:44:33Z")

</div>

You can create foreign types that have custom mark and sweep functions with jl\_new\_foreign\_type. The custom mark function must return a uintptr\_t, but it’s undocumented what should be returned exactly. The custom mark i…

---

## [Will any Julia 1.x contain substantive breaking changes?](https://discourse.julialang.org/t/will-any-julia-1-x-contain-substantive-breaking-changes/89138)

<div class="topic-metadata">

**Author:** [@Lilith](https://discourse.julialang.org/u/Lilith)\
**Replies:** 14\
**Last updated:** [October 26, 2022, 2:26pm UTC](https://discourse.julialang.org/t/will-any-julia-1-x-contain-substantive-breaking-changes/89138 "2022-10-26T14:26:42Z")

</div>

Continuing the discussion from PSA: Julia is not at that stage of development anymore: I was under the impression that semantic versioning requires that version to be called Julia 2.0. I would be sad if we introduced a…

---

## [Is \`Base.@constprop\` strictly for internal usage?](https://discourse.julialang.org/t/is-base-constprop-strictly-for-internal-usage/89273)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 5\
**Last updated:** [October 26, 2022, 1:43pm UTC](https://discourse.julialang.org/t/is-base-constprop-strictly-for-internal-usage/89273 "2022-10-26T13:43:34Z")

</div>

Is it likely to become a part of the public API in the future? Or is this strictly for internal use, and package developers are discouraged from using it? This often helps with type inference, so it would be great to ha…

---

## [JumpProcesses.jl : Specify the specific jumps which occured](https://discourse.julialang.org/t/jumpprocesses-jl-specify-the-specific-jumps-which-occured/89291)

<div class="topic-metadata">

**Author:** [@ashwingop](https://discourse.julialang.org/u/ashwingop)\
**Replies:** 5\
**Last updated:** [October 26, 2022, 12:53pm UTC](https://discourse.julialang.org/t/jumpprocesses-jl-specify-the-specific-jumps-which-occured/89291 "2022-10-26T12:53:54Z")

</div>

Hey all, I am working with a Markov jump process with multiple possible reactions (Variable rates) coupled to a stochastic differential equation. I am trying to simulate it using the JumpProcesses.jl package. I am tryi…

---

## [Passing userdata to solver](https://discourse.julialang.org/t/passing-userdata-to-solver/89289)

<div class="topic-metadata">

**Author:** [@Schlabonski](https://discourse.julialang.org/u/Schlabonski)\
**Replies:** 1\
**Last updated:** [October 26, 2022, 10:40am UTC](https://discourse.julialang.org/t/passing-userdata-to-solver/89289 "2022-10-26T10:40:09Z")

</div>

Hi there, I’m using DifferentialEquations.jl to simulate collisions between particles. When one particle leaves a defined volume I want to reseed it randomly until a certain number of collisions is reached. My code from…

---

## [Print JuMP model in IJulia in plain text (i.e. non-LaTeX)](https://discourse.julialang.org/t/print-jump-model-in-ijulia-in-plain-text-i-e-non-latex/89276)

<div class="topic-metadata">

**Author:** [@fleimgruber](https://discourse.julialang.org/u/fleimgruber)\
**Replies:** 4\
**Last updated:** [October 26, 2022, 9:07am UTC](https://discourse.julialang.org/t/print-jump-model-in-ijulia-in-plain-text-i-e-non-latex/89276 "2022-10-26T09:07:57Z")

</div>

I want to use JuMP with the IJulia server, but in a reduced editing environment, i.e. not inside a browser. For this reason I want a call to print(model) to print in plain text instead of LaTeX. I found (old) code exampl…

---

## [Error handling in Julia with MPI -- how to catch errors?](https://discourse.julialang.org/t/error-handling-in-julia-with-mpi-how-to-catch-errors/89285)

<div class="topic-metadata">

**Author:** [@mrhardman](https://discourse.julialang.org/u/mrhardman)\
**Replies:** 0\
**Last updated:** [October 26, 2022, 8:58am UTC](https://discourse.julialang.org/t/error-handling-in-julia-with-mpi-how-to-catch-errors/89285 "2022-10-26T08:58:54Z")

</div>

I am part of a team developing a MPI physics code (mabarnes/moment\_kinetics (github.com). We have integrated shared memory MPI into the code using the MPI.jl package. I have been looking for documentation for how to tra…

---

## [Nonlinear activation functions (and Transformers) on the way out?! And "SimpleGate" the replacement](https://discourse.julialang.org/t/nonlinear-activation-functions-and-transformers-on-the-way-out-and-simplegate-the-replacement/80127)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 1\
**Last updated:** [October 26, 2022, 8:23am UTC](https://discourse.julialang.org/t/nonlinear-activation-functions-and-transformers-on-the-way-out-and-simplegate-the-replacement/80127 "2022-10-26T08:23:53Z")

</div>

our SimpleGate could be implemented by an element-wise multiplication, that’s all: SimpleGate(X, Y) = X ⊙ Y where X and Y are feature maps of the same size. What caught my eye first was: https://arxiv.org/pdf/2204…

---

## [Tracking down a dyld error on apple silicon](https://discourse.julialang.org/t/tracking-down-a-dyld-error-on-apple-silicon/89240)

<div class="topic-metadata">

**Author:** [@cmarcotte](https://discourse.julialang.org/u/cmarcotte)\
**Replies:** 0\
**Last updated:** [October 25, 2022, 8:22am UTC](https://discourse.julialang.org/t/tracking-down-a-dyld-error-on-apple-silicon/89240 "2022-10-25T08:22:04Z")

</div>

Hello Julians, I am trying to track down a dyld error on Apple Silicon when using the UMAP.jl package. Under rosetta it works perfectly well, but in 1.8.2 (native) I get the following error when add-ing and then test-in…

---

## [Zygote error - Mutating arrays is not supported](https://discourse.julialang.org/t/zygote-error-mutating-arrays-is-not-supported/89147)

<div class="topic-metadata">

**Author:** [@richinex](https://discourse.julialang.org/u/richinex)\
**Replies:** 12\
**Last updated:** [October 26, 2022, 7:29am UTC](https://discourse.julialang.org/t/zygote-error-mutating-arrays-is-not-supported/89147 "2022-10-26T07:29:10Z")

</div>

Hi all, I am converting a function originally witten in python to Julia. but I have some problems working with the autodiff function provided by Zygote when I try to take the gradient of the function ( (I am able to do t…

---

## [Seek help on an error of PackageCompiler](https://discourse.julialang.org/t/seek-help-on-an-error-of-packagecompiler/89232)

<div class="topic-metadata">

**Author:** [@lionisxn](https://discourse.julialang.org/u/lionisxn)\
**Replies:** 1\
**Last updated:** [October 26, 2022, 7:02am UTC](https://discourse.julialang.org/t/seek-help-on-an-error-of-packagecompiler/89232 "2022-10-26T07:02:36Z")

</div>

I’m using Julia 1.8.2, and I want to create a C shared dynamic library from my package by “create\_library(sourPkg, “lib”; lib\_name = “lib”, header\_files = \[“headfile.h”\], force = true, incremental = false, filter\_stdlibs…

---

## [How usable is Julia for NLP related ML tasks?](https://discourse.julialang.org/t/how-usable-is-julia-for-nlp-related-ml-tasks/89270)

<div class="topic-metadata">

**Author:** [@mj2984](https://discourse.julialang.org/u/mj2984)\
**Replies:** 0\
**Last updated:** [October 26, 2022, 5:59am UTC](https://discourse.julialang.org/t/how-usable-is-julia-for-nlp-related-ml-tasks/89270 "2022-10-26T05:59:09Z")

</div>

I am looking to implement the following paper in Julia ( 2018\_commonsense\_ZhouHao\_3\_TYVQ7Iq.pdf (tsinghua.edu.cn)) . It has an existing TensorFlow implementation on a very old TensorFlow version, so I felt it would be ni…

---

## [Arrows not working on log-log plot (GR)](https://discourse.julialang.org/t/arrows-not-working-on-log-log-plot-gr/61454)

<div class="topic-metadata">

**Author:** [@white-c](https://discourse.julialang.org/u/white-c)\
**Replies:** 5\
**Last updated:** [October 26, 2022, 6:10am UTC](https://discourse.julialang.org/t/arrows-not-working-on-log-log-plot-gr/61454 "2022-10-26T06:10:04Z")

</div>

If I run code like this, the plot doesn’t work correctly when I use the arrows. Any suggestions to fix this? using Plots gr() plot( \[0.1, 10\], \[0.1, 10\], xscale=:log10, yscale=:log10, xlims=(0.01, 100), …

---

## [Missing characters when creating .bat file in Julia](https://discourse.julialang.org/t/missing-characters-when-creating-bat-file-in-julia/89252)

<div class="topic-metadata">

**Author:** [@Funkerfish](https://discourse.julialang.org/u/Funkerfish)\
**Replies:** 8\
**Last updated:** [October 26, 2022, 5:18am UTC](https://discourse.julialang.org/t/missing-characters-when-creating-bat-file-in-julia/89252 "2022-10-26T05:18:03Z")

</div>

Hi everyone! I have a problem with the file system. I want to create a .bat file in order to delete all the .png files in the folder. the .bat file should be: @echo off Del %cd%\\\\\*.png echo delete complete！ pause wh…

---

## [Replacing grep, sed, awk scripts with Julia](https://discourse.julialang.org/t/replacing-grep-sed-awk-scripts-with-julia/16014)

<div class="topic-metadata">

**Author:** [@FemtoTrader](https://discourse.julialang.org/u/FemtoTrader)\
**Replies:** 16\
**Last updated:** [October 26, 2022, 2:56am UTC](https://discourse.julialang.org/t/replacing-grep-sed-awk-scripts-with-julia/16014 "2022-10-26T02:56:57Z")

</div>

Hello, I have always considered grep, sed, awk scripts very difficult to read. I wonder if someone have try to build a tutorial and tools to move from this kind of tools to a proper script language such as Julia. Pyth…

---

## [Scaling Big Ints? Rounding?](https://discourse.julialang.org/t/scaling-big-ints-rounding/89257)

<div class="topic-metadata">

**Author:** [@theboiwholived](https://discourse.julialang.org/u/theboiwholived)\
**Replies:** 8\
**Last updated:** [October 26, 2022, 2:44am UTC](https://discourse.julialang.org/t/scaling-big-ints-rounding/89257 "2022-10-26T02:44:45Z")

</div>

Hey guys i have a unique problem. I ingest raw hex data println(key.second\["hex"\]) println(parse(BigInt, key.second\["hex"\]) ) println(floor(BigInt, parse(BigInt, key.secon…

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

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