# Latest

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

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

**Page:** 1140

---

## [Visual Studio Code -- too much in REPL](https://discourse.julialang.org/t/visual-studio-code-too-much-in-repl/75349)

<div class="topic-metadata">

**Author:** [@mgp](https://discourse.julialang.org/u/mgp)\
**Replies:** 6\
**Last updated:** [January 28, 2022, 10:06am UTC](https://discourse.julialang.org/t/visual-studio-code-too-much-in-repl/75349 "2022-01-28T10:06:07Z")

</div>

I’ve just switched from using Atom to Visual Studio Code. My only complaint with it is that I see so much output in the REPL window. function f(x, y, z) a = rand(Float64, (x, y, z)) @warn "You should know about thi…

---

## [Julia program obfuscation for commercial code](https://discourse.julialang.org/t/julia-program-obfuscation-for-commercial-code/75174)

<div class="topic-metadata">

**Author:** [@maharvey](https://discourse.julialang.org/u/maharvey)\
**Replies:** 19\
**Last updated:** [January 28, 2022, 9:45am UTC](https://discourse.julialang.org/t/julia-program-obfuscation-for-commercial-code/75174 "2022-01-28T09:45:24Z")

</div>

Hi there, I thought I rather not revive the 2 year old thread here on the topic. I just wanted to share the solution which works for us. In our case, the julia code is called from a C/C++ program, so the simplest way I …

---

## [Redirect\_stdout fails to restore ccall prints](https://discourse.julialang.org/t/redirect-stdout-fails-to-restore-ccall-prints/75262)

<div class="topic-metadata">

**Author:** [@Codzilla](https://discourse.julialang.org/u/Codzilla)\
**Replies:** 9\
**Last updated:** [January 28, 2022, 8:16am UTC](https://discourse.julialang.org/t/redirect-stdout-fails-to-restore-ccall-prints/75262 "2022-01-28T08:16:51Z")

</div>

There is probably something that I don’t understand with redirect\_stdout but if I try using it and returning to the normal stdout it doesn’t work for ccall outputs. (using IJulia and Jupyter notebook with Julia Version 1…

---

## [How to delete a Gurobi logfile](https://discourse.julialang.org/t/how-to-delete-a-gurobi-logfile/75292)

<div class="topic-metadata">

**Author:** [@sebastian\_22](https://discourse.julialang.org/u/sebastian_22)\
**Replies:** 2\
**Last updated:** [January 28, 2022, 7:42am UTC](https://discourse.julialang.org/t/how-to-delete-a-gurobi-logfile/75292 "2022-01-28T07:42:46Z")

</div>

I have a model which runs multiple times with different input data. For each run I create a folder and place the Gurobi-Logfile within, by passing the Logfile-parameter to the optimizer after creating the model. After t…

---

## [Check Julia Application is 32- or 64-bit](https://discourse.julialang.org/t/check-julia-application-is-32-or-64-bit/75341)

<div class="topic-metadata">

**Author:** [@ThummeTo](https://discourse.julialang.org/u/ThummeTo)\
**Replies:** 2\
**Last updated:** [January 28, 2022, 7:36am UTC](https://discourse.julialang.org/t/check-julia-application-is-32-or-64-bit/75341 "2022-01-28T07:36:19Z")

</div>

Hello everyone, I think there is a pretty easy solution, but I don’t find it on Discourse.JuliaLang or Google: I want to check, if the Julia application that currently runs, is Julia 32- or 64-bit. Important: I need t…

---

## [Fail to execute startup.jl](https://discourse.julialang.org/t/fail-to-execute-startup-jl/39936)

<div class="topic-metadata">

**Author:** [@Philippe\_Maincon1](https://discourse.julialang.org/u/Philippe_Maincon1)\
**Replies:** 18\
**Last updated:** [January 28, 2022, 6:21am UTC](https://discourse.julialang.org/t/fail-to-execute-startup-jl/39936 "2022-01-28T06:21:12Z")

</div>

I have just installed Julia 1.4.1 on Windows. I have a trusty startup.jl file in C:\\Users\\myuser\\.julia\\config I can directly execute the file, but on \[re\]starting Julia (CTRL+j,k) startup.jl is not executed. The doc …

---

## [Can I compile native C programs on Julia CI?](https://discourse.julialang.org/t/can-i-compile-native-c-programs-on-julia-ci/75340)

<div class="topic-metadata">

**Author:** [@melonedo](https://discourse.julialang.org/u/melonedo)\
**Replies:** 2\
**Last updated:** [January 28, 2022, 5:27am UTC](https://discourse.julialang.org/t/can-i-compile-native-c-programs-on-julia-ci/75340 "2022-01-28T05:27:28Z")

</div>

When I am developing Clang.jl, a package which bridges C and Julia, I find it necessary that I test the generated wrapper against C libraries. Apart from testing on existing libraries shipped with jll packages, one way i…

---

## [A Union of Tuple types isa Tuple type ?!](https://discourse.julialang.org/t/a-union-of-tuple-types-isa-tuple-type/75339)

<div class="topic-metadata">

**Author:** [@ablaom](https://discourse.julialang.org/u/ablaom)\
**Replies:** 3\
**Last updated:** [January 28, 2022, 5:25am UTC](https://discourse.julialang.org/t/a-union-of-tuple-types-isa-tuple-type/75339 "2022-01-28T05:25:42Z")

</div>

So, what’s the rationale for the following behaviour, which caught me by surprise: julia\> Union{Tuple{Int}, Tuple{Char}} \<: Tuple true

---

## [FLoops + CUDAEx(): accumulator type must be \`isbits\` or \`isbitsunion\`; got: Union{}](https://discourse.julialang.org/t/floops-cudaex-accumulator-type-must-be-isbits-or-isbitsunion-got-union/74865)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 2\
**Last updated:** [January 28, 2022, 4:27am UTC](https://discourse.julialang.org/t/floops-cudaex-accumulator-type-must-be-isbits-or-isbitsunion-got-union/74865 "2022-01-28T04:27:14Z")

</div>

I’m trying my first small codes with CUDA, and using the FLoops interface. I am probably missing the basics here, so a brief explanation of this error will probably illuminate my path: julia\> using CUDA, FLoops, FoldsCU…

---

## [\[JSON3\] Order of the fields](https://discourse.julialang.org/t/json3-order-of-the-fields/75331)

<div class="topic-metadata">

**Author:** [@whatsthecraic](https://discourse.julialang.org/u/whatsthecraic)\
**Replies:** 3\
**Last updated:** [January 28, 2022, 3:31am UTC](https://discourse.julialang.org/t/json3-order-of-the-fields/75331 "2022-01-28T03:31:33Z")

</div>

Hi, is there a way to specify the order of the fields when writing with JSON3. E.g. in julia 1.7, JSON3.pretty(Dict("a" =\> 1, "b" =\> 2, "c" =\> 3, "d" =\> 4)) yields { "c": 3, "b": 2, "a": 1, "d": 4 } while…

---

## [Evaluating @view macro before @tturbo](https://discourse.julialang.org/t/evaluating-view-macro-before-tturbo/75320)

<div class="topic-metadata">

**Author:** [@Chiil](https://discourse.julialang.org/u/Chiil)\
**Replies:** 1\
**Last updated:** [January 27, 2022, 11:54pm UTC](https://discourse.julialang.org/t/evaluating-view-macro-before-tturbo/75320 "2022-01-27T23:54:04Z")

</div>

I am revising a piece of code where I am removing unnecessary copies by creating views. At places where I have @tturbo decorators, I get errors because LoopVectorization does not like the @view. Is it possible to make th…

---

## [LoadError: MethodError: no method matching Float64(::ForwardDiff.Dual{ForwardDiff.Tag{OrdinaryDiffEq.OrdinaryDiffEqTag, Float64}, Float64, 11})](https://discourse.julialang.org/t/loaderror-methoderror-no-method-matching-float64-forwarddiff-dual-forwarddiff-tag-ordinarydiffeq-ordinarydiffeqtag-float64-float64-11/75295)

<div class="topic-metadata">

**Author:** [@fdc](https://discourse.julialang.org/u/fdc)\
**Replies:** 2\
**Last updated:** [January 27, 2022, 11:42pm UTC](https://discourse.julialang.org/t/loaderror-methoderror-no-method-matching-float64-forwarddiff-dual-forwarddiff-tag-ordinarydiffeq-ordinarydiffeqtag-float64-float64-11/75295 "2022-01-27T23:42:43Z")

</div>

Hi, I’m trying to solve a relatively large system of ODE with some constraints (hence DAE) using the manifold projection method provided by Julia. My model contains some aerodynamics with large angles that means I could…

---

## [Errors with autodiff in a for loop](https://discourse.julialang.org/t/errors-with-autodiff-in-a-for-loop/75283)

<div class="topic-metadata">

**Author:** [@adeyemiadeoye](https://discourse.julialang.org/u/adeyemiadeoye)\
**Replies:** 2\
**Last updated:** [January 27, 2022, 10:51pm UTC](https://discourse.julialang.org/t/errors-with-autodiff-in-a-for-loop/75283 "2022-01-27T22:51:53Z")

</div>

While implementing an on-line optimization method (with a for loop to access some new data), I am using HesVec() and JacVec() of SparseDiffTools.jl to compute sparse Hessian and Jacobian matrices with option autodiff=fal…

---

## [Could this be faster using some decomposition?](https://discourse.julialang.org/t/could-this-be-faster-using-some-decomposition/75323)

<div class="topic-metadata">

**Author:** [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Replies:** 4\
**Last updated:** [January 27, 2022, 10:02pm UTC](https://discourse.julialang.org/t/could-this-be-faster-using-some-decomposition/75323 "2022-01-27T22:02:00Z")

</div>

Hi, This is more maths than Julia optimisation, but I do not recall if there is a trick in the linear algebra book to make this more efficiently. I have a covariance matrix M, of size (2000,2000), and i want to normali…

---

## [ERROR: LoadError: AssertionError: Target platform is Windows, but can't find valid FMU binary](https://discourse.julialang.org/t/error-loaderror-assertionerror-target-platform-is-windows-but-cant-find-valid-fmu-binary/75312)

<div class="topic-metadata">

**Author:** [@Amro](https://discourse.julialang.org/u/Amro)\
**Replies:** 0\
**Last updated:** [January 27, 2022, 7:09pm UTC](https://discourse.julialang.org/t/error-loaderror-assertionerror-target-platform-is-windows-but-cant-find-valid-fmu-binary/75312 "2022-01-27T19:09:52Z")

</div>

I am using Julia v. 1.6.3 64bit in my windows machine. I have an FMU model (generated by 32bits simulation tool) which I tried to load it. However, I got the below error. ERROR: LoadError: AssertionError: Target platfor…

---

## [What is the difference between the version of Julia installed in windows and the one in VS Code in extension?](https://discourse.julialang.org/t/what-is-the-difference-between-the-version-of-julia-installed-in-windows-and-the-one-in-vs-code-in-extension/75325)

<div class="topic-metadata">

**Author:** [@Amro](https://discourse.julialang.org/u/Amro)\
**Replies:** 3\
**Last updated:** [January 27, 2022, 9:49pm UTC](https://discourse.julialang.org/t/what-is-the-difference-between-the-version-of-julia-installed-in-windows-and-the-one-in-vs-code-in-extension/75325 "2022-01-27T21:49:54Z")

</div>

The julia version that I installed in my windows machine is v. 1.6.3. While the julia extension that I installed in VS Code is v1.5.10. This is what I get when from REPL of VS Code, I dont know why it gives v. 1.6.3 not…

---

## [Why is the non parallel loop faster than my parallel loop?](https://discourse.julialang.org/t/why-is-the-non-parallel-loop-faster-than-my-parallel-loop/72512)

<div class="topic-metadata">

**Author:** [@Marius\_123](https://discourse.julialang.org/u/Marius_123)\
**Replies:** 5\
**Last updated:** [January 27, 2022, 9:33pm UTC](https://discourse.julialang.org/t/why-is-the-non-parallel-loop-faster-than-my-parallel-loop/72512 "2022-01-27T21:33:45Z")

</div>

Down below i have two version of a loop, the non parallel version is significantly faster. I am not a real expert in parallelization, can you tell me why this is the case and how i can improve the performance? using Sob…

---

## [Generate function code](https://discourse.julialang.org/t/generate-function-code/67385)

<div class="topic-metadata">

**Author:** [@andrey2185](https://discourse.julialang.org/u/andrey2185)\
**Replies:** 6\
**Last updated:** [January 27, 2022, 9:31pm UTC](https://discourse.julialang.org/t/generate-function-code/67385 "2022-01-27T21:31:34Z")

</div>

Hellow! I have type\_list = \[ # type code # Int64 0x11; Int32 0xa2; Int16 0x33; Int8 0x24; # UInt64 0x15; UInt32 0xb6; UInt16 0x7a; UInt8…

---

## [Function overloading instead of dot syntax](https://discourse.julialang.org/t/function-overloading-instead-of-dot-syntax/75321)

<div class="topic-metadata">

**Author:** [@Leticia-maria](https://discourse.julialang.org/u/Leticia-maria)\
**Replies:** 2\
**Last updated:** [January 27, 2022, 9:07pm UTC](https://discourse.julialang.org/t/function-overloading-instead-of-dot-syntax/75321 "2022-01-27T21:07:58Z")

</div>

Hey, i have created this function and I would like to overload the last function (vdw\_radius) instead of using .@ macro. Any help? ​\_vdw\_radius\_crc ​=​ \[ ​ ​110.0​, ​ ​140.0​, ​ ​182.0​, ​ ​153.0​, …

---

## [Using the Sockets](https://discourse.julialang.org/t/using-the-sockets/75317)

<div class="topic-metadata">

**Author:** [@MeteorBizone](https://discourse.julialang.org/u/MeteorBizone)\
**Replies:** 1\
**Last updated:** [January 27, 2022, 8:17pm UTC](https://discourse.julialang.org/t/using-the-sockets/75317 "2022-01-27T20:17:59Z")

</div>

How can I create a TCP socket and TCP server with a ip-address and port?

---

## [Julia, Pluto and Docker Images](https://discourse.julialang.org/t/julia-pluto-and-docker-images/75264)

<div class="topic-metadata">

**Author:** [@timothyhartzog](https://discourse.julialang.org/u/timothyhartzog)\
**Replies:** 5\
**Last updated:** [January 27, 2022, 8:02pm UTC](https://discourse.julialang.org/t/julia-pluto-and-docker-images/75264 "2022-01-27T20:02:23Z")

</div>

Going forward the desire 9s to build a simulation of Neonatal Invasive Ventilator during resuscitation using Julia, Pluto and use docker images as a distribution method for the beta viewing. I plan to use VS Code as th…

---

## [Calculating a line of bearing between two LLAs](https://discourse.julialang.org/t/calculating-a-line-of-bearing-between-two-llas/75244)

<div class="topic-metadata">

**Author:** [@devin](https://discourse.julialang.org/u/devin)\
**Replies:** 4\
**Last updated:** [January 27, 2022, 7:56pm UTC](https://discourse.julialang.org/t/calculating-a-line-of-bearing-between-two-llas/75244 "2022-01-27T19:56:33Z")

</div>

Hi, I’ve got two lat/lon/alt locations and I’d like to compute the line of bearing between them (az/el). Is there a way to do this using geodesy.jl? I’ve looked around and found GreatCircle.jl, geodesics.jl and LibGeo…

---

## [Performant-wise, what is the best way to define (many) local arrays?](https://discourse.julialang.org/t/performant-wise-what-is-the-best-way-to-define-many-local-arrays/75245)

<div class="topic-metadata">

**Author:** [@andi](https://discourse.julialang.org/u/andi)\
**Replies:** 14\
**Last updated:** [January 27, 2022, 7:51pm UTC](https://discourse.julialang.org/t/performant-wise-what-is-the-best-way-to-define-many-local-arrays/75245 "2022-01-27T19:51:27Z")

</div>

Hi everyone! I am new to Julia and so far, I have mostly exprimented basic things. However I realised that the way the arrays are defined may have a strong influence on the performance. Here is the situation: let say t…

---

## [Work on main thread delays spawned task](https://discourse.julialang.org/t/work-on-main-thread-delays-spawned-task/75297)

<div class="topic-metadata">

**Author:** [@cafaxo](https://discourse.julialang.org/u/cafaxo)\
**Replies:** 3\
**Last updated:** [January 27, 2022, 7:15pm UTC](https://discourse.julialang.org/t/work-on-main-thread-delays-spawned-task/75297 "2022-01-27T19:15:31Z")

</div>

Consider the following example: function ex1() task = @Threads.spawn begin st = time() sleep(1.0) return time() - st end st2 = time() while time() - st2 \< 5 end println("tas…

---

## [Allocations in the loop](https://discourse.julialang.org/t/allocations-in-the-loop/75310)

<div class="topic-metadata">

**Author:** [@rukh79](https://discourse.julialang.org/u/rukh79)\
**Replies:** 4\
**Last updated:** [January 27, 2022, 7:01pm UTC](https://discourse.julialang.org/t/allocations-in-the-loop/75310 "2022-01-27T19:01:03Z")

</div>

Hello, I am starting to learn Julia, and am puzzled by the allocations inside the loop. It seems that I only access values inside the loop and didn’t allocate anything. However, test1 allocated 1M and test2 allocated 22…

---

## [Video dataset in Julia?](https://discourse.julialang.org/t/video-dataset-in-julia/75309)

<div class="topic-metadata">

**Author:** [@DeepQ](https://discourse.julialang.org/u/DeepQ)\
**Replies:** 1\
**Last updated:** [January 27, 2022, 6:02pm UTC](https://discourse.julialang.org/t/video-dataset-in-julia/75309 "2022-01-27T18:02:01Z")

</div>

Where could I find video datasets in Julia? I want to use neural networks to reconstruct videos

---

## [How to output a local import from a macro](https://discourse.julialang.org/t/how-to-output-a-local-import-from-a-macro/75307)

<div class="topic-metadata">

**Author:** [@taotree](https://discourse.julialang.org/u/taotree)\
**Replies:** 1\
**Last updated:** [January 27, 2022, 5:33pm UTC](https://discourse.julialang.org/t/how-to-output-a-local-import-from-a-macro/75307 "2022-01-27T17:33:17Z")

</div>

Trying to output a local import statement. The export statement works fine, but can’t figure out local import inside or outside quote. I tried running esc, QuoteNode, symbol… all sorts of combinations. macro testmacro(T…

---

## [Thread affinitization: pinning Julia threads to cores](https://discourse.julialang.org/t/thread-affinitization-pinning-julia-threads-to-cores/58069)

<div class="topic-metadata">

**Author:** [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Replies:** 10\
**Last updated:** [January 27, 2022, 4:57pm UTC](https://discourse.julialang.org/t/thread-affinitization-pinning-julia-threads-to-cores/58069 "2022-01-27T16:57:15Z")

</div>

Hi all, as part of my attempt to create a simple port of the STREAM benchmark (STREAMBenchmark.jl) for estimating the memory bandwidth of a machine I asked myself whether it is possible to pin Julia threads to specific …

---

## [Computing QR decomposition many times in parallel](https://discourse.julialang.org/t/computing-qr-decomposition-many-times-in-parallel/75241)

<div class="topic-metadata">

**Author:** [@coviktor](https://discourse.julialang.org/u/coviktor)\
**Replies:** 2\
**Last updated:** [January 27, 2022, 4:53pm UTC](https://discourse.julialang.org/t/computing-qr-decomposition-many-times-in-parallel/75241 "2022-01-27T16:53:49Z")

</div>

I’m new to GPU programming and don’t understand many details. Let’s say I have 2 matrices A1 = CUDA.rand(1000,1000) A2 = CUDA.rand(1000,1000) and I would like to compute their QR decompositions on GPU in parallel (usin…

---

## [Substitution for nonexistent 4bit-arrays](https://discourse.julialang.org/t/substitution-for-nonexistent-4bit-arrays/75237)

<div class="topic-metadata">

**Author:** [@Minumsand](https://discourse.julialang.org/u/Minumsand)\
**Replies:** 5\
**Last updated:** [January 27, 2022, 3:55pm UTC](https://discourse.julialang.org/t/substitution-for-nonexistent-4bit-arrays/75237 "2022-01-27T15:55:15Z")

</div>

As I mentioned in my previous posts I am new to Julia and am planning to dive into it. For the following question I have been looking into the Julia 1.7 Documentation, but have not found an answer or explanation - if I …

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

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