# Latest

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

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

**Page:** 330

---

## [Difference between m = function(m) and function!(m) where m is a JuMP Model instance](https://discourse.julialang.org/t/difference-between-m-function-m-and-function-m-where-m-is-a-jump-model-instance/118831)

<div class="topic-metadata">

**Author:** [@Betristor](https://discourse.julialang.org/u/Betristor)\
**Replies:** 10\
**Last updated:** [September 2, 2024, 11:59pm UTC](https://discourse.julialang.org/t/difference-between-m-function-m-and-function-m-where-m-is-a-jump-model-instance/118831 "2024-09-02T23:59:04Z")

</div>

I’ve read the performance tips about building models using juMP and it suggests to use exclamatory mark instead of return value. Is there any performance difference between these two ways in terms of memory usage?

---

## [Assigning result of @load to a variable](https://discourse.julialang.org/t/assigning-result-of-load-to-a-variable/118827)

<div class="topic-metadata">

**Author:** [@julien-arino](https://discourse.julialang.org/u/julien-arino)\
**Replies:** 5\
**Last updated:** [September 2, 2024, 11:22pm UTC](https://discourse.julialang.org/t/assigning-result-of-load-to-a-variable/118827 "2024-09-02T23:22:50Z")

</div>

Sorry, I am quite new to julia… From looking around, this may be linked to serialization, but I am not sure. In R, I would do (sorry to the R purists, I am one of these “=” \<=\> “\<-” people): a = 2 saveRDS(a, "example.Rd…

---

## [Literate scripts within Documenter cause LiveServer loop](https://discourse.julialang.org/t/literate-scripts-within-documenter-cause-liveserver-loop/63319)

<div class="topic-metadata">

**Author:** [@cadojo](https://discourse.julialang.org/u/cadojo)\
**Replies:** 1\
**Last updated:** [September 2, 2024, 11:18pm UTC](https://discourse.julialang.org/t/literate-scripts-within-documenter-cause-liveserver-loop/63319 "2024-09-02T23:18:34Z")

</div>

I’m trying to use Literate.markdown to generate pages for Documenter. The repo is here. I’m using the make.jl code below. using Documenter using Literate for file ∈ \["Chapter 1: Dynamics.jl"\] Literate.markdown( …

---

## [Understanding data movement with Distributed.jl](https://discourse.julialang.org/t/understanding-data-movement-with-distributed-jl/100680)

<div class="topic-metadata">

**Author:** [@lmtzx9h4qqnt](https://discourse.julialang.org/u/lmtzx9h4qqnt)\
**Replies:** 1\
**Last updated:** [September 2, 2024, 11:00pm UTC](https://discourse.julialang.org/t/understanding-data-movement-with-distributed-jl/100680 "2024-09-02T23:00:02Z")

</div>

As outlined in the manual, Multi-processing and Distributed Computing · The Julia Language, Distributed.jl performs “implicit” data movement operations between the different processes. Unfortunately, that page doesn’t re…

---

## [Subplots woes with plotlyjs backend](https://discourse.julialang.org/t/subplots-woes-with-plotlyjs-backend/19390)

<div class="topic-metadata">

**Author:** [@ohsonice](https://discourse.julialang.org/u/ohsonice)\
**Replies:** 2\
**Last updated:** [September 2, 2024, 9:49pm UTC](https://discourse.julialang.org/t/subplots-woes-with-plotlyjs-backend/19390 "2024-09-02T21:49:34Z")

</div>

I’m encountering unexpected behavior when attempting to plot subplots with the plotlyjs backend. Minimal example: using Plots plotlyjs() plot(rand(100,4),layout=4) The output produced is below. The first plot is huge a…

---

## [Join me for a mini review of signal analysis tools for physiology and open science](https://discourse.julialang.org/t/join-me-for-a-mini-review-of-signal-analysis-tools-for-physiology-and-open-science/115344)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 9\
**Last updated:** [September 2, 2024, 9:48pm UTC](https://discourse.julialang.org/t/join-me-for-a-mini-review-of-signal-analysis-tools-for-physiology-and-open-science/115344 "2024-09-02T21:48:37Z")

</div>

Hi there, Following a review of our paper for ComplexityMeasures.jl, I’ve been invited to contribute to the issue: because I am swamped with work, I decided to contribute a mini review focusing on Julia-based tools f…

---

## [Is there a way to enable non-interactive scope behaviors in REPL?](https://discourse.julialang.org/t/is-there-a-way-to-enable-non-interactive-scope-behaviors-in-repl/118916)

<div class="topic-metadata">

**Author:** [@purpletree](https://discourse.julialang.org/u/purpletree)\
**Replies:** 13\
**Last updated:** [September 2, 2024, 9:31pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-enable-non-interactive-scope-behaviors-in-repl/118916 "2024-09-02T21:31:43Z")

</div>

I am going to be creating my first project in Julia by writing and debugging in interactive sessions, but once I have it working the final code will run non-interactively on a HPC cluster. I have learned the basics of J…

---

## [How to work with JuMP and Graphs.jl](https://discourse.julialang.org/t/how-to-work-with-jump-and-graphs-jl/118948)

<div class="topic-metadata">

**Author:** [@mike\_k](https://discourse.julialang.org/u/mike_k)\
**Replies:** 2\
**Last updated:** [September 2, 2024, 9:33pm UTC](https://discourse.julialang.org/t/how-to-work-with-jump-and-graphs-jl/118948 "2024-09-02T21:33:46Z")

</div>

I try to build a flow model using JuMP and (Meta)Graphs.jl. In particular I fail to index the variables. Here is an MWE: using Graphs using JuMP g = SimpleDiGraph(4) for i in 1:3 add\_edge!(g, i, i+1) end model = M…

---

## [Fail to install x265](https://discourse.julialang.org/t/fail-to-install-x265/118478)

<div class="topic-metadata">

**Author:** [@Yongdai](https://discourse.julialang.org/u/Yongdai)\
**Replies:** 4\
**Last updated:** [September 2, 2024, 7:58pm UTC](https://discourse.julialang.org/t/fail-to-install-x265/118478 "2024-09-02T19:58:38Z")

</div>

I’m new to Julia and setting up environment. I installed following packages already. (@v1.10) pkg\> status Status C:\\Users\\Administrator\\.julia\\environments\\v1.10\\Project.toml \[324d7699\] CategoricalArrays v0.10.8 \[8b…

---

## [No method matching iterate(::Shapefile.Polygon)](https://discourse.julialang.org/t/no-method-matching-iterate-shapefile-polygon/118959)

<div class="topic-metadata">

**Author:** [@schwob](https://discourse.julialang.org/u/schwob)\
**Replies:** 0\
**Last updated:** [September 2, 2024, 7:50pm UTC](https://discourse.julialang.org/t/no-method-matching-iterate-shapefile-polygon/118959 "2024-09-02T19:50:27Z")

</div>

I want to know if a lat/long coordinate is inside a specified set of US states. I downloaded a shapefile for the US states from the Census Bureau. Suppose my coordinate is (38.4511,-80.5194), and I want to know if this c…

---

## [Makie - What could be holding references to plots after I empty! an axis?](https://discourse.julialang.org/t/makie-what-could-be-holding-references-to-plots-after-i-empty-an-axis/118913)

<div class="topic-metadata">

**Author:** [@AMB](https://discourse.julialang.org/u/AMB)\
**Replies:** 3\
**Last updated:** [September 2, 2024, 7:32pm UTC](https://discourse.julialang.org/t/makie-what-could-be-holding-references-to-plots-after-i-empty-an-axis/118913 "2024-09-02T19:32:03Z")

</div>

Hi all! I am using GeoMakie and GeoAxis, in case that makes any difference. My application creates a series of visualizations on the GeoAxis, one at a time. When the user indicates that they want the next visualization…

---

## [LaTeX in HTML string in Pluto](https://discourse.julialang.org/t/latex-in-html-string-in-pluto/64571)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 1\
**Last updated:** [September 2, 2024, 5:36pm UTC](https://discourse.julialang.org/t/latex-in-html-string-in-pluto/64571 "2024-09-02T17:36:18Z")

</div>

I’ve been trying to run a snippet from a notebook that was built with an older version of Pluto in the latest release and my LaTeX isn’t rendering. Here’s the code cell: html""" \<table class="no-border"\> \<tbody\> \<tr\> \<t…

---

## [Detecting problems with numerically challenging models](https://discourse.julialang.org/t/detecting-problems-with-numerically-challenging-models/118592)

<div class="topic-metadata">

**Author:** [@sstroemer](https://discourse.julialang.org/u/sstroemer)\
**Replies:** 4\
**Last updated:** [September 2, 2024, 4:28pm UTC](https://discourse.julialang.org/t/detecting-problems-with-numerically-challenging-models/118592 "2024-09-02T16:28:47Z")

</div>

Consider loading and solving a model using using JuMP import Gurobi mwe = read\_from\_file("mwe.mps"; format = MOI.FileFormats.FORMAT\_MPS) set\_optimizer(mwe, Gurobi.Optimizer) set\_attribute(mwe, "Method", 2) set\_attribut…

---

## [Endian in C++20 vs Julia; and byteswap in C++23](https://discourse.julialang.org/t/endian-in-c-20-vs-julia-and-byteswap-in-c-23/118858)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 5\
**Last updated:** [September 2, 2024, 3:57pm UTC](https://discourse.julialang.org/t/endian-in-c-20-vs-julia-and-byteswap-in-c-23/118858 "2024-09-02T15:57:58Z")

</div>

If you never use reinterpret, directly (or indirectly), I think this is a non-issue in Julia, but otherwise it could affect correctness of possibly of all Julia programs. I wish we could simply assume little endian (we …

---

## [Reading files embedded in a Zip-file](https://discourse.julialang.org/t/reading-files-embedded-in-a-zip-file/10675)

<div class="topic-metadata">

**Author:** [@johann.spies](https://discourse.julialang.org/u/johann.spies)\
**Replies:** 10\
**Last updated:** [September 2, 2024, 3:46pm UTC](https://discourse.julialang.org/t/reading-files-embedded-in-a-zip-file/10675 "2024-09-02T15:46:47Z")

</div>

I am exploring InfoZIP. Variable “fn” contains the filename. julia\> d = open\_zip(fn) julia\> d.keys 6-element Array{AbstractString,1}: "WR\_2004\_20180215203106\_CORE\_0001.xml.gz" "WR\_2004\_20180215203106\_CORE\_0002.xml.g…

---

## [Extending broadcast to vector-like struct](https://discourse.julialang.org/t/extending-broadcast-to-vector-like-struct/118905)

<div class="topic-metadata">

**Author:** [@Goncalo\_Pena](https://discourse.julialang.org/u/Goncalo_Pena)\
**Replies:** 8\
**Last updated:** [September 2, 2024, 2:29pm UTC](https://discourse.julialang.org/t/extending-broadcast-to-vector-like-struct/118905 "2024-09-02T14:29:04Z")

</div>

Hi, I’m trying to implement a vector-like struct and I would like for it to behave wrt broadcasting, just as a regular vector. My struct is something like: struct NewVector values::Vector{Float64} text::String…

---

## [Type stable specializations of \`getproperty\` without code duplication?](https://discourse.julialang.org/t/type-stable-specializations-of-getproperty-without-code-duplication/92404)

<div class="topic-metadata">

**Author:** [@jlchan](https://discourse.julialang.org/u/jlchan)\
**Replies:** 20\
**Last updated:** [September 2, 2024, 2:12pm UTC](https://discourse.julialang.org/t/type-stable-specializations-of-getproperty-without-code-duplication/92404 "2024-09-02T14:12:56Z")

</div>

I have a parametric type that I’m trying to specialize getproperty for. There are some properties which I’d like to always access independently of the type parameter, and there are some that only apply to specific type p…

---

## [Does this still crash on new Julia versions?](https://discourse.julialang.org/t/does-this-still-crash-on-new-julia-versions/118945)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 4\
**Last updated:** [September 2, 2024, 2:11pm UTC](https://discourse.julialang.org/t/does-this-still-crash-on-new-julia-versions/118945 "2024-09-02T14:11:39Z")

</div>

\#GC.enable(false) a = \[1,2,3,4,5\] b = \[Ptr{Int64}(i) for i in a\] #a = nothing c = Base.unsafe\_convert(Ptr{Ref{Int}},b) d = unsafe\_wrap(Array,c,5) #Even with GC disabled, the crash still exists. It asked me to file a bu…

---

## [Makie: swapping plots, un-hiding decorations, loading existing plot objects into axes](https://discourse.julialang.org/t/makie-swapping-plots-un-hiding-decorations-loading-existing-plot-objects-into-axes/118922)

<div class="topic-metadata">

**Author:** [@oscarvdvelde](https://discourse.julialang.org/u/oscarvdvelde)\
**Replies:** 3\
**Last updated:** [September 2, 2024, 1:55pm UTC](https://discourse.julialang.org/t/makie-swapping-plots-un-hiding-decorations-loading-existing-plot-objects-into-axes/118922 "2024-09-02T13:55:08Z")

</div>

I am making a toggle (or later, a menu) that swaps a subplot for a totally different plot in the same space e.g. fig\[1:2, 3:4\]. Say I predefine two Axes objects, ax2a and ax2b with their x and y tick properties and labe…

---

## [Bits and bytes manipulation library](https://discourse.julialang.org/t/bits-and-bytes-manipulation-library/118843)

<div class="topic-metadata">

**Author:** [@sivakon](https://discourse.julialang.org/u/sivakon)\
**Replies:** 12\
**Last updated:** [September 2, 2024, 1:39pm UTC](https://discourse.julialang.org/t/bits-and-bytes-manipulation-library/118843 "2024-09-02T13:39:33Z")

</div>

Are there any available packages in Julia ecosystem for byte level data manipulation? Similar packages are scodec from Scala - GitHub - scodec/scodec: Scala combinator library for working with binary data Elixir has Bi…

---

## [How to implement the julia code on web](https://discourse.julialang.org/t/how-to-implement-the-julia-code-on-web/118947)

<div class="topic-metadata">

**Author:** [@fasihullahsaleem](https://discourse.julialang.org/u/fasihullahsaleem)\
**Replies:** 1\
**Last updated:** [September 2, 2024, 1:17pm UTC](https://discourse.julialang.org/t/how-to-implement-the-julia-code-on-web/118947 "2024-09-02T13:17:37Z")

</div>

Hello Everyone, I have created a julia code that take some input as form of json file and gave me output in dictionary. I want to deploy it on the website. I want to know the exact process of how to implement it on the …

---

## [Geocoding in Julia? (getting latitude and longitude from addresses)](https://discourse.julialang.org/t/geocoding-in-julia-getting-latitude-and-longitude-from-addresses/118814)

<div class="topic-metadata">

**Author:** [@indymnv](https://discourse.julialang.org/u/indymnv)\
**Replies:** 5\
**Last updated:** [September 2, 2024, 1:10pm UTC](https://discourse.julialang.org/t/geocoding-in-julia-getting-latitude-and-longitude-from-addresses/118814 "2024-09-02T13:10:34Z")

</div>

I have a dataframe with several addresses and I want to extract the latitude and longitude potentially using OpenStreetMap, is there a package that help with that?

---

## [Changing the interval of the axis in plots.jl](https://discourse.julialang.org/t/changing-the-interval-of-the-axis-in-plots-jl/118936)

<div class="topic-metadata">

**Author:** [@raiyan\_rohit](https://discourse.julialang.org/u/raiyan_rohit)\
**Replies:** 1\
**Last updated:** [September 2, 2024, 11:45am UTC](https://discourse.julialang.org/t/changing-the-interval-of-the-axis-in-plots-jl/118936 "2024-09-02T11:45:51Z")

</div>

I was using plots . In the graph the interval between the x axis is 5 unit . i want to have grids with 1 unit . how can I do that . the same goes for y axis . need help

---

## [Help needed getting started with threads!](https://discourse.julialang.org/t/help-needed-getting-started-with-threads/118911)

<div class="topic-metadata">

**Author:** [@TimG](https://discourse.julialang.org/u/TimG)\
**Replies:** 27\
**Last updated:** [September 2, 2024, 11:09am UTC](https://discourse.julialang.org/t/help-needed-getting-started-with-threads/118911 "2024-09-02T11:09:05Z")

</div>

I can’t get threads to work for me despite the sense I’ve picked up here that it should be easy. I have a large number (hundreds) of Excel files to write out. I construct them from a largeish dataset using a simple temp…

---

## [Make HTTP request immediatly but wait for the response async](https://discourse.julialang.org/t/make-http-request-immediatly-but-wait-for-the-response-async/118928)

<div class="topic-metadata">

**Author:** [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Replies:** 1\
**Last updated:** [September 2, 2024, 10:30am UTC](https://discourse.julialang.org/t/make-http-request-immediatly-but-wait-for-the-response-async/118928 "2024-09-02T10:30:19Z")

</div>

I want to make HTTP requests to some server. Such that the following holds: I want data to reach the server as soon as possible. I don’t care much about getting the response from the server quickly. Instead, I want the…

---

## [Curious CSV round-trip problem](https://discourse.julialang.org/t/curious-csv-round-trip-problem/118334)

<div class="topic-metadata">

**Author:** [@TimG](https://discourse.julialang.org/u/TimG)\
**Replies:** 11\
**Last updated:** [September 2, 2024, 10:17am UTC](https://discourse.julialang.org/t/curious-csv-round-trip-problem/118334 "2024-09-02T10:17:01Z")

</div>

(Apologies for a long post. There is a long set-up for this issue!) This website provides data on all the grants to good causes that the National Lottery has made since it began 30 years ago. It is possible to download …

---

## [How does RuntimeGeneratedFunctions.jl work?](https://discourse.julialang.org/t/how-does-runtimegeneratedfunctions-jl-work/112925)

<div class="topic-metadata">

**Author:** [@VPBML](https://discourse.julialang.org/u/VPBML)\
**Replies:** 3\
**Last updated:** [September 2, 2024, 9:53am UTC](https://discourse.julialang.org/t/how-does-runtimegeneratedfunctions-jl-work/112925 "2024-09-02T09:53:34Z")

</div>

Hi, Could you help me by explaining how does RuntimeGeneratedFunctions.jl work, i.e., how it generates functions without world-age issue? I would really appreciate it.

---

## [Truncate a distribution using draws of a random variable as bound](https://discourse.julialang.org/t/truncate-a-distribution-using-draws-of-a-random-variable-as-bound/117683)

<div class="topic-metadata">

**Author:** [@Tobias-Thomas](https://discourse.julialang.org/u/Tobias-Thomas)\
**Replies:** 1\
**Last updated:** [September 2, 2024, 7:52am UTC](https://discourse.julialang.org/t/truncate-a-distribution-using-draws-of-a-random-variable-as-bound/117683 "2024-09-02T07:52:27Z")

</div>

Hi, Is it possible to use the draw of one random variable as the bound for another one? In my example, I have a simple linear relationship with x-values in the interval \[0,1\] and I want to bound the resulting y-value to…

---

## [Creating a lIbrary with PackageCompiler takes ages](https://discourse.julialang.org/t/creating-a-library-with-packagecompiler-takes-ages/118927)

<div class="topic-metadata">

**Author:** [@Theo-L](https://discourse.julialang.org/u/Theo-L)\
**Replies:** 3\
**Last updated:** [September 2, 2024, 6:55am UTC](https://discourse.julialang.org/t/creating-a-library-with-packagecompiler-takes-ages/118927 "2024-09-02T06:55:42Z")

</div>

I’m trying to creating a library for my module using PackageCompiler but it takes forever. At this point the script is already running for 9 hours. Any ideas how I can speed this up? create\_library( package\_or\_proje…

---

## [Type domain (static) integers](https://discourse.julialang.org/t/type-domain-static-integers/118568)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 28\
**Last updated:** [September 2, 2024, 4:41am UTC](https://discourse.julialang.org/t/type-domain-static-integers/118568 "2024-09-02T04:41:37Z")

</div>

I’m trying to get type domain integers into Base: Type domain integers are not a new idea, there was previously an effort by @Zach\_Christensen to get a StaticInt type into Base, and two relevant packages exist, Static…

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

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