program test_loc
implicit none
print *, findloc([.true., .false., .true.], .false.)
end program test_loc
Oh, nvfortran, why do you have to give me "0: FINDLOC: unimplemented for data type".
#fortran #f90 #nvhpc
#Fortran IV tokenization, or proto-tokenization, is even more esoteric than a lot of #esolang designs.
One of my favorite machine code compilers is Shelta. A beautiful language that allows comments ANYWHERE.
Fortran IV isn't quite that extreme, but apparently, because of the limitations of data input at the time. (IE punch cards) spaces could be anywhere. That is a pretty difficult concept to grok. But I kind of understand it, even though it seems crazy, but I'm trying to make it work!
Fortran в 2026 году: зачем смотреть на язык из 1957 года
Fortran — язык из 1957 года, который до сих пор используют в науке и инженерии. Я попробовал разобраться, почему он не исчез — и неожиданно понял, что это один из самых честных способов увидеть, как работает программа: типы, память, вычисления без «магии». В статье — небольшой вводный туториал по Fortran: переменные, типы и первые вычисления. Если хотите лучше понять программирование «под капотом» — это хороший вход.
https://habr.com/ru/articles/1021176/
#fortran #программирование #обучение_программированию #языки_программирования #основы_программирования #tutorial
In #Birkenhead on Monday? Join us from 6pm every Monday at our new event!
Monday :: Programming -> Fun -> IO () is a close-knit group of programmers looking to improve their skills alongside others. Each session, we decide what language or concepts we're going to focus on as a group, returning at the end to discuss what we've built or learned.
Focus on improving your programming skills in good company!
#programming #rust #python #perl #c #cpp #rust #zig #go #assembly #fortran #haskell #idris
ForColormap 1.0 released:
https://github.com/vmagnin/forcolormap/releases/tag/v1.0
The #ForColormap #Fortran library is independent of any graphical toolkit: its main functionality is to convert a real value to RGB values that you can use with any drawing toolkit.
It especially includes the 222 #colormaps of the Scientific colour maps collection v8.0.1 by Fabio Crameri, the "magma", "inferno","plasma", "viridis" matplotlib colormaps and the Dave Green's cubehelix colormap.
What's not in my profile?
I used to be a huge Wirth-ian in the 1990s and spewed excellent tirades against the evils of C. Niklaus Wirth is also my "PhD grandfather" via Michael Franz at #UCIrvine.
I prefer lecturing sitting down in front of a laptop and talking while I do stuff on said laptop. I very much dislike slides and prefer chalk and blackboard for things like data structures.
I got my "15 minutes of fame" served unexpectedly:
https://www.insidehighered.com/news/2013/02/12/students-boycott-final-challenge-professors-grading-policy-and-get
https://boingboing.net/2013/02/19/students-get-class-wide-as-by.html
https://archive.nytimes.com/economix.blogs.nytimes.com/2013/02/14/gaming-the-system/
But it still was fun.
I got my undergraduate degree from https://www.cs.hm.edu/ which back then was not allowed to feed into PhD programs. It's a thing in Germany: Everything is tiered and changing the tiers requires a change to the constitution of the republic (I am joking, but not really) so it takes a while. (Nowadays it would be easier to go on to a PhD from there.) The "plus" was that I spent two semesters in industry. In one I quickly out-FORTRAN-ed my boss, in the other I learned C++ from Stroustrup in two weeks while riding the bus. Beat that Ivy League!
I grew up on #c64 #basic and #mos6502 (well, #mos6510 I guess) assembly, went on to #m68k assembly, #gfabasic and lots of #oberon. Of course I was dabbling in #modula2, #prolog, #scheme, and more. Then it was mostly whatever I needed so #fortran, #cpp, #java, lots of #python, lots more #c, lots more #arm and #x86 assembly, some #golang, some #ocaml, some #csharp even if you can believe it. Nowadays it's pretty much #c all day with chunks of #python and bits of #rust now and then. And chunks of #bash too.
(Proudly self-plagiarized off of a few 2023/2024 posts from my previous account.) #introduction #SorryItsLate
Hi, John! Welcome to Mastodon!
If you've already been here a while...double welcome.
I saw you'd followed me, so I followed you back.
I saw from your website that you're a physicist that programs in FORTRAN. I also programmed in FORTRAN and worked in physics from 1983 thru 2014. I never got a degree in physics, though, just computer science.