# Latest

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

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

**Page:** 560

---

## [Constructing Markov Transition Frequency Matrix with DataFrames](https://discourse.julialang.org/t/constructing-markov-transition-frequency-matrix-with-dataframes/54890)

<div class="topic-metadata">

**Author:** [@samerb](https://discourse.julialang.org/u/samerb)\
**Replies:** 7\
**Last updated:** [November 7, 2023, 9:47pm UTC](https://discourse.julialang.org/t/constructing-markov-transition-frequency-matrix-with-dataframes/54890 "2023-11-07T21:47:43Z")

</div>

I am cross-posting this question from StackOverflow since that seems a bit slow. I want to use Julia DataFrames to construct a 3x3 Markov transition matrix i.e. a frequency matrix that tells me the likelihood of transit…

---

## [How to efficiently find columns of the matrix which are the same?](https://discourse.julialang.org/t/how-to-efficiently-find-columns-of-the-matrix-which-are-the-same/105873)

<div class="topic-metadata">

**Author:** [@dgsob](https://discourse.julialang.org/u/dgsob)\
**Replies:** 10\
**Last updated:** [November 7, 2023, 9:39pm UTC](https://discourse.julialang.org/t/how-to-efficiently-find-columns-of-the-matrix-which-are-the-same/105873 "2023-11-07T21:39:24Z")

</div>

Hi all, I was trying to optimize my naive code I wrote for an algorithm I’m working on, and I’ve found this part takes up the most runtime: num\_of\_the\_same\_columns = 0 num\_of\_columns = size(matrix, 2) for column\_i…

---

## [Shortcut to type |\>?](https://discourse.julialang.org/t/shortcut-to-type/47012)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 11\
**Last updated:** [November 7, 2023, 8:53pm UTC](https://discourse.julialang.org/t/shortcut-to-type/47012 "2023-11-07T20:53:01Z")

</div>

The piping operator |\> is very useful, especially when working in the REPL. However I do not find it convenient to type, it requires some finger gymnastic and it’s not very fast. Maybe it is the case because I have a fre…

---

## [Convert a non-allocating distance transform algorithm to GPU using KernelAbstractions.jl](https://discourse.julialang.org/t/convert-a-non-allocating-distance-transform-algorithm-to-gpu-using-kernelabstractions-jl/105726)

<div class="topic-metadata">

**Author:** [@Dale\_James\_Black](https://discourse.julialang.org/u/Dale_James_Black)\
**Replies:** 7\
**Last updated:** [November 7, 2023, 7:21pm UTC](https://discourse.julialang.org/t/convert-a-non-allocating-distance-transform-algorithm-to-gpu-using-kernelabstractions-jl/105726 "2023-11-07T19:21:33Z")

</div>

Hello. I have been hacking away at this for a few weeks now and still can’t figure out what is going on. I have a non-allocating 1D distance transform (Felzenswalb algorithm) that is easy to parallelize, as you can see …

---

## [Function inside struct allocates when referenced](https://discourse.julialang.org/t/function-inside-struct-allocates-when-referenced/105785)

<div class="topic-metadata">

**Author:** [@izod2](https://discourse.julialang.org/u/izod2)\
**Replies:** 25\
**Last updated:** [November 7, 2023, 4:41pm UTC](https://discourse.julialang.org/t/function-inside-struct-allocates-when-referenced/105785 "2023-11-07T16:41:16Z")

</div>

In the example below, if box1 is passed as an argument to calcA, then calling its function box1.func leads to allocation. However, if box1.func is passed as a direct argument to calcB, then there is no allocation. Can …

---

## [GC occurs at the worst time in tight loop (Garbage Collection)](https://discourse.julialang.org/t/gc-occurs-at-the-worst-time-in-tight-loop-garbage-collection/104934)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 93\
**Last updated:** [November 7, 2023, 4:36pm UTC](https://discourse.julialang.org/t/gc-occurs-at-the-worst-time-in-tight-loop-garbage-collection/104934 "2023-11-07T16:36:34Z")

</div>

I have julia code which I’ve compiled into a C-library. We intend to run this on a real-time system to test some hardware. When I run a test on the function call in julia using the BenchmarkTools. The @benchmarks look…

---

## [Error showing value of type TikzPicture: The latex command \`lualatex' failed](https://discourse.julialang.org/t/error-showing-value-of-type-tikzpicture-the-latex-command-lualatex-failed/105894)

<div class="topic-metadata">

**Author:** [@gonshem](https://discourse.julialang.org/u/gonshem)\
**Replies:** 1\
**Last updated:** [November 7, 2023, 4:19pm UTC](https://discourse.julialang.org/t/error-showing-value-of-type-tikzpicture-the-latex-command-lualatex-failed/105894 "2023-11-07T16:19:23Z")

</div>

Hello everyone, I am encountering an issue while using the PGFPlotsX package in Julia to generate a TikzPicture. I am getting an error message that says “The LaTeX command lualatex jl\_u5wvs7aPQN.tex failed.” The code: …

---

## [We Do Need Exportable New Structs and Functions in Extension](https://discourse.julialang.org/t/we-do-need-exportable-new-structs-and-functions-in-extension/105810)

<div class="topic-metadata">

**Author:** [@Sole](https://discourse.julialang.org/u/Sole)\
**Replies:** 9\
**Last updated:** [November 6, 2023, 10:31pm UTC](https://discourse.julialang.org/t/we-do-need-exportable-new-structs-and-functions-in-extension/105810 "2023-11-06T22:31:02Z")

</div>

I’m not the last man struggling with transfering from Requires pkg to officially supported extension feature for Julia1.9+. With Requires pkg we don’t care about where a function and a struct are defined because we can …

---

## [Compat bounds for stdlib and empty intersection issue on CI](https://discourse.julialang.org/t/compat-bounds-for-stdlib-and-empty-intersection-issue-on-ci/105898)

<div class="topic-metadata">

**Author:** [@tlienart](https://discourse.julialang.org/u/tlienart)\
**Replies:** 3\
**Last updated:** [November 7, 2023, 3:17pm UTC](https://discourse.julialang.org/t/compat-bounds-for-stdlib-and-empty-intersection-issue-on-ci/105898 "2023-11-07T15:17:14Z")

</div>

I was trying to do a patch release for Franklin but the registry stopped me from doing this indicating that a bunch of stdlib libraries (Dates, Logging, Random, …) did not have compat bounds and that they should. So I ad…

---

## [Multiple solve, same script](https://discourse.julialang.org/t/multiple-solve-same-script/105874)

<div class="topic-metadata">

**Author:** [@martina.gherardi](https://discourse.julialang.org/u/martina.gherardi)\
**Replies:** 10\
**Last updated:** [November 7, 2023, 1:56pm UTC](https://discourse.julialang.org/t/multiple-solve-same-script/105874 "2023-11-07T13:56:47Z")

</div>

Hi, I would like to ask a question about the JuMP’s internal procedure for solving similar problems in the same script. I follow these steps: Write a model called MyMod Call optimize!(MyMod) to solve it Add some cons…

---

## [Addressing skill intersection issue and realizing Julia full potential](https://discourse.julialang.org/t/addressing-skill-intersection-issue-and-realizing-julia-full-potential/105739)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 14\
**Last updated:** [November 7, 2023, 12:59pm UTC](https://discourse.julialang.org/t/addressing-skill-intersection-issue-and-realizing-julia-full-potential/105739 "2023-11-07T12:59:36Z")

</div>

Julia has a big issue. Julia is described as a language that is fast, easy, and can do this and that. This comes with a big asterisk. Let’s not dodge criticisms and face it head-on. Julia is easy, except when I decided …

---

## [Finding the nearest way (line string) to a given point](https://discourse.julialang.org/t/finding-the-nearest-way-line-string-to-a-given-point/105882)

<div class="topic-metadata">

**Author:** [@Chamika\_Kasun](https://discourse.julialang.org/u/Chamika_Kasun)\
**Replies:** 6\
**Last updated:** [November 7, 2023, 12:57pm UTC](https://discourse.julialang.org/t/finding-the-nearest-way-line-string-to-a-given-point/105882 "2023-11-07T12:57:51Z")

</div>

I have got a few ways (i.e line strings) and a point, using the point, I need to find the closest way to a given point. How do I do that. Ignore the grey box and the small red circle in the image. ways\_map = Dict( "…

---

## [How to display an image in full screen on a second monitor?](https://discourse.julialang.org/t/how-to-display-an-image-in-full-screen-on-a-second-monitor/100796)

<div class="topic-metadata">

**Author:** [@marcsgil](https://discourse.julialang.org/u/marcsgil)\
**Replies:** 14\
**Last updated:** [November 7, 2023, 12:41pm UTC](https://discourse.julialang.org/t/how-to-display-an-image-in-full-screen-on-a-second-monitor/100796 "2023-11-07T12:41:27Z")

</div>

Hello! I’m currently working on developing a program to control a Spatial Light Modulator (SLM), which is a lab equipment used in the field of Structured Light. Essentially, an SLM allows for the projection of interesti…

---

## [How to calculate the nearest point on a line to a given point](https://discourse.julialang.org/t/how-to-calculate-the-nearest-point-on-a-line-to-a-given-point/105743)

<div class="topic-metadata">

**Author:** [@Chamika\_Kasun](https://discourse.julialang.org/u/Chamika_Kasun)\
**Replies:** 16\
**Last updated:** [November 7, 2023, 11:45am UTC](https://discourse.julialang.org/t/how-to-calculate-the-nearest-point-on-a-line-to-a-given-point/105743 "2023-11-07T11:45:59Z")

</div>

I’ve a line string that has long/lat coordinates as follows: \[ \[ 146.54294815408372, -36.04985956921628 \], \[ 146.5457684472937, -36.049249881…

---

## [SIMD struggles, seeking solutions (with KangarooTwelve.jl)](https://discourse.julialang.org/t/simd-struggles-seeking-solutions-with-kangarootwelve-jl/105800)

<div class="topic-metadata">

**Author:** [@tecosaur](https://discourse.julialang.org/u/tecosaur)\
**Replies:** 23\
**Last updated:** [November 7, 2023, 11:38am UTC](https://discourse.julialang.org/t/simd-struggles-seeking-solutions-with-kangarootwelve-jl/105800 "2023-11-07T11:38:11Z")

</div>

A bit ago I mentioned a new hashing library I have been working on: After a huge amount of effort, I’ve just managed to make the “simple” single-threaded version (k12\_singlethreaded) zero-alloc and only off the C perf…

---

## [Modellingtoolkit and PackageCompiler](https://discourse.julialang.org/t/modellingtoolkit-and-packagecompiler/105877)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 3\
**Last updated:** [November 7, 2023, 10:09am UTC](https://discourse.julialang.org/t/modellingtoolkit-and-packagecompiler/105877 "2023-11-07T10:09:35Z")

</div>

I have the impression that PackageCompiler does not reduce the compilation time for ModelingToolkit models much. I have a function that creates my model and call it in test\_for\_precompile.jl script of PackageCompiler. If…

---

## [Solving type instabilities in simple classification model](https://discourse.julialang.org/t/solving-type-instabilities-in-simple-classification-model/105572)

<div class="topic-metadata">

**Author:** [@looking4stability](https://discourse.julialang.org/u/looking4stability)\
**Replies:** 7\
**Last updated:** [November 7, 2023, 9:21am UTC](https://discourse.julialang.org/t/solving-type-instabilities-in-simple-classification-model/105572 "2023-11-07T09:21:03Z")

</div>

Hi, I’m pretty new to Julia, so please be nice:) I wrote a simple script to identify mnist digits. So far it runs okay, and I like the language a lot. But what I can’t get my head wrapped around are the type instabil…

---

## [Julia 1.9.4 testing period](https://discourse.julialang.org/t/julia-1-9-4-testing-period/105891)

<div class="topic-metadata">

**Author:** [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Replies:** 0\
**Last updated:** [November 7, 2023, 9:15am UTC](https://discourse.julialang.org/t/julia-1-9-4-testing-period/105891 "2023-11-07T09:15:35Z")

</div>

The release-1.9 branch on the Julia repository now contains the set of commits we’re planning to tag as v1.9.4. The list of commits included since v1.9.3 is available here. As a patch release, it should be non-breaking f…

---

## [Novel method for feature importance using ReverseMode + ForwardMode autodiff?](https://discourse.julialang.org/t/novel-method-for-feature-importance-using-reversemode-forwardmode-autodiff/105837)

<div class="topic-metadata">

**Author:** [@nielsls](https://discourse.julialang.org/u/nielsls)\
**Replies:** 4\
**Last updated:** [November 7, 2023, 8:04am UTC](https://discourse.julialang.org/t/novel-method-for-feature-importance-using-reversemode-forwardmode-autodiff/105837 "2023-11-07T08:04:33Z")

</div>

Using a combination of reverse- and forward-mode autodiff I have come across a highly efficient method for attributing the change in a differentiable scalar-valued function f: R^N-\>R^1 (e.g. a neural network) to the inpu…

---

## [Documentation of my package EasyABM.jl not updated on Juliahub](https://discourse.julialang.org/t/documentation-of-my-package-easyabm-jl-not-updated-on-juliahub/105889)

<div class="topic-metadata">

**Author:** [@RenuSolanki](https://discourse.julialang.org/u/RenuSolanki)\
**Replies:** 1\
**Last updated:** [November 7, 2023, 8:00am UTC](https://discourse.julialang.org/t/documentation-of-my-package-easyabm-jl-not-updated-on-juliahub/105889 "2023-11-07T08:00:32Z")

</div>

The documentation for my package, EasyABM.jl, is encountering issues with updates on JuliaHub. While the documentation deploys successfully on GitHub Pages, documentation of any updates beyond version 1.2.2 result in a “…

---

## [How to make Julia game mods composable?](https://discourse.julialang.org/t/how-to-make-julia-game-mods-composable/105888)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 0\
**Last updated:** [November 7, 2023, 5:44am UTC](https://discourse.julialang.org/t/how-to-make-julia-game-mods-composable/105888 "2023-11-07T05:44:55Z")

</div>

Preamble: Julia has many tools for game development from geometric algebra to physics simulation and AI and so on. It may also solve the two-culture problem of game designers and game developers. However, getting to that…

---

## [StripedFly in Github](https://discourse.julialang.org/t/stripedfly-in-github/105885)

<div class="topic-metadata">

**Author:** [@Jake](https://discourse.julialang.org/u/Jake)\
**Replies:** 1\
**Last updated:** [November 7, 2023, 4:14am UTC](https://discourse.julialang.org/t/stripedfly-in-github/105885 "2023-11-07T04:14:06Z")

</div>

I use a router with ADAMnetworks loaded on it for extra security. I recently found that github no longer was accessible and this was caused by the router. When I contacted ADAMnetworks, they refered to an article about…

---

## [Molly.jl: AD with Enyzme returns 0 gradient](https://discourse.julialang.org/t/molly-jl-ad-with-enyzme-returns-0-gradient/105835)

<div class="topic-metadata">

**Author:** [@dan\_k](https://discourse.julialang.org/u/dan_k)\
**Replies:** 4\
**Last updated:** [November 7, 2023, 3:48am UTC](https://discourse.julialang.org/t/molly-jl-ad-with-enyzme-returns-0-gradient/105835 "2023-11-07T03:48:34Z")

</div>

I am trying to use Enzyme.jl with Molly.jl to differentiate a MD Simulation with respect to some parameters. Unfortunately my program returns only gradients of magnitude 0. ( This has also been posted to Molly.jl: AD wi…

---

## [Compat bounds for stdlibs that are test dependencies?](https://discourse.julialang.org/t/compat-bounds-for-stdlibs-that-are-test-dependencies/105852)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 4\
**Last updated:** [November 6, 2023, 11:40pm UTC](https://discourse.julialang.org/t/compat-bounds-for-stdlibs-that-are-test-dependencies/105852 "2023-11-06T23:40:04Z")

</div>

Currently, one needs to add compat bounds for stdlibs that are direct dependencies. Should one also add compat bounds for stdlibs that are only test dependencies, to avoid fetching breaking versions in the CI runs?

---

## [How does the PkgEval badge work on JuliaHub?](https://discourse.julialang.org/t/how-does-the-pkgeval-badge-work-on-juliahub/105662)

<div class="topic-metadata">

**Author:** [@goerz](https://discourse.julialang.org/u/goerz)\
**Replies:** 11\
**Last updated:** [November 6, 2023, 9:35pm UTC](https://discourse.julialang.org/t/how-does-the-pkgeval-badge-work-on-juliahub/105662 "2023-11-06T21:35:42Z")

</div>

Could someone clarify the details of the “PkgEval” badge on JuliaHub? When does this badge get updated? It does not seem to be updated every time I push to the master branch of my package. Is it on some timed interval,…

---

## [Cannot build packages with Julia 1.10.0-rc1 without disabling startup.jl](https://discourse.julialang.org/t/cannot-build-packages-with-julia-1-10-0-rc1-without-disabling-startup-jl/105878)

<div class="topic-metadata">

**Author:** [@matthias314](https://discourse.julialang.org/u/matthias314)\
**Replies:** 0\
**Last updated:** [November 6, 2023, 9:25pm UTC](https://discourse.julialang.org/t/cannot-build-packages-with-julia-1-10-0-rc1-without-disabling-startup-jl/105878 "2023-11-06T21:25:55Z")

</div>

The following came up in the context of IJulia; @stevengj suggested to post it here. Building packages with Julia 1.10.0-rc1 fails on my machine unless I start Julia with --startup-file=no. My startup.jl contains the li…

---

## [Piecewise function as a constraint on Julia JuMP](https://discourse.julialang.org/t/piecewise-function-as-a-constraint-on-julia-jump/105854)

<div class="topic-metadata">

**Author:** [@Jesper](https://discourse.julialang.org/u/Jesper)\
**Replies:** 1\
**Last updated:** [November 6, 2023, 8:56pm UTC](https://discourse.julialang.org/t/piecewise-function-as-a-constraint-on-julia-jump/105854 "2023-11-06T20:56:39Z")

</div>

I have an optimization model to which I need to add the following piecewise function as a constraint: C\_{i,k} = { PR\_{i} \* HSE\_{k} i∈Ω, k = 1,…,M , 1 i∈Ω, k = 1,…,M (otherwise) I read PR and HSE from excel cells ¿Is …

---

## [The value of \`one\` when using pi and E](https://discourse.julialang.org/t/the-value-of-one-when-using-pi-and-e/105875)

<div class="topic-metadata">

**Author:** [@scottrsm](https://discourse.julialang.org/u/scottrsm)\
**Replies:** 4\
**Last updated:** [November 6, 2023, 8:33pm UTC](https://discourse.julialang.org/t/the-value-of-one-when-using-pi-and-e/105875 "2023-11-06T20:33:44Z")

</div>

When using \\pi or \\euler with the function one the value is the boolean value: true rather than 1.0. For other irrational values like sqrt(2) the value is 1.0 as it should be. Why is this?

---

## [Website generated by Franklin (and hosted on GitHub) is not rendering properly](https://discourse.julialang.org/t/website-generated-by-franklin-and-hosted-on-github-is-not-rendering-properly/105827)

<div class="topic-metadata">

**Author:** [@eduardo-zambrano](https://discourse.julialang.org/u/eduardo-zambrano)\
**Replies:** 10\
**Last updated:** [November 6, 2023, 7:49pm UTC](https://discourse.julialang.org/t/website-generated-by-franklin-and-hosted-on-github-is-not-rendering-properly/105827 "2023-11-06T19:49:39Z")

</div>

Hi everyone, I have a website made with Franklin that looks good locally. Unfortunately, the one that is deployed through gh-pages on GitHub is missing most of the formatting, plus the links to the other parts of the we…

---

## [\[suggestions\] A Way to find fixed points of coupledODE with a parameter that's sqrt function](https://discourse.julialang.org/t/suggestions-a-way-to-find-fixed-points-of-coupledode-with-a-parameter-thats-sqrt-function/105858)

<div class="topic-metadata">

**Author:** [@hisacro](https://discourse.julialang.org/u/hisacro)\
**Replies:** 6\
**Last updated:** [November 6, 2023, 7:16pm UTC](https://discourse.julialang.org/t/suggestions-a-way-to-find-fixed-points-of-coupledode-with-a-parameter-thats-sqrt-function/105858 "2023-11-06T19:16:28Z")

</div>

Hello I’m trying to find fixed points of 2 coupled oscillator and one of the parameter is defined as sqrt (function of phase space variables) here’s the exact system, using DynamicalSystems, Plots, ChaosTools function…

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

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