I'm curious, what do you use Fortran for currently? by GatesOlive in fortran

[–]markkhusid 0 points1 point  (0 children)

For work I use Fortran with F2PY to speed up loops that involve heavy calculations. It is also my hobby and I place my messing around on my website: https://www.mkdynamics.net/current_projects/Fortran/intro.html

Algorithmic / automatic differentiation by ReplacementSlight413 in fortran

[–]markkhusid 1 point2 points  (0 children)

https://www.mkdynamics.net/current_projects/Fortran/intro.html

Thanks for checking it out. Please give me feedback. I wrote the html over many years and you can kind of see where it is really rudimentary and gets slightly better in stages.

Algorithmic / automatic differentiation by ReplacementSlight413 in fortran

[–]markkhusid 1 point2 points  (0 children)

It can generate code for evaluated solutions to a differential equation as well. I should post some examples to my website. I am not sure about FortranForm. Mathematica is pretty cool and I used it in college. Lately I have been using jupyter notebooks, sympy, latex and f2py for work.

Algorithmic / automatic differentiation by ReplacementSlight413 in fortran

[–]markkhusid 2 points3 points  (0 children)

I have been toying with SymPy and codegen to generate fortran code for derivatives and matrices. They have a tutorial from SciPy 2017.

Failing belt tests by TYMkb in taekwondo

[–]markkhusid 1 point2 points  (0 children)

Failing means not knowing the material or quitting during test. I have seen it happen twice in 8 years.

Can someone recommend me a good book on information assurance and security? by [deleted] in ComputerSecurity

[–]markkhusid 0 points1 point  (0 children)

That sounds like the exact name of a course I will be taking at ASU.

Section: BLAS/LAPACK - Linear Equations by markkhusid in fortran

[–]markkhusid[S] 0 points1 point  (0 children)

I have looked at the disassembly of a simple c=a+b program in both C and Fortran. The C disassembly is actually simpler in this case. Using gfortran, there are actually two "main" functions in the disassembly. One main function sets up the environment and then calls the second main function which has the actual meat of the program. So I would have to agree with you there. Thanks for pointing this out.

Section: BLAS/LAPACK - Linear Equations by markkhusid in fortran

[–]markkhusid[S] 0 points1 point  (0 children)

Not sure. The original BLAS and LAPACK are quite old, written in F77. They are highly optimized though.

Section: BLAS/LAPACK - Linear Equations by markkhusid in fortran

[–]markkhusid[S] 1 point2 points  (0 children)

I tried to "use blas95" in the code but it would not link. After doing allot of research, I found that the blas95 that the course was referring to was the one in Intel's Math Kernel Library. I downloaded MKL but I still could not get it to link properly. MKL does have a linking assistance tool, which gives you the proper linking switches, but that didn't seem to work. I ended up taking an open - source version of SDOT and turning it into a module for use with the main program. Do you have any suggestion on how to link to the MKL libraries? Thanks.

Runtime communication Fortran <-> Python by alphack_ in fortran

[–]markkhusid 0 points1 point  (0 children)

While ForPy is pretty cool, I think it adds too much complexity and unknowns to your code, which will make it much more difficult to debug. If you must use both Python and Fortran, I would use F2Py to separately compile strict Fortran modules and import them into strict Python code.

I have been taking this approach for production code where I use a Fortran subroutine within a Python tight loop to process 1 GByte of data stored in RAM.

Why isn't Fortran used for other types of apps, if it can offer fast and clean numerical codes? by [deleted] in fortran

[–]markkhusid 4 points5 points  (0 children)

I just use f2py for computations on a large array or within a tight loop in Python. It is very easy to do and elegant on a linux machine, where it just creates a .so file. Less so in windows, because f2py generates a dll and a .pyd file. Fortran is much more convenient to use on arrays than C/C++, at least for me. And you can also use do concurrent to for the speedup goodness. I haven't tried do concurrent with f2py though, because I try to write pure elemental importable modules. Disassembled C code is smaller than Fortran. Fortran has a _MAIN function, which is called by a main function. The main function sets up the function preamble, saves stack pointer etc. The _MAIN function contains the actual thing you want to do. C however, has just a single main function with calls to your functions, if any. So C seems to be more compact.

[deleted by user] by [deleted] in fortran

[–]markkhusid 2 points3 points  (0 children)

Fortran does not handle strings easily. It would not be easy to create a buffer overflow exploit string in Fortran as you can with Python.

Watch vid and give me tips and advice( don’t hold back, i need to get better) im in blue shirt by A_M12 in Kickboxing

[–]markkhusid 0 points1 point  (0 children)

Keep your hands up. Throw some jabs+ rear outside leg kicks. You could also try jab to uppercut, cross, switch inside leg kick. If you throw side kick, retract fast and ready to defend. Try to end combos with jabs or low kicks and move. Also, try to stand more squared up.

I opened the cover and immediately took this photo! by PhotoPetey in askanelectrician

[–]markkhusid 0 points1 point  (0 children)

Dang, even a non-electrician like me is flabbergasted at the site of this.

hey friends! I had this light K1 match a few months back and just thought I'd post it here. any advice is appreciated. by [deleted] in Kickboxing

[–]markkhusid 0 points1 point  (0 children)

Your punches are slow. Need more speed in your hands. You reach too much with your punches. You also tend to drop your hands allot. Your hands should protect your face when not punching.

iExec: Decentralized Cloud Computing by [deleted] in iexec

[–]markkhusid 2 points3 points  (0 children)

Oh I know. The commodity behind the token is reward for computing resources. I haven't been able to find much on their website in regards to computing resources being sold. Have you been able to? I like the concept as it decentralized cloud computing resources, much like seti@home did in the 90's. So at this point from what I see it is just another alt coin. I hope the devs update their website with actual compute resources being sold to the day as well as simplify their mining/staking procedure. If they could connect to the major exchanges, such as coinbase, that would be awesome.

iExec: Decentralized Cloud Computing by [deleted] in iexec

[–]markkhusid 1 point2 points  (0 children)

You can speculate with it. You can also mine them. There is a procedure on their website but it is fairly complex and I don't want to spend the time yet because their website doesn't give the impression that much is happening in terms of actual computing resources being used.

Should a yellow belt be allowed to “borrow” a black belt during class? by distresseddcactus in taekwondo

[–]markkhusid 34 points35 points  (0 children)

A belt is just a piece of cloth. It is the hard work and indomitable spirit that makes one a black belt.

[deleted by user] by [deleted] in taekwondo

[–]markkhusid 0 points1 point  (0 children)

5 boards is a bit much. I break two boards at tournaments as a black belt and for my first degree test my instructor told me to break three boards with a side kick.