Python Forum
Can Python make a large program with lots of gigabytes?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can Python make a large program with lots of gigabytes?
#1
I'm wondering if it's possible if not suggest me a programming language powerful yet as easy as Python.
Reply
#2
Python can easily use memory in the gigabytes. It can use whatever hardware is available.
Reply
#3
(Dec-17-2016, 08:22 AM)micseydel Wrote: Python can easily use memory in the gigabytes. It can use whatever hardware is available.

So does that mean it won't be slower if it makes a program with lots of Gigabytes?
Reply
#4
The aim of a good programmer is to get the task done as efficiently as possible. Writing a program with
lot's of gigabytes is not a goal that you want to aim for. It will of course function in that environment, and
speed is not a function of how a large a program is as the it can only run as fast as the CPU will allow (very fast)
regardless of program size.
Reply
#5
(Dec-17-2016, 11:17 AM)Larz60+ Wrote: The aim of a good programmer is to get the task done as efficiently as possible. Writing a program with
lot's of gigabytes is not a goal that you want to aim for. It will of course function in that environment, and
speed is not a function of how a large a program is as the it can only run as fast as the CPU will allow (very fast)
regardless of program size.

Short answer?Can Python make a large program with lots of gigabytes?That's the question.
Reply
#6
Yes it can
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply
#7
Quote:Can Python make a large program with lots of gigabytes?That's the question.
Done Wink 
It's now 2,4 GB,a couple of more 0 in size and it will fill up all your gigabytes.
char = "abcdefghijklmnopqrstuvwxyz"
tmp = char[::-1]
result = char + tmp[1:]
size = 50000000

with open('my.dat', 'w') as f:
    for i in range(size):
        f.write(result)
You need to more specific in your question,
of course Python can make and run large programs.
These use Python for large part of infrastructure(Youtube,Spotify,DropBox...ect).
Python scientific stack is used with big data,
there they can have data-set in Petabyte size.
Reply
#8
(Dec-17-2016, 08:24 AM)OnisionTheOninonBoy Wrote: So does that mean it won't be slower if it makes a program with lots of Gigabytes?
Python does not differ from other languages, such as C, in its behavior. If you need more memory than the computer has, your program will slow down (or crash). Processing 2 gigabytes of data will typically take about twice as long as processing 1 gigabyte of data, assuming there's enough memory in each case.
Reply
#9
(Dec-17-2016, 03:56 PM)snippsat Wrote:
Quote:Can Python make a large program with lots of gigabytes?That's the question.
Done Wink 
It's now 2,4 GB,a couple of more 0 in size and it will fill up all your gigabytes.
char = "abcdefghijklmnopqrstuvwxyz"
tmp = char[::-1]
result = char + tmp[1:]
size = 50000000

with open('my.dat', 'w') as f:
    for i in range(size):
        f.write(result)
You need to more specific in your question,
of course Python can make and run large programs.
These use Python for large part of infrastructure(Youtube,Spotify,DropBox...ect).
Python scientific stack is used with big data,
there they can have data-set in Petabyte size.
Is it possible to make a game like metal gear rising with Python then?
Reply
#10
It is possible, although with much extra effort I believe, since that is not Python's purpose. Same way one can build a website using C only, but it will be a big pain.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Is it possible to make a program recognize how many clicks it has had on the monitor? jao 0 1,151 Feb-25-2022, 06:31 PM
Last Post: jao
  breaking a large program into functions, not acting as expected Zane217 9 3,007 Sep-18-2021, 12:37 AM
Last Post: Zane217
  How to make a Vocal synthesizer program on Python? Seadust 3 3,546 Jan-28-2021, 06:26 PM
Last Post: gonnach
  How to make a Python program run in a dos shell (cmd) Pedroski55 2 2,306 Nov-09-2020, 10:17 AM
Last Post: DeaD_EyE
  I try to make Heron formula program abcd 7 3,384 Oct-22-2020, 12:48 AM
Last Post: abcd
  Make a Python program executable in Windows Pedroski55 1 2,100 Sep-26-2020, 12:34 AM
Last Post: bowlofred
  Moving large amount of data between MySql and Sql Server using Python ste80adr 4 3,388 Apr-24-2020, 01:24 PM
Last Post: Jeff900
  I code a program to solve puzzle but i can't make it more dynamic. Shahmadhur13 5 2,728 Apr-18-2020, 10:05 AM
Last Post: Shahmadhur13
  how to make a program with a certain number of multiples? syafiq14 3 2,756 Jan-01-2020, 02:39 PM
Last Post: syafiq14
  Handling Large XML Files (>10GB) in Python onlydibs 1 4,186 Dec-22-2019, 05:46 AM
Last Post: Clunk_Head

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020