# Latest

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

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

**Page:** 508

---

## [Problem implementing perpendicular Neumann boundary conditions using MethodOfLines.jl](https://discourse.julialang.org/t/problem-implementing-perpendicular-neumann-boundary-conditions-using-methodoflines-jl/108925)

<div class="topic-metadata">

**Author:** [@aharbick](https://discourse.julialang.org/u/aharbick)\
**Replies:** 0\
**Last updated:** [January 17, 2024, 7:37pm UTC](https://discourse.julialang.org/t/problem-implementing-perpendicular-neumann-boundary-conditions-using-methodoflines-jl/108925 "2024-01-17T19:37:21Z")

</div>

I am currently bug-fixing a more complicated set of equations I am trying to solve using MethodOfLines.jl and I have narrowed down the current issue I am facing to a particular term which involves a perpendicular Neumann…

---

## [Counting the number of appearance of Tuples in a Vector](https://discourse.julialang.org/t/counting-the-number-of-appearance-of-tuples-in-a-vector/108901)

<div class="topic-metadata">

**Author:** [@blociss](https://discourse.julialang.org/u/blociss)\
**Replies:** 8\
**Last updated:** [January 17, 2024, 7:13pm UTC](https://discourse.julialang.org/t/counting-the-number-of-appearance-of-tuples-in-a-vector/108901 "2024-01-17T19:13:48Z")

</div>

Let vec = \[(“A”, “B”), (“A”, “C”), (“A”, “D”), (“B”, “C”), (“B”, “D”)\] be a vector. I want to count the number of appearance of each element at each step in the for loop. function count\_occurrences(vec) vect = \[\] …

---

## [Can declaring a field as const in a mutable struct require less memory?](https://discourse.julialang.org/t/can-declaring-a-field-as-const-in-a-mutable-struct-require-less-memory/108914)

<div class="topic-metadata">

**Author:** [@Tortar](https://discourse.julialang.org/u/Tortar)\
**Replies:** 4\
**Last updated:** [January 17, 2024, 7:09pm UTC](https://discourse.julialang.org/t/can-declaring-a-field-as-const-in-a-mutable-struct-require-less-memory/108914 "2024-01-17T19:09:52Z")

</div>

Currently declaring a field as const in a mutable struct doesn’t seem to do anything: julia\> mutable struct A x::Int end julia\> mutable struct B const x::Int end julia\> @allocated A…

---

## [Tables.jl / ERROR: MethodError: no method matching length(::var"#7#8"{TabOHLCV})](https://discourse.julialang.org/t/tables-jl-error-methoderror-no-method-matching-length-var-7-8-tabohlcv/108915)

<div class="topic-metadata">

**Author:** [@FemtoTrader](https://discourse.julialang.org/u/FemtoTrader)\
**Replies:** 7\
**Last updated:** [January 17, 2024, 7:08pm UTC](https://discourse.julialang.org/t/tables-jl-error-methoderror-no-method-matching-length-var-7-8-tabohlcv/108915 "2024-01-17T19:08:48Z")

</div>

Hello, I’ve some vectors defined like so const OPEN\_TMPL = \[ 10.81, 10.58, 10.07, 10.58, 10.56, 10.4, 10.74, 10.16, 10.29, 9.4, 9.62, 9.35, 8.64, 8.8, 8.31, …

---

## [How to Collect Data from a Async Call?](https://discourse.julialang.org/t/how-to-collect-data-from-a-async-call/50825)

<div class="topic-metadata">

**Author:** [@DataPsycho](https://discourse.julialang.org/u/DataPsycho)\
**Replies:** 5\
**Last updated:** [November 28, 2020, 5:46am UTC](https://discourse.julialang.org/t/how-to-collect-data-from-a-async-call/50825 "2020-11-28T05:46:54Z")

</div>

Hi, I have build a application where I have a function which collect data from a API call then store it to a Array as follows: using DotEnv, HTTP, JSON3 DotEnv.config(); # Function to collect data function collect\_dat…

---

## [Does Julia optimize code automatically?](https://discourse.julialang.org/t/does-julia-optimize-code-automatically/108913)

<div class="topic-metadata">

**Author:** [@MatheusJanczkowski](https://discourse.julialang.org/u/MatheusJanczkowski)\
**Replies:** 2\
**Last updated:** [January 17, 2024, 4:41pm UTC](https://discourse.julialang.org/t/does-julia-optimize-code-automatically/108913 "2024-01-17T16:41:04Z")

</div>

I have a piece of code as follows for i=1:n b = (M .+d\*N)\*v + (M\*g.+ N\*h)\*a end b, v and a are n x 1 vectors; while M and N are n x n matrices. d, g and h are constants that do not change during the loop as well …

---

## [Julia Makie plot with WCS coordinates](https://discourse.julialang.org/t/julia-makie-plot-with-wcs-coordinates/108917)

<div class="topic-metadata">

**Author:** [@Matt\_jl](https://discourse.julialang.org/u/Matt_jl)\
**Replies:** 2\
**Last updated:** [January 17, 2024, 4:36pm UTC](https://discourse.julialang.org/t/julia-makie-plot-with-wcs-coordinates/108917 "2024-01-17T16:36:55Z")

</div>

have a specific question regarding the Makie library In my work, I frequently deal with astronomical images that require the projection of the axes onto the World Coordinate System (WCS) of the map. I am aware that the …

---

## [Modeling and solving systems of nonlinear dynamic equations](https://discourse.julialang.org/t/modeling-and-solving-systems-of-nonlinear-dynamic-equations/108556)

<div class="topic-metadata">

**Author:** [@enzo.salvatore](https://discourse.julialang.org/u/enzo.salvatore)\
**Replies:** 11\
**Last updated:** [January 17, 2024, 3:48pm UTC](https://discourse.julialang.org/t/modeling-and-solving-systems-of-nonlinear-dynamic-equations/108556 "2024-01-17T15:48:08Z")

</div>

I am currently a Ph.D. student in economics, and I am looking to find a way to model and solve dynamic systems of nonlinear equations. The goal is to create a dynamic Computable General Equilibrium (CGE) model in Julia. …

---

## [Programmer humour](https://discourse.julialang.org/t/programmer-humour/108898)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 3\
**Last updated:** [January 17, 2024, 2:27pm UTC](https://discourse.julialang.org/t/programmer-humour/108898 "2024-01-17T14:27:52Z")

</div>

Definitely reminds me of threads on the Julia Discourse

---

## [Solving large convex optimization/flow assignment problem](https://discourse.julialang.org/t/solving-large-convex-optimization-flow-assignment-problem/108872)

<div class="topic-metadata">

**Author:** [@SuperGrobi](https://discourse.julialang.org/u/SuperGrobi)\
**Replies:** 7\
**Last updated:** [January 17, 2024, 2:13pm UTC](https://discourse.julialang.org/t/solving-large-convex-optimization-flow-assignment-problem/108872 "2024-01-17T14:13:09Z")

</div>

I am trying to solve a convex flow-assignment problem on a large(ish) graph with (currently) about 7000 edges. Mathematically, it looks like \\underset{x\\in\\mathbb{R}\_+^{|E|}}{\\text{minimize}} \\quad U(x) \\\\ U(x) = -l^T…

---

## [Non-constructor functions inside struct](https://discourse.julialang.org/t/non-constructor-functions-inside-struct/14078)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 11\
**Last updated:** [January 17, 2024, 1:52pm UTC](https://discourse.julialang.org/t/non-constructor-functions-inside-struct/14078 "2024-01-17T13:52:49Z")

</div>

I was trying to define a function which has access to new, but is different from the constructor. Consider this MnWE: julia\> struct Foo x::Int bar(x::Int) = new(x) end julia\> methods(bar) ERROR: Un…

---

## [LWFBrook90 simulation question](https://discourse.julialang.org/t/lwfbrook90-simulation-question/104193)

<div class="topic-metadata">

**Author:** [@JOY-8831](https://discourse.julialang.org/u/JOY-8831)\
**Replies:** 8\
**Last updated:** [January 17, 2024, 1:47pm UTC](https://discourse.julialang.org/t/lwfbrook90-simulation-question/104193 "2024-01-17T13:47:19Z")

</div>

Hi I am using LWFBrook 90 v1.9 to simulate the hydro-dynamics. These are the scripts I am using: using LWFBrook90 model1 = loadSPAC(input\_path, input\_prefix; simulate\_isotopes = false); simulation = setup(model1) si…

---

## ["Julia \[IncorrectCallArgs\]: Possible Method Call Error" in Emacs after Julia 1.10 Update](https://discourse.julialang.org/t/julia-incorrectcallargs-possible-method-call-error-in-emacs-after-julia-1-10-update/108113)

<div class="topic-metadata">

**Author:** [@ehsani63](https://discourse.julialang.org/u/ehsani63)\
**Replies:** 7\
**Last updated:** [January 17, 2024, 11:30am UTC](https://discourse.julialang.org/t/julia-incorrectcallargs-possible-method-call-error-in-emacs-after-julia-1-10-update/108113 "2024-01-17T11:30:00Z")

</div>

I’ve just updated to Julia 1.10 and have encountered an issue in Emacs (version 30) using eglot and eglot-jl. Specifically, I’m receiving flymake messages stating “Julia \[IncorrectCallArgs\]: Possible method call error” o…

---

## [Julia Circles Unicode Emoji](https://discourse.julialang.org/t/julia-circles-unicode-emoji/108539)

<div class="topic-metadata">

**Author:** [@svretina](https://discourse.julialang.org/u/svretina)\
**Replies:** 8\
**Last updated:** [January 17, 2024, 11:21am UTC](https://discourse.julialang.org/t/julia-circles-unicode-emoji/108539 "2024-01-17T11:21:22Z")

</div>

I wanted the julia circles logo for my personal website. Although this is possible to draw and include it as a picture, I wondered if there was a unicode character that I could use. It seems there is none. Is there inte…

---

## [Using CSV.read() to import data from a data input file into a DataFrame](https://discourse.julialang.org/t/using-csv-read-to-import-data-from-a-data-input-file-into-a-dataframe/77120)

<div class="topic-metadata">

**Author:** [@jjdegruijter](https://discourse.julialang.org/u/jjdegruijter)\
**Replies:** 27\
**Last updated:** [March 1, 2022, 7:38am UTC](https://discourse.julialang.org/t/using-csv-read-to-import-data-from-a-data-input-file-into-a-dataframe/77120 "2022-03-01T07:38:57Z")

</div>

In my homemade function ‘readdata()’ I have: Data = csv.read(filename; delim=‘,’, DataFrame) where ‘filename’ refers to one of my data inputfiles, named e.g. ‘instance.txt’. This resulted from my code in julia-1.0. W…

---

## [Internship in Switzerland - Julia and JuMP for railway transport](https://discourse.julialang.org/t/internship-in-switzerland-julia-and-jump-for-railway-transport/106466)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 0\
**Last updated:** [November 20, 2023, 2:15pm UTC](https://discourse.julialang.org/t/internship-in-switzerland-julia-and-jump-for-railway-transport/106466 "2023-11-20T14:15:33Z")

</div>

EDIT: the internship offer is no longer available Here’s a cool intership offer at Stadler that a colleague sent me (I don’t work there myself). They use mathematical programming in JuMP to optimize the energy consump…

---

## [Microsoft Phi model](https://discourse.julialang.org/t/microsoft-phi-model/108895)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 0\
**Last updated:** [January 17, 2024, 8:42am UTC](https://discourse.julialang.org/t/microsoft-phi-model/108895 "2024-01-17T08:42:50Z")

</div>

Is anyone up to porting (adding) microsoft phi model to Transformers.jl? I would like to use it for experiments (I am interested to make it a bert-like model). I have been using so far llama2-7b, but phi models seems sma…

---

## [Must the return value of a function be printed on the last line of the REPL? (when called without a \`;\`)](https://discourse.julialang.org/t/must-the-return-value-of-a-function-be-printed-on-the-last-line-of-the-repl-when-called-without-a/108867)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 7\
**Last updated:** [January 17, 2024, 4:04am UTC](https://discourse.julialang.org/t/must-the-return-value-of-a-function-be-printed-on-the-last-line-of-the-repl-when-called-without-a/108867 "2024-01-17T04:04:06Z")

</div>

function f(x, y) s = x + y println("Look! The sum is $s.") return s end When I call this function with f(1, 2) the REPL prints: julia\> f(1, 2) Look! The sum is 3. 3 But I want the function to print the res…

---

## [From MKL back to OpenBLAS](https://discourse.julialang.org/t/from-mkl-back-to-openblas/37722)

<div class="topic-metadata">

**Author:** [@martincornejo](https://discourse.julialang.org/u/martincornejo)\
**Replies:** 15\
**Last updated:** [January 17, 2024, 2:04am UTC](https://discourse.julialang.org/t/from-mkl-back-to-openblas/37722 "2024-01-17T02:04:06Z")

</div>

After building MKL on Julia. julia\>\]add https://github.com/JuliaComputing/MKL.jl julia\>\] build MKL Is there a way to set OpenBLAS back?

---

## [Sun elevation and moon phase](https://discourse.julialang.org/t/sun-elevation-and-moon-phase/74753)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 6\
**Last updated:** [January 16, 2024, 11:28pm UTC](https://discourse.julialang.org/t/sun-elevation-and-moon-phase/74753 "2024-01-16T23:28:26Z")

</div>

I need to know what the: sun elevation (and sunrise) moon phase moon elevation is as a function of date, time, and coordinates. I tried looking for an existing package in JuliaAstro, and it truly seems like all the p…

---

## [Guide to numerical integration methods?](https://discourse.julialang.org/t/guide-to-numerical-integration-methods/108704)

<div class="topic-metadata">

**Author:** [@mike.ingold](https://discourse.julialang.org/u/mike.ingold)\
**Replies:** 10\
**Last updated:** [January 16, 2024, 11:03pm UTC](https://discourse.julialang.org/t/guide-to-numerical-integration-methods/108704 "2024-01-16T23:03:20Z")

</div>

To pile on with a related question, as a EE without a particularly deep math background, @stevengj do you have any handy references for the different integration methods and their advantages/pitfalls? I find myself writ…

---

## [OhMyREPL: Bracket completion only when pasting into the REPL via screen](https://discourse.julialang.org/t/ohmyrepl-bracket-completion-only-when-pasting-into-the-repl-via-screen/108882)

<div class="topic-metadata">

**Author:** [@Tetrakai](https://discourse.julialang.org/u/Tetrakai)\
**Replies:** 0\
**Last updated:** [January 16, 2024, 9:37pm UTC](https://discourse.julialang.org/t/ohmyrepl-bracket-completion-only-when-pasting-into-the-repl-via-screen/108882 "2024-01-16T21:37:15Z")

</div>

This would normally work fine: paths = Dict(:A =\> "dirA", :B =\> "dirB") But I wanted to use screen to monitor the REPL session via another device. I then kept getting this error: julia\> paths = Dict(:A…

---

## [ArnoldiMethod: strange error](https://discourse.julialang.org/t/arnoldimethod-strange-error/108876)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 2\
**Last updated:** [January 16, 2024, 9:23pm UTC](https://discourse.julialang.org/t/arnoldimethod-strange-error/108876 "2024-01-16T21:23:53Z")

</div>

For those who are familiar with ArnoldiMethod.jl: This works function (SI::ShiftAndInvert)(y, x) mul!(SI.temp, SI.B, x) y .= SI.A\_factorization \\ SI.temp # x -\> PtL \\ (B \* (PtL' \\ x)), # y .= SI.A\_fact…

---

## [\[ANN\] LengthFreeStaticMatrices.jl - drop length parameters for static matrices](https://discourse.julialang.org/t/ann-lengthfreestaticmatrices-jl-drop-length-parameters-for-static-matrices/108235)

<div class="topic-metadata">

**Author:** [@brainandforce](https://discourse.julialang.org/u/brainandforce)\
**Replies:** 2\
**Last updated:** [January 16, 2024, 9:12pm UTC](https://discourse.julialang.org/t/ann-lengthfreestaticmatrices-jl-drop-length-parameters-for-static-matrices/108235 "2024-01-16T21:12:22Z")

</div>

In Electrum.jl, another package I maintain, I have a pervasive need to include SMatrix instances as part of data strucutures. However, this leads to a very annoying problem: because Julia cannot infer the length type par…

---

## [Special function (airy function) with arbitrary precision](https://discourse.julialang.org/t/special-function-airy-function-with-arbitrary-precision/108546)

<div class="topic-metadata">

**Author:** [@baizhan](https://discourse.julialang.org/u/baizhan)\
**Replies:** 9\
**Last updated:** [January 16, 2024, 8:31pm UTC](https://discourse.julialang.org/t/special-function-airy-function-with-arbitrary-precision/108546 "2024-01-16T20:31:34Z")

</div>

I am solving equations which requires to evaluate Airy function and its derivative at high precision. Although the package SpecialFunctions provides airyai and airyaiprime function, the airyaiprime does not accept BigF…

---

## [Generated LLVM code causes register spills on x86\_64](https://discourse.julialang.org/t/generated-llvm-code-causes-register-spills-on-x86-64/108144)

<div class="topic-metadata">

**Author:** [@akrishnamoorthy](https://discourse.julialang.org/u/akrishnamoorthy)\
**Replies:** 11\
**Last updated:** [January 16, 2024, 8:30pm UTC](https://discourse.julialang.org/t/generated-llvm-code-causes-register-spills-on-x86-64/108144 "2024-01-16T20:30:55Z")

</div>

This question concerns circshift implemented here, which is reproduced below. function circshift(x::Tuple, shift::Integer) @inline j = mod1(shift, length(x)) ntuple(k -\> \_\_safe\_getindex(x, k-j+ifelse(k\>j,0,l…

---

## [Chain.jl error](https://discourse.julialang.org/t/chain-jl-error/75970)

<div class="topic-metadata">

**Author:** [@Rahul](https://discourse.julialang.org/u/Rahul)\
**Replies:** 4\
**Last updated:** [January 16, 2024, 8:11pm UTC](https://discourse.julialang.org/t/chain-jl-error/75970 "2024-01-16T20:11:42Z")

</div>

@chain throws an error that I cannot understand. Please help. Thanks! Code and error below: julia\> a = DataFrame(x=1:10, y=2:11) 10×2 DataFrame Row │ x y │ Int64 Int64 ─────┼────────────── 1 │ …

---

## [Warning message from \`juliaup\` after updating to Apple Silicon](https://discourse.julialang.org/t/warning-message-from-juliaup-after-updating-to-apple-silicon/108878)

<div class="topic-metadata">

**Author:** [@jbshannon](https://discourse.julialang.org/u/jbshannon)\
**Replies:** 0\
**Last updated:** [January 16, 2024, 6:47pm UTC](https://discourse.julialang.org/t/warning-message-from-juliaup-after-updating-to-apple-silicon/108878 "2024-01-16T18:47:32Z")

</div>

This post is a summary of a Slack thread (thanks @davidanthoff) that I wanted to make more publicly available. I recently upgraded to an M1 Pro MacBook from an older Intel model and started getting a strange message eve…

---

## [Updated Julia and now I can't plot](https://discourse.julialang.org/t/updated-julia-and-now-i-cant-plot/108479)

<div class="topic-metadata">

**Author:** [@charperflow](https://discourse.julialang.org/u/charperflow)\
**Replies:** 28\
**Last updated:** [January 16, 2024, 5:46pm UTC](https://discourse.julialang.org/t/updated-julia-and-now-i-cant-plot/108479 "2024-01-16T17:46:16Z")

</div>

I am running arch linux using sway as my tiling compositor for wayland. The Arch Wiki recommends using the AUR version, so that is what I have installed on my machine. I updated to Julia 1.10.0, and now when I try to plo…

---

## [GLMakie Box(f\[1,1\]) hides Axis3 content](https://discourse.julialang.org/t/glmakie-box-f-1-1-hides-axis3-content/108868)

<div class="topic-metadata">

**Author:** [@p\_f](https://discourse.julialang.org/u/p_f)\
**Replies:** 5\
**Last updated:** [January 16, 2024, 5:21pm UTC](https://discourse.julialang.org/t/glmakie-box-f-1-1-hides-axis3-content/108868 "2024-01-16T17:21:12Z")

</div>

I’m using the Box function with different colours to differentiate between panels in my figure. The issue I’m having is that the Box hides the Axis3 lines and the axis contents. Is there a known way around this? I do re…

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

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