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

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

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 to schedule

Read More

Late Architecture with Purposeful Programming

Late Architecture with Purposeful Programming

A lot of methods to computer software architecture believe that the architecture is planned at the commencing. However, architecture prepared in this way is hard to alter afterwards. Purposeful programming can aid achieve loose coupling to the place that progress setting up can be retained to a least, and architectural conclusions can be improved afterwards.

Michael Sperber spoke about computer software architecture and purposeful programming at OOP 2023 Digital.

Sperber gave the instance of dividing up the system’s code among the its developing blocks. This is a particularly essential kind of architectural decision to get the job done on different developing blocks separately, probably with different teams. Just one way to do this is to use Domain-Driven Design and style (DDD) for the coarse-grain creating blocks – bounded contexts:

&#13

DDD says you must discover bounded contexts by way of context mapping – at the commencing. Nevertheless, if you get the boundaries involving the contexts improper, you reduce a great deal of the added benefits. And you will get them improper, at the very least a little bit – and then it’s hard to move them afterwards.

&#13

According to Sperber, useful programming allows late architecture and cuts down coupling when compared to OOP. In purchase to defer macroarchitecture decisions, we will have to generally decouple, Sperber argued. Elements in practical programming are essentially just knowledge types and functions, and these features perform with out mutable condition, he claimed. This can make dependencies specific and coupling appreciably looser than with regular OO elements. This in convert permits us to create functionality that is independent of the macroarchitecture, Sperber explained.

Sperber produced clear that useful programming is not “just like OOP only devoid of mutable point out”. It arrives with its have procedures and tradition for domain modelling, abstraction, and software design. You can get some of the advantages just by adopting immutability in your OO undertaking. To get all of them, you need to dive further, and use a correct functional language, as Sperber described:

&#13

Useful architecture tends to make considerable use of superior abstraction, to put into practice reusable elements, and, much more importantly, supple area designs that foresee the future. In exploring and building these area products, functional programmers usually make use of the prosperous vocabulary furnished by arithmetic. The ensuing abstractions are essentially enabled by the state-of-the-art abstraction amenities made available by functional languages.

&#13

InfoQ interviewed Michael Sperber about how our latest toolbox of architectural procedures predisposes us to lousy decisions that are tricky to undo later on, and what to do about this trouble.

InfoQ: What are the difficulties of defining the macroarchitecture at the start off of a challenge?

&#13

Michael Sperber: A preferred definition of program architecture is that it’s the selections that are tricky to improve afterwards. Performing this at the beginning indicates carrying out it when you have the least data. For that reason, there’s a fantastic likelihood the choices are completely wrong.

&#13

InfoQ: What makes it

Read More

RISD Continuing Education and learning Reaches Teen Artists Globally With On the internet Youth Programming

RISD Continuing Education and learning Reaches Teen Artists Globally With On the internet Youth Programming

Considering the fact that 2020, the advancement of efficient and engaging online art and style programming for teens has been a focus of Rhode Island University of Style Continuing Education and learning (RISD CE). In addition to on the internet courses and certification plans for grownups, RISD CE now features two formats of on the net engagement especially developed to meet up with the needs and ambitions of teen students across the globe.

Teenager artists from any place in the planet can now participate in courses taught by academics, innovative practitioners, business owners, and business leaders who progress RISD CE’s mission to supply an art and style and design schooling for absolutely everyone! Learners appear with unique objectives and are achieved by instructors who deliver opportunities to expand their worldview and hone important visible interaction expertise relevant to any profession path.

RISD CE teenager on the web classes allow pupils ages 13 to 17 to check out just one or much more visible arts and layout subjects. They go to weekly dwell Zoom conferences, which foster relationship and group constructing in the on-line room.

Our very first live course experienced learners pair up to attract blind contour portraits of each other while asking thoughts about who they were being, where they lived, likes and dislikes. Afterwards, every person shared their portraits and informed us what they had uncovered about their drawing partner. The blind contour portraits received anyone laughing and created a class connection. It certainly set the tone for the relaxation of the session and I could see a marked improvement in student interaction.

Bunky Hurter, Vogue Illustration instructor

In addition to stay Zoom meetings, college students can assume to assessment asynchronous program elements, operate on tasks independently, and receive narrative assessments with personalized responses.

Summer time 2023 teen on-line courses are provided in two sessions from June 25 to August 5.

For high faculty college students ages 15 to 18 hunting for a additional intensive expertise, CE gives RISD’s Highly developed Software On line, a 12 months-spherical on line different to its household summer months pre-school plan. This certification plan is for changemakers who want to produce their artwork follow, learn new ways to collaborate, and experience the pursuit of artwork and design subjects in depth. The Advanced Program On the internet will allow students the chance to emphasis on a enthusiasm, mirror on contemporary circumstances, and produce a upcoming they’re thrilled about.

Summer 2023 Advanced System On the web courses are presented in two classes from June 17 to August 13.

RISD CE Summer months 2023 is now enrolling!

To find out more, check out ce.risd.edu.

Read More

New streaming application to ‘Max’ programming from HBO, Discovery

New streaming application to ‘Max’ programming from HBO, Discovery

Warner Bros. Discovery unveiled a streaming company Wednesday combining legendary HBO programming these types of as “The Sopranos” with a combine of unscripted Tv series in a press to experience more subscribers from what so considerably has been a muddled media merger.

The $16-per-thirty day period support, known as Max, will be introduced May perhaps 23 in the U.S. and immediately change the company’s existing HBO Max company in what is getting promised as a seamless transition. Max will progressively come to be available in the rest of the planet, with Latin The usa upcoming up on the slate.

The present Discovery Moreover app featuring reality and unscripted series such as “Fixer Upper” and “Naked and Fearful” from a selection of Tv set networks will continue on to be available. Which is even as all that programming is built out there in the new Max app, which will be marketed with the tagline “The One particular To Watch.”

The changeover comes a yr immediately after the completion of a about $43 billion offer that spun off the AT&T’s WarnerMedia Division that contains HBO, CNN and TBS into Discovery, whose secure consists of the TLC, HGTV, Magnolia and Food stuff networks.

When the deal was declared in 2021, Warner Bros. Learn CEO David Zaslav envisioned it generating “the finest media company in the world” backed by a large library of films, Television set sequence, documentaries and kid’s programming. The purpose was to stand out amid an array of streaming options competing for subscribers at a time many households are trimming discretionary expending amid stubbornly superior inflation.

With Max now on the verge of rolling out, Zaslav reported he continue to sees big things forward.

“This is our rendezvous with future,” he declared all through a presentation in the exact studio the place movies such as “Casablanca” and “A Streetcar Named Motivation” have been built. Individuals films, as properly as other Warner Bros. films, will be available in Max, which Zaslav hailed as “the streaming version of will have to-see Television.” Zaslav hinted that are living sports gatherings and news will be extra to Max ahead of the finish of the yr.

Provided that the Max app will deliver more pedestrian programming from the Discovery networks together with the boundary-breaking series that have been HBO’s hallmark, Warner Bros. Discovery executives periodically emphasized HBO would continue being the similar groundbreaking network that lately prompted a stir with the series “The Very last of Us,” and is now making waves with the remaining year of “Succession.”

Toward that finish, the company explained it would be asserting another offshoot of its most watched sequence, “Match of Thrones,” and is producing a new stay-motion “Harry Potter” sequence showcasing a unique forged from the well-liked movie franchise primarily based on the publications by J.K. Rowling.

Warner Bros. Discovery is hoping the Max application helps flip the tide immediately after a calendar year of turbulence.

Due to the fact having about the mixed company, Zaslav has been shedding

Read More

I used ChatGPT to write the same routine in 12 top programming languages. Here’s how it did

I used ChatGPT to write the same routine in 12 top programming languages. Here’s how it did
lang-1

David Gewirtz/ZDNET (with a little help from ChatGPT)

Over the past few months, we’ve all come to know that ChatGPT can write code. I gave it a number of tests in PHP and WordPress that showed both the strengths and weaknesses of ChatGPT’s coding capabilities.

Also: Okay, so ChatGPT just debugged my code. For real.

But how far does ChatGPT’s coding knowledge extend? In this article, I’m going to throw the classic “Hello, world” programming assignment against the twelve popular languages in O’Reilly Media’s popularity rankings for 2023.

Because “Hello, world” can often be coded in one line, I’m adding a slight wrinkle, having ChatGPT present “Hello, world” ten times, each time incrementing a counter value. I’m also asking it to check the time and begin each sequence with “Good morning,” “Good afternoon,” or “Good evening.”

Also: How to use ChatGPT: What you need to know now

That should give us a look at program flow and some intrinsic functions as well, but still keep the code small enough that I can include a dozen screenshots in this article.

Here’s the prompt:

Write a program in ____ that outputs “Good morning,” “Good afternoon,” or “Good evening” based on what time it is here in Oregon, and then outputs ten lines containing the loop index (beginning with 1), a space, and then the words “Hello, world!”.

For each programming language, I also asked ChatGPT to describe its primary use. Here’s the prompt I used for this query:

For each of the following languages, write a one-sentence description of its primary use and differentiating factor: Java, Python, Rust, Go, C++, JavaScript, C#, C, TypeScript, R, Kotlin, Scala.

Now, let’s look at each language.

Java

ChatGPT describes Java as, “A general-purpose language used primarily for building desktop, web, and mobile applications, and known for its ‘write once, run anywhere’ philosophy.”

Also: The best AI art generators to try

Java was originally developed by Sun Microsystems, but when Oracle bought Sun, it also bought Java. While the Java spec is open, the language is owned by Oracle. This has led to some spectacular legal fireworks over the years.

Here’s ChatGPT’s code:

java

Screenshot by David Gewirtz/ZDNET

Python

ChatGPT describes Python as, “A general-purpose language used for data analysis, artificial intelligence, web development, and automation, and known for its readability and ease of use.”

Also: How to write better ChatGPT prompts

My advice: if you plan to learn to code for AI applications, learn Python. Almost all AI code has tight Python integration.

Here’s ChatGPT’s code:

python

Screenshot by David Gewirtz/ZDNET

Rust

ChatGPT describes Rust as, “A systems programming language used for building high-performance and reliable software, and known for its memory safety and thread safety guarantees.”

Here’s ChatGPT’s code:

rust

Screenshot by David Gewirtz/ZDNET

Go

ChatGPT describes Go as, “A systems programming language used for building scalable and efficient network and server applications, and known for its simplicity and built-in concurrency features.”

Also: How to make ChatGPT provide sources and citations

Go is open source, but it’s

Read More

Global Programming Language Training Market size to grow by USD 5,375.55 million from 2022 to 2027, Driven by the increased emphasis on blended learning

Global Programming Language Training Market size to grow by USD 5,375.55 million from 2022 to 2027, Driven by the increased emphasis on blended learning

NEW YORK , April 3, 2023 /PRNewswire/ — Technavio has been monitoring the programming language training market and it is estimated to grow by USD 5,375.55 million from 2022 to 2027. The market’s growth momentum will progress at a CAGR of 15.15% during the forecast period. The report offers an up-to-date analysis regarding the current market scenario, the latest trends and drivers, and the overall market environment. The growing emphasis on blended learning drives the growth of the programming language training market. The blended learning approach combines traditional classroom activities with online learning opportunities. One of the elements promoting the development of this model is the rising emphasis on online training. The convenience and flexibility that the mixed approach offers to learners is the main driver behind its adoption in programming language training. For more insights on the historic period (2017 to 2021) and forecast market size (2023 to 2027) – Request a sample report

Technavio has announced its latest market research report titled Global Programming Language Training Market 2023-2027

Technavio has announced its latest market research report titled Global Programming Language Training Market 2023-2027

Programming Language Training Market 2023-2027: Scope

Technavio presents a detailed picture of the market by the way of study, synthesis, and summation of data from multiple sources. The programming language training market report covers the following areas:

Frequently Asked Questions:

  • Based on segmentation by product, which is the leading segment in the market?
    Based on the product, the market witnessed maximum growth in the online segment

  • At what rate is the market projected to grow?
    The market is projected to grow at a CAGR of 15.15% during the forecast period.

  • Who are the top players in the market?
    Aptech Ltd., Coursera Inc., DataCamp Inc., edX Inc., Global Knowledge Training LLC, Learning Tree International Inc., NetCom Learning, NIIT Ltd., Udacity Inc., and Udemy Inc. are the top players in the market.

Programming Language Training Market 2023-2027: Vendor Analysis

The market is fragmented, and the degree of fragmentation will accelerate during the forecast period. Aptech Ltd., Coursera Inc., DataCamp Inc., edX Inc., Global Knowledge Training LLC, Learning Tree International Inc., NetCom Learning, NIIT Ltd., Udacity Inc., and Udemy Inc. are some of the major market participants. Although the increased adoption of boot camps by developing economies will offer immense growth opportunities, the availability of open online educational resources is likely to pose a challenge for market vendors. In a bid to help players strengthen their market foothold, this programming language training market forecast report provides a detailed analysis of the leading market vendors. The report also empowers industry honchos with information on the competitive landscape and insights into the different product offerings offered by various companies.

Vendor Offerings –

  • Aptech Ltd. – The company offers training on programming languages such as C++ and .NET.

  • Coursera Inc. – The company offers training on programming languages and technologies such as C++, .NET, and Linux.

  • DataCamp Inc. – The company offers training on programming languages such as R and Python.

What’s New? 

  • Special coverage on the RussiaUkraine war; global inflation; recovery

Read More