Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
September 29, 2021 11:46 am GMT

Swallow- A new programming language with python like syntax but as fast as c(currently under devolopment)

TL;DR

Swallow is basically a programming language with python-like syntax but it is statically typed and as fast as c made by me and my friends. It is currently under development. Repo:- https://github.com/Swallow-lang/swallow

About

If you know python then you most probably know that python is very easy to use but also very slow. Which is kind of annoying. To solve this me and my friends are working on a new programming language named swallow(which is named after a bird and their syntax is very similar. Swallow gets transcompiled to c thus allowing it to run as fast as c. Please note that this language is still not complete. I hope you will love it

Benchmark

I have told many times that swallow is as fast as c and to prove it I will show you some benchmark
image
Here I calculated the Fibonacci series recursively from 0 to 40 and python(left side) took 32secs whereas swallow(right side) took only 1sec thus making it 32 times faster. Also, you can see that its syntax is very similar to that of python. For comparison here is a benchmark with c
image
And as you can see that swallow is as fast as c(both took 1sec)

Link

Github- https://github.com/Swallow-lang/swallow
Thank you all for reading. If you are excited about it please star the repo and click on the watch button so that you don't miss any updates. We want to release version 0.0.1 by March so please contribute


Original Link: https://dev.to/saptakbhoumik/swallow-a-new-programming-language-with-python-like-syntax-but-as-fast-as-c-currently-under-devolopment-2of4

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To