
Security News
Researcher Exposes Zero-Day Clickjacking Vulnerabilities in Major Password Managers
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
Frepl (Fortran REPL) is an experimental ruby-based REPL for Fortran, that I wrote because I was trying to learn Fortran, and I find the feedback loop you get with a REPL makes learning a language much easier and more enjoyable.
You don't need to know ruby to use Frepl, but you do need to have ruby (at least version 2) installed.
There are a lot of deficiencies with this code, namely:
See issue tracker.
integer, parameter, dimension(:) :: a
.do... end do
loops are supportedAdd this line to your application's Gemfile:
gem 'frepl'
And then execute:
$ bundle
Or install it yourself as:
$ gem install frepl
You should be able to run frepl
from the command line after having installed the gem.
Alternatively, if you have the source code, you can run rake console
from the gem folder.
You will get a prompt, and you can just start typing Fortran, type q
to quit.
> integer :: a = 1
> integer, dimension(:), allocatable :: b
> allocate(b(0:4))
> b = [1,2,3,4]
> write(*,*) a * b
1 2 3 4
> q
> integer :: a = 1
> a = 3
3
> real a
> a = 5
5.00000000
> integer function sum(a, b)
> integer, intent(in) :: a, b
> sum = a + b
> end function
> write(*,*) sum(1,2)
3
> real function sum(a, b, c)
> real, intent(in) :: a, b, c
> sum = a + b + c
> end function
> write(*,*) sum(1.0,2.9,3.4)
7.30000019
>
Type f:z
(z as in cmd+z for undo). Handy when you made an error, e.g.
> integer :: a =3
> real :: b
> b = 'fo'
frepl_out.f90:5.4:
b = 'fo'
1
Error: Can't convert CHARACTER(1) to REAL(4) at (1)
> f:z
> b = 3.4
3.40000010
>
You can see some repl commands by typing f:help
. Not much going on there, currently.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that frepl demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.