# Latest

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

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

**Page:** 1164

---

## [Unexpected memory allocation behavior](https://discourse.julialang.org/t/unexpected-memory-allocation-behavior/73922)

<div class="topic-metadata">

**Author:** [@Siddharth\_Bhatia](https://discourse.julialang.org/u/Siddharth_Bhatia)\
**Replies:** 6\
**Last updated:** [January 2, 2022, 5:36pm UTC](https://discourse.julialang.org/t/unexpected-memory-allocation-behavior/73922 "2022-01-02T17:36:46Z")

</div>

Hello. I am using julia 1.7.1. I am facing trouble trying to understand an unexpected memory allocation in the below simplified and self-contained program: struct VerticalLine{I} i\_min::I i\_max::I j::I end …

---

## [Help with introspection on types](https://discourse.julialang.org/t/help-with-introspection-on-types/73899)

<div class="topic-metadata">

**Author:** [@Stephen\_Vavasis](https://discourse.julialang.org/u/Stephen_Vavasis)\
**Replies:** 2\
**Last updated:** [January 2, 2022, 3:26pm UTC](https://discourse.julialang.org/t/help-with-introspection-on-types/73899 "2022-01-02T15:26:03Z")

</div>

This question arises from my attempt to write new constructors for DataStructures.jl. Please see the trace below (1.7.1), which raises the following questions: Is there any difference between \<type\>.parameters and \<t…

---

## [Approaching Julia coming from Mathematica](https://discourse.julialang.org/t/approaching-julia-coming-from-mathematica/73914)

<div class="topic-metadata">

**Author:** [@Dario-Rosa85](https://discourse.julialang.org/u/Dario-Rosa85)\
**Replies:** 7\
**Last updated:** [January 2, 2022, 2:27pm UTC](https://discourse.julialang.org/t/approaching-julia-coming-from-mathematica/73914 "2022-01-02T14:27:26Z")

</div>

I am a proficient user of Mathematica and I love its functional programming style and its way of programming by means of lists. However, I would like to move most of my programs from Mathematica to Julia. The main reason…

---

## [Is there any way to run an external command with \* in it?](https://discourse.julialang.org/t/is-there-any-way-to-run-an-external-command-with-in-it/73926)

<div class="topic-metadata">

**Author:** [@JackStrauss](https://discourse.julialang.org/u/JackStrauss)\
**Replies:** 4\
**Last updated:** [January 2, 2022, 1:39pm UTC](https://discourse.julialang.org/t/is-there-any-way-to-run-an-external-command-with-in-it/73926 "2022-01-02T13:39:12Z")

</div>

Hello I am trying to run an external command "rsync \* a: " with run() and the \* makes it impossible. there is an old unresolved question on this. How to quote special characters in run() function I am now making a deto…

---

## [Noobish question regarding yhat probabilities](https://discourse.julialang.org/t/noobish-question-regarding-yhat-probabilities/73905)

<div class="topic-metadata">

**Author:** [@AdamWysokinski](https://discourse.julialang.org/u/AdamWysokinski)\
**Replies:** 3\
**Last updated:** [January 2, 2022, 11:26am UTC](https://discourse.julialang.org/t/noobish-question-regarding-yhat-probabilities/73905 "2022-01-02T11:26:00Z")

</div>

Hi, I’ve just started learning MLJ and I’m recreating a RandomForrect-based binary classification that I did in Python/Scikit. The MLJ version works fine, with one major exception.When I put new data through the trained…

---

## [VSCode / Julia 1.7.1 / Windows 7 issue](https://discourse.julialang.org/t/vscode-julia-1-7-1-windows-7-issue/73920)

<div class="topic-metadata">

**Author:** [@ivborissov](https://discourse.julialang.org/u/ivborissov)\
**Replies:** 0\
**Last updated:** [January 2, 2022, 10:19am UTC](https://discourse.julialang.org/t/vscode-julia-1-7-1-windows-7-issue/73920 "2022-01-02T10:19:50Z")

</div>

Hi, The problem seems to be trivial, but I haven’t found any solutions yet. VSCode Extension reports Could not start the Julia language server. Make sure the configuration setting julia.executablePath points to the Juli…

---

## [Convergence of a BVProblem with a Saddle Structure](https://discourse.julialang.org/t/convergence-of-a-bvproblem-with-a-saddle-structure/73678)

<div class="topic-metadata">

**Author:** [@ptoche](https://discourse.julialang.org/u/ptoche)\
**Replies:** 1\
**Last updated:** [January 2, 2022, 10:14am UTC](https://discourse.julialang.org/t/convergence-of-a-bvproblem-with-a-saddle-structure/73678 "2022-01-02T10:14:05Z")

</div>

The following two-point boundary value problem is difficult to solve because the stationary state has a saddle structure, with one positive and one negative eigenvalue: only one path leads to the stationary state — all o…

---

## [Squeezing performance out of ODE solves with interpolations](https://discourse.julialang.org/t/squeezing-performance-out-of-ode-solves-with-interpolations/73519)

<div class="topic-metadata">

**Author:** [@qtoloza](https://discourse.julialang.org/u/qtoloza)\
**Replies:** 6\
**Last updated:** [January 2, 2022, 9:31am UTC](https://discourse.julialang.org/t/squeezing-performance-out-of-ode-solves-with-interpolations/73519 "2022-01-02T09:31:10Z")

</div>

Hi all! I’m trying to squeeze performance gains out of two sets of ODEs that I need to solve many times at relatively low tolerances (~1e-10). I’ve benefited enormously from reading other posts and the performance tips …

---

## [Filling an array with a generator that returns tuples](https://discourse.julialang.org/t/filling-an-array-with-a-generator-that-returns-tuples/62737)

<div class="topic-metadata">

**Author:** [@fedario](https://discourse.julialang.org/u/fedario)\
**Replies:** 4\
**Last updated:** [January 2, 2022, 8:03am UTC](https://discourse.julialang.org/t/filling-an-array-with-a-generator-that-returns-tuples/62737 "2022-01-02T08:03:01Z")

</div>

I’m trying to create a function that takes a number of iterables and fills an array columnwise with each combination of those. The following function has the correct output, but the number of allocations is unexpected. u…

---

## [Evaluate Created Expression Within Function](https://discourse.julialang.org/t/evaluate-created-expression-within-function/73879)

<div class="topic-metadata">

**Author:** [@HiramTheHero](https://discourse.julialang.org/u/HiramTheHero)\
**Replies:** 3\
**Last updated:** [January 2, 2022, 3:07am UTC](https://discourse.julialang.org/t/evaluate-created-expression-within-function/73879 "2022-01-02T03:07:48Z")

</div>

Hello all. I am writing some code that adds syntax sugar to subsetting dataframes. I want to pass :(:SepalLength .\> (:SepalWidth .\* 2)) and df into a function and it create a BitVector by evaluating df.SepalLength .\> (…

---

## [Replacing my 2013 MacBook Pro with a M1 Pro or Max - Advice?](https://discourse.julialang.org/t/replacing-my-2013-macbook-pro-with-a-m1-pro-or-max-advice/71264)

<div class="topic-metadata">

**Author:** [@HexSpin](https://discourse.julialang.org/u/HexSpin)\
**Replies:** 26\
**Last updated:** [January 2, 2022, 2:50am UTC](https://discourse.julialang.org/t/replacing-my-2013-macbook-pro-with-a-m1-pro-or-max-advice/71264 "2022-01-02T02:50:36Z")

</div>

Good morning! I’m looking to purchase a M1 Pro or Max MacBook Pro. Reviews are all about video editing or everyday use, which helps me to a point. Has anyone given the machines much thought or put one to work on inten…

---

## [\[ANN\] NLP packages](https://discourse.julialang.org/t/ann-nlp-packages/19235)

<div class="topic-metadata">

**Author:** [@zgornel](https://discourse.julialang.org/u/zgornel)\
**Replies:** 0\
**Last updated:** [January 3, 2019, 3:03pm UTC](https://discourse.julialang.org/t/ann-nlp-packages/19235 "2019-01-03T15:03:30Z")

</div>

Good day to everyone, Below is a list of NLP-related packages I developed in the last few months that may be of interest: ConceptnetNumberbatch.jl an interface for Conceptnet Numberbatch word embeddings Glowe.jl an …

---

## [HTTP API Assistance](https://discourse.julialang.org/t/http-api-assistance/43916)

<div class="topic-metadata">

**Author:** [@alphasig329](https://discourse.julialang.org/u/alphasig329)\
**Replies:** 3\
**Last updated:** [January 1, 2022, 10:08pm UTC](https://discourse.julialang.org/t/http-api-assistance/43916 "2022-01-01T22:08:18Z")

</div>

Hello, I am trying to translate this Python3 script into Julia (https://github.com/Brightspace/bds-headless-client-example/blob/master/main.py) to gain more familiarity with Julia and building an application that relies…

---

## [How to suppress equation numbers in Franklin?](https://discourse.julialang.org/t/how-to-suppress-equation-numbers-in-franklin/73835)

<div class="topic-metadata">

**Author:** [@mpf01](https://discourse.julialang.org/u/mpf01)\
**Replies:** 5\
**Last updated:** [January 1, 2022, 9:49pm UTC](https://discourse.julialang.org/t/how-to-suppress-equation-numbers-in-franklin/73835 "2022-01-01T21:49:38Z")

</div>

It seems that Franklin.jl doesn’t currently support the “\*” form of math environments, which are used to suppress equation numbers (see this issue). For example, the fragment \\begin{equation\*} \\alpha \\end{equation\*} t…

---

## [Efficiently finding the frequency of patterns in DataFrame columns](https://discourse.julialang.org/t/efficiently-finding-the-frequency-of-patterns-in-dataframe-columns/73839)

<div class="topic-metadata">

**Author:** [@Matthew](https://discourse.julialang.org/u/Matthew)\
**Replies:** 12\
**Last updated:** [January 1, 2022, 9:27pm UTC](https://discourse.julialang.org/t/efficiently-finding-the-frequency-of-patterns-in-dataframe-columns/73839 "2022-01-01T21:27:58Z")

</div>

Hi all! I’m looking for help with what might be an easy task. Say we have two vectors; A = \[0,1\] and B = \[0,1,2\]. Matrix C contains every possible combination of A and B such that it has dimensions 6x2. Now consider a…

---

## [Learning julia and tidying hard drive](https://discourse.julialang.org/t/learning-julia-and-tidying-hard-drive/73851)

<div class="topic-metadata">

**Author:** [@nyloc](https://discourse.julialang.org/u/nyloc)\
**Replies:** 13\
**Last updated:** [January 1, 2022, 8:21pm UTC](https://discourse.julialang.org/t/learning-julia-and-tidying-hard-drive/73851 "2022-01-01T20:21:24Z")

</div>

I’ve just started learning Julia and would like some direction, This is some code I have created. #!/home/col/programming/Julia/julia-1.7.1/bin/julia # split vid and audio files into seperate directorys new\_dir\_nam…

---

## [Notebooks Need Modules, i.e. Multiple Separate Global Namespaces](https://discourse.julialang.org/t/notebooks-need-modules-i-e-multiple-separate-global-namespaces/68541)

<div class="topic-metadata">

**Author:** [@Luapulu](https://discourse.julialang.org/u/Luapulu)\
**Replies:** 13\
**Last updated:** [January 1, 2022, 7:53pm UTC](https://discourse.julialang.org/t/notebooks-need-modules-i-e-multiple-separate-global-namespaces/68541 "2022-01-01T19:53:12Z")

</div>

For context, a typical workflow for me, using a Pluto or Jupyter notebook, looks like this Read in some data / create some initial data Do some processing Plot some intermediate results Do some more processing Plot fin…

---

## [Indices in a SentinelArray](https://discourse.julialang.org/t/indices-in-a-sentinelarray/73894)

<div class="topic-metadata">

**Author:** [@trilobit](https://discourse.julialang.org/u/trilobit)\
**Replies:** 0\
**Last updated:** [January 1, 2022, 2:18pm UTC](https://discourse.julialang.org/t/indices-in-a-sentinelarray/73894 "2022-01-01T14:18:29Z")

</div>

In a SentinelArray I want zu observe more than one cell i.e but I’m clueless, how I can detect the indices of all selected cells.

---

## [How to efficiently and precisely fit a function with neural networks?](https://discourse.julialang.org/t/how-to-efficiently-and-precisely-fit-a-function-with-neural-networks/73726)

<div class="topic-metadata">

**Author:** [@thorek1](https://discourse.julialang.org/u/thorek1)\
**Replies:** 16\
**Last updated:** [January 1, 2022, 1:50pm UTC](https://discourse.julialang.org/t/how-to-efficiently-and-precisely-fit-a-function-with-neural-networks/73726 "2022-01-01T13:50:36Z")

</div>

Hi, I am trying (and failing in terms of precision) to use neural networks to fit stochastic optimal control problems. Since this problem has many parts and I would like to have 1e-6 precision I went back to something m…

---

## [Access to DimensionalData time axis](https://discourse.julialang.org/t/access-to-dimensionaldata-time-axis/73877)

<div class="topic-metadata">

**Author:** [@KajWiik](https://discourse.julialang.org/u/KajWiik)\
**Replies:** 4\
**Last updated:** [January 1, 2022, 1:24pm UTC](https://discourse.julialang.org/t/access-to-dimensionaldata-time-axis/73877 "2022-01-01T13:24:44Z")

</div>

If I have a DimensionalData variable like using DimensionalData a = DimArray(rand(12), Ti(DateTime(2001):Month(1):DateTime(2001,12))) a.data gives data but how to access the time axis (e.g. for plotting in Makie)?

---

## [Embedding Julia: Calling Julia functions from an Xcode project in Objective C](https://discourse.julialang.org/t/embedding-julia-calling-julia-functions-from-an-xcode-project-in-objective-c/73675)

<div class="topic-metadata">

**Author:** [@Ondo](https://discourse.julialang.org/u/Ondo)\
**Replies:** 2\
**Last updated:** [January 1, 2022, 1:09pm UTC](https://discourse.julialang.org/t/embedding-julia-calling-julia-functions-from-an-xcode-project-in-objective-c/73675 "2022-01-01T13:09:51Z")

</div>

I have copied Julia’s lib and include folders to my Xcode project. I have set the @executable path under build setting to the copy of Julia lib folder that was added to the Xcode project. I have added all 43 Julia libra…

---

## [Happy new year!](https://discourse.julialang.org/t/happy-new-year/73883)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 2\
**Last updated:** [January 1, 2022, 10:09am UTC](https://discourse.julialang.org/t/happy-new-year/73883 "2022-01-01T10:09:58Z")

</div>

file:///home/ufechner/Bilder/NewYear\_2022.jpeg Best greetings from Den Haag (The Netherlands)!

---

## [MacroTools splitarg interface change RFC](https://discourse.julialang.org/t/macrotools-splitarg-interface-change-rfc/73885)

<div class="topic-metadata">

**Author:** [@willow](https://discourse.julialang.org/u/willow)\
**Replies:** 2\
**Last updated:** [January 1, 2022, 7:21am UTC](https://discourse.julialang.org/t/macrotools-splitarg-interface-change-rfc/73885 "2022-01-01T07:21:57Z")

</div>

MacroTools splitarg and combinearg no longer work with functions that have keyword argument splats in Julia 1.7. To fix this issue, we need to avoid trying to typeassert the keyword argument splat. MacroTools used to ret…

---

## [Rationale for Pipe Order of Operations?](https://discourse.julialang.org/t/rationale-for-pipe-order-of-operations/73694)

<div class="topic-metadata">

**Author:** [@kapple](https://discourse.julialang.org/u/kapple)\
**Replies:** 4\
**Last updated:** [January 1, 2022, 3:33am UTC](https://discourse.julialang.org/t/rationale-for-pipe-order-of-operations/73694 "2022-01-01T03:33:31Z")

</div>

I feel like both blocks should result in the same result of 7. Is there a reason why the pipe isn’t the last thing processed?

---

## [What is \`Callable\`](https://discourse.julialang.org/t/what-is-callable/73884)

<div class="topic-metadata">

**Author:** [@Stephen\_Vavasis](https://discourse.julialang.org/u/Stephen_Vavasis)\
**Replies:** 1\
**Last updated:** [January 1, 2022, 12:41am UTC](https://discourse.julialang.org/t/what-is-callable/73884 "2022-01-01T00:41:34Z")

</div>

The function get in dict.jl has the following signature: function get(default::Callable, h::Dict{K,V}, key) where V where K I am wondering: what does Callable mean? Perhaps Union{Function,Type}? Also, does it special…

---

## [SQLite.load! fails for temp tables?](https://discourse.julialang.org/t/sqlite-load-fails-for-temp-tables/73886)

<div class="topic-metadata">

**Author:** [@freeman](https://discourse.julialang.org/u/freeman)\
**Replies:** 0\
**Last updated:** [January 1, 2022, 12:34am UTC](https://discourse.julialang.org/t/sqlite-load-fails-for-temp-tables/73886 "2022-01-01T00:34:31Z")

</div>

This is not a big deal, but I was surprised that the following doesn’t work for temp tables: x = \[(a=1, b=2), (a=3, b=4)\]; db = SQLite.DB() table\_name = x |\> SQLite.load!(db; temp=true) Throws ERROR: SQLiteException("…

---

## [While loop and parallel computing](https://discourse.julialang.org/t/while-loop-and-parallel-computing/73862)

<div class="topic-metadata">

**Author:** [@Igor\_Douven](https://discourse.julialang.org/u/Igor_Douven)\
**Replies:** 8\
**Last updated:** [December 31, 2021, 10:36pm UTC](https://discourse.julialang.org/t/while-loop-and-parallel-computing/73862 "2021-12-31T22:36:34Z")

</div>

Dear all, Suppose I have a container, say res = \[\], that I want to be filled by the output of a function, say f() = rand() \> .5 ? 1 : nothing. Suppose I’m done once res has a certain length. Given that the actual functi…

---

## [Multithreading and Monte Carlo in 1.7](https://discourse.julialang.org/t/multithreading-and-monte-carlo-in-1-7/73721)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 12\
**Last updated:** [December 31, 2021, 10:11pm UTC](https://discourse.julialang.org/t/multithreading-and-monte-carlo-in-1-7/73721 "2021-12-31T22:11:34Z")

</div>

I have an elementary Monte Carlo computation that I want to do that amounts to: results = zeros(n\_trials); for i in 1:n\_trials results\[i\] = # relatively expensive Monte Carlo function end I’m finding that the stati…

---

## [When should a package move to the standard library or system image? StaticArrays, what is it?](https://discourse.julialang.org/t/when-should-a-package-move-to-the-standard-library-or-system-image-staticarrays-what-is-it/73577)

<div class="topic-metadata">

**Author:** [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Replies:** 37\
**Last updated:** [December 31, 2021, 8:28pm UTC](https://discourse.julialang.org/t/when-should-a-package-move-to-the-standard-library-or-system-image-staticarrays-what-is-it/73577 "2021-12-31T20:28:04Z")

</div>

I know I know about things moving out of Julia to packages, within reason. I am one of the people who heavily advocated for that back when Julia was batteries included. But let’s ground the discussion with some specifics…

---

## [Enforcing function signatures by both argument & return types](https://discourse.julialang.org/t/enforcing-function-signatures-by-both-argument-return-types/8174)

<div class="topic-metadata">

**Author:** [@tk3369](https://discourse.julialang.org/u/tk3369)\
**Replies:** 30\
**Last updated:** [December 31, 2021, 7:49am UTC](https://discourse.julialang.org/t/enforcing-function-signatures-by-both-argument-return-types/8174 "2021-12-31T07:49:44Z")

</div>

I’d like to pass a function (f) to another function (g) but g expects f to take some specific types of arguments and return a specific type. Is it possible to enforce that statically? For example, g() expects f to take…

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

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