# Latest

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

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

**Page:** 259

---

## [\[ANN\] Metaheuristics.jl](https://discourse.julialang.org/t/ann-metaheuristics-jl/68477)

<div class="topic-metadata">

**Author:** [@jmejia8](https://discourse.julialang.org/u/jmejia8)\
**Replies:** 13\
**Last updated:** [December 9, 2024, 4:48pm UTC](https://discourse.julialang.org/t/ann-metaheuristics-jl/68477 "2024-12-09T16:48:05Z")

</div>

After several years of development, I share with you Metaheuristics.jl This package implements state-of-the-art metaheuristic algorithms for single and multi-objective optimization. The aim of this package is to provide…

---

## [How to perform region decomposition on unstructured grids？](https://discourse.julialang.org/t/how-to-perform-region-decomposition-on-unstructured-grids/123621)

<div class="topic-metadata">

**Author:** [@lyubing](https://discourse.julialang.org/u/lyubing)\
**Replies:** 3\
**Last updated:** [December 9, 2024, 2:48pm UTC](https://discourse.julialang.org/t/how-to-perform-region-decomposition-on-unstructured-grids/123621 "2024-12-09T14:48:56Z")

</div>

How to achieve domain decomposition of finite element mesh in Julia by calling the METIS library? Or what recommended packages can achieve this function？

---

## [Task termination](https://discourse.julialang.org/t/task-termination/25231)

<div class="topic-metadata">

**Author:** [@tomhaber](https://discourse.julialang.org/u/tomhaber)\
**Replies:** 7\
**Last updated:** [December 9, 2024, 1:53pm UTC](https://discourse.julialang.org/t/task-termination/25231 "2024-12-09T13:53:23Z")

</div>

I’m trying to get the following to work (or something like it) function execute(f::Function) exec = Executor() t = schedule(@task try while true run!(exec) yield() …

---

## [Julia Meetup Copenhagen - 9th of January 2025](https://discourse.julialang.org/t/julia-meetup-copenhagen-9th-of-january-2025/123611)

<div class="topic-metadata">

**Author:** [@wc4wc4wc4](https://discourse.julialang.org/u/wc4wc4wc4)\
**Replies:** 0\
**Last updated:** [December 9, 2024, 11:00am UTC](https://discourse.julialang.org/t/julia-meetup-copenhagen-9th-of-january-2025/123611 "2024-12-09T11:00:03Z")

</div>

Julia Copenhagen Meetup, Winter edition! Hi everyone and merry Christmas! This a small save-the-date message about our upcoming Julia meetup Thursday the 9th of January at P1 in the Observatory in the Botanical Garden …

---

## [Chain rule not working as expected with Symbolic series](https://discourse.julialang.org/t/chain-rule-not-working-as-expected-with-symbolic-series/123598)

<div class="topic-metadata">

**Author:** [@willrae42](https://discourse.julialang.org/u/willrae42)\
**Replies:** 1\
**Last updated:** [December 9, 2024, 8:45am UTC](https://discourse.julialang.org/t/chain-rule-not-working-as-expected-with-symbolic-series/123598 "2024-12-09T08:45:32Z")

</div>

I’m playing around with using Julia for some perturbation problems and am wanting to be able to take derivatives of series expansions. However, I have been unable to get the chain rule to properly apply. I’m pretty new, …

---

## [SymbolicRegression.jl freezing my terminal when running report](https://discourse.julialang.org/t/symbolicregression-jl-freezing-my-terminal-when-running-report/119368)

<div class="topic-metadata">

**Author:** [@elcup](https://discourse.julialang.org/u/elcup)\
**Replies:** 11\
**Last updated:** [December 9, 2024, 2:19am UTC](https://discourse.julialang.org/t/symbolicregression-jl-freezing-my-terminal-when-running-report/119368 "2024-12-09T02:19:17Z")

</div>

Hey! I am starting to play with SymbolicRegression.jl and I am getting some weird behavior when running the basic example (Examples · SymbolicRegression.jl) To give some context, I am running the following code: using…

---

## [Codecov missing coverage of myfunction(::SomeType) = 1](https://discourse.julialang.org/t/codecov-missing-coverage-of-myfunction-sometype-1/122796)

<div class="topic-metadata">

**Author:** [@JeffFessler](https://discourse.julialang.org/u/JeffFessler)\
**Replies:** 5\
**Last updated:** [December 9, 2024, 1:59am UTC](https://discourse.julialang.org/t/codecov-missing-coverage-of-myfunction-sometype-1/122796 "2024-12-09T01:59:18Z")

</div>

I have some packages that previously had 100% code coverage but now the badges are showing \<100% coverage because codecov is falsely claiming that some lines that look like myfunction(::SomeType) = 1 are not being cove…

---

## [Sort tuple](https://discourse.julialang.org/t/sort-tuple/110730)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 11\
**Last updated:** [December 8, 2024, 9:56pm UTC](https://discourse.julialang.org/t/sort-tuple/110730 "2024-12-08T21:56:14Z")

</div>

Any reason this shouldn’t work? julia\> sort((1,2,3)) ERROR: MethodError: no method matching sort(::Tuple{Int64, Int64, Int64})

---

## [Best way to share a Julia project with non-programmers](https://discourse.julialang.org/t/best-way-to-share-a-julia-project-with-non-programmers/123549)

<div class="topic-metadata">

**Author:** [@TheHedgehog2000](https://discourse.julialang.org/u/TheHedgehog2000)\
**Replies:** 6\
**Last updated:** [December 8, 2024, 9:33pm UTC](https://discourse.julialang.org/t/best-way-to-share-a-julia-project-with-non-programmers/123549 "2024-12-08T21:33:12Z")

</div>

Sorry if this is redundant with previous questions. I have written a project in Julia and would like people who interact minimally with computers to be able to use it without feeling intimidated. juliac would be great fo…

---

## [Embedding julia to extend c++ app for long developing code](https://discourse.julialang.org/t/embedding-julia-to-extend-c-app-for-long-developing-code/123580)

<div class="topic-metadata">

**Author:** [@Sergey](https://discourse.julialang.org/u/Sergey)\
**Replies:** 9\
**Last updated:** [December 8, 2024, 7:09pm UTC](https://discourse.julialang.org/t/embedding-julia-to-extend-c-app-for-long-developing-code/123580 "2024-12-08T19:09:50Z")

</div>

Hi everyone! I face with interesting problem. I need a language to extend existence c++ software. Support user functions, add optimization over calculations and possible neural network experiments with solution. The …

---

## [Julia Language Server (VS Code Julia Extension) "missing reference"](https://discourse.julialang.org/t/julia-language-server-vs-code-julia-extension-missing-reference/123545)

<div class="topic-metadata">

**Author:** [@world-peace](https://discourse.julialang.org/u/world-peace)\
**Replies:** 9\
**Last updated:** [December 8, 2024, 3:38pm UTC](https://discourse.julialang.org/t/julia-language-server-vs-code-julia-extension-missing-reference/123545 "2024-12-08T15:38:12Z")

</div>

What is required for the Julia Language Server to recognize packages which I am writing locally? Can someone show a short example of a repo structure which the Julia Language Server will recognize correctly? Everything…

---

## [Error setting mixed type Cmd environment](https://discourse.julialang.org/t/error-setting-mixed-type-cmd-environment/123588)

<div class="topic-metadata">

**Author:** [@KSepetanc](https://discourse.julialang.org/u/KSepetanc)\
**Replies:** 3\
**Last updated:** [December 8, 2024, 3:35pm UTC](https://discourse.julialang.org/t/error-setting-mixed-type-cmd-environment/123588 "2024-12-08T15:35:41Z")

</div>

The following command results in error because it has mixed strings and integers. Cmd(ampl PF.run,env=(“param1”=\>1,“param2”=\>“abc”)) ERROR: MethodError: no method matching byteenv(::Tuple{Pair{String, Int64}, Pair{St…

---

## [Terminal on Windows: git bash](https://discourse.julialang.org/t/terminal-on-windows-git-bash/6005)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 2\
**Last updated:** [December 8, 2024, 3:11pm UTC](https://discourse.julialang.org/t/terminal-on-windows-git-bash/6005 "2024-12-08T15:11:05Z")

</div>

Would it be possible to bundle the Julia dist for Windows with the git bash terminal? It is much more useful than the current Windows terminal (shell mode works!). (See Usable shell on Windows (yay!))

---

## [Issues using a vector connector in ModelingToolkit for acausal modeling](https://discourse.julialang.org/t/issues-using-a-vector-connector-in-modelingtoolkit-for-acausal-modeling/123573)

<div class="topic-metadata">

**Author:** [@oswaldo](https://discourse.julialang.org/u/oswaldo)\
**Replies:** 1\
**Last updated:** [December 8, 2024, 2:32pm UTC](https://discourse.julialang.org/t/issues-using-a-vector-connector-in-modelingtoolkit-for-acausal-modeling/123573 "2024-12-08T14:32:32Z")

</div>

Hi, I’m modeling a three-reactor system with two chemical species. I’d like to define the concentration of species as a vector so that I can add more species later. Here is the code: using ModelingToolkit, DifferentialE…

---

## [Print vs write](https://discourse.julialang.org/t/print-vs-write/123560)

<div class="topic-metadata">

**Author:** [@hack3rcon](https://discourse.julialang.org/u/hack3rcon)\
**Replies:** 5\
**Last updated:** [December 8, 2024, 9:38am UTC](https://discourse.julialang.org/t/print-vs-write/123560 "2024-12-08T09:38:11Z")

</div>

Hello, I have a file like below: Hello Hello I want to write a program that reads this file and writes its contents along with line numbers to another file. I wrote the following program: function readwrite() inn…

---

## [Why the parenthesis around \`(@main)\`?](https://discourse.julialang.org/t/why-the-parenthesis-around-main/123017)

<div class="topic-metadata">

**Author:** [@world-peace](https://discourse.julialang.org/u/world-peace)\
**Replies:** 17\
**Last updated:** [December 8, 2024, 1:43am UTC](https://discourse.julialang.org/t/why-the-parenthesis-around-main/123017 "2024-12-08T01:43:28Z")

</div>

Since Julia’s most recent release (1.11) it seems the de-facto way to write a main (entrypoint function) is function (@main)(args) println("hello world") end Why the parenthesis around @main? Not that it matters, …

---

## [\[ANN\] TerminalGat.jl](https://discourse.julialang.org/t/ann-terminalgat-jl/123578)

<div class="topic-metadata">

**Author:** [@terasakisatoshi](https://discourse.julialang.org/u/terasakisatoshi)\
**Replies:** 1\
**Last updated:** [December 8, 2024, 1:26am UTC](https://discourse.julialang.org/t/ann-terminalgat-jl/123578 "2024-12-08T01:26:50Z")

</div>

TerminalGat.jl I’m happy to announce the release of TerminalGat.jl https://github.com/AtelierArith/TerminalGat.jl What is gat? The gat is a CLI tool written in Go(:cat\_face: cat alternative written in Go.) and created …

---

## [Listing all functions in /src that are directly called by a given function, and vice versa](https://discourse.julialang.org/t/listing-all-functions-in-src-that-are-directly-called-by-a-given-function-and-vice-versa/123521)

<div class="topic-metadata">

**Author:** [@Tetrakai](https://discourse.julialang.org/u/Tetrakai)\
**Replies:** 5\
**Last updated:** [December 7, 2024, 11:36pm UTC](https://discourse.julialang.org/t/listing-all-functions-in-src-that-are-directly-called-by-a-given-function-and-vice-versa/123521 "2024-12-07T23:36:00Z")

</div>

I manually generated the See also section in the docstring below: """ update\_lgTble!(lg\_table, comms, idx1, idx2) Updates the lg\_table vector based on game results stored in Comms. # Arguments - \`lg\_table :: MVect…

---

## [LSP: documentation not shown for used packages](https://discourse.julialang.org/t/lsp-documentation-not-shown-for-used-packages/109202)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 7\
**Last updated:** [December 7, 2024, 10:57pm UTC](https://discourse.julialang.org/t/lsp-documentation-not-shown-for-used-packages/109202 "2024-12-07T22:57:05Z")

</div>

Sublime Text (4) + LSP-julia. Documentation is available for functions and types from standard packages (or base), but not from other used packages. Case at hand: GitHub - PetrKryslUCSD/VibrationGEPHelpers.jl: Generaliz…

---

## [Can the Julia shell be changed to \`/bin/bash\`?](https://discourse.julialang.org/t/can-the-julia-shell-be-changed-to-bin-bash/122500)

<div class="topic-metadata">

**Author:** [@world-peace](https://discourse.julialang.org/u/world-peace)\
**Replies:** 3\
**Last updated:** [December 7, 2024, 10:02pm UTC](https://discourse.julialang.org/t/can-the-julia-shell-be-changed-to-bin-bash/122500 "2024-12-07T22:02:32Z")

</div>

I’ve just learned that the Julia shell is not /bin/sh as I had assumed. It is it’s own thing, apparently. Can the default shell be changed so that a /bin/bash shell is launched when the Shell Mode key ; is pressed? I’m…

---

## [EmacsConf 2024 Talk on Julia and Emacs](https://discourse.julialang.org/t/emacsconf-2024-talk-on-julia-and-emacs/123572)

<div class="topic-metadata">

**Author:** [@g-gundam](https://discourse.julialang.org/u/g-gundam)\
**Replies:** 1\
**Last updated:** [December 7, 2024, 9:55pm UTC](https://discourse.julialang.org/t/emacsconf-2024-talk-on-julia-and-emacs/123572 "2024-12-07T21:55:26Z")

</div>

There’s going to be a talk on the shared philosophies between Emacs and Julia in a few hours. It’d be nice to show him a little support. https://emacsconf.org/2024/talks/julia/ While seemingly disparate, the Julia p…

---

## [Julia 1.11.1 gives different results from 1.10.5](https://discourse.julialang.org/t/julia-1-11-1-gives-different-results-from-1-10-5/123433)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 56\
**Last updated:** [December 7, 2024, 7:17pm UTC](https://discourse.julialang.org/t/julia-1-11-1-gives-different-results-from-1-10-5/123433 "2024-12-07T19:17:36Z")

</div>

I fear I have to start debugging. But: perhaps someone has had this experience already and there is a fix?

---

## [LegendreBasis from DiffEqFlux is not present in current version?](https://discourse.julialang.org/t/legendrebasis-from-diffeqflux-is-not-present-in-current-version/123568)

<div class="topic-metadata">

**Author:** [@Luis\_Reig\_Quilis](https://discourse.julialang.org/u/Luis_Reig_Quilis)\
**Replies:** 3\
**Last updated:** [December 7, 2024, 5:51pm UTC](https://discourse.julialang.org/t/legendrebasis-from-diffeqflux-is-not-present-in-current-version/123568 "2024-12-07T17:51:41Z")

</div>

Good day, everyone. I am trying to follow this tutorial from DiffEqFlux. During the second step of the tutorial, we have to create a TensorLayer to perform 10th order expansions in a Legendre Basis using the following …

---

## [Cheesing IMO 2006/3 problem with JuMP](https://discourse.julialang.org/t/cheesing-imo-2006-3-problem-with-jump/123566)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 0\
**Last updated:** [December 7, 2024, 1:14pm UTC](https://discourse.julialang.org/t/cheesing-imo-2006-3-problem-with-jump/123566 "2024-12-07T13:14:48Z")

</div>

Here is the IMO 2006. I will focus on problem 3 Normally, you are expected to mathematically solve this problem. However, this problem is instructive in illustrating how an ounce of computation can save a pound of mat…

---

## [Mutable structs with all constant fields outperform immutable structs for equality comparison](https://discourse.julialang.org/t/mutable-structs-with-all-constant-fields-outperform-immutable-structs-for-equality-comparison/123430)

<div class="topic-metadata">

**Author:** [@frankwswang](https://discourse.julialang.org/u/frankwswang)\
**Replies:** 1\
**Last updated:** [December 4, 2024, 12:13am UTC](https://discourse.julialang.org/t/mutable-structs-with-all-constant-fields-outperform-immutable-structs-for-equality-comparison/123430 "2024-12-04T00:13:04Z")

</div>

MWE: julia\> x1 = \[rand(Int) for \_=1:1000\]; julia\> x2 = \[rand(Int) for \_=1:1000\]; julia\> v1 = \[rand(3,3) for \_=1:1000\]; julia\> v2 = \[rand(3,3) for \_=1:1000\]; julia\> struct myT a::Int b::Any end …

---

## [How to obtain val.argument of KeySet of OrderCollection?](https://discourse.julialang.org/t/how-to-obtain-val-argument-of-keyset-of-ordercollection/123547)

<div class="topic-metadata">

**Author:** [@Domenico\_Lahaye](https://discourse.julialang.org/u/Domenico_Lahaye)\
**Replies:** 4\
**Last updated:** [December 7, 2024, 7:03am UTC](https://discourse.julialang.org/t/how-to-obtain-val-argument-of-keyset-of-ordercollection/123547 "2024-12-07T07:03:17Z")

</div>

Assume given flatten(a) = collect(Iterators.flatten(a)) Assume furthermore given julia\> diff\_eom.equations OrderedCollections.OrderedDict{Symbolics.Num, Symbolics.Equation} with 1 entry: x(t) =\> Differential(t)(Dif…

---

## [Comparing characters](https://discourse.julialang.org/t/comparing-characters/123442)

<div class="topic-metadata">

**Author:** [@hack3rcon](https://discourse.julialang.org/u/hack3rcon)\
**Replies:** 2\
**Last updated:** [December 7, 2024, 6:58am UTC](https://discourse.julialang.org/t/comparing-characters/123442 "2024-12-07T06:58:49Z")

</div>

Hello, I have a file like the following: Where The Mind ~ Is Without Fear I wrote the following program to compare characters and find the largest character: function compare() inn = open("input.txt","r") ch …

---

## [How to plot a "global" legend when using subplots?](https://discourse.julialang.org/t/how-to-plot-a-global-legend-when-using-subplots/123531)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 3\
**Last updated:** [December 7, 2024, 6:51am UTC](https://discourse.julialang.org/t/how-to-plot-a-global-legend-when-using-subplots/123531 "2024-12-07T06:51:13Z")

</div>

Take this example: using Plots pla = plot(x-\>x^2, title="Plot A", legend=nothing);plot!(x-\>x^3) plb = plot(x-\>x^(1/2), title="Plot B", legend=nothing);plot!(x-\>x^(1/3)) plot(pla,plb,plb,pla,layout=(2,2),plot\_title="Two …

---

## [Suggestion for package docstrings](https://discourse.julialang.org/t/suggestion-for-package-docstrings/123548)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 3\
**Last updated:** [December 7, 2024, 6:29am UTC](https://discourse.julialang.org/t/suggestion-for-package-docstrings/123548 "2024-12-07T06:29:00Z")

</div>

""" Package MyPackage v$(pkgversion(MyPackage)) MyPackage does this and that, and this text can be the the same as the "About" on it's github page. Docs under https://mypackageauthor.github.io/MyPackage.jl/ $(isnot…

---

## [How to convert Milliseconds to Int64?](https://discourse.julialang.org/t/how-to-convert-milliseconds-to-int64/84218)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 7\
**Last updated:** [December 7, 2024, 6:02am UTC](https://discourse.julialang.org/t/how-to-convert-milliseconds-to-int64/84218 "2024-12-07T06:02:52Z")

</div>

The following is not working: julia\> diff=Dates.Millisecond(55) 55 milliseconds julia\> convert(Int64, diff) ERROR: MethodError: Cannot \`convert\` an object of type Millisecond to an object of type Int64 Closest candidat…

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

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