#fortran

Infrapink (he/his/him)Infrapink@mastodon.ie
2025-06-21

Just spent half an hour chasing an error which resulted in my code giving answers that are a fraction of an arcsecond off. Turns out that, for some reason, exponentising reals can cause loss of precision in Fortran 🤷‍♂️

Once again Wolfram Alpha proves its incredible usefulness.

#Programming #Fortran

Christos Argyropoulos MD, PhDChristosArgyrop@mstdn.science
2025-06-21

I love this piece about #lowlevel #programming (which includes a shameless plug for #fortran, something I had not realized before)

queue.acm.org/detail.cfm?id=32

2025-06-20

Drinking tea and thinking "Do people still #code in #FORTRAN ? Or it's been all replaced by Mathematica / Maple and the like ??

Matthias Nobackmatthiasnoback
2025-06-20

New post: "Enumeration, part 3" matthiasnoback.nl/2025/06/fort

It's surprising how much there is to explore about enumeration types, but here we are with the final part: we further improve the design by making log level an abstract type, and all the concrete levels subtypes.

Matthias Nobackmatthiasnoback
2025-06-19

New post: "Enumeration, part 2" matthiasnoback.nl/2025/06/fort

We increase type safety by narrowing the integer level argument to a derived type argument. By introducing a factory type for log levels we are able to separate responsibilities. Finally we allow level comparisons using operator overloading.

:rss: Qiita - 人気の記事qiita@rss-mstdn.studiofreesia.com
2025-06-18

[日常] 生成AIは『高級言語』の再来か? - OHPとFORTRANの時代から探る、エンジニアの進化
qiita.com/ShigemoriMasato/item

#qiita #Java #Fortran #初心者 #asm #パンチカード

Matthias Nobackmatthiasnoback
2025-06-18

New post: "Fortran: Enumeration, part 1" matthiasnoback.nl/2025/06/fort

We are refactoring the integer parameters for the various log levels that we want to support. We want to accomplish type-safety and ease-of-use (pun intended).

Infrapink (he/his/him)Infrapink@mastodon.ie
2025-06-17

Things I learned yesterday and today.

Python doesn't understand quadruple-precision real numbers. f2py will happily compile Fortran code containing real(16)s into a form that Python can talk to, but Python will segfault as soon as it receives one of those real(16)s.

Also, Fortran's built-in fraction function doesn't do what I thought it did.

#Programming #Python #Fortran #F2PY

Matthias Nobackmatthiasnoback
2025-06-12

New post: "Module Design" matthiasnoback.nl/2025/06/fort

We look into splitting an existing module into smaller modules. We then put a façade module in front of the smaller modules, so users only have to deal with a simple programming interface. Finally we fix compilation cascade issues by introducing the concept of a submodule.

Matthias Nobackmatthiasnoback
2025-06-11

New post: Service Composition, part 2: Decoration matthiasnoback.nl/2025/06/fort

In this post we explore another way of composing abstractions, which is called decoration. We prefix existing log messages with a timestamp and implement optional delegation based on a configured log level.

2025-06-11

#Fortran has joined the modern world: it has its own conference, #FortranCon.

events.fortrancon.org/event/1/

Society of RSEResearchSoftEng
2025-06-10

📣 Back to the Fortran Future 2 📣

This satellite event takes place 8th September 2025 adjacent to RSECon25 (9-11th September 2025) at the University of Warwick.

Its free to attend, so if you have an interest in Scientific Fortran please consider joining us.

rsecon25.society-rse.org/back-

Matthias Nobackmatthiasnoback
2025-06-10

New post "Fortran: Service Composition, part 1: Aggregation" matthiasnoback.nl/2025/06/fort

We are ready to build more features into the logging library, using different styles of composition. First we look at aggregation.

Matthias Nobackmatthiasnoback
2025-06-09

New post: "Abstract Types and Deferred Procedures" matthiasnoback.nl/2025/06/fort

We define an abstract type with deferred procedures (in OO language: an interface) for the file logger. Introducing an abstract factory allows clients to decouple from specific service types and shows us how polymorphism works.

Matthias Nobackmatthiasnoback
2025-06-05

New post: "Modeling Services as Derived Types" matthiasnoback.nl/2025/06/fort

Derived types are good for "data objects", but they can also be used for "service objects". We look at a safe refactoring from module state and subroutines to a derived type with a data component and a type-bound procedure.

2025-06-04

@muzej I used this as my first programming manual: plus.cobiss.net/cobiss/si/sl/b #fortran

Infrapink (he/his/him)Infrapink@mastodon.ie
2025-06-04

Hold on, f2py CAN make Fortran functions comprehensible to Python‽ I DON'T have to use subroutines‽ Fortran syntax is just incredibly FUSSY‽

#Programming #Fortran #Python #f2py

Matthias Nobackmatthiasnoback
2025-06-04

New article: "Private Data Components and Custom Constructors" matthiasnoback.nl/2025/06/fort

We make the data inside the derived type private (encapsulation), offer alternative ways for creating new instances (factory functions), and expose these alternatives as an abstract function.

Computer History Museum 🇸🇮muzej
2025-06-04

📘 FORTRAN IV Manual (1982), adapted by Rafko Adrinek and published by Iskra Delta! 💖 was the first widely adopted “standard” programming language, especially popular during the 1960s and 70s — the punch card era. 💾 Back then, it powered massive mainframes, and its legacy still lives on today in modern supercomputer programming! 🚀

Matthias Nobackmatthiasnoback
2025-06-03

New post: "Type-bound Procedures" matthiasnoback.nl/2025/06/fort These are the equivalent of class methods, but can surprisingly still be used as regular functions.

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst