# Latest

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

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

**Page:** 1589

---

## [How to serialize an object on a x64 system so it'll work on a 32-bit system?](https://discourse.julialang.org/t/how-to-serialize-an-object-on-a-x64-system-so-itll-work-on-a-32-bit-system/49188)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 11\
**Last updated:** [October 29, 2020, 5:41pm UTC](https://discourse.julialang.org/t/how-to-serialize-an-object-on-a-x64-system-so-itll-work-on-a-32-bit-system/49188 "2020-10-29T17:41:59Z")

</div>

I need to run some processes on a x64 system (like most modern computers), save the results (e.g. by serializing them to a file), and then load and use the results on a Raspberry Pi (which is a x86 system). The object in…

---

## [Metaprogramming and variable scope (again)](https://discourse.julialang.org/t/metaprogramming-and-variable-scope-again/49248)

<div class="topic-metadata">

**Author:** [@benkj](https://discourse.julialang.org/u/benkj)\
**Replies:** 3\
**Last updated:** [October 29, 2020, 5:27pm UTC](https://discourse.julialang.org/t/metaprogramming-and-variable-scope-again/49248 "2020-10-29T17:27:14Z")

</div>

Hi there, I’m having some troubles understanding variable scoping in macros. Here is the simplest code to show my problems macro foo(f) quote x = 2 $f end end function bar(y) @foo sum(x\*i f…

---

## [Distributed § Dimensional Arrays](https://discourse.julialang.org/t/distributed-dimensional-arrays/49201)

<div class="topic-metadata">

**Author:** [@hyacykcharel](https://discourse.julialang.org/u/hyacykcharel)\
**Replies:** 2\
**Last updated:** [October 29, 2020, 5:14pm UTC](https://discourse.julialang.org/t/distributed-dimensional-arrays/49201 "2020-10-29T17:14:56Z")

</div>

I’m trying to distribute this Array into 2 processes each should have 5 lines I mean from zeros(10,10,10) each should have zeros(5,5,10) can someone help? I need it to be distributed in Rows and not in Colon, please …

---

## [Regularization with Flux](https://discourse.julialang.org/t/regularization-with-flux/49232)

<div class="topic-metadata">

**Author:** [@Mariana](https://discourse.julialang.org/u/Mariana)\
**Replies:** 3\
**Last updated:** [October 29, 2020, 5:09pm UTC](https://discourse.julialang.org/t/regularization-with-flux/49232 "2020-10-29T17:09:21Z")

</div>

I’m currently training an ANN with 54 inputs and 12 outputs and I have already achieved good results by using the following model: model = Chain(Dense(54,54,sigmoid), Dense(54,54,sigmoid), Dense(54,12,leakyrelu)). Howe…

---

## [Package version purgatory](https://discourse.julialang.org/t/package-version-purgatory/49246)

<div class="topic-metadata">

**Author:** [@grahamstark](https://discourse.julialang.org/u/grahamstark)\
**Replies:** 5\
**Last updated:** [October 29, 2020, 5:03pm UTC](https://discourse.julialang.org/t/package-version-purgatory/49246 "2020-10-29T17:03:02Z")

</div>

Hi, I published a package a while back, here: (it’s a slightly niche economics thing). All went well, and it’s in Julia’s package Registry at version 1.0, which is also the GitHub release version. Later I make a sm…

---

## [ThermoState 0.4.5: specification of thermodynamic properties](https://discourse.julialang.org/t/thermostate-0-4-5-specification-of-thermodynamic-properties/49216)

<div class="topic-metadata">

**Author:** [@longemen3000](https://discourse.julialang.org/u/longemen3000)\
**Replies:** 6\
**Last updated:** [October 29, 2020, 4:21pm UTC](https://discourse.julialang.org/t/thermostate-0-4-5-specification-of-thermodynamic-properties/49216 "2020-10-29T16:21:44Z")

</div>

Hi everybody. i’m been working on this package for already some time, and it seems like is the time to make an announcement on discourse https://github.com/longemen3000/ThermoState.jl What does it do? if i oversymplify…

---

## [What should the first parameter be when collecting keys from a dictionary?](https://discourse.julialang.org/t/what-should-the-first-parameter-be-when-collecting-keys-from-a-dictionary/49245)

<div class="topic-metadata">

**Author:** [@anon60034542](https://discourse.julialang.org/u/anon60034542)\
**Replies:** 1\
**Last updated:** [October 29, 2020, 3:42pm UTC](https://discourse.julialang.org/t/what-should-the-first-parameter-be-when-collecting-keys-from-a-dictionary/49245 "2020-10-29T15:42:55Z")

</div>

When using collect(), it requires two parameters, the element type and the collection. When you’re creating an array from dictionary keys what should the element type parameter be? character\_inventory = Dict{String,Int…

---

## [How do I get the coordinates for the dofs in JuAFEM?](https://discourse.julialang.org/t/how-do-i-get-the-coordinates-for-the-dofs-in-juafem/49229)

<div class="topic-metadata">

**Author:** [@bcsj](https://discourse.julialang.org/u/bcsj)\
**Replies:** 1\
**Last updated:** [October 29, 2020, 1:26pm UTC](https://discourse.julialang.org/t/how-do-i-get-the-coordinates-for-the-dofs-in-juafem/49229 "2020-10-29T13:26:27Z")

</div>

I have been trying to get a hang on the JuAFEM package and running the Heat Equation example from the documentation I have noticed that the ordering of the resulting vector appears to not correspond to the ordering of no…

---

## [What are the consequences of really big primitive types?](https://discourse.julialang.org/t/what-are-the-consequences-of-really-big-primitive-types/49191)

<div class="topic-metadata">

**Author:** [@oxinabox](https://discourse.julialang.org/u/oxinabox)\
**Replies:** 1\
**Last updated:** [October 29, 2020, 12:15pm UTC](https://discourse.julialang.org/t/what-are-the-consequences-of-really-big-primitive-types/49191 "2020-10-29T12:15:54Z")

</div>

one can declare arbitarily large primative types using the primative keyword. As far as i can tell they act like well behaved isbits types, no matter how large you make them. BitIntegers.jl uses this to allow the creat…

---

## [How to plot bar chart starting from non-zero y-axis?](https://discourse.julialang.org/t/how-to-plot-bar-chart-starting-from-non-zero-y-axis/49215)

<div class="topic-metadata">

**Author:** [@Manu\_Francis](https://discourse.julialang.org/u/Manu_Francis)\
**Replies:** 2\
**Last updated:** [October 29, 2020, 11:07am UTC](https://discourse.julialang.org/t/how-to-plot-bar-chart-starting-from-non-zero-y-axis/49215 "2020-10-29T11:07:18Z")

</div>

Hi, I am trying to plot a bar chart as below: using StatsPlots bar(\[4,5,6\],fillcolor=\[:red,:green,:blue\],fillalpha=\[0.2,0.4,0.6\], group=\["a","b","c"\]) But this plot is starting from Y-axis zero. However, I am lookin…

---

## [Implementing a ceil function in a complete dataFrame](https://discourse.julialang.org/t/implementing-a-ceil-function-in-a-complete-dataframe/49227)

<div class="topic-metadata">

**Author:** [@Ashwani\_Rathee](https://discourse.julialang.org/u/Ashwani_Rathee)\
**Replies:** 6\
**Last updated:** [October 29, 2020, 10:36am UTC](https://discourse.julialang.org/t/implementing-a-ceil-function-in-a-complete-dataframe/49227 "2020-10-29T10:36:18Z")

</div>

I am trying to implement the python code that looks like : forecast\_out =int(math.ceil(0.1\*len(df))) in julia it looks to me: forecast\_out=int(ceil(0.1.\*something)) tried : length(df) df\[:,:\] don’t know how to ite…

---

## [Error installing package using pkg.julialang.org, error with unpack, 7z.exe](https://discourse.julialang.org/t/error-installing-package-using-pkg-julialang-org-error-with-unpack-7z-exe/46364)

<div class="topic-metadata">

**Author:** [@pedrobtz](https://discourse.julialang.org/u/pedrobtz)\
**Replies:** 5\
**Last updated:** [October 29, 2020, 9:13am UTC](https://discourse.julialang.org/t/error-installing-package-using-pkg-julialang-org-error-with-unpack-7z-exe/46364 "2020-10-29T09:13:37Z")

</div>

setup: Julia 1.5.1, win 10. When trying to install packages using server ‘pkg.julialang.org’ I am getting error in unpacking download files. I think the error happens with ‘unpack’ call https://github.com/JuliaLang/Pk…

---

## [Is it recommend to close TCPSocket after use?](https://discourse.julialang.org/t/is-it-recommend-to-close-tcpsocket-after-use/46189)

<div class="topic-metadata">

**Author:** [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Replies:** 0\
**Last updated:** [September 7, 2020, 9:10am UTC](https://discourse.julialang.org/t/is-it-recommend-to-close-tcpsocket-after-use/46189 "2020-09-07T09:10:12Z")

</div>

I’m using a TCPSocket but connect in a inner block e.g.: tcp = TCPSocket() # 1 if condition tcp = connect(1234) end ... I know that in C# one has to close and dispose streams and stuff. Is the same true for Julia.…

---

## [Can't fit nonlinear function including '^' in LsqFit](https://discourse.julialang.org/t/cant-fit-nonlinear-function-including-in-lsqfit/49199)

<div class="topic-metadata">

**Author:** [@gedankenexperiment](https://discourse.julialang.org/u/gedankenexperiment)\
**Replies:** 2\
**Last updated:** [October 29, 2020, 8:33am UTC](https://discourse.julialang.org/t/cant-fit-nonlinear-function-including-in-lsqfit/49199 "2020-10-29T08:33:18Z")

</div>

Hi there, When I try to fit to a concentration-response curve (Hill equation) and use the exponent as a free parameter, Julia throws me an error complaining that the base should be a complex number. Even using lower bou…

---

## [Reshape and merge an array of images](https://discourse.julialang.org/t/reshape-and-merge-an-array-of-images/49172)

<div class="topic-metadata">

**Author:** [@libensvivit](https://discourse.julialang.org/u/libensvivit)\
**Replies:** 3\
**Last updated:** [October 29, 2020, 8:21am UTC](https://discourse.julialang.org/t/reshape-and-merge-an-array-of-images/49172 "2020-10-29T08:21:52Z")

</div>

Hi, I have an array of images and I simply want to merge them into one, efficiently. Say that my array has 6 images, I would want to form something like; 1 2 or 1 2 3 3 4 4 5 6 5 6 At the time I’m doing t…

---

## [Need Help with IJulia on Ubuntu 18.04.5 LTS](https://discourse.julialang.org/t/need-help-with-ijulia-on-ubuntu-18-04-5-lts/49118)

<div class="topic-metadata">

**Author:** [@Ashwani\_Rathee](https://discourse.julialang.org/u/Ashwani_Rathee)\
**Replies:** 7\
**Last updated:** [October 29, 2020, 7:41am UTC](https://discourse.julialang.org/t/need-help-with-ijulia-on-ubuntu-18-04-5-lts/49118 "2020-10-29T07:41:45Z")

</div>

I am having a tiny issue with the Ijulia in jupyter notebook in my ubuntu setup (@v1.5) pkg\> add IJulia Resolving package versions... Installed IJulia ─ v1.22.0 Updating \`~/.julia/environments/v1.5/Project.toml\` \[…

---

## [Race condition with local variable in @threads for loop](https://discourse.julialang.org/t/race-condition-with-local-variable-in-threads-for-loop/49163)

<div class="topic-metadata">

**Author:** [@josePereiro](https://discourse.julialang.org/u/josePereiro)\
**Replies:** 5\
**Last updated:** [October 29, 2020, 7:32am UTC](https://discourse.julialang.org/t/race-condition-with-local-variable-in-threads-for-loop/49163 "2020-10-29T07:32:44Z")

</div>

Hi, im trying to figure why this code throw and AssertionError inside the most inner loop. My current understanding is that julia will split the top loop into a number of pieces and spawn each piece to a separate thread.…

---

## [What do you think makes code "Julian" in style?](https://discourse.julialang.org/t/what-do-you-think-makes-code-julian-in-style/49219)

<div class="topic-metadata">

**Author:** [@Reckoner](https://discourse.julialang.org/u/Reckoner)\
**Replies:** 4\
**Last updated:** [October 29, 2020, 6:08am UTC](https://discourse.julialang.org/t/what-do-you-think-makes-code-julian-in-style/49219 "2020-10-29T06:08:23Z")

</div>

There has definitely been past mention of code being “Julian” or not in analogy to Python’s “Pythonic”, but I’ve recently realized that I don’t actually know what “Julian” means to other people. So I’ve come to ask peop…

---

## [How to use function inside a package](https://discourse.julialang.org/t/how-to-use-function-inside-a-package/49214)

<div class="topic-metadata">

**Author:** [@Nova](https://discourse.julialang.org/u/Nova)\
**Replies:** 3\
**Last updated:** [October 29, 2020, 3:01am UTC](https://discourse.julialang.org/t/how-to-use-function-inside-a-package/49214 "2020-10-29T03:01:07Z")

</div>

I would like to use some of the functions included in the following package: https://github.com/danspielman/Laplacians.jl/tree/master/src For example the first file is IJV.jl . My question is how I am supposed to use …

---

## [Publish code](https://discourse.julialang.org/t/publish-code/49195)

<div class="topic-metadata">

**Author:** [@cadojo](https://discourse.julialang.org/u/cadojo)\
**Replies:** 5\
**Last updated:** [October 29, 2020, 12:21am UTC](https://discourse.julialang.org/t/publish-code/49195 "2020-10-29T00:21:38Z")

</div>

In addition to the documentation in the docs/ directory, I would like to “publish” all Julia files in my Julia package to a PDF. Is there any common / preferred way to publish Julia code with syntax highlighting? I’m loo…

---

## [Symbolic computation in Julia with lisp/reduce; and calling Julia from LaTeX](https://discourse.julialang.org/t/symbolic-computation-in-julia-with-lisp-reduce-and-calling-julia-from-latex/2944)

<div class="topic-metadata">

**Author:** [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Replies:** 32\
**Last updated:** [October 29, 2020, 12:17am UTC](https://discourse.julialang.org/t/symbolic-computation-in-julia-with-lisp-reduce-and-calling-julia-from-latex/2944 "2020-10-29T00:17:47Z")

</div>

NOTE: the Reduce.jl package has been created since this discussion started Using Julia is a really great experience, thanks to all of you! Since Julia is so inspired by the lisp language, is it feasible to combine th…

---

## [Nan Error in CSV](https://discourse.julialang.org/t/nan-error-in-csv/49197)

<div class="topic-metadata">

**Author:** [@yasser\_rajwani](https://discourse.julialang.org/u/yasser_rajwani)\
**Replies:** 2\
**Last updated:** [October 28, 2020, 10:30pm UTC](https://discourse.julialang.org/t/nan-error-in-csv/49197 "2020-10-28T22:30:33Z")

</div>

I have a CSV file which contains about 1500 values some of which are “nan”, I am trying to write a function that would replace the “nan” values with zero. I tried using the replace\_nan(v) and CSV write function, however…

---

## [Compat/Optim incremental compilation broken](https://discourse.julialang.org/t/compat-optim-incremental-compilation-broken/34818)

<div class="topic-metadata">

**Author:** [@hendri54](https://discourse.julialang.org/u/hendri54)\
**Replies:** 4\
**Last updated:** [October 28, 2020, 9:40pm UTC](https://discourse.julialang.org/t/compat-optim-incremental-compilation-broken/34818 "2020-10-28T21:40:41Z")

</div>

When precompiling a package, the following error is shown: \[ Info: Precompiling CollegeStrat \[17dbbba3-c303-53a0-b454-635a51d7dd41\] WARNING: Method definition dot(Any, Any, Any) in module Compat at /Users/lutz/.julia/pa…

---

## [Multiple dispatch with more than 4 methods blocks type inference](https://discourse.julialang.org/t/multiple-dispatch-with-more-than-4-methods-blocks-type-inference/49066)

<div class="topic-metadata">

**Author:** [@schaerfo](https://discourse.julialang.org/u/schaerfo)\
**Replies:** 15\
**Last updated:** [October 28, 2020, 9:29pm UTC](https://discourse.julialang.org/t/multiple-dispatch-with-more-than-4-methods-blocks-type-inference/49066 "2020-10-28T21:29:40Z")

</div>

Consider the following code: using InteractiveUtils struct A end struct B end g(r::A, s::A, t::A, u::A) = 1 g(r::B, s::A, t::A, u::A) = 2 g(r::B, s::A, t::B, u::A) = 3 g(r::B, s::B, t::A, u::A) = 4 g(r::B, s::B, t::B,…

---

## [Accelerating the calculation of minimum distance between points, annotating which is the point](https://discourse.julialang.org/t/accelerating-the-calculation-of-minimum-distance-between-points-annotating-which-is-the-point/49200)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 9\
**Last updated:** [October 28, 2020, 8:38pm UTC](https://discourse.julialang.org/t/accelerating-the-calculation-of-minimum-distance-between-points-annotating-which-is-the-point/49200 "2020-10-28T20:38:53Z")

</div>

I am writing a package that needs to compute the minimum distance between sets of coordinates in space of atoms (ComplexMixtures). I am already using cell lists, but at the very end the one finishes with the problem of c…

---

## [Unioning MetaGraphs](https://discourse.julialang.org/t/unioning-metagraphs/49204)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 0\
**Last updated:** [October 28, 2020, 8:33pm UTC](https://discourse.julialang.org/t/unioning-metagraphs/49204 "2020-10-28T20:33:40Z")

</div>

I don’t completely understand the error, but looks like some methods from Base might need to be exended. What is the minimum I would need to implement to make this work?: g1 = MetaDiGraph(4) add\_edge!(g1, 1, 2) add\_edg…

---

## [Extract model coefficients with FixedEffectModels.jl package](https://discourse.julialang.org/t/extract-model-coefficients-with-fixedeffectmodels-jl-package/49174)

<div class="topic-metadata">

**Author:** [@Antonina\_Klyuyeva](https://discourse.julialang.org/u/Antonina_Klyuyeva)\
**Replies:** 14\
**Last updated:** [October 28, 2020, 6:26pm UTC](https://discourse.julialang.org/t/extract-model-coefficients-with-fixedeffectmodels-jl-package/49174 "2020-10-28T18:26:55Z")

</div>

Hi everyone! In my regression model (Y ~ A:B), a numeric variable (A) interacts with a categorical variable (B). Since the categorical variable has a lot of unique levels, fitting the model using GLM.jl package consumes…

---

## [COBOL and Julia comparison](https://discourse.julialang.org/t/cobol-and-julia-comparison/49166)

<div class="topic-metadata">

**Author:** [@bocc](https://discourse.julialang.org/u/bocc)\
**Replies:** 16\
**Last updated:** [October 28, 2020, 6:25pm UTC](https://discourse.julialang.org/t/cobol-and-julia-comparison/49166 "2020-10-28T18:25:46Z")

</div>

Hello, I’d like to state in advance that I have negligible familiarity with number representations, so please excuse any inaccuracies. I also enjoy getting rid of legacy systems. I have recently read an article which p…

---

## [Taking gradients of minibatch gradient with Flux](https://discourse.julialang.org/t/taking-gradients-of-minibatch-gradient-with-flux/49193)

<div class="topic-metadata">

**Author:** [@a\_garval](https://discourse.julialang.org/u/a_garval)\
**Replies:** 0\
**Last updated:** [October 28, 2020, 5:50pm UTC](https://discourse.julialang.org/t/taking-gradients-of-minibatch-gradient-with-flux/49193 "2020-10-28T17:50:36Z")

</div>

Hey, I’m trying to implement minibatching in a Neural ODE system. I calculate the gradient for each batch with the following code: using DiffEqFlux, OrdinaryDiffEq, Flux, Optim, Plots, LinearAlgebra, Distributions od…

---

## [Matrix multiplication on multiple dimensions](https://discourse.julialang.org/t/matrix-multiplication-on-multiple-dimensions/49181)

<div class="topic-metadata">

**Author:** [@danicaratelli](https://discourse.julialang.org/u/danicaratelli)\
**Replies:** 8\
**Last updated:** [October 28, 2020, 4:11pm UTC](https://discourse.julialang.org/t/matrix-multiplication-on-multiple-dimensions/49181 "2020-10-28T16:11:25Z")

</div>

I want to multiply each matrix along one dimension of a mutli-dimensional matrix by another matrix. Is there a way to do it quickly in one go? See example below. Thank you in advance! #first factor: multi-dimensional m…

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

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