# Latest

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

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

**Page:** 343

---

## [Functions and additional exclamation mark '!'](https://discourse.julialang.org/t/functions-and-additional-exclamation-mark/118198)

<div class="topic-metadata">

**Author:** [@EatMyShorts](https://discourse.julialang.org/u/EatMyShorts)\
**Replies:** 8\
**Last updated:** [August 14, 2024, 8:18pm UTC](https://discourse.julialang.org/t/functions-and-additional-exclamation-mark/118198 "2024-08-14T20:18:40Z")

</div>

Hello … While I was reading through some tutorials, I noticed a function call with an additional “!”. For example here (and also for my solved problem): MTH229 with Julia - 3 Graphing functions with Julia “Graphs can …

---

## [Efficiently filter rows while reading very large CSV-ish file](https://discourse.julialang.org/t/efficiently-filter-rows-while-reading-very-large-csv-ish-file/118157)

<div class="topic-metadata">

**Author:** [@evanfields](https://discourse.julialang.org/u/evanfields)\
**Replies:** 5\
**Last updated:** [August 14, 2024, 8:04pm UTC](https://discourse.julialang.org/t/efficiently-filter-rows-while-reading-very-large-csv-ish-file/118157 "2024-08-14T20:04:37Z")

</div>

I have a text file representing k-mer counts. It’s order of magnitude a billion lines long, 14 gigabytes gzipped. It looks like so (4 early rows shown by zless): AAAAAAAAAAAAAAAAAAAAGATTTTAAATATGCAAATTT 6 1 3 0 2 1 2 1 …

---

## [TypedTables innerjoin](https://discourse.julialang.org/t/typedtables-innerjoin/118199)

<div class="topic-metadata">

**Author:** [@Jake](https://discourse.julialang.org/u/Jake)\
**Replies:** 1\
**Last updated:** [August 14, 2024, 7:57pm UTC](https://discourse.julialang.org/t/typedtables-innerjoin/118199 "2024-08-14T19:57:59Z")

</div>

I am trying to do an innerjoin on a TypedTable. This is shown in the TypedTable tutorial and manual, and it is suggested that ?innerjoin will give the help for the function. On my Julia 1.10.4 I cannot find this functi…

---

## [Numerical-Code: Warnings and Errors due to scopes](https://discourse.julialang.org/t/numerical-code-warnings-and-errors-due-to-scopes/117946)

<div class="topic-metadata">

**Author:** [@EatMyShorts](https://discourse.julialang.org/u/EatMyShorts)\
**Replies:** 5\
**Last updated:** [August 10, 2024, 8:54pm UTC](https://discourse.julialang.org/t/numerical-code-warnings-and-errors-due-to-scopes/117946 "2024-08-10T20:54:08Z")

</div>

I am a newbie in Julia an I have written the following code: using LinearAlgebra using Plots t = 0; epsilon = 0.1; ########## initial data: Sod problem (rho,u,T) ########## Prim\_l = \[1 0 1\];…

---

## [\[ANN\] TruncatedStreams.jl - Streams that lie about EOF](https://discourse.julialang.org/t/ann-truncatedstreams-jl-streams-that-lie-about-eof/118197)

<div class="topic-metadata">

**Author:** [@reallyasi9](https://discourse.julialang.org/u/reallyasi9)\
**Replies:** 0\
**Last updated:** [August 14, 2024, 7:16pm UTC](https://discourse.julialang.org/t/ann-truncatedstreams-jl-streams-that-lie-about-eof/118197 "2024-08-14T19:16:07Z")

</div>

Synopsis TruncatedStreams.jl provides types that meet the following four criteria: Inherit from Base.IO; Transparently pass all basic IO methods through to a wrapped IO object, except… Lie about eof and… Do not read a …

---

## [Can't get NeuralPDE Example code to run](https://discourse.julialang.org/t/cant-get-neuralpde-example-code-to-run/118196)

<div class="topic-metadata">

**Author:** [@ericchenanp](https://discourse.julialang.org/u/ericchenanp)\
**Replies:** 0\
**Last updated:** [August 14, 2024, 5:58pm UTC](https://discourse.julialang.org/t/cant-get-neuralpde-example-code-to-run/118196 "2024-08-14T17:58:37Z")

</div>

Hi folks! I’m trying to get the example code for the NeuralPDE package up and running, but copy/pasting it returns the following: ERROR: DivideError: integer division error Does anyone know what I’m doing wrong, or wh…

---

## [Shouldn't \`@views sum(data\[mask\])\` be non-allocating?](https://discourse.julialang.org/t/shouldnt-views-sum-data-mask-be-non-allocating/118135)

<div class="topic-metadata">

**Author:** [@artemsolod](https://discourse.julialang.org/u/artemsolod)\
**Replies:** 19\
**Last updated:** [August 14, 2024, 5:27pm UTC](https://discourse.julialang.org/t/shouldnt-views-sum-data-mask-be-non-allocating/118135 "2024-08-14T17:27:09Z")

</div>

I was surprised to see the following function allocates - is this expected? using BenchmarkTools function f\_viewalloc(data, mask) @views sum(data\[mask\]) end let N = 1\_000\_000 data = fill(true, N) mask = fi…

---

## [Split path to its parts](https://discourse.julialang.org/t/split-path-to-its-parts/15427)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 9\
**Last updated:** [August 14, 2024, 5:10pm UTC](https://discourse.julialang.org/t/split-path-to-its-parts/15427 "2024-08-14T17:10:27Z")

</div>

I want to split a path into all its directory names. On Linux I would achieve this with split and a the path separator of /: julia\> split("/home/me/some/thing", '/') 5-element Array{SubString{String},1}: ""…

---

## [Test Julia 1.11 in CI](https://discourse.julialang.org/t/test-julia-1-11-in-ci/118186)

<div class="topic-metadata">

**Author:** [@hhaensel](https://discourse.julialang.org/u/hhaensel)\
**Replies:** 1\
**Last updated:** [August 14, 2024, 3:10pm UTC](https://discourse.julialang.org/t/test-julia-1-11-in-ci/118186 "2024-08-14T15:10:12Z")

</div>

Somehow, I am unable to have CI.yml test Julia version ‘1.11’. The error I receive is Could not find a Julia version that matches 1.11 My CI.yml matrix looks like this: matrix: version: - '1.6…

---

## [Integration on an ordered domain](https://discourse.julialang.org/t/integration-on-an-ordered-domain/118180)

<div class="topic-metadata">

**Author:** [@IlliaFaraji](https://discourse.julialang.org/u/IlliaFaraji)\
**Replies:** 3\
**Last updated:** [August 14, 2024, 2:55pm UTC](https://discourse.julialang.org/t/integration-on-an-ordered-domain/118180 "2024-08-14T14:55:00Z")

</div>

I want to carry out an integral of this form \\int\_{0}^{\\infty} \\int\_{0}^{t\_{n}} \\ldots \\int\_{0}^{t\_2} \\ f(s\_1, \\ldots, s\_n)\\, \\mathrm{d}s\_1 \\ldots \\mathrm{d}s\_n , for n \\approx 10. The domain of integration here is S=…

---

## [Remove a field from a \`NamedTuple\`](https://discourse.julialang.org/t/remove-a-field-from-a-namedtuple/34664)

<div class="topic-metadata">

**Author:** [@ssfrr](https://discourse.julialang.org/u/ssfrr)\
**Replies:** 10\
**Last updated:** [August 14, 2024, 2:31pm UTC](https://discourse.julialang.org/t/remove-a-field-from-a-namedtuple/34664 "2024-08-14T14:31:06Z")

</div>

Is there an easy way in base Julia to create a NamedTuple with all the fields except some particular ones? Currently I have the following, but I’m wondering if I’m missing something obvious. I’m calling it delete as it s…

---

## [Convolution (conv) with same size output](https://discourse.julialang.org/t/convolution-conv-with-same-size-output/38260)

<div class="topic-metadata">

**Author:** [@ElectronicTeaCup](https://discourse.julialang.org/u/ElectronicTeaCup)\
**Replies:** 20\
**Last updated:** [August 14, 2024, 1:33pm UTC](https://discourse.julialang.org/t/convolution-conv-with-same-size-output/38260 "2024-08-14T13:33:58Z")

</div>

Is there a way of using conv(a, b) to produce an output of the same size (as vector a) output? (Like the MATLAB option conv(a, b, 'same')) I was advised by @staticfloat to pad vector to the length size(a) .+ size(b) .- …

---

## [How to call functions/use symbols from a static library archive using FFI](https://discourse.julialang.org/t/how-to-call-functions-use-symbols-from-a-static-library-archive-using-ffi/118136)

<div class="topic-metadata">

**Author:** [@sivakon](https://discourse.julialang.org/u/sivakon)\
**Replies:** 1\
**Last updated:** [August 14, 2024, 1:25pm UTC](https://discourse.julialang.org/t/how-to-call-functions-use-symbols-from-a-static-library-archive-using-ffi/118136 "2024-08-14T13:25:27Z")

</div>

Currently the docs only show shared library, how can I use ccall to import symbols from an archive .a?

---

## [How to reuse julia compiled cache across machines?](https://discourse.julialang.org/t/how-to-reuse-julia-compiled-cache-across-machines/117149)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 8\
**Last updated:** [August 14, 2024, 10:54am UTC](https://discourse.julialang.org/t/how-to-reuse-julia-compiled-cache-across-machines/117149 "2024-08-14T10:54:55Z")

</div>

Hello, I’d like to cache the julia package compilation in an external volume which can be read and written to by multiple clients (using a respective kubernetes volume) . My question is whether it is enough to bring t…

---

## [Compat entries for weakdeps on Julia \<1.9](https://discourse.julialang.org/t/compat-entries-for-weakdeps-on-julia-1-9/118172)

<div class="topic-metadata">

**Author:** [@penelopeysm](https://discourse.julialang.org/u/penelopeysm)\
**Replies:** 2\
**Last updated:** [August 14, 2024, 1:22pm UTC](https://discourse.julialang.org/t/compat-entries-for-weakdeps-on-julia-1-9/118172 "2024-08-14T13:22:39Z")

</div>

Hello, I’m running into some trouble trying to get compatible versions of packages on old versions of Julia. This situation could, in principle, arise with any package that uses extensions. However, to use a specific ex…

---

## [How to define a vector of Function?](https://discourse.julialang.org/t/how-to-define-a-vector-of-function/118176)

<div class="topic-metadata">

**Author:** [@tomtom](https://discourse.julialang.org/u/tomtom)\
**Replies:** 11\
**Last updated:** [August 14, 2024, 12:01pm UTC](https://discourse.julialang.org/t/how-to-define-a-vector-of-function/118176 "2024-08-14T12:01:11Z")

</div>

I’m trying to define a Vector{Function} like this: funvec = Vector{Function}(undef, 3); for i in 1:3 fun(theta) = (println(i); cos(theta\[1\] ^ 3) + 5 \* (theta\[2\] ^ 2) + 10sin(theta\[3\]) ) funvec\[i\] = fun end howe…

---

## [Surrogates.jl: How to get the effect of "forgetting" or decaying importance of old observations?](https://discourse.julialang.org/t/surrogates-jl-how-to-get-the-effect-of-forgetting-or-decaying-importance-of-old-observations/118178)

<div class="topic-metadata">

**Author:** [@A112s](https://discourse.julialang.org/u/A112s)\
**Replies:** 0\
**Last updated:** [August 14, 2024, 11:55am UTC](https://discourse.julialang.org/t/surrogates-jl-how-to-get-the-effect-of-forgetting-or-decaying-importance-of-old-observations/118178 "2024-08-14T11:55:05Z")

</div>

I want to use Surrogates.jl to select hyperparameters for a function, which I know that behaves its behavior significantly over time. Is there a built-in way to model such process with Surrogates.jl?

---

## [How to run a final function when either program fails or user crtl + c?](https://discourse.julialang.org/t/how-to-run-a-final-function-when-either-program-fails-or-user-crtl-c/118174)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 3\
**Last updated:** [August 14, 2024, 11:22am UTC](https://discourse.julialang.org/t/how-to-run-a-final-function-when-either-program-fails-or-user-crtl-c/118174 "2024-08-14T11:22:06Z")

</div>

Hello! I was wondering if there was some way to run a final function when either the program fails due to for example division by zero or when an user chooses to terminate a program? The first bit, running something wh…

---

## [DiffOpt - differentiating through a QP/different from manual](https://discourse.julialang.org/t/diffopt-differentiating-through-a-qp-different-from-manual/118141)

<div class="topic-metadata">

**Author:** [@blob](https://discourse.julialang.org/u/blob)\
**Replies:** 3\
**Last updated:** [August 14, 2024, 9:34am UTC](https://discourse.julialang.org/t/diffopt-differentiating-through-a-qp-different-from-manual/118141 "2024-08-14T09:34:30Z")

</div>

I want to differentiate through a QP following the tutorial from DiffOpt. The QP in question: I would like to differentiate wrt to h, q, and G. I do that in three ways: Using the paper cited on DiffOpt website: dwh,…

---

## [How to improve the scaling of Julia code aimed at multi-node parallelization?](https://discourse.julialang.org/t/how-to-improve-the-scaling-of-julia-code-aimed-at-multi-node-parallelization/118048)

<div class="topic-metadata">

**Author:** [@Uranium238](https://discourse.julialang.org/u/Uranium238)\
**Replies:** 38\
**Last updated:** [August 14, 2024, 8:56am UTC](https://discourse.julialang.org/t/how-to-improve-the-scaling-of-julia-code-aimed-at-multi-node-parallelization/118048 "2024-08-14T08:56:08Z")

</div>

I have been trying to write a version of my Julia code that can be run in a parallelized manner using multiple nodes at once. After posting this thread I finally have a working version of the code (as given below) Code …

---

## [Wrapper type of static array, how to expose iterator](https://discourse.julialang.org/t/wrapper-type-of-static-array-how-to-expose-iterator/118124)

<div class="topic-metadata">

**Author:** [@NatMath](https://discourse.julialang.org/u/NatMath)\
**Replies:** 4\
**Last updated:** [August 14, 2024, 8:20am UTC](https://discourse.julialang.org/t/wrapper-type-of-static-array-how-to-expose-iterator/118124 "2024-08-14T08:20:18Z")

</div>

I’m working on a raytracer where I need a Point type, which is just a wrapper over StaticArray that has different properties when transformed than a vector. My current implementation is as follows: struct Point{N, T\<:Nu…

---

## [Seeking Insights: Approaches for Implementing Real-Time AI Analytics in Julia](https://discourse.julialang.org/t/seeking-insights-approaches-for-implementing-real-time-ai-analytics-in-julia/118163)

<div class="topic-metadata">

**Author:** [@adelenoble](https://discourse.julialang.org/u/adelenoble)\
**Replies:** 0\
**Last updated:** [August 14, 2024, 7:18am UTC](https://discourse.julialang.org/t/seeking-insights-approaches-for-implementing-real-time-ai-analytics-in-julia/118163 "2024-08-14T07:18:11Z")

</div>

Hello community, I am exploring the implementation of real-time AI analytic using the Julia programming language and would love to gather insights from those with experience in this area. Specifically, I am interested …

---

## [Why does \`show\` for arrays and dictionaries ignore \`:compact\`?](https://discourse.julialang.org/t/why-does-show-for-arrays-and-dictionaries-ignore-compact/118159)

<div class="topic-metadata">

**Author:** [@matthias314](https://discourse.julialang.org/u/matthias314)\
**Replies:** 6\
**Last updated:** [August 14, 2024, 5:43am UTC](https://discourse.julialang.org/t/why-does-show-for-arrays-and-dictionaries-ignore-compact/118159 "2024-08-14T05:43:30Z")

</div>

The documentation for IOContext says :compact output should not contain line breaks However, this is ignored by arrays and dictionaries: julia\> show(IOContext(stdout, :compact =\> true), MIME"text/plain"(), \[1, 2\]) 2…

---

## [Block triangular matrix in Convex.jl](https://discourse.julialang.org/t/block-triangular-matrix-in-convex-jl/118147)

<div class="topic-metadata">

**Author:** [@jens-rataczak](https://discourse.julialang.org/u/jens-rataczak)\
**Replies:** 2\
**Last updated:** [August 13, 2024, 10:27pm UTC](https://discourse.julialang.org/t/block-triangular-matrix-in-convex-jl/118147 "2024-08-13T22:27:53Z")

</div>

Hello, Is there a straightforward way to constrain a variable in Convex.jl to be block triangular (either upper or lower)? I am looking for something like YALMIP’s blkvar command. It seems rather tedious to constrain th…

---

## [ERROR: The objective function (erf) is not supported by JuMP](https://discourse.julialang.org/t/error-the-objective-function-erf-is-not-supported-by-jump/48302)

<div class="topic-metadata">

**Author:** [@BuRanran](https://discourse.julialang.org/u/BuRanran)\
**Replies:** 6\
**Last updated:** [August 13, 2024, 10:17pm UTC](https://discourse.julialang.org/t/error-the-objective-function-erf-is-not-supported-by-jump/48302 "2024-08-13T22:17:46Z")

</div>

I have a non-linear optimization problem to be solved with JuMP and IPOPT solver. The objective function is a probability distribution function of a normal distribution. It can be optimized by IPOPT directly, but not sup…

---

## [Summary of piping/chaining proposal?](https://discourse.julialang.org/t/summary-of-piping-chaining-proposal/91442)

<div class="topic-metadata">

**Author:** [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Replies:** 23\
**Last updated:** [August 13, 2024, 10:04pm UTC](https://discourse.julialang.org/t/summary-of-piping-chaining-proposal/91442 "2024-08-13T22:04:26Z")

</div>

There’s been a lot of posts about piping/chaining syntax, including: Allowing the object.method(args...) syntax as an alias for method(object, args ...) Fixing the Piping/Chaining Issue Fixing the Piping/Chaining/Parti…

---

## [Makie text word\_wrap\_width unit](https://discourse.julialang.org/t/makie-text-word-wrap-width-unit/118144)

<div class="topic-metadata">

**Author:** [@NicoD](https://discourse.julialang.org/u/NicoD)\
**Replies:** 1\
**Last updated:** [August 13, 2024, 8:46pm UTC](https://discourse.julialang.org/t/makie-text-word-wrap-width-unit/118144 "2024-08-13T20:46:54Z")

</div>

Hi, in Makie the text plot has a word\_wrap\_width argument used to wrap if its width goes over a certain limit. It works fine but there is no indication on the unit of this value. It seems to be related to pixels and wi…

---

## [Unfamiliar error](https://discourse.julialang.org/t/unfamiliar-error/117684)

<div class="topic-metadata">

**Author:** [@coverton](https://discourse.julialang.org/u/coverton)\
**Replies:** 9\
**Last updated:** [August 13, 2024, 8:35pm UTC](https://discourse.julialang.org/t/unfamiliar-error/117684 "2024-08-13T20:35:39Z")

</div>

I am receiving an error that I can find no documentation on. While running a GeneralizedLinearMixedModel using JuliaCall/RCall I am getting this error: number of averaging steps \> 10 with the following Stacktrace: S…

---

## [\[ANN\] ArnoldiMethod.jl v0.4](https://discourse.julialang.org/t/ann-arnoldimethod-jl-v0-4/110604)

<div class="topic-metadata">

**Author:** [@stabbles](https://discourse.julialang.org/u/stabbles)\
**Replies:** 9\
**Last updated:** [August 13, 2024, 6:59pm UTC](https://discourse.julialang.org/t/ann-arnoldimethod-jl-v0-4/110604 "2024-08-13T18:59:27Z")

</div>

Hi all, I’ve release ArnoldiMethod v0.3.5 and v0.4.0 recently, after a relatively long break from writing Julia code. See GitHub - JuliaLinearAlgebra/ArnoldiMethod.jl: The Arnoldi Method with Krylov-Schur restart, nativ…

---

## [How to compile special characters in function name, like δ, by Documenter.jl?](https://discourse.julialang.org/t/how-to-compile-special-characters-in-function-name-like-by-documenter-jl/118070)

<div class="topic-metadata">

**Author:** [@XuJingye2022](https://discourse.julialang.org/u/XuJingye2022)\
**Replies:** 1\
**Last updated:** [August 13, 2024, 6:41pm UTC](https://discourse.julialang.org/t/how-to-compile-special-characters-in-function-name-like-by-documenter-jl/118070 "2024-08-13T18:41:57Z")

</div>

Hello, I encountered an issure while writing my documentation by Documenter.jl. And it seems that there are no corresponding examples in the official documentation. There exists a ∇ character in my function name and it’…

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

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