# Latest

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

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

**Page:** 1732

---

## [ANN: SortFilters.jl - fast moving quantile filter based on moving window sort](https://discourse.julialang.org/t/ann-sortfilters-jl-fast-moving-quantile-filter-based-on-moving-window-sort/40585)

<div class="topic-metadata">

**Author:** [@sairus7](https://discourse.julialang.org/u/sairus7)\
**Replies:** 1\
**Last updated:** [June 1, 2020, 10:05pm UTC](https://discourse.julialang.org/t/ann-sortfilters-jl-fast-moving-quantile-filter-based-on-moving-window-sort/40585 "2020-06-01T22:05:01Z")

</div>

Just made a public package with moving quantile filter that is much faster (3x-20x) than any other alternatives I’ve found in Julia. This is an optimized case for 1-dimensional filters. For a detailed benchmark and exam…

---

## [Performance of lp\_rhs\_perturbation\_range](https://discourse.julialang.org/t/performance-of-lp-rhs-perturbation-range/40551)

<div class="topic-metadata">

**Author:** [@gleyland](https://discourse.julialang.org/u/gleyland)\
**Replies:** 4\
**Last updated:** [June 1, 2020, 10:01pm UTC](https://discourse.julialang.org/t/performance-of-lp-rhs-perturbation-range/40551 "2020-06-01T22:01:13Z")

</div>

Hi, I have a JuMP model (an LP, currently solved with GLPK) for which I query shadow prices and perturbation ranges of a number of (a few thousand in a large-ish problem) constraints. Solving the LP takes a couple of s…

---

## [Package update race](https://discourse.julialang.org/t/package-update-race/40584)

<div class="topic-metadata">

**Author:** [@heliosdrm](https://discourse.julialang.org/u/heliosdrm)\
**Replies:** 0\
**Last updated:** [June 1, 2020, 9:55pm UTC](https://discourse.julialang.org/t/package-update-race/40584 "2020-06-01T21:55:52Z")

</div>

Time ago I asked something similar to this, but not exactly the same; and I still have some doubts about what is expected to happen when an environment has added two packages with a common dependency, in a situation like…

---

## [Speed of vectorized vs for-loops using Zygote](https://discourse.julialang.org/t/speed-of-vectorized-vs-for-loops-using-zygote/40556)

<div class="topic-metadata">

**Author:** [@roflmaostc](https://discourse.julialang.org/u/roflmaostc)\
**Replies:** 20\
**Last updated:** [June 1, 2020, 9:27pm UTC](https://discourse.julialang.org/t/speed-of-vectorized-vs-for-loops-using-zygote/40556 "2020-06-01T21:27:50Z")

</div>

Hey, I’m using Zygote for a minimization problem. Actually, writing down the loss function in for-loops style is a factor of ~2 faster than using a vectorized function. I then need to take the derivative. Zygote fails …

---

## [Queryverse queries lose type information?](https://discourse.julialang.org/t/queryverse-queries-lose-type-information/40572)

<div class="topic-metadata">

**Author:** [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Replies:** 8\
**Last updated:** [June 1, 2020, 9:17pm UTC](https://discourse.julialang.org/t/queryverse-queries-lose-type-information/40572 "2020-06-01T21:17:47Z")

</div>

I’m working on a tutorial and have the following code: dflong2 = DataFrame(dflong |\> @mutate(year = tryparse(Int,String(\_.variable)\[end-3:end\]))) obviously I’m modifying the year column to be the result of trying to p…

---

## [Wrapping a library with enum in struct](https://discourse.julialang.org/t/wrapping-a-library-with-enum-in-struct/40582)

<div class="topic-metadata">

**Author:** [@KajWiik](https://discourse.julialang.org/u/KajWiik)\
**Replies:** 0\
**Last updated:** [June 1, 2020, 8:47pm UTC](https://discourse.julialang.org/t/wrapping-a-library-with-enum-in-struct/40582 "2020-06-01T20:47:58Z")

</div>

I am trying to make a wrapper using Clang for a c library that has a struct that contains enum in field. Here is a MWE test.h for the struct: typedef struct { float a; enum {ONE, TWO} b; } Test; and Clang script: u…

---

## [Call for Julia Maintainers to support the Julia Language + the MLH Fellowship](https://discourse.julialang.org/t/call-for-julia-maintainers-to-support-the-julia-language-the-mlh-fellowship/40514)

<div class="topic-metadata">

**Author:** [@logankilpatrick](https://discourse.julialang.org/u/logankilpatrick)\
**Replies:** 6\
**Last updated:** [June 1, 2020, 8:36pm UTC](https://discourse.julialang.org/t/call-for-julia-maintainers-to-support-the-julia-language-the-mlh-fellowship/40514 "2020-06-01T20:36:17Z")

</div>

Hey all, This is a followup to this previous post: Call for Mentors: MLH Fellowship + The Julia Language The Julia Language will be hosting between 7-10 students over the course of 12 weeks this summer. We are still tr…

---

## [Pwm for RPi GPIO](https://discourse.julialang.org/t/pwm-for-rpi-gpio/40568)

<div class="topic-metadata">

**Author:** [@gpapalambrou](https://discourse.julialang.org/u/gpapalambrou)\
**Replies:** 6\
**Last updated:** [June 1, 2020, 7:57pm UTC](https://discourse.julialang.org/t/pwm-for-rpi-gpio/40568 "2020-06-01T19:57:14Z")

</div>

I would appreciate some help on using PWM for RPi GPIOs. My Julia script is as follows: using PiGPIO red\_pin = 17 # GPIO17 = :11 p=Pi() PiGPIO.set\_PWM\_frequency(p, red\_pin, 50) # assume sample rate = 5 microsec. P…

---

## [\`Fraction{Numerator, Denominator}\`: existing package?](https://discourse.julialang.org/t/fraction-numerator-denominator-existing-package/40520)

<div class="topic-metadata">

**Author:** [@tkluck](https://discourse.julialang.org/u/tkluck)\
**Replies:** 2\
**Last updated:** [June 1, 2020, 6:54pm UTC](https://discourse.julialang.org/t/fraction-numerator-denominator-existing-package/40520 "2020-06-01T18:54:39Z")

</div>

Does anyone know of a package that offers a type like Rational but that allows different types for numerator and denominator, and types that are not necessarily \<: Integer?

---

## [What's the proper way to create and initialize a vector of vectors of matrices and vectors?](https://discourse.julialang.org/t/whats-the-proper-way-to-create-and-initialize-a-vector-of-vectors-of-matrices-and-vectors/40515)

<div class="topic-metadata">

**Author:** [@kai](https://discourse.julialang.org/u/kai)\
**Replies:** 8\
**Last updated:** [June 1, 2020, 6:04pm UTC](https://discourse.julialang.org/t/whats-the-proper-way-to-create-and-initialize-a-vector-of-vectors-of-matrices-and-vectors/40515 "2020-06-01T18:04:30Z")

</div>

Hi, I’m trying to create and initialize two objects: x will be a vector of vector of vectors, and y will be a vector of vector of matrices. I tried x =Vector{Vector{Vector{Float64}}}(undef, 5) y =Vector{Vector{Matrix{Fl…

---

## [Not clear what 0.01f0x is in the Flux docs](https://discourse.julialang.org/t/not-clear-what-0-01f0x-is-in-the-flux-docs/40553)

<div class="topic-metadata">

**Author:** [@natema](https://discourse.julialang.org/u/natema)\
**Replies:** 4\
**Last updated:** [June 1, 2020, 3:23pm UTC](https://discourse.julialang.org/t/not-clear-what-0-01f0x-is-in-the-flux-docs/40553 "2020-06-01T15:23:35Z")

</div>

I searched a bit, but it remains unclear to me what 0.01f0x is in the Flux docs: While one could change the activation function (e.g. to use 0.01f0x ), the idiomatic (and safe way) … Perhaps a typo?

---

## [Errors when testing unregistered custom package (because of non-ASCII characters, it seems)](https://discourse.julialang.org/t/errors-when-testing-unregistered-custom-package-because-of-non-ascii-characters-it-seems/40554)

<div class="topic-metadata">

**Author:** [@D\_A](https://discourse.julialang.org/u/D_A)\
**Replies:** 24\
**Last updated:** [June 1, 2020, 3:03pm UTC](https://discourse.julialang.org/t/errors-when-testing-unregistered-custom-package-because-of-non-ascii-characters-it-seems/40554 "2020-06-01T15:03:17Z")

</div>

Hello, I created my own package (let’s call it MyPackage) with Pkg (generate, add, etc.), locally (not registered), and I have some problems to test it. I used the latest method described here: I have a test folder ins…

---

## [How to parallerize dual coordinet descent mehods on GPU using CUDA.jl?](https://discourse.julialang.org/t/how-to-parallerize-dual-coordinet-descent-mehods-on-gpu-using-cuda-jl/40344)

<div class="topic-metadata">

**Author:** [@msekino](https://discourse.julialang.org/u/msekino)\
**Replies:** 11\
**Last updated:** [June 1, 2020, 2:11pm UTC](https://discourse.julialang.org/t/how-to-parallerize-dual-coordinet-descent-mehods-on-gpu-using-cuda-jl/40344 "2020-06-01T14:11:43Z")

</div>

Now I want to parallerize something like the following dual coordinate descent method. I’m trying to use CUDA.jl, however I’m stuck for days… # X = (x\[1\], ..., x\[numvec\]) numvec = 500000 lenvec = 50000 xs = \[sprandn(le…

---

## [How to create an unevaluated block for scratch expressions?](https://discourse.julialang.org/t/how-to-create-an-unevaluated-block-for-scratch-expressions/40550)

<div class="topic-metadata">

**Author:** [@mwgkgk](https://discourse.julialang.org/u/mwgkgk)\
**Replies:** 3\
**Last updated:** [June 1, 2020, 11:17am UTC](https://discourse.julialang.org/t/how-to-create-an-unevaluated-block-for-scratch-expressions/40550 "2020-06-01T11:17:57Z")

</div>

Hey guys! I’m used to littering the code with copious amounts of top-level blocks, serving as evaluation history, like here: Clojure: #\_ (do (stuff-and-things) (more-stuff-and-more-things)) Common Lisp: #+ni…

---

## [Come up with an algorithm for play/pauseing a asynchronous process](https://discourse.julialang.org/t/come-up-with-an-algorithm-for-play-pauseing-a-asynchronous-process/40546)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 3\
**Last updated:** [June 1, 2020, 10:52am UTC](https://discourse.julialang.org/t/come-up-with-an-algorithm-for-play-pauseing-a-asynchronous-process/40546 "2020-06-01T10:52:13Z")

</div>

I’m trying (yet again) to build a video player/explorer in Julia. Everything is looking pretty good, but one hurdle is the play/pause functionality. I want to be able to control the play/pause with an observable (which i…

---

## [Accessing file from google drive](https://discourse.julialang.org/t/accessing-file-from-google-drive/30667)

<div class="topic-metadata">

**Author:** [@NITISH\_KUMAR](https://discourse.julialang.org/u/NITISH_KUMAR)\
**Replies:** 2\
**Last updated:** [June 1, 2020, 8:48am UTC](https://discourse.julialang.org/t/accessing-file-from-google-drive/30667 "2020-06-01T08:48:26Z")

</div>

Hi everyone! I am new to Julia and would appreciate if you could tell us the way to access the file from google drive say if link is: https://docs.google.com/document/d/1v66IQLWxr6aPfrFJlypzecNRXzU\_GC24Toj8cTM/edit?usp…

---

## [The lay of the land for robotics in Julia](https://discourse.julialang.org/t/the-lay-of-the-land-for-robotics-in-julia/40376)

<div class="topic-metadata">

**Author:** [@pauljurczak](https://discourse.julialang.org/u/pauljurczak)\
**Replies:** 5\
**Last updated:** [June 1, 2020, 12:54am UTC](https://discourse.julialang.org/t/the-lay-of-the-land-for-robotics-in-julia/40376 "2020-06-01T00:54:49Z")

</div>

I’m going to use Julia for a robotics simulation project. I need a basic interface to ROS 1, rosbags and visualization of point clouds, meshes, etc. I’m a bit confused about what packages are currently supported and best…

---

## [Improving Performance of For-Loop and Matrix Multiplication for Time Integration Solver](https://discourse.julialang.org/t/improving-performance-of-for-loop-and-matrix-multiplication-for-time-integration-solver/40432)

<div class="topic-metadata">

**Author:** [@PJoynt](https://discourse.julialang.org/u/PJoynt)\
**Replies:** 8\
**Last updated:** [June 1, 2020, 12:19am UTC](https://discourse.julialang.org/t/improving-performance-of-for-loop-and-matrix-multiplication-for-time-integration-solver/40432 "2020-06-01T00:19:55Z")

</div>

I am writing some code that performs a simple time-history integration solver (Newmark method for structural dynamics) and I looking for some suggestions in how I can improve the performance of my code. The below snippet…

---

## [Src\\cpu\_info.jl](https://discourse.julialang.org/t/src-cpu-info-jl/40516)

<div class="topic-metadata">

**Author:** [@Jorge\_Silva](https://discourse.julialang.org/u/Jorge_Silva)\
**Replies:** 2\
**Last updated:** [May 31, 2020, 11:40pm UTC](https://discourse.julialang.org/t/src-cpu-info-jl/40516 "2020-05-31T23:40:09Z")

</div>

I was using v1.3.1. Then I upgrade for v1.4.2 and reinstalled some packages. Now, I have both versions. However, in v1.4.2 I cannot use some packages. E.g., when I type “using DifferentialEquations” I got the error "c…

---

## [Visualize discontinuous Galerkin](https://discourse.julialang.org/t/visualize-discontinuous-galerkin/40522)

<div class="topic-metadata">

**Author:** [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Replies:** 0\
**Last updated:** [May 31, 2020, 10:09pm UTC](https://discourse.julialang.org/t/visualize-discontinuous-galerkin/40522 "2020-05-31T22:09:00Z")

</div>

Is there any existing convenient method to visualize the results of discontinuous Galerkin finite element data? Would prefer something similar to Makie’s mesh method, but other packages are fine also.

---

## [\[documenter\] From Notebook to Markdown with docstrings?](https://discourse.julialang.org/t/documenter-from-notebook-to-markdown-with-docstrings/24657)

<div class="topic-metadata">

**Author:** [@timueh](https://discourse.julialang.org/u/timueh)\
**Replies:** 8\
**Last updated:** [May 31, 2020, 8:39pm UTC](https://discourse.julialang.org/t/documenter-from-notebook-to-markdown-with-docstrings/24657 "2020-05-31T20:39:27Z")

</div>

I am a big fan of documenter.jl! It lets you create beautiful documentations whilst still having full control over its code. Currently, I use the @example syntax extensively, but I would like to docstrings as they provid…

---

## [Pkg\> test Atom errors](https://discourse.julialang.org/t/pkg-test-atom-errors/40519)

<div class="topic-metadata">

**Author:** [@dennybob](https://discourse.julialang.org/u/dennybob)\
**Replies:** 0\
**Last updated:** [May 31, 2020, 8:32pm UTC](https://discourse.julialang.org/t/pkg-test-atom-errors/40519 "2020-05-31T20:32:06Z")

</div>

I had Atom already installed, then installed Julia. Juno appears to operate properly inside Atom but all I’ve done up to this point is some tutorials in it. Where I got the errors was running Julia in the terminal tr…

---

## [Large-Scale HPC Project on Probabilistic Programming at Scale in Conjunction with Scientific Simulators](https://discourse.julialang.org/t/large-scale-hpc-project-on-probabilistic-programming-at-scale-in-conjunction-with-scientific-simulators/39416)

<div class="topic-metadata">

**Author:** [@ludgerpaehler](https://discourse.julialang.org/u/ludgerpaehler)\
**Replies:** 8\
**Last updated:** [May 31, 2020, 7:41pm UTC](https://discourse.julialang.org/t/large-scale-hpc-project-on-probabilistic-programming-at-scale-in-conjunction-with-scientific-simulators/39416 "2020-05-31T19:41:23Z")

</div>

Hi everyone, we recently got approval for our 250m CPU-hour GCS supercomputing project named “Bayesian Inference of the Reactive Shock-Bubble Interaction - Probabilistic Programming at Scale”. A rough sketch: The Baye…

---

## [Using multiple modules in a single line](https://discourse.julialang.org/t/using-multiple-modules-in-a-single-line/40499)

<div class="topic-metadata">

**Author:** [@pauljurczak](https://discourse.julialang.org/u/pauljurczak)\
**Replies:** 8\
**Last updated:** [May 31, 2020, 4:32pm UTC](https://discourse.julialang.org/t/using-multiple-modules-in-a-single-line/40499 "2020-05-31T16:32:33Z")

</div>

Is using Module1, Module2 equivalent to using Module1 using Module2 ? Is the order significant in single line version?

---

## [Solve a SDE using Neural network](https://discourse.julialang.org/t/solve-a-sde-using-neural-network/40177)

<div class="topic-metadata">

**Author:** [@shoudao](https://discourse.julialang.org/u/shoudao)\
**Replies:** 11\
**Last updated:** [May 31, 2020, 3:30pm UTC](https://discourse.julialang.org/t/solve-a-sde-using-neural-network/40177 "2020-05-31T15:30:32Z")

</div>

I am trying to solve SDE using Neural networks recently. I have an idea to solve a SDE in this form: d X\_{t}=f\\left(X\_{t}, t,r,\\mu\_t \\right) d t+g\\left(X\_{t}, t,r,\\mu\_t \\right) d W\_{t} But I am not sure how to impleme…

---

## [An confused error for the Marco for Expr to function](https://discourse.julialang.org/t/an-confused-error-for-the-marco-for-expr-to-function/40485)

<div class="topic-metadata">

**Author:** [@gangchern](https://discourse.julialang.org/u/gangchern)\
**Replies:** 4\
**Last updated:** [May 31, 2020, 3:07pm UTC](https://discourse.julialang.org/t/an-confused-error-for-the-marco-for-expr-to-function/40485 "2020-05-31T15:07:55Z")

</div>

I try to use the macro macro expr2fn(fname, expr, args...) fn = quote function $(esc(fname))() $(esc(expr.args\[1\])) end end for arg in args push!(fn.args\[2\].args\[1\].args, …

---

## [Function control flow](https://discourse.julialang.org/t/function-control-flow/39837)

<div class="topic-metadata">

**Author:** [@Joao\_Barata](https://discourse.julialang.org/u/Joao_Barata)\
**Replies:** 22\
**Last updated:** [May 31, 2020, 2:59pm UTC](https://discourse.julialang.org/t/function-control-flow/39837 "2020-05-31T14:59:11Z")

</div>

Hello guys, I am a very recent Julia programmer coming from matlab in search of performance. Right now, I am building an economics model which involves solving different problems for different agents in different circum…

---

## [Random graphs, fully-connected graphs](https://discourse.julialang.org/t/random-graphs-fully-connected-graphs/40445)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 17\
**Last updated:** [May 31, 2020, 2:47pm UTC](https://discourse.julialang.org/t/random-graphs-fully-connected-graphs/40445 "2020-05-31T14:47:00Z")

</div>

Hi, How does one create a fully connected graph with LightGraphs.jl? I looked at the documentation and did not see an obvious function. A second equation is how to create a random graph with p percent of the edges? I …

---

## [3D array reshape error](https://discourse.julialang.org/t/3d-array-reshape-error/40507)

<div class="topic-metadata">

**Author:** [@dialektike](https://discourse.julialang.org/u/dialektike)\
**Replies:** 2\
**Last updated:** [May 31, 2020, 2:22pm UTC](https://discourse.julialang.org/t/3d-array-reshape-error/40507 "2020-05-31T14:22:20Z")

</div>

A = np.array(range(1, 9)).reshape(2, 2, 2) # swap 2nd and 3rd axes: A.transpose((0, 2, 1)) I’m also trying to julia like the above python code. trying like this… A = reshape(1:8, 2, 2, 2) # swap 2nd and 3rd axes: re…

---

## [Destructor for structs](https://discourse.julialang.org/t/destructor-for-structs/39748)

<div class="topic-metadata">

**Author:** [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Replies:** 2\
**Last updated:** [May 31, 2020, 1:32pm UTC](https://discourse.julialang.org/t/destructor-for-structs/39748 "2020-05-31T13:32:44Z")

</div>

Does Julia lang has something like a destructor or finalizer for structs?

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

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