# Latest

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

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

**Page:** 1979

---

## [Circular Node Autoencoder?](https://discourse.julialang.org/t/circular-node-autoencoder/25312)

<div class="topic-metadata">

**Author:** [@stu](https://discourse.julialang.org/u/stu)\
**Replies:** 0\
**Last updated:** [June 14, 2019, 3:39pm UTC](https://discourse.julialang.org/t/circular-node-autoencoder/25312 "2019-06-14T15:39:22Z")

</div>

Does anyone have any experience using flux to create a circular node autoencoder?

---

## [JuliaDB with Parallel Procs Not Working in JuliaPro](https://discourse.julialang.org/t/juliadb-with-parallel-procs-not-working-in-juliapro/24892)

<div class="topic-metadata">

**Author:** [@dburch](https://discourse.julialang.org/u/dburch)\
**Replies:** 21\
**Last updated:** [June 4, 2019, 5:29pm UTC](https://discourse.julialang.org/t/juliadb-with-parallel-procs-not-working-in-juliapro/24892 "2019-06-04T17:29:51Z")

</div>

I’m using Julia 1.0.3. How do I get JuliaDB with work with parallel procs? When I run the below code I get an error that the package is not available on worker 2. Code: using Distributed while length(procs()) \< 2 …

---

## [Advice for building nested objects](https://discourse.julialang.org/t/advice-for-building-nested-objects/25269)

<div class="topic-metadata">

**Author:** [@Julia\_coder](https://discourse.julialang.org/u/Julia_coder)\
**Replies:** 2\
**Last updated:** [June 14, 2019, 2:42pm UTC](https://discourse.julialang.org/t/advice-for-building-nested-objects/25269 "2019-06-14T14:42:49Z")

</div>

Hello, I am looking for some advice on how to set up nested objects in Julia. For example, if I wanted to create “schoolchildren” (with variables “age”, “testGrade”,“favouriteSubject”) which are then grouped into “class…

---

## [Calling dll funtions](https://discourse.julialang.org/t/calling-dll-funtions/25301)

<div class="topic-metadata">

**Author:** [@rjsharp](https://discourse.julialang.org/u/rjsharp)\
**Replies:** 1\
**Last updated:** [June 14, 2019, 1:00pm UTC](https://discourse.julialang.org/t/calling-dll-funtions/25301 "2019-06-14T13:00:35Z")

</div>

Hello, I decided to learn Julia in order to automate some data analysis and some experiments in the Lab, still, I am struggling with some simple things… I am trying to call a couple of functions of a DLL file in order t…

---

## [Weave Error: Could not spawn pandoc\_header.txt](https://discourse.julialang.org/t/weave-error-could-not-spawn-pandoc-header-txt/25300)

<div class="topic-metadata">

**Author:** [@kapple](https://discourse.julialang.org/u/kapple)\
**Replies:** 2\
**Last updated:** [June 14, 2019, 12:10pm UTC](https://discourse.julialang.org/t/weave-error-could-not-spawn-pandoc-header-txt/25300 "2019-06-14T12:10:52Z")

</div>

Hi everyone, I’ve copied and pasted the example from https://syl1.gitbook.io/julia-language-a-concise-tutorial/useful-packages/14-weave and compiling it with using Weave; weave("testWeave.jmd", out\_path = :pwd, docty…

---

## [@kwdef not working for parametric struct](https://discourse.julialang.org/t/kwdef-not-working-for-parametric-struct/25286)

<div class="topic-metadata">

**Author:** [@phrmoy](https://discourse.julialang.org/u/phrmoy)\
**Replies:** 5\
**Last updated:** [June 14, 2019, 8:57am UTC](https://discourse.julialang.org/t/kwdef-not-working-for-parametric-struct/25286 "2019-06-14T08:57:43Z")

</div>

Hi there, I am super excited about @kwdef being added to Base. I believe it’s a great feature to make the code more robust. With that said, I can’t seem to get it to work with a parametric struct: @kwdef struct A{T} …

---

## [Optim \`Fminbox()\` -- what is wrong](https://discourse.julialang.org/t/optim-fminbox-what-is-wrong/25252)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 2\
**Last updated:** [June 14, 2019, 7:18am UTC](https://discourse.julialang.org/t/optim-fminbox-what-is-wrong/25252 "2019-06-14T07:18:47Z")

</div>

I’m trying to use Optim and Fminbox() for model fitting, but get an error message – and wonder what I do wrong. Here is what I do: I have created a loss function loss(p) (squared norm of shooting error for ODE). As my i…

---

## [Moscow Julia Meetup #1](https://discourse.julialang.org/t/moscow-julia-meetup-1/23409)

<div class="topic-metadata">

**Author:** [@tRaveller](https://discourse.julialang.org/u/tRaveller)\
**Replies:** 2\
**Last updated:** [June 14, 2019, 6:56am UTC](https://discourse.julialang.org/t/moscow-julia-meetup-1/23409 "2019-06-14T06:56:47Z")

</div>

Hi all! I’m very glad to announce first Julia meetup in Moscow. It will take place this Friday at Heuron hackspace. The idea was to fill the gap: there was no meetup or Julia user group in Moscow, only Telegram group. …

---

## [CUDA: MVectors always allocate memory and cause "Out of Memory Error"](https://discourse.julialang.org/t/cuda-mvectors-always-allocate-memory-and-cause-out-of-memory-error/25239)

<div class="topic-metadata">

**Author:** [@11116](https://discourse.julialang.org/u/11116)\
**Replies:** 2\
**Last updated:** [June 14, 2019, 1:51am UTC](https://discourse.julialang.org/t/cuda-mvectors-always-allocate-memory-and-cause-out-of-memory-error/25239 "2019-06-14T01:51:33Z")

</div>

try this simple code: using CUDAnative using CUDAdrv using CuArrays function kernel(i,arr) for i in 1:i a = MVector{3,Float32}(undef) arr\[i\] = a\[1\]+1.0f0 end end N1 = 1 N2 = 10000 arr1 = CuArray(Array{Float32,1}(u…

---

## [Matrix multiplication with custom types](https://discourse.julialang.org/t/matrix-multiplication-with-custom-types/25280)

<div class="topic-metadata">

**Author:** [@staticus](https://discourse.julialang.org/u/staticus)\
**Replies:** 6\
**Last updated:** [June 13, 2019, 11:29pm UTC](https://discourse.julialang.org/t/matrix-multiplication-with-custom-types/25280 "2019-06-13T23:29:56Z")

</div>

Hey there. So I’m very new to coding with Julia and am trying to get a handle on the “generalizability” of the language, as I’ll call it. Below I created a Point strcut/class/? and defined the + and \* operations of two…

---

## [How to interrupt the running julia of julia mode in emacs](https://discourse.julialang.org/t/how-to-interrupt-the-running-julia-of-julia-mode-in-emacs/24945)

<div class="topic-metadata">

**Author:** [@yzcj105](https://discourse.julialang.org/u/yzcj105)\
**Replies:** 5\
**Last updated:** [June 13, 2019, 11:21pm UTC](https://discourse.julialang.org/t/how-to-interrupt-the-running-julia-of-julia-mode-in-emacs/24945 "2019-06-13T23:21:45Z")

</div>

When I use julia mode / Julia repl in emacs, how can I interupt running julia REPL? Usually, in a terminal, we can send Ctrol+C, however, it does not work in emacs.

---

## [Debugging and Breakpoints like in MATLAB](https://discourse.julialang.org/t/debugging-and-breakpoints-like-in-matlab/25270)

<div class="topic-metadata">

**Author:** [@Amin\_Yahyaabadi](https://discourse.julialang.org/u/Amin_Yahyaabadi)\
**Replies:** 1\
**Last updated:** [June 13, 2019, 8:28pm UTC](https://discourse.julialang.org/t/debugging-and-breakpoints-like-in-matlab/25270 "2019-06-13T20:28:17Z")

</div>

How can I do debugging like in MATLAB (using breakpoints inside a function which is called by the main script to see what are the values of the variables in the workspace)? I use Atom IDE, but the breakpoints in Atom do…

---

## [Type of binary variables in constraints](https://discourse.julialang.org/t/type-of-binary-variables-in-constraints/25264)

<div class="topic-metadata">

**Author:** [@owiecc](https://discourse.julialang.org/u/owiecc)\
**Replies:** 4\
**Last updated:** [June 13, 2019, 8:28pm UTC](https://discourse.julialang.org/t/type-of-binary-variables-in-constraints/25264 "2019-06-13T20:28:00Z")

</div>

When I set this problem: data = \[2;3;4;-1;0\] model = Model(with\_optimizer(GLPK.Optimizer)) @variable(model, x\[1:length(data)\], Bin) @objective(model, Min, sum(data.\*x)) optimize!(model) typeof(value.(x)) I would expect…

---

## [ImageView/Gtk Unstable Results](https://discourse.julialang.org/t/imageview-gtk-unstable-results/25267)

<div class="topic-metadata">

**Author:** [@rand5](https://discourse.julialang.org/u/rand5)\
**Replies:** 1\
**Last updated:** [June 13, 2019, 8:26pm UTC](https://discourse.julialang.org/t/imageview-gtk-unstable-results/25267 "2019-06-13T20:26:59Z")

</div>

I’m working on some code using ImageView to show an image in a Gtk window and grab the (x,y) coordinate where the user clicks within the window. I based it on the Calling imshow from a script file section of the ImageVie…

---

## [Are there any fundamental parts of Julia's design or implementation that could limit its performance?](https://discourse.julialang.org/t/are-there-any-fundamental-parts-of-julias-design-or-implementation-that-could-limit-its-performance/25256)

<div class="topic-metadata">

**Author:** [@jackf](https://discourse.julialang.org/u/jackf)\
**Replies:** 6\
**Last updated:** [June 13, 2019, 7:07pm UTC](https://discourse.julialang.org/t/are-there-any-fundamental-parts-of-julias-design-or-implementation-that-could-limit-its-performance/25256 "2019-06-13T19:07:26Z")

</div>

Consider two programs, one written in Julia and one in, say, C++. The Julia program is well written: no type instabilities, not too many allocations, bounds checks disabled, etc. The two programs are structurally similar…

---

## [Should there be a macro or command for variable-depth nested loops?](https://discourse.julialang.org/t/should-there-be-a-macro-or-command-for-variable-depth-nested-loops/25199)

<div class="topic-metadata">

**Author:** [@frank](https://discourse.julialang.org/u/frank)\
**Replies:** 8\
**Last updated:** [June 13, 2019, 6:54pm UTC](https://discourse.julialang.org/t/should-there-be-a-macro-or-command-for-variable-depth-nested-loops/25199 "2019-06-13T18:54:40Z")

</div>

Recently I needed N (a variable number of) nested for-loops. A vector len contained the max counter of each loop. The dumb way would have been this: if n==1 for a=1:len\[1\] # Loop body end elseif n==2 …

---

## [Admin Magazine Article](https://discourse.julialang.org/t/admin-magazine-article/25255)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 1\
**Last updated:** [June 13, 2019, 6:29pm UTC](https://discourse.julialang.org/t/admin-magazine-article/25255 "2019-06-13T18:29:46Z")

</div>

Julia - Fast as Fortran Easy as Python This is one of the most popular articles in Admin Magazine. You may have to subscribe to read it, but the subscription is free for on-line readers.

---

## [What to include as function arguments](https://discourse.julialang.org/t/what-to-include-as-function-arguments/25142)

<div class="topic-metadata">

**Author:** [@HelgavonLichtenstein](https://discourse.julialang.org/u/HelgavonLichtenstein)\
**Replies:** 6\
**Last updated:** [June 13, 2019, 5:50pm UTC](https://discourse.julialang.org/t/what-to-include-as-function-arguments/25142 "2019-06-13T17:50:46Z")

</div>

What things should be placed as function arguments? Do variables such as ranges need to be placed into the function argument or does this slow down/speed up Julia calculations? I have two examples of identical functions…

---

## [Is there something equivalent to setInterval() in JS? but in Julia? ](https://discourse.julialang.org/t/is-there-something-equivalent-to-setinterval-in-js-but-in-julia/15577)

<div class="topic-metadata">

**Author:** [@TheOnlyArtz](https://discourse.julialang.org/u/TheOnlyArtz)\
**Replies:** 5\
**Last updated:** [June 13, 2019, 5:12pm UTC](https://discourse.julialang.org/t/is-there-something-equivalent-to-setinterval-in-js-but-in-julia/15577 "2019-06-13T17:12:02Z")

</div>

Is there something equivalent to setInterval() in JS? but in Julia?

---

## [Findin function support](https://discourse.julialang.org/t/findin-function-support/25250)

<div class="topic-metadata">

**Author:** [@stu](https://discourse.julialang.org/u/stu)\
**Replies:** 2\
**Last updated:** [June 13, 2019, 3:04pm UTC](https://discourse.julialang.org/t/findin-function-support/25250 "2019-06-13T15:04:28Z")

</div>

Is findin still supported in the current version of Julia? I get the following error: \`help?\> findin search: findmin findmin! findfirst Couldn’t find findin Perhaps you meant findmin, findmin!, findall, findmax, fdi…

---

## [Tricky "too many parameters for type" error](https://discourse.julialang.org/t/tricky-too-many-parameters-for-type-error/25182)

<div class="topic-metadata">

**Author:** [@fverdugo](https://discourse.julialang.org/u/fverdugo)\
**Replies:** 12\
**Last updated:** [June 13, 2019, 2:38pm UTC](https://discourse.julialang.org/t/tricky-too-many-parameters-for-type-error/25182 "2019-06-13T14:38:24Z")

</div>

Dear Julia community, I get a “too many parameters for type” error that I cannot really understand. Luckily, I have been able (after some effort) to isolate the issue to a very small reproducer: module AAA abstract t…

---

## [How to export functions from an array in a module?](https://discourse.julialang.org/t/how-to-export-functions-from-an-array-in-a-module/25234)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 6\
**Last updated:** [June 13, 2019, 2:29pm UTC](https://discourse.julialang.org/t/how-to-export-functions-from-an-array-in-a-module/25234 "2019-06-13T14:29:11Z")

</div>

I am trying to do something like this julia\> module t a(x)=4 b(x)=x for f in \[a,b\] export f end end ERROR: syntax: malformed "export" statement Stacktrace: \[1\] top-level scope …

---

## [Best resources on JULIA is now available on Packt just for $ 10](https://discourse.julialang.org/t/best-resources-on-julia-is-now-available-on-packt-just-for-10/25236)

<div class="topic-metadata">

**Author:** [@Packt](https://discourse.julialang.org/u/Packt)\
**Replies:** 0\
**Last updated:** [June 13, 2019, 9:55am UTC](https://discourse.julialang.org/t/best-resources-on-julia-is-now-available-on-packt-just-for-10/25236 "2019-06-13T09:55:48Z")

</div>

Julia Programming Projects Learn: Leverage Julia’s strengths, its top packages, and main IDE options Analyze and manipulate datasets using Julia and DataFrames Write complex code while building real-life Julia appli…

---

## [Name of julia source file?](https://discourse.julialang.org/t/name-of-julia-source-file/25246)

<div class="topic-metadata">

**Author:** [@DavidR](https://discourse.julialang.org/u/DavidR)\
**Replies:** 3\
**Last updated:** [June 13, 2019, 2:15pm UTC](https://discourse.julialang.org/t/name-of-julia-source-file/25246 "2019-06-13T14:15:56Z")

</div>

How can I obtain the name of the current (or main/top) julia source file, from within the code?

---

## [UndefVarError when initializing variable inside function with @everywhere](https://discourse.julialang.org/t/undefvarerror-when-initializing-variable-inside-function-with-everywhere/25183)

<div class="topic-metadata">

**Author:** [@Bruno\_Amorim](https://discourse.julialang.org/u/Bruno_Amorim)\
**Replies:** 10\
**Last updated:** [June 13, 2019, 2:01pm UTC](https://discourse.julialang.org/t/undefvarerror-when-initializing-variable-inside-function-with-everywhere/25183 "2019-06-13T14:01:31Z")

</div>

I am trying to solve a problem in which I have to evaluate a function, f(x), for several different values of an argument x. I want to write a function that depending on the number of available processes it uses either m…

---

## [Vectorized sprintf](https://discourse.julialang.org/t/vectorized-sprintf/25248)

<div class="topic-metadata">

**Author:** [@lbilli](https://discourse.julialang.org/u/lbilli)\
**Replies:** 1\
**Last updated:** [June 13, 2019, 1:52pm UTC](https://discourse.julialang.org/t/vectorized-sprintf/25248 "2019-06-13T13:52:43Z")

</div>

What would be a Julia equivalent of the following R one liner? f \<- function(fmt, ...) paste(sprintf(fmt, ...), collapse=", ") f("%d %s", 1:3, LETTERS\[1:3\]) "1 A, 2 B, 3 C" I tried looping around Julia’s @sprintf but,…

---

## [Type NamedTuple has no field id](https://discourse.julialang.org/t/type-namedtuple-has-no-field-id/25241)

<div class="topic-metadata">

**Author:** [@shahriariit](https://discourse.julialang.org/u/shahriariit)\
**Replies:** 2\
**Last updated:** [June 13, 2019, 12:42pm UTC](https://discourse.julialang.org/t/type-namedtuple-has-no-field-id/25241 "2019-06-13T12:42:32Z")

</div>

I try to run this code, s2\_obj = @from i in df\_recipe begin @let ibu\_cs = (i.ibu - cs\_dict\["m\_ibu"\]) / cs\_dict\["sd\_ibu"\] @let color\_cs = (i.color - cs\_dict\["m\_color"\]) / cs\_dict\["sd\_color"\] @select {id = i.id, ibu = ibu…

---

## [ERROR: MethodError: no method matching cos(::Array{Int64,1})](https://discourse.julialang.org/t/error-methoderror-no-method-matching-cos-array-int64-1/25217)

<div class="topic-metadata">

**Author:** [@JDA](https://discourse.julialang.org/u/JDA)\
**Replies:** 6\
**Last updated:** [June 13, 2019, 12:28pm UTC](https://discourse.julialang.org/t/error-methoderror-no-method-matching-cos-array-int64-1/25217 "2019-06-13T12:28:58Z")

</div>

What is the reason for this ?

---

## [Save data from interrupted computation](https://discourse.julialang.org/t/save-data-from-interrupted-computation/25232)

<div class="topic-metadata">

**Author:** [@rveltz](https://discourse.julialang.org/u/rveltz)\
**Replies:** 2\
**Last updated:** [June 13, 2019, 12:08pm UTC](https://discourse.julialang.org/t/save-data-from-interrupted-computation/25232 "2019-06-13T12:08:22Z")

</div>

Hi, I have a sophisticated computation that I would like to halt. The function is like the one below. If I stop the function, I lose the result output. Apart from rewriting the function (it is part of a package…), is th…

---

## [How to use @debug](https://discourse.julialang.org/t/how-to-use-debug/25237)

<div class="topic-metadata">

**Author:** [@bsnyh](https://discourse.julialang.org/u/bsnyh)\
**Replies:** 0\
**Last updated:** [June 13, 2019, 10:06am UTC](https://discourse.julialang.org/t/how-to-use-debug/25237 "2019-06-13T10:06:30Z")

</div>

julia\> ENV\["JULIA\_DEBUG"\]="all" "all" julia\> @debug for i=1:6 println("haha") end haha haha haha haha haha haha ┌ Error: Exception while generating log record in module Main at none:1 │ …

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

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