# Latest

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

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

**Page:** 1155

---

## [Confusing memory allocations when using the integrator of DifferentialEquations.jl](https://discourse.julialang.org/t/confusing-memory-allocations-when-using-the-integrator-of-differentialequations-jl/74436)

<div class="topic-metadata">

**Author:** [@duan](https://discourse.julialang.org/u/duan)\
**Replies:** 10\
**Last updated:** [January 12, 2022, 12:28am UTC](https://discourse.julialang.org/t/confusing-memory-allocations-when-using-the-integrator-of-differentialequations-jl/74436 "2022-01-12T00:28:46Z")

</div>

Here is a prototype of my problem: using OrdinaryDiffEq n = 2^18; u0 = rand(ComplexF64, n); function f(du, u, p, t) for i in 1:length(u) du\[i\] = -1.0im \* u\[i\] end return end mutable struct A u0…

---

## [How to best define a type with an argument not filled by the user](https://discourse.julialang.org/t/how-to-best-define-a-type-with-an-argument-not-filled-by-the-user/74442)

<div class="topic-metadata">

**Author:** [@benoitseron](https://discourse.julialang.org/u/benoitseron)\
**Replies:** 4\
**Last updated:** [January 11, 2022, 10:49pm UTC](https://discourse.julialang.org/t/how-to-best-define-a-type-with-an-argument-not-filled-by-the-user/74442 "2022-01-11T22:49:50Z")

</div>

I’m looking to defined types which have certain fields, such as a matrix, and that constructs that matrix according to certain rules at the moment of type definition. Thus the user need not give the matrix, as it will be…

---

## [NeuralPDE: How to implement the MiniMax adaptive reweighting method](https://discourse.julialang.org/t/neuralpde-how-to-implement-the-minimax-adaptive-reweighting-method/74443)

<div class="topic-metadata">

**Author:** [@hha08](https://discourse.julialang.org/u/hha08)\
**Replies:** 2\
**Last updated:** [January 11, 2022, 10:45pm UTC](https://discourse.julialang.org/t/neuralpde-how-to-implement-the-minimax-adaptive-reweighting-method/74443 "2022-01-11T22:45:45Z")

</div>

I am a newbie to Julia but have a big passion for learning it. Recently, I have been interested in solving PDE using NeuralPDE.jl after reading the paper at https://arxiv.org/ftp/arxiv/papers/2107/2107.09443.pdf. Then, I…

---

## [WSLtty Sixel REPL visualization](https://discourse.julialang.org/t/wsltty-sixel-repl-visualization/74430)

<div class="topic-metadata">

**Author:** [@monty](https://discourse.julialang.org/u/monty)\
**Replies:** 0\
**Last updated:** [January 11, 2022, 8:53pm UTC](https://discourse.julialang.org/t/wsltty-sixel-repl-visualization/74430 "2022-01-11T20:53:22Z")

</div>

I am using Julia on Windows 11 and running a WSLtty terminal. I am trying to plot a figure in the REPL. I want to reproduce what “TerminalExtensions.jl” is doing in mac using iterm2. However, SixelTerm.jl and other ava…

---

## [\[ANN\] HijriConverter.jl](https://discourse.julialang.org/t/ann-hijriconverter-jl/74427)

<div class="topic-metadata">

**Author:** [@jafar.isbarov](https://discourse.julialang.org/u/jafar.isbarov)\
**Replies:** 0\
**Last updated:** [January 11, 2022, 8:46pm UTC](https://discourse.julialang.org/t/ann-hijriconverter-jl/74427 "2022-01-11T20:46:27Z")

</div>

Hijri calendar was not supported in Julia stdlib or any external package, so I tried to remedy the situation a little. I looked for Hijri packages in other languages that I could rewrite in Julia. It was suggested to me …

---

## [Is there a way to impose positive domain on a selection of variables in odesolver](https://discourse.julialang.org/t/is-there-a-way-to-impose-positive-domain-on-a-selection-of-variables-in-odesolver/74424)

<div class="topic-metadata">

**Author:** [@Shashank](https://discourse.julialang.org/u/Shashank)\
**Replies:** 1\
**Last updated:** [January 11, 2022, 8:11pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-impose-positive-domain-on-a-selection-of-variables-in-odesolver/74424 "2022-01-11T20:11:55Z")

</div>

I am trying to solve 4 coupled differential equations the first two of them should always be positive while the 3rd and 4th can be positive or negative. I found that I can impose a positive domain on all four variables …

---

## [Need help understanding best practices to organise projects with many scripts](https://discourse.julialang.org/t/need-help-understanding-best-practices-to-organise-projects-with-many-scripts/68683)

<div class="topic-metadata">

**Author:** [@fieldofnodes](https://discourse.julialang.org/u/fieldofnodes)\
**Replies:** 1\
**Last updated:** [January 11, 2022, 7:41pm UTC](https://discourse.julialang.org/t/need-help-understanding-best-practices-to-organise-projects-with-many-scripts/68683 "2022-01-11T19:41:13Z")

</div>

Hi all, This is a general question, which could be asked in a broader arena, but I wanted to see what people do to keep projects organised. I often, with the best of intentions, start with a clean basic template of fol…

---

## [Profiling Requires.jl](https://discourse.julialang.org/t/profiling-requires-jl/73570)

<div class="topic-metadata">

**Author:** [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Replies:** 1\
**Last updated:** [January 11, 2022, 7:37pm UTC](https://discourse.julialang.org/t/profiling-requires-jl/73570 "2022-01-11T19:37:58Z")

</div>

Is there any way to profile which Requires.jl usage are taking the longest time?

---

## [Scatter! not working as before after upgrade to julia 1.7.1 and GLMakie 0.5.0](https://discourse.julialang.org/t/scatter-not-working-as-before-after-upgrade-to-julia-1-7-1-and-glmakie-0-5-0/74410)

<div class="topic-metadata">

**Author:** [@peremato](https://discourse.julialang.org/u/peremato)\
**Replies:** 2\
**Last updated:** [January 11, 2022, 7:20pm UTC](https://discourse.julialang.org/t/scatter-not-working-as-before-after-upgrade-to-julia-1-7-1-and-glmakie-0-5-0/74410 "2022-01-11T19:20:33Z")

</div>

The following code with julia 1.7.1 and GLMakie 0.5.0 using StaticArrays using GLMakie const T = Float32 N = 1000 low, hi = Point3{T}(-1,-1,-1), Point3{T}(1,1,1) dim = hi - low points = Ref(low) .+ rand(Point3{T}, N)…

---

## [MIT license detection on JuliaHub](https://discourse.julialang.org/t/mit-license-detection-on-juliahub/74420)

<div class="topic-metadata">

**Author:** [@jafar.isbarov](https://discourse.julialang.org/u/jafar.isbarov)\
**Replies:** 0\
**Last updated:** [January 11, 2022, 6:55pm UTC](https://discourse.julialang.org/t/mit-license-detection-on-juliahub/74420 "2022-01-11T18:55:11Z")

</div>

I have registered this package, but JuliaHub does not display the MIT license I have added to it. I read through the issues and apparently this used to be a common problem which has already been fixed. Am I doing someth…

---

## [Code organization to use precompilation with a tiny example](https://discourse.julialang.org/t/code-organization-to-use-precompilation-with-a-tiny-example/65893)

<div class="topic-metadata">

**Author:** [@danilo-bc](https://discourse.julialang.org/u/danilo-bc)\
**Replies:** 0\
**Last updated:** [August 5, 2021, 3:03pm UTC](https://discourse.julialang.org/t/code-organization-to-use-precompilation-with-a-tiny-example/65893 "2021-08-05T15:03:54Z")

</div>

I’ve read a few good (and recent) threads on how to organize code to achieve what I need, but I want advice on a really tiny example. Suppose I’m currently tasked with building a calculator program. I want to make separ…

---

## [How to create custom unary operator](https://discourse.julialang.org/t/how-to-create-custom-unary-operator/74375)

<div class="topic-metadata">

**Author:** [@HiramTheHero](https://discourse.julialang.org/u/HiramTheHero)\
**Replies:** 2\
**Last updated:** [January 11, 2022, 4:50pm UTC](https://discourse.julialang.org/t/how-to-create-custom-unary-operator/74375 "2022-01-11T16:50:04Z")

</div>

Hello all. Is there a way to create custom unary operators in Julia? (Not overload the predefined ones.) The only place I’ve been able to find such discussion are: and

---

## [TimetableSolver.jl: Create a timetable schedule, using ConstraintSolver.jl and JuMP](https://discourse.julialang.org/t/timetablesolver-jl-create-a-timetable-schedule-using-constraintsolver-jl-and-jump/74407)

<div class="topic-metadata">

**Author:** [@Sushant-Padha](https://discourse.julialang.org/u/Sushant-Padha)\
**Replies:** 0\
**Last updated:** [January 11, 2022, 4:44pm UTC](https://discourse.julialang.org/t/timetablesolver-jl-create-a-timetable-schedule-using-constraintsolver-jl-and-jump/74407 "2022-01-11T16:44:06Z")

</div>

TimetableSolver.jl Julia package to create a timetable schedule, using ConstraintSolver.jl and JuMP. This package can be used to solve a timetable schedule, modelled using simple types. Note that this is not a package f…

---

## [Dictionary from a String Sequence Iteration](https://discourse.julialang.org/t/dictionary-from-a-string-sequence-iteration/74359)

<div class="topic-metadata">

**Author:** [@Jdbeck66](https://discourse.julialang.org/u/Jdbeck66)\
**Replies:** 7\
**Last updated:** [January 11, 2022, 3:56pm UTC](https://discourse.julialang.org/t/dictionary-from-a-string-sequence-iteration/74359 "2022-01-11T15:56:44Z")

</div>

I’m looking for a more elegant, maybe faster way to create dictionary of position =\> difference between two string sequences. This is what I’m currently using. function mutationpositions(wildtype, variant) dict = D…

---

## [DifferentialEquations.jl v7: New linear solver and preconditioner interface](https://discourse.julialang.org/t/differentialequations-jl-v7-new-linear-solver-and-preconditioner-interface/74397)

<div class="topic-metadata">

**Author:** [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Replies:** 0\
**Last updated:** [January 11, 2022, 2:53pm UTC](https://discourse.julialang.org/t/differentialequations-jl-v7-new-linear-solver-and-preconditioner-interface/74397 "2022-01-11T14:53:59Z")

</div>

See the release blog post for DifferentialEquations.jl v7: Note that this describes breaking changes to the linsolve interface and thus is an important read for users of that interface. also there’s fun stuff in there…

---

## [WinPython + JupyterLab + Julia 1.5.2 + Julia 1.6.5](https://discourse.julialang.org/t/winpython-jupyterlab-julia-1-5-2-julia-1-6-5/74363)

<div class="topic-metadata">

**Author:** [@maajdl](https://discourse.julialang.org/u/maajdl)\
**Replies:** 8\
**Last updated:** [January 11, 2022, 2:19pm UTC](https://discourse.julialang.org/t/winpython-jupyterlab-julia-1-5-2-julia-1-6-5/74363 "2022-01-11T14:19:57Z")

</div>

Hello, Since nearly one year, I have been using WinPython + JupyterLab + Julia 1.5.2 I can’t remember how I managed to configure that at that time. Using JupyterLab that came with WinPython, I can create Python or Jul…

---

## [Statically rotate 3D scene in Makie.jl](https://discourse.julialang.org/t/statically-rotate-3d-scene-in-makie-jl/74356)

<div class="topic-metadata">

**Author:** [@mattwigway](https://discourse.julialang.org/u/mattwigway)\
**Replies:** 3\
**Last updated:** [January 11, 2022, 2:17pm UTC](https://discourse.julialang.org/t/statically-rotate-3d-scene-in-makie-jl/74356 "2022-01-11T14:17:05Z")

</div>

I am plotting a bivariate normal distribution in Makie. After generating the values, I plot it with this code (full MWE below): fig = Figure() ax1 = Axis3(fig\[1,1\], xlabel="Selection error term", ylabel="Outcome error t…

---

## [Attempt to access Tuple{Float64, Bool} at index \[0\]](https://discourse.julialang.org/t/attempt-to-access-tuple-float64-bool-at-index-0/74386)

<div class="topic-metadata">

**Author:** [@frydaydeep](https://discourse.julialang.org/u/frydaydeep)\
**Replies:** 4\
**Last updated:** [January 11, 2022, 2:11pm UTC](https://discourse.julialang.org/t/attempt-to-access-tuple-float64-bool-at-index-0/74386 "2022-01-11T14:11:46Z")

</div>

a = (1.0,false::Bool) for i in a @show a\[i\] end and it returns LoadError: BoundsError: attempt to access Tuple{Float64, Bool} at index \[0\] however, b = (1,2.0) a\[1\] length(a) for i in 1:length(a) @sho…

---

## [Plots.jl : Obtain a graph with alligned ticks on x and y axes](https://discourse.julialang.org/t/plots-jl-obtain-a-graph-with-alligned-ticks-on-x-and-y-axes/74388)

<div class="topic-metadata">

**Author:** [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Replies:** 9\
**Last updated:** [January 11, 2022, 1:45pm UTC](https://discourse.julialang.org/t/plots-jl-obtain-a-graph-with-alligned-ticks-on-x-and-y-axes/74388 "2022-01-11T13:45:20Z")

</div>

Hey, Is there a way to force a plot to have the same ticks values on the x and the y axes ? So that the ‘grid’ is symmetric. It will make the reading of my qqplots easier.

---

## [Modifying and testing a registered package in a directory outside of .julia](https://discourse.julialang.org/t/modifying-and-testing-a-registered-package-in-a-directory-outside-of-julia/4882)

<div class="topic-metadata">

**Author:** [@matthew-wingate](https://discourse.julialang.org/u/matthew-wingate)\
**Replies:** 11\
**Last updated:** [January 11, 2022, 1:12pm UTC](https://discourse.julialang.org/t/modifying-and-testing-a-registered-package-in-a-directory-outside-of-julia/4882 "2022-01-11T13:12:58Z")

</div>

I am in the process of editing a file in a standard package (SpecialFunctions). For better or worse, I’ve already done my work using the standard git procedure, but outside the .julia directory structure. I can’t find …

---

## [Precompilation No Effect ?!](https://discourse.julialang.org/t/precompilation-no-effect/74387)

<div class="topic-metadata">

**Author:** [@yoh-meyers](https://discourse.julialang.org/u/yoh-meyers)\
**Replies:** 1\
**Last updated:** [January 11, 2022, 1:05pm UTC](https://discourse.julialang.org/t/precompilation-no-effect/74387 "2022-01-11T13:05:49Z")

</div>

Hello, Am trying to wrap my head around pre-compilation of a package. Have read through SnoopCompile.jl · SnoopCompile and tried the steps myself. So basically in my package I have: if ccall(:jl\_generating\_output, Ci…

---

## [Question about time-series prediction](https://discourse.julialang.org/t/question-about-time-series-prediction/74391)

<div class="topic-metadata">

**Author:** [@abcde](https://discourse.julialang.org/u/abcde)\
**Replies:** 1\
**Last updated:** [January 11, 2022, 12:44pm UTC](https://discourse.julialang.org/t/question-about-time-series-prediction/74391 "2022-01-11T12:44:24Z")

</div>

Hi, I’m making predictions about the power system. I have clustered and tagged the current power system data (356\*2568). What method should be used to predict the possible emergence of species tags in the next period of …

---

## [CSV Parser Error](https://discourse.julialang.org/t/csv-parser-error/74357)

<div class="topic-metadata">

**Author:** [@Sumanth](https://discourse.julialang.org/u/Sumanth)\
**Replies:** 6\
**Last updated:** [January 11, 2022, 12:36pm UTC](https://discourse.julialang.org/t/csv-parser-error/74357 "2022-01-11T12:36:56Z")

</div>

Package CSV does not have Parsers in its dependencies: │ - If you have CSV checked out for development and have │ added Parsers as a dependency but haven’t updated your primary │ environment’s manifest file, try P…

---

## [Can you do array lookup at compile time?](https://discourse.julialang.org/t/can-you-do-array-lookup-at-compile-time/74381)

<div class="topic-metadata">

**Author:** [@HenrikM](https://discourse.julialang.org/u/HenrikM)\
**Replies:** 1\
**Last updated:** [January 11, 2022, 9:08am UTC](https://discourse.julialang.org/t/can-you-do-array-lookup-at-compile-time/74381 "2022-01-11T09:08:56Z")

</div>

Is it possible to do array lookup at compile time, that is, fully evaluated in macros? When generating functions, known variables can be interpolated all the way to the compiler: x = 0 f = eval(:(y -\> $x\*y)) \> @code\_llv…

---

## [Julia Team Lead at Tangent Works](https://discourse.julialang.org/t/julia-team-lead-at-tangent-works/74383)

<div class="topic-metadata">

**Author:** [@Jan\_Dolinsky](https://discourse.julialang.org/u/Jan_Dolinsky)\
**Replies:** 0\
**Last updated:** [January 11, 2022, 10:33am UTC](https://discourse.julialang.org/t/julia-team-lead-at-tangent-works/74383 "2022-01-11T10:33:45Z")

</div>

Hello, we are looking for a Julia team lead to coordinate all our Julia developments at Tangent Works. You will be working on ML platform for time-series that enables high degree of automation in model building and high…

---

## [(3D plotting in Makie) Which Julia package does contain "to\_vertices"?](https://discourse.julialang.org/t/3d-plotting-in-makie-which-julia-package-does-contain-to-vertices/74320)

<div class="topic-metadata">

**Author:** [@cyfung](https://discourse.julialang.org/u/cyfung)\
**Replies:** 2\
**Last updated:** [January 11, 2022, 10:26am UTC](https://discourse.julialang.org/t/3d-plotting-in-makie-which-julia-package-does-contain-to-vertices/74320 "2022-01-11T10:26:34Z")

</div>

I would like to learn the 3D plot functionalities in Makie. I am trying to an example on the official website of Makie; I have run the code with “using Meshes” as well: https://makie.juliaplots.org/stable/examples/plot…

---

## [Infix operator](https://discourse.julialang.org/t/infix-operator/74317)

<div class="topic-metadata">

**Author:** [@jonoke](https://discourse.julialang.org/u/jonoke)\
**Replies:** 6\
**Last updated:** [January 10, 2022, 6:38am UTC](https://discourse.julialang.org/t/infix-operator/74317 "2022-01-10T06:38:05Z")

</div>

I have defined an infix operator using \\parallel and it works for 2 arguments, but I get a strange error when I try for 3 arguments (as infix). Is there a trick to get multiple args to work like 1+2+3+4 … etc. thanks n…

---

## [Create an object in the first iteration, then add to it](https://discourse.julialang.org/t/create-an-object-in-the-first-iteration-then-add-to-it/74348)

<div class="topic-metadata">

**Author:** [@GlenHenshaw](https://discourse.julialang.org/u/GlenHenshaw)\
**Replies:** 15\
**Last updated:** [January 11, 2022, 8:49am UTC](https://discourse.julialang.org/t/create-an-object-in-the-first-iteration-then-add-to-it/74348 "2022-01-11T08:49:51Z")

</div>

I’m struggling with what seems like a simple coding pattern, but I seem unable to come up with a clean solution to it. Specifically, I often find myself needing to a) create a new object (such as a matrix) and then add t…

---

## [Visualising loss/objective function value with iterations using \`Convex\` + \`SCS\`](https://discourse.julialang.org/t/visualising-loss-objective-function-value-with-iterations-using-convex-scs/74374)

<div class="topic-metadata">

**Author:** [@yewalenikhil65](https://discourse.julialang.org/u/yewalenikhil65)\
**Replies:** 3\
**Last updated:** [January 11, 2022, 8:00am UTC](https://discourse.julialang.org/t/visualising-loss-objective-function-value-with-iterations-using-convex-scs/74374 "2022-01-11T08:00:46Z")

</div>

Anyone worked with Convex.jl + SCS.jl ? How do I plot loss values/objective function values vs iteration during training process? (Naive way, that comes to my mind is allowing verbose=true in the solver and copypasting…

---

## [Memory representation of wrapper types](https://discourse.julialang.org/t/memory-representation-of-wrapper-types/74140)

<div class="topic-metadata">

**Author:** [@tfiers](https://discourse.julialang.org/u/tfiers)\
**Replies:** 3\
**Last updated:** [January 11, 2022, 6:49am UTC](https://discourse.julialang.org/t/memory-representation-of-wrapper-types/74140 "2022-01-11T06:49:31Z")

</div>

I am positively amazed at the following capability: julia\> struct Wrapper val::Float64 end julia\> w = \[Wrapper(randn()) for \_ in 1:3\] 3-element Vector{Wrapper}: Wrapper(0.071) Wrapper(0.029) Wrappe…

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

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