# A Comparison of Programming Languages in Economics

**URL:** <https://discourse.julialang.org/t/a-comparison-of-programming-languages-in-economics/8966>\
**Category:** Community\
**Created:** [February 10, 2018, 1:04am UTC](https://discourse.julialang.org/t/a-comparison-of-programming-languages-in-economics/8966 "2018-02-10T01:04:10Z")\
**Posts on this page:** 3\
**Page:** 4

<div class="post-metadata">

**Author:** ![RoyiAvital](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/royiavital/32/571_2.png) [@RoyiAvital](https://discourse.julialang.org/u/RoyiAvital)\
**Post date:** [August 6, 2018, 5:11am UTC](https://discourse.julialang.org/t/a-comparison-of-programming-languages-in-economics/8966/61 "2018-08-06T05:11:16Z")

</div>

I would add another case (Comparing MATLAB, Python, Python + Numba and R) which I’m not sure why Numba is faster than Julia - [Web Appendix for Numerical Language Comparison](https://www.modelsandrisk.org/appendix/speed/) (Small micro benchmark).

On Slack people used `@inbounds` and still couldn’t match Numba.

Any idea what gives Numba the edge in those cases?

P. S.  
It seems MATLAB is really doing great steps forward,

---

<div class="post-metadata">

**Author:** ![pkofod](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pkofod/32/2179_2.png) [@pkofod](https://discourse.julialang.org/u/pkofod)\
**Post date:** [August 6, 2018, 5:07pm UTC](https://discourse.julialang.org/t/a-comparison-of-programming-languages-in-economics/8966/62 "2018-08-06T17:07:47Z")

</div>

Probably Apple Libm’s log function. It’s very fast and accurate, and probably exploits that macs only ship with so many different processors. Yes we know it, no we haven’t been able to beat it, and yes it’s super annoying 🙂 I do think there was even a small difference using apple libms log and inbounds .

---

<div class="post-metadata">

**Author:** ![RoyiAvital](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/royiavital/32/571_2.png) [@RoyiAvital](https://discourse.julialang.org/u/RoyiAvital)\
**Post date:** [August 7, 2018, 7:21am UTC](https://discourse.julialang.org/t/a-comparison-of-programming-languages-in-economics/8966/63 "2018-08-07T07:21:40Z")

</div>

If I remember correctly someone used Apple’s `libm` + `@inbound` and still was a little behind Numba.  
So there is a room for improvement regardless of the use of Apple’s library.

I think this issue is related - [exp, @fastmath, SVML vectorization](https://github.com/JuliaLang/julia/issues/21454).  
I hope we’ll see SVML in JuliaPro soon.

[Previous page](https://discourse.julialang.org/t/a-comparison-of-programming-languages-in-economics/8966.md?page=3)
