# Latest

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

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

**Page:** 1834

---

## [Problem using Optim.optimize](https://discourse.julialang.org/t/problem-using-optim-optimize/33728)

<div class="topic-metadata">

**Author:** [@Ujku\_KU](https://discourse.julialang.org/u/Ujku_KU)\
**Replies:** 36\
**Last updated:** [February 3, 2020, 5:00am UTC](https://discourse.julialang.org/t/problem-using-optim-optimize/33728 "2020-02-03T05:00:41Z")

</div>

Hi guys, I am trying to translate a piece of code from Matlab to Julia, please see following first the original Matlab code: options = optimset('Largescale', 'off', 'MaxFunEvals', 500, 'GradObj','on', 'Display','notify'…

---

## [Help to reduce very long compilation time](https://discourse.julialang.org/t/help-to-reduce-very-long-compilation-time/34052)

<div class="topic-metadata">

**Author:** [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Replies:** 10\
**Last updated:** [February 2, 2020, 10:56pm UTC](https://discourse.julialang.org/t/help-to-reduce-very-long-compilation-time/34052 "2020-02-02T22:56:11Z")

</div>

Hi! I am building a package to create text user interfaces in Julia using ncurses: TextUserInterfaces.jl Now, I am facing a very, very slow compilation time. For example, the following code just initialize NCurses, cre…

---

## [Interrupting while loops in VSCode](https://discourse.julialang.org/t/interrupting-while-loops-in-vscode/34083)

<div class="topic-metadata">

**Author:** [@drhouse82](https://discourse.julialang.org/u/drhouse82)\
**Replies:** 2\
**Last updated:** [February 2, 2020, 10:14pm UTC](https://discourse.julialang.org/t/interrupting-while-loops-in-vscode/34083 "2020-02-02T22:14:17Z")

</div>

I’m confused by the behaviour of breaking while loops in VSCode when either using REPL only or running a script from a file. Code: while true println("foo") sleep(1) end If I type this into the VSCode REPL the…

---

## [Jump code errors](https://discourse.julialang.org/t/jump-code-errors/34090)

<div class="topic-metadata">

**Author:** [@bandaya](https://discourse.julialang.org/u/bandaya)\
**Replies:** 2\
**Last updated:** [February 2, 2020, 9:23pm UTC](https://discourse.julialang.org/t/jump-code-errors/34090 "2020-02-02T21:23:52Z")

</div>

Hi, I am new to Julia and I am having problems in running simple examples of Jump. I have given links to two examples below: Manual · MathOptInterface https://nbviewer.jupyter.org/github/JuliaOpt/juliaopt-notebooks/bl…

---

## [Access variable values](https://discourse.julialang.org/t/access-variable-values/34070)

<div class="topic-metadata">

**Author:** [@compleat](https://discourse.julialang.org/u/compleat)\
**Replies:** 6\
**Last updated:** [February 2, 2020, 9:14pm UTC](https://discourse.julialang.org/t/access-variable-values/34070 "2020-02-02T21:14:46Z")

</div>

Pardon my ignorance, but I have a very basic question. Suppose I have a variable and I want to assign the value of that variable to the value of another variable without structurally linking the two variables (i.e., t…

---

## [Type hierarchy graphic in docs build](https://discourse.julialang.org/t/type-hierarchy-graphic-in-docs-build/34066)

<div class="topic-metadata">

**Author:** [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Replies:** 7\
**Last updated:** [February 2, 2020, 7:42pm UTC](https://discourse.julialang.org/t/type-hierarchy-graphic-in-docs-build/34066 "2020-02-02T19:42:23Z")

</div>

Is there any pre-existing method for generating a type hierarchy as a graphic image for a Documenter build? My goal is to have the graphic generated automatically.

---

## [Spy function for large sparse matrices](https://discourse.julialang.org/t/spy-function-for-large-sparse-matrices/11247)

<div class="topic-metadata">

**Author:** [@briochemc](https://discourse.julialang.org/u/briochemc)\
**Replies:** 9\
**Last updated:** [February 2, 2020, 7:09pm UTC](https://discourse.julialang.org/t/spy-function-for-large-sparse-matrices/11247 "2020-02-02T19:09:29Z")

</div>

I tried julia\> using Plots julia\> spy(A) for a rather large sparse matrix, and spy just hangs there for too long for it to be useful to me… MATLAB’s spy is quite fast in comparison. I’m guessing Julia’s spy plot is not…

---

## [Rolling maxima](https://discourse.julialang.org/t/rolling-maxima/33845)

<div class="topic-metadata">

**Author:** [@Kruxigt](https://discourse.julialang.org/u/Kruxigt)\
**Replies:** 24\
**Last updated:** [February 2, 2020, 6:08pm UTC](https://discourse.julialang.org/t/rolling-maxima/33845 "2020-02-02T18:08:18Z")

</div>

Hi all fine people here! I am just interested in knowing if anyone here sees any performance improvements in my code. Either algorithmically or Julia specific. The code in question is a function which calculates local …

---

## [Comparing Mutable Structs](https://discourse.julialang.org/t/comparing-mutable-structs/10944)

<div class="topic-metadata">

**Author:** [@iwelch](https://discourse.julialang.org/u/iwelch)\
**Replies:** 11\
**Last updated:** [February 2, 2020, 5:59pm UTC](https://discourse.julialang.org/t/comparing-mutable-structs/10944 "2020-02-02T17:59:26Z")

</div>

dear wizards—is this intended behavior? julia\> mutable struct S; x::Int; end#struct## julia\> v= \[ S(1), S(2) \] 2-element Array{S,1}: S(1) S(2) julia\> v==deepcopy(v) ## only when v is mutable false julia\> v==copy(…

---

## [Instancing a custom number type and using in arrays](https://discourse.julialang.org/t/instancing-a-custom-number-type-and-using-in-arrays/34071)

<div class="topic-metadata">

**Author:** [@GregVernon](https://discourse.julialang.org/u/GregVernon)\
**Replies:** 5\
**Last updated:** [February 2, 2020, 5:54pm UTC](https://discourse.julialang.org/t/instancing-a-custom-number-type-and-using-in-arrays/34071 "2020-02-02T17:54:06Z")

</div>

I’m trying to write FEM code for school and I’d like to use custom number types as a means of error-proofing. Essentially, I’d like to have a type difference between element ids, global node ids, local node ids, global …

---

## [Custom stateful transducer performance](https://discourse.julialang.org/t/custom-stateful-transducer-performance/34065)

<div class="topic-metadata">

**Author:** [@Jakub\_Wronowski](https://discourse.julialang.org/u/Jakub_Wronowski)\
**Replies:** 5\
**Last updated:** [February 2, 2020, 3:21pm UTC](https://discourse.julialang.org/t/custom-stateful-transducer-performance/34065 "2020-02-02T15:21:10Z")

</div>

Hi, I am trying to implement a custom stateful transducer, but I am not happy with performance I got. using Transducers using Transducers: Transducer, R\_, next, inner, xform using Transducers: start, complete, wrap, unw…

---

## [Export from a submodule](https://discourse.julialang.org/t/export-from-a-submodule/34081)

<div class="topic-metadata">

**Author:** [@Isaia\_Nisoli](https://discourse.julialang.org/u/Isaia_Nisoli)\
**Replies:** 2\
**Last updated:** [February 2, 2020, 2:39pm UTC](https://discourse.julialang.org/t/export-from-a-submodule/34081 "2020-02-02T14:39:39Z")

</div>

Dear all, I trying to solve this issue, but to no avail. I have the following module structure Module Foo Module Bar export f f(x, y) =x+y end using .Bar end I would like the function f to be visible in the REP…

---

## [Exporting (all) names from a module (Clang related)](https://discourse.julialang.org/t/exporting-all-names-from-a-module-clang-related/33828)

<div class="topic-metadata">

**Author:** [@purplishrock](https://discourse.julialang.org/u/purplishrock)\
**Replies:** 10\
**Last updated:** [February 2, 2020, 2:08pm UTC](https://discourse.julialang.org/t/exporting-all-names-from-a-module-clang-related/33828 "2020-02-02T14:08:29Z")

</div>

I have the following: module CLib using CEnum include("common.jl") include("api.jl") end And naturally I want to automagically export everything that comes in from common and api. Currently if i do using CLib An…

---

## [Creating Artifacts.toml for existing tarball](https://discourse.julialang.org/t/creating-artifacts-toml-for-existing-tarball/33365)

<div class="topic-metadata">

**Author:** [@ssfrr](https://discourse.julialang.org/u/ssfrr)\
**Replies:** 9\
**Last updated:** [February 2, 2020, 1:33pm UTC](https://discourse.julialang.org/t/creating-artifacts-toml-for-existing-tarball/33365 "2020-02-02T13:33:59Z")

</div>

I’m trying to figure out how to create an Artifacts.toml to download some data that my package depends on. I’m creating a setup\_artifacts.jl script to create it. Here’s what I have so far: using Pkg.Artifacts using Pkg…

---

## [MKL installation fails on Julia 1.3.1](https://discourse.julialang.org/t/mkl-installation-fails-on-julia-1-3-1/34075)

<div class="topic-metadata">

**Author:** [@kumarbalachandran](https://discourse.julialang.org/u/kumarbalachandran)\
**Replies:** 1\
**Last updated:** [February 2, 2020, 12:58pm UTC](https://discourse.julialang.org/t/mkl-installation-fails-on-julia-1-3-1/34075 "2020-02-02T12:58:49Z")

</div>

I am trying to install MKL on Windoes 10 and the error log is attached. The installation has succeeded on another machine. add https://github.com/JuliaComputing/MKL.jl #master Cloning git-repo \`https://github.com/Jul…

---

## [How to use LBFGS to minimise the cost function for regularised logistic regression](https://discourse.julialang.org/t/how-to-use-lbfgs-to-minimise-the-cost-function-for-regularised-logistic-regression/34058)

<div class="topic-metadata">

**Author:** [@PyDataBlog](https://discourse.julialang.org/u/PyDataBlog)\
**Replies:** 7\
**Last updated:** [February 2, 2020, 11:12am UTC](https://discourse.julialang.org/t/how-to-use-lbfgs-to-minimise-the-cost-function-for-regularised-logistic-regression/34058 "2020-02-02T11:12:33Z")

</div>

I am currently stuck trying to utilize the Optim package in Julia in an attempt to minimize a cost function. The cost function is the cost function for an L2 regularised logistic regression. It is constructed as follows; …

---

## [Julia Roadmap](https://discourse.julialang.org/t/julia-roadmap/33998)

<div class="topic-metadata">

**Author:** [@digeratus](https://discourse.julialang.org/u/digeratus)\
**Replies:** 20\
**Last updated:** [February 2, 2020, 7:21am UTC](https://discourse.julialang.org/t/julia-roadmap/33998 "2020-02-02T07:21:03Z")

</div>

Other lang communities have public roadmaps e.g. rust, go, ruby, etc I’m wondering if there’s a version for Julia I can take a look. It would help immensely, particularly in terms of transparency, community, etc. Thanks. …

---

## [Interact slider, clear cell output question; WebIO problem?](https://discourse.julialang.org/t/interact-slider-clear-cell-output-question-webio-problem/33826)

<div class="topic-metadata">

**Author:** [@ea42gh](https://discourse.julialang.org/u/ea42gh)\
**Replies:** 5\
**Last updated:** [February 2, 2020, 12:46am UTC](https://discourse.julialang.org/t/interact-slider-clear-cell-output-question-webio-problem/33826 "2020-02-02T00:46:09Z")

</div>

I want to update the output in a jupyter cell based on a slider, but need to clear the cell as I go. Something like: l = collect(1:10) # simplistic: actual code has a list of PrettyTables N\_steps = length(l) step\_ct…

---

## [Input parsing for macros without "parantheses"](https://discourse.julialang.org/t/input-parsing-for-macros-without-parantheses/34068)

<div class="topic-metadata">

**Author:** [@uwechsler](https://discourse.julialang.org/u/uwechsler)\
**Replies:** 2\
**Last updated:** [February 1, 2020, 11:37pm UTC](https://discourse.julialang.org/t/input-parsing-for-macros-without-parantheses/34068 "2020-02-01T23:37:53Z")

</div>

Let’s consider the macro @mymacro which parses some input arguments which are separated by commas as shown below. macro mymacro(expr...) # ... does something with expr return expr end @mymacro(x' = x, x∈X, …

---

## [Mathematical Programming Computation: open access publications in optimization](https://discourse.julialang.org/t/mathematical-programming-computation-open-access-publications-in-optimization/34069)

<div class="topic-metadata">

**Author:** [@dpo](https://discourse.julialang.org/u/dpo)\
**Replies:** 0\
**Last updated:** [February 1, 2020, 11:27pm UTC](https://discourse.julialang.org/t/mathematical-programming-computation-open-access-publications-in-optimization/34069 "2020-02-01T23:27:40Z")

</div>

I hope it’s ok to post this announcement here and that I chose the right category. There was a discussion on Slack/math-optimization recently about publishing optimization research in an open access journal (I can’t fin…

---

## [Implement berHu loss in Flux](https://discourse.julialang.org/t/implement-berhu-loss-in-flux/31707)

<div class="topic-metadata">

**Author:** [@jchen975](https://discourse.julialang.org/u/jchen975)\
**Replies:** 9\
**Last updated:** [February 1, 2020, 9:06pm UTC](https://discourse.julialang.org/t/implement-berhu-loss-in-flux/31707 "2020-02-01T21:06:06Z")

</div>

Hi, I was trying to build this loss function from this paper: I wanted to see if it outperforms squared L2 norm in another regression problem I’m working on. Here is my attempt: function berhu(x, y) x = model…

---

## [Broadcasting for a block diagonal matrix](https://discourse.julialang.org/t/broadcasting-for-a-block-diagonal-matrix/34024)

<div class="topic-metadata">

**Author:** [@teored90](https://discourse.julialang.org/u/teored90)\
**Replies:** 5\
**Last updated:** [February 1, 2020, 7:39pm UTC](https://discourse.julialang.org/t/broadcasting-for-a-block-diagonal-matrix/34024 "2020-02-01T19:39:55Z")

</div>

I would like to implement a more efficient broadcast for basic arithmetic operators for the BlockDiagonal type of BlockDiagonals.jl. At the moment the broadcasting causes many allocations, I suppose because it falls back…

---

## [Using reserved words/syntax (try, ?) as macro names](https://discourse.julialang.org/t/using-reserved-words-syntax-try-as-macro-names/34063)

<div class="topic-metadata">

**Author:** [@kevin.squire](https://discourse.julialang.org/u/kevin.squire)\
**Replies:** 2\
**Last updated:** [February 1, 2020, 4:15pm UTC](https://discourse.julialang.org/t/using-reserved-words-syntax-try-as-macro-names/34063 "2020-02-01T16:15:11Z")

</div>

TL;DR: I’d like to be able to use @try or @? as macro names for try-catch-like syntax in code using Result types. Would this be reasonable to allow? ############ I’ve been exploring ResultTypes.jl as an alternative to…

---

## [FOSDEM conference this weekend](https://discourse.julialang.org/t/fosdem-conference-this-weekend/33915)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 2\
**Last updated:** [February 1, 2020, 3:05pm UTC](https://discourse.julialang.org/t/fosdem-conference-this-weekend/33915 "2020-02-01T15:05:30Z")

</div>

Are there any Julians attending FOSDEM in Brussels this weekend? Meet for a beer perhaps?

---

## [API for specifying which version of a function to use in a package](https://discourse.julialang.org/t/api-for-specifying-which-version-of-a-function-to-use-in-a-package/34047)

<div class="topic-metadata">

**Author:** [@dpsanders](https://discourse.julialang.org/u/dpsanders)\
**Replies:** 5\
**Last updated:** [February 1, 2020, 1:39pm UTC](https://discourse.julialang.org/t/api-for-specifying-which-version-of-a-function-to-use-in-a-package/34047 "2020-02-01T13:39:04Z")

</div>

In IntervalArithmetic.jl we need a way to choose between different versions of a function (e.g. the power function) that have different performance / accuracy tradeoffs. Is there a standard way to have an API for that? …

---

## [Error installing ImageView Library](https://discourse.julialang.org/t/error-installing-imageview-library/33976)

<div class="topic-metadata">

**Author:** [@samantp](https://discourse.julialang.org/u/samantp)\
**Replies:** 14\
**Last updated:** [February 1, 2020, 8:08am UTC](https://discourse.julialang.org/t/error-installing-imageview-library/33976 "2020-02-01T08:08:02Z")

</div>

I work in medical imaging and am therefore trying to install the ImageView Library, but I am getting an error when I build it, as follows (sorry this is a bit lengthy but I have no idea what is important and what is not)…

---

## [Resetting a variable to the unsigned state](https://discourse.julialang.org/t/resetting-a-variable-to-the-unsigned-state/34051)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 7\
**Last updated:** [February 1, 2020, 1:31am UTC](https://discourse.julialang.org/t/resetting-a-variable-to-the-unsigned-state/34051 "2020-02-01T01:31:58Z")

</div>

Hi, I’m trying to convert all package global variables to const global, but some of them must be reset at the end (their state is checked at some code point). As an example julia\> a = Array{GMT.GMTcpt,1}(undef,1) 1-el…

---

## [MCMC in Economics?](https://discourse.julialang.org/t/mcmc-in-economics/34050)

<div class="topic-metadata">

**Author:** [@fratrik](https://discourse.julialang.org/u/fratrik)\
**Replies:** 1\
**Last updated:** [January 31, 2020, 11:35pm UTC](https://discourse.julialang.org/t/mcmc-in-economics/34050 "2020-01-31T23:35:04Z")

</div>

Has anyone used one of the MCMC libraries for sampling in macroeconomics? I see that @Tamas\_Papp has developed a library that only depends on the likelihood. However, it looks like Mamba.jl more closely maps onto the so…

---

## [Julia alternative for turtle graphics](https://discourse.julialang.org/t/julia-alternative-for-turtle-graphics/31683)

<div class="topic-metadata">

**Author:** [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Replies:** 8\
**Last updated:** [January 31, 2020, 10:56pm UTC](https://discourse.julialang.org/t/julia-alternative-for-turtle-graphics/31683 "2020-01-31T22:56:12Z")

</div>

A while back I made a nice visualization of the Ramanujan tau function using python turtle graphics, which I made for the 100th anniversary of this function. The turtle interface was very nice for making the graphics, wh…

---

## [Sample conditional multivariate random variable?](https://discourse.julialang.org/t/sample-conditional-multivariate-random-variable/34035)

<div class="topic-metadata">

**Author:** [@Alex1](https://discourse.julialang.org/u/Alex1)\
**Replies:** 4\
**Last updated:** [January 31, 2020, 10:40pm UTC](https://discourse.julialang.org/t/sample-conditional-multivariate-random-variable/34035 "2020-01-31T22:40:03Z")

</div>

There’s multivariate random variable, future prices of assets, 5 years from now: X = \[Gold, Silver, SP500\] There’s historical prices for X available for last 50 years. It’s possible to fit historical prices to get mult…

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

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