# Latest

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

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

**Page:** 1883

---

## [Performance: replace conditional jump by some shift/and/or?](https://discourse.julialang.org/t/performance-replace-conditional-jump-by-some-shift-and-or/30966)

<div class="topic-metadata">

**Author:** [@rryi](https://discourse.julialang.org/u/rryi)\
**Replies:** 10\
**Last updated:** [November 14, 2019, 2:31pm UTC](https://discourse.julialang.org/t/performance-replace-conditional-jump-by-some-shift-and-or/30966 "2019-11-14T14:31:31Z")

</div>

I work on a data type which stores several fields bit-packed into a container c :: Int64. There are two different storage layouts, depending on the most significant bit. A simplified example: if bit63 is 0, my bit-packed…

---

## [How do I know when a new version of a dependency is available?](https://discourse.julialang.org/t/how-do-i-know-when-a-new-version-of-a-dependency-is-available/31083)

<div class="topic-metadata">

**Author:** [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Replies:** 2\
**Last updated:** [November 14, 2019, 2:07pm UTC](https://discourse.julialang.org/t/how-do-i-know-when-a-new-version-of-a-dependency-is-available/31083 "2019-11-14T14:07:42Z")

</div>

I have recently switched to using a comprehensive \[compat\] section in my Project.toml files in order to enable automatic registration (which works great, btw). However, now how do I know which packages get new versions …

---

## [Newbie in stochastic differential equations](https://discourse.julialang.org/t/newbie-in-stochastic-differential-equations/31080)

<div class="topic-metadata">

**Author:** [@Janis\_Erdmanis](https://discourse.julialang.org/u/Janis_Erdmanis)\
**Replies:** 1\
**Last updated:** [November 14, 2019, 1:12pm UTC](https://discourse.julialang.org/t/newbie-in-stochastic-differential-equations/31080 "2019-11-14T13:12:07Z")

</div>

Hello everyone, I am new to stochastic differential equations, and I don’t understand the formalism of g and dW. I need to solve the differential equation system with the noise which enters in multiple equations and the…

---

## [JuliaDB.flatten equivalent in DataFrames](https://discourse.julialang.org/t/juliadb-flatten-equivalent-in-dataframes/31048)

<div class="topic-metadata">

**Author:** [@Dario\_Sarra](https://discourse.julialang.org/u/Dario_Sarra)\
**Replies:** 7\
**Last updated:** [November 14, 2019, 1:01pm UTC](https://discourse.julialang.org/t/juliadb-flatten-equivalent-in-dataframes/31048 "2019-11-14T13:01:28Z")

</div>

Hello, is there a way to produce in DataFrames the same result of JuliaDB.flatten using DataFrames using JuliaDB d1 = DataFrame(cat = \["a","b"\], vec = \[\[1,2\],\[3,4\]\]) t1 = table(d1) t2 = flatten(t1,:vec)…

---

## [Big endian conversion on custom datatypes](https://discourse.julialang.org/t/big-endian-conversion-on-custom-datatypes/31076)

<div class="topic-metadata">

**Author:** [@tamasgal](https://discourse.julialang.org/u/tamasgal)\
**Replies:** 3\
**Last updated:** [November 14, 2019, 10:01am UTC](https://discourse.julialang.org/t/big-endian-conversion-on-custom-datatypes/31076 "2019-11-14T10:01:00Z")

</div>

I have to deal with a couple of “big endian” structures in raw files and want to parse them into Julia structs. Here is an MWE, where I have some data (big endian, coming from the network or from a file), a struct and a…

---

## [Can't get quantiles of the Kolmogorov-Smirnov (KSDist) distribution](https://discourse.julialang.org/t/cant-get-quantiles-of-the-kolmogorov-smirnov-ksdist-distribution/31065)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [November 14, 2019, 4:31am UTC](https://discourse.julialang.org/t/cant-get-quantiles-of-the-kolmogorov-smirnov-ksdist-distribution/31065 "2019-11-14T04:31:59Z")

</div>

I am trying to replicate this table (from the MITx course in “Fundamental of statistics”): I can get the cdf, but not the quantiles. For example, for n=7: julia\> using Distributions julia\> KSd = KSDist(7) KSDist(n=7…

---

## [Encoding group elements and operations](https://discourse.julialang.org/t/encoding-group-elements-and-operations/30193)

<div class="topic-metadata">

**Author:** [@jlapeyre](https://discourse.julialang.org/u/jlapeyre)\
**Replies:** 26\
**Last updated:** [November 14, 2019, 12:28am UTC](https://discourse.julialang.org/t/encoding-group-elements-and-operations/30193 "2019-11-14T00:28:30Z")

</div>

Any ideas on efficient/convenient ways to encode group elements and operations ? In particular, I am interested in reducing strings of elements in a finite group by the group operation. But, I want to use them in other w…

---

## [Different Logging output between Juno Execute and Julia REPL](https://discourse.julialang.org/t/different-logging-output-between-juno-execute-and-julia-repl/30933)

<div class="topic-metadata">

**Author:** [@venuur](https://discourse.julialang.org/u/venuur)\
**Replies:** 14\
**Last updated:** [November 14, 2019, 2:34am UTC](https://discourse.julialang.org/t/different-logging-output-between-juno-execute-and-julia-repl/30933 "2019-11-14T02:34:56Z")

</div>

For some reason @debug messages are appearing when I run a modules function via shift+enter in Juno with Julia 1.2 but not when I run the function directly on the REPL. Here’s the minimal setup: Create new package via…

---

## [Working with U.S. Census Bureau Microdata](https://discourse.julialang.org/t/working-with-u-s-census-bureau-microdata/31014)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 10\
**Last updated:** [November 14, 2019, 1:13am UTC](https://discourse.julialang.org/t/working-with-u-s-census-bureau-microdata/31014 "2019-11-14T01:13:33Z")

</div>

Hello, I’m just plugging a recent video I did on how to work with the American Community Survey public-use microdata files from the U.S. Census Bureau. I show how to download the data from the Census, save to tables to …

---

## [Is this function well optimized for speed?](https://discourse.julialang.org/t/is-this-function-well-optimized-for-speed/31032)

<div class="topic-metadata">

**Author:** [@Ferran\_Mazzanti](https://discourse.julialang.org/u/Ferran_Mazzanti)\
**Replies:** 13\
**Last updated:** [November 13, 2019, 11:29pm UTC](https://discourse.julialang.org/t/is-this-function-well-optimized-for-speed/31032 "2019-11-13T23:29:33Z")

</div>

Hi folks, in my process of building up a neural networks code which I can compare to my colleague’s Python code, I have a simple function that I’m calling over and over again function Log\_Unnorm\_Probs\_B(x, W, Nh) @…

---

## [Mapping using GMT syntax](https://discourse.julialang.org/t/mapping-using-gmt-syntax/31052)

<div class="topic-metadata">

**Author:** [@legante338](https://discourse.julialang.org/u/legante338)\
**Replies:** 1\
**Last updated:** [November 13, 2019, 9:37pm UTC](https://discourse.julialang.org/t/mapping-using-gmt-syntax/31052 "2019-11-13T21:37:15Z")

</div>

How can display earthquake amplification results on DEM (Digital Elevation Map) using GMT4 ?

---

## [PrettyTables.jl now has initial support for HTML output](https://discourse.julialang.org/t/prettytables-jl-now-has-initial-support-for-html-output/30905)

<div class="topic-metadata">

**Author:** [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Replies:** 14\
**Last updated:** [November 13, 2019, 7:24pm UTC](https://discourse.julialang.org/t/prettytables-jl-now-has-initial-support-for-html-output/30905 "2019-11-13T19:24:17Z")

</div>

Hi! I just want to announce that I pushed a set of commits to make PrettyTables.jl support HTML output. I would like to have some feedback and help in testing (I am no HTML expert…). Notice that you will need to use mas…

---

## [Help writing macro which returns an eval expression](https://discourse.julialang.org/t/help-writing-macro-which-returns-an-eval-expression/31046)

<div class="topic-metadata">

**Author:** [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Replies:** 7\
**Last updated:** [November 13, 2019, 6:19pm UTC](https://discourse.julialang.org/t/help-writing-macro-which-returns-an-eval-expression/31046 "2019-11-13T18:19:03Z")

</div>

I have a macro which is expected to return a Core.eval expression, in the line of: macro foreach(f, arr) quote Core.eval(\_\_module\_\_, quote isempty($(esc(arr))) && return "" mapreduce(\*, $(esc(arr)…

---

## [StatsModels not adapted yet?](https://discourse.julialang.org/t/statsmodels-not-adapted-yet/30342)

<div class="topic-metadata">

**Author:** [@Gunter\_Faes](https://discourse.julialang.org/u/Gunter_Faes)\
**Replies:** 13\
**Last updated:** [November 13, 2019, 5:36pm UTC](https://discourse.julialang.org/t/statsmodels-not-adapted-yet/30342 "2019-11-13T17:36:17Z")

</div>

So far I have estimated data (Rotwein / red wine) in the form of a DataFrame in this form a linear model (using GLM): LinReg = lm(@formula(quality ~ alcohol), Rotwein) quality and alcohol are values within the DataFram…

---

## [Julia code with references (Latex style). Can I write a code and a paper in one file?](https://discourse.julialang.org/t/julia-code-with-references-latex-style-can-i-write-a-code-and-a-paper-in-one-file/31015)

<div class="topic-metadata">

**Author:** [@BMval](https://discourse.julialang.org/u/BMval)\
**Replies:** 3\
**Last updated:** [November 13, 2019, 5:06pm UTC](https://discourse.julialang.org/t/julia-code-with-references-latex-style-can-i-write-a-code-and-a-paper-in-one-file/31015 "2019-11-13T17:06:13Z")

</div>

Is it possible to include in the code file reference to papers or other code lines? So can I write code and include a latex command like \\citet \\eq and others. I would be helpful to comment code.

---

## [Understanding assignment without allocation](https://discourse.julialang.org/t/understanding-assignment-without-allocation/30965)

<div class="topic-metadata">

**Author:** [@Rajesh\_Talluri](https://discourse.julialang.org/u/Rajesh_Talluri)\
**Replies:** 14\
**Last updated:** [November 12, 2019, 8:03pm UTC](https://discourse.julialang.org/t/understanding-assignment-without-allocation/30965 "2019-11-12T20:03:24Z")

</div>

I am trying to understand inplace assignment in julia. In the following example I want to update a and b. The following code works, and it updates a and b in place without any allocations. n = 1000 a = ones(n,1) b = on…

---

## [Julia can not start from Atom](https://discourse.julialang.org/t/julia-can-not-start-from-atom/31044)

<div class="topic-metadata">

**Author:** [@Selma\_Mehyaoui](https://discourse.julialang.org/u/Selma_Mehyaoui)\
**Replies:** 2\
**Last updated:** [November 13, 2019, 4:08pm UTC](https://discourse.julialang.org/t/julia-can-not-start-from-atom/31044 "2019-11-13T16:08:13Z")

</div>

Dear julia users, Here is my pb: I want to run Julia from my Atom window, but I face the following error message. What should I do to fix it? Thanks by advance, Selma

---

## [Why StaticArrays are not recommended for large Arrays?](https://discourse.julialang.org/t/why-staticarrays-are-not-recommended-for-large-arrays/31041)

<div class="topic-metadata">

**Author:** [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Replies:** 2\
**Last updated:** [November 13, 2019, 3:46pm UTC](https://discourse.julialang.org/t/why-staticarrays-are-not-recommended-for-large-arrays/31041 "2019-11-13T15:46:21Z")

</div>

There is a warning that one should not use StaticArray for very large arrays: Note that in the current implementation, working with large StaticArray s puts a lot of stress on the compiler, and becomes slower than Ba…

---

## [Directory Path -\> URL Mining; output a Tree](https://discourse.julialang.org/t/directory-path-url-mining-output-a-tree/29775)

<div class="topic-metadata">

**Author:** [@pontus](https://discourse.julialang.org/u/pontus)\
**Replies:** 3\
**Last updated:** [November 13, 2019, 3:42pm UTC](https://discourse.julialang.org/t/directory-path-url-mining-output-a-tree/29775 "2019-11-13T15:42:37Z")

</div>

Asking for help with a particular task (showing an XML Sitemap as an Abstract Tree), and also for direction as to how to approach this topic more broadly. General goal is to learn to work with graphs structures, starting…

---

## [Implement case\_when in Queryverse](https://discourse.julialang.org/t/implement-case-when-in-queryverse/30986)

<div class="topic-metadata">

**Author:** [@pradeip1](https://discourse.julialang.org/u/pradeip1)\
**Replies:** 8\
**Last updated:** [November 13, 2019, 1:30pm UTC](https://discourse.julialang.org/t/implement-case-when-in-queryverse/30986 "2019-11-13T13:30:53Z")

</div>

Can we implement case\_when in Julia? I am trying to achieve this R code using Queryverse in Julia Example in R: mutate(TIME = case\_when(TIME == 0 ~ 95.9, TIME == 0.08 ~ 96.08, TIME == 0.25 ~ 96.25, TIME == 0.50 ~ 9…

---

## [Interpolate DateTime without InexactError](https://discourse.julialang.org/t/interpolate-datetime-without-inexacterror/31033)

<div class="topic-metadata">

**Author:** [@scelles](https://discourse.julialang.org/u/scelles)\
**Replies:** 4\
**Last updated:** [November 13, 2019, 11:28am UTC](https://discourse.julialang.org/t/interpolate-datetime-without-inexacterror/31033 "2019-11-13T11:28:46Z")

</div>

Hello, I need to interpolate DateTime I have a function like function interpolate\_time(x1::Float64, t1::DateTime, x2::Float64, t2::DateTime, xI::Float64) return (xI - x1) / (x2 - x1) \* (t2 - t1) + t1 end interpol…

---

## [Why do function variables behave differently than global script variables?](https://discourse.julialang.org/t/why-do-function-variables-behave-differently-than-global-script-variables/31028)

<div class="topic-metadata">

**Author:** [@duncanam](https://discourse.julialang.org/u/duncanam)\
**Replies:** 2\
**Last updated:** [November 13, 2019, 11:02am UTC](https://discourse.julialang.org/t/why-do-function-variables-behave-differently-than-global-script-variables/31028 "2019-11-13T11:02:48Z")

</div>

Hello, I came across something rather interesting today and was curious if someone could shed some light as to what the difference is. I’ve been primarily using Jupyter Lab and haven’t come across this issue before unti…

---

## [Reusing code in tests](https://discourse.julialang.org/t/reusing-code-in-tests/31035)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 5\
**Last updated:** [November 13, 2019, 10:55am UTC](https://discourse.julialang.org/t/reusing-code-in-tests/31035 "2019-11-13T10:55:31Z")

</div>

I am wondering about how to organize test code that gets re-used, but not in a pattern that is regular for all cases. Eg consider the MWE using Test function dotests(xs) for x in xs @test isodd(x) end e…

---

## [Installing packages](https://discourse.julialang.org/t/installing-packages/30978)

<div class="topic-metadata">

**Author:** [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)\
**Replies:** 2\
**Last updated:** [November 13, 2019, 10:03am UTC](https://discourse.julialang.org/t/installing-packages/30978 "2019-11-13T10:03:08Z")

</div>

Dear all, I just to install Julia in a new computer. When I run Pkg.add("JuMP") a error message appears: julia\> Pkg.add("JuMP") Updating registry at \`C:\\Users\\Usuário\\.juliapro\\JuliaPro\_v1.0.4.1\\registries\\JuliaPr…

---

## [Struct with Multiple Parametric Types](https://discourse.julialang.org/t/struct-with-multiple-parametric-types/31030)

<div class="topic-metadata">

**Author:** [@Eric\_Chen](https://discourse.julialang.org/u/Eric_Chen)\
**Replies:** 2\
**Last updated:** [November 13, 2019, 9:27am UTC](https://discourse.julialang.org/t/struct-with-multiple-parametric-types/31030 "2019-11-13T09:27:47Z")

</div>

I have a few “operations” and I will read a CSV file to determine a list of operation to perform. I also have a collection of operations “ManyOps” that hold multiple operations. Operate → abstract type Cut, Roll, Push…

---

## [Can't understand numerical errors on julia](https://discourse.julialang.org/t/cant-understand-numerical-errors-on-julia/31031)

<div class="topic-metadata">

**Author:** [@jgidi](https://discourse.julialang.org/u/jgidi)\
**Replies:** 2\
**Last updated:** [November 13, 2019, 8:15am UTC](https://discourse.julialang.org/t/cant-understand-numerical-errors-on-julia/31031 "2019-11-13T08:15:10Z")

</div>

Hello! First of all, I want to thank you all. This is the first time that I ask something here, but I always read you, and the community is great. I hope that, with enough experience, I can start answering things aswell …

---

## [Can I subtype "Type" ? If so how?](https://discourse.julialang.org/t/can-i-subtype-type-if-so-how/31017)

<div class="topic-metadata">

**Author:** [@Qiyamah](https://discourse.julialang.org/u/Qiyamah)\
**Replies:** 3\
**Last updated:** [November 13, 2019, 7:38am UTC](https://discourse.julialang.org/t/can-i-subtype-type-if-so-how/31017 "2019-11-13T07:38:00Z")

</div>

Topic says it all. I would like to do something like: struct MySpecialType{T\<:Type} \<: Type{T} end

---

## [Julia and Juno problem on Ubuntu](https://discourse.julialang.org/t/julia-and-juno-problem-on-ubuntu/30992)

<div class="topic-metadata">

**Author:** [@zacky](https://discourse.julialang.org/u/zacky)\
**Replies:** 7\
**Last updated:** [November 13, 2019, 6:37am UTC](https://discourse.julialang.org/t/julia-and-juno-problem-on-ubuntu/30992 "2019-11-13T06:37:11Z")

</div>

Hi, I installed Julia and Atom-Juno on my PC with Ubuntu OS. When Julia could not be started. When I try to start Julia from REPL I get this error “Julia could not be started. We tried to launch Julia from: julia This pa…

---

## [Profile.init time units](https://discourse.julialang.org/t/profile-init-time-units/30888)

<div class="topic-metadata">

**Author:** [@Ross\_Boylan](https://discourse.julialang.org/u/Ross_Boylan)\
**Replies:** 14\
**Last updated:** [November 13, 2019, 5:05am UTC](https://discourse.julialang.org/t/profile-init-time-units/30888 "2019-11-13T05:05:09Z")

</div>

The documentation says the time units for the delay in Profile.init are in seconds, but the results I’m getting seem more consistent with 100th of a second. What’s going on? Julia 1.2. Profile.init(10000000, 0.3) Prof…

---

## [Seeking advice on learning ML](https://discourse.julialang.org/t/seeking-advice-on-learning-ml/31016)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 8\
**Last updated:** [November 13, 2019, 3:34am UTC](https://discourse.julialang.org/t/seeking-advice-on-learning-ml/31016 "2019-11-13T03:34:35Z")

</div>

I’ve done plenty of dabbling in ML and written some models that work (albeit, not very well) but I’m finding it difficult to 1) navigate the many ML-related topics and decide which ones to spend more time learning and wh…

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

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