# Compile-time computation example now works with LFortran

**URL:** <https://fortran-lang.discourse.group/t/compile-time-computation-example-now-works-with-lfortran/8139>\
**Category:** Announcements\
**Created:** [June 4, 2024, 2:47pm UTC](https://fortran-lang.discourse.group/t/compile-time-computation-example-now-works-with-lfortran/8139 "2024-06-04T14:47:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![certik](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/certik/32/4_2.png) [@certik](https://fortran-lang.discourse.group/u/certik)\
**Post date:** [June 4, 2024, 2:47pm UTC](https://fortran-lang.discourse.group/t/compile-time-computation-example-now-works-with-lfortran/8139/1 "2024-06-04T14:47:13Z")

</div>

Over 2 years ago I created code to test compile time computation of Fortran: [Computing at compile time](https://fortran-lang.discourse.group/t/computing-at-compile-time/3044). We are super excited to announce that LFortran can now compile the example too, and is very fast at the speed of compilation:

- [LFortran: the Fastest Open-Source Compiler in Compile-Time Evaluation of an Array Benchmark -](https://lfortran.org/blog/2024/06/lfortran-the-fastest-open-source-compiler-in-compile-time-evaluation-of-an-array-benchmark/)

Big thanks to @HarshitaKalani and @Pranavchiku for implementing the missing compile time features.

---

<div class="post-metadata">

**Author:** ![cmaapic](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/cmaapic/32/659_2.png) [@cmaapic](https://fortran-lang.discourse.group/u/cmaapic)\
**Post date:** [June 4, 2024, 3:01pm UTC](https://fortran-lang.discourse.group/t/compile-time-computation-example-now-works-with-lfortran/8139/2 "2024-06-04T15:01:57Z")

</div>

I remember getting into trouble with several compiler vendors when I tried to report ‘bugs’ in their compilers when trying to initialise a 143,000+ word dictionary by initialisation at compile time, i.e. with 143,000+ source statements doing the initalisation.

---

<div class="post-metadata">

**Author:** ![HarshitaKalani](https://avatars.discourse-cdn.com/v4/letter/h/4da419/32.png) [@HarshitaKalani](https://fortran-lang.discourse.group/u/HarshitaKalani)\
**Post date:** [June 4, 2024, 3:33pm UTC](https://fortran-lang.discourse.group/t/compile-time-computation-example-now-works-with-lfortran/8139/3 "2024-06-04T15:33:41Z")

</div>

Very happy to be helpful as you embark on it. Glad to see LFortran progressing at this wonderful pace. Looking forward to reach beta soon
