Reanimate Fortran:以本地 LLM 將舊有 Fortran 程式碼轉為 Python
Reanimate Fortran
Reanimate Fortran 是一款本地網頁應用程式,連接用戶的本地 LLM 伺服器,將舊有 Fortran 程式碼轉為 Python。應用程式以 React 和 Vite 編寫;使用本地 LLM 伺服器可讓舊有及轉換後的程式碼留在公司控制之下。
Hacktoberfest Open-Source AI Challenge: Ghost in the Machine Submission 👻🌼
This is a submission for the Hacktoberfest Open-Source AI Challenge Week 4: Ghost in the Machine
What I Built
Reanimate Fortran is a local web app that uses your local LLM server to "resurrect" old, legacy Fortran code and gives it new life in Python.
Code
https://github.com/RyanCodeDev/fortran-to-python
How I Built It
Reanimate Fortran was written in React (using Vite). It connects to your existing LLM server, whether it is Ollama, LM Studio, lamma.cpp, etc. You can specify the IP address if the server runs on a different machine on your network.
Why Does Open Innovation Matter?
Legacy code written in Fortran likely contains private and proprietary company information that many organizations would not want shared with a third party. By using a local LLM server, the legacy (and converted) code can remain in the company's control.
The Spirit of It
Fortran, short for Formula Translation, was the first widely used high-level programming language. Developed in the 1950s and commercially released in 1957, it was designed to simplify complex mathematical and scientific calculations. You might have seen it mentioned several times in the hit movie Hidden Figures.
While many may consider Fortran to be a "dead" language that belongs in the "programming graveyard," some companies still have old, legacy systems running Fortran. That ancient code could be "resurrected" by a more modern modern language like Python.
來源:DEV Community · dev.to