# Latest

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

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

**Page:** 1900

---

## [Pandas's fast isin() equivalent in Julia DataFrame or IndexedTable or anything else](https://discourse.julialang.org/t/pandass-fast-isin-equivalent-in-julia-dataframe-or-indexedtable-or-anything-else/30073)

<div class="topic-metadata">

**Author:** [@Sijun](https://discourse.julialang.org/u/Sijun)\
**Replies:** 5\
**Last updated:** [October 19, 2019, 11:05am UTC](https://discourse.julialang.org/t/pandass-fast-isin-equivalent-in-julia-dataframe-or-indexedtable-or-anything-else/30073 "2019-10-19T11:05:13Z")

</div>

Python Pandas DataFrame’s isin() is really fast. for example: import numpy as np import pandas as pd df = pd.DataFrame({"x": np.random.randint(1,100, size=(10\*\*6,)), "y": np.random.randint(50,149, size=…

---

## [Error building VegaLite](https://discourse.julialang.org/t/error-building-vegalite/30051)

<div class="topic-metadata">

**Author:** [@ennvvy](https://discourse.julialang.org/u/ennvvy)\
**Replies:** 5\
**Last updated:** [October 19, 2019, 11:02am UTC](https://discourse.julialang.org/t/error-building-vegalite/30051 "2019-10-19T11:02:42Z")

</div>

I am trying to use Agents.jl package. However, while trying to add the package, I get the following error Building MbedTLS ─→ \`~/.julia/packages/MbedTLS/a1JFn/deps/build.log\` Building NodeJS ──→ \`~/.julia/packages/N…

---

## [Turing.jl - NUTS/sample parameters](https://discourse.julialang.org/t/turing-jl-nuts-sample-parameters/30058)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 2\
**Last updated:** [October 19, 2019, 1:54am UTC](https://discourse.julialang.org/t/turing-jl-nuts-sample-parameters/30058 "2019-10-19T01:54:25Z")

</div>

Hello, I’m trying to learn Turing.jl and the concepts behind it and I’m not seeing any documentation that explains what the parameters are that are passed to NUTS() when sampling. The documentation utilizes the NUTS sam…

---

## [ANN: FIGlet.jl](https://discourse.julialang.org/t/ann-figlet-jl/30056)

<div class="topic-metadata">

**Author:** [@kdheepak](https://discourse.julialang.org/u/kdheepak)\
**Replies:** 3\
**Last updated:** [October 18, 2019, 9:58pm UTC](https://discourse.julialang.org/t/ann-figlet-jl/30056 "2019-10-18T21:58:06Z")

</div>

Hi everyone, I wanted to announce FIGlet.jl. It is a Julia port of FIGlet for rendering text in ASCII fonts. ███████████ █████ █████████ ████ █████ ███ ████ ░░███░░░░░░█░░███ ███░░░░░███░░█…

---

## [Dataset access - Python](https://discourse.julialang.org/t/dataset-access-python/30048)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 7\
**Last updated:** [October 18, 2019, 9:46pm UTC](https://discourse.julialang.org/t/dataset-access-python/30048 "2019-10-18T21:46:50Z")

</div>

@oxinabox will set me right here. I recall looking at https://github.com/oxinabox/DataDepsGenerators.jl There is a Python standard for accessing datasets which was mentioned at the time. Or am I imagining this? I ask s…

---

## [Generate array of all combinations](https://discourse.julialang.org/t/generate-array-of-all-combinations/30063)

<div class="topic-metadata">

**Author:** [@hasanOryx](https://discourse.julialang.org/u/hasanOryx)\
**Replies:** 7\
**Last updated:** [October 18, 2019, 9:29pm UTC](https://discourse.julialang.org/t/generate-array-of-all-combinations/30063 "2019-10-18T21:29:56Z")

</div>

I want to generate an array of 3 elements \[α, β, γ\] Where each of the 3 elements α, β, γ is between 0 and 1, so I tried the below \[α for α in (0:1), β for β in (0:1), γ for γ in (0:1)\] But it failed with error: synt…

---

## [Trouble editing excel file using XLSX.jl package.](https://discourse.julialang.org/t/trouble-editing-excel-file-using-xlsx-jl-package/20761)

<div class="topic-metadata">

**Author:** [@rna1990](https://discourse.julialang.org/u/rna1990)\
**Replies:** 14\
**Last updated:** [October 18, 2019, 9:18pm UTC](https://discourse.julialang.org/t/trouble-editing-excel-file-using-xlsx-jl-package/20761 "2019-10-18T21:18:11Z")

</div>

Greetings, I’m writing code for a function whose output is an edited .xlsx file. I’m using package XLSX.jl for the purpose, but I’m getting the following error message: Thank you in advance for everyone’s help. Chee…

---

## [Xor performance](https://discourse.julialang.org/t/xor-performance/29830)

<div class="topic-metadata">

**Author:** [@lalvim](https://discourse.julialang.org/u/lalvim)\
**Replies:** 3\
**Last updated:** [October 18, 2019, 6:40pm UTC](https://discourse.julialang.org/t/xor-performance/29830 "2019-10-18T18:40:08Z")

</div>

Hello. I am developing a method that uses a compact representation of bitwise arrays instead of using boolean or even float vectors. One of the advantages, besides compression, is the xor operation that operates efficien…

---

## [L2 vs. L2 error in Differential Equations Benchmarks](https://discourse.julialang.org/t/l2-vs-l2-error-in-differential-equations-benchmarks/30039)

<div class="topic-metadata">

**Author:** [@Nirvik](https://discourse.julialang.org/u/Nirvik)\
**Replies:** 3\
**Last updated:** [October 18, 2019, 6:32pm UTC](https://discourse.julialang.org/t/l2-vs-l2-error-in-differential-equations-benchmarks/30039 "2019-10-18T18:32:41Z")

</div>

How exactly is the L2 error calculated in Differential Equations WorkPrecisionSet? Not much is mentioned about it in the manual. I understand the l2 error calculates the error at every time step taken by the integrator T…

---

## [Use of eval in closed module and "incremental compilation may be broken"](https://discourse.julialang.org/t/use-of-eval-in-closed-module-and-incremental-compilation-may-be-broken/30028)

<div class="topic-metadata">

**Author:** [@tlienart](https://discourse.julialang.org/u/tlienart)\
**Replies:** 5\
**Last updated:** [October 18, 2019, 5:09pm UTC](https://discourse.julialang.org/t/use-of-eval-in-closed-module-and-incremental-compilation-may-be-broken/30028 "2019-10-18T17:09:44Z")

</div>

In Package A we would like to offer facilities to write metadata about models of a specific type that would be written in other packages, say B. To do this we have something like this In Package A: module A input\_type…

---

## [Evaluate expression with variables from a dictionary](https://discourse.julialang.org/t/evaluate-expression-with-variables-from-a-dictionary/30047)

<div class="topic-metadata">

**Author:** [@heliosdrm](https://discourse.julialang.org/u/heliosdrm)\
**Replies:** 7\
**Last updated:** [October 18, 2019, 4:29pm UTC](https://discourse.julialang.org/t/evaluate-expression-with-variables-from-a-dictionary/30047 "2019-10-18T16:29:01Z")

</div>

I have a set of variables stored in a Dict{Symbol, Any} like this: data = Dict( :a=\>1, :b=\>2, :c=\>3 # etc. ) Then I’ve got a set of calculations that are defined as expressions with variable names that m…

---

## [Julia 1.1.1. -\> Julia 1.2.0 (Problem with downloading - curl (35) - revocation function unable to check)](https://discourse.julialang.org/t/julia-1-1-1-julia-1-2-0-problem-with-downloading-curl-35-revocation-function-unable-to-check/28294)

<div class="topic-metadata">

**Author:** [@sciexplorer](https://discourse.julialang.org/u/sciexplorer)\
**Replies:** 1\
**Last updated:** [October 18, 2019, 3:25pm UTC](https://discourse.julialang.org/t/julia-1-1-1-julia-1-2-0-problem-with-downloading-curl-35-revocation-function-unable-to-check/28294 "2019-10-18T15:25:13Z")

</div>

I am new to Julia. I installed it and started to learn it by diving into its ML ecosystem. I was going through Stephen Smith’s Blog - "Julia Flux for Machine Learning (Julia Flux for Machine Learning | Stephen Smith's Bl…

---

## [Can I make this code use multiple threads?](https://discourse.julialang.org/t/can-i-make-this-code-use-multiple-threads/30049)

<div class="topic-metadata">

**Author:** [@cserteGT3](https://discourse.julialang.org/u/cserteGT3)\
**Replies:** 3\
**Last updated:** [October 18, 2019, 12:57pm UTC](https://discourse.julialang.org/t/can-i-make-this-code-use-multiple-threads/30049 "2019-10-18T12:57:09Z")

</div>

I have an expensive evaluation function, that takes long to compute and I run this over multiple objects. In theory these comuptations are independent of each other (though they use the same arguments for the evaluation)…

---

## [Avoiding a Julia version of the Python 2/3 mess](https://discourse.julialang.org/t/avoiding-a-julia-version-of-the-python-2-3-mess/29759)

<div class="topic-metadata">

**Author:** [@cscherrer](https://discourse.julialang.org/u/cscherrer)\
**Replies:** 21\
**Last updated:** [October 18, 2019, 12:22pm UTC](https://discourse.julialang.org/t/avoiding-a-julia-version-of-the-python-2-3-mess/29759 "2019-10-18T12:22:25Z")

</div>

The Python 3 breaking changes were a big mess for them, because by that time people had built lots of code around Python 2. There seems to be a similar problem happening now with updates to TensorFlow. What areas might …

---

## [Intel SYCL and LLVM](https://discourse.julialang.org/t/intel-sycl-and-llvm/30046)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 1\
**Last updated:** [October 18, 2019, 12:18pm UTC](https://discourse.julialang.org/t/intel-sycl-and-llvm/30046 "2019-10-18T12:18:12Z")

</div>

I am unfamilair with Intel SYCL . However does this discussion on Intel LLVM compilers have any relevance to Julia? https://github.com/intel/intel-graphics-compiler/issues/62#issuecomment-509912798

---

## [Javascript parser](https://discourse.julialang.org/t/javascript-parser/30052)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 0\
**Last updated:** [October 18, 2019, 11:20am UTC](https://discourse.julialang.org/t/javascript-parser/30052 "2019-10-18T11:20:00Z")

</div>

Hi, does anyobody know about parser for javascript, which would output AST?

---

## [Assigning values to defined Tuple-array](https://discourse.julialang.org/t/assigning-values-to-defined-tuple-array/30026)

<div class="topic-metadata">

**Author:** [@Jonas\_Hjulstad](https://discourse.julialang.org/u/Jonas_Hjulstad)\
**Replies:** 6\
**Last updated:** [October 18, 2019, 10:55am UTC](https://discourse.julialang.org/t/assigning-values-to-defined-tuple-array/30026 "2019-10-18T10:55:59Z")

</div>

I am trying to create a tuple-array without assigning values to the tuples. Declaring tuples as an array runs smoothly: tuples = Array{Tuple{Int, Int},2} tuples\[1\] = (1,2) However, trying to index any elements gives a…

---

## [Copyto! does not work for subarray when scalar get index is disallowed?](https://discourse.julialang.org/t/copyto-does-not-work-for-subarray-when-scalar-get-index-is-disallowed/30044)

<div class="topic-metadata">

**Author:** [@ww1g11](https://discourse.julialang.org/u/ww1g11)\
**Replies:** 1\
**Last updated:** [October 18, 2019, 9:34am UTC](https://discourse.julialang.org/t/copyto-does-not-work-for-subarray-when-scalar-get-index-is-disallowed/30044 "2019-10-18T09:34:07Z")

</div>

I have a large Array in CPU and want to copy back the GPU data to it. Here is a demo: using CuArrays CuArrays.allowscalar(false) N = 100 u\_c = rand(N, 2); u\_d = CuArrays.CuArray(ones(N)); u\_v = view(u\_c, :, 1); copyto!(…

---

## [How to store many variables of type AffineMap?](https://discourse.julialang.org/t/how-to-store-many-variables-of-type-affinemap/30016)

<div class="topic-metadata">

**Author:** [@Moses](https://discourse.julialang.org/u/Moses)\
**Replies:** 2\
**Last updated:** [October 18, 2019, 6:15am UTC](https://discourse.julialang.org/t/how-to-store-many-variables-of-type-affinemap/30016 "2019-10-18T06:15:37Z")

</div>

Dear community. This is following up on an earlier question of me (here). I opened this thread, because my current question no longer fits the original one. My problem is that I need to loop through a stack of a few hu…

---

## [Nonprofit and opensource startup looking for people to develop electronic voting system](https://discourse.julialang.org/t/nonprofit-and-opensource-startup-looking-for-people-to-develop-electronic-voting-system/30035)

<div class="topic-metadata">

**Author:** [@Janis\_Erdmanis](https://discourse.julialang.org/u/Janis_Erdmanis)\
**Replies:** 4\
**Last updated:** [October 18, 2019, 7:53am UTC](https://discourse.julialang.org/t/nonprofit-and-opensource-startup-looking-for-people-to-develop-electronic-voting-system/30035 "2019-10-18T07:53:06Z")

</div>

Hello, everyone! I am currently founding a nonprofit tech startup PeaceFounder with a purpose to give equal voice to everyone anywhere and thus in the process found a peace. The technology which enables to achieve such …

---

## [Is "Julia by example tutorial totally abandoned?](https://discourse.julialang.org/t/is-julia-by-example-tutorial-totally-abandoned/25086)

<div class="topic-metadata">

**Author:** [@XVilka](https://discourse.julialang.org/u/XVilka)\
**Replies:** 4\
**Last updated:** [October 17, 2019, 4:21am UTC](https://discourse.julialang.org/t/is-julia-by-example-tutorial-totally-abandoned/25086 "2019-10-17T04:21:16Z")

</div>

There is a quite nice tutorial - Julia by Example. But seems it stuck in the past (at 0.6.2 version). And there are issues and PRs unmerged, while the last commit was Mar 24, 2018.

---

## [What is the type of called function in this case?](https://discourse.julialang.org/t/what-is-the-type-of-called-function-in-this-case/30038)

<div class="topic-metadata">

**Author:** [@Qiyamah](https://discourse.julialang.org/u/Qiyamah)\
**Replies:** 1\
**Last updated:** [October 18, 2019, 12:54am UTC](https://discourse.julialang.org/t/what-is-the-type-of-called-function-in-this-case/30038 "2019-10-18T00:54:29Z")

</div>

struct MM a::Int end function (m::MM)(x::Int) MM(m.a+x) end m = MM(11) m(5) # what is the typeof the function called here? What really happens when I say m(5), is there a function like apply(m,5) somewhere? Tha…

---

## [Retrieve data from Amazon S3?](https://discourse.julialang.org/t/retrieve-data-from-amazon-s3/29959)

<div class="topic-metadata">

**Author:** [@joshhjacobson](https://discourse.julialang.org/u/joshhjacobson)\
**Replies:** 9\
**Last updated:** [October 17, 2019, 8:20pm UTC](https://discourse.julialang.org/t/retrieve-data-from-amazon-s3/29959 "2019-10-17T20:20:20Z")

</div>

I have a .tif file hosted on S3 and it looks like it should be possible to read it into memory using AWSS3.jl. I’ve tried the following: using AWSS3 aws = AWSCore.aws\_config() bucket = "projects" path = "path/to/file.…

---

## [Parallelizing a force assembly function](https://discourse.julialang.org/t/parallelizing-a-force-assembly-function/29752)

<div class="topic-metadata">

**Author:** [@touste](https://discourse.julialang.org/u/touste)\
**Replies:** 11\
**Last updated:** [October 17, 2019, 7:59pm UTC](https://discourse.julialang.org/t/parallelizing-a-force-assembly-function/29752 "2019-10-17T19:59:20Z")

</div>

Hello, I am writing a physical simulation code that I’m trying to optimize. The most critical function, called at every integration step, is the force assembly: for every triangle of the mesh, given the nodal positions,…

---

## [Passing Julia pointers back and forth from Julia PackageCompiled shared object libraries](https://discourse.julialang.org/t/passing-julia-pointers-back-and-forth-from-julia-packagecompiled-shared-object-libraries/29995)

<div class="topic-metadata">

**Author:** [@jay.stanley](https://discourse.julialang.org/u/jay.stanley)\
**Replies:** 1\
**Last updated:** [October 17, 2019, 5:27pm UTC](https://discourse.julialang.org/t/passing-julia-pointers-back-and-forth-from-julia-packagecompiled-shared-object-libraries/29995 "2019-10-17T17:27:40Z")

</div>

Hi all, I am having issues dereferencing Ptr{Cvoid} inside of a shared object library. I suspect it is due to garbage collection. I am working on a Python project that requires a Julia library that does not work with …

---

## [Second Jupyter cell takes forever to execute](https://discourse.julialang.org/t/second-jupyter-cell-takes-forever-to-execute/30027)

<div class="topic-metadata">

**Author:** [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Replies:** 0\
**Last updated:** [October 17, 2019, 2:28pm UTC](https://discourse.julialang.org/t/second-jupyter-cell-takes-forever-to-execute/30027 "2019-10-17T14:28:18Z")

</div>

What I did: create a new folder create an empty Project.toml create a new notebook open a console for that notebook and run \]add CSV,DataFrames now in the notebook execute @time using CSV,DataFrames - takes about 8 se…

---

## [Julia blocked by CylanceUI](https://discourse.julialang.org/t/julia-blocked-by-cylanceui/28332)

<div class="topic-metadata">

**Author:** [@dylanjm](https://discourse.julialang.org/u/dylanjm)\
**Replies:** 23\
**Last updated:** [October 17, 2019, 2:16pm UTC](https://discourse.julialang.org/t/julia-blocked-by-cylanceui/28332 "2019-10-17T14:16:52Z")

</div>

I’m trying to use Julia for a work project and have installed it through brew cask install julia. I can launch the REPL but anytime I try to run any code, Julia gets killed by zsh. I then get a notification from CylanceU…

---

## [Appending/Prepending Inf-values to Int64-array](https://discourse.julialang.org/t/appending-prepending-inf-values-to-int64-array/30024)

<div class="topic-metadata">

**Author:** [@Jonas\_Hjulstad](https://discourse.julialang.org/u/Jonas_Hjulstad)\
**Replies:** 2\
**Last updated:** [October 17, 2019, 1:44pm UTC](https://discourse.julialang.org/t/appending-prepending-inf-values-to-int64-array/30024 "2019-10-17T13:44:30Z")

</div>

I’m trying to initialize an array where a for-loop checks the iterated index value, the previous and the next index. In order to prevent uneccessary if-statements, I will use Inf-guards on both sides of the array. I’m h…

---

## [Flux.jl MethodError ... (::Dense{typeof(identity),... on simple Chain model](https://discourse.julialang.org/t/flux-jl-methoderror-dense-typeof-identity-on-simple-chain-model/29247)

<div class="topic-metadata">

**Author:** [@m\_Tucci](https://discourse.julialang.org/u/m_Tucci)\
**Replies:** 3\
**Last updated:** [October 17, 2019, 12:38pm UTC](https://discourse.julialang.org/t/flux-jl-methoderror-dense-typeof-identity-on-simple-chain-model/29247 "2019-10-17T12:38:38Z")

</div>

Hi, I’m new to using Flux and I keep getting a data type error when running the following code: using LinearAlgebra, Flux, Base.Iterators, Statistics using CuArrays using Flux: onehotbatch, onecold, crossentropy, thrott…

---

## [Julia script running on Linux is slow](https://discourse.julialang.org/t/julia-script-running-on-linux-is-slow/30002)

<div class="topic-metadata">

**Author:** [@alka](https://discourse.julialang.org/u/alka)\
**Replies:** 9\
**Last updated:** [October 17, 2019, 8:51am UTC](https://discourse.julialang.org/t/julia-script-running-on-linux-is-slow/30002 "2019-10-17T08:51:54Z")

</div>

I am trying to run julia code in linux machine. But it takes around 4-5 mins to execute. How can I make it faster?

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

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