# Latest

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

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

**Page:** 1881

---

## [ANN: BrowseTables.jl](https://discourse.julialang.org/t/ann-browsetables-jl/18304)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 4\
**Last updated:** [November 18, 2019, 7:16am UTC](https://discourse.julialang.org/t/ann-browsetables-jl/18304 "2019-11-18T07:16:39Z")

</div>

BrowseTables.jl is a simple package that outputs formatted HTML for tables that support the Tables.jl interface. The primary purpose of the package is to make eyeballing medium-sized data tables easier. The default form…

---

## [Add package to \`project.toml\` when needed only for testing?](https://discourse.julialang.org/t/add-package-to-project-toml-when-needed-only-for-testing/20552)

<div class="topic-metadata">

**Author:** [@timueh](https://discourse.julialang.org/u/timueh)\
**Replies:** 12\
**Last updated:** [November 18, 2019, 6:24am UTC](https://discourse.julialang.org/t/add-package-to-project-toml-when-needed-only-for-testing/20552 "2019-11-18T06:24:19Z")

</div>

Hi there, I am currently writing a Julia package. All dependencies are stored in the project.toml file. Now I am writing a test file to be called by runtests.jl. Only for this testing I now need another package—let’s ca…

---

## [Using ProgressMeter with Optim.optimize?](https://discourse.julialang.org/t/using-progressmeter-with-optim-optimize/31115)

<div class="topic-metadata">

**Author:** [@bashonubuntu](https://discourse.julialang.org/u/bashonubuntu)\
**Replies:** 1\
**Last updated:** [November 17, 2019, 5:48am UTC](https://discourse.julialang.org/t/using-progressmeter-with-optim-optimize/31115 "2019-11-17T05:48:31Z")

</div>

Hello, I sometimes provide parallel functions and parallel gradients to Optim and was wondering if it’s possible to show one’s progress while the computation is mid-way. I am not taking about show\_trace = true because t…

---

## [DifferentialEquations inexact error](https://discourse.julialang.org/t/differentialequations-inexact-error/31208)

<div class="topic-metadata">

**Author:** [@FrankBerninger](https://discourse.julialang.org/u/FrankBerninger)\
**Replies:** 4\
**Last updated:** [November 18, 2019, 5:24am UTC](https://discourse.julialang.org/t/differentialequations-inexact-error/31208 "2019-11-18T05:24:38Z")

</div>

Hello I am trying to learn the Differential Equations and I end up with a stupid newbie mistake can anybody help me: function Diffusive(du,u,p,t) du = p\*(100.0-u) end u0=0.1 tspan=(0, 10) p=0.2 prob2 =ODEProblem(…

---

## [Union vs intersection of version specifiers](https://discourse.julialang.org/t/union-vs-intersection-of-version-specifiers/31193)

<div class="topic-metadata">

**Author:** [@lostella](https://discourse.julialang.org/u/lostella)\
**Replies:** 3\
**Last updated:** [November 17, 2019, 11:51pm UTC](https://discourse.julialang.org/t/union-vs-intersection-of-version-specifiers/31193 "2019-11-17T23:51:02Z")

</div>

Hi dear fellow julians. The documentation for Pkg mentions here that The union of multiple version specifiers can be formed by comma separating individual version specifiers, e.g. \[compat\] Example = "1.2, 2" will res…

---

## [Correct way to populate an empty array in parallel in Julia?](https://discourse.julialang.org/t/correct-way-to-populate-an-empty-array-in-parallel-in-julia/31187)

<div class="topic-metadata">

**Author:** [@bashonubuntu](https://discourse.julialang.org/u/bashonubuntu)\
**Replies:** 2\
**Last updated:** [November 17, 2019, 10:19pm UTC](https://discourse.julialang.org/t/correct-way-to-populate-an-empty-array-in-parallel-in-julia/31187 "2019-11-17T22:19:34Z")

</div>

Hello, Often times in parallel code, I find myself in need of populating an empty array. I have gone back and forth between using a vcat operation versus a SharedArray. A typical pseudo-code would look like: function m…

---

## [Function generation interpolating symbol with a string](https://discourse.julialang.org/t/function-generation-interpolating-symbol-with-a-string/31171)

<div class="topic-metadata">

**Author:** [@Amval](https://discourse.julialang.org/u/Amval)\
**Replies:** 2\
**Last updated:** [November 17, 2019, 6:49pm UTC](https://discourse.julialang.org/t/function-generation-interpolating-symbol-with-a-string/31171 "2019-11-17T18:49:51Z")

</div>

Hi all, not sure the title is clear enough, but I was struggling to find a clear description. Although I think what I am trying to do is pretty straight forward and the problem is that I simply don’t understand how macr…

---

## [How to add shared c library to the load path](https://discourse.julialang.org/t/how-to-add-shared-c-library-to-the-load-path/31061)

<div class="topic-metadata">

**Author:** [@fleecy](https://discourse.julialang.org/u/fleecy)\
**Replies:** 6\
**Last updated:** [November 17, 2019, 11:57am UTC](https://discourse.julialang.org/t/how-to-add-shared-c-library-to-the-load-path/31061 "2019-11-17T11:57:48Z")

</div>

In the “Calling C and Fortran Code” guide, it says you can add your shared library to the load path, but what exactly is this load path and which environmental variable does it correspond to? Is there a way to change thi…

---

## [Vim Syntax Highlighting vs. Juno?](https://discourse.julialang.org/t/vim-syntax-highlighting-vs-juno/31157)

<div class="topic-metadata">

**Author:** [@duncanam](https://discourse.julialang.org/u/duncanam)\
**Replies:** 1\
**Last updated:** [November 17, 2019, 10:56am UTC](https://discourse.julialang.org/t/vim-syntax-highlighting-vs-juno/31157 "2019-11-17T10:56:18Z")

</div>

I’m curious if anyone has managed to get vim to have reasonable syntax highlighting for Julia. My current highlighting is as such: however Atom/Juno has an expanded colorspace and function recognition: I’d like to …

---

## [Why the code recompiles?](https://discourse.julialang.org/t/why-the-code-recompiles/31092)

<div class="topic-metadata">

**Author:** [@Janis\_Erdmanis](https://discourse.julialang.org/u/Janis_Erdmanis)\
**Replies:** 9\
**Last updated:** [November 17, 2019, 10:04am UTC](https://discourse.julialang.org/t/why-the-code-recompiles/31092 "2019-11-17T10:04:35Z")

</div>

When I am working with scientific projects, I am quite an old school guy who writes code and executes that with include("source.jl") in the Julia REPL. That had worked pretty well so far, but today I encountered a recomp…

---

## [Setting up environment to debug a network protocol](https://discourse.julialang.org/t/setting-up-environment-to-debug-a-network-protocol/31138)

<div class="topic-metadata">

**Author:** [@Janis\_Erdmanis](https://discourse.julialang.org/u/Janis_Erdmanis)\
**Replies:** 1\
**Last updated:** [November 17, 2019, 9:53am UTC](https://discourse.julialang.org/t/setting-up-environment-to-debug-a-network-protocol/31138 "2019-11-17T09:53:28Z")

</div>

Hello, everyone! I am writing a package for a little bit involved network protocol which I have outlined here (some details like the use of TOR and ballot key had become obsolete). An essential part of the protocol is t…

---

## [Implementing parallel sum](https://discourse.julialang.org/t/implementing-parallel-sum/31097)

<div class="topic-metadata">

**Author:** [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Replies:** 12\
**Last updated:** [November 17, 2019, 8:17am UTC](https://discourse.julialang.org/t/implementing-parallel-sum/31097 "2019-11-17T08:17:48Z")

</div>

In MATLAB, summing the entries of a vector in a for loop can be easily parallelized using parfor of Parallel Computing Toolbox. I remember @threads served a more or less similar purpose in Julia, but after reading Annou…

---

## [Unmarshaling JSON based on a type defined in the JSON object](https://discourse.julialang.org/t/unmarshaling-json-based-on-a-type-defined-in-the-json-object/31170)

<div class="topic-metadata">

**Author:** [@watzon](https://discourse.julialang.org/u/watzon)\
**Replies:** 0\
**Last updated:** [November 17, 2019, 8:10am UTC](https://discourse.julialang.org/t/unmarshaling-json-based-on-a-type-defined-in-the-json-object/31170 "2019-11-17T08:10:37Z")

</div>

I asked a similar question in the gitter chat, but I figured I’d ask here too. Basically this is the issue: I am attempting to write a Julia wrapper for TDLib, and more specifically for the libtdjson portion of the libr…

---

## [Style guide: in or =](https://discourse.julialang.org/t/style-guide-in-or/31155)

<div class="topic-metadata">

**Author:** [@remi-garcia](https://discourse.julialang.org/u/remi-garcia)\
**Replies:** 2\
**Last updated:** [November 17, 2019, 7:58am UTC](https://discourse.julialang.org/t/style-guide-in-or/31155 "2019-11-17T07:58:30Z")

</div>

Hi, JuMP’ style guide states we should prefer in over = in for loops: Style Guide · JuMP I was wondering why it is not the same for variables and constraints declaration as in the documentation we can find @variable(mo…

---

## [Non-deallocating (permanently growing) extensible arrays](https://discourse.julialang.org/t/non-deallocating-permanently-growing-extensible-arrays/31056)

<div class="topic-metadata">

**Author:** [@Sean\_Matthews](https://discourse.julialang.org/u/Sean_Matthews)\
**Replies:** 5\
**Last updated:** [November 17, 2019, 7:36am UTC](https://discourse.julialang.org/t/non-deallocating-permanently-growing-extensible-arrays/31056 "2019-11-17T07:36:46Z")

</div>

\[Sorry for all errors of subject subcategory, ignorance of packages, etc. - this is my first post here\] I am looking for a package implementing a vector type where once space is allocated for an expansion (using, e.g., …

---

## [Possible Bug With TypeVars](https://discourse.julialang.org/t/possible-bug-with-typevars/31166)

<div class="topic-metadata">

**Author:** [@Qiyamah](https://discourse.julialang.org/u/Qiyamah)\
**Replies:** 1\
**Last updated:** [November 17, 2019, 7:07am UTC](https://discourse.julialang.org/t/possible-bug-with-typevars/31166 "2019-11-17T07:07:41Z")

</div>

\_ \_ \_(\_)\_ | Documentation: https://docs.julialang.org (\_) | (\_) (\_) | \_ \_ \_| |\_ \_\_ \_ | Type "?" for help, "\]?" for Pkg help. | | | | | | |/ \_\` | | | | |\_| | | | (\_| | | Version 1.2.…

---

## [How to distinguish between UnionAll and DataType of the same type?](https://discourse.julialang.org/t/how-to-distinguish-between-unionall-and-datatype-of-the-same-type/31165)

<div class="topic-metadata">

**Author:** [@Qiyamah](https://discourse.julialang.org/u/Qiyamah)\
**Replies:** 1\
**Last updated:** [November 17, 2019, 6:49am UTC](https://discourse.julialang.org/t/how-to-distinguish-between-unionall-and-datatype-of-the-same-type/31165 "2019-11-17T06:49:05Z")

</div>

Hi, let’s assume that I have a struct like julia\> struct MM{T} x::T end julia\> const TypeGen{T} = MM{M} where M\<:T MM{M} where M\<:T where T julia\> TypeGen{Int} MM{M} where M\<:Int64 julia\> f(::Type{…

---

## [When using both Distributed and Threads in 1.3 how do you tell the @spawn apart?](https://discourse.julialang.org/t/when-using-both-distributed-and-threads-in-1-3-how-do-you-tell-the-spawn-apart/31162)

<div class="topic-metadata">

**Author:** [@StevenSiew](https://discourse.julialang.org/u/StevenSiew)\
**Replies:** 1\
**Last updated:** [November 17, 2019, 2:36am UTC](https://discourse.julialang.org/t/when-using-both-distributed-and-threads-in-1-3-how-do-you-tell-the-spawn-apart/31162 "2019-11-17T02:36:58Z")

</div>

When using both Distributed and Base.Threads in Julia 1.3 How do you tell the @spawn macros apart?

---

## [Cubic spline function](https://discourse.julialang.org/t/cubic-spline-function/12941)

<div class="topic-metadata">

**Author:** [@chdlkl](https://discourse.julialang.org/u/chdlkl)\
**Replies:** 6\
**Last updated:** [November 16, 2019, 7:51pm UTC](https://discourse.julialang.org/t/cubic-spline-function/12941 "2019-11-16T19:51:54Z")

</div>

Is there a cubic spline function in Julia?

---

## [Use root privileges for a session/package?](https://discourse.julialang.org/t/use-root-privileges-for-a-session-package/30927)

<div class="topic-metadata">

**Author:** [@pontus](https://discourse.julialang.org/u/pontus)\
**Replies:** 4\
**Last updated:** [November 16, 2019, 6:36pm UTC](https://discourse.julialang.org/t/use-root-privileges-for-a-session-package/30927 "2019-11-16T18:36:18Z")

</div>

Wondering if there’s a simple way to run a Julia session, or use a specific package, with root privilege? Would like to use the ODBC.jl package as sudo/root. Am using Julia v1.2 and Linux (Arch-based platform with Manj…

---

## [Revise 2.3.0: improved safety and performance, new features](https://discourse.julialang.org/t/revise-2-3-0-improved-safety-and-performance-new-features/31069)

<div class="topic-metadata">

**Author:** [@tim.holy](https://discourse.julialang.org/u/tim.holy)\
**Replies:** 6\
**Last updated:** [November 16, 2019, 5:26pm UTC](https://discourse.julialang.org/t/revise-2-3-0-improved-safety-and-performance-new-features/31069 "2019-11-16T17:26:53Z")

</div>

I’m pleased to announce the release of Revise 2.3.0. This is a major update with sweeping changes. In brief, it aims to capitalize on the advantages of the redesign introduced in Revise 2.0 while also mitigating or eli…

---

## [Making an immutable array type?](https://discourse.julialang.org/t/making-an-immutable-array-type/31129)

<div class="topic-metadata">

**Author:** [@nben](https://discourse.julialang.org/u/nben)\
**Replies:** 19\
**Last updated:** [November 16, 2019, 3:55pm UTC](https://discourse.julialang.org/t/making-an-immutable-array-type/31129 "2019-11-16T15:55:46Z")

</div>

I’ve been writing an immutable collections and STM library for Julia based on similar awesome libraries in scala and clojure (work in progress, but repo is here). As I’ve been writing it, I’ve noticed that some of the op…

---

## [ANN Julia Quick Syntax Reference (Apress, Nov 2019)](https://discourse.julialang.org/t/ann-julia-quick-syntax-reference-apress-nov-2019/31081)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 8\
**Last updated:** [November 16, 2019, 10:21am UTC](https://discourse.julialang.org/t/ann-julia-quick-syntax-reference-apress-nov-2019/31081 "2019-11-16T10:21:16Z")

</div>

Hello.. still hot from the press.. “Julia Quick Syntax Reference” (November 2019, Apress). This book is in reality a largely updated, expanded and revised (not least, in the language, thanks to a professional copy-edito…

---

## [Multi process parallel computing with RemoteChannel](https://discourse.julialang.org/t/multi-process-parallel-computing-with-remotechannel/31149)

<div class="topic-metadata">

**Author:** [@AtsushiSakai](https://discourse.julialang.org/u/AtsushiSakai)\
**Replies:** 3\
**Last updated:** [November 16, 2019, 10:37am UTC](https://discourse.julialang.org/t/multi-process-parallel-computing-with-remotechannel/31149 "2019-11-16T10:37:25Z")

</div>

Hi. I want do a very simple multi process parallel computing with Remote Channel below: using Distributed while nworkers() \< 1 addprocs(1) end function task(channel, input) sleep(5.0) push!(channel, in…

---

## [ForwardDiff & "complicated" functions?](https://discourse.julialang.org/t/forwarddiff-complicated-functions/31094)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 14\
**Last updated:** [November 16, 2019, 10:15am UTC](https://discourse.julialang.org/t/forwarddiff-complicated-functions/31094 "2019-11-16T10:15:42Z")

</div>

I’d need to compute the derivative (and later: the Jacobian) of the following function: f = x -\> sqrt(max(-x,0)) which looks like the following: Obviously, the derivative doesn’t exist for x=0. Still, I try to use F…

---

## [How compute \`gradient.(f, w)\` on GPU?](https://discourse.julialang.org/t/how-compute-gradient-f-w-on-gpu/30916)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 2\
**Last updated:** [November 16, 2019, 8:06am UTC](https://discourse.julialang.org/t/how-compute-gradient-f-w-on-gpu/30916 "2019-11-16T08:06:57Z")

</div>

I can’t seem to figure out how to use the CuArray to compute the gradient of the same function f at many points x. E.g. using Zygote:gradient f(x) = x^2 x = rand(100) gradient.(f, x) the above works fine becuase it’s…

---

## [This custom Zygote.jl adjoint is not giving me the speed up I expected and how to migrate to GPU?](https://discourse.julialang.org/t/this-custom-zygote-jl-adjoint-is-not-giving-me-the-speed-up-i-expected-and-how-to-migrate-to-gpu/31150)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 0\
**Last updated:** [November 16, 2019, 8:01am UTC](https://discourse.julialang.org/t/this-custom-zygote-jl-adjoint-is-not-giving-me-the-speed-up-i-expected-and-how-to-migrate-to-gpu/31150 "2019-11-16T08:01:50Z")

</div>

I tried to use Zygote.jl to define a custom adjoint for Flux.logitbinarycrossentropy but I don’t get the expected speed up when computing the gradient. The context is that the XGBoost tree boosting algorithm requires tak…

---

## [Having problems embedding Julia 1.0 in PureData](https://discourse.julialang.org/t/having-problems-embedding-julia-1-0-in-puredata/20573)

<div class="topic-metadata">

**Author:** [@Nakul\_Tiruviluamala](https://discourse.julialang.org/u/Nakul_Tiruviluamala)\
**Replies:** 5\
**Last updated:** [November 16, 2019, 7:00am UTC](https://discourse.julialang.org/t/having-problems-embedding-julia-1-0-in-puredata/20573 "2019-11-16T07:00:08Z")

</div>

My teacher who created PureData also created a great external for PureData which allows interfacing between PureData and Julia. This was done to leverage Julia’s fantastic numerical computation abilities with PureData’s …

---

## [How to add a point in a scatter diagram?](https://discourse.julialang.org/t/how-to-add-a-point-in-a-scatter-diagram/31146)

<div class="topic-metadata">

**Author:** [@msechecs](https://discourse.julialang.org/u/msechecs)\
**Replies:** 1\
**Last updated:** [November 16, 2019, 5:23am UTC](https://discourse.julialang.org/t/how-to-add-a-point-in-a-scatter-diagram/31146 "2019-11-16T05:23:32Z")

</div>

101/5000 Hello everyone, I have this scatter diagram, and I want to add a point of a different color in the same diagram with this instruction scatter!(0.092, 0.0211) and I get this error Cannot convert Float64 …

---

## [Setting initial values of a three dimensional optimization variable](https://discourse.julialang.org/t/setting-initial-values-of-a-three-dimensional-optimization-variable/31145)

<div class="topic-metadata">

**Author:** [@mamuniut09](https://discourse.julialang.org/u/mamuniut09)\
**Replies:** 0\
**Last updated:** [November 16, 2019, 4:43am UTC](https://discourse.julialang.org/t/setting-initial-values-of-a-three-dimensional-optimization-variable/31145 "2019-11-16T04:43:51Z")

</div>

Hello, I want to set the initial values of a three dimensional optimization variable, but not getting any perfect documentation about that. A sample code is given below. m = Model(with\_optimizer(Ipopt.Optimizer)); @var…

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

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