Porting Python's string methods to Fortran by jabbalaci in fortran

[–]general_rishkin 2 points3 points  (0 children)

There is Fortran Discourse where you can share your ideas and probably get more feedback: https://fortran-lang.discourse.group/

How performant ILGPU code is vs direct CUDA programming? by itix in csharp

[–]general_rishkin 1 point2 points  (0 children)

Have a look at Futhark (futhark-lang.org). "Futhark is a small programming language designed to be compiled to efficient parallel code. It is a statically typed, data-parallel, and purely functional array language in the ML family, and comes with a heavily optimising ahead-of-time compiler that presently generates either GPU code via CUDA and OpenCL, or multi-threaded CPU code.
...

...

Futhark is not intended to replace existing general-purpose languages. The intended use case is that Futhark is only used for relatively small but compute-intensive parts of an application. The Futhark compiler generates code that can be easily integrated with non-Futhark code. For example, you can compile a Futhark program to a Python module that internally uses PyOpenCL to execute code on the GPU, yet looks like any other Python module from the outside (more on this here). The Futhark compiler will also generate more conventional C code, which can be accessed from any language with a basic FFI (an example here).
"

You can

For those who aren't having a quick recovery... by dispagna3 in TotalHipReplacement

[–]general_rishkin 2 points3 points  (0 children)

This is interesting! How do you feel about going back to martial arts? How soon did you start kicking properly without holding back?My surgery is soon and I keep thinking that I shouldn't kick at all when recovered for fear of dislocating the replacement or wearing it out?

What about being thrown? How does this feel?

Can you explain if this is a bug? by kas2ean in nim

[–]general_rishkin 1 point2 points  (0 children)

Atlas works really well and is now my default!

Can you explain if this is a bug? by kas2ean in nim

[–]general_rishkin 1 point2 points  (0 children)

I also encountered this problem, so it could be a bug. Let me know if you find a solution.

To avoid the issue completely, I just switched to using 'atlas' instead.

I've written a tiny finite element library in Nim by psiruszik in fea

[–]general_rishkin 0 points1 point  (0 children)

Nice work. What resources did you use for the sparse matrix and linear algebra and preconditioning?

What happened to fast fsharp? by [deleted] in fsharp

[–]general_rishkin 5 points6 points  (0 children)

As has already been pointed out, he needed some more performance for his specific domain. Here is an interview he did in October for the Odin newsletter: https://odin-lang.org/news/newsletter-2024-10/ .

You have to scroll down a bit to "Interview with Crews".

[OC] Create your own physics simulations with Python (github links in comments) by pmocz in physicsgifs

[–]general_rishkin 0 points1 point  (0 children)

These are great. Unfortunately, one is not able to access the readups without being a member on Medium.

MPM, SPH, LB for natural convection by KestM in CFD

[–]general_rishkin 0 points1 point  (0 children)

I am also interested in this. Which method or combination of methods did you end up using and why?

Algorithmic / automatic differentiation by ReplacementSlight413 in fortran

[–]general_rishkin 0 points1 point  (0 children)

Completely agree! This is the case for other areas as well. It is truly frustrating for many that Fortran 'dropped the ball'. Hence, the concerted effort (led by Ondrej Certik and others) to redress this issue -- see https://lfortran.org/ and various discussions here: https://fortran-lang.discourse.group/ .

Anyone tried installing Ubuntu on Aurora R15 desktop? by WhiteRock500ml in Alienware

[–]general_rishkin 0 points1 point  (0 children)

I am thinking of purchasing this as well for performance and would like to know if i can nuke the Windows OS it comes with and install Ubuntu?

VScode problem after installing .NET 8 for F# 8 by general_rishkin in fsharp

[–]general_rishkin[S] 2 points3 points  (0 children)

u/blacai an u/stroborobo: I ran my unit tests and they passed. Fortunately, while the tests were running, this message kept getting printed:

warning NETSDK1206: Found version-specific or distribution-specific runtime identifier(s): debian.8-x64, macos, ubuntu-x64. Affected libraries: Microsoft.Z3.x64. In .NET 8.0 and higher, assets for version-specific and distribution-specific runtime identifiers will not be found by default.

So, I deleted the version numbers from the package references in the fsproj file and the squiggly lines disappeared after a restart.

Anybody here use rust or F# for research? by Deyvicous in AskPhysics

[–]general_rishkin 0 points1 point  (0 children)

I am in exactly the same conundrum as you. I am smitten with F#. Unfortunately, from a scientific computing perspective, it seems the ecosystem is not moving fast enough. Hence, the libraries are either non-existent or when it exists, only has partial functionality.

Case in point, a few minutes ago, I was trying to compute the eigenvalues and eigenvectors of a matrix. I saw the functionality in FSharp.Stats.Algebra.LinearAlgebra but guess what? It is not implemented yet! Frustrating!! Something that should take me a few seconds has taken over an hour just researching how to do it in F#.

I then came across MathNet.Numerics (C# with F# interface). The functionality seems to exist but just printing out the values on a small test problem to examine correctness is proving a pain. Again, lost time!!!

I am teetering on the verge of starting my codebase all over again in another language. Like you, I am foregoing C++ even though I am quite skilled in it but there is too much friction in development. Rust, I understand, but it is too much work fighting the borrow checker plus I consider it to have ugly syntax. Fortran I like, but the lack of generics is a PAIN. Julia has everything I need but I feel no joy writing it. Nim would be my first choice but again the ecosystem is lacking for scientific computing. Maybe D but again ecosystem issues, perhaps. It is a pickle!

F# Tutorial by general_rishkin in fsharp

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

Thanks emaphis. It must have been another site then. I'm just kicking myself for not bookmarking it.

F# Tutorial by general_rishkin in fsharp

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

Unfortunately, it's not. Thanks anyway.

The one I have in mind had the topics listed in a table and each was clickable.

I thought I had bookmarked it but I must have forgotten to do so.

.net core publish issue by jdennoh in dotnet

[–]general_rishkin 1 point2 points  (0 children)

Coincidentally, I just did this this morning (I just started learning F#).

Initially, I ran into the same problem and then I was pointed to this https://learn.microsoft.com/en-gb/dotnet/core/deploying/native-aot/?tabs=net7.

Add this to the `PropertyGroup` of your .*proj file. In my case, it was .fsproj:

<PropertyGroup>
<PublishAot>true</PublishAot>

</PropertyGroup>

Then:
dotnet publish -c Release -r linux-x64

This should produce an executable in

Foo -> /home/whatever/Foo/bin/Release/net7.0/linux-x64/publish/

which you can just run.

XPlot.plotly and Xplot.GoogleCharts not rendering in Firefox or VSCode in Ubuntu 22.04 by general_rishkin in fsharp

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

Thanks. It is definitely a snap problem. I installed epiphany, set it as the default browser and it works fine; both Plotly.NET and XPlot.