# Latest

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

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

**Page:** 253

---

## [Seeking API Design Advice for Setting Defaults](https://discourse.julialang.org/t/seeking-api-design-advice-for-setting-defaults/123845)

<div class="topic-metadata">

**Author:** [@g-gundam](https://discourse.julialang.org/u/g-gundam)\
**Replies:** 5\
**Last updated:** [December 17, 2024, 3:02pm UTC](https://discourse.julialang.org/t/seeking-api-design-advice-for-setting-defaults/123845 "2024-12-17T15:02:20Z")

</div>

I have a constructor for a mutable Chart struct that is used like this. using OnlineTechnicalIndicators using TechnicalIndicatorCharts golden\_cross\_chart = Chart( "AAPL", Week(1); indicators = \[ SMA{Flo…

---

## [Nested parallelization in MPI with small outer loop and large inner loop](https://discourse.julialang.org/t/nested-parallelization-in-mpi-with-small-outer-loop-and-large-inner-loop/123610)

<div class="topic-metadata">

**Author:** [@pat-alt](https://discourse.julialang.org/u/pat-alt)\
**Replies:** 2\
**Last updated:** [December 17, 2024, 3:25pm UTC](https://discourse.julialang.org/t/nested-parallelization-in-mpi-with-small-outer-loop-and-large-inner-loop/123610 "2024-12-17T15:25:59Z")

</div>

I’m trying to run a slurm job using MPI, that involves a nested loop, where the outer loop is over a smaller list of size m than the inner loop (size n). For the inner loop, I want to use as many processes as possible np…

---

## [Error in libcrypto](https://discourse.julialang.org/t/error-in-libcrypto/123922)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 2\
**Last updated:** [December 17, 2024, 1:35pm UTC](https://discourse.julialang.org/t/error-in-libcrypto/123922 "2024-12-17T13:35:09Z")

</div>

I am getting the following error on Github: Run davidanthoff/julia-pkgbutler@releases/v1 Adding GitHub.com keys to /home/runner/.ssh/known\_hosts Starting ssh-agent /usr/bin/ssh-agent -a /tmp/ssh-auth.sock SSH\_AUTH\_SOCK…

---

## [Cfunction error handling](https://discourse.julialang.org/t/cfunction-error-handling/123925)

<div class="topic-metadata">

**Author:** [@Sergey](https://discourse.julialang.org/u/Sergey)\
**Replies:** 0\
**Last updated:** [December 17, 2024, 1:29pm UTC](https://discourse.julialang.org/t/cfunction-error-handling/123925 "2024-12-17T13:29:55Z")

</div>

Hi. Im calling cfunctions from c++ code. Is it possible not to break execution and do error handling if one occure on julia sode? for exmple: function calc(x :: Float32) return 100 \* sqrt(-x) end call this with …

---

## [Improving Efficiency of Embarassingly Parallel Problem Using \`Threads\`](https://discourse.julialang.org/t/improving-efficiency-of-embarassingly-parallel-problem-using-threads/123897)

<div class="topic-metadata">

**Author:** [@freestatelabs](https://discourse.julialang.org/u/freestatelabs)\
**Replies:** 7\
**Last updated:** [December 17, 2024, 1:32pm UTC](https://discourse.julialang.org/t/improving-efficiency-of-embarassingly-parallel-problem-using-threads/123897 "2024-12-17T13:32:31Z")

</div>

I recently upgraded my workstation and have been benchmarking a code I had written that I consider to be “embarrassingly parallel”, implemented via the Threads module. However, I found that I was getting far greater loss…

---

## [Creating an anonymous function at the local level. Conflict with const resulting in performance issues](https://discourse.julialang.org/t/creating-an-anonymous-function-at-the-local-level-conflict-with-const-resulting-in-performance-issues/123921)

<div class="topic-metadata">

**Author:** [@stefkuypers](https://discourse.julialang.org/u/stefkuypers)\
**Replies:** 4\
**Last updated:** [December 17, 2024, 1:23pm UTC](https://discourse.julialang.org/t/creating-an-anonymous-function-at-the-local-level-conflict-with-const-resulting-in-performance-issues/123921 "2024-12-17T13:23:36Z")

</div>

I’m building a simulation framework and am running into the following problem: I have a initialisation function init\_model(x::InitType) where x is a structure containing the information needed for initialisation of a mo…

---

## [Updating to MosekToolsv0.15.3 breaks many JuMP SDP codes](https://discourse.julialang.org/t/updating-to-mosektoolsv0-15-3-breaks-many-jump-sdp-codes/123893)

<div class="topic-metadata">

**Author:** [@Shuvomoy\_Das\_Gupta](https://discourse.julialang.org/u/Shuvomoy_Das_Gupta)\
**Replies:** 5\
**Last updated:** [December 17, 2024, 1:09pm UTC](https://discourse.julialang.org/t/updating-to-mosektoolsv0-15-3-breaks-many-jump-sdp-codes/123893 "2024-12-17T13:09:37Z")

</div>

I updated MosekTools to v0.15.3 today (from 0.15.1) and it breaks my existing SDP codes with the following error when calling optimize!: MSK\_RES\_ERR\_SYM\_MAT\_INVALID\_ROW\_INDEX): The row index 11 specified for sparse symm…

---

## [GSL for Differential Equations](https://discourse.julialang.org/t/gsl-for-differential-equations/123920)

<div class="topic-metadata">

**Author:** [@Cardoso\_Ribeiro](https://discourse.julialang.org/u/Cardoso_Ribeiro)\
**Replies:** 2\
**Last updated:** [December 17, 2024, 12:48pm UTC](https://discourse.julialang.org/t/gsl-for-differential-equations/123920 "2024-12-17T12:48:16Z")

</div>

Can anyone to use the GNU Scientific Library (GSL.jl) for solving differential equations in Julia? Can you give an example? I know C language.

---

## [Unregistered nested dependencies](https://discourse.julialang.org/t/unregistered-nested-dependencies/123923)

<div class="topic-metadata">

**Author:** [@polhager](https://discourse.julialang.org/u/polhager)\
**Replies:** 0\
**Last updated:** [December 17, 2024, 12:12pm UTC](https://discourse.julialang.org/t/unregistered-nested-dependencies/123923 "2024-12-17T12:12:36Z")

</div>

Hi all. I have a local package (PackageOne) which uses an unregistered package (PythonStructs) as a dependency. I would then like to use said local package as a dependency for a second local package (PackageTwo). The Pr…

---

## [Adding processed artefacts to a package](https://discourse.julialang.org/t/adding-processed-artefacts-to-a-package/123804)

<div class="topic-metadata">

**Author:** [@rssdev10](https://discourse.julialang.org/u/rssdev10)\
**Replies:** 0\
**Last updated:** [December 13, 2024, 8:23am UTC](https://discourse.julialang.org/t/adding-processed-artefacts-to-a-package/123804 "2024-12-13T08:23:48Z")

</div>

Hi, I found an old package with an internal data dependency that breaks the use of an executable binary built with PackageCompiler. In this package there is an explicit dependency for a file calculated during the packag…

---

## [Development with Docker and CUDA](https://discourse.julialang.org/t/development-with-docker-and-cuda/123884)

<div class="topic-metadata">

**Author:** [@hilario](https://discourse.julialang.org/u/hilario)\
**Replies:** 5\
**Last updated:** [December 17, 2024, 11:23am UTC](https://discourse.julialang.org/t/development-with-docker-and-cuda/123884 "2024-12-17T11:23:49Z")

</div>

Hi. I am developing code for my research and I’d like to make it run in a machine in which I don’t have permission to install Julia. I am not developing any “app”, I just want to be able to run my code, do my tests, expa…

---

## [Debugging a JuMP model's infeasibility](https://discourse.julialang.org/t/debugging-a-jump-models-infeasibility/123895)

<div class="topic-metadata">

**Author:** [@BMI\_OR](https://discourse.julialang.org/u/BMI_OR)\
**Replies:** 2\
**Last updated:** [December 17, 2024, 11:20am UTC](https://discourse.julialang.org/t/debugging-a-jump-models-infeasibility/123895 "2024-12-17T11:20:31Z")

</div>

I have implemented a Benders decomposition algorithm in which the Benders subproblem (BSP) is solved using column generation. The BSP is a conventional linear JuMP model and I use Gurobi as a solver. After some iterati…

---

## [Web app development services](https://discourse.julialang.org/t/web-app-development-services/123917)

<div class="topic-metadata">

**Author:** [@Pere](https://discourse.julialang.org/u/Pere)\
**Replies:** 0\
**Last updated:** [December 17, 2024, 11:20am UTC](https://discourse.julialang.org/t/web-app-development-services/123917 "2024-12-17T11:20:23Z")

</div>

Hi Julia Community, Are you looking to transform your Julia notebooks or scientific code into production-ready web applications? Genie can help! We specialize in Julia-powered web development and work with research ins…

---

## [Debug logging for package extensions](https://discourse.julialang.org/t/debug-logging-for-package-extensions/123883)

<div class="topic-metadata">

**Author:** [@pat-alt](https://discourse.julialang.org/u/pat-alt)\
**Replies:** 2\
**Last updated:** [December 17, 2024, 11:03am UTC](https://discourse.julialang.org/t/debug-logging-for-package-extensions/123883 "2024-12-17T11:03:11Z")

</div>

Is it possible to enable debug logging for package extensions? I’m trying to simply do JULIA\_DEBUG=TaijaParallel,TaijaParallel.MPIExt mpiexec -n 4 julia --project=$EXPERIMENT\_DIR $EXPERIMENT\_DIR/run\_evaluation\_grid.jl --…

---

## [Coding style in unary operator overloading](https://discourse.julialang.org/t/coding-style-in-unary-operator-overloading/123888)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 6\
**Last updated:** [December 17, 2024, 10:42am UTC](https://discourse.julialang.org/t/coding-style-in-unary-operator-overloading/123888 "2024-12-17T10:42:09Z")

</div>

Is there a reason to prefer one of the following two options? Option 1: Base.:-(a::MyType) = MyType(-a.data) Option 2: import Base.- -(a::MyType) = MyType(-a.data)

---

## [Bonito: serving an HTML page](https://discourse.julialang.org/t/bonito-serving-an-html-page/123872)

<div class="topic-metadata">

**Author:** [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Replies:** 4\
**Last updated:** [December 17, 2024, 10:05am UTC](https://discourse.julialang.org/t/bonito-serving-an-html-page/123872 "2024-12-17T10:05:14Z")

</div>

In Bonito.jl, how should I serve an HTML file? I would have expected server = Server("0.0.0.0", 8080) route!(server, "/" =\> title\_page) route!(server, "/documentation" =\> HTMLPage("/local/path/to/my/page.htm…

---

## [New Domain - what are people using Julia for in Hardware?](https://discourse.julialang.org/t/new-domain-what-are-people-using-julia-for-in-hardware/33042)

<div class="topic-metadata">

**Author:** [@tro3](https://discourse.julialang.org/u/tro3)\
**Replies:** 34\
**Last updated:** [December 17, 2024, 10:01am UTC](https://discourse.julialang.org/t/new-domain-what-are-people-using-julia-for-in-hardware/33042 "2024-12-17T10:01:27Z")

</div>

@anon92994695 has driven a new domain for Discourse covering all things hardware… the Maker domain. Thanks!! With one of my hats, I am a hardware guy very new to Julia, and I am curious what people are using Julia for…

---

## [Custom labels instead of numbering in RegressionTables.jl](https://discourse.julialang.org/t/custom-labels-instead-of-numbering-in-regressiontables-jl/123908)

<div class="topic-metadata">

**Author:** [@miguelborrero](https://discourse.julialang.org/u/miguelborrero)\
**Replies:** 0\
**Last updated:** [December 17, 2024, 5:29am UTC](https://discourse.julialang.org/t/custom-labels-instead-of-numbering-in-regressiontables-jl/123908 "2024-12-17T05:29:28Z")

</div>

Hi there, currently RegressionTables.jl automatically numbers the regression models when more than one is passed to regtable (using integers). However, I dont seem to find a way to replace these integers with custom lab…

---

## [Is it possible to resume a Gurobi optimization model after a timeout?](https://discourse.julialang.org/t/is-it-possible-to-resume-a-gurobi-optimization-model-after-a-timeout/123686)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 3\
**Last updated:** [December 17, 2024, 5:10am UTC](https://discourse.julialang.org/t/is-it-possible-to-resume-a-gurobi-optimization-model-after-a-timeout/123686 "2024-12-17T05:10:25Z")

</div>

There’s an optimization-type contest, I’m participating using MathOptInterface.jl and Gurobi.jl. Seeing as I don’t feel I’ll be able to improve the program formulation any more, I think the only way to further improve my…

---

## [Is there a package to that can make partial functions automatically?](https://discourse.julialang.org/t/is-there-a-package-to-that-can-make-partial-functions-automatically/31292)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 23\
**Last updated:** [December 17, 2024, 1:37am UTC](https://discourse.julialang.org/t/is-there-a-package-to-that-can-make-partial-functions-automatically/31292 "2024-12-17T01:37:13Z")

</div>

I have a function say savejdf savejdf(df::AbstractDataFrame, path::AbstractString) and I would like to create all possible partial functions e.g. savejdf(df::AbstractDataFrame) = path -\> savejdf(df, path) savejdf(pa…

---

## [Julia Tools for Large-Scale SMT/SAT problems?](https://discourse.julialang.org/t/julia-tools-for-large-scale-smt-sat-problems/123744)

<div class="topic-metadata">

**Author:** [@Fe-r-oz](https://discourse.julialang.org/u/Fe-r-oz)\
**Replies:** 1\
**Last updated:** [December 16, 2024, 9:17pm UTC](https://discourse.julialang.org/t/julia-tools-for-large-scale-smt-sat-problems/123744 "2024-12-16T21:17:21Z")

</div>

Hi, Everyone, I’m exploring options for working with SAT/SMT solvers in Julia. So far, I’ve come across Z3.jl and Satisfiability.jl, and I really appreciate the JuMP-like idiomatic interface of Satisfiability.jl, Are th…

---

## [Enzyme strange output for hessian](https://discourse.julialang.org/t/enzyme-strange-output-for-hessian/123899)

<div class="topic-metadata">

**Author:** [@c\_sell](https://discourse.julialang.org/u/c_sell)\
**Replies:** 0\
**Last updated:** [December 16, 2024, 7:31pm UTC](https://discourse.julialang.org/t/enzyme-strange-output-for-hessian/123899 "2024-12-16T19:31:25Z")

</div>

Hello, I get for the following small example the strage output: freeing without malloc %53 = call noalias nonnull dereferenceable(32) dereferenceable\_or\_null(32) i8\* @malloc(i64 noundef 32) #20, !enzyme\_cache\_alloc !5…

---

## [How to speed up re-running tests?](https://discourse.julialang.org/t/how-to-speed-up-re-running-tests/123894)

<div class="topic-metadata">

**Author:** [@KSepetanc](https://discourse.julialang.org/u/KSepetanc)\
**Replies:** 1\
**Last updated:** [December 16, 2024, 5:26pm UTC](https://discourse.julialang.org/t/how-to-speed-up-re-running-tests/123894 "2024-12-16T17:26:39Z")

</div>

Is there a way to trigger precompile for the test without running the test? Something I could put in setup.jl script so that tests are ready for quick running in test files?

---

## [Why using \`\`\] test package\`\` recompiles the package again?](https://discourse.julialang.org/t/why-using-test-package-recompiles-the-package-again/96393)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 11\
**Last updated:** [March 21, 2023, 8:30pm UTC](https://discourse.julialang.org/t/why-using-test-package-recompiles-the-package-again/96393 "2023-03-21T20:30:27Z")

</div>

I’ve had this experience many times but now just installed a package from scratch. All worked as expected (maybe except the very long time), packaged installed and and compiled. Next I run the tests and … recompiled the …

---

## [Benchmark AutoDiff on simple 1D diffusion operator](https://discourse.julialang.org/t/benchmark-autodiff-on-simple-1d-diffusion-operator/123885)

<div class="topic-metadata">

**Author:** [@yolhan\_mannes](https://discourse.julialang.org/u/yolhan_mannes)\
**Replies:** 3\
**Last updated:** [December 16, 2024, 5:24pm UTC](https://discourse.julialang.org/t/benchmark-autodiff-on-simple-1d-diffusion-operator/123885 "2024-12-16T17:24:21Z")

</div>

Just sharing a small benchmark in case someone finds it useful in the future—it’s about evaluating the Jacobian of a simple diffusion operator. uin() = 0.0 uout() = 0.0 function Diffusion(u) du = zero(u) for i i…

---

## [Speeding up Zygote autodiff for numerical loop](https://discourse.julialang.org/t/speeding-up-zygote-autodiff-for-numerical-loop/123515)

<div class="topic-metadata">

**Author:** [@dameka](https://discourse.julialang.org/u/dameka)\
**Replies:** 13\
**Last updated:** [December 16, 2024, 4:27pm UTC](https://discourse.julialang.org/t/speeding-up-zygote-autodiff-for-numerical-loop/123515 "2024-12-16T16:27:43Z")

</div>

I’m using Zygote to auto-differentiate the (small) output of a numerical loop. It is quite slow, probably due to the naive way I’ve implemented it. I’m interested in advice on (a) vectorizing the loop to get better perfo…

---

## [Why Base.summarysize show pointers twice?](https://discourse.julialang.org/t/why-base-summarysize-show-pointers-twice/123887)

<div class="topic-metadata">

**Author:** [@garazha-ilya](https://discourse.julialang.org/u/garazha-ilya)\
**Replies:** 1\
**Last updated:** [December 16, 2024, 4:23pm UTC](https://discourse.julialang.org/t/why-base-summarysize-show-pointers-twice/123887 "2024-12-16T16:23:21Z")

</div>

Suppose I have string “Moscow”: julia\> Moscow = "Moscow" "Moscow" julia\> sizeof(Moscow) 6 julia\> Base.summarysize(Moscow) 14 I suppose, that 14 = (Pointer to Array of Chars (8 bytes)) + (6 data bytes). However, when I…

---

## [Makie: adding more ticks to log axis](https://discourse.julialang.org/t/makie-adding-more-ticks-to-log-axis/123878)

<div class="topic-metadata">

**Author:** [@aris](https://discourse.julialang.org/u/aris)\
**Replies:** 9\
**Last updated:** [December 16, 2024, 3:47pm UTC](https://discourse.julialang.org/t/makie-adding-more-ticks-to-log-axis/123878 "2024-12-16T15:47:48Z")

</div>

Hello everyone, In Makie, what would be the simplest way to add more ticks to the following axis: Using xticks = collect(logrange(1e-5, 1e1, 7)) puts the ticks where I want them to be, but they’re displayed with deci…

---

## [Crossing conditions in ModelingToolkit @mtkmodel macro](https://discourse.julialang.org/t/crossing-conditions-in-modelingtoolkit-mtkmodel-macro/123780)

<div class="topic-metadata">

**Author:** [@nurban](https://discourse.julialang.org/u/nurban)\
**Replies:** 1\
**Last updated:** [December 16, 2024, 3:30pm UTC](https://discourse.julialang.org/t/crossing-conditions-in-modelingtoolkit-mtkmodel-macro/123780 "2024-12-16T15:30:12Z")

</div>

I want to add a continuous event trigger to my @mtkmodel, with a downcrossing condition. Without the crossing direction condition, I think this should look like @mtkmodel odesys begin @variables begin X(t) …

---

## [LinearSolve.jl for many values of b?](https://discourse.julialang.org/t/linearsolve-jl-for-many-values-of-b/94980)

<div class="topic-metadata">

**Author:** [@moble](https://discourse.julialang.org/u/moble)\
**Replies:** 2\
**Last updated:** [December 16, 2024, 2:20pm UTC](https://discourse.julialang.org/t/linearsolve-jl-for-many-values-of-b/94980 "2024-12-16T14:20:47Z")

</div>

I’m writing a package and I really like the idea of LinearSolve.jl, because I want my code to perform well and be flexible: work on CPU or GPU, be differentiable, not allocate, etc. But one of my most important use case…

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

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