# General Usage

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

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

**Page:** 1069

---

## [Code copying and reuse from Base](https://discourse.julialang.org/t/code-copying-and-reuse-from-base/1598)

<div class="topic-metadata">

**Author:** [@nsmith](https://discourse.julialang.org/u/nsmith)\
**Replies:** 2\
**Last updated:** [January 19, 2017, 11:02pm UTC](https://discourse.julialang.org/t/code-copying-and-reuse-from-base/1598 "2017-01-19T23:02:25Z")

</div>

There is a function in Base called show\_unquoted that I would like to copy and very slightly modify for use in a package I am building. Now, if I was writing a paper this would be blatant plagiarism so whats the deal in …

---

## [Reclaiming a worker on a long running process](https://discourse.julialang.org/t/reclaiming-a-worker-on-a-long-running-process/1593)

<div class="topic-metadata">

**Author:** [@pearcemc](https://discourse.julialang.org/u/pearcemc)\
**Replies:** 3\
**Last updated:** [January 19, 2017, 9:39pm UTC](https://discourse.julialang.org/t/reclaiming-a-worker-on-a-long-running-process/1593 "2017-01-19T21:39:17Z")

</div>

Is the following possible: Set a long running Julia process going on a server. Log off the server, move on with life. SSH back in at a later date. Fire up a Julia repl and add the long running process as a worker or si…

---

## [Testset printing on 0.6](https://discourse.julialang.org/t/testset-printing-on-0-6/1597)

<div class="topic-metadata">

**Author:** [@fengyang.wang](https://discourse.julialang.org/u/fengyang.wang)\
**Replies:** 1\
**Last updated:** [January 19, 2017, 8:57pm UTC](https://discourse.julialang.org/t/testset-printing-on-0-6/1597 "2017-01-19T20:57:12Z")

</div>

I have noticed that top-level @testsets no longer print as they are run on 0.6 (on 0.5, they printed summary output while being run). I would like to restore the 0.5-style summary output for a package. What is the way to…

---

## [StackOverflow during type compilation](https://discourse.julialang.org/t/stackoverflow-during-type-compilation/1532)

<div class="topic-metadata">

**Author:** [@dharasim](https://discourse.julialang.org/u/dharasim)\
**Replies:** 2\
**Last updated:** [January 19, 2017, 6:40pm UTC](https://discourse.julialang.org/t/stackoverflow-during-type-compilation/1532 "2017-01-19T18:40:34Z")

</div>

Hello everybody, I just found this strange behavior for that I don’t have any explanation: julia\> type F1{T,U} x :: Tuple{F1{Int,U}, F1{String,U}} end ERROR: StackOverflowError: Does somebody maybe h…

---

## [Windows usage questions](https://discourse.julialang.org/t/windows-usage-questions/1579)

<div class="topic-metadata">

**Author:** [@Tem\_Pl](https://discourse.julialang.org/u/Tem_Pl)\
**Replies:** 6\
**Last updated:** [January 19, 2017, 5:39pm UTC](https://discourse.julialang.org/t/windows-usage-questions/1579 "2017-01-19T17:39:02Z")

</div>

The intersection of the sets “people who use Windows” and “people who develop Julia” is essentially empty. Do you mean core julia, or julia packates?

---

## [Slowdown when multi-threading is used](https://discourse.julialang.org/t/slowdown-when-multi-threading-is-used/1149)

<div class="topic-metadata">

**Author:** [@giordano](https://discourse.julialang.org/u/giordano)\
**Replies:** 8\
**Last updated:** [January 19, 2017, 2:36pm UTC](https://discourse.julialang.org/t/slowdown-when-multi-threading-is-used/1149 "2017-01-19T14:36:06Z")

</div>

I’m trying to improve performance of LombScargle.jl package. Functions used in two methods involves for-loops that can be computed in parallel, thus I thought it would have been a nice idea to use Threads.@threads, howe…

---

## [Running a compiled DLL on a different platforms it give me error](https://discourse.julialang.org/t/running-a-compiled-dll-on-a-different-platforms-it-give-me-error/1278)

<div class="topic-metadata">

**Author:** [@Martin\_Florek](https://discourse.julialang.org/u/Martin_Florek)\
**Replies:** 9\
**Last updated:** [January 19, 2017, 10:28am UTC](https://discourse.julialang.org/t/running-a-compiled-dll-on-a-different-platforms-it-give-me-error/1278 "2017-01-19T10:28:29Z")

</div>

ERROR: Target architecture mismatch. Please delete or regenerate sys.{so,dll,dylib}. I compiled my user image following command from the command line (In directory C:\\Julia-0.5.0\\bin): julia.exe “C:/Julia-0.5.0/build\_…

---

## [Gulp equivalent in Julia](https://discourse.julialang.org/t/gulp-equivalent-in-julia/1582)

<div class="topic-metadata">

**Author:** [@fengyang.wang](https://discourse.julialang.org/u/fengyang.wang)\
**Replies:** 2\
**Last updated:** [January 19, 2017, 8:04am UTC](https://discourse.julialang.org/t/gulp-equivalent-in-julia/1582 "2017-01-19T08:04:19Z")

</div>

I have a Julia script that involves fetching input data from disk, performing certain computations, and generating output files. I would like to avoid recomputing output if the input data has not changed. However, it is …

---

## [How to handle deprecations of new broadcast functions?](https://discourse.julialang.org/t/how-to-handle-deprecations-of-new-broadcast-functions/1287)

<div class="topic-metadata">

**Author:** [@cormullion](https://discourse.julialang.org/u/cormullion)\
**Replies:** 2\
**Last updated:** [January 19, 2017, 6:01am UTC](https://discourse.julialang.org/t/how-to-handle-deprecations-of-new-broadcast-functions/1287 "2017-01-19T06:01:45Z")

</div>

I’m starting to see lots of warnings like this: WARNING: deprecated syntax "function .\*(...)". Use "function Base.broadcast(::typeof(\*), ...)" instead. WARNING: deprecated syntax "function .\*(...)". Use "function Base.…

---

## [Deprecated syntax Core.apply\_type](https://discourse.julialang.org/t/deprecated-syntax-core-apply-type/1577)

<div class="topic-metadata">

**Author:** [@lcambier](https://discourse.julialang.org/u/lcambier)\
**Replies:** 2\
**Last updated:** [January 19, 2017, 1:20am UTC](https://discourse.julialang.org/t/deprecated-syntax-core-apply-type/1577 "2017-01-19T01:20:55Z")

</div>

Hi, I am fairly new to Julia. I’ve coded a relatively big (at least for me) piece of code, but I have the following error message that shows up when I run it WARNING: deprecated syntax “y::Core.apply\_type(Array,Float64…

---

## [How Can I know the Julia path of the actual process?](https://discourse.julialang.org/t/how-can-i-know-the-julia-path-of-the-actual-process/1573)

<div class="topic-metadata">

**Author:** [@Diego\_Javier\_Zea](https://discourse.julialang.org/u/Diego_Javier_Zea)\
**Replies:** 2\
**Last updated:** [January 18, 2017, 10:10pm UTC](https://discourse.julialang.org/t/how-can-i-know-the-julia-path-of-the-actual-process/1573 "2017-01-18T22:10:43Z")

</div>

I was using ENV\["\_"\] to reach the path to the julia binary. But this gives me problems because ENV\["\_"\] is /usr/bin/nohup for nohup julia… ~$ julia -e 'println(ENV\["\_"\])' /usr/bin/julia ~$ nohup julia -e 'println(ENV\["\_…

---

## [LLVM problem with running GLFW.jl](https://discourse.julialang.org/t/llvm-problem-with-running-glfw-jl/1110)

<div class="topic-metadata">

**Author:** [@ko56](https://discourse.julialang.org/u/ko56)\
**Replies:** 13\
**Last updated:** [January 18, 2017, 4:38pm UTC](https://discourse.julialang.org/t/llvm-problem-with-running-glfw-jl/1110 "2017-01-18T16:38:47Z")

</div>

Hi, I have Julia 0.5.0 and I’m trying to get the GLFW package to work. This is what happens: \[ko@wiley ~\]$ julia \_ \_ \_ \_(\_)\_ | A fresh approach to technical computing (\_) | (\_) (\_) …

---

## [Making a 1xN array using comprehensions](https://discourse.julialang.org/t/making-a-1xn-array-using-comprehensions/1565)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 5\
**Last updated:** [January 18, 2017, 4:30pm UTC](https://discourse.julialang.org/t/making-a-1xn-array-using-comprehensions/1565 "2017-01-18T16:30:19Z")

</div>

I mainly used \["something $i something" for i in 1:4\].' to make label arguments for multiple series (columns of a matrix) for Plots.plot. But this syntax is deprecated in v0.5.0. Is there a similarly compact alternati…

---

## [How to add new var(matix , ...) to existing jld file and keep existing vars](https://discourse.julialang.org/t/how-to-add-new-var-matix-to-existing-jld-file-and-keep-existing-vars/1567)

<div class="topic-metadata">

**Author:** [@programista](https://discourse.julialang.org/u/programista)\
**Replies:** 1\
**Last updated:** [January 18, 2017, 12:26pm UTC](https://discourse.julialang.org/t/how-to-add-new-var-matix-to-existing-jld-file-and-keep-existing-vars/1567 "2017-01-18T12:26:43Z")

</div>

How to add new “B” var(matix , …) to existing jld file and keep existing vars “A” julia\> using HDF5,JLD julia\> A=10 julia\> save(“File.jld”,“A”,A) julia\> B=5 ??? Paul

---

## [Auto conversion for type constructor doesn't work for parameter types](https://discourse.julialang.org/t/auto-conversion-for-type-constructor-doesnt-work-for-parameter-types/1566)

<div class="topic-metadata">

**Author:** [@FANG\_Colin](https://discourse.julialang.org/u/FANG_Colin)\
**Replies:** 1\
**Last updated:** [January 18, 2017, 11:25am UTC](https://discourse.julialang.org/t/auto-conversion-for-type-constructor-doesnt-work-for-parameter-types/1566 "2017-01-18T11:25:26Z")

</div>

Does auto conversion for type constructor not work for parameter types on purpose? immutable A x::Float64 y::Int end A(1, 2) # Works immutable B{T} x::Float64 y::Vector{T} end B(1, \[2\]) # Error

---

## [Readuntil timeout?](https://discourse.julialang.org/t/readuntil-timeout/1563)

<div class="topic-metadata">

**Author:** [@robertfeldt](https://discourse.julialang.org/u/robertfeldt)\
**Replies:** 0\
**Last updated:** [January 18, 2017, 9:40am UTC](https://discourse.julialang.org/t/readuntil-timeout/1563 "2017-01-18T09:40:36Z")

</div>

When running external processes/commands from Julia and then waiting for them getting to a particular point in their execution it sometimes happen that they never get there. Is there some simple way to timeout when runni…

---

## [Bring module into scope on multiple processes](https://discourse.julialang.org/t/bring-module-into-scope-on-multiple-processes/1544)

<div class="topic-metadata">

**Author:** [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Replies:** 3\
**Last updated:** [January 18, 2017, 8:06am UTC](https://discourse.julialang.org/t/bring-module-into-scope-on-multiple-processes/1544 "2017-01-18T08:06:21Z")

</div>

I have a module and I want to bring it into scope on multiple workers. Is there a recommended way to do this? I tried the following, which produces lots of warnings: julia\> addprocs(1) 1-element Array{Int64,1}: 2 juli…

---

## [Include("\<file\_name.jl"\> does not include everything](https://discourse.julialang.org/t/include-file-name-jl-does-not-include-everything/1552)

<div class="topic-metadata">

**Author:** [@phillefjonk](https://discourse.julialang.org/u/phillefjonk)\
**Replies:** 3\
**Last updated:** [January 18, 2017, 5:15am UTC](https://discourse.julialang.org/t/include-file-name-jl-does-not-include-everything/1552 "2017-01-18T05:15:30Z")

</div>

I have a file, coordinate\_transformations.jl that define three functions: function coordinate\_transformation\_e\_frame\_to\_b\_frame(vector, q0, q1, q2, q3) q0 = q\[1\] q1 = q\[2\] q2 = q\[3\] q3 = q\[4\] C\_eb = \[ q0^2+q1^2-…

---

## [Uploading binaries](https://discourse.julialang.org/t/uploading-binaries/1117)

<div class="topic-metadata">

**Author:** [@barche](https://discourse.julialang.org/u/barche)\
**Replies:** 9\
**Last updated:** [January 17, 2017, 10:06pm UTC](https://discourse.julialang.org/t/uploading-binaries/1117 "2017-01-17T22:06:26Z")

</div>

Hi all, I’d like to automatically upload binaries from an Appveyor test. For a release, binaries can be linked to a release on Github, but where can the binaries be stored for the latest master version? Ideally, I would…

---

## [Type-stable mixed PriorityQueues](https://discourse.julialang.org/t/type-stable-mixed-priorityqueues/1549)

<div class="topic-metadata">

**Author:** [@dharasim](https://discourse.julialang.org/u/dharasim)\
**Replies:** 0\
**Last updated:** [January 17, 2017, 7:43pm UTC](https://discourse.julialang.org/t/type-stable-mixed-priorityqueues/1549 "2017-01-17T19:43:23Z")

</div>

Hello, I want to implement an algorithm that uses a priority queue of objects of various types. Does anybody knows a julia way to implement this so that the dequeuing function is type stable? How bad will the performan…

---

## [Base.take does not respect that the argument has SizeUnknown()? (0.5.0)](https://discourse.julialang.org/t/base-take-does-not-respect-that-the-argument-has-sizeunknown-0-5-0/1509)

<div class="topic-metadata">

**Author:** [@jpiitula](https://discourse.julialang.org/u/jpiitula)\
**Replies:** 6\
**Last updated:** [January 17, 2017, 7:23pm UTC](https://discourse.julialang.org/t/base-take-does-not-respect-that-the-argument-has-sizeunknown-0-5-0/1509 "2017-01-17T19:23:17Z")

</div>

At least Base.take and Base.drop seem to ignore that their argument iterator has SizeUnknown(), which in turn makes collect(take(...)) crash with “MethodError: no method matching length” when there in fact is no length m…

---

## [Possible problem with reversed LaTeX definitions](https://discourse.julialang.org/t/possible-problem-with-reversed-latex-definitions/1525)

<div class="topic-metadata">

**Author:** [@ScottPJones](https://discourse.julialang.org/u/ScottPJones)\
**Replies:** 1\
**Last updated:** [January 17, 2017, 4:01pm UTC](https://discourse.julialang.org/t/possible-problem-with-reversed-latex-definitions/1525 "2017-01-17T16:01:44Z")

</div>

I found that \\upharpoonleft and \\upharpoondown are reversed from their definitions for LaTeX, mathlatex, IEEE, and the unicode-math-table.tex. The script used to build Julia’s LaTeX symbol table gave priority to the AMS…

---

## [Turning Expression into Source Code](https://discourse.julialang.org/t/turning-expression-into-source-code/1533)

<div class="topic-metadata">

**Author:** [@JaredCrean2](https://discourse.julialang.org/u/JaredCrean2)\
**Replies:** 2\
**Last updated:** [January 17, 2017, 8:33am UTC](https://discourse.julialang.org/t/turning-expression-into-source-code/1533 "2017-01-17T08:33:48Z")

</div>

Is there a way to turn an expression into valid source code and write it to a file? I’m looking into using ReverseDiffSource, which operates on the AST to produce the expression for reverse mode differentiation, but it …

---

## [Memory allocation for large numbers of objects?](https://discourse.julialang.org/t/memory-allocation-for-large-numbers-of-objects/1529)

<div class="topic-metadata">

**Author:** [@pearcemc](https://discourse.julialang.org/u/pearcemc)\
**Replies:** 3\
**Last updated:** [January 17, 2017, 7:20am UTC](https://discourse.julialang.org/t/memory-allocation-for-large-numbers-of-objects/1529 "2017-01-17T07:20:47Z")

</div>

I’m experiencing some strange behaviour that I think may be due to memory allocation. I have a parser that runs through a big (90GB) file. It munches lines at a decent rate and then every so often… just hangs for a few …

---

## [Coveralls authentication issue](https://discourse.julialang.org/t/coveralls-authentication-issue/1302)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 4\
**Last updated:** [January 17, 2017, 6:01am UTC](https://discourse.julialang.org/t/coveralls-authentication-issue/1302 "2017-01-17T06:01:29Z")

</div>

Recently I tried to add coverage tests for another package of mine. When I lookup the build in Coveralls, this is what I see: It seems that I need to give authorization somewhere, but I don’t know what exactly is mis…

---

## [String as IO?](https://discourse.julialang.org/t/string-as-io/1488)

<div class="topic-metadata">

**Author:** [@trans](https://discourse.julialang.org/u/trans)\
**Replies:** 4\
**Last updated:** [January 17, 2017, 2:18am UTC](https://discourse.julialang.org/t/string-as-io/1488 "2017-01-17T02:18:10Z")

</div>

If I have a string, how can I treat it like an IO? I have a method that takes an IO and I want to pass a string to it, if at the very least for testing.

---

## [Testing Julia v0.6 on Travis CI?](https://discourse.julialang.org/t/testing-julia-v0-6-on-travis-ci/1487)

<div class="topic-metadata">

**Author:** [@ccoffrin](https://discourse.julialang.org/u/ccoffrin)\
**Replies:** 3\
**Last updated:** [January 16, 2017, 10:04pm UTC](https://discourse.julialang.org/t/testing-julia-v0-6-on-travis-ci/1487 "2017-01-16T22:04:34Z")

</div>

Is there a good example of how to run v0.6 tests on travis-ci?

---

## [Potential compile bug related to keyword arguments and variable scope in 0.5](https://discourse.julialang.org/t/potential-compile-bug-related-to-keyword-arguments-and-variable-scope-in-0-5/1506)

<div class="topic-metadata">

**Author:** [@lwabeke](https://discourse.julialang.org/u/lwabeke)\
**Replies:** 1\
**Last updated:** [January 16, 2017, 12:38pm UTC](https://discourse.julialang.org/t/potential-compile-bug-related-to-keyword-arguments-and-variable-scope-in-0-5/1506 "2017-01-16T12:38:57Z")

</div>

Hi I encountered a bug and initially thought it was limited to the Plotlyjs package (https://github.com/sglyon/PlotlyJS.jl/issues/106), but as @sglyon showed it seems to be a more general Julia problem. From my underst…

---

## [Why is this a method ambiguity?](https://discourse.julialang.org/t/why-is-this-a-method-ambiguity/1502)

<div class="topic-metadata">

**Author:** [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)\
**Replies:** 2\
**Last updated:** [January 16, 2017, 1:16am UTC](https://discourse.julialang.org/t/why-is-this-a-method-ambiguity/1502 "2017-01-16T01:16:45Z")

</div>

I have this type and scaffolding: import Base: convert, promote\_rule, show, (\*) immutable FP64 \<: AbstractFloat fp::Float64 end show(io::IO, a::FP64) = show(io, a.fp) promote\_rule{T\<:AbstractFloat}(::Type{FP64}, :…

---

## [Deep learning and RNN](https://discourse.julialang.org/t/deep-learning-and-rnn/1486)

<div class="topic-metadata">

**Author:** [@TsurHerman](https://discourse.julialang.org/u/TsurHerman)\
**Replies:** 2\
**Last updated:** [January 16, 2017, 12:52am UTC](https://discourse.julialang.org/t/deep-learning-and-rnn/1486 "2017-01-16T00:52:57Z")

</div>

Hi, Do you know of any maintained julia package that can simulate and train RNN’s?

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

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