TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Lfortran: Modern interactive LLVM-based Fortran compiler

165 pointsby zaikunzhangover 1 year ago

11 comments

rusteover 1 year ago
This is probably fantastic from a maintainability perspective, but I'm curious if some performance is left on the table by using LLVM IR instead of compiling directly to machine code. I know there are a number of optimizations that can be made for Fortran that can't be made for C-like languages and I wonder if some of those C-like assumptions are implicitly encoded in the IR.
评论 #37297980 未加载
评论 #37297148 未加载
评论 #37297551 未加载
评论 #37301142 未加载
评论 #37297598 未加载
dangover 1 year ago
Related ongoing thread:<p><i>Fortran</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=37291504">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=37291504</a> - Aug 2023 (193 comments)<p>(current thread is better because less generic)
fanf2over 1 year ago
I wanted to see a comparison with flang, which I thought is the main LLVM Fortran front end.
评论 #37297921 未加载
slavapestovover 1 year ago
&gt; LFortran is structured around two independent modules, AST (Abstract Syntax Tree) and ASR (Abstract Semantic Representation), both of which are standalone (completely independent of the rest of LFortran) and users are encouraged to use them independently for other applications and build tools on top.<p>Modern frontend architecture comes to Fortran! Awesome.
throw10920over 1 year ago
It&#x27;s a little bit embarrassing that a <i>Fortran</i> compiler provides a shell for interactive use, yet the Rust project, with at least two orders of magnitude more development effort, does not.
评论 #37302474 未加载
评论 #37304248 未加载
sakrasover 1 year ago
How does this compiler compare with Flang? I saw it shouted out on the main page but didn&#x27;t really see any comparisons for why you&#x27;d pick one or the other.
评论 #37300346 未加载
pseudosavantover 1 year ago
Was I the only one hoping that Lfortran was something for music synthesis (LFOs...) using Fortran? I can&#x27;t not see LFO - like that keming joke.
cjohnson318over 1 year ago
Is this the same outfit that did LPython? It looks like the same&#x2F;similar web design.
评论 #37300372 未加载
1vuio0pswjnm7over 1 year ago
When installing clang I am amazed at the size of some of the LLVM shared libraries. Gigantic.
j_not_jover 1 year ago
Is&#x2F;will OpenMP be supported?
gcrover 1 year ago
I misread LLVM as LLM and wondered what on earth language models have to do with Fortran compilation. (They don&#x27;t. LLVM is a compiler framework.)<p>Anyways, great work to the team! It&#x27;s fun to see such a flurry of articles from the Fortran community today
评论 #37297903 未加载
评论 #37301134 未加载
评论 #37298725 未加载