# Latest

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

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

**Page:** 509

---

## [Avoiding certain abstract types in the fields of struct](https://discourse.julialang.org/t/avoiding-certain-abstract-types-in-the-fields-of-struct/108858)

<div class="topic-metadata">

**Author:** [@Maybe](https://discourse.julialang.org/u/Maybe)\
**Replies:** 4\
**Last updated:** [January 16, 2024, 3:58pm UTC](https://discourse.julialang.org/t/avoiding-certain-abstract-types-in-the-fields-of-struct/108858 "2024-01-16T15:58:38Z")

</div>

I am trying to define a struct type for an algebraic functional form that has two “irregular” fields: struct my\_struct vars::NTuple{N, Int} where N func::Union{Function, Nothing} ... end The vars field i…

---

## [Estimating time periods of oscillators](https://discourse.julialang.org/t/estimating-time-periods-of-oscillators/108791)

<div class="topic-metadata">

**Author:** [@Sh\_166](https://discourse.julialang.org/u/Sh_166)\
**Replies:** 13\
**Last updated:** [January 16, 2024, 2:57pm UTC](https://discourse.julialang.org/t/estimating-time-periods-of-oscillators/108791 "2024-01-16T14:57:09Z")

</div>

As the title says, I want to estimate the time periods of a certain kind of oscillation that comes out of an ODE solution: This behaviour has a large period among other smaller ones (in this image, the time period of…

---

## [Large allocations using @Threads.threads in a loop leads to slow down](https://discourse.julialang.org/t/large-allocations-using-threads-threads-in-a-loop-leads-to-slow-down/102919)

<div class="topic-metadata">

**Author:** [@ahmed](https://discourse.julialang.org/u/ahmed)\
**Replies:** 17\
**Last updated:** [August 19, 2023, 7:52am UTC](https://discourse.julialang.org/t/large-allocations-using-threads-threads-in-a-loop-leads-to-slow-down/102919 "2023-08-19T07:52:07Z")

</div>

I have the following problem that I don’t know how to solve while using multithreading to create a matrix. I have a function that returns the matrix element after operating over arrays that are large in size. I’m using @…

---

## [Syntax: Escape hatch for unicode haters](https://discourse.julialang.org/t/syntax-escape-hatch-for-unicode-haters/108363)

<div class="topic-metadata">

**Author:** [@foobar\_lv2](https://discourse.julialang.org/u/foobar_lv2)\
**Replies:** 124\
**Last updated:** [January 16, 2024, 1:58pm UTC](https://discourse.julialang.org/t/syntax-escape-hatch-for-unicode-haters/108363 "2024-01-16T13:58:19Z")

</div>

Some people have a perennial problem with unicode in source files, and would prefer to simply never deal with that. We have two interesting precedents inside the julia language to deal with that: String literals permi…

---

## [How to tell if a Pluto notebook is being run in Pluto or from REPL?](https://discourse.julialang.org/t/how-to-tell-if-a-pluto-notebook-is-being-run-in-pluto-or-from-repl/84282)

<div class="topic-metadata">

**Author:** [@Mark\_Nahabedian](https://discourse.julialang.org/u/Mark_Nahabedian)\
**Replies:** 3\
**Last updated:** [January 16, 2024, 1:49pm UTC](https://discourse.julialang.org/t/how-to-tell-if-a-pluto-notebook-is-being-run-in-pluto-or-from-repl/84282 "2024-01-16T13:49:34Z")

</div>

I have a Pluto notebook that uses the Pluto package manager. I can run that notebook within Pluto. I’d like to also be able to run it from the Julia REPL. When run from the REPL, I’d like some of the output to be writ…

---

## [One batch containing many SQL commands using ODBC.jl does not work with SQL Server](https://discourse.julialang.org/t/one-batch-containing-many-sql-commands-using-odbc-jl-does-not-work-with-sql-server/108856)

<div class="topic-metadata">

**Author:** [@Miroslav-Stimac](https://discourse.julialang.org/u/Miroslav-Stimac)\
**Replies:** 5\
**Last updated:** [January 16, 2024, 1:16pm UTC](https://discourse.julialang.org/t/one-batch-containing-many-sql-commands-using-odbc-jl-does-not-work-with-sql-server/108856 "2024-01-16T13:16:52Z")

</div>

Hello, I am using ODBC.jl to create a connection to a Microsoft SQL Server Database. conn = ODBC.Connection(Driver=ODBC Driver 17 for SQL Server;SERVER=MyServer;DATABASE=MyDatabase;Trusted\_Connection=Yes") Then I am e…

---

## [Suspicious file in artifacts folder](https://discourse.julialang.org/t/suspicious-file-in-artifacts-folder/108860)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 1\
**Last updated:** [January 16, 2024, 10:21am UTC](https://discourse.julialang.org/t/suspicious-file-in-artifacts-folder/108860 "2024-01-16T10:21:26Z")

</div>

The virus scanner blocked the file tokei.exe I’m quite sure it’s a legit file, but it would be nice to be able to learn more about it before I ask our IT to unblock it.

---

## [Code after @sync gets executed while @async blocks are still running](https://discourse.julialang.org/t/code-after-sync-gets-executed-while-async-blocks-are-still-running/108854)

<div class="topic-metadata">

**Author:** [@novalex98](https://discourse.julialang.org/u/novalex98)\
**Replies:** 3\
**Last updated:** [January 16, 2024, 9:15am UTC](https://discourse.julialang.org/t/code-after-sync-gets-executed-while-async-blocks-are-still-running/108854 "2024-01-16T09:15:43Z")

</div>

I am using Distributed.jl and trying to parallelize a for loop on a slurm cluster (Hyak klone at the University of Washington). I mark the loop with the @sync macro, then I enclose its insides in an @async macro. There’s…

---

## [Excessive Memory Allocation?](https://discourse.julialang.org/t/excessive-memory-allocation/108841)

<div class="topic-metadata">

**Author:** [@freestatelabs](https://discourse.julialang.org/u/freestatelabs)\
**Replies:** 6\
**Last updated:** [January 16, 2024, 9:03am UTC](https://discourse.julialang.org/t/excessive-memory-allocation/108841 "2024-01-16T09:03:57Z")

</div>

I have a program I’m writing that reads in two Matrices, performs a bit of linear algebra in a pair of nested loops, then outputs a new Matrix. Because eventually it needs to operate on very large input Matrices, I’ve be…

---

## [Unable to automatically download/install artifact](https://discourse.julialang.org/t/unable-to-automatically-download-install-artifact/108814)

<div class="topic-metadata">

**Author:** [@TalesOliveira](https://discourse.julialang.org/u/TalesOliveira)\
**Replies:** 3\
**Last updated:** [January 16, 2024, 7:47am UTC](https://discourse.julialang.org/t/unable-to-automatically-download-install-artifact/108814 "2024-01-16T07:47:40Z")

</div>

I’m trying to install the LLVM package for the DataScience, course, but I’m getting this error: ERROR: Unable to automatically download/install artifact 'vegalite\_app' from sources listed in 'C:\\Users\\tales\\.julia\\packa…

---

## [Add ForwardDiff rule to allow complex arguments\`](https://discourse.julialang.org/t/add-forwarddiff-rule-to-allow-complex-arguments/108821)

<div class="topic-metadata">

**Author:** [@weymouth](https://discourse.julialang.org/u/weymouth)\
**Replies:** 9\
**Last updated:** [January 15, 2024, 9:18pm UTC](https://discourse.julialang.org/t/add-forwarddiff-rule-to-allow-complex-arguments/108821 "2024-01-15T21:18:45Z")

</div>

I’m having trouble getting the derivative of a function which uses a complex variable internally. The key function is Di(x,y,T) = real(expintx(complex(-(1+T^2),(x+y\*T)\*√(1+T^2)))) which Zygote is happy to deal with, but …

---

## [Plots with formatted DateTime xticks?](https://discourse.julialang.org/t/plots-with-formatted-datetime-xticks/48649)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 3\
**Last updated:** [January 16, 2024, 7:05am UTC](https://discourse.julialang.org/t/plots-with-formatted-datetime-xticks/48649 "2024-01-16T07:05:09Z")

</div>

I need to plot some data with DateTime type along the abscissa, and would like to have a nice formatting of the xtick argument. Consider this example: using Plots, Dates # function timeperiod(x::Float64) Second(Int…

---

## [Question about Setting BLAS Threads on Cluster](https://discourse.julialang.org/t/question-about-setting-blas-threads-on-cluster/108852)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 0\
**Last updated:** [January 16, 2024, 4:42am UTC](https://discourse.julialang.org/t/question-about-setting-blas-threads-on-cluster/108852 "2024-01-16T04:42:37Z")

</div>

Hello, I have a question about how BLAS threads are specified. For context, I am on my University’s HPC in an interactive session on our shared memory cluster. The partition that I am using has nodes which consist of tw…

---

## [Is there any julia package for multivariate polynomial regression?](https://discourse.julialang.org/t/is-there-any-julia-package-for-multivariate-polynomial-regression/108785)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 18\
**Last updated:** [January 16, 2024, 2:34am UTC](https://discourse.julialang.org/t/is-there-any-julia-package-for-multivariate-polynomial-regression/108785 "2024-01-16T02:34:33Z")

</div>

For example, I want to build a multivariate polynomial model for data \\{x\_{1i},x\_{2i},\\cdots,x\_{mi},y\_i\\}\_{i=1}^N with given degree n. Thanks for your attention!

---

## [Is there a function for creating n (nearly) evenly-spaced integers for indexing?](https://discourse.julialang.org/t/is-there-a-function-for-creating-n-nearly-evenly-spaced-integers-for-indexing/108744)

<div class="topic-metadata">

**Author:** [@parb](https://discourse.julialang.org/u/parb)\
**Replies:** 35\
**Last updated:** [January 16, 2024, 12:33am UTC](https://discourse.julialang.org/t/is-there-a-function-for-creating-n-nearly-evenly-spaced-integers-for-indexing/108744 "2024-01-16T00:33:09Z")

</div>

Hi all, I’d like to downsample arrays with something like longarray = rand(100) numsamples = 30 sampleindices = evenintegers(1, length(longarray), numsamples) downsampled = longarray\[sampleindices\] I realize its not o…

---

## [Are there any packages for finite volume simulations?](https://discourse.julialang.org/t/are-there-any-packages-for-finite-volume-simulations/108802)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 9\
**Last updated:** [January 15, 2024, 10:13pm UTC](https://discourse.julialang.org/t/are-there-any-packages-for-finite-volume-simulations/108802 "2024-01-15T22:13:53Z")

</div>

I know finite element simulations well, but I am new to the field of finite volume simulations. See: Finite volume method - Wikipedia A comparison between finite element and finite volume methods: FEM vs. FVM | COMSOL B…

---

## [Vscode, plots.jl and plotly()](https://discourse.julialang.org/t/vscode-plots-jl-and-plotly/108436)

<div class="topic-metadata">

**Author:** [@mcreel](https://discourse.julialang.org/u/mcreel)\
**Replies:** 15\
**Last updated:** [January 15, 2024, 8:41pm UTC](https://discourse.julialang.org/t/vscode-plots-jl-and-plotly/108436 "2024-01-15T20:41:54Z")

</div>

Running latest vscode julia extension 1.65.2 with julia 1.10, the following code will run in the (vscode) julia terminal, with the plot appearing in the web browser, but, if run in the vscode editor, it does not plot in …

---

## [How to save a string as a PDF](https://discourse.julialang.org/t/how-to-save-a-string-as-a-pdf/108830)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 11\
**Last updated:** [January 15, 2024, 7:24pm UTC](https://discourse.julialang.org/t/how-to-save-a-string-as-a-pdf/108830 "2024-01-15T19:24:01Z")

</div>

Hello, I would like to save a string as a PDF. I tried the following method, but it did not produce a valid file. my\_string = "this is my string" file = open("test.pdf", "w") write(file, my\_string) close(file) Is ther…

---

## [Multiplication and increment between elements whose index is stored in vectors without allocation: possible?](https://discourse.julialang.org/t/multiplication-and-increment-between-elements-whose-index-is-stored-in-vectors-without-allocation-possible/108819)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 5\
**Last updated:** [January 15, 2024, 6:25pm UTC](https://discourse.julialang.org/t/multiplication-and-increment-between-elements-whose-index-is-stored-in-vectors-without-allocation-possible/108819 "2024-01-15T18:25:26Z")

</div>

Hello, I have 3 arrays (x,y,w) where I want elementwise y += x \* w but the specific element indexes are stored in 3 separate vectors of SArrays, x\_ids, y\_ids and w\_ids. The problem is that the operation hugely allocates…

---

## [Export md-files to PDF via Weave](https://discourse.julialang.org/t/export-md-files-to-pdf-via-weave/89278)

<div class="topic-metadata">

**Author:** [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Replies:** 0\
**Last updated:** [October 26, 2022, 7:46am UTC](https://discourse.julialang.org/t/export-md-files-to-pdf-via-weave/89278 "2022-10-26T07:46:11Z")

</div>

Yesterday I struggled to export md-files via package Weave to pdf. Fist mistake was a search for a portable package for XeLaTeX, it took a while to understand that it is the best to install MiKTeX. As XeLaTeX is incor…

---

## [Axis tick label position in GeoMakie](https://discourse.julialang.org/t/axis-tick-label-position-in-geomakie/106588)

<div class="topic-metadata">

**Author:** [@Gravlax](https://discourse.julialang.org/u/Gravlax)\
**Replies:** 1\
**Last updated:** [January 15, 2024, 4:51pm UTC](https://discourse.julialang.org/t/axis-tick-label-position-in-geomakie/106588 "2024-01-15T16:51:48Z")

</div>

I am currently trying out GeoMakie. I have an issue with axis tick labels appearing on the axis or inside the figure. Is there an a simple way to simply shift all x position of y ticks and all y position of x tick or do…

---

## [How to deal with name conflict between functions from different packages?](https://discourse.julialang.org/t/how-to-deal-with-name-conflict-between-functions-from-different-packages/108820)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 6\
**Last updated:** [January 15, 2024, 4:05pm UTC](https://discourse.julialang.org/t/how-to-deal-with-name-conflict-between-functions-from-different-packages/108820 "2024-01-15T16:05:35Z")

</div>

Packages A and B contain functions with different names such as func\_of\_A and func\_of\_B respectively, and functions with the same name such as func\_in\_both. At first, I only needed to use the function func\_in\_both of pa…

---

## [What is the best way to trigger debug messages in the logger?](https://discourse.julialang.org/t/what-is-the-best-way-to-trigger-debug-messages-in-the-logger/108754)

<div class="topic-metadata">

**Author:** [@00krishna](https://discourse.julialang.org/u/00krishna)\
**Replies:** 2\
**Last updated:** [January 15, 2024, 3:54pm UTC](https://discourse.julialang.org/t/what-is-the-best-way-to-trigger-debug-messages-in-the-logger/108754 "2024-01-15T15:54:44Z")

</div>

I have been looking at the Logging and LoggingExtras packages to better understand how to use them. So I finally understand how to setup the logging messages and such. One question that I was not clear on, was what is t…

---

## [Is there a package to compare if two DataFrames are the same?](https://discourse.julialang.org/t/is-there-a-package-to-compare-if-two-dataframes-are-the-same/44381)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 11\
**Last updated:** [January 15, 2024, 3:16pm UTC](https://discourse.julialang.org/t/is-there-a-package-to-compare-if-two-dataframes-are-the-same/44381 "2024-01-15T15:16:05Z")

</div>

Something that has more options than the == in Base for comparing dataframes? E.g. one where you can set the tolerance of difference in a float column. And also can compare columns by name even though they may be arrange…

---

## [How to compile to stand-alone executable using StaticCompiler in Windows?](https://discourse.julialang.org/t/how-to-compile-to-stand-alone-executable-using-staticcompiler-in-windows/106767)

<div class="topic-metadata">

**Author:** [@Thomas008](https://discourse.julialang.org/u/Thomas008)\
**Replies:** 8\
**Last updated:** [January 15, 2024, 3:03pm UTC](https://discourse.julialang.org/t/how-to-compile-to-stand-alone-executable-using-staticcompiler-in-windows/106767 "2024-01-15T15:03:24Z")

</div>

I published this question already in https://stackoverflow.com/questions/77551695/how-to-compile-julia-code-as-stand-alone-executable-with-help-of-staticcompiler. I’d like to compile to small executable in Windows, e.g.…

---

## [Instruct Julia to skip unit testing?](https://discourse.julialang.org/t/instruct-julia-to-skip-unit-testing/69354)

<div class="topic-metadata">

**Author:** [@Niceno](https://discourse.julialang.org/u/Niceno)\
**Replies:** 7\
**Last updated:** [January 15, 2024, 3:07pm UTC](https://discourse.julialang.org/t/instruct-julia-to-skip-unit-testing/69354 "2024-01-15T15:07:33Z")

</div>

Hi everyone, I am new to Julia and few days ago had a moment of delight when I learned that Test package offers a very neat way to include unit testing in your code :slight\_smile: Since then, I was putting @testset an…

---

## [Inplace version for LU decomposition in Julia](https://discourse.julialang.org/t/inplace-version-for-lu-decomposition-in-julia/108795)

<div class="topic-metadata">

**Author:** [@mrVeng](https://discourse.julialang.org/u/mrVeng)\
**Replies:** 8\
**Last updated:** [January 15, 2024, 2:55pm UTC](https://discourse.julialang.org/t/inplace-version-for-lu-decomposition-in-julia/108795 "2024-01-15T14:55:06Z")

</div>

Hi there! I have to compute the lu decomposition of a matrix that is dependent - I was thinking to create a buffer first and then inplace compute the lu decomposition when needed, but after googling and searching throug…

---

## [Research Funding](https://discourse.julialang.org/t/research-funding/108835)

<div class="topic-metadata">

**Author:** [@pkmishra](https://discourse.julialang.org/u/pkmishra)\
**Replies:** 0\
**Last updated:** [January 15, 2024, 2:51pm UTC](https://discourse.julialang.org/t/research-funding/108835 "2024-01-15T14:51:27Z")

</div>

A funding opportunity available between the USA and Finland. If you are seeking grants to develop/advance AI algorithms with potential applications in the geoscience domain, I would be delighted to collaborate. If there …

---

## [\[ANN\] Oxygen.jl v1.4.3 (Metrics Dashboard)](https://discourse.julialang.org/t/ann-oxygen-jl-v1-4-3-metrics-dashboard/108807)

<div class="topic-metadata">

**Author:** [@ndortega](https://discourse.julialang.org/u/ndortega)\
**Replies:** 3\
**Last updated:** [January 15, 2024, 1:46pm UTC](https://discourse.julialang.org/t/ann-oxygen-jl-v1-4-3-metrics-dashboard/108807 "2024-01-15T13:46:59Z")

</div>

Hello, everyone! I’m here to introduce the latest update to Oxygen.jl. This update includes a built-in metrics dashboard which provides a high-level overview of the performance and usage of your server. After this upda…

---

## [Is there a comprehensive molecular dynamics analysis library in Julia?](https://discourse.julialang.org/t/is-there-a-comprehensive-molecular-dynamics-analysis-library-in-julia/108817)

<div class="topic-metadata">

**Author:** [@Sam\_Xu](https://discourse.julialang.org/u/Sam_Xu)\
**Replies:** 2\
**Last updated:** [January 15, 2024, 1:43pm UTC](https://discourse.julialang.org/t/is-there-a-comprehensive-molecular-dynamics-analysis-library-in-julia/108817 "2024-01-15T13:43:57Z")

</div>

There was a discussion about this topic 4 years before: What is the best molecular dynamics analysis library in Julia?. After going through the libraries mentioned in that post, it seems like BioStructures.jl and Chemfi…

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

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