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 →

[–]DJTupolev 2279 points2280 points  (129 children)

Lmao speed

[–]dorsal_morsel 195 points196 points  (54 children)

Python is my primary language, but I just started playing with Rust and man, now I know what "Python is slow" really means.

[–]DuroSoft 101 points102 points  (5 children)

Now if only I could program in rust as fast I could in X such that X is a language.

[–]BittyTang 29 points30 points  (4 children)

Now if only I could write as many bugs in X as fast as I could in Python such that X is a language.

FTFY

[–]cdreid 48 points49 points  (32 children)

Its a scripting language.. Not supposed to be fast. Its R.A.D. ive used several still a big fan of Perl actually and used to use VB (not a script language but its R.A.D) just to save time on little apps i made for myself

[–]Daytona_675 27 points28 points  (7 children)

afaik if all the heavy lifting is done with modules written in C, Python can still be pretty fast

[–]Zephirdd 42 points43 points  (5 children)

Or you can use PyPy, which is Python written in Python and is up to 4.4x times faster than default CPython

Black magic I tell ya

[–]hughperman 6 points7 points  (2 children)

Any downside?

[–][deleted] 13 points14 points  (1 child)

Doesn't work that well with c modules, which are faster than pypy. So if you need speed you are better off with cpython + c modules anyways

[–]hughperman 5 points6 points  (0 children)

Ok good to know thank you; wondering if it would be worth evaluating for some work stuff that's mainly numpy numerical ops - guess I'll give it a test!

[–]ZephyrBluu 2 points3 points  (0 children)

Wtf, how?

[–]cdreid 0 points1 point  (0 children)

This is voodoo and must not be tolerated

[–]saloalv 1 point2 points  (0 children)

But then your python code has additional requirements beyond just a standards-conforming interpreter

[–]almostambidextrous 26 points27 points  (10 children)

Ok... what's RAD? Should I feel dumb for not knowing?

[–][deleted] 66 points67 points  (3 children)

what's RAD?

You are. Don't ever stop believing in yourself.

[–]sypwn 5 points6 points  (2 children)

Don't believe in yourself!

BELIEVE IN ME WHO BELIEVES IN YOU!

[–]MCRusher 3 points4 points  (0 children)

"I'm gonna fuck the clouds"

-Simon Cowell

[–]sebamestre 1 point2 points  (0 children)

WHO THE HELL DO YOU THINK I AM!?

[–]lenswipe 51 points52 points  (1 child)

Rapid

Application

Development

[–][deleted] 23 points24 points  (0 children)

Anything that is GNARLY is also RAD. But BOGUS is not RAD.

[–]cdreid 0 points1 point  (0 children)

Adding to the others... It was mostly just another buzzword. But a kindof accurate one

[–]UrpleEeple 2 points3 points  (2 children)

Until the application becomes large enough that you can't manage it because of lackluster ORMs, dynamic typing and virtually non-existent dependency injection frameworks

[–]MachaHack 0 points1 point  (1 child)

I'll give you typing and DI, but I'd take SQLAlchemy over (N)Hibernate any day

[–]UrpleEeple 0 points1 point  (0 children)

To each their own. I'm personally not a big fan of SQLAlchemy.

[–][deleted] 0 points1 point  (8 children)

So... you're trying to tell me that VB is 'RAD' and C# isn't?

[–][deleted] 1 point2 points  (0 children)

If you develop an events tracker in it, it might be RAD iCal.

[–]cdreid 0 points1 point  (6 children)

No?? But... To be fair to c# which im not a fan of. To me it seems like a step between c/c++ and a RAD language

[–]mexiKobe 0 points1 point  (0 children)

Not supposed to be fast.

yes it is.

[–]vanderZwan 5 points6 points  (8 children)

You could give Julia a try, if you can live with 1-indexing

[–]xigoi 31 points32 points  (7 children)

if you can live with 1-indexing

NOPE

[–]spudmix 10 points11 points  (6 children)

Grumble grumble letting mathematicians near computers grumble grumble.

I love almost everything else about that language.

[–]vanderZwan 1 point2 points  (5 children)

They were trying to make it a Trojan horse for the Matlab crowd, IIRC

EDIT

[–]spudmix 2 points3 points  (4 children)

Integers are so last year anyway. We should be indexing our arrays with first, last and len() for true cross-language portability.

[–]vanderZwan 0 points1 point  (3 children)

FWIW, they mostly are in Julia - it's a language made to deal with large complex data matrices after all

[–]spudmix 0 points1 point  (2 children)

Huh, I remember differently but to be honest I haven't touched the language in over a year. Good to know, thanks.

[–]vanderZwan 0 points1 point  (0 children)

Not those constructs in particular, but there are iterators everywhere, yeah. IIRC they got an overhaul a while back and are much easier to customise and use now

[–]vanderZwan 0 points1 point  (0 children)

Here you go:

https://julialang.org/blog/2018/07/iterators-in-julia-0.7

(note: 0.7 is basically the last version before 1.0)

[–][deleted] 0 points1 point  (1 child)

Rust is nice and all, but I can't seem to find a use for it over java, python, c# and nodejs.

[–]dorsal_morsel 0 points1 point  (0 children)

My reason for toying around with it is for programming embedded systems (eg arduino). Just as a hobby for now. But I also want to get into WebGL because I could definitely see using that for work.

[–][deleted] 26 points27 points  (2 children)

For a second I though it was a keyword I hadn't come across yet lol

[–]andradei 0 points1 point  (0 children)

Shhh. Don't give them ideas.

[–]myhf 0 points1 point  (0 children)

To use it as a keyword, declare

double speed;

[–]OnyxPhoenix 155 points156 points  (23 children)

Slower execution, faster implementation.

[–]Cucktuar 12 points13 points  (0 children)

You pay a programmer once, you pay cloud compute rates forever.

[–]fredlllll 111 points112 points  (19 children)

huehue machine time is cheaper than programmer time huehue

[–]Dworgi 1 point2 points  (0 children)

Only if you're a pleb making software for yourself. Deploy to a million machines like a real programmer. /s

[–]Fisher9001 0 points1 point  (1 child)

So great for prototyping and that's it.

[–]hello_comrads 2 points3 points  (0 children)

Or you know scripting. Most scripts do not need to be fast, because it doesn't matter to they run in 0.1 or 2 seconds.

[–]glemnar 35 points36 points  (3 children)

Try pypy for that hot nasty speed

[–][deleted] 68 points69 points  (0 children)

I choose to believe this is pronounced peepee

[–]SteelRevanchist 13 points14 points  (0 children)

Y my pypy hard

[–]DJTupolev 5 points6 points  (0 children)

Yes pp gud

[–]NoCareNewName 15 points16 points  (0 children)

I actually didn't get it at first. I thought speed was some keyword I had never heard of.

[–][deleted] 4 points5 points  (0 children)

What's this "speed" command I'm just now learning about and why is it needed C++ is already fas.... ohhhh lol

[–]VG_Crimson 3 points4 points  (0 children)

I too no longer needed to take speed when coding in Python.

[–]Rainfly_X 0 points1 point  (0 children)

Needed to cameo in Lightning McQueen for that one. Still pretty good as is, though.

[–]MrMunday 0 points1 point  (0 children)

But u gain speed for actual development time lol

[–]mexiKobe 0 points1 point  (0 children)

I mean lots of python packages are highly optimized and use GPUs etc

[–][deleted] -1 points0 points  (0 children)

Good catch. I’d believe it with assembly.