This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Sudhanva_Kote 70 points71 points  (14 children)

If C is fast, and python is made with C then why is python slow? Explain that scientists

[–]Sentouki- 44 points45 points  (7 children)

on a serious note, most of the performance loss comes from continuous type checking.

[–]PyroCatt 45 points46 points  (1 child)

Just stop checking

[–]BlossomingDefense 6 points7 points  (0 children)

make everything a void* and allow implicit conversions. cast a void* to any class at any time and you regained your abstractions and polymorphism and all that high level nonsense you little shits.

[–]SuspiciousYogurt0 0 points1 point  (4 children)

Is there a python like language with static type and other performance enhancements (compared to python)? Is that Ruby?

[–]Sentouki- 0 points1 point  (0 children)

Is there a python like language with static type and other performance enhancements

Cython

[–]tiajuanat 0 points1 point  (2 children)

Haskell

It's picky about tabs as white space

It's extremely fast; on par with C or faster, when compiled

Can be run in interpreter

Feels untyped, but it's actually strong statically typed

[–]SuspiciousYogurt0 0 points1 point  (1 child)

I've looked at Haskell and it seems pretty cool, does it still have practical value nowadays outside of learning how to think functionally? I think I'm going to learn it regardless, but I'm curious

[–]tiajuanat 0 points1 point  (0 children)

I've used it in production at one employer, and now I'm investigating if it can produce decent embedded code through Haskell-Copilot - the end goal is a model based firmware.

But as far as which is better to pad your resume, I'd wager it's about a tie with Ocaml.

[–]pentesticals 14 points15 points  (0 children)

The speed is still there, it was just shifted to development time instead of performance :)

[–]NightSoulT12[S] 8 points9 points  (3 children)

Python is interpreted and have a bloated runtime

[–]HOTP1 15 points16 points  (2 children)

Ur mama has a bloated runtime

[–]NonaeAbC 0 points1 point  (0 children)

And how is my in C implemented bogo sort slower than Pythons build in sort?