Sambar to Love, Go Lang and WebAssembley by ChatGPT

Meiyappan Kannappa
3 min readDec 20, 2022

Recent buzzword ChatGPT, What is ChatGPT? Chat Generative Pre-Trainer Transformer (ChatGPT) is an AI Chatbot that can converse, write code, articles, help you tell reciepe for favourite dish. It is developed by OpenAPI on top of GPT3.5. It can converse with you understanding the context.

So I thought of playing with it. To make it fun, I thought of conversing with ChatGPT for my favourite food Idli.

Reciepe for Sambhar

My first question is “What is the side dish for Idli?”

Interesting the answer is

I continued the conversation asking, “how to prepare it?” (reciepe to prepare sambar)So I can test whether it understand the context.

Yes it did understand the context, and generated below response. Awesome

Does ChatGPT can talk about love?

My next question to ChatGPT is about Love. “What is Love” and “Am In Love”. Its fun

Now Comes Technology

Asking the ChatGPT bot about food and love, i decided to check whether it can write code in some technologies. I decided to choose GoLang and how to write WASM, web assembley module in Golang.

WASM — WebAssembly is a binary instruction format and virtual machine that brings near-native performance to web browser applications, and allows developers to build high-speed web apps in the language of their choice (Rust, C, Golang, Typescript).

Lets see what ChatGPT responds

Hmm, More or less same. Now with the context I would seek ChatGPT to provide me with Hello World code in WASM.

It worked as well, I responded back with Hello World code, and detailed explanation for it.

How Can we make it Fail :)

ChatGPT is large language model trained by OpenAI and do not have the ability to information in the internet. The knowledge is based on the information that was available at the time of its training by OpenAI, which was up until 2021.

So when I ask current weather information, It cannot respond back.

Conclusion

Like Github CoPilot which created a buzz in the industry in 2021, ChatGPT is new buzzword and both augments human in Coding, learning, understanding concepts with pre trained data model. Where CoPilot supports developers in programming, ChatGPT goes extra mile to converse with you and aide in various perspectives.

--

--

Meiyappan Kannappa

Technical enthusiast, daydreamer. Design of involute software architecture for digital transformation, sustainability and cost optimization.