# Latest

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

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

**Page:** 1310

---

## [Suggested workflow for handling c src dependencies in packages](https://discourse.julialang.org/t/suggested-workflow-for-handling-c-src-dependencies-in-packages/65899)

<div class="topic-metadata">

**Author:** [@DrPapa](https://discourse.julialang.org/u/DrPapa)\
**Replies:** 4\
**Last updated:** [August 5, 2021, 5:27pm UTC](https://discourse.julialang.org/t/suggested-workflow-for-handling-c-src-dependencies-in-packages/65899 "2021-08-05T17:27:30Z")

</div>

I have a private package (lets call it MyPkg.jl) that requires wrapping a very minimal c library. This c library provides a small subset of the package’s total capabilities. I have been playing w/ BinaryBuilder and I’ve …

---

## [Specifying structs with variably nested NTuple fields](https://discourse.julialang.org/t/specifying-structs-with-variably-nested-ntuple-fields/65817)

<div class="topic-metadata">

**Author:** [@tchr](https://discourse.julialang.org/u/tchr)\
**Replies:** 4\
**Last updated:** [August 5, 2021, 5:02pm UTC](https://discourse.julialang.org/t/specifying-structs-with-variably-nested-ntuple-fields/65817 "2021-08-05T17:02:12Z")

</div>

I suspect what I want isn’t possible but wanted to ask here to be certain (or to learn precisely why it isn’t possible). The setup for the question is as follows. Suppose I have a function: function nested\_ntuple(::Val…

---

## [Delivering Julia code to production computers](https://discourse.julialang.org/t/delivering-julia-code-to-production-computers/19586)

<div class="topic-metadata">

**Author:** [@vladimir](https://discourse.julialang.org/u/vladimir)\
**Replies:** 19\
**Last updated:** [August 5, 2021, 4:51pm UTC](https://discourse.julialang.org/t/delivering-julia-code-to-production-computers/19586 "2021-08-05T16:51:27Z")

</div>

In our MATLAB production projects, we can deliver (copy) our compiled MATLAB code with the corresponding MATLAB MCR to production computers without installing MATLAB MCR on them. This makes it easy to switch between diff…

---

## [\[ANN\] ARFFFiles.jl](https://discourse.julialang.org/t/ann-arfffiles-jl/61603)

<div class="topic-metadata">

**Author:** [@cjdoris](https://discourse.julialang.org/u/cjdoris)\
**Replies:** 3\
**Last updated:** [August 5, 2021, 4:50pm UTC](https://discourse.julialang.org/t/ann-arfffiles-jl/61603 "2021-08-05T16:50:04Z")

</div>

I recently tagged version 1.0 of ARFFFiles.jl, a package for loading and saving data files in the Attribute Relation File Format. This version introduces saving functionality, stabilises the API and adds a few performan…

---

## [Random and threads](https://discourse.julialang.org/t/random-and-threads/65769)

<div class="topic-metadata">

**Author:** [@gianmariomanca](https://discourse.julialang.org/u/gianmariomanca)\
**Replies:** 13\
**Last updated:** [August 5, 2021, 4:24pm UTC](https://discourse.julialang.org/t/random-and-threads/65769 "2021-08-05T16:24:51Z")

</div>

Given the following snippet (assuming more than 1 thread): const NC = 3000; const z\_vec = zeros(NC); Threads.@threads for i = 1:NC z\_vec\[i\] = randn() end What statistical properties we should expect in 1.6.2 for z\_…

---

## [Switch Juno -\> VS Code - basic IDE questions](https://discourse.julialang.org/t/switch-juno-vs-code-basic-ide-questions/65894)

<div class="topic-metadata">

**Author:** [@jo-fleck](https://discourse.julialang.org/u/jo-fleck)\
**Replies:** 2\
**Last updated:** [August 5, 2021, 3:47pm UTC](https://discourse.julialang.org/t/switch-juno-vs-code-basic-ide-questions/65894 "2021-08-05T15:47:18Z")

</div>

I’m currently in the process of moving from Juno to VS Code and have some basic questions on how the editor layout and functionality compares (I am on a Mac with VS Code 1.58.2 and v1.3.27 of the julia extension). Is t…

---

## [(Jump, Gurobi)Binary Variables end up with values no equal 1 or 0](https://discourse.julialang.org/t/jump-gurobi-binary-variables-end-up-with-values-no-equal-1-or-0/65610)

<div class="topic-metadata">

**Author:** [@Hirnfolter](https://discourse.julialang.org/u/Hirnfolter)\
**Replies:** 8\
**Last updated:** [August 5, 2021, 3:01pm UTC](https://discourse.julialang.org/t/jump-gurobi-binary-variables-end-up-with-values-no-equal-1-or-0/65610 "2021-08-05T15:01:44Z")

</div>

Hello, i try to opimise something and have the variable @variable(m, Taskstartstation\[1:Stationnumber, 1:Ordernumber, 1:Tasknumbertotal\], binary=true); or @variable(m, Taskstartstation\[1:Stationnumber, 1:Ordernum…

---

## [Gnuplot.jl: Datetime in xtics](https://discourse.julialang.org/t/gnuplot-jl-datetime-in-xtics/65281)

<div class="topic-metadata">

**Author:** [@Inna](https://discourse.julialang.org/u/Inna)\
**Replies:** 2\
**Last updated:** [August 5, 2021, 2:35pm UTC](https://discourse.julialang.org/t/gnuplot-jl-datetime-in-xtics/65281 "2021-08-05T14:35:57Z")

</div>

Hello everyone, I have timeseries and i want to have on xtics Datetime format. my data is called array: 1980 1 111.439 1980-01-01 1 …

---

## [Future maintenance of TranscodingStreams.jl - what to do?](https://discourse.julialang.org/t/future-maintenance-of-transcodingstreams-jl-what-to-do/65871)

<div class="topic-metadata">

**Author:** [@jakobnissen](https://discourse.julialang.org/u/jakobnissen)\
**Replies:** 1\
**Last updated:** [August 5, 2021, 2:08pm UTC](https://discourse.julialang.org/t/future-maintenance-of-transcodingstreams-jl-what-to-do/65871 "2021-08-05T14:08:06Z")

</div>

Hey all, TranscodingStreams.jl is a fundamental package in the Julia ecosystem, having 957 dependents, including very widely used packages. The package has been mostly unmaintained for some time (about 2 years). The ori…

---

## [State of Julia reviewed on Devclass.com](https://discourse.julialang.org/t/state-of-julia-reviewed-on-devclass-com/65888)

<div class="topic-metadata">

**Author:** [@jdad](https://discourse.julialang.org/u/jdad)\
**Replies:** 0\
**Last updated:** [August 5, 2021, 1:25pm UTC](https://discourse.julialang.org/t/state-of-julia-reviewed-on-devclass-com/65888 "2021-08-05T13:25:20Z")

</div>

FWIW, « State of Julia (2021) » is reviewed at State of Julia: the future looks modular, generic, and fast. Only glitch is that Jeff’s name is consistently spelled as Jeff Benzanos … Hope you will enjoy,

---

## [Invisible fonts in DataFrame.display() with solarized dark theme in Terminal](https://discourse.julialang.org/t/invisible-fonts-in-dataframe-display-with-solarized-dark-theme-in-terminal/65804)

<div class="topic-metadata">

**Author:** [@RTbecard](https://discourse.julialang.org/u/RTbecard)\
**Replies:** 17\
**Last updated:** [August 5, 2021, 1:21pm UTC](https://discourse.julialang.org/t/invisible-fonts-in-dataframe-display-with-solarized-dark-theme-in-terminal/65804 "2021-08-05T13:21:37Z")

</div>

When I show a DataFrame object in the REPL, under each row its supposed to list the Type for each series. using DataFrames DataFrame(((1,2,3), (4,5,6))) However, in my terminal, the font color for the Types is the same…

---

## [Rand-based Function Optimization](https://discourse.julialang.org/t/rand-based-function-optimization/65874)

<div class="topic-metadata">

**Author:** [@Ian\_Slagle](https://discourse.julialang.org/u/Ian_Slagle)\
**Replies:** 1\
**Last updated:** [August 5, 2021, 12:53pm UTC](https://discourse.julialang.org/t/rand-based-function-optimization/65874 "2021-08-05T12:53:54Z")

</div>

Given a non-zero UInt8, I would like to randomly and uniformly select the index of a bit that is one. For example, if I get UInt8(14), the bitstring would be 00001110, and thus it would return UInt8(2), UInt8(3), and UIn…

---

## [Is there a package for useful for computational neuroscience rescearch?](https://discourse.julialang.org/t/is-there-a-package-for-useful-for-computational-neuroscience-rescearch/65882)

<div class="topic-metadata">

**Author:** [@development\_mentor](https://discourse.julialang.org/u/development_mentor)\
**Replies:** 0\
**Last updated:** [August 5, 2021, 12:49pm UTC](https://discourse.julialang.org/t/is-there-a-package-for-useful-for-computational-neuroscience-rescearch/65882 "2021-08-05T12:49:05Z")

</div>

Does Julia have a package that would provide us with functions to simulate large networks of neurons, that would have custom structure.

---

## [Function depending on the global variable inside module](https://discourse.julialang.org/t/function-depending-on-the-global-variable-inside-module/64322)

<div class="topic-metadata">

**Author:** [@ykkan](https://discourse.julialang.org/u/ykkan)\
**Replies:** 26\
**Last updated:** [August 5, 2021, 12:47pm UTC](https://discourse.julialang.org/t/function-depending-on-the-global-variable-inside-module/64322 "2021-08-05T12:47:21Z")

</div>

Hello, I want to define a global variable inside a module. This global variable can be set by the user and the behaviour (the returned value) of the functions inside the module depends on this global variable. For exam…

---

## [Assignment to multiple targets - how does it work?](https://discourse.julialang.org/t/assignment-to-multiple-targets-how-does-it-work/11721)

<div class="topic-metadata">

**Author:** [@digital\_carver](https://discourse.julialang.org/u/digital_carver)\
**Replies:** 3\
**Last updated:** [August 5, 2021, 12:19pm UTC](https://discourse.julialang.org/t/assignment-to-multiple-targets-how-does-it-work/11721 "2021-08-05T12:19:15Z")

</div>

Given: julia\> a = zeros(5); b = zeros(5); R = collect(10:10:100); This naturally fails: julia\> a\[1:end\] = R ERROR: DimensionMismatch("tried to assign 10 elements to 5 destinations") Stacktrace: \[1\] throw\_setindex\_mis…

---

## [The question of forecasting](https://discourse.julialang.org/t/the-question-of-forecasting/65858)

<div class="topic-metadata">

**Author:** [@abcde](https://discourse.julialang.org/u/abcde)\
**Replies:** 4\
**Last updated:** [August 5, 2021, 11:58am UTC](https://discourse.julialang.org/t/the-question-of-forecasting/65858 "2021-08-05T11:58:43Z")

</div>

Hello everyone, I’m working on forecasting time series data for power systems. I now have three years of meteorological data and corresponding power system data, and I want to predict the temporal changes of power syste…

---

## [Parsing Pcap files](https://discourse.julialang.org/t/parsing-pcap-files/65875)

<div class="topic-metadata">

**Author:** [@SpinolaHours](https://discourse.julialang.org/u/SpinolaHours)\
**Replies:** 0\
**Last updated:** [August 5, 2021, 11:47am UTC](https://discourse.julialang.org/t/parsing-pcap-files/65875 "2021-08-05T11:47:40Z")

</div>

Hi there. I was wondering if anyone has experience in parsing pcap files in julia. There appears to be a very old package: https://github.com/JuliaIO/Pcap.jl but it doesn’t look to be maintained and I’m having trouble…

---

## [Linear Matrix Inequality](https://discourse.julialang.org/t/linear-matrix-inequality/65814)

<div class="topic-metadata">

**Author:** [@jeanluc](https://discourse.julialang.org/u/jeanluc)\
**Replies:** 11\
**Last updated:** [August 5, 2021, 11:32am UTC](https://discourse.julialang.org/t/linear-matrix-inequality/65814 "2021-08-05T11:32:12Z")

</div>

Hello everyone! Here is a code I have tried to solve an LMI But it failed. How can I fix it? Will this code give the solution? using Convex using SCS using LinearAlgebra n = 2 P = Semidefinite(n) Z12=zeros(Int8, 2, 2…

---

## [Runtime dispatch when broadcasting a view indexed with CartesianIndex array](https://discourse.julialang.org/t/runtime-dispatch-when-broadcasting-a-view-indexed-with-cartesianindex-array/65870)

<div class="topic-metadata">

**Author:** [@JohnnyChen94](https://discourse.julialang.org/u/JohnnyChen94)\
**Replies:** 1\
**Last updated:** [August 5, 2021, 10:14am UTC](https://discourse.julialang.org/t/runtime-dispatch-when-broadcasting-a-view-indexed-with-cartesianindex-array/65870 "2021-08-05T10:14:11Z")

</div>

Playing with JETTest.jl and I realize that there exists a runtime dispatch when view, broadcasting, and CartesianIndex array(not CartesianIndices) are used together. But haven’t observed any suspicious performance differ…

---

## [Is there a package to do DataFrames comparisons?](https://discourse.julialang.org/t/is-there-a-package-to-do-dataframes-comparisons/65713)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 4\
**Last updated:** [August 3, 2021, 2:18pm UTC](https://discourse.julialang.org/t/is-there-a-package-to-do-dataframes-comparisons/65713 "2021-08-03T14:18:43Z")

</div>

The a==b works really well if a and b are the same, but it doesn’t tell me what’s different if a and b are different e.g. some column name are different. I would if there’s a package for comparing dataFrame like proc co…

---

## [Plots showing too small when using VSCode in WSL](https://discourse.julialang.org/t/plots-showing-too-small-when-using-vscode-in-wsl/65868)

<div class="topic-metadata">

**Author:** [@Ved\_Mahajan](https://discourse.julialang.org/u/Ved_Mahajan)\
**Replies:** 2\
**Last updated:** [August 5, 2021, 9:30am UTC](https://discourse.julialang.org/t/plots-showing-too-small-when-using-vscode-in-wsl/65868 "2021-08-05T09:30:47Z")

</div>

Hello folks :wave: I have to use VScode in wsl and when plotting, it seems that the plots appear very small in the plots windows in VSCode Here is a screen shot: Even after changing size to (900,900). It is still ve…

---

## [Tuple constructor forgets types](https://discourse.julialang.org/t/tuple-constructor-forgets-types/65730)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 23\
**Last updated:** [August 5, 2021, 9:24am UTC](https://discourse.julialang.org/t/tuple-constructor-forgets-types/65730 "2021-08-05T09:24:16Z")

</div>

Hi type lovers, just stumbled upon the following surprising behaviour julia\> typeof(Tuple{Type{Int}, Type{String}}((Int, String))) Tuple{DataType, DataType} This should be Tuple{Type{Int}, Type{String}} shouldn’t it? …

---

## [Threaded push! different for supposedly similar array initializations](https://discourse.julialang.org/t/threaded-push-different-for-supposedly-similar-array-initializations/65862)

<div class="topic-metadata">

**Author:** [@fgerick](https://discourse.julialang.org/u/fgerick)\
**Replies:** 2\
**Last updated:** [August 5, 2021, 8:37am UTC](https://discourse.julialang.org/t/threaded-push-different-for-supposedly-similar-array-initializations/65862 "2021-08-05T08:37:04Z")

</div>

I have been using threads to assemble sparse matrices. Now I recently wanted to change the initialization of the indices arrays of length nt=Threads.nthreads() from something like \[Int\[\] for i=1:nt\] to fill(Int\[\],nt), wh…

---

## [How to define a const array first and give its length later in a function?](https://discourse.julialang.org/t/how-to-define-a-const-array-first-and-give-its-length-later-in-a-function/65790)

<div class="topic-metadata">

**Author:** [@CRquantum](https://discourse.julialang.org/u/CRquantum)\
**Replies:** 7\
**Last updated:** [August 5, 2021, 8:06am UTC](https://discourse.julialang.org/t/how-to-define-a-const-array-first-and-give-its-length-later-in-a-function/65790 "2021-08-05T08:06:45Z")

</div>

I have a question, in a module, is it possible that I define a const array first with its length undetermined, and later in a function I set its length? Like, I do const A = Array{Float64,1} however its length is u…

---

## [Solving JuMP model async with HTTP routing doesn't work](https://discourse.julialang.org/t/solving-jump-model-async-with-http-routing-doesnt-work/65854)

<div class="topic-metadata">

**Author:** [@obar](https://discourse.julialang.org/u/obar)\
**Replies:** 3\
**Last updated:** [August 5, 2021, 5:57am UTC](https://discourse.julialang.org/t/solving-jump-model-async-with-http-routing-doesnt-work/65854 "2021-08-05T05:57:38Z")

</div>

I’m in the process of building a web server that solves a mixed-integer program. The solve is triggered when the user hits a specific url. Because the MIP solve takes a while to complete, this causes a timeout in the HTT…

---

## [Calling a macro from within a macro, revisited](https://discourse.julialang.org/t/calling-a-macro-from-within-a-macro-revisited/19680)

<div class="topic-metadata">

**Author:** [@tjgreen](https://discourse.julialang.org/u/tjgreen)\
**Replies:** 15\
**Last updated:** [August 5, 2021, 4:07am UTC](https://discourse.julialang.org/t/calling-a-macro-from-within-a-macro-revisited/19680 "2021-08-05T04:07:46Z")

</div>

Hi all, I have a question: am i seeing a bug in the macro expander, or am I misunderstanding its usage? I’m implementing a macro which delegates (most of) its work to another macro, and I’m running into some issues aro…

---

## [Constructing ODEProblem parameter map from JSON data](https://discourse.julialang.org/t/constructing-odeproblem-parameter-map-from-json-data/65772)

<div class="topic-metadata">

**Author:** [@juliascrub](https://discourse.julialang.org/u/juliascrub)\
**Replies:** 3\
**Last updated:** [August 5, 2021, 3:43am UTC](https://discourse.julialang.org/t/constructing-odeproblem-parameter-map-from-json-data/65772 "2021-08-05T03:43:06Z")

</div>

I posted before here regarding this when my project was less fleshed out. Now that Ive actually got things mostly working I’m still struggling with this last task. Ive got some JSON that looks something like this: \[ …

---

## [Measuring the time properly for nested for-loops with @parallel](https://discourse.julialang.org/t/measuring-the-time-properly-for-nested-for-loops-with-parallel/65841)

<div class="topic-metadata">

**Author:** [@Rick](https://discourse.julialang.org/u/Rick)\
**Replies:** 2\
**Last updated:** [August 5, 2021, 2:10am UTC](https://discourse.julialang.org/t/measuring-the-time-properly-for-nested-for-loops-with-parallel/65841 "2021-08-05T02:10:15Z")

</div>

Hi, I am trying to measure the total time used to execute a nested for-loops. I used @elapsed but it seems to only return the time used by one of the inner loops. A MWE is as follows: function f(m,n) s = SharedArray…

---

## [Custom promote\_rule not working](https://discourse.julialang.org/t/custom-promote-rule-not-working/65853)

<div class="topic-metadata">

**Author:** [@Samuel\_Ainsworth](https://discourse.julialang.org/u/Samuel_Ainsworth)\
**Replies:** 1\
**Last updated:** [August 5, 2021, 1:35am UTC](https://discourse.julialang.org/t/custom-promote-rule-not-working/65853 "2021-08-05T01:35:15Z")

</div>

I’m running Julia 1.6.2. Not sure what’s going wrong here: struct Foo end Base.promote\_rule(::Type{Foo}, ::Type{Float64}) = Foo @show Base.promote(Foo, Float64) I get $ julia bug.jl Base.promote(Foo, Float64) = (Foo, …

---

## [How to draw a grid of text using Javis.jl?](https://discourse.julialang.org/t/how-to-draw-a-grid-of-text-using-javis-jl/65852)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 1\
**Last updated:** [August 5, 2021, 12:49am UTC](https://discourse.julialang.org/t/how-to-draw-a-grid-of-text-using-javis-jl/65852 "2021-08-05T00:49:56Z")

</div>

I am trying to draw a grid of text like this. here’s my code. But I can’t seem to figure how it works. I thought it’d be object at this location. using Javis function ground(args...) background("white") seth…

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

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