🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.fortran
Article #15

Re: âThe end of software secrecy is almost upon us"

#15
From: Johann 'Myrkraverk' Oskarsson
Date: Wed, 14 Oct 2026 22:15
45 lines
3110 bytes
On 10/14/2026 8:52 PM, WolfFan wrote:
>>> And he has a translator from Borland Pascal to Rust?
>>>
>>> Lynn
>> Yeah, that one boggles the mind. Why transpile from Pascal to Rust?
> Wake me when they can move FOTRAN IV programs to Rust.

Now that is a great idea.  And would like to see -- before we tackle
this problem -- /arithmetic if/ in Rust.  It's a programming language
that has accumulated almost but not quite all control structures from
other programming languages, except the /arithmetic if/.

I am only a beginner in Rust, so I'm not sure what the syntax should
look like, but the application of an /arithmetic if/ with complete safe-
ty is too tempting.

As I understand it, Rust does not use the braces after if, unlike C, so
it could look something like -- using /Rust by Example/ as guide --
the following.

   if n < 10 && n > -10 left, middle, right ;
      /* .--------------^  */
      /* Lack of { here clearly points out this is /arithmetic if/. */

Where the /left/, /middle/, and /right/, are user defined labels, some-
where in the code.  There already is a macro that applies goto with com-
plete safety guarantees, so there is only a matter of time before it
shows up in the /rustc/ compiler proper.

   https://docs.rs/goto/latest/goto/

I imagine a /rustc/ provided labels, unlike this macro, would not need
the ' prefix, so I left them out.

It goes without saying that having this feature in the Rust programming
language allows easy and direct machine translation from Fortran IV to
Rust with /complete safety guarantees/.


Best wishes, and happy Fortran IV!
-- 
Johann | email: invalid -> com | http://www.myrkraverk.com/blog/
I'm not from the Internet, I just work there. | via Easynews.com
https://bsky.app/profile/myrkraverk.bsky.social | for ( ;; ) _:;
Federated at https://fed.brid.gy/bsky/myrkraverk.bsky.social
Technical Details
Message-ID: <V9TzS.4$pE2.0@fx17.ams4>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!peer02.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx17.ams4.POSTED!not-for-mail
References: <11amvre$15far$1@dont-email.me> <VQIzS.207675$koK3.204253@fx01.ams4> <0001HW.307FB281018CF7467000086DF38F@news.supernews.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!peer02.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx17.ams4.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: âThe end of software secrecy is almost upon us"
Newsgroups: rec.arts.sf.written,comp.lang.fortran,comp.lang.c++,alt.comp.lang.rust
References: <11amvre$15far$1@dont-email.me>
 <VQIzS.207675$koK3.204253@fx01.ams4>
 <0001HW.307FB281018CF7467000086DF38F@news.supernews.com>
Content-Language: en-US
From: Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid>
Organization: Watcom Pro Ltd.
In-Reply-To: <0001HW.307FB281018CF7467000086DF38F@news.supernews.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 45
Message-ID: <V9TzS.4$pE2.0@fx17.ams4>
X-Complaints-To: abuse@easynews.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date: Thu, 15 Oct 2026 06:15:13 +0800
X-Received-Bytes: 2867