# Latest

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

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

**Page:** 1124

---

## [Using Julia Sockets to send message to an existing TCP Socket](https://discourse.julialang.org/t/using-julia-sockets-to-send-message-to-an-existing-tcp-socket/76191)

<div class="topic-metadata">

**Author:** [@hanshinlee77](https://discourse.julialang.org/u/hanshinlee77)\
**Replies:** 9\
**Last updated:** [February 13, 2022, 12:54am UTC](https://discourse.julialang.org/t/using-julia-sockets-to-send-message-to-an-existing-tcp-socket/76191 "2022-02-13T00:54:14Z")

</div>

Hi, I have a problem to send a simple message to an existing TCP server, using Julia Sockets module. I used one of the “C” examples on the web to test if I can make a connection and send/receive messages to/from the ser…

---

## [Categorical histogram](https://discourse.julialang.org/t/categorical-histogram/76323)

<div class="topic-metadata">

**Author:** [@juliauser](https://discourse.julialang.org/u/juliauser)\
**Replies:** 0\
**Last updated:** [February 13, 2022, 12:32am UTC](https://discourse.julialang.org/t/categorical-histogram/76323 "2022-02-13T00:32:19Z")

</div>

How can I set the order of the groups? Julia tends to reshuffle them randomly. And how can I add a second row with a bracket and its own name to show that G1 and G2 are part of a subgroup called Gprime? ctg = repeat(\["C…

---

## [Using LsqFit to make a line using a model](https://discourse.julialang.org/t/using-lsqfit-to-make-a-line-using-a-model/76321)

<div class="topic-metadata">

**Author:** [@Shamil-Luqman](https://discourse.julialang.org/u/Shamil-Luqman)\
**Replies:** 0\
**Last updated:** [February 12, 2022, 11:03pm UTC](https://discourse.julialang.org/t/using-lsqfit-to-make-a-line-using-a-model/76321 "2022-02-12T23:03:37Z")

</div>

“”" @. model(x, p) = (p\[1\] + p\[2\]\*x) + (p\[3\]/(p\[5\]√(2π) ))exp(-(x-p\[4\])^2/(2p\[5\]^2)) end “”" I have to fit this data into a steppere line graph I have and I can’t figure out how to use LsqFit to integrate the data.

---

## [Find all the roots of a function in an interval](https://discourse.julialang.org/t/find-all-the-roots-of-a-function-in-an-interval/76271)

<div class="topic-metadata">

**Author:** [@Norbert-droid](https://discourse.julialang.org/u/Norbert-droid)\
**Replies:** 3\
**Last updated:** [February 12, 2022, 10:03pm UTC](https://discourse.julialang.org/t/find-all-the-roots-of-a-function-in-an-interval/76271 "2022-02-12T22:03:55Z")

</div>

I have a function of one variable, and I want to find all the roots in an interval. The roots are simple, and their derivative is different than cero. I want a function that accepts alike arguments the function and the i…

---

## [In a pipeline, interrupt only one command](https://discourse.julialang.org/t/in-a-pipeline-interrupt-only-one-command/76301)

<div class="topic-metadata">

**Author:** [@rfourquet](https://discourse.julialang.org/u/rfourquet)\
**Replies:** 2\
**Last updated:** [February 12, 2022, 9:09pm UTC](https://discourse.julialang.org/t/in-a-pipeline-interrupt-only-one-command/76301 "2022-02-12T21:09:33Z")

</div>

I need to pipe two programs, the first one can be interrupted only by sending a kill signal; how to kill it without killing the whole pipeline? For example how to interrupt yes in a moral equivalent of pipeline(\`yes\`, \`w…

---

## [Workflow for Contributing to Base](https://discourse.julialang.org/t/workflow-for-contributing-to-base/76312)

<div class="topic-metadata">

**Author:** [@Lilith](https://discourse.julialang.org/u/Lilith)\
**Replies:** 5\
**Last updated:** [February 12, 2022, 7:26pm UTC](https://discourse.julialang.org/t/workflow-for-contributing-to-base/76312 "2022-02-12T19:26:56Z")

</div>

Hi! I’m trying to contribute to Base by making sort(x) print "Hello World" before returning the correct answer. Is there a good workflow without building Julia locally? (edited for concision)

---

## [Neptune doesn't load properly in browser](https://discourse.julialang.org/t/neptune-doesnt-load-properly-in-browser/75910)

<div class="topic-metadata">

**Author:** [@Ouji](https://discourse.julialang.org/u/Ouji)\
**Replies:** 16\
**Last updated:** [February 12, 2022, 7:13pm UTC](https://discourse.julialang.org/t/neptune-doesnt-load-properly-in-browser/75910 "2022-02-12T19:13:13Z")

</div>

I included Neptune in the REPL with using, then ran Neptune.run(), but when I choose a new notebook, it doesn’t load to the point of seeing a ready-to-use notebook. Basically it looks like an empty white screen. What is …

---

## [Benchmarking function (using \`@benchmark\`) for various input sizes](https://discourse.julialang.org/t/benchmarking-function-using-benchmark-for-various-input-sizes/76306)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 2\
**Last updated:** [February 12, 2022, 5:43pm UTC](https://discourse.julialang.org/t/benchmarking-function-using-benchmark-for-various-input-sizes/76306 "2022-02-12T17:43:14Z")

</div>

I have a function. I want to benchmark it for various inputs (originally I am solving a differential equations over various timespans). Naturally I would do something like: using BenchmarkTools bs = for l in \[10,100,10…

---

## [Defining an if condition in a constraint](https://discourse.julialang.org/t/defining-an-if-condition-in-a-constraint/76228)

<div class="topic-metadata">

**Author:** [@Sahar](https://discourse.julialang.org/u/Sahar)\
**Replies:** 7\
**Last updated:** [February 12, 2022, 2:55pm UTC](https://discourse.julialang.org/t/defining-an-if-condition-in-a-constraint/76228 "2022-02-12T14:55:23Z")

</div>

Hello everyone! I want to define an if condition in a constraint. I will have different constraints if the variable is positive or negative (Pb \>0.0 or Pb \<0.0), and you can see this part of the code; for i in 1:5, t i…

---

## [Problem in using "continuous\_events" in ModelingToolkit](https://discourse.julialang.org/t/problem-in-using-continuous-events-in-modelingtoolkit/76280)

<div class="topic-metadata">

**Author:** [@anandpathak31](https://discourse.julialang.org/u/anandpathak31)\
**Replies:** 11\
**Last updated:** [February 12, 2022, 2:21pm UTC](https://discourse.julialang.org/t/problem-in-using-continuous-events-in-modelingtoolkit/76280 "2022-02-12T14:21:27Z")

</div>

Hi, I am not able to use the continuous\_events feature of ModelingToolkit for creating ODESystem in VScode. It worked perfectly fine on Pluto but same code in VScode gives this error : LoadError: MethodError: no method …

---

## [Is there a fast way to evaluate the exp() function in Julia?](https://discourse.julialang.org/t/is-there-a-fast-way-to-evaluate-the-exp-function-in-julia/76287)

<div class="topic-metadata">

**Author:** [@maphdze](https://discourse.julialang.org/u/maphdze)\
**Replies:** 8\
**Last updated:** [February 12, 2022, 12:25pm UTC](https://discourse.julialang.org/t/is-there-a-fast-way-to-evaluate-the-exp-function-in-julia/76287 "2022-02-12T12:25:41Z")

</div>

My code are shown in following using BenchmarkTools using StaticArrays const λ = 1.0E-6 @inline @fastmath function damage\_pair!(f,x,y,i,j,d) new\_d = 0.0 for idim = 1:2 new\_d += (x\[idim\] - y\[idim\]) ^ 2 …

---

## [Future plan for realtime computing?](https://discourse.julialang.org/t/future-plan-for-realtime-computing/76282)

<div class="topic-metadata">

**Author:** [@pepperoni](https://discourse.julialang.org/u/pepperoni)\
**Replies:** 1\
**Last updated:** [February 12, 2022, 12:01pm UTC](https://discourse.julialang.org/t/future-plan-for-realtime-computing/76282 "2022-02-12T12:01:10Z")

</div>

Is there futur plan to make JuliaSim/MTK/DifferentialEquation support realtime computing? my lab make a good use of software in the loop (SIL) and hardware in the loop (HIL) simulation with various setup such as SpeedGoa…

---

## [Plans for Updating Julia](https://discourse.julialang.org/t/plans-for-updating-julia/75880)

<div class="topic-metadata">

**Author:** [@Lilith](https://discourse.julialang.org/u/Lilith)\
**Replies:** 40\
**Last updated:** [February 12, 2022, 10:49am UTC](https://discourse.julialang.org/t/plans-for-updating-julia/75880 "2022-02-12T10:49:06Z")

</div>

I’m aware of four systems for Julia version management: | Manual | jill | UpdateJulia | juliaup | juliavm status | official | stable | stable |…

---

## [Accelerate pairwise Lennard-Jones force computation](https://discourse.julialang.org/t/accelerate-pairwise-lennard-jones-force-computation/67321)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 87\
**Last updated:** [February 12, 2022, 10:03am UTC](https://discourse.julialang.org/t/accelerate-pairwise-lennard-jones-force-computation/67321 "2022-02-12T10:03:05Z")

</div>

Someone can see a chance of significantly accelerating this function? julia\> using StaticArrays, FastPow, BenchmarkTools julia\> function forces(x,y,d2,ε,σ,f) r = y - x @fastpow dudr = -12\*ε\*(σ^12/…

---

## [Very long delay between startup and shift+enter working](https://discourse.julialang.org/t/very-long-delay-between-startup-and-shift-enter-working/76241)

<div class="topic-metadata">

**Author:** [@bileamScheuvens](https://discourse.julialang.org/u/bileamScheuvens)\
**Replies:** 2\
**Last updated:** [February 12, 2022, 8:20am UTC](https://discourse.julialang.org/t/very-long-delay-between-startup-and-shift-enter-working/76241 "2022-02-12T08:20:55Z")

</div>

I unfortunately can’t pinpoint it to any update/change i made but recently there’s a ridiculous delay between repl startup and shift+enter sending code to it. We’re talking 5-10 minutes. The terminal works immediately, a…

---

## [Is \`keyword\_argument = Val{true}\` good practice or an antipattern?](https://discourse.julialang.org/t/is-keyword-argument-val-true-good-practice-or-an-antipattern/75543)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 19\
**Last updated:** [February 12, 2022, 7:31am UTC](https://discourse.julialang.org/t/is-keyword-argument-val-true-good-practice-or-an-antipattern/75543 "2022-02-12T07:31:41Z")

</div>

I am seeing more and more library code that is written with keyword arguments of the form kwarg = Val{true} instead of kwarg = true or even kwarg::Bool = true. I know this is done in order to force specialization in prec…

---

## [How to interactively zoom using GLMakie?](https://discourse.julialang.org/t/how-to-interactively-zoom-using-glmakie/76270)

<div class="topic-metadata">

**Author:** [@RayleighLord](https://discourse.julialang.org/u/RayleighLord)\
**Replies:** 0\
**Last updated:** [February 11, 2022, 9:28pm UTC](https://discourse.julialang.org/t/how-to-interactively-zoom-using-glmakie/76270 "2022-02-11T21:28:52Z")

</div>

I have recently seen a video where, using the scroll of the mouse, someone was able to zoom interactively in a 3D GLMakie plot. However, when I am doing something similar, I only can rotate the plot using the left click.…

---

## [Formulating a customized optimization problem in JuliaOpt](https://discourse.julialang.org/t/formulating-a-customized-optimization-problem-in-juliaopt/76260)

<div class="topic-metadata">

**Author:** [@Jian\_ZUO](https://discourse.julialang.org/u/Jian_ZUO)\
**Replies:** 2\
**Last updated:** [February 11, 2022, 11:40pm UTC](https://discourse.julialang.org/t/formulating-a-customized-optimization-problem-in-juliaopt/76260 "2022-02-11T23:40:28Z")

</div>

Hello everyone, I have clear modeling requirements, but not sure how to (or is it possible to) implement my problem with Julia optimization packages, like JuMP. General optimization problem: Objective function: obj(…

---

## [How to plot polar contourplot in julia](https://discourse.julialang.org/t/how-to-plot-polar-contourplot-in-julia/73198)

<div class="topic-metadata">

**Author:** [@usman0311](https://discourse.julialang.org/u/usman0311)\
**Replies:** 14\
**Last updated:** [February 11, 2022, 11:31pm UTC](https://discourse.julialang.org/t/how-to-plot-polar-contourplot-in-julia/73198 "2022-02-11T23:31:26Z")

</div>

In material science, we frequently have to plot pole figures to know the symmetry of the as-grown thin film. The Pole figure is a polar contour plot. I struggle to plot it in Julia. It would be a great help if someone h…

---

## [Julia/Pkg manager and (Linux) OOM behaviour](https://discourse.julialang.org/t/julia-pkg-manager-and-linux-oom-behaviour/76273)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 4\
**Last updated:** [February 11, 2022, 11:10pm UTC](https://discourse.julialang.org/t/julia-pkg-manager-and-linux-oom-behaviour/76273 "2022-02-11T23:10:11Z")

</div>

Logan wrote a good blog post the other day about how Julia’s package manager is great, better than others, at least in the Python world. What I know happened for me, facts in A., Julia seemingly “crashed” as a result of…

---

## [How to work around this error in expint?](https://discourse.julialang.org/t/how-to-work-around-this-error-in-expint/76133)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 1\
**Last updated:** [February 11, 2022, 8:28pm UTC](https://discourse.julialang.org/t/how-to-work-around-this-error-in-expint/76133 "2022-02-11T20:28:16Z")

</div>

I ran into this error while evaluating the Gamma function from SpecialFunctions: julia\> using SpecialFunctions julia\> gamma(exp(19.39)+1, 0.0125\*0.6) ERROR: ArgumentError: Unsupported order |ν| \> 50 off the positive re…

---

## [Filter a number when missing values are in column](https://discourse.julialang.org/t/filter-a-number-when-missing-values-are-in-column/76246)

<div class="topic-metadata">

**Author:** [@sai\_matcha](https://discourse.julialang.org/u/sai_matcha)\
**Replies:** 23\
**Last updated:** [February 11, 2022, 7:15pm UTC](https://discourse.julialang.org/t/filter-a-number-when-missing-values-are-in-column/76246 "2022-02-11T19:15:57Z")

</div>

Hi i want filter the rows having perticular value, but the column contains missing values as well. can some body help me to do this data frame i have df = DataFrame() df.a = (\[3,5,6,0,missing\]) df.b = 1:5 i want to fi…

---

## [More convenient way to develop dependent package?](https://discourse.julialang.org/t/more-convenient-way-to-develop-dependent-package/76206)

<div class="topic-metadata">

**Author:** [@marius311](https://discourse.julialang.org/u/marius311)\
**Replies:** 8\
**Last updated:** [February 11, 2022, 6:53pm UTC](https://discourse.julialang.org/t/more-convenient-way-to-develop-dependent-package/76206 "2022-02-11T18:53:28Z")

</div>

I’ve run into this problem alot over the years, and finally figured I’d ask if there’s not a solution I’m missing. The setup is that I have some base package which I’m developing, call it BasePackage. Then I’m working o…

---

## [Using ArtifactUtils add\_artifact throws IOError](https://discourse.julialang.org/t/using-artifactutils-add-artifact-throws-ioerror/75568)

<div class="topic-metadata">

**Author:** [@wccarleton](https://discourse.julialang.org/u/wccarleton)\
**Replies:** 14\
**Last updated:** [February 11, 2022, 6:42pm UTC](https://discourse.julialang.org/t/using-artifactutils-add-artifact-throws-ioerror/75568 "2022-02-11T18:42:06Z")

</div>

Hi All, I’m trying to build a package that includes data as an Artifact. Following ArtifactUtils · Julia Packages, the following worked as indicated: using ArtifactUtils, Artifacts # Artifacts provides the artifact str…

---

## [Reducing allocations for long expressions](https://discourse.julialang.org/t/reducing-allocations-for-long-expressions/76263)

<div class="topic-metadata">

**Author:** [@xspeng](https://discourse.julialang.org/u/xspeng)\
**Replies:** 12\
**Last updated:** [February 11, 2022, 6:35pm UTC](https://discourse.julialang.org/t/reducing-allocations-for-long-expressions/76263 "2022-02-11T18:35:11Z")

</div>

Hi, I have a question about how to reduce the allocations for long expressions, here is my example function rel(a, b, c, f, delta, ZB, s, t0, y0) term = 0.0 for i = 1:length(s) term += s\[i\] \* (f\[1, 1\] \* …

---

## [Dualization.jl PositiveSemidefiniteConeSquare not implemented](https://discourse.julialang.org/t/dualization-jl-positivesemidefiniteconesquare-not-implemented/74861)

<div class="topic-metadata">

**Author:** [@Thomas](https://discourse.julialang.org/u/Thomas)\
**Replies:** 2\
**Last updated:** [February 11, 2022, 6:00pm UTC](https://discourse.julialang.org/t/dualization-jl-positivesemidefiniteconesquare-not-implemented/74861 "2022-02-11T18:00:28Z")

</div>

When trying to dualize an SDP I got Constraints of function MathOptInterface.VectorAffineFunction{Float64} in the Set MathOptInterface.PositiveSemidefiniteConeSquare are not implemented Is this by any chance supporte…

---

## [UnicodePlots \`barplot\` with different colored bars](https://discourse.julialang.org/t/unicodeplots-barplot-with-different-colored-bars/75979)

<div class="topic-metadata">

**Author:** [@Elmo](https://discourse.julialang.org/u/Elmo)\
**Replies:** 4\
**Last updated:** [February 11, 2022, 5:51pm UTC](https://discourse.julialang.org/t/unicodeplots-barplot-with-different-colored-bars/75979 "2022-02-11T17:51:14Z")

</div>

Is it possible to stack multiple bar plots with different colored bars in one plot? For example, currently I have a function that returns three separate plots, but I think it would look better if I could combine them (e.…

---

## [Is it possible to change the transparency of a line without specifying the color?](https://discourse.julialang.org/t/is-it-possible-to-change-the-transparency-of-a-line-without-specifying-the-color/76252)

<div class="topic-metadata">

**Author:** [@RayleighLord](https://discourse.julialang.org/u/RayleighLord)\
**Replies:** 1\
**Last updated:** [February 11, 2022, 5:38pm UTC](https://discourse.julialang.org/t/is-it-possible-to-change-the-transparency-of-a-line-without-specifying-the-color/76252 "2022-02-11T17:38:35Z")

</div>

I am playing with Makie animations and I would like to change the transparecy of some lines using the lines! function but without having to specify the color. Is there any attribute in Makie that allows to change this?

---

## [Dot product of multi-dimensional arrays](https://discourse.julialang.org/t/dot-product-of-multi-dimensional-arrays/76258)

<div class="topic-metadata">

**Author:** [@lln](https://discourse.julialang.org/u/lln)\
**Replies:** 5\
**Last updated:** [February 11, 2022, 4:27pm UTC](https://discourse.julialang.org/t/dot-product-of-multi-dimensional-arrays/76258 "2022-02-11T16:27:19Z")

</div>

Hi guys, I am trying to compute the dot product of matrices A & B but getting different results compared to when I use the numpy.dot(A, B). A\*B and A.\*B also give different results. According to numpy docs (numpy.dot …

---

## [ABC / MSM with Turing.jl](https://discourse.julialang.org/t/abc-msm-with-turing-jl/76189)

<div class="topic-metadata">

**Author:** [@mcreel](https://discourse.julialang.org/u/mcreel)\
**Replies:** 4\
**Last updated:** [February 11, 2022, 3:48pm UTC](https://discourse.julialang.org/t/abc-msm-with-turing-jl/76189 "2022-02-11T15:48:49Z")

</div>

I believe that ABC (approximate Bayesian computing) and/or Bayesian MSM (method of simulated moments) are not yet well supported by Turing.jl. I have come up with a simple example that does the basic steps, and it was su…

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

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