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.

Fortran for C Programmers

31 pointsby todsacerdotiabout 20 hours ago

6 comments

Extigyabout 12 hours ago
One of my favourite features of Fortran is in its array implementation. You can index arrays however you like.<p>Do you like your initial value to be at index 1? Cool. Prefer to index arrays from 0 instead? Sure, go ahead.<p>How about an array with indexing <i>symmetric around zero</i>?<p><pre><code> double precision :: arr(-100:100) </code></pre> Beautiful!
评论 #44021054 未加载
SoftTalkerabout 17 hours ago
Still used in scientific computing. Perhaps also in some financial settings? Otherwise it’s pretty dead.
评论 #44019490 未加载
评论 #44019601 未加载
评论 #44018861 未加载
评论 #44018753 未加载
timonokoabout 11 hours ago
CONTINUE - card was eternal mystery. Why cant you have just empty card with line number on it?
评论 #44021565 未加载
emmelaichabout 16 hours ago
I say bring back <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Ratfor" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Ratfor</a>
jmclnxabout 18 hours ago
Very nice, my first professional job was with Fortran IV, but my 19 year old self made lots of mistakes back then :)<p>Anyway I eventually ended up with c. Recently I started playing with gfortran, but so much have leaked out of me I have been having a tough time of it. I expect this will help me a lot!<p>Edit: No functions ? OK, noticed it is handled under Subprograms. Seems there have been many changes.
readthenotes1about 18 hours ago
I haven&#x27;t used a modern Fortran, but for older versions , the biggest surprise was the lack of reentrance.
评论 #44019626 未加载
评论 #44022255 未加载
评论 #44019099 未加载