From papers to Julia code: examples wanted

Ian Weaver Started a very nice discussion in Slack that could use some more community input:

We want examples were Julia code matches the paper pseudo code or mathematical specification.

Here are some examples people fished from twitter, but we’d love to see yours!

cc @mbauman @brenhinkeller @icweaver

6 Likes

This thread:

5 Likes

Here’s one humble contribution

7 Likes

https://ew-git.github.io/coding/julia/2019/01/15/poisferobust-julia.html
I made some performance concessions to keep it close to the paper’s equations, like computing the inverse of A.

Here is the package version (unregistered): GitHub - ew-git/PoissonFE.jl: Implements Poisson fixed effects regression and robust standard errors from Wooldridge (1999) in Julia. The implementation should be faster than GLM.jl with many fixed effects.

3 Likes

I recently coded up the implicit consumption aggregation calculation (non-homothetic CES) in

https://onlinelibrary.wiley.com/doi/epdf/10.3982/ECTA16317

as

for integration with AD. Will be registered soon.

2 Likes

Honorary mention to the DiffEq Lotka Volterra in emojis

https://mobile.twitter.com/mircomusolesi/status/1404410404961390592

1 Like

Another from the slack

1 Like

This repo by @mossr is amazing GitHub - mossr/BeautifulAlgorithms.jl: Concise and beautiful algorithms written in Julia

2 Likes

contributing this picture from a talk I gave

6 Likes

https://twitter.com/MadVictorZ/status/1407466595430154249

1 Like

Thanks @miguelraz for the BeautifulAlgorithms.jl shout-out!

I have a few LaTeX Overleaf projects that compare algorithmic pseudocode you’d find in an academic paper with their Julia implementation counterparts:

2 Likes