# Latest

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

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

**Page:** 1753

---

## [A implementation of ResNet-18 uses lot of GPU memory](https://discourse.julialang.org/t/a-implementation-of-resnet-18-uses-lot-of-gpu-memory/36389)

<div class="topic-metadata">

**Author:** [@OTapio](https://discourse.julialang.org/u/OTapio)\
**Replies:** 10\
**Last updated:** [May 9, 2020, 5:50am UTC](https://discourse.julialang.org/t/a-implementation-of-resnet-18-uses-lot-of-gpu-memory/36389 "2020-05-09T05:50:22Z")

</div>

I have been trying to create ResNet-18 on Julia. I have managed to create a functional one but it is slow and uses lot of GPU memory. This is puzzling since similar architecture on Tensorflow runs 5-10 times faster and u…

---

## [Jacobian of a (multivariate) function](https://discourse.julialang.org/t/jacobian-of-a-multivariate-function/21131)

<div class="topic-metadata">

**Author:** [@StevenSiew](https://discourse.julialang.org/u/StevenSiew)\
**Replies:** 10\
**Last updated:** [May 9, 2020, 1:19am UTC](https://discourse.julialang.org/t/jacobian-of-a-multivariate-function/21131 "2020-05-09T01:19:47Z")

</div>

I am trying to replicate this using the ForwardDiff module But this is what I got julia\> using ForwardDiff julia\> f(x,y)=\[x^2+y^3-1,x^4 - y^4 + x\*y\] f (generic function with 1 method) julia\> a = \[1.0,1.0\] 2-element…

---

## [Assembler length vs speed (backslash- and inverse-operator)](https://discourse.julialang.org/t/assembler-length-vs-speed-backslash-and-inverse-operator/39149)

<div class="topic-metadata">

**Author:** [@EuklidAlexandria](https://discourse.julialang.org/u/EuklidAlexandria)\
**Replies:** 2\
**Last updated:** [May 9, 2020, 12:42am UTC](https://discourse.julialang.org/t/assembler-length-vs-speed-backslash-and-inverse-operator/39149 "2020-05-09T00:42:33Z")

</div>

I have noticed that Julia produces much shorter assembly for the \\-operator in contrast to inv(A). Here are the two functions: foo(A,b) = inv(A) \* b bar(A,b) = A\\b As expected, for A=\[1.0 2.0 4.4; 4.0 3.3 53.5; 34.0 3…

---

## [Constraints in a loop in the PowerModels](https://discourse.julialang.org/t/constraints-in-a-loop-in-the-powermodels/38573)

<div class="topic-metadata">

**Author:** [@Rasoul](https://discourse.julialang.org/u/Rasoul)\
**Replies:** 7\
**Last updated:** [May 9, 2020, 12:16am UTC](https://discourse.julialang.org/t/constraints-in-a-loop-in-the-powermodels/38573 "2020-05-09T00:16:33Z")

</div>

I want to enforce linear envelopes on the cosine function in PowerModelsAnnex. I implement the following code for doing that. for (bp, buspair) in ref\[:buspairs\] for k=1:length(linear\_envelopes1) @constraint(model, cs…

---

## [Split an array into multiple smaller arrays - alternative to unsafe\_wrap without views](https://discourse.julialang.org/t/split-an-array-into-multiple-smaller-arrays-alternative-to-unsafe-wrap-without-views/39150)

<div class="topic-metadata">

**Author:** [@clinton](https://discourse.julialang.org/u/clinton)\
**Replies:** 0\
**Last updated:** [May 8, 2020, 11:58pm UTC](https://discourse.julialang.org/t/split-an-array-into-multiple-smaller-arrays-alternative-to-unsafe-wrap-without-views/39150 "2020-05-08T23:58:48Z")

</div>

I’m wondering if this is a good use case for unsafe\_wrap, or if there is a better way to do this. Basically I have a vector, and I want to be able to interpret the vector as a set of arrays. I cannot use subarrays or sim…

---

## [Questions on parallel programming terminology](https://discourse.julialang.org/t/questions-on-parallel-programming-terminology/38996)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 7\
**Last updated:** [May 8, 2020, 10:20pm UTC](https://discourse.julialang.org/t/questions-on-parallel-programming-terminology/38996 "2020-05-08T22:20:26Z")

</div>

I am using this week to learn the parallel programming features of the language in more depth. I confess that I am a bit confused with the terminology used throughout the documentation, and would like to ask a few questi…

---

## [Licensing Julia Wrappers](https://discourse.julialang.org/t/licensing-julia-wrappers/38973)

<div class="topic-metadata">

**Author:** [@bdoolittle](https://discourse.julialang.org/u/bdoolittle)\
**Replies:** 6\
**Last updated:** [May 8, 2020, 8:46pm UTC](https://discourse.julialang.org/t/licensing-julia-wrappers/38973 "2020-05-08T20:46:50Z")

</div>

(I apologize if a similar post has been previously made.) BinaryBuilder.jl and the JuliaBinaryWrappers registry make it incredibly easy to expose 3rd party softwares through julia. The autogenerated .\*\_jll packages are …

---

## [Problem with DifferentialEquations & StaticArrays](https://discourse.julialang.org/t/problem-with-differentialequations-staticarrays/39129)

<div class="topic-metadata">

**Author:** [@mleprovost](https://discourse.julialang.org/u/mleprovost)\
**Replies:** 4\
**Last updated:** [May 8, 2020, 8:18pm UTC](https://discourse.julialang.org/t/problem-with-differentialequations-staticarrays/39129 "2020-05-08T20:18:24Z")

</div>

Hello, I would like to solve the Lorenz-96 problem with static arrays. The state size is 40. I have followed the tutorial Optimizing DiffEq Code but I have the following error message: using StaticArrays using Differe…

---

## [Does @asyc or Threads.@spawn affect performance](https://discourse.julialang.org/t/does-asyc-or-threads-spawn-affect-performance/39118)

<div class="topic-metadata">

**Author:** [@samuel\_okon](https://discourse.julialang.org/u/samuel_okon)\
**Replies:** 2\
**Last updated:** [May 8, 2020, 8:00pm UTC](https://discourse.julialang.org/t/does-asyc-or-threads-spawn-affect-performance/39118 "2020-05-08T20:00:00Z")

</div>

To my understanding @async creates a closure which may box a variable. And the docs say boxing affects performance. Or is there something am getting wrong. ? (Am aware of the interpolation operator in julia \>= 1.4).

---

## [JuMP dual model formulation and impact on performance](https://discourse.julialang.org/t/jump-dual-model-formulation-and-impact-on-performance/39124)

<div class="topic-metadata">

**Author:** [@martincornejo](https://discourse.julialang.org/u/martincornejo)\
**Replies:** 1\
**Last updated:** [May 8, 2020, 7:38pm UTC](https://discourse.julialang.org/t/jump-dual-model-formulation-and-impact-on-performance/39124 "2020-05-08T19:38:33Z")

</div>

For context: I have a SDP problem that is formulated in the dual form (I don’t think its possible to formulate it in the primal form), for the solver to be able to optimize it I use Dualization.jl and apply it to the s…

---

## [Speeding up summation inside comprehension](https://discourse.julialang.org/t/speeding-up-summation-inside-comprehension/39119)

<div class="topic-metadata">

**Author:** [@gobs](https://discourse.julialang.org/u/gobs)\
**Replies:** 5\
**Last updated:** [May 8, 2020, 6:30pm UTC](https://discourse.julialang.org/t/speeding-up-summation-inside-comprehension/39119 "2020-05-08T18:30:27Z")

</div>

I currently do something similar to the code below (though I have axis arrays instead of regular arrays): A = 1:100 B = 1:200 C = 1:300 x = rand(length(A),length(B),length(C)) y = rand(length(B),length(C)) z = \[ s…

---

## [Image Processing using Julia on the web](https://discourse.julialang.org/t/image-processing-using-julia-on-the-web/20653)

<div class="topic-metadata">

**Author:** [@akane](https://discourse.julialang.org/u/akane)\
**Replies:** 3\
**Last updated:** [May 8, 2020, 5:24pm UTC](https://discourse.julialang.org/t/image-processing-using-julia-on-the-web/20653 "2020-05-08T17:24:16Z")

</div>

Hi everyone, I am trying to create a website that takes in an image from the user using a HTML form, processes it using Julia (I am binarizing the image, although that is not relevant) and then display the processed ima…

---

## [Error encountered for Geom.density2d with logarithmic scale in Gadfly](https://discourse.julialang.org/t/error-encountered-for-geom-density2d-with-logarithmic-scale-in-gadfly/38460)

<div class="topic-metadata">

**Author:** [@Humphrey\_Lee](https://discourse.julialang.org/u/Humphrey_Lee)\
**Replies:** 7\
**Last updated:** [May 8, 2020, 5:06pm UTC](https://discourse.julialang.org/t/error-encountered-for-geom-density2d-with-logarithmic-scale-in-gadfly/38460 "2020-05-08T17:06:46Z")

</div>

Gadfly displayed error when trying to do Geom.density2d with logarithmic axis/scale. Code below. The first two plots are OK, but not the third plot. using Gadfly x = \[0.025, 0.028, 0.035, 0.036, 0.037, 0.039, 0.039, 0.…

---

## [Segmentation fault when installing packages](https://discourse.julialang.org/t/segmentation-fault-when-installing-packages/39067)

<div class="topic-metadata">

**Author:** [@david\_m](https://discourse.julialang.org/u/david_m)\
**Replies:** 5\
**Last updated:** [May 8, 2020, 4:03pm UTC](https://discourse.julialang.org/t/segmentation-fault-when-installing-packages/39067 "2020-05-08T16:03:41Z")

</div>

Hello everyone, I don’t know since when that happens but I just noticed that I can not install new packages anymore. If I run “Pkg.add(“LightGraphs”)” for example, Julia crashes: These are the packages that are alr…

---

## [\[ANN\] MLStyle.jl v0.4.0](https://discourse.julialang.org/t/ann-mlstyle-jl-v0-4-0/39116)

<div class="topic-metadata">

**Author:** [@thautwarm](https://discourse.julialang.org/u/thautwarm)\
**Replies:** 0\
**Last updated:** [May 8, 2020, 3:21pm UTC](https://discourse.julialang.org/t/ann-mlstyle-jl-v0-4-0/39116 "2020-05-08T15:21:59Z")

</div>

MLStyle.jl v0.4.0 released, and the main features are the performance improments, readability of generated code(referential transparency) and “runtime suppprt free” code generation. Performance The full results of the…

---

## [Which async web server should I use?](https://discourse.julialang.org/t/which-async-web-server-should-i-use/38755)

<div class="topic-metadata">

**Author:** [@Laszlo\_Nagy](https://discourse.julialang.org/u/Laszlo_Nagy)\
**Replies:** 25\
**Last updated:** [May 8, 2020, 2:54pm UTC](https://discourse.julialang.org/t/which-async-web-server-should-i-use/38755 "2020-05-08T14:54:10Z")

</div>

Hello there! I’m a Python programmer with 20+ years of programming background. I just recently read about Julia and read about 100 pages from the official documentation at once. I’m facinated by Julia’s type system, I r…

---

## [How to save to disk my results so far?](https://discourse.julialang.org/t/how-to-save-to-disk-my-results-so-far/38942)

<div class="topic-metadata">

**Author:** [@Manoj\_Gopalkrishnan](https://discourse.julialang.org/u/Manoj_Gopalkrishnan)\
**Replies:** 9\
**Last updated:** [May 8, 2020, 1:43pm UTC](https://discourse.julialang.org/t/how-to-save-to-disk-my-results-so-far/38942 "2020-05-08T13:43:33Z")

</div>

I am using Turing from IJulia in Jupyter notebook. I am running some MCMC simulations which are taking some time to converge. How do I save the chains to disk so that I can reload them next time I start the kernel instea…

---

## [Audio issues on DataFrames tutorials?](https://discourse.julialang.org/t/audio-issues-on-dataframes-tutorials/39081)

<div class="topic-metadata">

**Author:** [@nickeubank](https://discourse.julialang.org/u/nickeubank)\
**Replies:** 1\
**Last updated:** [May 8, 2020, 1:06pm UTC](https://discourse.julialang.org/t/audio-issues-on-dataframes-tutorials/39081 "2020-05-08T13:06:50Z")

</div>

I’m delighted to see that JuliaLang is posting some DataFrames materials, and will have a Q&A later today! However, both this new video and the last set of DataFrames tutorials have some major audio issues. Any chance t…

---

## [How to remove a package from JuliaHub?](https://discourse.julialang.org/t/how-to-remove-a-package-from-juliahub/39064)

<div class="topic-metadata">

**Author:** [@rbontekoe](https://discourse.julialang.org/u/rbontekoe)\
**Replies:** 8\
**Last updated:** [May 8, 2020, 1:20pm UTC](https://discourse.julialang.org/t/how-to-remove-a-package-from-juliahub/39064 "2020-05-08T13:20:17Z")

</div>

In Pull requests · JuliaRegistries/General · GitHub I see my registered package AppliSales v0.1.2 with a red X mark. When I hover over the package name I see the line master←registrator/applisales/c1345d04/v0.1.2. I sup…

---

## [How to deprecate a macro?](https://discourse.julialang.org/t/how-to-deprecate-a-macro/17651)

<div class="topic-metadata">

**Author:** [@oschulz](https://discourse.julialang.org/u/oschulz)\
**Replies:** 5\
**Last updated:** [May 8, 2020, 1:12pm UTC](https://discourse.julialang.org/t/how-to-deprecate-a-macro/17651 "2020-05-08T13:12:50Z")

</div>

I was wondering, is there a way to @deprecate a macro instead of a function? If so, what’s the syntax?

---

## [Question on behaviour and performance of getting the determinant](https://discourse.julialang.org/t/question-on-behaviour-and-performance-of-getting-the-determinant/38895)

<div class="topic-metadata">

**Author:** [@johanbluecreek](https://discourse.julialang.org/u/johanbluecreek)\
**Replies:** 7\
**Last updated:** [May 8, 2020, 12:51pm UTC](https://discourse.julialang.org/t/question-on-behaviour-and-performance-of-getting-the-determinant/38895 "2020-05-08T12:51:01Z")

</div>

Confusing behaviour I’ll jump directly into the behaviour I’m observing, please look below for context (under other header). Direct questions can be found in bold. I have a function that computes the determinant as a pa…

---

## [JuAFEM difference between apply! and apply\_zero!](https://discourse.julialang.org/t/juafem-difference-between-apply-and-apply-zero/39072)

<div class="topic-metadata">

**Author:** [@FrootLoops](https://discourse.julialang.org/u/FrootLoops)\
**Replies:** 1\
**Last updated:** [May 8, 2020, 12:01pm UTC](https://discourse.julialang.org/t/juafem-difference-between-apply-and-apply-zero/39072 "2020-05-08T12:01:07Z")

</div>

In some examples for JuAFEM I often see people using either “apply!()” or “apply\_zero!()” to apply the boundary conditions. Can someone explain me the difference: apply!(K, f, dbc) apply\_zero!(K, f, dbc…

---

## [Use of graphics in gtk](https://discourse.julialang.org/t/use-of-graphics-in-gtk/38945)

<div class="topic-metadata">

**Author:** [@Carlos\_Werner](https://discourse.julialang.org/u/Carlos_Werner)\
**Replies:** 2\
**Last updated:** [May 8, 2020, 11:53am UTC](https://discourse.julialang.org/t/use-of-graphics-in-gtk/38945 "2020-05-08T11:53:22Z")

</div>

It is possible to use interactive graphics like PlotlyJS.jl on Gtk.jl. If you have someone you could show me an examples.?

---

## [Scope of variables inside functions, for loops, and if statments](https://discourse.julialang.org/t/scope-of-variables-inside-functions-for-loops-and-if-statments/38981)

<div class="topic-metadata">

**Author:** [@asb](https://discourse.julialang.org/u/asb)\
**Replies:** 6\
**Last updated:** [May 8, 2020, 10:29am UTC](https://discourse.julialang.org/t/scope-of-variables-inside-functions-for-loops-and-if-statments/38981 "2020-05-08T10:29:55Z")

</div>

I don’t understand variable scope in Julia. I wrote a function to read some data files. The program reads nifti (a format for storing medical images) files inside a for loop. The data read is then returned to the callin…

---

## [Struggling to figure out how I should use shared arrays on a slurm cluster using remote workers](https://discourse.julialang.org/t/struggling-to-figure-out-how-i-should-use-shared-arrays-on-a-slurm-cluster-using-remote-workers/38970)

<div class="topic-metadata">

**Author:** [@HarrisonWilde](https://discourse.julialang.org/u/HarrisonWilde)\
**Replies:** 11\
**Last updated:** [May 8, 2020, 10:22am UTC](https://discourse.julialang.org/t/struggling-to-figure-out-how-i-should-use-shared-arrays-on-a-slurm-cluster-using-remote-workers/38970 "2020-05-08T10:22:11Z")

</div>

Hi so I am using a large distributed map function like so: using ClusterManagers using Distributed addprocs\_slurm(parse(Int, ENV\["SLURM\_NTASKS"\])) ... SETUP EXPERIMENT results = SharedArray{Float64, 2}((total\_steps, 1…

---

## [Making efficient some small subroutines](https://discourse.julialang.org/t/making-efficient-some-small-subroutines/38917)

<div class="topic-metadata">

**Author:** [@O\_Julia](https://discourse.julialang.org/u/O_Julia)\
**Replies:** 22\
**Last updated:** [May 8, 2020, 10:10am UTC](https://discourse.julialang.org/t/making-efficient-some-small-subroutines/38917 "2020-05-08T10:10:31Z")

</div>

Hi, I am trying to convert some Python+numpy subroutines to Julia. These subroutines are most important part of my main progam and take much time. In the current version these codes are run faster in non-optimized Python…

---

## [Bayesian neural networks in Flux](https://discourse.julialang.org/t/bayesian-neural-networks-in-flux/39065)

<div class="topic-metadata">

**Author:** [@DeepQ](https://discourse.julialang.org/u/DeepQ)\
**Replies:** 2\
**Last updated:** [May 8, 2020, 9:50am UTC](https://discourse.julialang.org/t/bayesian-neural-networks-in-flux/39065 "2020-05-08T09:50:13Z")

</div>

I am trying to implement a Bayesian neural network in Flux. I have custom layers which return two outputs. One is the output of the layer and another is a conditional probability. I use these probabilities to define a lo…

---

## [How to run specific testsets in a test script?](https://discourse.julialang.org/t/how-to-run-specific-testsets-in-a-test-script/38944)

<div class="topic-metadata">

**Author:** [@JesperMartinsson](https://discourse.julialang.org/u/JesperMartinsson)\
**Replies:** 2\
**Last updated:** [May 8, 2020, 9:12am UTC](https://discourse.julialang.org/t/how-to-run-specific-testsets-in-a-test-script/38944 "2020-05-08T09:12:14Z")

</div>

Is there a build in or preferred way to run a specific testset in a script, based on e.g. the testset’s description, as opposed to running all testsets in the script? In many packages, see e.g. LightGraphs.jl, seem to h…

---

## [Is possible to develop object viewer in VScode like in Juno/Atom?](https://discourse.julialang.org/t/is-possible-to-develop-object-viewer-in-vscode-like-in-juno-atom/38926)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 5\
**Last updated:** [May 8, 2020, 8:58am UTC](https://discourse.julialang.org/t/is-possible-to-develop-object-viewer-in-vscode-like-in-juno-atom/38926 "2020-05-08T08:58:33Z")

</div>

I find the object viewer super convenient in Juno Is the same possible in vscode? Given M$'s acquisition of Github, so Atom’s days might be numbered so just checking.

---

## [More convenient Julia document](https://discourse.julialang.org/t/more-convenient-julia-document/39062)

<div class="topic-metadata">

**Author:** [@zhangliye](https://discourse.julialang.org/u/zhangliye)\
**Replies:** 1\
**Last updated:** [May 8, 2020, 8:17am UTC](https://discourse.julialang.org/t/more-convenient-julia-document/39062 "2020-05-08T08:17:57Z")

</div>

Is it possible to add the content and URL at the beginning of some module as Qt document. This will save the beginning users a lot of time to find some functions. The following figures are the comparison between Qt and J…

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

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