# Latest

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

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

**Page:** 366

---

## [How to redirect stdout to an open terminal window?](https://discourse.julialang.org/t/how-to-redirect-stdout-to-an-open-terminal-window/15465)

<div class="topic-metadata">

**Author:** [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Replies:** 1\
**Last updated:** [July 11, 2024, 12:54pm UTC](https://discourse.julialang.org/t/how-to-redirect-stdout-to-an-open-terminal-window/15465 "2024-07-11T12:54:18Z")

</div>

I am having trouble with the function redirect\_stdout. I would like to do the following on my mac Open up a terminal window with julia Open up a second terminal and run tty to get a file name I can pipe results to Use …

---

## [SharedArray using DataFrames()](https://discourse.julialang.org/t/sharedarray-using-dataframes/116908)

<div class="topic-metadata">

**Author:** [@Gast](https://discourse.julialang.org/u/Gast)\
**Replies:** 0\
**Last updated:** [July 11, 2024, 12:54pm UTC](https://discourse.julialang.org/t/sharedarray-using-dataframes/116908 "2024-07-11T12:54:07Z")

</div>

Hi all I use the DataFrame.jl package to define and manipulate arrays across several nested functions. I plan to parallelize some of the tasks (e.g., for loops with data allocations) by using the Distributed.jl package…

---

## [Original until() function](https://discourse.julialang.org/t/original-until-function/116903)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 2\
**Last updated:** [July 11, 2024, 12:33pm UTC](https://discourse.julialang.org/t/original-until-function/116903 "2024-07-11T12:33:38Z")

</div>

Hello everyone, Can someone point me to location of this function until() which is used as follow while until(s, t0, n, model) ....something.... end in agents.jl. I want to check the original function. I was lookin…

---

## [ModelingToolkit: linearization failure](https://discourse.julialang.org/t/modelingtoolkit-linearization-failure/116899)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 1\
**Last updated:** [July 11, 2024, 12:33pm UTC](https://discourse.julialang.org/t/modelingtoolkit-linearization-failure/116899 "2024-07-11T12:33:08Z")

</div>

I’m trying to linearize a “complex” (for me) ModelingToolkit \[MTK\] model consisting of several layers of components that I have written. My components do not use ports (I’m in the process of learning this), and I try to …

---

## [Passing \`::Type{InconcreteType}\` to CUDA kernel](https://discourse.julialang.org/t/passing-type-inconcretetype-to-cuda-kernel/116833)

<div class="topic-metadata">

**Author:** [@hexaeder](https://discourse.julialang.org/u/hexaeder)\
**Replies:** 2\
**Last updated:** [July 11, 2024, 12:04pm UTC](https://discourse.julialang.org/t/passing-type-inconcretetype-to-cuda-kernel/116833 "2024-07-11T12:04:32Z")

</div>

Hello, I have some kernels that share a lot of code but specialize in the end based on some type of AbstractAction in the MWE below Addition or Multiplication. Those concrete actions have some nonbitstype metadata, whic…

---

## [Better support for wrapper types](https://discourse.julialang.org/t/better-support-for-wrapper-types/114395)

<div class="topic-metadata">

**Author:** [@f.ij](https://discourse.julialang.org/u/f.ij)\
**Replies:** 11\
**Last updated:** [July 11, 2024, 12:02pm UTC](https://discourse.julialang.org/t/better-support-for-wrapper-types/114395 "2024-07-11T12:02:38Z")

</div>

I’m sure I cannot be the only one who sometimes feels that writing wrappers for types in Julia that I just want to either extend with some custom methods or change the functionality of just a few built-in functions can s…

---

## [(Re-)exporting from extension](https://discourse.julialang.org/t/re-exporting-from-extension/104139)

<div class="topic-metadata">

**Author:** [@manuelbb-upb](https://discourse.julialang.org/u/manuelbb-upb)\
**Replies:** 3\
**Last updated:** [July 11, 2024, 11:24am UTC](https://discourse.julialang.org/t/re-exporting-from-extension/104139 "2024-07-11T11:24:13Z")

</div>

Hi everyone, is it possible to re-export names defined in a package extension from within the main package itself? For example, the hypothetical main package “Optimizer” defines an optimization structure allowing for g…

---

## [Performance of primal versus dual forms in JuMP](https://discourse.julialang.org/t/performance-of-primal-versus-dual-forms-in-jump/116633)

<div class="topic-metadata">

**Author:** [@araujoms](https://discourse.julialang.org/u/araujoms)\
**Replies:** 6\
**Last updated:** [July 11, 2024, 10:54am UTC](https://discourse.julialang.org/t/performance-of-primal-versus-dual-forms-in-jump/116633 "2024-07-11T10:54:19Z")

</div>

I’m trying to determine the most efficient form of modelling a problem for a package (QuantumNPA.jl). The natural way of writing the problem is in the dual or geometric form (see here for nomenclature); however, this giv…

---

## [CUDA.compute\_sanitizer() method not defined](https://discourse.julialang.org/t/cuda-compute-sanitizer-method-not-defined/116888)

<div class="topic-metadata">

**Author:** [@alexpan5](https://discourse.julialang.org/u/alexpan5)\
**Replies:** 1\
**Last updated:** [July 11, 2024, 10:18am UTC](https://discourse.julialang.org/t/cuda-compute-sanitizer-method-not-defined/116888 "2024-07-11T10:18:31Z")

</div>

I want to use compute-sanitizer to look into a memory error, but when I run: julia\> using CUDA julia\> CUDA.compute\_sanitizer() I just get ERROR: UndefVarError: compute\_sanitizer not defined. CUDA.compute\_sanitizer\_cmd…

---

## [\[Ann\] MethodInspector.jl: Package to inspect method APIs](https://discourse.julialang.org/t/ann-methodinspector-jl-package-to-inspect-method-apis/116893)

<div class="topic-metadata">

**Author:** [@bluesmoon](https://discourse.julialang.org/u/bluesmoon)\
**Replies:** 0\
**Last updated:** [July 11, 2024, 8:31am UTC](https://discourse.julialang.org/t/ann-methodinspector-jl-package-to-inspect-method-apis/116893 "2024-07-11T08:31:33Z")

</div>

Bit late announcing this, but reminded by Michael Tiemann’s talk at JuliaCon. Announcing MethodInspector.jl Code at: GitHub - bluesmoon/MethodInspector.jl: Julia package to inspect the names and types of method argumen…

---

## [Global Constrained Nonlinear Optimization](https://discourse.julialang.org/t/global-constrained-nonlinear-optimization/111972)

<div class="topic-metadata">

**Author:** [@zaccazy](https://discourse.julialang.org/u/zaccazy)\
**Replies:** 11\
**Last updated:** [July 11, 2024, 7:41am UTC](https://discourse.julialang.org/t/global-constrained-nonlinear-optimization/111972 "2024-07-11T07:41:50Z")

</div>

I am looking for a global optimizer to solve a nonlinear problem with three variables and two nonlinear inequality constraints. So far, everything I’ve tried delivers local solutions, i.e. solution heavily relies on the …

---

## [Julia development on Qualcomm Snapdragon for Windows](https://discourse.julialang.org/t/julia-development-on-qualcomm-snapdragon-for-windows/116852)

<div class="topic-metadata">

**Author:** [@BVPs](https://discourse.julialang.org/u/BVPs)\
**Replies:** 2\
**Last updated:** [July 11, 2024, 3:59am UTC](https://discourse.julialang.org/t/julia-development-on-qualcomm-snapdragon-for-windows/116852 "2024-07-11T03:59:05Z")

</div>

As many of you may know, Microsoft recently started selling Surface Pro 11 and Surface Laptop 7 with Qualcomm’s Snapdragon chips as well as other companies such as Dell, etc. Currently, the Julia system is supported for …

---

## [JuliaCon YouTube Live Feed Thursday- Main Stage (aka REPL)](https://discourse.julialang.org/t/juliacon-youtube-live-feed-thursday-main-stage-aka-repl/116855)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 0\
**Last updated:** [July 10, 2024, 7:05am UTC](https://discourse.julialang.org/t/juliacon-youtube-live-feed-thursday-main-stage-aka-repl/116855 "2024-07-10T07:05:32Z")

</div>

Updated for Thursday: Note that we will be joined by PyData Eindhoven on Thursday. Catch the room specific streams and prior streams here:

---

## [Using latest TermInterface for custom types in MetaTheory](https://discourse.julialang.org/t/using-latest-terminterface-for-custom-types-in-metatheory/116885)

<div class="topic-metadata">

**Author:** [@wgm](https://discourse.julialang.org/u/wgm)\
**Replies:** 2\
**Last updated:** [July 10, 2024, 10:50pm UTC](https://discourse.julialang.org/t/using-latest-terminterface-for-custom-types-in-metatheory/116885 "2024-07-10T22:50:10Z")

</div>

Is there an example of using TermInterface v2.0 with the ale/3.0 branch of MetaTheory for working with custom types? I’m looking for something like Interfacing with Metatheory.jl · Metatheory.jl that works with the lates…

---

## [Icons in WORKSPACE in Activity Bar in VS Code](https://discourse.julialang.org/t/icons-in-workspace-in-activity-bar-in-vs-code/116709)

<div class="topic-metadata">

**Author:** [@daler6](https://discourse.julialang.org/u/daler6)\
**Replies:** 4\
**Last updated:** [July 10, 2024, 9:40pm UTC](https://discourse.julialang.org/t/icons-in-workspace-in-activity-bar-in-vs-code/116709 "2024-07-10T21:40:59Z")

</div>

When I look at my WORKSPACE in the Activity Bar when running Julia in VS Code, I see that the modules, functions, types, data of different types, etc., have icons to the left of their name. I can figure out most of these…

---

## [Enzyme "Attempting to call an indirect active function whose runtime value is inactive" in Forward Over Reverse Mode](https://discourse.julialang.org/t/enzyme-attempting-to-call-an-indirect-active-function-whose-runtime-value-is-inactive-in-forward-over-reverse-mode/116841)

<div class="topic-metadata">

**Author:** [@dleather](https://discourse.julialang.org/u/dleather)\
**Replies:** 7\
**Last updated:** [July 10, 2024, 9:34pm UTC](https://discourse.julialang.org/t/enzyme-attempting-to-call-an-indirect-active-function-whose-runtime-value-is-inactive-in-forward-over-reverse-mode/116841 "2024-07-10T21:34:36Z")

</div>

I’m attempting to apply forward over reverse mode following the Enzyme.jl tutorial. The function, f:\\mathbb{R}^N \\rightarrow \\mathbb{R^{++}}, is complicated but doesn’t involve any terms more difficult than hyperbolic fu…

---

## [Indexing array with a matrix and scalar](https://discourse.julialang.org/t/indexing-array-with-a-matrix-and-scalar/116848)

<div class="topic-metadata">

**Author:** [@baptnz](https://discourse.julialang.org/u/baptnz)\
**Replies:** 9\
**Last updated:** [July 10, 2024, 7:33pm UTC](https://discourse.julialang.org/t/indexing-array-with-a-matrix-and-scalar/116848 "2024-07-10T19:33:45Z")

</div>

A bit rusty after a while away from julia… How would I fill a 3D array with N values at positions given as follows: 1st index given as a scalar (from a for loop) the other two indices are provided as vectors I’m u…

---

## [Repeated compilation for same function with extreme type instability](https://discourse.julialang.org/t/repeated-compilation-for-same-function-with-extreme-type-instability/114244)

<div class="topic-metadata">

**Author:** [@guoyongzhi](https://discourse.julialang.org/u/guoyongzhi)\
**Replies:** 11\
**Last updated:** [July 10, 2024, 6:34pm UTC](https://discourse.julialang.org/t/repeated-compilation-for-same-function-with-extreme-type-instability/114244 "2024-07-10T18:34:03Z")

</div>

Here is a minimal reproducible example: Repeated compilation for same function with extreme type instability - #5 by guoyongzhi My function consistently experiences prolonged compilation times with each execution. Howe…

---

## [Creating an Alias for a Struct Field](https://discourse.julialang.org/t/creating-an-alias-for-a-struct-field/116873)

<div class="topic-metadata">

**Author:** [@Maddy](https://discourse.julialang.org/u/Maddy)\
**Replies:** 8\
**Last updated:** [July 10, 2024, 6:05pm UTC](https://discourse.julialang.org/t/creating-an-alias-for-a-struct-field/116873 "2024-07-10T18:05:03Z")

</div>

I am trying to create a Particle Struct. I was wondering if there is a way to have particle.pos reference particle.position as an alias Is there any way to have such a behaviour? I might set pos as another field but th…

---

## [A bug about JuMP.jl](https://discourse.julialang.org/t/a-bug-about-jump-jl/116870)

<div class="topic-metadata">

**Author:** [@lionisxn](https://discourse.julialang.org/u/lionisxn)\
**Replies:** 1\
**Last updated:** [July 10, 2024, 4:29pm UTC](https://discourse.julialang.org/t/a-bug-about-jump-jl/116870 "2024-07-10T16:29:41Z")

</div>

I was wondering whether there exist bugs of calling for "value(function, expr) ". My codes are like this: M = Model() @variable(M, x) @variable(M, y) @NLconstraint(M, con, x + x\*y^2 - 3 \>= 0) t = all\_constraints(M;…

---

## [Issue with BigFloat rounding](https://discourse.julialang.org/t/issue-with-bigfloat-rounding/116831)

<div class="topic-metadata">

**Author:** [@chkat](https://discourse.julialang.org/u/chkat)\
**Replies:** 14\
**Last updated:** [July 10, 2024, 3:09pm UTC](https://discourse.julialang.org/t/issue-with-bigfloat-rounding/116831 "2024-07-10T15:09:01Z")

</div>

I want to set the BigFloat(7.0687866210937500e-1) by using a precision of 15 bits and two different rounding modes (up and down). So I do: setprecision(15) setrounding(BigFloat, RoundDown) # or RoundUp BigFloat(7.0687…

---

## [Complexity JuMP constraints](https://discourse.julialang.org/t/complexity-jump-constraints/116773)

<div class="topic-metadata">

**Author:** [@gustave\_Robichon](https://discourse.julialang.org/u/gustave_Robichon)\
**Replies:** 5\
**Last updated:** [July 10, 2024, 3:00pm UTC](https://discourse.julialang.org/t/complexity-jump-constraints/116773 "2024-07-10T15:00:40Z")

</div>

Hello there :slight\_smile: I have a SDP problem with a SemiDefinite matrix M of size n \\times n. I have a number c of constraints. There is a time of preparation, then the problem is given to the SDP solver (for example…

---

## [Matrix Constraints in JuMP](https://discourse.julialang.org/t/matrix-constraints-in-jump/116663)

<div class="topic-metadata">

**Author:** [@Gagan\_Meena](https://discourse.julialang.org/u/Gagan_Meena)\
**Replies:** 3\
**Last updated:** [July 10, 2024, 12:13pm UTC](https://discourse.julialang.org/t/matrix-constraints-in-jump/116663 "2024-07-10T12:13:08Z")

</div>

Can I write matrix constraints in JUMP using @constraints macro? While writing this flow constraint Bd\*A\*δ .== f as one of the constraints in the @constraints macro, I am getting the following error. ERROR: MethodErro…

---

## [Creating new Julia environment with older version](https://discourse.julialang.org/t/creating-new-julia-environment-with-older-version/116865)

<div class="topic-metadata">

**Author:** [@John\_Finseth](https://discourse.julialang.org/u/John_Finseth)\
**Replies:** 4\
**Last updated:** [July 10, 2024, 11:53am UTC](https://discourse.julialang.org/t/creating-new-julia-environment-with-older-version/116865 "2024-07-10T11:53:30Z")

</div>

I currently have Julia 1.10.4, but I want to run Julia 1.7.3 from within VScode. I installed via juliaup, and my new install location is: "C:\\Users\\####\\.julia\\juliaup\\julia-1.7.3+0.x64.w64.mingw32\\bin\\julia.exe" Then,…

---

## [Is the JuliaCon 2024 website down?](https://discourse.julialang.org/t/is-the-juliacon-2024-website-down/116860)

<div class="topic-metadata">

**Author:** [@xiaoxi](https://discourse.julialang.org/u/xiaoxi)\
**Replies:** 1\
**Last updated:** [July 10, 2024, 9:04am UTC](https://discourse.julialang.org/t/is-the-juliacon-2024-website-down/116860 "2024-07-10T09:04:08Z")

</div>

---

## [Live Feeds](https://discourse.julialang.org/t/live-feeds/116861)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 0\
**Last updated:** [July 10, 2024, 9:03am UTC](https://discourse.julialang.org/t/live-feeds/116861 "2024-07-10T09:03:42Z")

</div>

We have multiple live feeds going:

---

## [Multiple Dispatch with Abstract Integer](https://discourse.julialang.org/t/multiple-dispatch-with-abstract-integer/116859)

<div class="topic-metadata">

**Author:** [@liopeer](https://discourse.julialang.org/u/liopeer)\
**Replies:** 4\
**Last updated:** [July 10, 2024, 8:22am UTC](https://discourse.julialang.org/t/multiple-dispatch-with-abstract-integer/116859 "2024-07-10T08:22:43Z")

</div>

Hey everyone, I created a struct UNet with an outer constructor and made it callable, but when trying to actually create an instance I get a MethodError that I don’t understand: I am type annotating ::Integer and ::Vect…

---

## [Iterator over all random elements without materialization](https://discourse.julialang.org/t/iterator-over-all-random-elements-without-materialization/116819)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 9\
**Last updated:** [July 10, 2024, 5:45am UTC](https://discourse.julialang.org/t/iterator-over-all-random-elements-without-materialization/116819 "2024-07-10T05:45:43Z")

</div>

Hi All, I have a specific question. I am working on abductive explanation of neural networks, f. Abductive explanation is a subset (let’s denote indices ii) of the input x guaranteeing that the model (neural network) pr…

---

## [Use ControlSystemIdentification.jl for a ModelingToolkit.jl model](https://discourse.julialang.org/t/use-controlsystemidentification-jl-for-a-modelingtoolkit-jl-model/116588)

<div class="topic-metadata">

**Author:** [@langestefan](https://discourse.julialang.org/u/langestefan)\
**Replies:** 7\
**Last updated:** [July 10, 2024, 4:21am UTC](https://discourse.julialang.org/t/use-controlsystemidentification-jl-for-a-modelingtoolkit-jl-model/116588 "2024-07-10T04:21:05Z")

</div>

Hi, I have an LTI model defined in ModelingToolkit.jl: @named T\_a\_out = TimeVaryingFunction(input\_funcs\[:T\_a\]) @named Φ\_hp\_out = TimeVaryingFunction(input\_funcs\[:Φ\_hp\]) @named Φ\_cv\_out = TimeVaryingFunction(input\_funcs…

---

## [JuliaCon 2024 Wednesday Digest](https://discourse.julialang.org/t/juliacon-2024-wednesday-digest/116850)

<div class="topic-metadata">

**Author:** [@rayegun](https://discourse.julialang.org/u/rayegun)\
**Replies:** 0\
**Last updated:** [July 10, 2024, 4:14am UTC](https://discourse.julialang.org/t/juliacon-2024-wednesday-digest/116850 "2024-07-10T04:14:44Z")

</div>

Hello again JuliaCon participants! If you were able to attend, we hope you had a very informative workshop day at JuliaCon 2024. We hope you are as excited as we are for the main schedule! Venue and location: The confe…

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

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