# Latest

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

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

**Page:** 1879

---

## [Strange behaviour of find\_zero() from Roots.jl](https://discourse.julialang.org/t/strange-behaviour-of-find-zero-from-roots-jl/31304)

<div class="topic-metadata">

**Author:** [@IljaK91](https://discourse.julialang.org/u/IljaK91)\
**Replies:** 5\
**Last updated:** [November 21, 2019, 6:25am UTC](https://discourse.julialang.org/t/strange-behaviour-of-find-zero-from-roots-jl/31304 "2019-11-21T06:25:47Z")

</div>

Hi everyone, I recently updated the version of Roots.jl I use in my package. I have some simple code that looks like this f = β -\> begin diff = mb(β, β, par, bpar = ConstructBPar(β, par)) - i…

---

## [Compat Issues Messing Me Up - Help needed](https://discourse.julialang.org/t/compat-issues-messing-me-up-help-needed/31330)

<div class="topic-metadata">

**Author:** [@anon92994695](https://discourse.julialang.org/u/anon92994695)\
**Replies:** 2\
**Last updated:** [November 21, 2019, 2:09am UTC](https://discourse.julialang.org/t/compat-issues-messing-me-up-help-needed/31330 "2019-11-21T02:09:52Z")

</div>

Hi everyone, I’m trying to keep my package a float(GitHub - caseykneale/ChemometricsTools.jl: A collection of tools for chemometrics and machine learning written in Julia.)… It was working fine then DSP.jl broke due to …

---

## [ANN: Meshing 0.5.0](https://discourse.julialang.org/t/ann-meshing-0-5-0/29034)

<div class="topic-metadata">

**Author:** [@sjkelly](https://discourse.julialang.org/u/sjkelly)\
**Replies:** 1\
**Last updated:** [November 21, 2019, 12:17am UTC](https://discourse.julialang.org/t/ann-meshing-0-5-0/29034 "2019-11-21T00:17:23Z")

</div>

I am happy to announce the release of Meshing 0.5.0. The biggest additions to this release are several performance improvements, documentation, and the introduction of a more generic API. I’ve spent a lot of time workin…

---

## [Help installing ApproxFun.jl?](https://discourse.julialang.org/t/help-installing-approxfun-jl/31285)

<div class="topic-metadata">

**Author:** [@longemen3000](https://discourse.julialang.org/u/longemen3000)\
**Replies:** 4\
**Last updated:** [November 20, 2019, 9:19pm UTC](https://discourse.julialang.org/t/help-installing-approxfun-jl/31285 "2019-11-20T21:19:29Z")

</div>

clean enviroment: julia\> using InteractiveUtils julia\> versioninfo() Julia Version 1.3.0-rc5.1 Commit 36c4eb251e (2019-11-17 19:04 UTC) Platform Info: OS: Windows (x86\_64-w64-mingw32) CPU: Intel(R) Core(TM) i7-4720H…

---

## [CuArrays: Call reclaim from user code](https://discourse.julialang.org/t/cuarrays-call-reclaim-from-user-code/31224)

<div class="topic-metadata">

**Author:** [@DrChainsaw](https://discourse.julialang.org/u/DrChainsaw)\
**Replies:** 4\
**Last updated:** [November 20, 2019, 7:14pm UTC](https://discourse.julialang.org/t/cuarrays-call-reclaim-from-user-code/31224 "2019-11-20T19:14:47Z")

</div>

Hi, I’m getting hit pretty hard with what I think is this issue: https://github.com/JuliaGPU/CuArrays.jl/issues/323 When using CuArrays 1.2.1 I could keep things afloat fairly well by calling CuArrays.reclaim(true) at …

---

## [Comprehension vs map and filter unexpected speeds](https://discourse.julialang.org/t/comprehension-vs-map-and-filter-unexpected-speeds/31314)

<div class="topic-metadata">

**Author:** [@stakaz](https://discourse.julialang.org/u/stakaz)\
**Replies:** 22\
**Last updated:** [November 20, 2019, 4:27pm UTC](https://discourse.julialang.org/t/comprehension-vs-map-and-filter-unexpected-speeds/31314 "2019-11-20T16:27:11Z")

</div>

Hello, I have the following comparison and I wonder why the last way to achieve the result is the fastest as i should create an additional array whereas the fist two don’t. julia\> const A = rand(10000); WARNING: redefin…

---

## [Extending Base.:show for Array of types](https://discourse.julialang.org/t/extending-base-show-for-array-of-types/31289)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 3\
**Last updated:** [November 20, 2019, 4:20pm UTC](https://discourse.julialang.org/t/extending-base-show-for-array-of-types/31289 "2019-11-20T16:20:44Z")

</div>

OK, I have this type julia\> D 3-element Array{GMT.GMTdataset,1}: GMT.GMTdataset(\[1.0 0.0; 2.0 -1.4100124638881568; 3.0 -0.757574139629664\], String\[\], " -W,red,dashdot", String\[\], "", "") GMT.GMTdataset(\[1.0 0.0; 2.0 -…

---

## [Evaluating expressions in file](https://discourse.julialang.org/t/evaluating-expressions-in-file/31172)

<div class="topic-metadata">

**Author:** [@Ferran\_Mazzanti](https://discourse.julialang.org/u/Ferran_Mazzanti)\
**Replies:** 15\
**Last updated:** [November 20, 2019, 2:00pm UTC](https://discourse.julialang.org/t/evaluating-expressions-in-file/31172 "2019-11-20T14:00:24Z")

</div>

Hi, I’m hitting one of these eval() scope-related issue, that I don’t know how to solve… maybe you can help me. This is related to an old Julia 0.6.2 code of mine, which was reading initial data from an external file, w…

---

## [Introspection on comprehension expressions](https://discourse.julialang.org/t/introspection-on-comprehension-expressions/31311)

<div class="topic-metadata">

**Author:** [@stakaz](https://discourse.julialang.org/u/stakaz)\
**Replies:** 3\
**Last updated:** [November 20, 2019, 1:08pm UTC](https://discourse.julialang.org/t/introspection-on-comprehension-expressions/31311 "2019-11-20T13:08:12Z")

</div>

Hello, somehow I cannot introspect (@code\_lowered, @code\_warntype, …) on comprehension expressions. Is it somehow possible to achieve? E. g.: julia\> A = \[1,2,3,4,5\]; julia\> @code\_lowered \[a^2 for a in A\] ERROR: expres…

---

## [Parallelising a for loop](https://discourse.julialang.org/t/parallelising-a-for-loop/31313)

<div class="topic-metadata">

**Author:** [@scj](https://discourse.julialang.org/u/scj)\
**Replies:** 1\
**Last updated:** [November 20, 2019, 1:05pm UTC](https://discourse.julialang.org/t/parallelising-a-for-loop/31313 "2019-11-20T13:05:14Z")

</div>

I need to run a simple for loop in parallel; however, my attempts at using Distributed for loops and Threads have not worked. The code is attached below and I wish to parallelise the inner for loop, it is noted in the co…

---

## [Code for Ticks Control with Vegalite.jl](https://discourse.julialang.org/t/code-for-ticks-control-with-vegalite-jl/31134)

<div class="topic-metadata">

**Author:** [@Usor](https://discourse.julialang.org/u/Usor)\
**Replies:** 9\
**Last updated:** [November 20, 2019, 1:01pm UTC](https://discourse.julialang.org/t/code-for-ticks-control-with-vegalite-jl/31134 "2019-11-20T13:01:08Z")

</div>

I tried before, searched the Vegalite.jl documentation, searched the original Vegalite documentation (and tried to convert some code), considered somewhat directly using JSON-like code, and didn’t succeed in this matter.…

---

## [The performance difference of transferring (SubArray, ReshapedArray) Array to GPU](https://discourse.julialang.org/t/the-performance-difference-of-transferring-subarray-reshapedarray-array-to-gpu/31303)

<div class="topic-metadata">

**Author:** [@findmyway](https://discourse.julialang.org/u/findmyway)\
**Replies:** 2\
**Last updated:** [November 20, 2019, 8:50am UTC](https://discourse.julialang.org/t/the-performance-difference-of-transferring-subarray-reshapedarray-array-to-gpu/31303 "2019-11-20T08:50:29Z")

</div>

I encounter some performance differences when trying to move data from cpu to gpu. The result is listed in the table bellow: methods cpu(x) gpu(x) CuArray{Float32}(x) a = rand(Float32, 100, 100, 32); 62.947 ns (…

---

## [How to crop a given .osm file?](https://discourse.julialang.org/t/how-to-crop-a-given-osm-file/31305)

<div class="topic-metadata">

**Author:** [@bsnyh](https://discourse.julialang.org/u/bsnyh)\
**Replies:** 0\
**Last updated:** [November 20, 2019, 8:55am UTC](https://discourse.julialang.org/t/how-to-crop-a-given-osm-file/31305 "2019-11-20T08:55:54Z")

</div>

I have been bothered with this for a while. I downloaded .osm.pbf file from the internet, it’s like 477MB. Then, I cropped it using the following command, osmium extract -b 10,10,25,40 map.osm.pbf -o map\_b.osm.pbf an…

---

## [How to "reset" Juno?](https://discourse.julialang.org/t/how-to-reset-juno/31275)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [November 20, 2019, 8:18am UTC](https://discourse.julialang.org/t/how-to-reset-juno/31275 "2019-11-20T08:18:36Z")

</div>

Hello, by several weeks now I have Juno becoming very slow and freezing at line evaluation; apparently at random. So I have always to restart the session. Which is the better way to completely reset Juno to start from a…

---

## [Need help on how to start implementing reinforcement learning example using Julia](https://discourse.julialang.org/t/need-help-on-how-to-start-implementing-reinforcement-learning-example-using-julia/29362)

<div class="topic-metadata">

**Author:** [@Niti\_Rohilla](https://discourse.julialang.org/u/Niti_Rohilla)\
**Replies:** 5\
**Last updated:** [November 20, 2019, 7:11am UTC](https://discourse.julialang.org/t/need-help-on-how-to-start-implementing-reinforcement-learning-example-using-julia/29362 "2019-11-20T07:11:10Z")

</div>

Hi, I am new to Julia. I want to explore reinforcement learning using julia. But there are so many packages available for reinforcement learning using julia. https://github.com/JuliaReinforcementLearning https://githu…

---

## [How to dispatch on Type Vararg?](https://discourse.julialang.org/t/how-to-dispatch-on-type-vararg/31252)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 6\
**Last updated:** [November 20, 2019, 6:36am UTC](https://discourse.julialang.org/t/how-to-dispatch-on-type-vararg/31252 "2019-11-20T06:36:43Z")

</div>

julia\> Type{Vararg} ERROR: TypeError: in Type, in parameter, expected Type, got Vararg this seems to be known and explicitly forced https://github.com/JuliaLang/julia/issues/30995 Does someone know an alternative way h…

---

## [Does ScikitLearn support sample weights for scikit-learn models that do?](https://discourse.julialang.org/t/does-scikitlearn-support-sample-weights-for-scikit-learn-models-that-do/30815)

<div class="topic-metadata">

**Author:** [@ablaom](https://discourse.julialang.org/u/ablaom)\
**Replies:** 1\
**Last updated:** [November 19, 2019, 10:29pm UTC](https://discourse.julialang.org/t/does-scikitlearn-support-sample-weights-for-scikit-learn-models-that-do/30815 "2019-11-19T22:29:42Z")

</div>

In the python scikit-learn the linear model SGDRegressor, and others, support sample weights for training. I could not guess how to access this through the ScikitLearn.jl interface. Is this not supported? using ScikitLe…

---

## [Hope Julia can use some shorter key words!](https://discourse.julialang.org/t/hope-julia-can-use-some-shorter-key-words/31247)

<div class="topic-metadata">

**Author:** [@LarkyJulia](https://discourse.julialang.org/u/LarkyJulia)\
**Replies:** 13\
**Last updated:** [November 19, 2019, 10:17pm UTC](https://discourse.julialang.org/t/hope-julia-can-use-some-shorter-key-words/31247 "2019-11-19T22:17:16Z")

</div>

I guess most programmers don’t want to type many words while fewer can make things clear. So I highly suggest Julia directing board to use some shorter key words, for example the function(), could we just use fn() or ev…

---

## [Benchmarking a simple PDE algorithm in Julia, Python, Matlab, C++, and Fortran](https://discourse.julialang.org/t/benchmarking-a-simple-pde-algorithm-in-julia-python-matlab-c-and-fortran/5002)

<div class="topic-metadata">

**Author:** [@John\_Gibson](https://discourse.julialang.org/u/John_Gibson)\
**Replies:** 41\
**Last updated:** [November 19, 2019, 10:12pm UTC](https://discourse.julialang.org/t/benchmarking-a-simple-pde-algorithm-in-julia-python-matlab-c-and-fortran/5002 "2019-11-19T22:12:23Z")

</div>

As a warm-up and preliminary test for writing a distributed-memory fluids code in Julia, I did some benchmarking of Julia on a simple numerical integration algorithm for the 1d Kuramoto-Sivashinky equation. https://gith…

---

## [Float representation of the same number may not be equal?](https://discourse.julialang.org/t/float-representation-of-the-same-number-may-not-be-equal/31276)

<div class="topic-metadata">

**Author:** [@LarkyJulia](https://discourse.julialang.org/u/LarkyJulia)\
**Replies:** 10\
**Last updated:** [November 19, 2019, 9:42pm UTC](https://discourse.julialang.org/t/float-representation-of-the-same-number-may-not-be-equal/31276 "2019-11-19T21:42:44Z")

</div>

When programming before, I sometimes get problem like: a=3.1415926 b=3.1415926 a==b it output false, why? check it out and found b is actually 3.1415926000000001 something like that. so I always have to replace a==b…

---

## [Memory leak with BenchmarkTools?](https://discourse.julialang.org/t/memory-leak-with-benchmarktools/31282)

<div class="topic-metadata">

**Author:** [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Replies:** 6\
**Last updated:** [November 19, 2019, 8:56pm UTC](https://discourse.julialang.org/t/memory-leak-with-benchmarktools/31282 "2019-11-19T20:56:42Z")

</div>

I make numerous calls to @belapsed within a loop and I see the memory consumption constantly increasing… Anybody experienced such problem ?\`

---

## [TagBot size limitation?](https://discourse.julialang.org/t/tagbot-size-limitation/31244)

<div class="topic-metadata">

**Author:** [@goedman](https://discourse.julialang.org/u/goedman)\
**Replies:** 8\
**Last updated:** [November 19, 2019, 8:52pm UTC](https://discourse.julialang.org/t/tagbot-size-limitation/31244 "2019-11-19T20:52:47Z")

</div>

After merging a minor update and attempting to tag DynamicHMCModels.jl it turned out TagBot tag fails, e.g. see the tagbot result because the size of the repository is too big (\>512MB)… One reason is that I have been st…

---

## [Debugging in Julia for newbies](https://discourse.julialang.org/t/debugging-in-julia-for-newbies/24481)

<div class="topic-metadata">

**Author:** [@sbacelar](https://discourse.julialang.org/u/sbacelar)\
**Replies:** 27\
**Last updated:** [November 19, 2019, 7:34pm UTC](https://discourse.julialang.org/t/debugging-in-julia-for-newbies/24481 "2019-11-19T19:34:40Z")

</div>

Is there any tutorial about how to use a debugger in Julia for newbies (using Juno, VsCode, etc.)? Maybe something in video, similar to Intro to Julia.

---

## [Shrinking array size](https://discourse.julialang.org/t/shrinking-array-size/31280)

<div class="topic-metadata">

**Author:** [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Replies:** 5\
**Last updated:** [November 19, 2019, 7:18pm UTC](https://discourse.julialang.org/t/shrinking-array-size/31280 "2019-11-19T19:18:31Z")

</div>

I have some vectors which are initially very big to do some computation, but which shrink afterwards and will stay small for the rest of the code’s execution. Unfortunately, it seems that Julia’s underlying arrays never …

---

## [Help implementing Tables.jl interface](https://discourse.julialang.org/t/help-implementing-tables-jl-interface/31277)

<div class="topic-metadata">

**Author:** [@randyzwitch](https://discourse.julialang.org/u/randyzwitch)\
**Replies:** 5\
**Last updated:** [November 19, 2019, 4:20pm UTC](https://discourse.julialang.org/t/help-implementing-tables-jl-interface/31277 "2019-11-19T16:20:49Z")

</div>

PR with code here: https://github.com/omnisci/OmniSci.jl/pull/88/files I’m looking to modify some functions that take DataFrames as arguments to be more generic to take Tables, but I’m still not sure I understand why Ta…

---

## [Resolved: Plot() issue in REPL w/ GR & Qt - Linux Arch](https://discourse.julialang.org/t/resolved-plot-issue-in-repl-w-gr-qt-linux-arch/31237)

<div class="topic-metadata">

**Author:** [@pontus](https://discourse.julialang.org/u/pontus)\
**Replies:** 2\
**Last updated:** [November 19, 2019, 2:43pm UTC](https://discourse.julialang.org/t/resolved-plot-issue-in-repl-w-gr-qt-linux-arch/31237 "2019-11-19T14:43:14Z")

</div>

Stumbled on issue earlier today where Plot() failed in REPL using Linux Manjaro/Arch system, but could plot via a Jupyter notebook. Saw this issue in a number of places while searching for resolution, so thought would s…

---

## [Mark size in axis units with PGFPlotsX](https://discourse.julialang.org/t/mark-size-in-axis-units-with-pgfplotsx/31266)

<div class="topic-metadata">

**Author:** [@danscr](https://discourse.julialang.org/u/danscr)\
**Replies:** 7\
**Last updated:** [November 19, 2019, 12:54pm UTC](https://discourse.julialang.org/t/mark-size-in-axis-units-with-pgfplotsx/31266 "2019-11-19T12:54:11Z")

</div>

I want to plot a 3d array as a voxel grid (i.e. adjacent cubes of equal size) with PGFPlotsX. So far I got a simple solution using a 3d scatterplot with filled cubes of separate color, depending on the array value. The…

---

## [Dynamic Typing and No Class Method?](https://discourse.julialang.org/t/dynamic-typing-and-no-class-method/31257)

<div class="topic-metadata">

**Author:** [@LarkyJulia](https://discourse.julialang.org/u/LarkyJulia)\
**Replies:** 4\
**Last updated:** [November 19, 2019, 12:23pm UTC](https://discourse.julialang.org/t/dynamic-typing-and-no-class-method/31257 "2019-11-19T12:23:32Z")

</div>

Except the long keyword sugestions which is doomed to be ignored. I have two more suggestions for Julia: 1: Dynamic Typing: I actually think dynamic typing is not necessary if it influence the running performance or it …

---

## [A package for MCMC Bayesian inference](https://discourse.julialang.org/t/a-package-for-mcmc-bayesian-inference/31271)

<div class="topic-metadata">

**Author:** [@marouane1994](https://discourse.julialang.org/u/marouane1994)\
**Replies:** 2\
**Last updated:** [November 19, 2019, 12:02pm UTC](https://discourse.julialang.org/t/a-package-for-mcmc-bayesian-inference/31271 "2019-11-19T12:02:32Z")

</div>

i have a code where i want to use MCMC, for that i used to work with Klara but now since Klara is not available and Mamba doesn’t seem that it’s the package that i’m looking for are there any other ones?

---

## [Paper on energy per instruction - using an appropriate numerical type](https://discourse.julialang.org/t/paper-on-energy-per-instruction-using-an-appropriate-numerical-type/31216)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 2\
**Last updated:** [November 19, 2019, 11:51am UTC](https://discourse.julialang.org/t/paper-on-energy-per-instruction-using-an-appropriate-numerical-type/31216 "2019-11-19T11:51:33Z")

</div>

Several years ago I Read an excellent paper which discussed the knee jerk reaction of using double precision everywhere for scientific computation. The paper analysed the energy use per instruction. As I remember the pa…

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

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