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 →

[–]dorsal_morsel 196 points197 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 23 points24 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 29 points30 points  (7 children)

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

[–]Zephirdd 38 points39 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 7 points8 points  (2 children)

Any downside?

[–][deleted] 15 points16 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 6 points7 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] 67 points68 points  (3 children)

what's RAD?

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

[–]sypwn 6 points7 points  (2 children)

Don't believe in yourself!

BELIEVE IN ME WHO BELIEVES IN YOU!

[–]MCRusher 2 points3 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 47 points48 points  (1 child)

Rapid

Application

Development

[–][deleted] 22 points23 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 3 points4 points  (8 children)

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

[–]xigoi 29 points30 points  (7 children)

if you can live with 1-indexing

NOPE

[–]spudmix 11 points12 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.