DEV Community

Cover image for Peregrine Rewrite - The python-like language that's as fast as C

Peregrine Rewrite - The python-like language that's as fast as C

Ethan Olchik on October 09, 2021

Hey guys! My name is Ethan, and I'm one of 12 Peregrine developers. Some of you may already know what Peregrine is, some of you don't, but this art...
Collapse
 
lewiscowles1986 profile image
Lewis Cowles

People can already write better python and go through optimization to get python to "work faster".

Ultimately I doubt it's speed is your limiting factor. So why peregrine? Because it's easy to work on a new shiny and hard to fix what is there, or convince those within the community to follow suit.

Well. Done, have fun. But I wish I would see less fracturing and attempts to take from a decent, well established language.

Collapse
 
schollii profile image
schollii

Please don't make the same mistake as Nim: beautiful python-like syntax, type inference etc but misses one super important capability that made Go become more popular despite lack of generics and try/except, and that's first class concurrent processing which nowadays is essential. Don't make it a library, rather provide some language constructs that build on the ideas of Go channels and even maybe address some of their limitations (there are some).

Collapse
 
aboominister25 profile image
Rayyan Cyclegar

Hm, isn't an eventual goal of this language compatibility with python libraries? If it is, I'm not sure how this would work, since for concurrency like this, you'd need to get rid of the GIL, which a fair bit of C python libraries depend on.

Collapse
 
aboominister25 profile image
Rayyan Cyclegar • Edited

Alright, so this seems like an interesting project, and I'm excited to see where you guys get with this. Now, you've said that python is "slow". The reality is that this is relative on the application. For most tasks, python is plenty fast enough, and it's not like you can't optimize it, there's tools such as PyPy, Numba, and cython, which can provide speedups. In a lot of cases however, any speedup at all is unnecessary, since python is fast enough for a good bit of tasks. However, if you're writing something like a 3D game, or something like a kernel, python probably isn't the right choice for that. I personally have never found python to be too slow for anything I've done. That being said, I have mostly stuck to web development, where most of the slowness in your applications are restricted to network related stuff, which would be the same, no matter what language you use.

Collapse
 
rechie_kho profile image
Techie Kho

Wow, my drawings appears on this website (I helped to draw the peregrine banner + logo)! I hope to contribute to code, too, but this is the first time hearing V and I only get into lower level programming like C for a month (I really like pointers!).

Collapse
 
ethanolchik profile image
Ethan Olchik

we switched to python, so hopefully more people can contribute!

Collapse
 
rechie_kho profile image
Techie Kho

That is great!

Collapse
 
salman0ansari profile image
Mohd Salman Ansari

i have been following this project since start
Good luck with devlopment.

Collapse
 
haarts profile image
Harm Aarts

That is not a small task! Good luck!

Collapse
 
saptakbhoumik profile image
SaptakBhoumik

Thanks

Collapse
 
asvald profile image
Asvald

I think I've read it, not peregrine but swallow...

Collapse
 
ethanolchik profile image
Ethan Olchik

Yeah, we changed the name

Collapse
 
itsnikhil profile image
Nikhil Taneja

Woah that's a big commitment.. good luck Peregrine team ❤️

Collapse
 
ethanolchik profile image
Ethan Olchik

thanks!

Collapse
 
keetsscrimalittle1 profile image
KeetsScrimalittle

Sounds interesting. A 3 syllable name is not a big issue. Good luck

Collapse
 
slidenerd profile image
slidenerd

i want your project to succeed but i think your name Peregrine is very difficult and keep a lot of people away. Can you not find a simpler name? Maybe call it kobra or something

Collapse
 
ethanolchik profile image
Ethan Olchik

Sorry but we're not planning to change the name any time soon.

Collapse
 
rehman000 profile image
Rehman Arshad

I read the last article and I'm wishing all the devs. Best of luck. This is no easy task. I've already starred the repo, I might check it out later.

Collapse
 
ethanolchik profile image
Ethan Olchik

Thanks for the support!

Collapse
 
hegade profile image
s hegade

Very excited to use :)

Collapse
 
souksyp profile image
Souk Syp.

Written in V?? 😱

Collapse
 
allanjaba profile image
allan-jaba

What of swallow?