# Latest

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

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

**Page:** 1508

---

## [Discourse syntax highlighting options](https://discourse.julialang.org/t/discourse-syntax-highlighting-options/54288)

<div class="topic-metadata">

**Author:** [@FPGro](https://discourse.julialang.org/u/FPGro)\
**Replies:** 2\
**Last updated:** [January 30, 2021, 7:20pm UTC](https://discourse.julialang.org/t/discourse-syntax-highlighting-options/54288 "2021-01-30T19:20:43Z")

</div>

Hi folks, I have no clue how this platform, especially the syntax highlighting for block quotes here, works under the hood and how configurable it is, so I thought I’d ask right away: What are the options for block quo…

---

## [CUDA.jl not inlining "simple" functions](https://discourse.julialang.org/t/cuda-jl-not-inlining-simple-functions/50153)

<div class="topic-metadata">

**Author:** [@cdsousa](https://discourse.julialang.org/u/cdsousa)\
**Replies:** 5\
**Last updated:** [January 30, 2021, 7:11pm UTC](https://discourse.julialang.org/t/cuda-jl-not-inlining-simple-functions/50153 "2021-01-30T19:11:04Z")

</div>

After porting some code from using oneAPI.jl GPU kernels to CUDA.jl I got timings in CUDA which were higher than the ones from running in an Intel GPU. Something like getting 20ms on the on an Nvidia Gtx 1080 Ti and 14m…

---

## [Soss updates](https://discourse.julialang.org/t/soss-updates/53362)

<div class="topic-metadata">

**Author:** [@cscherrer](https://discourse.julialang.org/u/cscherrer)\
**Replies:** 6\
**Last updated:** [January 30, 2021, 4:28pm UTC](https://discourse.julialang.org/t/soss-updates/53362 "2021-01-30T16:28:26Z")

</div>

Hello all, Just thought I’d talk a bit about the latest with Soss. Everything here is from the Soss, MeasureTheory, NestedTuples, and SymbolicCodegen packages. An easy problem Say we have a simple model with some obser…

---

## [Rebinding local variable inside function and type stability: does it matter?](https://discourse.julialang.org/t/rebinding-local-variable-inside-function-and-type-stability-does-it-matter/54159)

<div class="topic-metadata">

**Author:** [@Shuhua](https://discourse.julialang.org/u/Shuhua)\
**Replies:** 8\
**Last updated:** [January 30, 2021, 4:08pm UTC](https://discourse.julialang.org/t/rebinding-local-variable-inside-function-and-type-stability-does-it-matter/54159 "2021-01-30T16:08:50Z")

</div>

Based on my limited understanding of the documentation here, type stability mainly pertains to the return type. However, if I change the type of a local variable (essentially rebinding) inside a function as follows: g(x…

---

## [\[ANN\] Actors 0.2, GenServers and Guards](https://discourse.julialang.org/t/ann-actors-0-2-genservers-and-guards/52056)

<div class="topic-metadata">

**Author:** [@pbayer](https://discourse.julialang.org/u/pbayer)\
**Replies:** 13\
**Last updated:** [January 30, 2021, 3:52pm UTC](https://discourse.julialang.org/t/ann-actors-0-2-genservers-and-guards/52056 "2021-01-30T15:52:08Z")

</div>

I’m happy to announce the release of Actors 0.2 together with two actor infrastructure libraries GenServers and Guards. Actors: Concurrency based on the Actor Model Actors implements the classical Actor model in Julia. …

---

## [Counter-intuitive behaviour of the & function. Is it working as intended?](https://discourse.julialang.org/t/counter-intuitive-behaviour-of-the-function-is-it-working-as-intended/54246)

<div class="topic-metadata">

**Author:** [@CaFe](https://discourse.julialang.org/u/CaFe)\
**Replies:** 4\
**Last updated:** [January 30, 2021, 3:35pm UTC](https://discourse.julialang.org/t/counter-intuitive-behaviour-of-the-function-is-it-working-as-intended/54246 "2021-01-30T15:35:36Z")

</div>

Hello Everyone, I am a beginner to Julia and found the following behaviour of the & bitwise and operator rather perplexing. When I type in the REPL something like: julia\> 1 & 3 Everything goes ok and I get an answer: …

---

## [Plots and clibrary(:colorcet)?](https://discourse.julialang.org/t/plots-and-clibrary-colorcet/54180)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 1\
**Last updated:** [January 30, 2021, 3:17pm UTC](https://discourse.julialang.org/t/plots-and-clibrary-colorcet/54180 "2021-01-30T15:17:27Z")

</div>

I feel stupid for asking this… Some 9 months ago, I worked with some Jupyter notebooks with plotting (using Plots; pyplot()). At that time, I had to include a command: clibrary(:colorcet) to make my code/plots work. (…

---

## [For-loop in function is faster than global scope?](https://discourse.julialang.org/t/for-loop-in-function-is-faster-than-global-scope/54279)

<div class="topic-metadata">

**Author:** [@anon74562486](https://discourse.julialang.org/u/anon74562486)\
**Replies:** 3\
**Last updated:** [January 30, 2021, 2:37pm UTC](https://discourse.julialang.org/t/for-loop-in-function-is-faster-than-global-scope/54279 "2021-01-30T14:37:27Z")

</div>

Why are loops faster in functions? This: a = \[1:10\_000\_000;\] b = zeros(Int64, length(a)) function double!(x, y) L = length(x) for i in 1:L @inbounds y\[i\] = 2x\[i\] end nothing end @time double!(…

---

## [Brusselator and Catalyst](https://discourse.julialang.org/t/brusselator-and-catalyst/54222)

<div class="topic-metadata">

**Author:** [@aquarelleX332](https://discourse.julialang.org/u/aquarelleX332)\
**Replies:** 3\
**Last updated:** [January 30, 2021, 1:38pm UTC](https://discourse.julialang.org/t/brusselator-and-catalyst/54222 "2021-01-30T13:38:27Z")

</div>

Good evening to all, I recently solved the ODEs system for the brusselator: A -\> X (k1) 2X + Y -\> 3X (k2) B + X -\> Y + D (k3) X -\> E (k4) where A, B, etc are chemical species and k represents kinetics coefficients. B…

---

## [Meta.parse failes on double newlines](https://discourse.julialang.org/t/meta-parse-failes-on-double-newlines/54272)

<div class="topic-metadata">

**Author:** [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Replies:** 1\
**Last updated:** [January 30, 2021, 1:38pm UTC](https://discourse.julialang.org/t/meta-parse-failes-on-double-newlines/54272 "2021-01-30T13:38:21Z")

</div>

Why do double newlines throw an error when parsing a string? I had problems with this when running files using DaemonMode. julia\> Meta.parse("begin end") quote #= none:1 =# end julia\> Meta.parse("begin end\\n") quo…

---

## [Compiling specialized functions for large set of user-passed options](https://discourse.julialang.org/t/compiling-specialized-functions-for-large-set-of-user-passed-options/54255)

<div class="topic-metadata">

**Author:** [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Replies:** 4\
**Last updated:** [January 30, 2021, 1:27pm UTC](https://discourse.julialang.org/t/compiling-specialized-functions-for-large-set-of-user-passed-options/54255 "2021-01-30T13:27:02Z")

</div>

Hi, I’m optimizing my package SymbolicRegression.jl, the backend for PySR, a GA-based gradient-free symbolic regression code. The normal workflow for this package is to configure the options—such as choice of operators…

---

## [NLopt stalls without objective progress?](https://discourse.julialang.org/t/nlopt-stalls-without-objective-progress/54073)

<div class="topic-metadata">

**Author:** [@evanfields](https://discourse.julialang.org/u/evanfields)\
**Replies:** 2\
**Last updated:** [January 30, 2021, 1:13pm UTC](https://discourse.julialang.org/t/nlopt-stalls-without-objective-progress/54073 "2021-01-30T13:13:58Z")

</div>

I have an optimization problem which I’m solving with NLopt (algorithm :LD\_MMA). The objective is nonlinear, there are upper/lower bound constraints, and one linear constraint. It seems like no matter how long I let NLop…

---

## [Plots for 3 values](https://discourse.julialang.org/t/plots-for-3-values/54270)

<div class="topic-metadata">

**Author:** [@Tomas\_Berky](https://discourse.julialang.org/u/Tomas_Berky)\
**Replies:** 0\
**Last updated:** [January 30, 2021, 1:02pm UTC](https://discourse.julialang.org/t/plots-for-3-values/54270 "2021-01-30T13:02:17Z")

</div>

Hello, is there a possibility o make this example (https://juliaacademy.com/courses/deep-learning-with-flux-jl/lectures/9624892) work with all colours? I tried it by myself and the model seems to work fine. But i am not…

---

## [How can I get back the original string after I converted it to codeunits?](https://discourse.julialang.org/t/how-can-i-get-back-the-original-string-after-i-converted-it-to-codeunits/54267)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 1\
**Last updated:** [January 30, 2021, 12:46pm UTC](https://discourse.julialang.org/t/how-can-i-get-back-the-original-string-after-i-converted-it-to-codeunits/54267 "2021-01-30T12:46:44Z")

</div>

How can I get back the original string after I converted it to codeunits, e.g. f(codeunits("test")) = "test" ? Note that the poster on Slack cannot see your response here on Discourse. Consider answering the question th…

---

## [Anyone used sockets to listen for python3 objects?](https://discourse.julialang.org/t/anyone-used-sockets-to-listen-for-python3-objects/54231)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 4\
**Last updated:** [January 30, 2021, 11:35am UTC](https://discourse.julialang.org/t/anyone-used-sockets-to-listen-for-python3-objects/54231 "2021-01-30T11:35:51Z")

</div>

Hi all just coded up a simple python script that posts to a socket ,every 5 seconds, a message containing the following objects. integer unixdatetime float64 string 20 bytes float64 writing a listener python progr…

---

## [LaTeX minus and plus signs in Pluto notebooks](https://discourse.julialang.org/t/latex-minus-and-plus-signs-in-pluto-notebooks/53808)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 8\
**Last updated:** [January 30, 2021, 10:44am UTC](https://discourse.julialang.org/t/latex-minus-and-plus-signs-in-pluto-notebooks/53808 "2021-01-30T10:44:10Z")

</div>

Does anyone else have the problem of LaTeX operators (seems to be mostly + and -) not rendering properly in Pluto notebooks? Oftentimes they aren’t rendered at all and sometimes, with the + operator, it’s only partially …

---

## [Method to supress multiple warnings](https://discourse.julialang.org/t/method-to-supress-multiple-warnings/54189)

<div class="topic-metadata">

**Author:** [@DrChainsaw](https://discourse.julialang.org/u/DrChainsaw)\
**Replies:** 4\
**Last updated:** [January 30, 2021, 8:55am UTC](https://discourse.julialang.org/t/method-to-supress-multiple-warnings/54189 "2021-01-30T08:55:15Z")

</div>

Suppose one has code structured a bit like this (kinda exaggerated for clarity): solvemyproblem(array) = map(solveone, array) solveone(x) = ...stuff... function somedeepdownfunction(x) if nogood(x) @…

---

## [Registering an array of functions and using them in constraints and objectives](https://discourse.julialang.org/t/registering-an-array-of-functions-and-using-them-in-constraints-and-objectives/53294)

<div class="topic-metadata">

**Author:** [@maajdl](https://discourse.julialang.org/u/maajdl)\
**Replies:** 4\
**Last updated:** [January 30, 2021, 8:40am UTC](https://discourse.julialang.org/t/registering-an-array-of-functions-and-using-them-in-constraints-and-objectives/53294 "2021-01-30T08:40:43Z")

</div>

(Julia beginner) Still thinking about Nonlinear Programming with JuMP with some generality. (@NLconstraint with a sum, array and scalar variables) There are many NLP JuMP examples available but all more or less simila…

---

## [How to pass command line arguments to include("\<julia file\>")?](https://discourse.julialang.org/t/how-to-pass-command-line-arguments-to-include-julia-file/4731)

<div class="topic-metadata">

**Author:** [@Luis\_de\_la\_Torre](https://discourse.julialang.org/u/Luis_de_la_Torre)\
**Replies:** 16\
**Last updated:** [January 30, 2021, 8:37am UTC](https://discourse.julialang.org/t/how-to-pass-command-line-arguments-to-include-julia-file/4731 "2021-01-30T08:37:25Z")

</div>

I have a Julia file that takes command line arguments and parses them using ArgParse. I want to run the program in the REPL (trying to debug with Gallium). How do I pass the command line arguments?

---

## [Running unit tests for Julia proper on home PC stalls computer](https://discourse.julialang.org/t/running-unit-tests-for-julia-proper-on-home-pc-stalls-computer/54248)

<div class="topic-metadata">

**Author:** [@BioTurboNick](https://discourse.julialang.org/u/BioTurboNick)\
**Replies:** 4\
**Last updated:** [January 30, 2021, 4:37am UTC](https://discourse.julialang.org/t/running-unit-tests-for-julia-proper-on-home-pc-stalls-computer/54248 "2021-01-30T04:37:37Z")

</div>

Whenever I try running the tests for Julia itself on my home computer, the system completely stalls out. Is there a way to keep it from blowing up my system and complete normally?

---

## [Is Julia/some of the packages the main tool for some field of science?](https://discourse.julialang.org/t/is-julia-some-of-the-packages-the-main-tool-for-some-field-of-science/54177)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 3\
**Last updated:** [January 29, 2021, 12:51pm UTC](https://discourse.julialang.org/t/is-julia-some-of-the-packages-the-main-tool-for-some-field-of-science/54177 "2021-01-29T12:51:20Z")

</div>

I do know of Julia-only companies, and of lots of science Julia is used for, but it’s historically being playing catch-up, and I know of no field, or sub-field (I hear e.g. particle physics could be a candidate), where J…

---

## [Seeking Julia Mentors and Projects for GSoC 2021](https://discourse.julialang.org/t/seeking-julia-mentors-and-projects-for-gsoc-2021/54247)

<div class="topic-metadata">

**Author:** [@logankilpatrick](https://discourse.julialang.org/u/logankilpatrick)\
**Replies:** 0\
**Last updated:** [January 30, 2021, 3:04am UTC](https://discourse.julialang.org/t/seeking-julia-mentors-and-projects-for-gsoc-2021/54247 "2021-01-30T03:04:27Z")

</div>

Hey all, the Julia Language will be applying for Google Summer of Code this year. With GSoC 2021, there are significant changes to the timeline and other attributes of the program. Please see here: Defining a Project (Id…

---

## [Will I run into performance issues if I use a matrix of different distributions?](https://discourse.julialang.org/t/will-i-run-into-performance-issues-if-i-use-a-matrix-of-different-distributions/54240)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 1\
**Last updated:** [January 30, 2021, 1:37am UTC](https://discourse.julialang.org/t/will-i-run-into-performance-issues-if-i-use-a-matrix-of-different-distributions/54240 "2021-01-30T01:37:26Z")

</div>

Will I run into performance issues if I use a matrix of different distributions? My understanding is that this will be an abstract typed matrix which will be slow. What is a better way to do this? Note that the poster …

---

## [Optimization with JuMP: an affine expression enters a nonlinear constraint (dynamic discrete choice)](https://discourse.julialang.org/t/optimization-with-jump-an-affine-expression-enters-a-nonlinear-constraint-dynamic-discrete-choice/54230)

<div class="topic-metadata">

**Author:** [@kwokhao](https://discourse.julialang.org/u/kwokhao)\
**Replies:** 2\
**Last updated:** [January 30, 2021, 12:14am UTC](https://discourse.julialang.org/t/optimization-with-jump-an-affine-expression-enters-a-nonlinear-constraint-dynamic-discrete-choice/54230 "2021-01-30T00:14:10Z")

</div>

I am trying to use JuMP to solve a dynamic programming problem, but I cannot get MPEC (with Ipopt) to work. I am solving a prediction problem. There are 2 products, “safe” and “risky”. The safe product always yields uti…

---

## [Bash errors on launch (Launch\_JuliaPro)](https://discourse.julialang.org/t/bash-errors-on-launch-launch-juliapro/45214)

<div class="topic-metadata">

**Author:** [@jaleone33](https://discourse.julialang.org/u/jaleone33)\
**Replies:** 1\
**Last updated:** [January 29, 2021, 11:28pm UTC](https://discourse.julialang.org/t/bash-errors-on-launch-launch-juliapro/45214 "2021-01-29T23:28:49Z")

</div>

I have installed JuliaPro 1.0.5-2 on mxlinux (based on Debian). When I start the application (./LaunchJulia), the following errors appear in the terminal window: bash: cannot set terminal process group (-1): Inappropri…

---

## [Parametric types help](https://discourse.julialang.org/t/parametric-types-help/54226)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 1\
**Last updated:** [January 29, 2021, 10:05pm UTC](https://discourse.julialang.org/t/parametric-types-help/54226 "2021-01-29T22:05:49Z")

</div>

This does work: abstract type AbstractBar end struct Foo{T \<: Real,V \<: AbstractBar} bar::Vector{V} t::Vector{T} end struct Bar \<: AbstractBar b::Float64 end Foo{T}() where {T} = Foo{T,Bar}(Bar\[\], T\[\]) Fo…

---

## [Invalidating sysimages?](https://discourse.julialang.org/t/invalidating-sysimages/53922)

<div class="topic-metadata">

**Author:** [@airpmb](https://discourse.julialang.org/u/airpmb)\
**Replies:** 7\
**Last updated:** [January 29, 2021, 9:46pm UTC](https://discourse.julialang.org/t/invalidating-sysimages/53922 "2021-01-29T21:46:09Z")

</div>

If I’m not mistaken if you use a custom sysimage and then make any changes to any of the packages included in said sysimage, then these won’t be reflected in any Julia sessions where you use that sysimage. What I’m wonde…

---

## [Accessing Matlab-function from Julia](https://discourse.julialang.org/t/accessing-matlab-function-from-julia/54221)

<div class="topic-metadata">

**Author:** [@andre96](https://discourse.julialang.org/u/andre96)\
**Replies:** 1\
**Last updated:** [January 29, 2021, 9:29pm UTC](https://discourse.julialang.org/t/accessing-matlab-function-from-julia/54221 "2021-01-29T21:29:37Z")

</div>

Hello everyone, I recently started to work with Julia and need to evaluate some custom matlab-functions in my julia-scripts. Therefore, I added the package MATLAB.jl and updated the environment variable MATLAB\_HOME to t…

---

## [Is it possible to private message another user on the Julia Discourse?](https://discourse.julialang.org/t/is-it-possible-to-private-message-another-user-on-the-julia-discourse/54217)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 2\
**Last updated:** [January 29, 2021, 7:41pm UTC](https://discourse.julialang.org/t/is-it-possible-to-private-message-another-user-on-the-julia-discourse/54217 "2021-01-29T19:41:09Z")

</div>

Quick question: Is it possible to private message another user on the Julia Discourse? I couldn’t find a button for it but it might be because I haven’t posted enough? (Original message :slack:)

---

## [Discussion of ccall( (:function, "library"), ...)](https://discourse.julialang.org/t/discussion-of-ccall-function-library/53887)

<div class="topic-metadata">

**Author:** [@lyonsquark](https://discourse.julialang.org/u/lyonsquark)\
**Replies:** 8\
**Last updated:** [January 29, 2021, 8:04pm UTC](https://discourse.julialang.org/t/discussion-of-ccall-function-library/53887 "2021-01-29T20:04:06Z")

</div>

Hi, I’d like to hear people’s thoughts about the use of ccall( (:function, "library"), ...) as opposed to ccall( :function, ...) (see Calling C and Fortran Code · The Julia Language) and whether the former variant should…

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

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