# General Usage

**URL:** https://discourse.julialang.org/c/usage/6.md?page=1030

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

**Page:** 1031

---

## [Dict loaded from jld file very long time... Why 22 seconds?](https://discourse.julialang.org/t/dict-loaded-from-jld-file-very-long-time-why-22-seconds/1629)

<div class="topic-metadata">

**Author:** [@programista](https://discourse.julialang.org/u/programista)\
**Replies:** 7\
**Last updated:** [August 24, 2017, 9:54pm UTC](https://discourse.julialang.org/t/dict-loaded-from-jld-file-very-long-time-why-22-seconds/1629 "2017-08-24T21:54:58Z")

</div>

My Dict julia\> DTT\_HH Dict{Int64,Any} with 381701 entries: 61670 =\> 4150042 119601 =\> 5600255 136672 =\> 8300228 231648 =\> 5600221 ? =\> ? julia\> save(“TT\_Dicts.jld”,“DTT\_HH”,DTT\_HH) julia\> @time x=load(“TT\_…

---

## [Update a package given by the package manager](https://discourse.julialang.org/t/update-a-package-given-by-the-package-manager/5547)

<div class="topic-metadata">

**Author:** [@harven](https://discourse.julialang.org/u/harven)\
**Replies:** 1\
**Last updated:** [August 24, 2017, 9:01pm UTC](https://discourse.julialang.org/t/update-a-package-given-by-the-package-manager/5547 "2017-08-24T21:01:12Z")

</div>

Maybe some kind soul may help here with the package manager? A quick Howto to update the version of the Permutations package given by the package manager?

---

## [Memory allocation, where are the .mem files](https://discourse.julialang.org/t/memory-allocation-where-are-the-mem-files/5538)

<div class="topic-metadata">

**Author:** [@Ward9250](https://discourse.julialang.org/u/Ward9250)\
**Replies:** 3\
**Last updated:** [August 24, 2017, 6:13pm UTC](https://discourse.julialang.org/t/memory-allocation-where-are-the-mem-files/5538 "2017-08-24T18:13:46Z")

</div>

Hi, I wanted to track the memory allocated by a function I’ve written for a package. I’ve read the docs about the track allocation flag and have done the following: N82106:Desktop bward$ julia --track-allocation=user j…

---

## [Lost in transition: the current state of the Julia ecosystem?](https://discourse.julialang.org/t/lost-in-transition-the-current-state-of-the-julia-ecosystem/5515)

<div class="topic-metadata">

**Author:** [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Replies:** 23\
**Last updated:** [August 24, 2017, 5:27pm UTC](https://discourse.julialang.org/t/lost-in-transition-the-current-state-of-the-julia-ecosystem/5515 "2017-08-24T17:27:03Z")

</div>

I really don’t know what to think about the current state and direction of the Julia ecosystem… I’ve been holding back support for Julia v0.6 in Genie because some dependency packages were not yet v0.6 compatible. I was…

---

## [Aptitude PPA no longer maintained?](https://discourse.julialang.org/t/aptitude-ppa-no-longer-maintained/2638)

<div class="topic-metadata">

**Author:** [@ExpandingMan](https://discourse.julialang.org/u/ExpandingMan)\
**Replies:** 6\
**Last updated:** [August 24, 2017, 1:48pm UTC](https://discourse.julialang.org/t/aptitude-ppa-no-longer-maintained/2638 "2017-08-24T13:48:41Z")

</div>

Hello all. It doesn’t look like the debian/ubuntu PPA for Julia is getting updated anymore, as it’s been a few days since 0.5.1 and it still doesn’t appear there: It would be really unfortunate if support for this di…

---

## [Varargs function chaining](https://discourse.julialang.org/t/varargs-function-chaining/5534)

<div class="topic-metadata">

**Author:** [@aether](https://discourse.julialang.org/u/aether)\
**Replies:** 4\
**Last updated:** [August 24, 2017, 9:00am UTC](https://discourse.julialang.org/t/varargs-function-chaining/5534 "2017-08-24T09:00:17Z")

</div>

Let foo take a variable number of string arguments and pass them to bar. foo and bar have the same signatures. julia\> function foo(strings::String...) bar(strings) println("Hello, foo") end …

---

## [Purpose of the Range object](https://discourse.julialang.org/t/purpose-of-the-range-object/5533)

<div class="topic-metadata">

**Author:** [@sambitdash](https://discourse.julialang.org/u/sambitdash)\
**Replies:** 4\
**Last updated:** [August 24, 2017, 8:15am UTC](https://discourse.julialang.org/t/purpose-of-the-range-object/5533 "2017-08-24T08:15:14Z")

</div>

Hi All, I wanted to return values of Range type so that it becomes clear in the end-users mind that we are talking about a number range and will be used as a pages iterator. But, I realize the only way to create a Rang…

---

## [Browse functions and types in a file?](https://discourse.julialang.org/t/browse-functions-and-types-in-a-file/5523)

<div class="topic-metadata">

**Author:** [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Replies:** 1\
**Last updated:** [August 24, 2017, 5:34am UTC](https://discourse.julialang.org/t/browse-functions-and-types-in-a-file/5523 "2017-08-24T05:34:00Z")

</div>

Is there a way to add a function browser to Atom?

---

## [Collecting coverage data from worker processes](https://discourse.julialang.org/t/collecting-coverage-data-from-worker-processes/5525)

<div class="topic-metadata">

**Author:** [@fjarri](https://discourse.julialang.org/u/fjarri)\
**Replies:** 1\
**Last updated:** [August 24, 2017, 1:26am UTC](https://discourse.julialang.org/t/collecting-coverage-data-from-worker-processes/5525 "2017-08-24T01:26:17Z")

</div>

In Julia v0.6 (and a semi-recent nightly), the coverage is only collected for the main process: @everywhere function f(x) if x == 1 println(1) else println(x) end end @everywhere f(myid()) R…

---

## [Matrix performance](https://discourse.julialang.org/t/matrix-performance/5527)

<div class="topic-metadata">

**Author:** [@bdeonovic](https://discourse.julialang.org/u/bdeonovic)\
**Replies:** 24\
**Last updated:** [August 23, 2017, 6:26pm UTC](https://discourse.julialang.org/t/matrix-performance/5527 "2017-08-23T18:26:06Z")

</div>

I have two loops and one is significantly faster, although they use similar constructs. I can’t figure out how to speed up the second one: ## Forward recursion alpha\[1,: \] = p .\* B\[1,: \] c\[1\] = 1.0 / sum(alpha\[…

---

## [Doubts about language](https://discourse.julialang.org/t/doubts-about-language/4271)

<div class="topic-metadata">

**Author:** [@pedro.rafae](https://discourse.julialang.org/u/pedro.rafae)\
**Replies:** 24\
**Last updated:** [August 23, 2017, 4:37pm UTC](https://discourse.julialang.org/t/doubts-about-language/4271 "2017-08-23T16:37:54Z")

</div>

Dear, I am a C / C ++ programmer and I maintain packages in the R language. I already program in C and R and teach about these languages at a University in Brazil. I know very little of Julia’s language. However, it se…

---

## [Readbytes! or reading into an existing data block](https://discourse.julialang.org/t/readbytes-or-reading-into-an-existing-data-block/5505)

<div class="topic-metadata">

**Author:** [@lwabeke](https://discourse.julialang.org/u/lwabeke)\
**Replies:** 4\
**Last updated:** [August 23, 2017, 2:55pm UTC](https://discourse.julialang.org/t/readbytes-or-reading-into-an-existing-data-block/5505 "2017-08-23T14:55:39Z")

</div>

This must have been asked before, but I couldn’t find it. How do I use readbytes! to read into a preallocated matrix? Or is there a better function? Currently I’m using this: data = Array{Complex{Int16}}(10, 1000,…

---

## [Profile.print() lines too long](https://discourse.julialang.org/t/profile-print-lines-too-long/5526)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 1\
**Last updated:** [August 23, 2017, 1:44pm UTC](https://discourse.julialang.org/t/profile-print-lines-too-long/5526 "2017-08-23T13:44:39Z")

</div>

I am profiling some code, using the statistical profiler from Base, augmented with ProfileView.jl. The latter shows some functions at around depth 4-5 in the call stack that are not type stable (red). I thought I would …

---

## [Diagnostics for Pkg.update() non-latest version](https://discourse.julialang.org/t/diagnostics-for-pkg-update-non-latest-version/5496)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 3\
**Last updated:** [August 23, 2017, 8:40am UTC](https://discourse.julialang.org/t/diagnostics-for-pkg-update-non-latest-version/5496 "2017-08-23T08:40:29Z")

</div>

When Pkg.update() does not upgrade to the latest version of a package, is it possible to learn why? Eg something along the lines of “because I calculated the dependencies and can’t figure out a way to do it” or “a packag…

---

## [Run tests for a package outside ~/.julia/v0.6](https://discourse.julialang.org/t/run-tests-for-a-package-outside-julia-v0-6/5506)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 6\
**Last updated:** [August 23, 2017, 7:57am UTC](https://discourse.julialang.org/t/run-tests-for-a-package-outside-julia-v0-6/5506 "2017-08-23T07:57:51Z")

</div>

I recently reorganized my packages and moved local ones outside ~/.julia/v0.6. This makes is easier for me to wipe everything when run into problems I can’t solve otherwise. However, I found that Pkg.test does not work …

---

## [Is there a problem with codecov and -nightly?](https://discourse.julialang.org/t/is-there-a-problem-with-codecov-and-nightly/5517)

<div class="topic-metadata">

**Author:** [@anon94023334](https://discourse.julialang.org/u/anon94023334)\
**Replies:** 3\
**Last updated:** [August 23, 2017, 1:43am UTC](https://discourse.julialang.org/t/is-there-a-problem-with-codecov-and-nightly/5517 "2017-08-23T01:43:32Z")

</div>

So, nightly is in LightGraphs’ “allowed failures” list, and it’s been failing. We just fixed the last deprecation in LG so that nightly works (a single line change), and our code coverage dropped ~30%: https://codecov.io…

---

## [Suggestions for performance enhancement in LightGraphs \`diffusion\`?](https://discourse.julialang.org/t/suggestions-for-performance-enhancement-in-lightgraphs-diffusion/5486)

<div class="topic-metadata">

**Author:** [@nickeubank](https://discourse.julialang.org/u/nickeubank)\
**Replies:** 8\
**Last updated:** [August 22, 2017, 6:48pm UTC](https://discourse.julialang.org/t/suggestions-for-performance-enhancement-in-lightgraphs-diffusion/5486 "2017-08-22T18:48:56Z")

</div>

I’m running into performance bottlenecks running a diffusion model I put into LightGraphs.jl (code here and was wondering if anyone might have any suggestions. (p.s. I’m not entirely clear if this belong here or stack ov…

---

## [Partial Linear Indexing Deprecation](https://discourse.julialang.org/t/partial-linear-indexing-deprecation/5501)

<div class="topic-metadata">

**Author:** [@tobias.knopp](https://discourse.julialang.org/u/tobias.knopp)\
**Replies:** 3\
**Last updated:** [August 22, 2017, 6:12pm UTC](https://discourse.julialang.org/t/partial-linear-indexing-deprecation/5501 "2017-08-22T18:12:29Z")

</div>

Hi, I would like to solve the partial linear indexing deprecation but its not clear how. I am an mmaped array A\_mmaped having 4 dimensions. I am currently indexing like this A\[:,:,sub\_indices\] where sub\_indices is jus…

---

## [Efficient code](https://discourse.julialang.org/t/efficient-code/5508)

<div class="topic-metadata">

**Author:** [@bdeonovic](https://discourse.julialang.org/u/bdeonovic)\
**Replies:** 1\
**Last updated:** [August 22, 2017, 4:31pm UTC](https://discourse.julialang.org/t/efficient-code/5508 "2017-08-22T16:31:22Z")

</div>

Setup for MWE using Distributions qidx = collect(1:10) x = rand(\[0,1\], 10) theta = randn() gamma=randn(2) d = randn(10) A = \[.3 .7; .2 .8\] p=\[.8, .2\] I’d like to run the following code, but I’m worried whether I’ve wri…

---

## [Approx test of two real numbers](https://discourse.julialang.org/t/approx-test-of-two-real-numbers/5504)

<div class="topic-metadata">

**Author:** [@mzaffalon](https://discourse.julialang.org/u/mzaffalon)\
**Replies:** 2\
**Last updated:** [August 22, 2017, 4:20pm UTC](https://discourse.julialang.org/t/approx-test-of-two-real-numbers/5504 "2017-08-22T16:20:40Z")

</div>

I find it confusing that this passes the test julia\> @test 1.0+1e-10 ≈ 1.0 atol=1e-15 Test Passed because rtol is set to sqrt(eps), whereas for the correct test I need to write the “ugly” version (manual wording) juli…

---

## [Handling solver parameters elegantly in Julia](https://discourse.julialang.org/t/handling-solver-parameters-elegantly-in-julia/5269)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 22\
**Last updated:** [August 22, 2017, 3:31pm UTC](https://discourse.julialang.org/t/handling-solver-parameters-elegantly-in-julia/5269 "2017-08-22T15:31:44Z")

</div>

Consider a simple solver type: using Parameters: @with\_kw @with\_kw struct Param mean = 0. variance = 1. end struct Solver params::Dict{Symbol,Param} function Solver(params...) new(Dict(params...)) e…

---

## [Cluster heat map in Julia](https://discourse.julialang.org/t/cluster-heat-map-in-julia/5502)

<div class="topic-metadata">

**Author:** [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Replies:** 5\
**Last updated:** [August 22, 2017, 3:16pm UTC](https://discourse.julialang.org/t/cluster-heat-map-in-julia/5502 "2017-08-22T15:16:05Z")

</div>

A cluster heat map is a way of plotting a matrix. Here is an example: File:Heatmap.png - Wikipedia (I don’t need the trees). The interesting part is that rows and columns are reordered so that similar values are closer …

---

## [Bus error when doing Pkg.update() on FreeBSD 11](https://discourse.julialang.org/t/bus-error-when-doing-pkg-update-on-freebsd-11/5471)

<div class="topic-metadata">

**Author:** [@ko56](https://discourse.julialang.org/u/ko56)\
**Replies:** 3\
**Last updated:** [August 22, 2017, 3:11pm UTC](https://discourse.julialang.org/t/bus-error-when-doing-pkg-update-on-freebsd-11/5471 "2017-08-22T15:11:43Z")

</div>

I have Julia 0.6.0 on FreeBSD 11. It is exhibiting the following behavior: type \[ko@wiley ~\]$ julia \_ \_ \_ \_(\_)\_ | A fresh approach to technical computing (\_) | (\_) (\_) | Documenta…

---

## [Scrollbar in Gtk](https://discourse.julialang.org/t/scrollbar-in-gtk/5498)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 2\
**Last updated:** [August 22, 2017, 11:03am UTC](https://discourse.julialang.org/t/scrollbar-in-gtk/5498 "2017-08-22T11:03:33Z")

</div>

Hi all! I need to display some informative text in a window. Usually the text consists of a few short lines but sometimes the number of lines is very large. Is there a way for the text to be displayed in a fixed size w…

---

## [Re-opening folder in Atom fails](https://discourse.julialang.org/t/re-opening-folder-in-atom-fails/5163)

<div class="topic-metadata">

**Author:** [@krcools](https://discourse.julialang.org/u/krcools)\
**Replies:** 9\
**Last updated:** [August 22, 2017, 12:33am UTC](https://discourse.julialang.org/t/re-opening-folder-in-atom-fails/5163 "2017-08-22T00:33:33Z")

</div>

I am working on Windows and had this issue across Julia 0.5.\* and 0.6.0. It occurs when I try to reopen a package folder in atom. Atom starts up, but no files, treeview, or julia extension menu items appear. The only way…

---

## [\`end\` and \`:\` as an argument](https://discourse.julialang.org/t/end-and-as-an-argument/5491)

<div class="topic-metadata">

**Author:** [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Replies:** 1\
**Last updated:** [August 22, 2017, 2:32am UTC](https://discourse.julialang.org/t/end-and-as-an-argument/5491 "2017-08-22T02:32:08Z")

</div>

Is there a way to pass end as an argument? For example, when we have a tuple of vectors, we can construct a tuple of the first entries of the vectors as julia\> t = (rand(2), rand(3), rand(4)) (\[0.38328, 0.764218\], \[0.8…

---

## [GzipDecompressionStream compared to GZip.jl?](https://discourse.julialang.org/t/gzipdecompressionstream-compared-to-gzip-jl/5442)

<div class="topic-metadata">

**Author:** [@freeboson](https://discourse.julialang.org/u/freeboson)\
**Replies:** 2\
**Last updated:** [August 22, 2017, 2:00am UTC](https://discourse.julialang.org/t/gzipdecompressionstream-compared-to-gzip-jl/5442 "2017-08-22T02:00:34Z")

</div>

How does the GzipDecompressionStream compare to GZip.jl for line by line reading? Also, thank you for making this very useful package!

---

## [Keyword name disambiguation](https://discourse.julialang.org/t/keyword-name-disambiguation/5459)

<div class="topic-metadata">

**Author:** [@gcalderone](https://discourse.julialang.org/u/gcalderone)\
**Replies:** 5\
**Last updated:** [August 22, 2017, 1:23am UTC](https://discourse.julialang.org/t/keyword-name-disambiguation/5459 "2017-08-22T01:23:26Z")

</div>

I’ working on a code which, for the sake of clarity, has long keyword names. A simple example is: function foo(;ABooleanKeyword=false, AnotherLooongKeyword=2) println(ABooleanKeyword) println(AnotherLooongKeywo…

---

## [User management and svn repo](https://discourse.julialang.org/t/user-management-and-svn-repo/5489)

<div class="topic-metadata">

**Author:** [@Loic\_Chappaz](https://discourse.julialang.org/u/Loic_Chappaz)\
**Replies:** 0\
**Last updated:** [August 21, 2017, 11:41pm UTC](https://discourse.julialang.org/t/user-management-and-svn-repo/5489 "2017-08-21T23:41:22Z")

</div>

Hi! I am trying to add user management in my Julia app and a quick Google and Discourse search did not return any packages or helpful resources. Essentially, I have a GUI for my application, built with Gtk, and I want …

---

## [Performance implications of Array mutations (\`push\`, \`splice\`, \`pop\`, etc.)](https://discourse.julialang.org/t/performance-implications-of-array-mutations-push-splice-pop-etc/5482)

<div class="topic-metadata">

**Author:** [@nickeubank](https://discourse.julialang.org/u/nickeubank)\
**Replies:** 4\
**Last updated:** [August 21, 2017, 6:51pm UTC](https://discourse.julialang.org/t/performance-implications-of-array-mutations-push-splice-pop-etc/5482 "2017-08-21T18:51:28Z")

</div>

Could anyone speak to the performance implications of modifications of arrays that change array length? My understanding has always been it’s best to minimize modifications of array that change length, as the fact arrays…

[Previous page](https://discourse.julialang.org/c/usage/6.md?page=1029)

[Next page](https://discourse.julialang.org/c/usage/6.md?page=1031)
