正在加载视频...

视频加载失败

Who said Python isn't a production grade lanugage?

242,069 次观看 • 1 年前 •via X (Twitter)

49 条评论

Ande Jacobs 的头像
Ande Jacobs1 年前

I mean if your python is just a wrapper for libraries written in c that do the heavy lifting.

comma 的头像
comma1 年前

We used to do this, but openpilot is largely moving in the direction these days. New UI ships next release that drops C++ Qt+Wayland for a much simpler and more performant Python version.

john 的头像
john1 年前

@HeadBand42 If you managed to make C++ slower than Python you must have no clue what you're doing

comma 的头像
comma1 年前

@HeadBand42 Of course it's possible to make it fast in C++ too, but the point is that there's more to the choice than C++=good and Python=bad. The old stack was complex and hard to reason about, but the new one is fast (even though it's Python) because you know exactly what's happening.

SBA 的头像
SBA1 年前

Imagine it was C

comma 的头像
comma1 年前

Would it drive better?

SBA 的头像
SBA1 年前

Only one way to find out.

max 的头像
max1 年前

> Production-grade Python code > Look inside > Python API that calls C code

Co 的头像
Co1 年前

"production grade" is the "military grade" of the software engineering world.

Lang 的头像
Lang1 年前

Looking great driving straight, not changing lanes by itself yet.

Eli Yumn 的头像
Eli Yumn1 年前

this brings a whole new meaning to "updating drivers"

Moultrie Ball 的头像
Moultrie Ball1 年前

Is all the compute handled by the device in the windshield? No way!

comma 的头像
comma1 年前

Yes, all compute is local on the comma 3X

chetan 的头像
chetan1 年前

It works, but at what cost?

comma 的头像
comma1 年前

$999 on

Abhik Sarkar e/acc 的头像
Abhik Sarkar e/acc1 年前

@ThePrimeagen would be sad.

comma 的头像
comma1 年前

@ThePrimeagen Because he hasn’t tried openpilot yet?

juan 🛡️ 的头像
juan 🛡️1 年前

I think I'll finally give it a shot and get a comma next month!

void. 的头像
void.1 年前

i swear i didn't.

NA 的头像
NA1 年前

Do yo support indian roads?

comma 的头像
comma1 年前

openpilot is trained 50-50 on US and international data, so it works anywhere with roads. We have a handful of Indian users.

NA 的头像
NA1 年前

Great to hear that, is there a way to be part of your model training program or maybe sign up for an international launch?

comma 的头像
comma1 年前

yes! the comma 3X shows you how to upload to get in the training set, and tells you how much of your driving is used.

NA 的头像
NA1 年前

Great thanks, will explore more on this!

network_pun 的头像
network_pun1 年前

it's wild the amount of static about python is in this thread. Bitching about how people make their sausage is such an insufferable waste of communication. You think you can do it better, then do it better. Yap less.

Rui Silva 的头像
Rui Silva1 年前

Who said you need to proofread before posting?

Matjaž Gazvoda 的头像
Matjaž Gazvoda1 年前

okay chill you are on a highway

lwiza 的头像
lwiza1 年前

I would NOT trust this car 😭

Krzysztof 的头像
Krzysztof1 年前

C++ and ROS2 are the kings

Dan Groves 的头像
Dan Groves1 年前

Could have coded it to not hog the middle lanes

warlord cavey ∿ 的头像
warlord cavey ∿1 年前

lol

Teddy Albina 的头像
Teddy Albina1 年前

Thank all the C and C++ guys doing all the work 👍

Simba TLK - The Unreserved Profiteering Brahmin 的头像
Simba TLK - The Unreserved Profiteering Brahmin1 年前

Python is literally a prototyping language. Sadly we didn't include a pathway from prototype to production grade code transformer. Now we are stuck with whatever we have - a gazillion versions, broken dependencies, GIL!

vinay 的头像
vinay1 年前

amazing rage bait. free marketing.

CleoParadise 的头像
CleoParadise1 年前

oh wow cruise control ...

comma 的头像
comma1 年前

in Python!

Azwan HM 👨🏻‍💻📊 的头像
Azwan HM 👨🏻‍💻📊1 年前

But it's slower by 2ms bro

Fume 的头像
Fume1 年前

so this is a lane keeping device?

🎄Zukaarimoto Zukirinkutoku🎄 的头像
🎄Zukaarimoto Zukirinkutoku🎄1 年前

Here a Python dev, every language is suitable to be production ready if the team has enough skills and knowledge Python is slower than other languages? True, but if everyone were looking for the maximum performance they would be coding in assembly xD

Saakdeep Insayeed Hur 的头像
Saakdeep Insayeed Hur1 年前

It's all fun and games til a TypeError at runtime wraps you around a fucking tree 💀

The Engineer 的头像
The Engineer1 年前

The fact that you've open sourced the source code makes this even more based

Dawid Weltrowski 的头像
Dawid Weltrowski1 年前

So our life depends on Python speed? Scary!

cristianku 的头像
cristianku1 年前

I 💕 python . Greetings from 🇨🇭

StevenFu 的头像
StevenFu1 年前

People who run 100k for loops.

comma 的头像
comma1 年前

That’s too many

Kavu Stock 的头像
Kavu Stock1 年前

Nobody remembers this cartoon?

Elastep 的头像
Elastep1 年前

Got low memory in the middle of today’s highway drive. No way I could restart my comma during drive. So, I guess it’s not that great?

billdozer 的头像
billdozer1 年前

Is that a 5th gen CR-V?

War Criminal Greg 的头像
War Criminal Greg1 年前

Then why do you need all that janky C++ then huh? Huh?

相关视频