# Latest

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

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

**Page:** 1150

---

## [CSV.jl skipto and limit keyword arguments](https://discourse.julialang.org/t/csv-jl-skipto-and-limit-keyword-arguments/74780)

<div class="topic-metadata">

**Author:** [@xinchin](https://discourse.julialang.org/u/xinchin)\
**Replies:** 8\
**Last updated:** [January 18, 2022, 7:39am UTC](https://discourse.julialang.org/t/csv-jl-skipto-and-limit-keyword-arguments/74780 "2022-01-18T07:39:29Z")

</div>

I have another problem with CSV.jl and DataFrames.jl, again I figure out the problem is due to skipto/limit keyword in CSV, since I encounter a problem a day (I haven’t reported all of them but will do it from now on) my…

---

## [Compilation Over Branches](https://discourse.julialang.org/t/compilation-over-branches/74776)

<div class="topic-metadata">

**Author:** [@bjack205](https://discourse.julialang.org/u/bjack205)\
**Replies:** 9\
**Last updated:** [January 18, 2022, 5:27am UTC](https://discourse.julialang.org/t/compilation-over-branches/74776 "2022-01-18T05:27:30Z")

</div>

I have a question on how the compiler internals work. Does the compiler compile all functions that could called in any branch of the code? For example, if I have a function like the following: using StaticArrays functi…

---

## [Help with NonlinearSolve.jl](https://discourse.julialang.org/t/help-with-nonlinearsolve-jl/74735)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 11\
**Last updated:** [January 18, 2022, 4:59am UTC](https://discourse.julialang.org/t/help-with-nonlinearsolve-jl/74735 "2022-01-18T04:59:52Z")

</div>

I am getting a cryptic error when trying to solve this system: using StaticArrays using NonlinearSolve function f!(F, x, \_) F\[1\] = (x\[1\] + 3) \* (x\[2\]^3 - 7) + 18 F\[2\] = sin(x\[2\] \* exp(x\[1\]) - 1) return F en…

---

## [Can I use reverse and Iterators.reverse at the same time?](https://discourse.julialang.org/t/can-i-use-reverse-and-iterators-reverse-at-the-same-time/74778)

<div class="topic-metadata">

**Author:** [@Stephen\_Vavasis](https://discourse.julialang.org/u/Stephen_Vavasis)\
**Replies:** 7\
**Last updated:** [January 18, 2022, 4:31am UTC](https://discourse.julialang.org/t/can-i-use-reverse-and-iterators-reverse-at-the-same-time/74778 "2022-01-18T04:31:05Z")

</div>

Can I have the methods for Base.reverse and Base.iterators.reverse available at the same time under just the name reverse? How? Observe: julia\> methods(reverse) # 10 methods for generic function "reverse": \[1\] revers…

---

## [Autodifferencing and type stability in DifferentialEquations.jl](https://discourse.julialang.org/t/autodifferencing-and-type-stability-in-differentialequations-jl/74773)

<div class="topic-metadata">

**Author:** [@brynn](https://discourse.julialang.org/u/brynn)\
**Replies:** 5\
**Last updated:** [January 18, 2022, 2:03am UTC](https://discourse.julialang.org/t/autodifferencing-and-type-stability-in-differentialequations-jl/74773 "2022-01-18T02:03:40Z")

</div>

I’m working to optimize a solver for a large, stiff, system of differential equations using DifferentialEquations.jl. I’ve been following through the guide on Code Optimization in the documentation, and have been trying …

---

## [macOS M1, Julia 1.6, and swtch\_pri](https://discourse.julialang.org/t/macos-m1-julia-1-6-and-swtch-pri/59826)

<div class="topic-metadata">

**Author:** [@GlenHenshaw](https://discourse.julialang.org/u/GlenHenshaw)\
**Replies:** 1\
**Last updated:** [January 18, 2022, 1:38am UTC](https://discourse.julialang.org/t/macos-m1-julia-1-6-and-swtch-pri/59826 "2022-01-18T01:38:29Z")

</div>

Hi all, Using a MacBook Air M1 and Julia 1.6. I’m running a fairly complex scientific code that does a ton of matrix vector calculations. When I profile it and display the results using PProf, it shows that approximate…

---

## [Adding nonlinear constraints in JuMP without hard-coding](https://discourse.julialang.org/t/adding-nonlinear-constraints-in-jump-without-hard-coding/74626)

<div class="topic-metadata">

**Author:** [@ReinhardMu](https://discourse.julialang.org/u/ReinhardMu)\
**Replies:** 4\
**Last updated:** [January 18, 2022, 1:38am UTC](https://discourse.julialang.org/t/adding-nonlinear-constraints-in-jump-without-hard-coding/74626 "2022-01-18T01:38:28Z")

</div>

Hi, I am trying to do some kind of cutting-plan algorithm in JuMP. I currently have the following example: function generate\_model(ydisc :: Vector{Vector{Float64}}) model = Model(SCIP.Optimizer) @variable(mod…

---

## [Including modules inside blocks vs non-top-level modules](https://discourse.julialang.org/t/including-modules-inside-blocks-vs-non-top-level-modules/74768)

<div class="topic-metadata">

**Author:** [@goerz](https://discourse.julialang.org/u/goerz)\
**Replies:** 4\
**Last updated:** [January 18, 2022, 12:57am UTC](https://discourse.julialang.org/t/including-modules-inside-blocks-vs-non-top-level-modules/74768 "2022-01-18T00:57:13Z")

</div>

Suppose I have a file test.jl mode = "include" if mode == "include" include("mod.jl") test.print\_hello() else mode == "direct" #module # println("HELLO DIRECT") #end end and mod.jl module test …

---

## [Changing the Python vs Julia mindset](https://discourse.julialang.org/t/changing-the-python-vs-julia-mindset/74777)

<div class="topic-metadata">

**Author:** [@CasUpg](https://discourse.julialang.org/u/CasUpg)\
**Replies:** 1\
**Last updated:** [January 18, 2022, 12:39am UTC](https://discourse.julialang.org/t/changing-the-python-vs-julia-mindset/74777 "2022-01-18T00:39:54Z")

</div>

I made a brief Google search for “Python + Julia” and only received “Python vs Julia” results. Because Python requires C++ for performance, it would be odd to find a “Python vs C++” mentality, at least in DS/ML world. Ma…

---

## [Obfuscate Julia module and import it Python](https://discourse.julialang.org/t/obfuscate-julia-module-and-import-it-python/73026)

<div class="topic-metadata">

**Author:** [@Aju](https://discourse.julialang.org/u/Aju)\
**Replies:** 9\
**Last updated:** [January 17, 2022, 11:39pm UTC](https://discourse.julialang.org/t/obfuscate-julia-module-and-import-it-python/73026 "2022-01-17T23:39:06Z")

</div>

Hi everybody, I am intending to write a Julia module or a main function that performs a particular task (connects to a device and performs numerical calculations). I would like to import this Julia module in Python and…

---

## [Bad performance: using structs to find substrings](https://discourse.julialang.org/t/bad-performance-using-structs-to-find-substrings/74177)

<div class="topic-metadata">

**Author:** [@candidaorelmex](https://discourse.julialang.org/u/candidaorelmex)\
**Replies:** 24\
**Last updated:** [January 17, 2022, 10:51pm UTC](https://discourse.julialang.org/t/bad-performance-using-structs-to-find-substrings/74177 "2022-01-17T22:51:44Z")

</div>

Hi everyone, I have the following problem: I have a list of long strings and a list of short strings. My goal: find which short strings are found within which long strings. for this i need to go through all short strin…

---

## [Plotting from within a loop using GR?](https://discourse.julialang.org/t/plotting-from-within-a-loop-using-gr/4435)

<div class="topic-metadata">

**Author:** [@zorp](https://discourse.julialang.org/u/zorp)\
**Replies:** 8\
**Last updated:** [January 17, 2022, 8:23pm UTC](https://discourse.julialang.org/t/plotting-from-within-a-loop-using-gr/4435 "2022-01-17T20:23:25Z")

</div>

The following doesn’t produce any output using Juno and v0.6 of Julia: histogram(randn(10)) for i = 1:10 histogram!(randn(10)) end why is that?

---

## [CBinding error](https://discourse.julialang.org/t/cbinding-error/74688)

<div class="topic-metadata">

**Author:** [@purplishrock](https://discourse.julialang.org/u/purplishrock)\
**Replies:** 11\
**Last updated:** [January 17, 2022, 6:32pm UTC](https://discourse.julialang.org/t/cbinding-error/74688 "2022-01-17T18:32:31Z")

</div>

@c\_str is exported by CBinding but doesn’t appear to want to show up. Also in the examples for CBinding (all of the examples) there something like: using assimp\_jll but that means i have to generate assimp\_jll, and th…

---

## [Design gear train with specific ratio with a set of fixed gears](https://discourse.julialang.org/t/design-gear-train-with-specific-ratio-with-a-set-of-fixed-gears/74675)

<div class="topic-metadata">

**Author:** [@pepijndevos](https://discourse.julialang.org/u/pepijndevos)\
**Replies:** 7\
**Last updated:** [January 16, 2022, 10:35pm UTC](https://discourse.julialang.org/t/design-gear-train-with-specific-ratio-with-a-set-of-fixed-gears/74675 "2022-01-16T22:35:30Z")

</div>

I want to make a gear train out of lego gears that needs a specific gear ratio. So let’s say I want a gear train with a ratio of 45/28 or whatever, and I have gears with \[8, 12, 16, 20, 24, 36, 40\] teeth. What combinatio…

---

## [Can't get seekend working on a manually updated csv file](https://discourse.julialang.org/t/cant-get-seekend-working-on-a-manually-updated-csv-file/74681)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 2\
**Last updated:** [January 17, 2022, 4:45pm UTC](https://discourse.julialang.org/t/cant-get-seekend-working-on-a-manually-updated-csv-file/74681 "2022-01-17T16:45:22Z")

</div>

Trying my first julia program and it’s not working. I want to add a line to an existing csv file and have julia monitor the file for any changes and print out the change. So I am seeking the current end of the file and …

---

## [NeuralPDE.jl: how to use random noise as the initial condition](https://discourse.julialang.org/t/neuralpde-jl-how-to-use-random-noise-as-the-initial-condition/74723)

<div class="topic-metadata">

**Author:** [@ash](https://discourse.julialang.org/u/ash)\
**Replies:** 3\
**Last updated:** [January 17, 2022, 5:22pm UTC](https://discourse.julialang.org/t/neuralpde-jl-how-to-use-random-noise-as-the-initial-condition/74723 "2022-01-17T17:22:26Z")

</div>

I am trying to solve the same model discussed in this question using a PINN approach. Frankenstining together some code based on the examples in the documentation, I ended up with the following: using NeuralPDE, Flux, …

---

## [How to share a module between several modules](https://discourse.julialang.org/t/how-to-share-a-module-between-several-modules/74645)

<div class="topic-metadata">

**Author:** [@serhii](https://discourse.julialang.org/u/serhii)\
**Replies:** 12\
**Last updated:** [January 17, 2022, 4:56pm UTC](https://discourse.julialang.org/t/how-to-share-a-module-between-several-modules/74645 "2022-01-17T16:56:53Z")

</div>

Hi, Sorry for the noob question. I have a utility module that I would like to share between two other modules. As far as I understand, simply using include("whatever/path/UtilityModule.jl") followed by using .UtilityMod…

---

## [ReadOnlyMemory Error in VS Code](https://discourse.julialang.org/t/readonlymemory-error-in-vs-code/74737)

<div class="topic-metadata">

**Author:** [@vikram-s-narayan](https://discourse.julialang.org/u/vikram-s-narayan)\
**Replies:** 0\
**Last updated:** [January 17, 2022, 7:26am UTC](https://discourse.julialang.org/t/readonlymemory-error-in-vs-code/74737 "2022-01-17T07:26:29Z")

</div>

I’m on a MacBook Air (M1, 2020). If I run the following code in VS Code, I get an error ("ERROR: LoadError: ReadOnlyMemoryError()). But if I run it in a standalone REPL opened in a terminal, I don’t get the error. An…

---

## [The at sign (@)](https://discourse.julialang.org/t/the-at-sign/74755)

<div class="topic-metadata">

**Author:** [@das](https://discourse.julialang.org/u/das)\
**Replies:** 3\
**Last updated:** [January 17, 2022, 2:40pm UTC](https://discourse.julialang.org/t/the-at-sign/74755 "2022-01-17T14:40:24Z")

</div>

In a number of examples involving GTK (perhaps especially using GtkReactive) the code shows things like @Window or @Frame. Is the @ required or just used by the programmer to make some kind of differentiation?

---

## [Package update / Unsatisfiable requirements](https://discourse.julialang.org/t/package-update-unsatisfiable-requirements/74745)

<div class="topic-metadata">

**Author:** [@Bardo](https://discourse.julialang.org/u/Bardo)\
**Replies:** 1\
**Last updated:** [January 17, 2022, 1:46pm UTC](https://discourse.julialang.org/t/package-update-unsatisfiable-requirements/74745 "2022-01-17T13:46:48Z")

</div>

I had an issue with Symbolics.jl and raised an issue. Turned out that Pkg.update() did not fetch the latest version, without further warning. julia\> Pkg.add(PackageSpec(name="Symbolics", version="4.3.0")) ... ERROR: Un…

---

## [Image in julia code comments or doc](https://discourse.julialang.org/t/image-in-julia-code-comments-or-doc/74090)

<div class="topic-metadata">

**Author:** [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Replies:** 11\
**Last updated:** [January 17, 2022, 1:10pm UTC](https://discourse.julialang.org/t/image-in-julia-code-comments-or-doc/74090 "2022-01-17T13:10:07Z")

</div>

hi, I guess it is a silly idea but I often wish to insert small images (typically scan of manually drawn sketches) to better explain part of my codes. Ideally these images could be displayed by the editor (VSCode) or ev…

---

## [Plots - reset color cycle](https://discourse.julialang.org/t/plots-reset-color-cycle/74751)

<div class="topic-metadata">

**Author:** [@cripcate](https://discourse.julialang.org/u/cripcate)\
**Replies:** 7\
**Last updated:** [January 17, 2022, 12:41pm UTC](https://discourse.julialang.org/t/plots-reset-color-cycle/74751 "2022-01-17T12:41:17Z")

</div>

Hi there. I have a plot with two different series (a scatterline and a fillrange). I want the fillrange (representing error) to be of the same color as the line. Here is my code: using DataFrames, Plots, Random Random.…

---

## [\[ANN\] Eyeball.jl: An interactive object viewer](https://discourse.julialang.org/t/ann-eyeball-jl-an-interactive-object-viewer/74027)

<div class="topic-metadata">

**Author:** [@tshort](https://discourse.julialang.org/u/tshort)\
**Replies:** 5\
**Last updated:** [January 17, 2022, 12:53pm UTC](https://discourse.julialang.org/t/ann-eyeball-jl-an-interactive-object-viewer/74027 "2022-01-17T12:53:04Z")

</div>

https://github.com/tshort/Eyeball.jl This was a fun hack over the holidays. This provides eye for interactively viewing objects in the REPL. Use it when you might use dump or varinfo. Browse modules, type trees, express…

---

## [BenchmarkTools.jl alternative for Python?](https://discourse.julialang.org/t/benchmarktools-jl-alternative-for-python/74754)

<div class="topic-metadata">

**Author:** [@NightMachinary](https://discourse.julialang.org/u/NightMachinary)\
**Replies:** 3\
**Last updated:** [January 17, 2022, 12:08pm UTC](https://discourse.julialang.org/t/benchmarktools-jl-alternative-for-python/74754 "2022-01-17T12:08:53Z")

</div>

I need to benchmark some algorithms in Python, and I can’t find anything that runs some code multiple times and reports its time and peak memory usage.

---

## [Should Documenter be part of Project.toml?](https://discourse.julialang.org/t/should-documenter-be-part-of-project-toml/73692)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 3\
**Last updated:** [January 17, 2022, 11:48am UTC](https://discourse.julialang.org/t/should-documenter-be-part-of-project-toml/73692 "2022-01-17T11:48:04Z")

</div>

I have a main Project.toml, and a second one in the folder docs. I removed Documenter from the main Project.toml, but now I cannot build any longer the documentation locally, even though the Project.toml in the docs fol…

---

## [Runtime (memory) on M1 Macbooks: something is not right](https://discourse.julialang.org/t/runtime-memory-on-m1-macbooks-something-is-not-right/74721)

<div class="topic-metadata">

**Author:** [@Schneeschaufel](https://discourse.julialang.org/u/Schneeschaufel)\
**Replies:** 10\
**Last updated:** [January 17, 2022, 11:38am UTC](https://discourse.julialang.org/t/runtime-memory-on-m1-macbooks-something-is-not-right/74721 "2022-01-17T11:38:05Z")

</div>

The following link: Trying to understand memory usage If I do this (see link above) on my Macbook 13" with M1 processor and 8GB RAM and SSD (Julia Rosetta Version 1.7.1 (2021-12-22)): julia\> using LinearAlgebra julia\> …

---

## [Why isn't Julia written in julia?](https://discourse.julialang.org/t/why-isnt-julia-written-in-julia/74748)

<div class="topic-metadata">

**Author:** [@matic\_lauko](https://discourse.julialang.org/u/matic_lauko)\
**Replies:** 2\
**Last updated:** [January 17, 2022, 11:11am UTC](https://discourse.julialang.org/t/why-isnt-julia-written-in-julia/74748 "2022-01-17T11:11:07Z")

</div>

I have seen many other languages, like Rust or Go. I’m no expert, far from that. But, wouldn’t it be useful if it could be optimized for its use case, to work as efficiently as possible. What am I missing? Thank you!

---

## [Encapsulation and Interface-like implementations in Julia](https://discourse.julialang.org/t/encapsulation-and-interface-like-implementations-in-julia/74616)

<div class="topic-metadata">

**Author:** [@MAJegh](https://discourse.julialang.org/u/MAJegh)\
**Replies:** 2\
**Last updated:** [January 17, 2022, 8:56am UTC](https://discourse.julialang.org/t/encapsulation-and-interface-like-implementations-in-julia/74616 "2022-01-17T08:56:59Z")

</div>

My general question would be : Is there a way to organize code in Julia to improve maintainability/extensibility and make contributions to a project easier? any resources on the matter are welcome. More specifically, in…

---

## [Easiest way to delete indices from Vector{Vector{}}](https://discourse.julialang.org/t/easiest-way-to-delete-indices-from-vector-vector/74734)

<div class="topic-metadata">

**Author:** [@yewalenikhil65](https://discourse.julialang.org/u/yewalenikhil65)\
**Replies:** 5\
**Last updated:** [January 17, 2022, 8:43am UTC](https://discourse.julialang.org/t/easiest-way-to-delete-indices-from-vector-vector/74734 "2022-01-17T08:43:42Z")

</div>

How to i obtain following Input: indices to delete ind = \[2,4\] Vector of Vector a = \[ \[1.0,2,3,4,6,2\], \[10.0, 13, 4, 5, 2, 8\] \] Expected Output as below 2-element Vector{Vector{Float64}}: \[1.0, 3.0, 6.0, 2.0\] …

---

## [Filter Dict()](https://discourse.julialang.org/t/filter-dict/22882)

<div class="topic-metadata">

**Author:** [@yan25y](https://discourse.julialang.org/u/yan25y)\
**Replies:** 3\
**Last updated:** [August 24, 2021, 10:46am UTC](https://discourse.julialang.org/t/filter-dict/22882 "2021-08-24T10:46:38Z")

</div>

I have a very basic question. When I was looking up how to filter values in Dict(), I came across this documentation What does p represent, and what do last(p) and first(p) mean?

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

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