# Latest

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

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

**Page:** 868

---

## [Internship positions using Julia?](https://discourse.julialang.org/t/internship-positions-using-julia/88376)

<div class="topic-metadata">

**Author:** [@suavesito](https://discourse.julialang.org/u/suavesito)\
**Replies:** 9\
**Last updated:** [November 11, 2022, 6:59pm UTC](https://discourse.julialang.org/t/internship-positions-using-julia/88376 "2022-11-11T18:59:36Z")

</div>

For a lot of other tech stack (specially Web, TS, JS, Java and Python), there are a lot of internship positions and work offers, but I find it really difficult to find this kind of jobs being targeted or asked about Juli…

---

## [Object-oriented syntax in julia](https://discourse.julialang.org/t/object-oriented-syntax-in-julia/90017)

<div class="topic-metadata">

**Author:** [@linwaytin](https://discourse.julialang.org/u/linwaytin)\
**Replies:** 11\
**Last updated:** [November 11, 2022, 6:43pm UTC](https://discourse.julialang.org/t/object-oriented-syntax-in-julia/90017 "2022-11-11T18:43:05Z")

</div>

I learned and wrote some c++ code recently. Although I’m convinced that the whole system including like inheritance and modifiers (private vs public) is good, I do think the syntax foo.func(...) has some benefits. I kno…

---

## [Datetime difference](https://discourse.julialang.org/t/datetime-difference/90075)

<div class="topic-metadata">

**Author:** [@marllos](https://discourse.julialang.org/u/marllos)\
**Replies:** 4\
**Last updated:** [November 11, 2022, 6:19pm UTC](https://discourse.julialang.org/t/datetime-difference/90075 "2022-11-11T18:19:13Z")

</div>

Hello everyone. I know that for calculations, the difference between two datetimes is useful, when in form of seconds (or another unit). My question is: to get this difference in form of days H:M:S, do I need to write a…

---

## [\[ANN\] TransferMatrix.jl: a general 4 x 4 transfer matrix for optics of multilayer media](https://discourse.julialang.org/t/ann-transfermatrix-jl-a-general-4-x-4-transfer-matrix-for-optics-of-multilayer-media/89797)

<div class="topic-metadata">

**Author:** [@garrek](https://discourse.julialang.org/u/garrek)\
**Replies:** 22\
**Last updated:** [November 11, 2022, 5:51pm UTC](https://discourse.julialang.org/t/ann-transfermatrix-jl-a-general-4-x-4-transfer-matrix-for-optics-of-multilayer-media/89797 "2022-11-11T17:51:51Z")

</div>

I’m announcing my first Julia package, TransferMatrix.jl, a general 4 x 4 transfer matrix implementation in Julia. GitHub repository Documentation Blog post The transfer matrix method propagates an electric field thro…

---

## [\[ANN\] Norg.jl: A Norg file format parser for Julia](https://discourse.julialang.org/t/ann-norg-jl-a-norg-file-format-parser-for-julia/90130)

<div class="topic-metadata">

**Author:** [@klafyvel](https://discourse.julialang.org/u/klafyvel)\
**Replies:** 2\
**Last updated:** [November 11, 2022, 5:37pm UTC](https://discourse.julialang.org/t/ann-norg-jl-a-norg-file-format-parser-for-julia/90130 "2022-11-11T17:37:56Z")

</div>

Hello, Julia discourse, Today, I would like to introduce Norg.jl, a Norg file format parser written in Julia. A few weeks ago, I took an interest in Neorg, a Neovim plugin inspired by Emacs org-mode. Neorg uses the Nor…

---

## [ArchGDAL transforming CRS incorrectly (probably wrong long/lat order)](https://discourse.julialang.org/t/archgdal-transforming-crs-incorrectly-probably-wrong-long-lat-order/90098)

<div class="topic-metadata">

**Author:** [@culebron](https://discourse.julialang.org/u/culebron)\
**Replies:** 9\
**Last updated:** [November 11, 2022, 5:36pm UTC](https://discourse.julialang.org/t/archgdal-transforming-crs-incorrectly-probably-wrong-long-lat-order/90098 "2022-11-11T17:36:59Z")

</div>

Using GeoDataFrames.jl I’m trying to reproject to Google Pseudo-Mercator (EPSG 3857) projection, but get wrong coordinates. In the original GeoJSON, coords are long/lat (see screenshot below): geome…

---

## [How to draw multiple graphs in one big graph using vegalite package?](https://discourse.julialang.org/t/how-to-draw-multiple-graphs-in-one-big-graph-using-vegalite-package/90128)

<div class="topic-metadata">

**Author:** [@akshdfyehd](https://discourse.julialang.org/u/akshdfyehd)\
**Replies:** 0\
**Last updated:** [November 11, 2022, 4:18pm UTC](https://discourse.julialang.org/t/how-to-draw-multiple-graphs-in-one-big-graph-using-vegalite-package/90128 "2022-11-11T16:18:27Z")

</div>

Hi, I got the following datasets: Im trying to produce a graph with x axis be job title, y be salary\_in\_usd and color in different experience level, something like this: I need to do it in vegalite but I didn’t fi…

---

## [Using ccall with pointers in signature](https://discourse.julialang.org/t/using-ccall-with-pointers-in-signature/90124)

<div class="topic-metadata">

**Author:** [@nvenkov1](https://discourse.julialang.org/u/nvenkov1)\
**Replies:** 4\
**Last updated:** [November 11, 2022, 4:15pm UTC](https://discourse.julialang.org/t/using-ccall-with-pointers-in-signature/90124 "2022-11-11T16:15:39Z")

</div>

I have a C function with signature double \*fwht(double \*a, int n). I have compiled the function as part of a shared library and I try to call it with ccall from Julia with ccall((:fwht, "./libmean.so"), Vector{Float64},…

---

## [How to draw three box plot for each job title in each year from 2020,2021,2022(using vegalite)?](https://discourse.julialang.org/t/how-to-draw-three-box-plot-for-each-job-title-in-each-year-from-2020-2021-2022-using-vegalite/90125)

<div class="topic-metadata">

**Author:** [@akshdfyehd](https://discourse.julialang.org/u/akshdfyehd)\
**Replies:** 0\
**Last updated:** [November 11, 2022, 3:42pm UTC](https://discourse.julialang.org/t/how-to-draw-three-box-plot-for-each-job-title-in-each-year-from-2020-2021-2022-using-vegalite/90125 "2022-11-11T15:42:32Z")

</div>

Hi, I have got this dataset: and so far I have draw this: I need to draw three box plot for each job title to represent the different work year from 2020,2021,2022(use vegalite package), can someone please give …

---

## [JuliaUserGroupMunich: Share&Code on PackageCompiler.jl with Kristoffer Carlsson](https://discourse.julialang.org/t/juliausergroupmunich-share-code-on-packagecompiler-jl-with-kristoffer-carlsson/89297)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 3\
**Last updated:** [November 11, 2022, 3:25pm UTC](https://discourse.julialang.org/t/juliausergroupmunich-share-code-on-packagecompiler-jl-with-kristoffer-carlsson/89297 "2022-11-11T15:25:15Z")

</div>

Join us :spiral\_calendar: Monday 07. November 2022 :clock630: 18:30 CET organized via meetup PackageCompiler.jl with Kristoffer Carlsson ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ I am glad to welcome @kristoffer.carlsson as ou…

---

## [Number groups in dataframe](https://discourse.julialang.org/t/number-groups-in-dataframe/90069)

<div class="topic-metadata">

**Author:** [@pascal](https://discourse.julialang.org/u/pascal)\
**Replies:** 7\
**Last updated:** [November 11, 2022, 3:10pm UTC](https://discourse.julialang.org/t/number-groups-in-dataframe/90069 "2022-11-11T15:10:25Z")

</div>

This is probably very each but I just cannot figure it out. Let’s say I have a dataframe df = DataFrame(x = rand(6), g = \["c", "c", "a", "b", "b", "b"\]) 6×2 DataFrame Row │ x g │ Float64 String …

---

## [How to make the jitter by using vegalite package](https://discourse.julialang.org/t/how-to-make-the-jitter-by-using-vegalite-package/90123)

<div class="topic-metadata">

**Author:** [@akshdfyehd](https://discourse.julialang.org/u/akshdfyehd)\
**Replies:** 0\
**Last updated:** [November 11, 2022, 2:47pm UTC](https://discourse.julialang.org/t/how-to-make-the-jitter-by-using-vegalite-package/90123 "2022-11-11T14:47:21Z")

</div>

Hi, I got the following graph for each job title with salary in box plot: so there are some outliers here, presented as dot, I want to make some jitters like this for each job title have outliers: Is there any w…

---

## [Differences in Two DataFrames](https://discourse.julialang.org/t/differences-in-two-dataframes/90068)

<div class="topic-metadata">

**Author:** [@r0b0ty](https://discourse.julialang.org/u/r0b0ty)\
**Replies:** 5\
**Last updated:** [November 11, 2022, 2:34pm UTC](https://discourse.julialang.org/t/differences-in-two-dataframes/90068 "2022-11-11T14:34:21Z")

</div>

Given two DataFrames of different lengths, and different parameter names… julia\> dfA = DataFrame(:Parameter =\> \["size", "weight", "color", "smell"\], :Value =\> \["small", "120", "red", "none"\]) 4×2 DataFrame Row │…

---

## [What is the standard font used by Vegalite.jl?](https://discourse.julialang.org/t/what-is-the-standard-font-used-by-vegalite-jl/31595)

<div class="topic-metadata">

**Author:** [@Usor](https://discourse.julialang.org/u/Usor)\
**Replies:** 13\
**Last updated:** [November 11, 2022, 2:23pm UTC](https://discourse.julialang.org/t/what-is-the-standard-font-used-by-vegalite-jl/31595 "2022-11-11T14:23:14Z")

</div>

What is the standard font used for text in Vegalite.jl? This seemed like the right forum to ask. If wrong, can a moderator move it to the right one? Thanks.

---

## [Flux.jl: Using CuDNN for RNNs](https://discourse.julialang.org/t/flux-jl-using-cudnn-for-rnns/89988)

<div class="topic-metadata">

**Author:** [@gdkrmr](https://discourse.julialang.org/u/gdkrmr)\
**Replies:** 2\
**Last updated:** [November 11, 2022, 1:19pm UTC](https://discourse.julialang.org/t/flux-jl-using-cudnn-for-rnns/89988 "2022-11-11T13:19:41Z")

</div>

I have seen that Flux.jl does not use CuDNN for RNNs. Does this have a specific reason? Going through the issues is really confusing, it seems that support for this was removed because tests would fail. There are also o…

---

## [Getting Error while using lambdify](https://discourse.julialang.org/t/getting-error-while-using-lambdify/89956)

<div class="topic-metadata">

**Author:** [@Starpower\_Power](https://discourse.julialang.org/u/Starpower_Power)\
**Replies:** 4\
**Last updated:** [November 11, 2022, 1:17pm UTC](https://discourse.julialang.org/t/getting-error-while-using-lambdify/89956 "2022-11-11T13:17:05Z")

</div>

---

## [Difficulty using ccall](https://discourse.julialang.org/t/difficulty-using-ccall/90065)

<div class="topic-metadata">

**Author:** [@nvenkov1](https://discourse.julialang.org/u/nvenkov1)\
**Replies:** 11\
**Last updated:** [November 11, 2022, 1:15pm UTC](https://discourse.julialang.org/t/difficulty-using-ccall/90065 "2022-11-11T13:15:30Z")

</div>

I have a shared library file called /home/nxf93431/work/test/julia-gram-schmidt/libmean.so which contains a C function double mean(double a, double b) I try to run in Julia with ccall. I do the following: using Libdl p…

---

## [Longer dashes in dashed lines](https://discourse.julialang.org/t/longer-dashes-in-dashed-lines/90104)

<div class="topic-metadata">

**Author:** [@pascal](https://discourse.julialang.org/u/pascal)\
**Replies:** 2\
**Last updated:** [November 11, 2022, 12:55pm UTC](https://discourse.julialang.org/t/longer-dashes-in-dashed-lines/90104 "2022-11-11T12:55:53Z")

</div>

When plotting dashed lines I can use linestyle=:dash. To my taste the individual dashed are a bit short. Is there something like :longdash in CairoMakie? Or how can I increase the dash length?

---

## [Plots: absolute position of axis endpoints?](https://discourse.julialang.org/t/plots-absolute-position-of-axis-endpoints/90055)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 3\
**Last updated:** [November 11, 2022, 12:28pm UTC](https://discourse.julialang.org/t/plots-absolute-position-of-axis-endpoints/90055 "2022-11-11T12:28:11Z")

</div>

As I understand, the size attribute fixes the physical size of the canvas. (Sorry I don’t know the proper terminology.) But, I wonder how to fix the physical positions of the endpoints of the axes. I’m producing a set …

---

## [Using GPU with NeuralPDE on M1 Mac](https://discourse.julialang.org/t/using-gpu-with-neuralpde-on-m1-mac/90112)

<div class="topic-metadata">

**Author:** [@MilesCB](https://discourse.julialang.org/u/MilesCB)\
**Replies:** 2\
**Last updated:** [November 11, 2022, 10:53am UTC](https://discourse.julialang.org/t/using-gpu-with-neuralpde-on-m1-mac/90112 "2022-11-11T10:53:29Z")

</div>

I’m currently using NeuralPDE.jl to learn the solution to various PDEs. Everything is working well, however I would like to train on GPUs to speed up some of my processing. For building the neural networks I am using Lux…

---

## [Break statement in foldscuda/floops is giving error](https://discourse.julialang.org/t/break-statement-in-foldscuda-floops-is-giving-error/89864)

<div class="topic-metadata">

**Author:** [@nethaji8](https://discourse.julialang.org/u/nethaji8)\
**Replies:** 4\
**Last updated:** [November 11, 2022, 10:23am UTC](https://discourse.julialang.org/t/break-statement-in-foldscuda-floops-is-giving-error/89864 "2022-11-11T10:23:15Z")

</div>

Hi everyone, I am trying to use Floops, and FoldsCuda library as an alternative to OpenACC in Cuda c++, and Fortran in Julia. Consider the following code using Random, CUDA, FLoops, Test, FoldsCUDA function main() …

---

## [Plot: uniform tic marks, numeric labels at every other tic mark](https://discourse.julialang.org/t/plot-uniform-tic-marks-numeric-labels-at-every-other-tic-mark/90052)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 4\
**Last updated:** [November 11, 2022, 10:11am UTC](https://discourse.julialang.org/t/plot-uniform-tic-marks-numeric-labels-at-every-other-tic-mark/90052 "2022-11-11T10:11:45Z")

</div>

As I understand, minor tic marks are shorter than major ones, and major ones have associated numeric labels. Now, what I want to achieve is to have tic marks with an equal length but the numeric labels are placed at eve…

---

## [Parallelizing if loops](https://discourse.julialang.org/t/parallelizing-if-loops/90095)

<div class="topic-metadata">

**Author:** [@iangilan](https://discourse.julialang.org/u/iangilan)\
**Replies:** 6\
**Last updated:** [November 11, 2022, 6:49am UTC](https://discourse.julialang.org/t/parallelizing-if-loops/90095 "2022-11-11T06:49:31Z")

</div>

How could I parallelize the following for loop including if condition? I’d like to use a different thread for each A,B,C and D. for i=1:N if x\[i\]\>0 && y\[i\]\>0 do A elseif x\[i\]\>0 && y\[i\]\<0 do B …

---

## [Error after installing Bayesian inference packages in julia 1.8.2](https://discourse.julialang.org/t/error-after-installing-bayesian-inference-packages-in-julia-1-8-2/90096)

<div class="topic-metadata">

**Author:** [@ak47](https://discourse.julialang.org/u/ak47)\
**Replies:** 0\
**Last updated:** [November 11, 2022, 5:35am UTC](https://discourse.julialang.org/t/error-after-installing-bayesian-inference-packages-in-julia-1-8-2/90096 "2022-11-11T05:35:43Z")

</div>

After installing DiffEqBayes,Turing , DynamicHMC, Stan, ApproxBayes for bayesian inference, I get the following errors in Julia 1.8.2. Here is my code and error \`\`using DifferentialEquations using DiffEqSensitivity us…

---

## [Package dependency tree?](https://discourse.julialang.org/t/package-dependency-tree/90092)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 1\
**Last updated:** [November 11, 2022, 2:58am UTC](https://discourse.julialang.org/t/package-dependency-tree/90092 "2022-11-11T02:58:52Z")

</div>

I was dismayed today to find when adding my own package to a project, a whole bag of other packages were dragged in, including Makie. Which then compiled for minutes… How do I find which package caused this dependency c…

---

## [Union all Types](https://discourse.julialang.org/t/union-all-types/90087)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 2\
**Last updated:** [November 11, 2022, 2:57am UTC](https://discourse.julialang.org/t/union-all-types/90087 "2022-11-11T02:57:35Z")

</div>

Pair{Symbol,Number} Would be a nice short-hand for Pair{Symbol,T} where T\<:Number is there a reason it can’t be written like this? it would be nice to write f(x::Pair{Symbol,Number}) = 1 instead of f(x::Pair{Sym…

---

## [How to import low-level API in MPI.jl](https://discourse.julialang.org/t/how-to-import-low-level-api-in-mpi-jl/90086)

<div class="topic-metadata">

**Author:** [@Neo](https://discourse.julialang.org/u/Neo)\
**Replies:** 5\
**Last updated:** [November 11, 2022, 2:16am UTC](https://discourse.julialang.org/t/how-to-import-low-level-api-in-mpi-jl/90086 "2022-11-11T02:16:15Z")

</div>

I wanted to use one of the low-level APIs MPI.API.MPI\_Reduce\_scatter from MPI.jl. But I failed to import it using using MPI: API or using MPI MPI.API.MPI\_Reduce\_scatter(...) Does anyone know how to use it?

---

## [Kwarg depending on type of another kwarg](https://discourse.julialang.org/t/kwarg-depending-on-type-of-another-kwarg/90035)

<div class="topic-metadata">

**Author:** [@DanielVandH](https://discourse.julialang.org/u/DanielVandH)\
**Replies:** 1\
**Last updated:** [November 10, 2022, 11:38pm UTC](https://discourse.julialang.org/t/kwarg-depending-on-type-of-another-kwarg/90035 "2022-11-10T23:38:24Z")

</div>

I want to define a keyword argument that depends on the type of another keyword argument. For example, function testf(c; a::A = 0.0, b::NTuple{2, Type{A}} = (A, A)) where A end This is not possible, though: julia\> te…

---

## [Misunderstanding of the copy() function](https://discourse.julialang.org/t/misunderstanding-of-the-copy-function/90078)

<div class="topic-metadata">

**Author:** [@Zackyzz](https://discourse.julialang.org/u/Zackyzz)\
**Replies:** 1\
**Last updated:** [November 10, 2022, 10:37pm UTC](https://discourse.julialang.org/t/misunderstanding-of-the-copy-function/90078 "2022-11-10T22:37:26Z")

</div>

Hello! I come from a Lisp background and mostly when I change a parameter inside a function I prefer to have it modified only in that function. Now from what I’ve seen from the bellow code, lst actually gets modified to…

---

## [Launch\_configuration() equivalent for AMDGPU.jl](https://discourse.julialang.org/t/launch-configuration-equivalent-for-amdgpu-jl/85464)

<div class="topic-metadata">

**Author:** [@torrance](https://discourse.julialang.org/u/torrance)\
**Replies:** 4\
**Last updated:** [November 10, 2022, 8:32pm UTC](https://discourse.julialang.org/t/launch-configuration-equivalent-for-amdgpu-jl/85464 "2022-11-10T20:32:18Z")

</div>

CUDA has a great feature for sizing threads and blocks, namely launch\_configuration(). I rarely manually size my kernel, instead something like: kernel = @cuda launch=false myfunc(args...) config = launch\_configuration(…

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

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