Do you think Python will be the most used programming language in the future and today?

That's what I and some call a script - a short program - a part of a bigger scheme. That's our silly definition. 3k+ lines and I call it a program.

People know what a parse tree is, but rarely they implement it in practice.

I can't. I made a mistake of learning frameworks instead of computer science.

I was trying to make GPT-3 work well in the early days. Without understanding and knowing algorithms it was a big headache. I quit.

Still have to learn a lot.

Never did that. Afterall, as a scripter I wouldn't follow any good practices unless I learned from mistakes and decided to use them to ease my pain.

I switched from JS to TypeScript, so I can see what's happening more clearly. It's better experience.

Last pack of scripts I created (about 10k lines) had absolutely no tests. I was wondering where is the bug. TypeScript helped a little bit, but it wasn't enough at that number of lines.

I learned this as a first language 6 years ago. I think it took me a month.

I gave it up when I started learning Pandas. Really hard and requires to have a plan. I learned Python from sheer curiosity.

When you introduce someone to Pandas and similar in their early days, it's just a bunch of wtfs. It's like kids learning math at school. They have to but they don't know why.

It seemed so useless to me 6 years ago. So I swtiched to JS due to practical use on the internet.

Today... I could make use of it if I had a goal. And I agree it's as hard to understand as all that advanced C stuff for beginners.


They're so crazy. Just check Elon's Twitter.


Bro, it's not a script. lol.

It's such a pointless arbitrary definition. You've now said anything under 3k lines is a script, and over 3k is a program.

No. This is not valid.

Think about the ridiculousness of what you're saying.

I wrote a script that builds an html parse tree?

What about a C program under 3k lines? Is that a script?

If not why?

because it's compiled?

Python is compiled - https://devguide.python.org/internals/compiler/

So why is my 437 line program classed as a script?

Really, guys, it's such a stupid term.

It means NOTHING, but it is insulting.

So if I re-write MY PROGRAM in C, so it's several thousand lines long, then suddenly it's worthy of being a program?

The bottom line is, you are disagreeing with the creators of Python, who call it a programming language, not a scripting language.

Writing thousands of lines of C code doesn't make you any more of a "real programmer" than Python code.

The only time you'd use the term "python scripts" is if it's sys admin scripts etc.

Ie you'd write a script to check if program X, Y and Z are running, and user B is logged in, if so, log a message.

That's a script.

An HTML parse tree is not a script!

You guys need to go and study compilers. If you understood compilers you would realize how ridiculous this distinction you're making between "programs" and "scripts" is, and how it's just not valid.

723543ce-53f1-4494-b775-e5636cd3f837.jpg


You see? Scripts are AUTOMATIONS. It's not always strictly used to mean automations within another program, although that is the actual definition. Ie, the old IRC chat client mIRC has a SCRIPTING LANGUAGE. It doesn't compile. It runs automations in the program, mIRC.

bash script runs automations on linux. It doesn't compile.

python DOES compile, but we would still loosely say "script" if talking about sys admin scripts etc. Not parse trees!! That is a program.

Python could be compiled to machine code. This isn't some limitation. It's done ON PURPOSE, because it's faster to develop and more portable. Compilation takes a long time when you have large systems and it only works on the system you compiled it for.

You also have advanced run time features in a language that's compiled into byte code instead of machine code and run on a VM.
 
Last edited:
Of course. This was to be expected.

All talk. No Action.

Good luck on your IT course. You're going to need it.
I am back in action since ur so thirsty and have an ego bigger than your forehead ,

use numexpr and change the variable names


a brief comparison :

(your chatgpt code)

import numpy as np
import pandas as pd
import time
s_t = time.time()
array = np.random.randint(1, 101, size=(20000000, 5))
df = pd.DataFrame(array)
df_multiplied = df * 3
df_multiplied['mean'] = df_multiplied.mean(axis=1)
e_t = time.time()
t_t = e_t - s_t
print(df_multiplied.head())
print(f"Time: {t_t}")

0 1 2 3 4 mean
0 240 189 138 141 48 151.2
1 246 258 201 111 159 195.0
2 111 153 45 135 135 115.8
3 225 237 6 123 270 172.2
4 72 87 210 201 153 144.6
Time: 8.730666875839233



my code :

import pandas as pd
import numexpr as ne
import time

t = time.time()
ar = np.random.randint(1, 101, size=(20000000, 5))
aa = ne.evaluate('ar * 3')
mv = np.mean(aa, axis=1)
dfm = pd.DataFrame(np.column_stack([aa, mv]), columns=[f'col{i}' for i in range(5)] + ['mean'])

tb = time.time()
tc = tb - t

print(dfm.head())
print(f"Time: {tc}")

col0 col1 col2 col3 col4 mean
0 132.0 279.0 162.0 99.0 183.0 171.0
1 231.0 75.0 219.0 123.0 60.0 141.6
2 45.0 198.0 60.0 39.0 213.0 111.0
3 150.0 18.0 300.0 171.0 171.0 162.0
4 117.0 150.0 276.0 45.0 132.0 144.0
Time: 5.8286659717559814

I Perform element-wise multiplication using numexpr library which is optimized because it leverages multi-core CPUs
after that i am calculating the mean along the second axis using NumPy and then i create a dataframe .


here you go an optimized version of the python code u generated , just because i am not gonna spend time to answer to you directly doesnt mean i cant do it . You have a huge ego . Python is slow compared to other languages and i am completely right and it does matter .
 
Try Cython then


Anyone has some testing kit recommendation for Python? I have spare time this weekend.

I am back in action since ur so thirsty and have an ego bigger than your forehead ,
It's better to have sophisticated arguments than arguments attacking people. :D
 
Last edited:
I am back in action since ur so thirsty and have an ego bigger than your forehead ,

use numexpr and change the variable names


a brief comparison :

(your chatgpt code)

import numpy as np
import pandas as pd
import time
s_t = time.time()
array = np.random.randint(1, 101, size=(20000000, 5))
df = pd.DataFrame(array)
df_multiplied = df * 3
df_multiplied['mean'] = df_multiplied.mean(axis=1)
e_t = time.time()
t_t = e_t - s_t
print(df_multiplied.head())
print(f"Time: {t_t}")

0 1 2 3 4 mean
0 240 189 138 141 48 151.2
1 246 258 201 111 159 195.0
2 111 153 45 135 135 115.8
3 225 237 6 123 270 172.2
4 72 87 210 201 153 144.6
Time: 8.730666875839233



my code :

import pandas as pd
import numexpr as ne
import time

t = time.time()
ar = np.random.randint(1, 101, size=(20000000, 5))
aa = ne.evaluate('ar * 3')
mv = np.mean(aa, axis=1)
dfm = pd.DataFrame(np.column_stack([aa, mv]), columns=[f'col{i}' for i in range(5)] + ['mean'])

tb = time.time()
tc = tb - t

print(dfm.head())
print(f"Time: {tc}")

col0 col1 col2 col3 col4 mean
0 132.0 279.0 162.0 99.0 183.0 171.0
1 231.0 75.0 219.0 123.0 60.0 141.6
2 45.0 198.0 60.0 39.0 213.0 111.0
3 150.0 18.0 300.0 171.0 171.0 162.0
4 117.0 150.0 276.0 45.0 132.0 144.0
Time: 5.8286659717559814

I Perform element-wise multiplication using numexpr library which is optimized because it leverages multi-core CPUs
after that i am calculating the mean along the second axis using NumPy and then i create a dataframe .


here you go an optimized version of the python code u generated , just because i am not gonna spend time to answer to you directly doesnt mean i cant do it . You have a huge ego . Python is slow compared to other languages and i am completely right and it does matter .

Great job.

You've further proved my point that Python can be even faster.

Was this suppose to reaffirm your point that python is slow? I don't get it?

I spent 10 minutes setting up some tests to show that Python is comparable to C for real world tasks because of the libraries available. You've taken that code, changed the library to one that takes advantage of multiple cpus/cores, then used that to somehow show that I'm wrong?

That's very cool, although it's kind of cheating a bit in favor of Python, don't you think? Since the C program is only using 1 core on 1 cpu.

P.S. I suppose my custom HTML parse was chatgpt too? o_O
 
Great job.

You've further proved my point that Python can be even faster.

Was this suppose to reaffirm your point that python is slow? I don't get it?

I spent 10 minutes setting up some tests to show that Python is comparable to C for real world tasks because of the libraries available. You've taken that code, changed the library to one that takes advantage of multiple cpus/cores, then used that to somehow show that I'm wrong?

That's very cool, although it's kind of cheating a bit in favor of Python, don't you think? Since the C program is only using 1 core on 1 cpu.

P.S. I suppose my custom HTML parse was chatgpt too? o_O
Yes but still as you said yourself c is 80% faster than python. If someone implemented a program that utilizes multiple cpus it would be even faster. 'real world ' tasks differ . python is used in commercial applications mostly . Each language has its purpose and this is why python will not be used in the sectors i mentioned and even if it will be used to cut expenses it will not be a good decision .
 
Yeah. Healthcare and automotive don't care about machine learning. Reports Lex Fridman.
 
Anyone has some testing kit recommendation for Python? I have spare time this weekend.
I won't still interact with the bullshEt spread by smart low level programming language engineers in this thread but if you want to go web dev path and somewhat do some automation too(including reverse engineering of apps/websites), I would strongly suggest learning javascript and node.js. Only recently I started to feel becoming somewhat efficient with it, and it's like having god-like superpowers.

Python is cool too, yes yes. But being pro with javascript helps not only with having ability to write frontend/backend using same sCriPtinG language but it can open more paths to go, e.g. desktop app development, mobile apps, etc. And of course help to master web/mobile app reverse engineering.
 
I won't still interact with the bullshEt spread by smart low level programming language engineers in this thread but if you want to go web dev path and somewhat do some automation too(including reverse engineering of apps/websites), I would strongly suggest learning javascript and node.js. Only recently I started to feel becoming somewhat efficient with it, and it's like having god-like superpowers.
What have you found that made you feel like you have god-like superpowers?

Python is cool too, yes yes.
Frankly I only wanted to test Django as an alternative to JS or PHP. I will give it a try.
desktop app development, mobile apps, etc
Electron? React Native? I often see websites wrapped in GUI on that. Sometimes it works well, but usually people make a mess.

I have no idea how it works.
 
What have you found that made you feel like you have god-like superpowers?
Speed. Ability to bootstrap and prototype highly scalable api's, apps, and bots in days or even hours.

An example: Full Discord API reverse for full feature user bot takes 4-24 hours of work depending on skill level.

Good luck doing that using c++
 
Yes but still as you said yourself c is 80% faster than python. If someone implemented a program that utilizes multiple cpus it would be even faster. 'real world ' tasks differ . python is used in commercial applications mostly . Each language has its purpose and this is why python will not be used in the sectors i mentioned and even if it will be used to cut expenses it will not be a good decision .

Why are you so confident in your knowledge as a 19 year old kid studying IT at college? You've not even graduated let alone got your first job and you're so confident you know anything about real world tasks. I had my first dev job in '98 and I run a 7 figure SaaS company. I know what these technologies are and aren't capable of. And both Nasa and SpaceX use Python. So there goes that theory of yours.

And you see, you're making errors.

I said 80% slower, not 80% faster.

In engineering precision is incredibly important. You can't just switch around words willy nilly and expect things to mean the same.

Do you understand the mathematical difference?

Let's take you through an example :-

X runs in 2 seconds.

Y is 80% slower.

80% of 2 is 1.6.

So Y runs in 2 + 1.6 = 3.6 seconds.

Y is 3.6 seconds.

Is X 80% faster?

80% of 3.6 is 2.88

3.6 - 2.88 = 0.72

That's a LOT.

80% faster is not the same as 80% slower.

80% slower does not mean it's 80% the speed of.

Likewise, if you say something is 50% faster, it's actually

Y = x + x/2

Y = (2x + x)/2

Y = 3x/2

Ie, it's 150% the speed of X. or 50% faster.

If something is 80% slower, then it's

Y = x + 4x/5

Y = (5x + 4x) / 5

Y = 9x/5

So the Python program runs in 9/5th the time the C program takes.

Ie, the C program is 2.1 seconds, the Python one(mine) was around 9/5 * 2.1 = 3.7 seconds. (On the 32 CPU 192GB VPS. Where, regardless of numpy not being multi-core, Python will still take advantage at the OS level of multi cpus.) -- With your program using numexpr, it would be lighting fast. I'll spin up the 32 core again and test it if you like..

Speed. Ability to bootstrap and prototype highly scalable api's, apps, and bots in days or even hours.

An example: Full Discord API reverse for full feature user bot takes 4-24 hours of work depending on skill level.

Good luck doing that using c++

I did just this with Python actually.

I manage over 1000 sites just now and security/updates/issues/management of that many sites is a headache, so I developed a master/slave framework that automatically handles all updates, checks and reports problems and is managed and controlled via discord on my phone.
 
Considering the technology and AI tools are developing. website creation and designing will be totally customizable with simple commands.
This is totally true, it is becoming more and more advanced.
as you mentioned "to create websites from scratch" then PHP is the best language you have to choose along with Codeigniter or Laravel frameworks to build web apps.
I really appreciate your advice friend, I will investigate it of course. Right now I consider myself a newbie, but you start somewhere.

It's never too late, believe me.

When it comes to reverse engineering and bot coding I learn new things every single week, and I am 40+.
Thank you very much for your kindness, these types of responses do motivate
 
Why are you so confident in your knowledge as a 19 year old kid studying IT at college? You've not even graduated let alone got your first job and you're so confident you know anything about real world tasks. I had my first dev job in '98 and I run a 7 figure SaaS company. I know what these technologies are and aren't capable of. And both Nasa and SpaceX use Python. So there goes that theory of yours.

And you see, you're making errors.

I said 80% slower, not 80% faster.

In engineering precision is incredibly important. You can't just switch around words willy nilly and expect things to mean the same.

Do you understand the mathematical difference?

Let's take you through an example :-

X runs in 2 seconds.

Y is 80% slower.

80% of 2 is 1.6.

So Y runs in 2 + 1.6 = 3.6 seconds.

Y is 3.6 seconds.

Is X 80% faster?

80% of 3.6 is 2.88

3.6 - 2.88 = 0.72

That's a LOT.

80% faster is not the same as 80% slower.

80% slower does not mean it's 80% the speed of.

Likewise, if you say something is 50% faster, it's actually

Y = x + x/2

Y = (2x + x)/2

Y = 3x/2

Ie, it's 150% the speed of X. or 50% faster.

If something is 80% slower, then it's

Y = x + 4x/5

Y = (5x + 4x) / 5

Y = 9x/5

So the Python program runs in 9/5th the time the C program takes.

Ie, the C program is 2.1 seconds, the Python one(mine) was around 9/5 * 2.1 = 3.7 seconds. (On the 32 CPU 192GB VPS. Where, regardless of numpy not being multi-core, Python will still take advantage at the OS level of multi cpus.) -- With your program using numexpr, it would be lighting fast. I'll spin up the 32 core again and test it if you like..



I did just this with Python actually.

I manage over 1000 sites just now and security/updates/issues/management of that many sites is a headache, so I developed a master/slave framework that automatically handles all updates, checks and reports problems and is managed and controlled via discord on my phone.
I have confidence because you say nonsense at the previous statement you said 'python is only 80% slower' and i told you its translated into a lot of money in the tech field because its true , i do not care about your titles anyone can fake anything on the internet and doing all these things does not make you a good developer , you are saying very silly things such as 'just use a vps' . Nasa uses python but not in the algorithms they use to launch rockets .
 
So what's your job and curriculum sir

7 figures arr vs college student.

Round 5.

(Made up jr exec and exec titles)

Mods allowed it??

Why not buy more vps / computational power? Azure, google cloud and amazon all have scalability on demand options. All used by big companies.
 
Last edited:
So what's your job and curriculum sir

7 figures arr vs college student.

Round 5.

(Made up jr exec and exec titles)

Mods allowed it??
Why are you so confident in your knowledge as a 19 year old kid studying IT at college? You've not even graduated let alone got your first job and you're so confident you know anything about real world tasks. I had my first dev job in '98 and I run a 7 figure SaaS company. I know what these technologies are and aren't capable of. And both Nasa and SpaceX use Python. So there goes that theory of yours.

And you see, you're making errors.

I said 80% slower, not 80% faster.

In engineering precision is incredibly important. You can't just switch around words willy nilly and expect things to mean the same.

Do you understand the mathematical difference?

Let's take you through an example :-

X runs in 2 seconds.

Y is 80% slower.

80% of 2 is 1.6.

So Y runs in 2 + 1.6 = 3.6 seconds.

Y is 3.6 seconds.

Is X 80% faster?

80% of 3.6 is 2.88

3.6 - 2.88 = 0.72

That's a LOT.

80% faster is not the same as 80% slower.

80% slower does not mean it's 80% the speed of.

Likewise, if you say something is 50% faster, it's actually

Y = x + x/2

Y = (2x + x)/2

Y = 3x/2

Ie, it's 150% the speed of X. or 50% faster.

If something is 80% slower, then it's

Y = x + 4x/5

Y = (5x + 4x) / 5

Y = 9x/5

So the Python program runs in 9/5th the time the C program takes.

Ie, the C program is 2.1 seconds, the Python one(mine) was around 9/5 * 2.1 = 3.7 seconds. (On the 32 CPU 192GB VPS. Where, regardless of numpy not being multi-core, Python will still take advantage at the OS level of multi cpus.) -- With your program using numexpr, it would be lighting fast. I'll spin up the 32 core again and test it if you like..



I did just this with Python actually.

I manage over 1000 sites just now and security/updates/issues/management of that many sites is a headache, so I developed a master/slave framework that automatically handles all updates, checks and reports problems and is managed and controlled via discord on my phone.
trying to belittle me while saying ignorant comments such as '80% slower is not that much'/ 'just use a vps' and 'there is not advantage in using other languages ' or '80% of speed is not translated into billions in tech ' is silly . Even if you have made 7 figures that doesnt make u a good developer . Because anyone with enough skill and a good idea can outsource the work to some developers in india using python and sell it for profit to the public and make millions from it with trash code that takes more processing power . Good developers dont make such ignorant comments + they recognize the usage of other languages and fundamental truths . Maybe you look after commercial profit only and use the fastest way to develop something . There is a reason games are made mostly in c , there is a reason python is written in a lower level language . Instead of saying 'there is no advantage in using other languages' and replacing everything with a slow language that makes programming seem like a blocky puzzle with written modules from other people you should tell people to upgrade themselves and actually learn how to use a computer , low level operations and better their programs .
 
So what's your job and curriculum sir

7 figures arr vs college student.

Round 5.

(Made up jr exec and exec titles)

Mods allowed it??

Why not buy more vps / computational power? Azure, google cloud and amazon all have scalability on demand options. All used by big companies.
Because it costs money , instead try to make your program use less processing power or change the language .
 
I have confidence because you say nonsense at the previous statement you said 'python is only 80% slower' and i told you its translated into a lot of money in the tech field because its true , i do not care about your titles anyone can fake anything on the internet and doing all these things does not make you a good developer , you are saying very silly things such as 'just use a vps' . Nasa uses python but not in the algorithms they use to launch rockets .

You're completely taking things I'm saying out of context, either due to deliberate malice or low reading comprehension.

Since I had to correct you earlier after quoting me erroneously as saying "80% faster" instead of "80% slower", and then having to show you the math as to why this is important, I'll go with the low reading comprehension rather than deliberate malice.

Also, this is further backed up by your writing ability. One doesn't "say nonsense". One "speaks nonsense". English may not be your first language, so if that's the case it's understandable.

Absolutely, people can say anything on the Internet and I could just be a guy talking nonsense in his mom's basement.

However, you're free to look up my corporation: Wolf of Blog Street, Inc. Delaware.

download.png


There's a snippet from one of my hosting accounts. Just to backup that I do in fact work with substantial technology.

As to whether or not I'm a good dev. Well. I posted some pretty complicated parsing code above. Can you even understand it? Hint: It's impossible to have chatgpt to do that. It's far too difficult.

Feel free to post something you've written other than a few lines of numexpr that could just as easily have been done with chatgpt.

Nasa in fact use Python for satellite data processing and analysis.

SpaceX use it for self-landing.

Not much more needs to be said on that really. I'm also repeating myself.


And as for your comment about me saying "just use a vps".

No, that's not what I said. Not even close.

Please, READ what I say. Scroll up and actually read it before mis-quoting me.

I said that hardware is cheap in 2024 and it is far more commercially viable to spin up more VPS's than it is to spend months re-writing your codebase in a low level language, then having the headache of maintaining that.

If a company spent all its time trying to optimize every bit of code they would go bankrupt. Instead of all that, it's easier to just scale the hardware.

I also explained to you, MULTIPLE times, that for the vast majority of large applications they are Network and File IO bound. Not CPU. You don't need to write massive systems in C. It's not practical to maintain. This is why companies rarely do it. They write individual parts in lower level languages. Netflix uses Python and Java. Facebook uses PHP, C++, Erlang and Go.

Because it costs money , instead try to make your program use less processing power or change the language .

Oh dear god.

So a company is going to spend millions refactoring its code, changing its developers and dealing with the absolute nightmare of having it all work as before, just for some micro-optimizations?

When..

AGAIN..

Most applications are not CPU bound.

They are File and Network IO bound. I think that's maybe 12 or 13 times I've said that now?

It's like I'm speaking a language you don't understand.
 
I won't still interact with the bullshEt spread by smart low level programming language engineers in this thread but if you want to go web dev path and somewhat do some automation too(including reverse engineering of apps/websites), I would strongly suggest learning javascript and node.js. Only recently I started to feel becoming somewhat efficient with it, and it's like having god-like superpowers.

Python is cool too, yes yes. But being pro with javascript helps not only with having ability to write frontend/backend using same sCriPtinG language but it can open more paths to go, e.g. desktop app development, mobile apps, etc. And of course help to master web/mobile app reverse engineering.
'bullshEt spread by smart low level programming language engineers in this threa' , if low level languages didnt exist you wouldnt have a job or the puzzle-like language python . It seems like you are coping because you dont have the skills to write efficient code in c ,you only work with web applications mostly .
 
You're completely taking things I'm saying out of context, either due to deliberate malice or low reading comprehension.

Since I had to correct you earlier after quoting me erroneously as saying "80% faster" instead of "80% slower", and then having to show you the math as to why this is important, I'll go with the low reading comprehension rather than deliberate malice.

Also, this is further backed up by your writing ability. One doesn't "say nonsense". One "speaks nonsense". English may not be your first language, so if that's the case it's understandable.

Absolutely, people can say anything on the Internet and I could just be a guy talking nonsense in his mom's basement.

However, you're free to look up my corporation: Wolf of Blog Street, Inc. Delaware.

View attachment 313824

There's a snippet from one of my hosting accounts. Just to backup that I do in fact work with substantial technology.

As to whether or not I'm a good dev. Well. I posted some pretty complicated parsing code above. Can you even understand it? Hint: It's impossible to have chatgpt to do that. It's far too difficult.

Feel free to post something you've written other than a few lines of numexpr that could just as easily have been done with chatgpt.

Nasa in fact use Python for satellite data processing and analysis.

SpaceX use it for self-landing.

Not much more needs to be said on that really. I'm also repeating myself.


And as for your comment about me saying "just use a vps".

No, that's not what I said. Not even close.

Please, READ what I say. Scroll up and actually read it before mis-quoting me.

I said that hardware is cheap in 2024 and it is far more commercially viable to spin up more VPS's than it is to spend months re-writing your codebase in a low level language, then having the headache of maintaining that.

If a company spent all its time trying to optimize every bit of code they would go bankrupt. Instead of all that, it's easier to just scale the hardware.

I also explained to you, MULTIPLE times, that for the vast majority of large applications they are Network and File IO bound. Not CPU. You don't need to write massive systems in C. It's not practical to maintain. This is why companies rarely do it. They write individual parts in lower level languages. Netflix uses Python and Java. Facebook uses PHP, C++, Erlang and Go.



Oh dear god.

So a company is going to spend millions refactoring its code, changing its developers and dealing with the absolute nightmare of having it all work as before, just for some micro-optimizations?

When..

AGAIN..

Most applications are not CPU bound.

They are File and Network IO bound. I think that's maybe 12 or 13 times I've said that now?

It's like I'm speaking a language you don't understand.
'So a company is going to spend millions refactoring its code, changing its developers and dealing with the absolute nightmare of having it all work as before, just for some micro-optimizations?' yes they will if the cause is important enough and if they need efficiency . Not silly willy applications on the internet you mentioned .
 
Back
Top