# Latest

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

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

**Page:** 1459

---

## [Documenter.jl does not build on tags anymore after renaming \`master\` to \`main\`](https://discourse.julialang.org/t/documenter-jl-does-not-build-on-tags-anymore-after-renaming-master-to-main/57171)

<div class="topic-metadata">

**Author:** [@ranocha](https://discourse.julialang.org/u/ranocha)\
**Replies:** 9\
**Last updated:** [March 16, 2021, 7:03am UTC](https://discourse.julialang.org/t/documenter-jl-does-not-build-on-tags-anymore-after-renaming-master-to-main/57171 "2021-03-16T07:03:35Z")

</div>

We tried to follow GitHub’s new best practices and renamed master to main in Trixi.jl. We also changed all occurrences of master to main, e.g. in the setup of Documenter.jl and other GitHub actions. Currently, Documenter…

---

## [Library for 3D model simulation visualization](https://discourse.julialang.org/t/library-for-3d-model-simulation-visualization/57237)

<div class="topic-metadata">

**Author:** [@AlexS12](https://discourse.julialang.org/u/AlexS12)\
**Replies:** 2\
**Last updated:** [March 15, 2021, 11:44pm UTC](https://discourse.julialang.org/t/library-for-3d-model-simulation-visualization/57237 "2021-03-15T23:44:33Z")

</div>

I have seen this post with a matlab example that I would like to emulate in Julia. As a summary I would like to plot a 3d model loaded from a mesh file (.stl or similar) and rotate it “real time” according to a time seri…

---

## [Replit.com PyPlot or Plots (Julia 1.3) vs. Plots in Pluto (Julia 1.6)](https://discourse.julialang.org/t/replit-com-pyplot-or-plots-julia-1-3-vs-plots-in-pluto-julia-1-6/57210)

<div class="topic-metadata">

**Author:** [@Victor\_Villavicencio](https://discourse.julialang.org/u/Victor_Villavicencio)\
**Replies:** 3\
**Last updated:** [March 16, 2021, 2:21am UTC](https://discourse.julialang.org/t/replit-com-pyplot-or-plots-julia-1-3-vs-plots-in-pluto-julia-1-6/57210 "2021-03-16T02:21:18Z")

</div>

Greetings; I am a high school teacher trying to get students to use Julia 1.3 on Replit.com. Replit.com only has Julia 1.3, not 1.5 or newer. As shown in the attachment, the plot code works in Julia 1.6 using Pluto. T…

---

## [I am surprised that promotion does not occur here](https://discourse.julialang.org/t/i-am-surprised-that-promotion-does-not-occur-here/57133)

<div class="topic-metadata">

**Author:** [@Jean\_Michel](https://discourse.julialang.org/u/Jean_Michel)\
**Replies:** 13\
**Last updated:** [March 15, 2021, 12:23am UTC](https://discourse.julialang.org/t/i-am-surprised-that-promotion-does-not-occur-here/57133 "2021-03-15T00:23:38Z")

</div>

Consider the following: julia\> \[\[1,2,3\]//3,\[1,2,3\]\*Int128(1)\] 2-element Array{Array{T,1} where T,1}: Rational{Int64}\[1//3, 2//3, 1//1\] Int128\[1, 2, 3\] Julia cannot compute the type of the combined array, but Julia is…

---

## [How to avoid name conflicts in MyPackage/runtests.jl](https://discourse.julialang.org/t/how-to-avoid-name-conflicts-in-mypackage-runtests-jl/57186)

<div class="topic-metadata">

**Author:** [@marty0801](https://discourse.julialang.org/u/marty0801)\
**Replies:** 3\
**Last updated:** [March 16, 2021, 1:03am UTC](https://discourse.julialang.org/t/how-to-avoid-name-conflicts-in-mypackage-runtests-jl/57186 "2021-03-16T01:03:51Z")

</div>

When testing my package I get errors that are not present when I run the failing test script in a new REPL, suggesting that namespace corruption is the problem. My runtests.jl setup is probably to blame; it looks like f…

---

## [Julia slower than Matlab & Python? No](https://discourse.julialang.org/t/julia-slower-than-matlab-python-no/33128)

<div class="topic-metadata">

**Author:** [@Albert\_Zevelev](https://discourse.julialang.org/u/Albert_Zevelev)\
**Replies:** 119\
**Last updated:** [March 16, 2021, 1:00am UTC](https://discourse.julialang.org/t/julia-slower-than-matlab-python-no/33128 "2021-03-16T01:00:51Z")

</div>

A recent paper ML Software & Hardware for Econ finds Julia is often slower than Matlab & Numpy. Code for Option Pricing is here. Code for Dynamic Programming is here. Usually, writing Julia code similarly leads to eno…

---

## [Do I need to specify what kind of weights I am providing?](https://discourse.julialang.org/t/do-i-need-to-specify-what-kind-of-weights-i-am-providing/56806)

<div class="topic-metadata">

**Author:** [@jo-fleck](https://discourse.julialang.org/u/jo-fleck)\
**Replies:** 5\
**Last updated:** [March 16, 2021, 12:02am UTC](https://discourse.julialang.org/t/do-i-need-to-specify-what-kind-of-weights-i-am-providing/56806 "2021-03-16T00:02:19Z")

</div>

I found helpful instructions on using weights and its source code (here, here, here) but I am still not sure I understand how to use it correctly. Maybe I am just confusing/misunderstanding something basic here… My ques…

---

## [What is the difference between abstract, composite, and concrete types.](https://discourse.julialang.org/t/what-is-the-difference-between-abstract-composite-and-concrete-types/9599)

<div class="topic-metadata">

**Author:** [@affans](https://discourse.julialang.org/u/affans)\
**Replies:** 7\
**Last updated:** [March 15, 2021, 11:48pm UTC](https://discourse.julialang.org/t/what-is-the-difference-between-abstract-composite-and-concrete-types/9599 "2021-03-15T23:48:49Z")

</div>

Can someone help me understand the difference? I understand the concept from object oriented languages, but there are a few things from the documentation I don’t understand. For example struct Point{T} x::T …

---

## [Offline package installation](https://discourse.julialang.org/t/offline-package-installation/7880)

<div class="topic-metadata">

**Author:** [@John\_Hearns](https://discourse.julialang.org/u/John_Hearns)\
**Replies:** 16\
**Last updated:** [March 15, 2021, 10:56pm UTC](https://discourse.julialang.org/t/offline-package-installation/7880 "2021-03-15T22:56:40Z")

</div>

Julia packages live on Github, and unregistered packages can be installed usign a git clone. I guess it is easy enough to make a local copy of a repo on disk. How would one tell julia to install packages from that sour…

---

## [Static matrix equation solve in-place?](https://discourse.julialang.org/t/static-matrix-equation-solve-in-place/57231)

<div class="topic-metadata">

**Author:** [@markmbaum](https://discourse.julialang.org/u/markmbaum)\
**Replies:** 7\
**Last updated:** [March 15, 2021, 10:38pm UTC](https://discourse.julialang.org/t/static-matrix-equation-solve-in-place/57231 "2021-03-15T22:38:16Z")

</div>

I’m using static arrays to solve a 3x3 matrix equation that has to be solved repeatedly. Is there a function for solving these equations in place with static arrays (SMatrix, SVector)? I see all the in-place BLAS routine…

---

## [How to debug package unit tests in VS Code?](https://discourse.julialang.org/t/how-to-debug-package-unit-tests-in-vs-code/57245)

<div class="topic-metadata">

**Author:** [@asyrov](https://discourse.julialang.org/u/asyrov)\
**Replies:** 0\
**Last updated:** [March 15, 2021, 10:36pm UTC](https://discourse.julialang.org/t/how-to-debug-package-unit-tests-in-vs-code/57245 "2021-03-15T22:36:41Z")

</div>

For package development, I run unit tests from package mode as (MyPackage) pkg\> test MyPackage, but how do I start unittests.jl under debugger in VS Code? (I’m using Test package with @testset "somename" begin ...@test.…

---

## [Getting an error with the Colors package](https://discourse.julialang.org/t/getting-an-error-with-the-colors-package/44766)

<div class="topic-metadata">

**Author:** [@RaphaelT](https://discourse.julialang.org/u/RaphaelT)\
**Replies:** 4\
**Last updated:** [March 15, 2021, 10:11pm UTC](https://discourse.julialang.org/t/getting-an-error-with-the-colors-package/44766 "2021-03-15T22:11:12Z")

</div>

Hi, I am super new to Julia and I started off my doing the first course in JuliaAcademy. This course also recommended installing the “Colors” package at some point. Right now, I am trying out some stuff, but suddenly, my…

---

## [How to turn off @threads for ... while debugging](https://discourse.julialang.org/t/how-to-turn-off-threads-for-while-debugging/57234)

<div class="topic-metadata">

**Author:** [@asyrov](https://discourse.julialang.org/u/asyrov)\
**Replies:** 1\
**Last updated:** [March 15, 2021, 9:26pm UTC](https://discourse.julialang.org/t/how-to-turn-off-threads-for-while-debugging/57234 "2021-03-15T21:26:50Z")

</div>

I’d like to turn off (like it is nothing) @threads macro in some case while debugging. Such as I want to pass optional parameter use\_threads, and then how would I modify the following code not to use threads (possibly wi…

---

## [Learning to optimize](https://discourse.julialang.org/t/learning-to-optimize/57207)

<div class="topic-metadata">

**Author:** [@lancejnelson](https://discourse.julialang.org/u/lancejnelson)\
**Replies:** 12\
**Last updated:** [March 15, 2021, 9:22pm UTC](https://discourse.julialang.org/t/learning-to-optimize/57207 "2021-03-15T21:22:06Z")

</div>

Still trying to build intuition for optimizing Julia code. Here is an MD code I translated from python. It already runs a lot faster than my python version but I feel like it could be faster. I’m more interested in le…

---

## [Remote backend developer (web services, algorithms) - residential agriculture startup](https://discourse.julialang.org/t/remote-backend-developer-web-services-algorithms-residential-agriculture-startup/56507)

<div class="topic-metadata">

**Author:** [@OliverEvans96](https://discourse.julialang.org/u/OliverEvans96)\
**Replies:** 5\
**Last updated:** [March 15, 2021, 9:13pm UTC](https://discourse.julialang.org/t/remote-backend-developer-web-services-algorithms-residential-agriculture-startup/56507 "2021-03-15T21:13:25Z")

</div>

Hi all, My team and I have been working for the last year on developing software that brings a data science approach to residential agriculture / home gardening. I’m personally quite passionate about Julia, and have use…

---

## [New laptop for Julia](https://discourse.julialang.org/t/new-laptop-for-julia/55687)

<div class="topic-metadata">

**Author:** [@Aitotelic](https://discourse.julialang.org/u/Aitotelic)\
**Replies:** 14\
**Last updated:** [March 15, 2021, 8:45pm UTC](https://discourse.julialang.org/t/new-laptop-for-julia/55687 "2021-03-15T20:45:29Z")

</div>

I’m just about to embark on learning Julia for Deep Learning. And, my old Windows laptop just died. I want to buy a moderately priced laptop specifically for Julia that should last me several years. I gather that I shou…

---

## [Automatic generation user-defined functions and NLexpression](https://discourse.julialang.org/t/automatic-generation-user-defined-functions-and-nlexpression/57216)

<div class="topic-metadata">

**Author:** [@GiuliaM](https://discourse.julialang.org/u/GiuliaM)\
**Replies:** 1\
**Last updated:** [March 15, 2021, 7:42pm UTC](https://discourse.julialang.org/t/automatic-generation-user-defined-functions-and-nlexpression/57216 "2021-03-15T19:42:25Z")

</div>

Hi everyone! I’m trying to create a non-linear expression for a non-linear problem. I need to automatically register some user-defined functions (in the MWE func1 and func2) and use them in the NLexpression. In partic…

---

## [Addind Options to Function](https://discourse.julialang.org/t/addind-options-to-function/57209)

<div class="topic-metadata">

**Author:** [@marianoarnaiz](https://discourse.julialang.org/u/marianoarnaiz)\
**Replies:** 3\
**Last updated:** [March 15, 2021, 6:40pm UTC](https://discourse.julialang.org/t/addind-options-to-function/57209 "2021-03-15T18:40:25Z")

</div>

Hi everyone. I think this is really simple but I am not getting around it. I have this function Rps that does some computation. Now, to the final results I can add some corrections. I would like to be able to do: Rps(…

---

## [Type Instability in performance critical function](https://discourse.julialang.org/t/type-instability-in-performance-critical-function/57195)

<div class="topic-metadata">

**Author:** [@mroavi](https://discourse.julialang.org/u/mroavi)\
**Replies:** 17\
**Last updated:** [March 15, 2021, 6:12pm UTC](https://discourse.julialang.org/t/type-instability-in-performance-critical-function/57195 "2021-03-15T18:12:39Z")

</div>

I have a function that is critical in my code because it is called many times. I am trying to optimize it. The function takes in an N-dimensional factor and a tuple of variables. A factor consists of an N-dimensional ar…

---

## [State of Signals](https://discourse.julialang.org/t/state-of-signals/9495)

<div class="topic-metadata">

**Author:** [@Raf](https://discourse.julialang.org/u/Raf)\
**Replies:** 7\
**Last updated:** [March 15, 2021, 4:19pm UTC](https://discourse.julialang.org/t/state-of-signals/9495 "2021-03-15T16:19:19Z")

</div>

There are a lot of packages for signals these days: https://github.com/JuliaGizmos/Reactive.jl https://github.com/JuliaGizmos/Observables.jl https://github.com/TsurHerman/Signals.jl https://github.com/tshort/Reactive…

---

## [Writing a function that requires 1 argument, when using it julia thinks I put 2 in](https://discourse.julialang.org/t/writing-a-function-that-requires-1-argument-when-using-it-julia-thinks-i-put-2-in/57213)

<div class="topic-metadata">

**Author:** [@sonicrules1234](https://discourse.julialang.org/u/sonicrules1234)\
**Replies:** 5\
**Last updated:** [March 15, 2021, 4:46pm UTC](https://discourse.julialang.org/t/writing-a-function-that-requires-1-argument-when-using-it-julia-thinks-i-put-2-in/57213 "2021-03-15T16:46:13Z")

</div>

I have this in greet.jl module greetings export greet function greet(greeting::String) if greeting == "hello" | greeting == "Hello" returnmsg = "Good morning" elseif greeting == "goodbye" returnm…

---

## [\`indexin\` should accept Tuples as second argument?](https://discourse.julialang.org/t/indexin-should-accept-tuples-as-second-argument/57211)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 1\
**Last updated:** [March 15, 2021, 4:40pm UTC](https://discourse.julialang.org/t/indexin-should-accept-tuples-as-second-argument/57211 "2021-03-15T16:40:57Z")

</div>

As a side note from this thread, I noticed that the implementation of indexin, which is: function indexin(a, b::AbstractArray) inds = keys(b) bdict = Dict{eltype(b),eltype(inds)}() for (val, ind) in zip(b, i…

---

## [Multithreading and random number generators](https://discourse.julialang.org/t/multithreading-and-random-number-generators/49777)

<div class="topic-metadata">

**Author:** [@Skoffer](https://discourse.julialang.org/u/Skoffer)\
**Replies:** 7\
**Last updated:** [March 15, 2021, 2:41pm UTC](https://discourse.julialang.org/t/multithreading-and-random-number-generators/49777 "2021-03-15T14:41:01Z")

</div>

How one can approach multithreading simulations, which uses random numbers generators? Especially if one wants to use non Base generators, like StableRNGs.jl, RandomNumbers.jl and others. Here is a simple example of a r…

---

## [LowRankApprox.jl and sketch.jl](https://discourse.julialang.org/t/lowrankapprox-jl-and-sketch-jl/57200)

<div class="topic-metadata">

**Author:** [@vlederer](https://discourse.julialang.org/u/vlederer)\
**Replies:** 0\
**Last updated:** [March 15, 2021, 3:06pm UTC](https://discourse.julialang.org/t/lowrankapprox-jl-and-sketch-jl/57200 "2021-03-15T15:06:18Z")

</div>

In LowRankApprox package we have access to sketching methods via sketch.jl. I only need to compute the sketching step below in pseudo-code: function f(Q::StridedMatrix{Float32}, Qv::StridedVector{Float32}, S…

---

## [Survey: Color options for type relations in Julia Color Themes](https://discourse.julialang.org/t/survey-color-options-for-type-relations-in-julia-color-themes/57131)

<div class="topic-metadata">

**Author:** [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Replies:** 4\
**Last updated:** [March 15, 2021, 3:51pm UTC](https://discourse.julialang.org/t/survey-color-options-for-type-relations-in-julia-color-themes/57131 "2021-03-15T15:51:40Z")

</div>

Thanks to @pfitzseb, it is now possible to customize the color of type relation symbols (:: \<: \>:) in VS Code. I’m considering changing the color of these symbols in my Julia Color Themes VS Code extension. Currently, ty…

---

## [Is there a sample code for BiLSTM?](https://discourse.julialang.org/t/is-there-a-sample-code-for-bilstm/28749)

<div class="topic-metadata">

**Author:** [@yeruoforever](https://discourse.julialang.org/u/yeruoforever)\
**Replies:** 2\
**Last updated:** [March 15, 2021, 3:44pm UTC](https://discourse.julialang.org/t/is-there-a-sample-code-for-bilstm/28749 "2021-03-15T15:44:04Z")

</div>

I am a ML beginner,I almost finished reading the documents about Flux.jl,but I have no idea about implementing a Bi-directional LSTM using native’s Flux.jl.:cold\_sweat:

---

## [ModelingToolkit.jl hydraulic model](https://discourse.julialang.org/t/modelingtoolkit-jl-hydraulic-model/57084)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 8\
**Last updated:** [March 15, 2021, 3:36pm UTC](https://discourse.julialang.org/t/modelingtoolkit-jl-hydraulic-model/57084 "2021-03-15T15:36:49Z")

</div>

@ChrisRackauckas Thx for ModelingToolkit.jl I really like it! I tried to model a simple hydraulic system. However, I soon ran into some problems. Consider the following example (adaptation of the RC example): using Mo…

---

## [Parallelizing Loss Function](https://discourse.julialang.org/t/parallelizing-loss-function/57035)

<div class="topic-metadata">

**Author:** [@Honza9723](https://discourse.julialang.org/u/Honza9723)\
**Replies:** 4\
**Last updated:** [March 15, 2021, 2:40pm UTC](https://discourse.julialang.org/t/parallelizing-loss-function/57035 "2021-03-15T14:40:51Z")

</div>

Dear All, I would like to ask you for advice regarding how to parallelize the loss function in Flux. Context: I am solving a discounted infinite-horizon optimization problem (in economics). It has three controls (Cs, Ci…

---

## [What is the command to find the keywords/functions of a Package such as in CSV.jl or Unitful.jl?](https://discourse.julialang.org/t/what-is-the-command-to-find-the-keywords-functions-of-a-package-such-as-in-csv-jl-or-unitful-jl/57100)

<div class="topic-metadata">

**Author:** [@Victor\_Villavicencio](https://discourse.julialang.org/u/Victor_Villavicencio)\
**Replies:** 11\
**Last updated:** [March 15, 2021, 12:48pm UTC](https://discourse.julialang.org/t/what-is-the-command-to-find-the-keywords-functions-of-a-package-such-as-in-csv-jl-or-unitful-jl/57100 "2021-03-15T12:48:01Z")

</div>

Greetings; As shown in the attachment, I tried to use names, names! and I tried \[SHIFT\]? to find keywords/functions . What is the correct keyword or script to view all keywords and their “docstrings” ? As shown in the…

---

## [StatsModels: get levels and model matrix for each level of categorical term](https://discourse.julialang.org/t/statsmodels-get-levels-and-model-matrix-for-each-level-of-categorical-term/50586)

<div class="topic-metadata">

**Author:** [@PharmCat](https://discourse.julialang.org/u/PharmCat)\
**Replies:** 2\
**Last updated:** [March 15, 2021, 12:45pm UTC](https://discourse.julialang.org/t/statsmodels-get-levels-and-model-matrix-for-each-level-of-categorical-term/50586 "2021-03-15T12:45:27Z")

</div>

I have dataframe (df) with categoricals factors and i make schema fs = apply\_schema(someterm, StatsModels.schema(df)) (where someterm is InteractionTerm). Then I want to get a vector of levels and then get a submatrix o…

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

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