Skip to main content

TrumpScript programming language wants to make Python great again

Donald Trump
Gage Skidmore/Flickr
To inspire the youth to deal with mathematics and programming, it’s important to have role models, both good and bad. It seems then that the efforts of two students from Rice University, Chris Brown and Sam Shadwell, provide an excellent example of this. Their recently released TrumpScript is a heavily modified version of the Python programming language, created in 20 hours during a hackathon. And as you probably guessed, it’s based on the Internet’s favorite presidential candidate: Donald Trump.

Small tidbits of Trump’s political views and his character can be found, not necessarily discretely, strewn about in TrumpScript. Numbers with a value lower than 1 million are not allowed to be used in the code … because bigger numbers are better, period. This language also prevents users from using import statements. So there’s no foreign code in these programs, because who’d want to promote digital immigration? In addition, the programming language quite ingeniously forces programmers to use only certain words as variables. Included are the most popular English words and Trump’s favorite words, as well as names of current politicians.

The creators go off on a note regarding dismissing failure towards the end of their GitHub page. “ … Most importantly, Trump doesn’t like to talk about his failures. So a lot of the time your code will fail, and it will do so silently. Just think of debugging as a fun little game.”

Incidentally, you won’t even be able to take part in this code if you’re from China or Mexico because, as the creators puts it, the code won’t comply. After all, who knows what crucial technological secrets foreigners might get their hands on?

You might be thinking “I wish I really knew how to program.” An understandable sentiment. But having studied programming for a little less than five months now, I’m already convinced that having a program not tell you when something’s wrong is a critical flaw.

Editors' Recommendations

GPT-4 claims to be 40% better at producing ‘factual responses’
OpenAI announced its latest iteration of ChatGPT with greater accuracy and creativity.

GPT-4 is now official, having been announced by OpenAI on Tuesday with several updates focusing on accuracy, creative expression, and collaboration -- along with a focus on safer and more accurate content.

ChatGPT Plus users will be able to try the new model today, along with developers through the API. OpenAI President and Co-Founder, Greg Brockman, plans to discuss with developers some of the capabilities and limitations of GPT-4 in a live stream demo at 1 p.m. PT.

Read more
These are the new AI features coming to Gmail, Google Docs, and Sheets
Google has announced a host of new writing focused AI features for its Workspace suite.

Google Workspace is getting a generative AI boost at the same time that many other productivity suites are adding new features that allow users to simplify clerical tasks with just a prompt.

Following up on the visual redesign to Google Docs and the announcement of Google Bard, these new AI features are the company's latest attempt to bring more buzzy goodness to its most popular applications.

Read more
Edge Copilot finally delivers on Microsoft’s Bing Chat promises
Here's Microsoft's example of how Bing chat will work in the future.

Microsoft is finally making the version of Bing Chat we heard about in February a reality. The latest version of Microsoft Edge (111.0.1661.41) includes the Bing Copoilot sidebar, which allows you to chat, generate AI content, and get insights into topics powered by AI.

This is the form of Bing Chat Microsoft originally pitched. Since its launch, the chat portion of Bing Chat has been available through a waitlist that, according to Microsoft, has amassed millions of sign-ups. However, Microsoft also talked about Bing Copilot, which would live in the Edge sidebar and open up the possibility of generating emails, blog posts, and more, as well as provide context for whatever web page you were on.

Read more