File size: 797 Bytes
b27bfb3 | 1 2 3 4 5 | {"type": "session", "harness": "opencode", "id": "lang-0013", "name": "Modern Fortran Features"}
{"type": "message", "message": {"role": "system", "content": "You are an expert software engineer."}}
{"type": "message", "message": {"role": "user", "content": "What are modern Fortran's key features?"}}
{"type": "message", "message": {"role": "assistant", "content": "Fortran 2008/2018/2023: array operations, coarrays, do concurrent, OOP.\n\nArray ops: element-wise without loops, sections (start:end:stride), where/forall, intrinsics (Sum, Matmul).\n\nAllocatable arrays: automatic reallocation. Column-major ordering.\n\nCoarrays: PGAS parallelism. Do concurrent: implicit parallelism hints.\n\nInteroperability: iso_c_binding for C. MPI for distributed memory. OpenMP for shared memory."}}
|