# Latest

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

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

**Page:** 1531

---

## [Doubt about using Clang.jl](https://discourse.julialang.org/t/doubt-about-using-clang-jl/36599)

<div class="topic-metadata">

**Author:** [@amCap1712](https://discourse.julialang.org/u/amCap1712)\
**Replies:** 15\
**Last updated:** [January 5, 2021, 7:18am UTC](https://discourse.julialang.org/t/doubt-about-using-clang-jl/36599 "2021-01-05T07:18:04Z")

</div>

I am trying to use to Clang.jl to parse header files for GNUAstro. GNUAstro has a dependency called wcslib. When I try to run the generated .jl file, I get the error that wcsperm is not defined. That makes sense because w…

---

## [Loading packages programmatically in a different module](https://discourse.julialang.org/t/loading-packages-programmatically-in-a-different-module/52777)

<div class="topic-metadata">

**Author:** [@felix](https://discourse.julialang.org/u/felix)\
**Replies:** 4\
**Last updated:** [January 5, 2021, 6:23am UTC](https://discourse.julialang.org/t/loading-packages-programmatically-in-a-different-module/52777 "2021-01-05T06:23:33Z")

</div>

Hello, for an experimental idea I would like to try to create and manipulate modules on the fly, including letting them use packages. I’m struggling to understand/get hints from the docs about this, so I wanted to ask fo…

---

## [Basic setup of HTTP server with MbedTLS](https://discourse.julialang.org/t/basic-setup-of-http-server-with-mbedtls/46233)

<div class="topic-metadata">

**Author:** [@mmiller](https://discourse.julialang.org/u/mmiller)\
**Replies:** 5\
**Last updated:** [January 5, 2021, 2:09am UTC](https://discourse.julialang.org/t/basic-setup-of-http-server-with-mbedtls/46233 "2021-01-05T02:09:02Z")

</div>

Could anyone please point me to an example where HTTP.jl and MbedTLS.jl are used to create a server with an https connection? Currently I’m trying to merge the docs of the two packages like this: function live(req) …

---

## [Access package documentation in REPL](https://discourse.julialang.org/t/access-package-documentation-in-repl/51262)

<div class="topic-metadata">

**Author:** [@devel-chm](https://discourse.julialang.org/u/devel-chm)\
**Replies:** 7\
**Last updated:** [January 5, 2021, 1:04am UTC](https://discourse.julialang.org/t/access-package-documentation-in-repl/51262 "2021-01-05T01:04:38Z")

</div>

Is there some way to view the package documentation from the REPL? If I use the help mode I get the following for an example: julia\> using TimeSeries \[ Info: Precompiling TimeSeries \[9e3dc215-6440-5c97-bce1-76c03772f…

---

## [Initialize buffer for ccall](https://discourse.julialang.org/t/initialize-buffer-for-ccall/52659)

<div class="topic-metadata">

**Author:** [@Jake](https://discourse.julialang.org/u/Jake)\
**Replies:** 12\
**Last updated:** [January 5, 2021, 12:47am UTC](https://discourse.julialang.org/t/initialize-buffer-for-ccall/52659 "2021-01-05T00:47:24Z")

</div>

I am using the Raspberry PI running Raspbian and Julia to interface with the MCC 172 DSP board. The MCC 172 has a complete c library. I am working on making those calls accessible to Julia using the ccall functionality…

---

## [Philosophy of programming](https://discourse.julialang.org/t/philosophy-of-programming/51922)

<div class="topic-metadata">

**Author:** [@vaeli](https://discourse.julialang.org/u/vaeli)\
**Replies:** 13\
**Last updated:** [January 5, 2021, 12:05am UTC](https://discourse.julialang.org/t/philosophy-of-programming/51922 "2021-01-05T00:05:50Z")

</div>

What is philosophy of programming is, when syntax is solved on the fact that something solves to certain mathematical formulae, to solve around it all the code so that the pretension holds, even if the content of the for…

---

## [Use of static array in a kernel function](https://discourse.julialang.org/t/use-of-static-array-in-a-kernel-function/52852)

<div class="topic-metadata">

**Author:** [@youngdae](https://discourse.julialang.org/u/youngdae)\
**Replies:** 1\
**Last updated:** [January 4, 2021, 11:12pm UTC](https://discourse.julialang.org/t/use-of-static-array-in-a-kernel-function/52852 "2021-01-04T23:12:11Z")

</div>

Can I use StaticArrays in a kernel function? I wanted to use registers allocated for each thread. I thought that SVector would do that for me so I tried the following simple function. But, it says the kernel is returning…

---

## [Taking an existing type as an argument](https://discourse.julialang.org/t/taking-an-existing-type-as-an-argument/52854)

<div class="topic-metadata">

**Author:** [@ckfinite](https://discourse.julialang.org/u/ckfinite)\
**Replies:** 0\
**Last updated:** [January 4, 2021, 10:32pm UTC](https://discourse.julialang.org/t/taking-an-existing-type-as-an-argument/52854 "2021-01-04T22:32:06Z")

</div>

I’m working on writing a wrapper for an existing sparse linear algebra library using CxxWrap.jl, and one of the functions takes a SuiteSparse (under a different name, but identical by design memory layout) sparse matrix …

---

## [Combinations across arrays](https://discourse.julialang.org/t/combinations-across-arrays/52847)

<div class="topic-metadata">

**Author:** [@danicaratelli](https://discourse.julialang.org/u/danicaratelli)\
**Replies:** 2\
**Last updated:** [January 4, 2021, 10:11pm UTC](https://discourse.julialang.org/t/combinations-across-arrays/52847 "2021-01-04T22:11:51Z")

</div>

I have three arrays: a=\[1,2,3\]; b=\[4,5,6\]; c=\[7,8,9\]; and I want to get all possible combinations across the three arrays with three elements, the first from a, the second from b, and the third from c. That is: result…

---

## [Seeking julia 1.6 binary for linux](https://discourse.julialang.org/t/seeking-julia-1-6-binary-for-linux/52846)

<div class="topic-metadata">

**Author:** [@Alex\_Ellison](https://discourse.julialang.org/u/Alex_Ellison)\
**Replies:** 2\
**Last updated:** [January 4, 2021, 8:56pm UTC](https://discourse.julialang.org/t/seeking-julia-1-6-binary-for-linux/52846 "2021-01-04T20:56:46Z")

</div>

Hey all, I see how one can download stable julia, old julia, or nightly julia. Right now, stable is 1.5.x and nightly appears to be just 1.7 (at least through the nightlies page). I really need 1.6. Is there somewhere t…

---

## [String Interpolation Question](https://discourse.julialang.org/t/string-interpolation-question/52752)

<div class="topic-metadata">

**Author:** [@Bryan\_So](https://discourse.julialang.org/u/Bryan_So)\
**Replies:** 4\
**Last updated:** [January 4, 2021, 7:14pm UTC](https://discourse.julialang.org/t/string-interpolation-question/52752 "2021-01-04T19:14:42Z")

</div>

HI, very simple beginner’s question about string interpolation: If a variable is a struct that has a Base.string method. Does string interpolation use that method? This is most curious: struct Expression\_Symbol d…

---

## [Need example of processing csv file in chunks](https://discourse.julialang.org/t/need-example-of-processing-csv-file-in-chunks/52833)

<div class="topic-metadata">

**Author:** [@asyrov](https://discourse.julialang.org/u/asyrov)\
**Replies:** 3\
**Last updated:** [January 4, 2021, 5:38pm UTC](https://discourse.julialang.org/t/need-example-of-processing-csv-file-in-chunks/52833 "2021-01-04T17:38:24Z")

</div>

I have big 10+GB files which I need to load and process line by line. I’m trying to use CSV package, but appears this package preload entire file. Can anyone help or point to example of code which works with big files?

---

## [List comprehension and integration of a function](https://discourse.julialang.org/t/list-comprehension-and-integration-of-a-function/52747)

<div class="topic-metadata">

**Author:** [@Nkrause](https://discourse.julialang.org/u/Nkrause)\
**Replies:** 5\
**Last updated:** [January 4, 2021, 5:15pm UTC](https://discourse.julialang.org/t/list-comprehension-and-integration-of-a-function/52747 "2021-01-04T17:15:24Z")

</div>

I’m currently attempting to integrate a function in Julia using QuadGK() of the following form. It’s computing the potential of a ring of charge in space. \\phi=\\int\_0^{2\\pi} \\frac{1}{\\sqrt{(x-cos(t))^2+(y-sin(t))^2+z^2)…

---

## [Polar plot gets cropped](https://discourse.julialang.org/t/polar-plot-gets-cropped/52802)

<div class="topic-metadata">

**Author:** [@Tofi](https://discourse.julialang.org/u/Tofi)\
**Replies:** 2\
**Last updated:** [January 4, 2021, 5:09pm UTC](https://discourse.julialang.org/t/polar-plot-gets-cropped/52802 "2021-01-04T17:09:48Z")

</div>

Hello, I’m trying to plot the trajectory of an object falling in a central gravitational potential well. The plot is obtained using the relation between r and θ by running the following code in the Jupyter notebook: us…

---

## [Overcoming Slow Scalar Operations on GPU Arrays](https://discourse.julialang.org/t/overcoming-slow-scalar-operations-on-gpu-arrays/49554)

<div class="topic-metadata">

**Author:** [@sazio](https://discourse.julialang.org/u/sazio)\
**Replies:** 19\
**Last updated:** [January 4, 2021, 5:00pm UTC](https://discourse.julialang.org/t/overcoming-slow-scalar-operations-on-gpu-arrays/49554 "2021-01-04T17:00:29Z")

</div>

Hi all, I’ve been trying to exploit GPU capabilities for solving a NeuralPDE with GalacticOptim.solve, but I’ve been stumbling into a problem related to scalar operations on GPU arrays. In line 123 I use the |\> gpu ope…

---

## [How are the hours-read statistics calculated?](https://discourse.julialang.org/t/how-are-the-hours-read-statistics-calculated/52790)

<div class="topic-metadata">

**Author:** [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Replies:** 8\
**Last updated:** [January 4, 2021, 4:34pm UTC](https://discourse.julialang.org/t/how-are-the-hours-read-statistics-calculated/52790 "2021-01-04T16:34:02Z")

</div>

Does anyone know how the hours-read statistics on Discourse are calculated? For example, my profile says Read 9d (1d recently) In other words, over what time periods are those two numbers measured? It seems I’ve been…

---

## [Why \`LAPACK.trtrs!\`, not \`BLAS.trsv!\`?](https://discourse.julialang.org/t/why-lapack-trtrs-not-blas-trsv/14239)

<div class="topic-metadata">

**Author:** [@dlfivefifty](https://discourse.julialang.org/u/dlfivefifty)\
**Replies:** 15\
**Last updated:** [September 3, 2018, 9:43am UTC](https://discourse.julialang.org/t/why-lapack-trtrs-not-blas-trsv/14239 "2018-09-03T09:43:28Z")

</div>

I was surprised to find out LAPACK and BLAS have different triangular solves: julia\> A = randn(5,5); b = randn(5); all((UpperTriangular(A)\\b) .=== BLAS.trsv('U', 'N', 'N', A, b)) false julia\> A = randn(5,5); b = randn(…

---

## [\[ANN\] gmsh.jl](https://discourse.julialang.org/t/ann-gmsh-jl/52742)

<div class="topic-metadata">

**Author:** [@koehlerson](https://discourse.julialang.org/u/koehlerson)\
**Replies:** 8\
**Last updated:** [January 4, 2021, 2:03pm UTC](https://discourse.julialang.org/t/ann-gmsh-jl/52742 "2021-01-04T14:03:54Z")

</div>

Hey there, I’ve built gmsh artifacts with Yggdrasil and BinaryBuilder and copy pasted the gmsh Julia API, such that everyone can use now the gmsh api without caring about a local gmsh installation. Further, I included …

---

## [Julia: symbol lookup error: julia: undefined symbol: jl\_uv\_stderr](https://discourse.julialang.org/t/julia-symbol-lookup-error-julia-undefined-symbol-jl-uv-stderr/52823)

<div class="topic-metadata">

**Author:** [@Steven\_Varga](https://discourse.julialang.org/u/Steven_Varga)\
**Replies:** 0\
**Last updated:** [January 4, 2021, 1:39pm UTC](https://discourse.julialang.org/t/julia-symbol-lookup-error-julia-undefined-symbol-jl-uv-stderr/52823 "2021-01-04T13:39:45Z")

</div>

Recently the following error message haphazardly crops up: julia: symbol lookup error: julia: undefined symbol: jl\_uv\_stderr, making everyday work frustrating. Various recent versions 1.5.2 - 1.5.3 of Julia has been comp…

---

## [Turing, Inexacterror for DiscreteUniform distribution, with NUTS sampler](https://discourse.julialang.org/t/turing-inexacterror-for-discreteuniform-distribution-with-nuts-sampler/52820)

<div class="topic-metadata">

**Author:** [@EvoArt](https://discourse.julialang.org/u/EvoArt)\
**Replies:** 5\
**Last updated:** [January 4, 2021, 1:05pm UTC](https://discourse.julialang.org/t/turing-inexacterror-for-discreteuniform-distribution-with-nuts-sampler/52820 "2021-01-04T13:05:47Z")

</div>

First off, thanks so much to everyone involved in making Turing and Julia great! Can’t stress enough how cool Turing is. Also, apologies if my question is not formatted correctly. I’v been getting the same inexact error…

---

## [Vector function representation](https://discourse.julialang.org/t/vector-function-representation/52779)

<div class="topic-metadata">

**Author:** [@shawnfrost](https://discourse.julialang.org/u/shawnfrost)\
**Replies:** 1\
**Last updated:** [January 4, 2021, 12:52pm UTC](https://discourse.julialang.org/t/vector-function-representation/52779 "2021-01-04T12:52:47Z")

</div>

Hi, Some background: I’m new to writing distributed programs and I’m trying to write a variation of the SSA algorithm in Julia. My system has a lot of reactions, and I need to calculate the propensity of these reactions…

---

## [NLsolve and OffsetArrays](https://discourse.julialang.org/t/nlsolve-and-offsetarrays/52740)

<div class="topic-metadata">

**Author:** [@cricci](https://discourse.julialang.org/u/cricci)\
**Replies:** 1\
**Last updated:** [January 4, 2021, 12:45pm UTC](https://discourse.julialang.org/t/nlsolve-and-offsetarrays/52740 "2021-01-04T12:45:42Z")

</div>

Does the package NLsolve support the use of OffsetArrays? It looks to me it does not. using NLsolve using OffsetArrays function f!(F,x) F\[1\] = 3\*x\[1\]-cos(x\[2\]\*x\[3\])-1/2 F\[2\] = x\[1\]^2-81\*(x\[2\]+0.1)^2+sin(x\[3\])…

---

## [@code\_warntype gives yellow ::Union{Nothing, Tuple{Int64,Int64}} in for loops](https://discourse.julialang.org/t/code-warntype-gives-yellow-union-nothing-tuple-int64-int64-in-for-loops/52814)

<div class="topic-metadata">

**Author:** [@claudio20497](https://discourse.julialang.org/u/claudio20497)\
**Replies:** 1\
**Last updated:** [January 4, 2021, 12:41pm UTC](https://discourse.julialang.org/t/code-warntype-gives-yellow-union-nothing-tuple-int64-int64-in-for-loops/52814 "2021-01-04T12:41:28Z")

</div>

Hello, I’d have the following usage question. If I have a function with a for loop inside, like: function f() for i in 1:2 end end And I call @code\_warntype on it, i get a yellow line: @code\_warntype f() V…

---

## [Compat bounds for "extras"](https://discourse.julialang.org/t/compat-bounds-for-extras/52819)

<div class="topic-metadata">

**Author:** [@tlienart](https://discourse.julialang.org/u/tlienart)\
**Replies:** 1\
**Last updated:** [January 4, 2021, 12:26pm UTC](https://discourse.julialang.org/t/compat-bounds-for-extras/52819 "2021-01-04T12:26:21Z")

</div>

Is there a way to add compat bounds for packages required only by the tests? I seem to remember a discussion about this a while back but can’t put my hand on it anymore. Edit: ah it might be https://github.com/JuliaLang…

---

## [@nloops with type parameter N](https://discourse.julialang.org/t/nloops-with-type-parameter-n/52733)

<div class="topic-metadata">

**Author:** [@roflmaostc](https://discourse.julialang.org/u/roflmaostc)\
**Replies:** 4\
**Last updated:** [January 4, 2021, 12:19pm UTC](https://discourse.julialang.org/t/nloops-with-type-parameter-n/52733 "2021-01-04T12:19:47Z")

</div>

Hey, I was trying to create a function body which contains @nloops N i A. However, the N depends on the dimension of the array. Following MWE: A = randn((2,2,2)) function foo(A::AbstractArray{T, N}) where {T, N} …

---

## [@btime introduces a new scope?](https://discourse.julialang.org/t/btime-introduces-a-new-scope/52818)

<div class="topic-metadata">

**Author:** [@Gus\_Hart](https://discourse.julialang.org/u/Gus_Hart)\
**Replies:** 1\
**Last updated:** [January 4, 2021, 11:38am UTC](https://discourse.julialang.org/t/btime-introduces-a-new-scope/52818 "2021-01-04T11:38:30Z")

</div>

I was trying to assess the big-O scaling (N vs N^2) for a couple of functions I had written. So I put @btime in a loop like this: But apparently, k is not in the scope of @btime. This is probably obvious to someone that…

---

## [XML to DataFrame (or just to a dict)](https://discourse.julialang.org/t/xml-to-dataframe-or-just-to-a-dict/52656)

<div class="topic-metadata">

**Author:** [@Gus\_Hart](https://discourse.julialang.org/u/Gus_Hart)\
**Replies:** 2\
**Last updated:** [January 4, 2021, 11:27am UTC](https://discourse.julialang.org/t/xml-to-dataframe-or-just-to-a-dict/52656 "2021-01-04T11:27:46Z")

</div>

In a simulation code that I use, the output is stored in a plain text file and in an xml file. I have been parsing the plain text myself, but some things are hard to extract (requiring complex logic). It would be nice if…

---

## [JuMP: allunique as a constraint?](https://discourse.julialang.org/t/jump-allunique-as-a-constraint/9569)

<div class="topic-metadata">

**Author:** [@yoeljacobsen](https://discourse.julialang.org/u/yoeljacobsen)\
**Replies:** 7\
**Last updated:** [January 4, 2021, 11:01am UTC](https://discourse.julialang.org/t/jump-allunique-as-a-constraint/9569 "2021-01-04T11:01:51Z")

</div>

How may I write a constraint for a list of variables requiring all to have unique integer values?

---

## [How to provide a macro in a module (package) as it would be used in the user code (i.e. with access to the user current scope)](https://discourse.julialang.org/t/how-to-provide-a-macro-in-a-module-package-as-it-would-be-used-in-the-user-code-i-e-with-access-to-the-user-current-scope/52815)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 1\
**Last updated:** [January 4, 2021, 10:33am UTC](https://discourse.julialang.org/t/how-to-provide-a-macro-in-a-module-package-as-it-would-be-used-in-the-user-code-i-e-with-access-to-the-user-current-scope/52815 "2021-01-04T10:33:00Z")

</div>

Let’s say I want to provide users with the above macro: macro customLoop(controlExpr,workExpr) return quote for i in $controlExpr $workExpr end end end If this macro is evaluated in Main then the user…

---

## [\[ANN\] PatModules.jl: a better module system for Julia](https://discourse.julialang.org/t/ann-patmodules-jl-a-better-module-system-for-julia/52226)

<div class="topic-metadata">

**Author:** [@patrick-kidger](https://discourse.julialang.org/u/patrick-kidger)\
**Replies:** 70\
**Last updated:** [January 4, 2021, 10:12am UTC](https://discourse.julialang.org/t/ann-patmodules-jl-a-better-module-system-for-julia/52226 "2021-01-04T10:12:38Z")

</div>

Hey folks. I’m new to Julia, and loving every aspect of it… except for ways of splitting code over multiple files and folders. There, I swiftly discovered that existing ways just don’t really seem to cut it. Julia prima…

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

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