# Latest

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

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

**Page:** 971

---

## [Which of \`::\` and \`where\` should take precedence?](https://discourse.julialang.org/t/which-of-and-where-should-take-precedence/84807)

<div class="topic-metadata">

**Author:** [@shaowei](https://discourse.julialang.org/u/shaowei)\
**Replies:** 4\
**Last updated:** [July 27, 2022, 5:11am UTC](https://discourse.julialang.org/t/which-of-and-where-should-take-precedence/84807 "2022-07-27T05:11:39Z")

</div>

Currently (Julia v1.7), where takes precedence over ::. For example: julia\> :(f(x::T where T \<: Integer)) :(f(x::(T where T \<: Integer))) However, this means that the return type annotation will not play nice with para…

---

## [Question on allowing user to specify the optimization sense](https://discourse.julialang.org/t/question-on-allowing-user-to-specify-the-optimization-sense/84836)

<div class="topic-metadata">

**Author:** [@math\_opt](https://discourse.julialang.org/u/math_opt)\
**Replies:** 2\
**Last updated:** [July 27, 2022, 2:53am UTC](https://discourse.julialang.org/t/question-on-allowing-user-to-specify-the-optimization-sense/84836 "2022-07-27T02:53:49Z")

</div>

I have a small package in which I solve an optimization model. The sense of the objective function is to be specified by the user. Now, I export MAX\_SENSE and MIN\_SENSE for the user to use them. A small example: module …

---

## [Losing type stability after passing function output from Symbolics.jl build\_function() as parameter elsewhere](https://discourse.julialang.org/t/losing-type-stability-after-passing-function-output-from-symbolics-jl-build-function-as-parameter-elsewhere/84844)

<div class="topic-metadata">

**Author:** [@allicient](https://discourse.julialang.org/u/allicient)\
**Replies:** 3\
**Last updated:** [July 27, 2022, 2:49am UTC](https://discourse.julialang.org/t/losing-type-stability-after-passing-function-output-from-symbolics-jl-build-function-as-parameter-elsewhere/84844 "2022-07-27T02:49:55Z")

</div>

This is probably expected behaviour but I don’t understand quite why it’s happening, and suspect it’d be useful to know. As part of a small library, I’ve been using Symbolics.jl to take user-supplied expressions, compil…

---

## [How to use \`kwargs\` to avoid passing around keyword arguments?](https://discourse.julialang.org/t/how-to-use-kwargs-to-avoid-passing-around-keyword-arguments/84856)

<div class="topic-metadata">

**Author:** [@Cory\_Simon](https://discourse.julialang.org/u/Cory_Simon)\
**Replies:** 2\
**Last updated:** [July 27, 2022, 2:13am UTC](https://discourse.julialang.org/t/how-to-use-kwargs-to-avoid-passing-around-keyword-arguments/84856 "2022-07-27T02:13:32Z")

</div>

I found the documentation on kwargs to be a little terse… how can I exploit keyword arguments to avoid copying tons of different keyword arguments when passing them function to function? my example below. seems unnatura…

---

## [Type stability when having function as struct field](https://discourse.julialang.org/t/type-stability-when-having-function-as-struct-field/84838)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 6\
**Last updated:** [July 26, 2022, 10:18pm UTC](https://discourse.julialang.org/t/type-stability-when-having-function-as-struct-field/84838 "2022-07-26T22:18:45Z")

</div>

I have defined a struct called ParDemo1 to store some parameters (and do some basic calculations for default values not shown here). It is passed to the function dhdt\_demo!, which is the RHS of a system of ODE to be pass…

---

## [Can someone post a high level summary of the differences between versions 1.6, 1.7 and 1.8?](https://discourse.julialang.org/t/can-someone-post-a-high-level-summary-of-the-differences-between-versions-1-6-1-7-and-1-8/84828)

<div class="topic-metadata">

**Author:** [@adannenberg](https://discourse.julialang.org/u/adannenberg)\
**Replies:** 2\
**Last updated:** [July 26, 2022, 8:50pm UTC](https://discourse.julialang.org/t/can-someone-post-a-high-level-summary-of-the-differences-between-versions-1-6-1-7-and-1-8/84828 "2022-07-26T20:50:52Z")

</div>

Or direct me to same? I understand the meaning and associated risk levels of LTS, current stable, and upcoming releases. But adoption should be driven by a consideration of risk vs. reward, and the reward part is assoc…

---

## [How to get the variable names of a PDESystem if using a symbolic array](https://discourse.julialang.org/t/how-to-get-the-variable-names-of-a-pdesystem-if-using-a-symbolic-array/84776)

<div class="topic-metadata">

**Author:** [@hpieper14](https://discourse.julialang.org/u/hpieper14)\
**Replies:** 7\
**Last updated:** [July 26, 2022, 8:40pm UTC](https://discourse.julialang.org/t/how-to-get-the-variable-names-of-a-pdesystem-if-using-a-symbolic-array/84776 "2022-07-26T20:40:36Z")

</div>

I’m having a hard time understanding exactly how a PDESystem with independent array variables differs from a PDESystem initialized with other independent variables. For example, suppose I have the following two PDESystem…

---

## [ApproxFun and Burgers' equation](https://discourse.julialang.org/t/approxfun-and-burgers-equation/84660)

<div class="topic-metadata">

**Author:** [@DanielVandH](https://discourse.julialang.org/u/DanielVandH)\
**Replies:** 6\
**Last updated:** [July 26, 2022, 8:22pm UTC](https://discourse.julialang.org/t/approxfun-and-burgers-equation/84660 "2022-07-26T20:22:11Z")

</div>

I am trying to use ApproxFun to solve Burgers’ equation, u\_t + uu\_x = \\mu u\_{xx}, on the interval -L \\leq x \\leq L with initial condition u(x, 0) = f(x) = 1/(1+x^2) and boundary conditions u(\\pm L, t) = 0. I was trying t…

---

## ['MultiVector' not updating in a loop](https://discourse.julialang.org/t/multivector-not-updating-in-a-loop/84410)

<div class="topic-metadata">

**Author:** [@fsmith001](https://discourse.julialang.org/u/fsmith001)\
**Replies:** 14\
**Last updated:** [July 26, 2022, 8:19pm UTC](https://discourse.julialang.org/t/multivector-not-updating-in-a-loop/84410 "2022-07-26T20:19:39Z")

</div>

Hello, I am using a for loop to insert values into a DenseMultiVector, a type that was created in the project I am continuing work on. I start by initializing an undef DenseMultiVector of the correct size, and then loop …

---

## [Custom random sampling kernels](https://discourse.julialang.org/t/custom-random-sampling-kernels/57092)

<div class="topic-metadata">

**Author:** [@simsurace](https://discourse.julialang.org/u/simsurace)\
**Replies:** 16\
**Last updated:** [July 26, 2022, 6:51pm UTC](https://discourse.julialang.org/t/custom-random-sampling-kernels/57092 "2022-07-26T18:51:40Z")

</div>

I’m trying to write custom kernels for random sampling from various distributions. Most needed is a Binomial sampler that runs on the GPU. That functionality seems to be under-developed currently. As a first step I trie…

---

## [Jobs at NERSC](https://discourse.julialang.org/t/jobs-at-nersc/84840)

<div class="topic-metadata">

**Author:** [@jblaschke](https://discourse.julialang.org/u/jblaschke)\
**Replies:** 0\
**Last updated:** [July 26, 2022, 6:23pm UTC](https://discourse.julialang.org/t/jobs-at-nersc/84840 "2022-07-26T18:23:52Z")

</div>

The National Energy Research Scientific Computing Center (NERSC), is hiring postdocs and HPC performance engineers to join our NESAP program. The NERSC Exascale Science Applications Program, NESAP, is a collaborative eff…

---

## [ArgumentError: invalid BigInt: "0E-24" in LibPQ / Decimals](https://discourse.julialang.org/t/argumenterror-invalid-bigint-0e-24-in-libpq-decimals/84790)

<div class="topic-metadata">

**Author:** [@taotree](https://discourse.julialang.org/u/taotree)\
**Replies:** 2\
**Last updated:** [July 26, 2022, 5:19pm UTC](https://discourse.julialang.org/t/argumenterror-invalid-bigint-0e-24-in-libpq-decimals/84790 "2022-07-26T17:19:39Z")

</div>

I’m running a simple SQL select from a table and getting the stacktrace below. I have been using this code for months and today is the first time I’ve seen it so it could be related to me running Pkg.update() recently. F…

---

## [\[ANN\] BokehServer.jl: reactive plotting in Pluto and IJulia](https://discourse.julialang.org/t/ann-bokehserver-jl-reactive-plotting-in-pluto-and-ijulia/84834)

<div class="topic-metadata">

**Author:** [@poldavezac](https://discourse.julialang.org/u/poldavezac)\
**Replies:** 0\
**Last updated:** [July 26, 2022, 4:29pm UTC](https://discourse.julialang.org/t/ann-bokehserver-jl-reactive-plotting-in-pluto-and-ijulia/84834 "2022-07-26T16:29:00Z")

</div>

BokehServer.jl is a new package which uses bokeh for plotting reactively, using Pluto, IJulia or a dedicated HTTP.jl server. There are other plotting libraries, but this one allows updating an existing plot with new dat…

---

## [Pluto package not included in Pluto Package Manager manifest](https://discourse.julialang.org/t/pluto-package-not-included-in-pluto-package-manager-manifest/84832)

<div class="topic-metadata">

**Author:** [@Mark\_Nahabedian](https://discourse.julialang.org/u/Mark_Nahabedian)\
**Replies:** 0\
**Last updated:** [July 26, 2022, 4:21pm UTC](https://discourse.julialang.org/t/pluto-package-not-included-in-pluto-package-manager-manifest/84832 "2022-07-26T16:21:27Z")

</div>

This README page has a link to Binder to view my Pluto notebook. That notebook uses some unregistered packages, so I used Pluto.activate\_notebook\_environment from a Julia REPL to set up its Pluto Package Manager Proje…

---

## [How do I do real-time rendering with CUDA.jl?](https://discourse.julialang.org/t/how-do-i-do-real-time-rendering-with-cuda-jl/84820)

<div class="topic-metadata">

**Author:** [@AeroSoap](https://discourse.julialang.org/u/AeroSoap)\
**Replies:** 5\
**Last updated:** [July 26, 2022, 4:04pm UTC](https://discourse.julialang.org/t/how-do-i-do-real-time-rendering-with-cuda-jl/84820 "2022-07-26T16:04:16Z")

</div>

I’ve spent a couple of hours looking around online and haven’t found a good solution, so I think I’ve put in the effort necessary to justify asking here. How would one easily go about taking something like a CuArray from…

---

## [JuliaHub asking for write access to my GitHub repos](https://discourse.julialang.org/t/juliahub-asking-for-write-access-to-my-github-repos/84825)

<div class="topic-metadata">

**Author:** [@user664303](https://discourse.julialang.org/u/user664303)\
**Replies:** 4\
**Last updated:** [July 26, 2022, 3:35pm UTC](https://discourse.julialang.org/t/juliahub-asking-for-write-access-to-my-github-repos/84825 "2022-07-26T15:35:20Z")

</div>

Hello. This is my first post here. I’m a seasoned MATLAB user, and after trying out julia about 7 years ago, I thought I’d give it another go. I’ve started rewriting in julia some of the many useful utilities I have in M…

---

## [How to scroll through a data set](https://discourse.julialang.org/t/how-to-scroll-through-a-data-set/84803)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 4\
**Last updated:** [July 26, 2022, 3:12pm UTC](https://discourse.julialang.org/t/how-to-scroll-through-a-data-set/84803 "2022-07-26T15:12:13Z")

</div>

How can I view a dataframe in the text mode console and scroll through it? I tried PrettyTables.jl but could not find an option for this.

---

## [How to use ODBC.jl on windows](https://discourse.julialang.org/t/how-to-use-odbc-jl-on-windows/84824)

<div class="topic-metadata">

**Author:** [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Replies:** 0\
**Last updated:** [July 26, 2022, 1:43pm UTC](https://discourse.julialang.org/t/how-to-use-odbc-jl-on-windows/84824 "2022-07-26T13:43:36Z")

</div>

Hi all :slight\_smile: Im trying to connect to an SQLServer. I found the ODBC.jl pkg. Now I’m trying to understand how to use it on windows. Do I need to add drives via ODBC.adddriver? Do I need to add dsn (Data Source…

---

## [“run without debugging” not working in VS Code](https://discourse.julialang.org/t/run-without-debugging-not-working-in-vs-code/84775)

<div class="topic-metadata">

**Author:** [@james3](https://discourse.julialang.org/u/james3)\
**Replies:** 2\
**Last updated:** [July 26, 2022, 1:18pm UTC](https://discourse.julialang.org/t/run-without-debugging-not-working-in-vs-code/84775 "2022-07-26T13:18:28Z")

</div>

I am on Ubuntu 21.10, with Julia 1.7.3, Visual Studio Code 1.69.2, and the julialang extension 1.6.28. I have not used Julia for a few weeks (I had been using VS code for some Fortran development and writing LaTeX docum…

---

## [\[ANN\] Kroki.jl v0.2.0](https://discourse.julialang.org/t/ann-kroki-jl-v0-2-0/84822)

<div class="topic-metadata">

**Author:** [@bauglir](https://discourse.julialang.org/u/bauglir)\
**Replies:** 2\
**Last updated:** [July 26, 2022, 1:13pm UTC](https://discourse.julialang.org/t/ann-kroki-jl-v0-2-0/84822 "2022-07-26T13:13:18Z")

</div>

Just in time to celebrate the second anniversary of its first public appearance at JuliaCon 2020’s poster session, I’m pleased to announce the v0.2.0 release of Kroki.jl. A quick refresher: Kroki.jl is a package that en…

---

## [\[ANN\] Fast SpMv with CompressedSparseBlocks.jl](https://discourse.julialang.org/t/ann-fast-spmv-with-compressedsparseblocks-jl/84680)

<div class="topic-metadata">

**Author:** [@pitsianis](https://discourse.julialang.org/u/pitsianis)\
**Replies:** 9\
**Last updated:** [July 26, 2022, 1:01pm UTC](https://discourse.julialang.org/t/ann-fast-spmv-with-compressedsparseblocks-jl/84680 "2022-07-26T13:01:51Z")

</div>

If you have a computation with an iteration where the time is dominated by a large sparse matrix multiplication, julia\> using LinearAlgebra, SparseArrays, BenchmarkTools julia\> n = 2^22; d = 10; A = sprand(n,n,d/n); x …

---

## [Could not run editor content in a new process](https://discourse.julialang.org/t/could-not-run-editor-content-in-a-new-process/84800)

<div class="topic-metadata">

**Author:** [@mongi](https://discourse.julialang.org/u/mongi)\
**Replies:** 2\
**Last updated:** [July 26, 2022, 10:33am UTC](https://discourse.julialang.org/t/could-not-run-editor-content-in-a-new-process/84800 "2022-07-26T10:33:04Z")

</div>

VScode suddenly stopped running code using ctrl+F5 the usual graph appears but nothing happens: then after I forcefully stop it, i get: I still can run the code using “Julia:Execute active File in REPL” thank …

---

## [Why can't we resize a reinterpreted matrix?](https://discourse.julialang.org/t/why-cant-we-resize-a-reinterpreted-matrix/84780)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 3\
**Last updated:** [July 26, 2022, 10:22am UTC](https://discourse.julialang.org/t/why-cant-we-resize-a-reinterpreted-matrix/84780 "2022-07-26T10:22:06Z")

</div>

We can resize a vector of static arrays: julia\> v = \[ rand(SVector{3,Float64}) for \_ in 1:2 \]; julia\> resize!(v, 3) 3-element Vector{SVector{3, Float64}}: \[0.49021421932808495, 0.04375803657360211, 0.6957281082155673\]…

---

## [Dimension mismatch in Flux with NeuralODE](https://discourse.julialang.org/t/dimension-mismatch-in-flux-with-neuralode/84804)

<div class="topic-metadata">

**Author:** [@WillT](https://discourse.julialang.org/u/WillT)\
**Replies:** 0\
**Last updated:** [July 26, 2022, 9:52am UTC](https://discourse.julialang.org/t/dimension-mismatch-in-flux-with-neuralode/84804 "2022-07-26T09:52:08Z")

</div>

In Flux I’m trying to chain together a NeuralODE and some other layers. When I evaluate the network and the a loss function, it works ok. But when I try to calculate the gradients of the loss w.r.t. the params there is a…

---

## [ToroMicroVM](https://discourse.julialang.org/t/toromicrovm/84734)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 1\
**Last updated:** [July 26, 2022, 9:18am UTC](https://discourse.julialang.org/t/toromicrovm/84734 "2022-07-26T09:18:04Z")

</div>

I saw this mentioned in the OpenMPI mailing list. It sounds pretty interesting. Is there any relevance to Julia?

---

## [How to hcat a vector of vectors to produce a matrix with a specified eltype?](https://discourse.julialang.org/t/how-to-hcat-a-vector-of-vectors-to-produce-a-matrix-with-a-specified-eltype/84738)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 9\
**Last updated:** [July 26, 2022, 8:50am UTC](https://discourse.julialang.org/t/how-to-hcat-a-vector-of-vectors-to-produce-a-matrix-with-a-specified-eltype/84738 "2022-07-26T08:50:55Z")

</div>

What I want is basically an equivalent of julia\> A = \[1:4, 5:8\] 2-element Vector{UnitRange{Int64}}: 1:4 5:8 julia\> Base.typed\_hcat(Float64, A...) 4×2 Matrix{Float64}: 1.0 5.0 2.0 6.0 3.0 7.0 4.0 8.0 except w…

---

## [Julia download on MacBook Pro with M1 Pro](https://discourse.julialang.org/t/julia-download-on-macbook-pro-with-m1-pro/84787)

<div class="topic-metadata">

**Author:** [@math\_opt](https://discourse.julialang.org/u/math_opt)\
**Replies:** 8\
**Last updated:** [July 26, 2022, 7:33am UTC](https://discourse.julialang.org/t/julia-download-on-macbook-pro-with-m1-pro/84787 "2022-07-26T07:33:28Z")

</div>

What version of Julia listed here should I download? Are there any issues I should expect with version available for Intel processor? I see the following relevant options: current stable release v1.7.3 for macOS x86 …

---

## [BSON: Loading package artifacts that are typed by package itself](https://discourse.julialang.org/t/bson-loading-package-artifacts-that-are-typed-by-package-itself/84791)

<div class="topic-metadata">

**Author:** [@pat-alt](https://discourse.julialang.org/u/pat-alt)\
**Replies:** 2\
**Last updated:** [July 26, 2022, 6:47am UTC](https://discourse.julialang.org/t/bson-loading-package-artifacts-that-are-typed-by-package-itself/84791 "2022-07-26T06:47:56Z")

</div>

… struggling to even phrase that title properly, so I’m probably doing something silly :frowning: I’m relying on BSON to store some objects created and typed by my own package MyPkg as artifacts: BSON.@save path some\_ob…

---

## [LinearAlgebra Package / stdlib Question on rhs variables](https://discourse.julialang.org/t/linearalgebra-package-stdlib-question-on-rhs-variables/84792)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 1\
**Last updated:** [July 26, 2022, 6:18am UTC](https://discourse.julialang.org/t/linearalgebra-package-stdlib-question-on-rhs-variables/84792 "2022-07-26T06:18:07Z")

</div>

Hi all, I want to know whether with Julia we can use the right hand side as variables (b1, b2, b3) and it can still be calculated as its variables multiplication after doing the elementary row operations on the matrix? …

---

## [Why are scalars iterable when broadcasting would still work fine if they weren't?](https://discourse.julialang.org/t/why-are-scalars-iterable-when-broadcasting-would-still-work-fine-if-they-werent/84785)

<div class="topic-metadata">

**Author:** [@Jollywatt](https://discourse.julialang.org/u/Jollywatt)\
**Replies:** 2\
**Last updated:** [July 26, 2022, 3:24am UTC](https://discourse.julialang.org/t/why-are-scalars-iterable-when-broadcasting-would-still-work-fine-if-they-werent/84785 "2022-07-26T03:24:11Z")

</div>

This is a soft-question about an aspect of Julia’s design and history. It’s a well-discussed point that scalars are iterable, in the sense that: julia\> 42\[1\], 42\[\], size(42), length(42) (42, 42, (), 1) julia\> collect(…

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

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