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

Law enforcement crackdown on possible illegal gaming units at dozens of Colorado Springs places

Law enforcement crackdown on possible illegal gaming units at dozens of Colorado Springs places

COLORADO SPRINGS, Colo. (KRDO) — For the very last 5 years, quite a few firms with illegal gambling equipment have prevented penalties — until eventually now.

The Colorado Springs Police Section issued notices to at the very least 32 businesses in Colorado Springs warning them they could potentially be breaking the regulation by having illegal gambling devices.

These devices glimpse comparable to a recreation you would find at places like Dave and Busters, other than for a person crucial difference: prospects anticipate or hope for a financial return. According to legislation enforcement, that’s what can make these gambling devices unlawful. At Dave and Buster’s, consumers get tickets, but illegal devices spit out some monetary value.

“You’re placing income into these movie arcade game titles and you happen to be getting a little something in return of a monetary price,” explained Lieutenant Mark Chacon with the Colorado Springs Law enforcement Division. “It could be a coupon or money acquire.”

Technically, these machines have been illegal given that 2016, but a loophole in the legislation created the law really hard to implement, with unclear language about qualified gambling online games, like the well-liked fish arcade games.

In 2018, legislators, such as District 12 Republican Senator Bob Gardner, amended the law to include specific definitions, closing the loophole and banning all gambling machines outdoors of gambling cities, like Cripple Creek and Black Hawk.

Peggi O’Keefe, the government director of the Colorado Gaming Association, explained unlawful gambling machines are widespread through the point out and a detriment to Colorado’s gaming revenue.

“They’re unregulated,” she said. “There’s no tax which is gathered. You will find oftentimes other unlawful functions that are connected with these arcades, so it seriously is a general public protection concern for both equally residents of the community as well as from a law enforcement standpoint.”

It is why the Colorado Springs Law enforcement Department is cracking down on these illegal equipment now regardless of the regulation remaining in put for the previous five yrs. The agency mentioned it has obtained increased grievances and additional calls to assistance at these illegal gambling enterprises. They have even been the locale of a lot extra major criminal offense, which include “narcotics distribution, shootings, vehicular eluding, and the arrest of armed wished fugitives,” according to CSPD.

But due to the fact the agency hasn’t strictly enforced the regulation, the section is only handing out warnings for now.

“A ton of these enterprises are not conscious that these are not lawful in the state of Colorado,” Chacon said. “That’s why it is actually significant for us to do the instructional section ahead of we even appear at any likely enforcement motion.”

Charlie Chedda’s, a person of the arcade businesses that gained a discover from CSPD, explained to 13 Investigates it isn’t breaking the law simply because it does not have any person financial gambling equipment but in its place hosts arcade contests and tournaments with a monetary prize for the winner.

“Charlie Chedda’s is particularly grateful

Read More

Panera rolls out hand-scanning know-how that has raised privacy concerns

Panera rolls out hand-scanning know-how that has raised privacy concerns
Panera has piloted handprint scanners in two locations so far. The company plans to roll out the technology in additional locations across the country in the coming months.

Panera has piloted handprint scanners in two destinations so considerably. The business strategies to roll out the technologies in extra destinations throughout the state in the coming months.

Justin Sullivan/Getty Visuals

This palm reader will not be equipped to notify your fortune, but it will determine out if you are part of Panera’s loyalty application.

More than the upcoming few months, the bakery-café chain will roll out scanners that can access customers’ credit score card and loyalty account working with their palm. The biometric-gathering engineering, developed by Amazon and called Amazon 1, is previously common in airports, stadiums and Total Foods Sector grocery shops. Panera is anticipated to come to be the to start with national restaurant enterprise to use it.

Panera Bread CEO Niren Chaudhary reported in a press launch last 7 days that the contactless payment method is meant to provide as a ease. But there has been developing problem about palm-recognition technology.

In 2021, a group of U.S. senators questioned Amazon’s facts collection practices and precisely no matter whether biometric information is staying employed for advertising and marketing and monitoring uses.

What does that indicate? The information, analysis and group dialogue discovered listed here is funded by donations from men and women. Make a reward of any amount of money currently to help this useful resource for everyone.

“In distinction with biometric systems like Apple’s Face ID and Touch ID or Samsung Pass, which store biometric details on a user’s machine, Amazon A person reportedly uploads biometric details to the cloud, boosting special security dangers,” the senators’ letter to Amazon CEO Andy Jassy claimed.

Earlier this month, a shopper dependent in New York Town submitted a lawsuit against Amazon declaring that the company did not thoroughly notify clients in Amazon Go stores that their biometric information and facts was staying collected.

Panera said that the palm scanner is optional for buyers, and the organization alone does not store personalized palm data. The food chain also stressed that any personal and own facts shared with Amazon One particular is hardly ever stored on the gadget.

Clients who choose in will also be able to spend by hand-scan

This is how it will get the job done: Just after a short palm scan, Panera prospects can hope to be greeted by name and get personalized meal recommendations based mostly on their choices and previous orders. They will also be ready to pay by just rescanning their palm. In accordance to the company, guests can link their credit rating card to an Amazon Just one ID in “a moment.”

“Our philosophy has been centered all-around leveraging most effective-in-course engineering to create a greater Panera encounter,” Panera’s CEO, Chaudhary, said.

Panera has not specified which places will involve the gadgets, but they have already been piloted at some dining places in St. Louis, Mo., exactly where the chain is headquartered. Panera’s loyalty application involves about 52 million users.

Copyright 2023 NPR. To see much more, pay a visit to https://www.npr.org.

Read More

Booming Electronics Sector to Elevate Foundry Services Market place to Cross US$ 206 Billion in Revenues by 2033, According to Persistence Sector Investigation

Booming Electronics Sector to Elevate Foundry Services Market place to Cross US$ 206 Billion in Revenues by 2033, According to Persistence Sector Investigation
Persistence Market Research

Persistence Marketplace Analysis

Industry Examine on Foundry Services: Increasing Selection of Fabless Companies Outsourcing Their Chip Manufacture to Elevate Foundry Solutions Need!

New York, April 03, 2023 (Globe NEWSWIRE) — The worldwide foundry expert services dimensions is probable to attain US$ 124.6 billion in 2023. All round demand for foundry services will surge at 5.2% CAGR from 2023 to 2033. Accordingly, the globally Foundry Solutions Marketplace will overall a valuation of US$ 206 billion by 2033.  

Electronics sector will retain its dominance in the course of the forecast period. Foundry expert services need in electronics section is forecast to improve at 5% CAGR from 2023 to 2033.

In current yrs, electronics field has been the main conclude-user of foundry services. Components these kinds of as fast digitalization and penetration of 5G online are generating huge demand from customers for electronic goods. To satisfy this desire, electronic corporations are opting for foundry products and services. Adoption of these solutions helps them to streamline their processes and help save costs.

Telecom, pc and networking, and automotive sectors are also getting to be vital end users of foundry expert services. The throughout the world foundry products and services current market is predicted to broaden quickly for the duration of the predicted period as a lot more fabless enterprises outsource their chip manufacture.

Click on Here to Get Free of charge Sample Copy of this Report@ https://www.persistencemarketresearch.com/samples/33402

Also, foundries are exhibiting interest in automation, machine discovering, and analytics. The rewards of these technologies, which include streamlining the creation method and boosting yield with out lowering quality, are what is driving need for them.

Owing to enhanced manufacturing capability and lower charges, distributors are predicted to acknowledge more substantial output contracts, which will consequence in a substantial raise in offer and close source shortages in quite a few sectors.

Vital Takeaways from Foundry Products and services Sector Report:

  • International foundry solutions need is possible to soar at 5.2% CAGR for the duration of the forecast period.

  • By form, 12-inch section will progress at 5.1% CAGR about the subsequent ten many years.

  • By software, electronics section is established to expand at 5.% CAGR by 2033.

  • The United states of america foundry providers marketplace will access a superior of US$ 35.2 billion by 2033.

  • Foundry providers income earnings in China market place will improve at 6.6% CAGR over the upcoming ten several years.

  • Korea foundry solutions sector will show a CAGR of 5.6% concerning 2023 and 2033.

  • Japan foundry services marketplace is established to attain a valuation of US$ 33.4 billion by 2033.

“Surging adoption of digital products and solutions around the world will energy gasoline need for foundry services. Additional, escalating require for streamlining generation processes will enhance the market place.” Suggests a Persistence Market Investigation analyst.

Get Complete Access of this Report@ https://www.persistencemarketresearch.com/checkout/33402

Who is Winning?

International Foundries, Powerchip Technological innovation, Vanguard International Semiconductor, Samsung Semiconductor, Shanghai Huahong Grace Semiconductor Production, DB HiTek, Taiwan Semiconductor Manufacturing, TowerJazz Semiconductor, and Semiconductor Manufacturing Worldwide are

Read More

$166.96 billion Gaming Gizmos Current market is Probably to Increase at 12.7% CAGR throughout the Time period 2022 to 2031

6.96 billion Gaming Gizmos Current market is Probably to Increase at 12.7% CAGR throughout the Time period 2022 to 2031
Gaming Gadgets Market

Gaming Gadgets Market place

Gaming is an activity which involves enjoying a video clip match by controlling a character or an entity in get to finish stories or aims

PORTLAND, 5933 NE Earn SIVERS Travel, #205, UNITED Point out, March 20, 2023 /EINPresswire.com/ — Asia-Pacific is the dominant location in international gaming gizmos market place owing to the simple fact that significant quantity of populace is energetic on social media and existence of establishing nations these as India, China, South Korea, and many others. Moreover, surge in Gaming Gizmos Marketplace Desire, inclination of firms towards expense-successful devices, potent progress in study & preparing, and rising technological infrastructure are expected to give major advancement chances for the industry in Asia-Pacific.

In accordance to a new report released by Allied Market Investigation, titled, “Gaming Gizmos Industry,” The gaming gadgets market measurement was valued at $52.70 billion in 2021, and is believed to arrive at $166.96 billion by 2031, increasing at a CAGR of 12.7% from 2022 to 2031.

Ask for For Sample :- https://www.alliedmarketresearch.com/ask for-sample/17315

Gaming has grow to be just one of the most significant types of amusement in the world in the previous couple of decades. A lot of individuals, particularly more compact small children and young adults, are turning to gaming as their major supply of exciting and amusement. Online games like Fortnite, Minecraft, Entire world of Warcraft, and PlayerUnknown’s Battlegrounds are turning into popular in homes across the earth. Because of to the increase of gaming as a trend, the product sales of gaming units are heading up, as these varieties of equipment are needed to play video games with the highest functionality outputs and the best possible graphical options.

Gaming as articles and media has turn out to be extremely popular in the latest several years. Numerous lets players, Youtubers, and streamers are actively engaged in making content based on gaming and gaming gadgets. Furthermore, several of these material creators and entrepreneurs have occur alongside one another in buy to develop businesses known as e-sports orgs that are exclusively devoted to gaming. This has led to a critical maximize in the range of individuals that are getting into into gaming content generation and e-sports activities, which has led to an enhance in the sales of gaming equipment, as gaming gadgets are required to generate these types of sort of material. Numerous content material creators particularly order many gaming PCs and consoles in purchase to build all kinds of gaming linked articles that may be exceptional to specific platforms, which is further boosting the revenue of gaming products.

Gaming gadgets are specialized equipment that have to have sophisticated technologies and compatible components and software package in get to perform thoroughly. Quite a few gamers in the gaming gadgets sector are hoping to deliver leading of the line, premium items and hardware elements for gaming as they deliver the best expertise and performance although gaming. Nonetheless, the integration of more recent systems into these gizmos also considerably

Read More

Most important Movie Video games Releasing in April 2023

Most important Movie Video games Releasing in April 2023

2023 is shaping up to be a mammoth yr for the movie sport industry, but April doesn’t search as fast paced as it has been in a long time previous. That explained, there are even now some noteworthy online games releasing future month, which include a hugely-anticipated Star Wars video game. In addition to this, gamers are established to once yet again mow down zombie hordes, develop into Sherlock Holmes, and revisit some classics from yesteryear.

Under, you can peep some April’s most significant video recreation releases. Of training course, the record under is not exhaustive. Like every month, there are a metric ton of video games releasing following thirty day period, but this checklist attempts to highlight the most noteworthy new releases and ports dropping. 

Star Wars Jedi: Survivor

Description: “The story of Cal Kestis proceeds in Star Wars Jedi: Survivor, a 3rd-person, galaxy-spanning, action-experience game from Respawn Amusement, formulated in collaboration with Lucasfilm Video games. This narratively driven, solitary-player title picks up 5 yrs following the functions of Star Wars Jedi: Fallen Order™ and follows Cal’s ever more desperate struggle as the galaxy descends more into darkness. Pushed to the edges of the galaxy by the Empire, Cal will discover himself surrounded by threats new and common. As a single of the previous surviving Jedi Knights, Cal is driven to make a stand through the galaxy’s darkest periods – but how significantly is he willing to go to secure himself, his crew, and the legacy of the Jedi Purchase?”

Release Day: April 28 through Pc, PS5, and Xbox Collection X|S

prevsubsequent

Lifeless Island 2

Description: “Lifeless Island 2 is thrilling To start with-Person Motion RPG, attractive, vivid and flooded with zombie an infection. Examine legendary, gore-drenched Los Angeles. Meet up with greater-than-everyday living figures. Slay innumerable foes in exquisitely bloody detail. And evolve to grow to be the best Zombie Slayer! A lethal virus is spreading across Los Angeles, turning its inhabitants into zombies. Bitten, contaminated, but additional than just immune, uncover the truth guiding the outbreak and discover who – or what – you are. Endure, evolve and save the earth!”

Release Day: April 21 via Computer system, PS4, PS5, Xbox A single, Xbox Sequence S, and Xbox Series X

prevup coming

Minecraft Legends

Description: “Discover the mysteries of Minecraft Legends, a new motion technique video game. Check out a light land of prosperous means and lush biomes on the brink of destruction. The ravaging piglins have arrived, and it can be up to you to encourage your allies and lead them in strategic battles to conserve the Overworld!”

Release Day: April 18 via Nintendo Change, Personal computer, PS4, PS5, Xbox A person, Xbox Sequence S, and Xbox Sequence X

prevfuture

Advance Wars 1+2: Re-Boot Camp

Description: “Lead Andy, Max, Sami and other colourful Commanding Officers in a enjoyment turn-based approach sport. Your abilities is desired as you transfer land, air, and naval units throughout the match map. Simply call on your Commanding Officers

Read More