# Latest

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

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

**Page:** 1992

---

## [Unsupported call through a literal pointer on float power broadcast (CuArrays)](https://discourse.julialang.org/t/unsupported-call-through-a-literal-pointer-on-float-power-broadcast-cuarrays/24477)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 1\
**Last updated:** [May 22, 2019, 1:38pm UTC](https://discourse.julialang.org/t/unsupported-call-through-a-literal-pointer-on-float-power-broadcast-cuarrays/24477 "2019-05-22T13:38:40Z")

</div>

A compiler error occurs when broadcasting a Float power function on a CuArray: .^(::CuArray{Float32,1}, ::Float32) I opened an issue on github as well here. I post here in case this is a usage error. The Minimal Workin…

---

## [UnDefVarError - Model not defined in Julia optimization problem](https://discourse.julialang.org/t/undefvarerror-model-not-defined-in-julia-optimization-problem/24451)

<div class="topic-metadata">

**Author:** [@RohiniShetty](https://discourse.julialang.org/u/RohiniShetty)\
**Replies:** 5\
**Last updated:** [May 22, 2019, 1:22pm UTC](https://discourse.julialang.org/t/undefvarerror-model-not-defined-in-julia-optimization-problem/24451 "2019-05-22T13:22:26Z")

</div>

using ExcelReaders, JuMP, CPLEX, DataFrames; using JuMP, Clp; MinCD = JuMP.Model(solver=CPLEX.CplexSolver(CPX\_PARAM\_TILIM = 3600)); “UnDefVarError Model not defined” I did read most of the fixes for Model not defined,…

---

## [Is priority queue more efficient than a vector / list, in terms of inserting an element into a structure which keeps a decreasing / increasing order?](https://discourse.julialang.org/t/is-priority-queue-more-efficient-than-a-vector-list-in-terms-of-inserting-an-element-into-a-structure-which-keeps-a-decreasing-increasing-order/24461)

<div class="topic-metadata">

**Author:** [@bsnyh](https://discourse.julialang.org/u/bsnyh)\
**Replies:** 4\
**Last updated:** [May 22, 2019, 11:46am UTC](https://discourse.julialang.org/t/is-priority-queue-more-efficient-than-a-vector-list-in-terms-of-inserting-an-element-into-a-structure-which-keeps-a-decreasing-increasing-order/24461 "2019-05-22T11:46:36Z")

</div>

Hi. The task is to insert an element into a structure which keeps a decreasing / increasing order in terms of a certain property, say height, of the elements in the structure. One way to do it, is to use vector / list st…

---

## [typeof(myFunction) does not work for a self-defined function myFunction](https://discourse.julialang.org/t/typeof-myfunction-does-not-work-for-a-self-defined-function-myfunction/24464)

<div class="topic-metadata">

**Author:** [@bsnyh](https://discourse.julialang.org/u/bsnyh)\
**Replies:** 7\
**Last updated:** [May 22, 2019, 9:39am UTC](https://discourse.julialang.org/t/typeof-myfunction-does-not-work-for-a-self-defined-function-myfunction/24464 "2019-05-22T09:39:12Z")

</div>

julia\> function myFunction() println(“haha, you die”) end myFunction (generic function with 1 method) julia\> println(“type of myFunction:”, typeof(myFunction)) type of myFunction:typeof(myFunction) a bit strange,…

---

## [VS code not parsing unitful string macro for style](https://discourse.julialang.org/t/vs-code-not-parsing-unitful-string-macro-for-style/24460)

<div class="topic-metadata">

**Author:** [@longemen3000](https://discourse.julialang.org/u/longemen3000)\
**Replies:** 5\
**Last updated:** [May 22, 2019, 9:21am UTC](https://discourse.julialang.org/t/vs-code-not-parsing-unitful-string-macro-for-style/24460 "2019-05-22T09:21:10Z")

</div>

i have this syntax highlighting problem when using the uniful syntax, on julia 1.1.1 the problem is in juno too: any idea?

---

## [Initialization of an empty array, which will be filled in a loop with arrays of different sizes](https://discourse.julialang.org/t/initialization-of-an-empty-array-which-will-be-filled-in-a-loop-with-arrays-of-different-sizes/24463)

<div class="topic-metadata">

**Author:** [@Volker](https://discourse.julialang.org/u/Volker)\
**Replies:** 5\
**Last updated:** [May 22, 2019, 8:48am UTC](https://discourse.julialang.org/t/initialization-of-an-empty-array-which-will-be-filled-in-a-loop-with-arrays-of-different-sizes/24463 "2019-05-22T08:48:50Z")

</div>

Hello, I would like to programm an algorithm, where an array will be filled with other arrays of different sizes. Does somebody know how to it? Best regards

---

## [Short circuit evaluation with an assignment statement](https://discourse.julialang.org/t/short-circuit-evaluation-with-an-assignment-statement/24443)

<div class="topic-metadata">

**Author:** [@lewis](https://discourse.julialang.org/u/lewis)\
**Replies:** 8\
**Last updated:** [May 22, 2019, 4:21am UTC](https://discourse.julialang.org/t/short-circuit-evaluation-with-an-assignment-statement/24443 "2019-05-22T04:21:22Z")

</div>

There is an example in the (increasingly more excellent) manual under short circuit evaluation that shows an assignment statement as the follow-on statement: julia\> true && (x = (1, 2, 3)) (1, 2, 3) julia\> false && (x …

---

## [Problem about option-readtimeout@HTTP](https://discourse.julialang.org/t/problem-about-option-readtimeout-http/24458)

<div class="topic-metadata">

**Author:** [@remedisbetty](https://discourse.julialang.org/u/remedisbetty)\
**Replies:** 0\
**Last updated:** [May 22, 2019, 3:36am UTC](https://discourse.julialang.org/t/problem-about-option-readtimeout-http/24458 "2019-05-22T03:36:14Z")

</div>

When I used the HTTP.request to send job to clients, I get a response of timeout and connection closed after 60s. While, it seems that the option readtimeout doesn’t work. for details, please refer to this URL https:…

---

## [S3 object stores - current state?](https://discourse.julialang.org/t/s3-object-stores-current-state/24437)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 7\
**Last updated:** [May 22, 2019, 1:34am UTC](https://discourse.julialang.org/t/s3-object-stores-current-state/24437 "2019-05-22T01:34:25Z")

</div>

What is the current state of packages in Julia for accessing S3 object stores. In particular CEPH. Are people just using boto with PyCall? Forgive me if I have asked this one before. Goldfish bowl memory.

---

## [Setting breakpoint: no luck](https://discourse.julialang.org/t/setting-breakpoint-no-luck/24418)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 8\
**Last updated:** [May 22, 2019, 1:28am UTC](https://discourse.julialang.org/t/setting-breakpoint-no-luck/24418 "2019-05-22T01:28:00Z")

</div>

This code simply runs: it does not stop for the breakpoint. module Utils using Debugger function myfunc(x) x = x .^2 @bp return x .+ 3 end end using Main.Utils Main.Utils.myfunc(3) ???

---

## [Instantiate a Manifest.toml without Project.toml](https://discourse.julialang.org/t/instantiate-a-manifest-toml-without-project-toml/24450)

<div class="topic-metadata">

**Author:** [@ablaom](https://discourse.julialang.org/u/ablaom)\
**Replies:** 1\
**Last updated:** [May 21, 2019, 8:21pm UTC](https://discourse.julialang.org/t/instantiate-a-manifest-toml-without-project-toml/24450 "2019-05-21T20:21:21Z")

</div>

I have a Manifest.toml file without a Project.toml file. When I activate the environment and instantiate, instantiate runs but does not load the packages (and red arrows remain). Is this a bug or do I not get the process…

---

## [Iteration of SVD factorization](https://discourse.julialang.org/t/iteration-of-svd-factorization/24445)

<div class="topic-metadata">

**Author:** [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Replies:** 3\
**Last updated:** [May 21, 2019, 7:38pm UTC](https://discourse.julialang.org/t/iteration-of-svd-factorization/24445 "2019-05-21T19:38:27Z")

</div>

I was suprised to see that iterating a SVD gives U, S, and V instead of U, S, and Vt. After all it is U \* Diagonal(S) \* Vt which restores the factorized matrix. Returning Vt would also make more sense to me from a techn…

---

## [No v1.2 binary available for download](https://discourse.julialang.org/t/no-v1-2-binary-available-for-download/24444)

<div class="topic-metadata">

**Author:** [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)\
**Replies:** 9\
**Last updated:** [May 21, 2019, 6:45pm UTC](https://discourse.julialang.org/t/no-v1-2-binary-available-for-download/24444 "2019-05-21T18:45:16Z")

</div>

Similar to previous transitions between versions, we’re now in a state where no binary for julia v1.2 is available for download. Latest release is v1.1 and nightly is v1.3 (which constantly segfaults for me). Could a v1…

---

## [Networks' Simulation](https://discourse.julialang.org/t/networks-simulation/24239)

<div class="topic-metadata">

**Author:** [@ennvvy](https://discourse.julialang.org/u/ennvvy)\
**Replies:** 7\
**Last updated:** [May 21, 2019, 5:18pm UTC](https://discourse.julialang.org/t/networks-simulation/24239 "2019-05-21T17:18:41Z")

</div>

I have been using Julia to simulate calculations involving directed networks. Monte Carlo simulations(100 iterations) with a network with 100 nodes used to take 10mins. But the code doesn’t scale well, for a directed net…

---

## [Mystery function disappearance](https://discourse.julialang.org/t/mystery-function-disappearance/24442)

<div class="topic-metadata">

**Author:** [@lewis](https://discourse.julialang.org/u/lewis)\
**Replies:** 1\
**Last updated:** [May 21, 2019, 4:44pm UTC](https://discourse.julialang.org/t/mystery-function-disappearance/24442 "2019-05-21T16:44:11Z")

</div>

I have written a rather large module. I use it locally so I have not gone through the complex process to make it a package. I just refactored some functions, always fraught with peril. A smaller function in a separate…

---

## [Documenter stop deploying](https://discourse.julialang.org/t/documenter-stop-deploying/24429)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 14\
**Last updated:** [May 21, 2019, 3:51pm UTC](https://discourse.julialang.org/t/documenter-stop-deploying/24429 "2019-05-21T15:51:20Z")

</div>

Hi, Since two weeks ago the Documenter stop deploying the docs. It doesn’t tell me why, only Info: skipping docs deployment. What is wrong here? Thanks ... \[ Info: SetupBuildDirectory: setting up build directory. \[ I…

---

## [Optim user-supplied gradient not working](https://discourse.julialang.org/t/optim-user-supplied-gradient-not-working/24417)

<div class="topic-metadata">

**Author:** [@tyleransom](https://discourse.julialang.org/u/tyleransom)\
**Replies:** 6\
**Last updated:** [May 21, 2019, 3:45pm UTC](https://discourse.julialang.org/t/optim-user-supplied-gradient-not-working/24417 "2019-05-21T15:45:56Z")

</div>

I’m estimating a maximum likelihood problem, and I’ve specified both the objective function and the gradient correctly. (I know this because I am able to reproduce estimates using the same exact data as a Stata example.) …

---

## [How to avoid for blocks to evaluate](https://discourse.julialang.org/t/how-to-avoid-for-blocks-to-evaluate/24430)

<div class="topic-metadata">

**Author:** [@Jaime](https://discourse.julialang.org/u/Jaime)\
**Replies:** 4\
**Last updated:** [May 21, 2019, 3:30pm UTC](https://discourse.julialang.org/t/how-to-avoid-for-blocks-to-evaluate/24430 "2019-05-21T15:30:53Z")

</div>

I learned some blocks like if or begin or short-circuit evaluate last expression and they also have values(I don’t know concise words.) 1 + if true x=10 y=20 end this results 21. false || 1+begin x=10 y=20 end this r…

---

## [CouenneNL in version 1.1.1](https://discourse.julialang.org/t/couennenl-in-version-1-1-1/24405)

<div class="topic-metadata">

**Author:** [@Raminel](https://discourse.julialang.org/u/Raminel)\
**Replies:** 5\
**Last updated:** [May 21, 2019, 2:42pm UTC](https://discourse.julialang.org/t/couennenl-in-version-1-1-1/24405 "2019-05-21T14:42:15Z")

</div>

Hi, I am a new user of Julia and trying to solve my MINLP problem using CouenneNL. The problem is non convex so the solution I got from Ipopt is not reliable. How can I use CouenneNL in version v. 1.1.1?

---

## [A small attempt at running CLArrays.jl with julia 1.0](https://discourse.julialang.org/t/a-small-attempt-at-running-clarrays-jl-with-julia-1-0/15208)

<div class="topic-metadata">

**Author:** [@y4lu](https://discourse.julialang.org/u/y4lu)\
**Replies:** 11\
**Last updated:** [May 21, 2019, 2:35pm UTC](https://discourse.julialang.org/t/a-small-attempt-at-running-clarrays-jl-with-julia-1-0/15208 "2019-05-21T14:35:16Z")

</div>

I think I got a fair way through the precompile stage, mostly just replacing immutable’s with struct’s and moving the {T}'s of func{T}() to func() where{T}, but I’ve gotten a bit stuck on an unrecognized :SSAValue, from …

---

## [Closures: Is this docs sentence still relevant?](https://discourse.julialang.org/t/closures-is-this-docs-sentence-still-relevant/24432)

<div class="topic-metadata">

**Author:** [@francesco.alemanno](https://discourse.julialang.org/u/francesco.alemanno)\
**Replies:** 1\
**Last updated:** [May 21, 2019, 2:01pm UTC](https://discourse.julialang.org/t/closures-is-this-docs-sentence-still-relevant/24432 "2019-05-21T14:01:32Z")

</div>

Last sentence in the page performance tips “In the mean time, some user-contributed packages like FastClosures automate the insertion of let statements as in abmult3 .” Perf. Tips \[latest docs\] i used closures heavily…

---

## [How to pass first argument of a function as default and only input second argument](https://discourse.julialang.org/t/how-to-pass-first-argument-of-a-function-as-default-and-only-input-second-argument/24426)

<div class="topic-metadata">

**Author:** [@Jaime](https://discourse.julialang.org/u/Jaime)\
**Replies:** 3\
**Last updated:** [May 21, 2019, 1:26pm UTC](https://discourse.julialang.org/t/how-to-pass-first-argument-of-a-function-as-default-and-only-input-second-argument/24426 "2019-05-21T13:26:32Z")

</div>

function addremove( x=100, y=10) x+y, x-y end I can put second argument as default value by addremove(10) and this will result (20, 0) but how can I put first argument as default and input only second argument? I …

---

## [Base Method for isless on arrays or matrices](https://discourse.julialang.org/t/base-method-for-isless-on-arrays-or-matrices/24424)

<div class="topic-metadata">

**Author:** [@Volker](https://discourse.julialang.org/u/Volker)\
**Replies:** 4\
**Last updated:** [May 21, 2019, 12:55pm UTC](https://discourse.julialang.org/t/base-method-for-isless-on-arrays-or-matrices/24424 "2019-05-21T12:55:43Z")

</div>

Hello, I was wondering if there is a method which compares each element of an array or matrix with another array or matrix or constant. I searched in methods(\<), but I didn´t find anything. Best regards, Volker

---

## [passing Julia datetime and string arrays from C to Julia](https://discourse.julialang.org/t/passing-julia-datetime-and-string-arrays-from-c-to-julia/24425)

<div class="topic-metadata">

**Author:** [@danz68](https://discourse.julialang.org/u/danz68)\
**Replies:** 0\
**Last updated:** [May 21, 2019, 12:08pm UTC](https://discourse.julialang.org/t/passing-julia-datetime-and-string-arrays-from-c-to-julia/24425 "2019-05-21T12:08:51Z")

</div>

I plan to use Julia as one of the languages that manipulates array of data that come from C/C++ programs. So I need to embed Julia. That works alright. However I need to pass array of basic types from C to Julia that inc…

---

## [PDE Solvers in Julia](https://discourse.julialang.org/t/pde-solvers-in-julia/24416)

<div class="topic-metadata">

**Author:** [@xtalax](https://discourse.julialang.org/u/xtalax)\
**Replies:** 3\
**Last updated:** [May 21, 2019, 9:36am UTC](https://discourse.julialang.org/t/pde-solvers-in-julia/24416 "2019-05-21T09:36:13Z")

</div>

Is there a Package that is able to solve PDEs in julia yet?

---

## [Why is this code slow?](https://discourse.julialang.org/t/why-is-this-code-slow/24403)

<div class="topic-metadata">

**Author:** [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Replies:** 9\
**Last updated:** [May 21, 2019, 8:42am UTC](https://discourse.julialang.org/t/why-is-this-code-slow/24403 "2019-05-21T08:42:47Z")

</div>

I am trying to draw a random index from a vector of probabilities. Here is my code: import Random using Random: AbstractRNG struct FastCategorical \_cdf::Vector{Float64} function FastCategorical(pdf) cdf…

---

## [\[ANN\] Quadmath.jl](https://discourse.julialang.org/t/ann-quadmath-jl/23015)

<div class="topic-metadata">

**Author:** [@simonbyrne](https://discourse.julialang.org/u/simonbyrne)\
**Replies:** 6\
**Last updated:** [May 21, 2019, 7:18am UTC](https://discourse.julialang.org/t/ann-quadmath-jl/23015 "2019-05-21T07:18:07Z")

</div>

I’ve recently tagged a v0.3 of Quadmath.jl: this provides a Float128 type which implements IEEE 128-bit floating point numbers, and runs on Windows, Linux and MacOS. These offer higher-precision than hardware-supported …

---

## [Running the same function with multiple inputs using pmap](https://discourse.julialang.org/t/running-the-same-function-with-multiple-inputs-using-pmap/24381)

<div class="topic-metadata">

**Author:** [@magzpavz](https://discourse.julialang.org/u/magzpavz)\
**Replies:** 2\
**Last updated:** [May 21, 2019, 1:00am UTC](https://discourse.julialang.org/t/running-the-same-function-with-multiple-inputs-using-pmap/24381 "2019-05-21T01:00:45Z")

</div>

I have a function which takes about 10 minutes to run. It is primarily in calling two external commands. I previously was using a bash script to run it. I need to run this function on several different inputs and would l…

---

## [\[ANN & RFC\] New package: PhysicalConstants.jl](https://discourse.julialang.org/t/ann-rfc-new-package-physicalconstants-jl/14737)

<div class="topic-metadata">

**Author:** [@giordano](https://discourse.julialang.org/u/giordano)\
**Replies:** 7\
**Last updated:** [May 21, 2019, 12:41am UTC](https://discourse.julialang.org/t/ann-rfc-new-package-physicalconstants-jl/14737 "2019-05-21T00:41:02Z")

</div>

During the last days I’ve been working on a small new package: https://github.com/JuliaPhysics/PhysicalConstants.jl The physical constants are defined as Constant objects, which can be turned into Quantity objects (fro…

---

## [DataFrames: display in a Jupyter notebook](https://discourse.julialang.org/t/dataframes-display-in-a-jupyter-notebook/24411)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 4\
**Last updated:** [May 21, 2019, 12:28am UTC](https://discourse.julialang.org/t/dataframes-display-in-a-jupyter-notebook/24411 "2019-05-21T00:28:48Z")

</div>

I’d like to display all 9 columns of a DataFrame in Jupyter notebook, but the system decides to omit the 2 rightmost columns because it thinks there is a lack of space. I know I can show all columns with the show(datafr…

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

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