I used ChatGPT to write the same routine in these ten obscure programming languages

An instructor at the Boston Latin School uses an IBM 1130 computer to teach Fortran to students on October 4, 1968. 

Photo by Underwood Archives/Getty Images

A few weeks ago, I took a look at using ChatGPT to write the same routine in a dozen of the most popular programming languages. But as a programming language geek, I wondered just how far ChatGPT would go. Would it program in a language from the 1950s? Would it program in a language that used its own character set? Could it write code in one of the languages that wrote its code?

Also: The best AI chatbots: ChatGPT and alternatives to try

And so, I dove in. I’ve used many of the languages I’m spotlighting here, so I’ll take a little walk down memory lane and include some stories about my experience with those I’ve used.

While I haven’t run the code itself, I’ve read through all the generated programs. Most look right, and show the appropriate indicators telling us that the language presented is the language I asked for.

Also: How does ChatGPT work?

I’m telling you this because the headers on all the screenshots are wrong. Most are listed as SQL. For some reason BAL is shown as VBNet, and Prolog is listed as Rust. ChatGPT didn’t make this error last time, but it made today, for all the languages shown here.

And with that, let’s dive in.

Fortran

Fortran (or FORTRAN, as it was depicted back then) stands for Formula Translation. It was developed primarily for scientific and engineering calculations. Even though it dates back to the 1950s, it was often the first language taught to engineering students in the 1970s and 1980s.

Also: This new technology could blow away GPT-4 and everything like it

For me, it was my fourth programming language, after BASIC, PDP-8 assembly language, and PDP-8 binary (yes, I wrote binary code so I could toggle it in on the front panel of an early minicomputer). My Dad generously drove me the hour down to Newark College of Engineering (now NJIT) so I could take their first-year programming course while I was still a sophomore in high school.

Fortran was never a favorite, although it would get most calculation-oriented jobs done. A variation of Fortran is still in use today, but it’s pretty limited to specialty scientific work since many other modern languages do Fortran-level analytics, and do it better.

Here, because of the use of the implicit keyword, it looks like ChatGPT is depicting code written in the Fortran-77 variant.

fortran-77

Even though the label is wrong, the code is Fortran.

Screenshot by David Gewirtz/ZDNET

COBOL

I was a teenaged COBOL programmer. I didn’t know COBOL at the time, but somewhere around 1980 I saw a want ad for a COBOL programmer at the Northeast Regional Data Center of International Paper in Denville, NJ. It was about 40 minutes from my parents’ home, and I needed a summer job. As soon as I managed

Read More... Read More

Are Computer system and Technology Shares Lagging Spark Networks (LOV) This 12 months?

Traders interested in Laptop and Technological innovation shares need to often be hunting to find the ideal-undertaking corporations in the team. Spark Networks, Inc. (LOV) is a stock that can absolutely grab the consideration of quite a few investors, but do its the latest returns review favorably to the sector as a complete? By using a look at the stock’s 12 months-to-day functionality in comparison to its Personal computer and Know-how peers, we may well be capable to response that dilemma.

Spark Networks, Inc. is one of 642 providers in the Personal computer and Technological know-how group. The Laptop or computer and Engineering group now sits at #11 inside the Zacks Sector Rank. The Zacks Sector Rank gauges the energy of our 16 specific sector groups by measuring the typical Zacks Rank of the specific shares within the teams.

The Zacks Rank is a confirmed product that highlights a variety of stocks with the right characteristics to outperform the industry about the up coming a person to 3 months. The technique emphasizes earnings estimate revisions and favors corporations with increasing earnings outlooks. Spark Networks, Inc. is now sporting a Zacks Rank of #1 (Potent Acquire).

The Zacks Consensus Estimate for LOV’s whole-yr earnings has moved 62.5% better within the past quarter. This alerts that analyst sentiment is improving upon and the stock’s earnings outlook is far more beneficial.

Dependent on the most the latest facts, LOV has returned 32.3% so significantly this 12 months. In the meantime, shares in the Pc and Technologies team have acquired about 22.3% on ordinary. This indicates that Spark Networks, Inc. is outperforming the sector as a complete this 12 months.

Perion Community (PERI) is one more Laptop and Technologies inventory that has outperformed the sector so far this year. Since the starting of the year, the stock has returned 34.7%.

The consensus estimate for Perion Network’s present calendar year EPS has greater 4.7% above the earlier 3 months. The stock at this time has a Zacks Rank #1 (Sturdy Obtain).

Seeking extra specifically, Spark Networks, Inc. belongs to the Web – Content material field, a team that consists of 16 particular person stocks and at present sits at #30 in the Zacks Field Rank. This team has attained an regular of 15.8% so considerably this calendar year, so LOV is executing much better in this area. Perion Community is also section of the identical marketplace.

Spark Networks, Inc. and Perion Network could carry on their strong effectiveness, so buyers fascinated in Computer system and Technological know-how shares should continue on to spend close awareness to these stocks.

Want the most current recommendations from Zacks Financial investment Research? Today, you can obtain 7 Very best Shares for the Subsequent 30 Times. Click to get this free of charge report

Spark Networks, Inc. (LOV) : Cost-free Inventory Assessment Report

Perion Community Ltd (PERI) : Free of charge Stock Examination Report

To study this post on Zacks.com click on right here.

Zacks Investment decision Investigation

Read More... Read More