![]() |
|
|
#12 | |
|
Random Account
Aug 2009
32·7·31 Posts |
Quote:
I found a way to compile a Perl program about a year ago. It was about 35 lines of code in a 2K script file. It became an 830K binary. Talk about turning the hare into the tortoise. It was beyond useless like that. |
|
|
|
|
|
|
#13 | |
|
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest
31×173 Posts |
Quote:
Perhaps for your short script file, or certainly for "Hello world" in Python, a lot gets pulled in, a lot of which may be unnecessary. In Preda's make file for gpuowl there is a final step called strip. As I understand it, it removes the unreferenced library content that gets added automatically by the ton during the compile & link process. As I recall it cuts the final executable size by more than a factor of two. I have not found the equivalent for Python compilers. |
|
|
|
|
|
|
#14 |
|
"Mike"
Aug 2002
25×257 Posts |
|
|
|
|
|
|
#15 |
|
"Mihai Preda"
Apr 2015
3·457 Posts |
Try this online python notebook, let me know how it works:
https://mybinder.org/v2/gh/preda/gpu...lculator.ipynb For Windows, one may try to install conda/anaconda to get python locally. Google Collab does not work, as it does not find the import from github (but surely somebody dedicated can get it to work) https://colab.research.google.com/gi...lculator.ipynb Last fiddled with by preda on 2020-08-18 at 01:07 |
|
|
|
|
|
#16 | |
|
Random Account
Aug 2009
111101000012 Posts |
Quote:
|
|
|
|
|
|
|
#17 | |
|
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest
31·173 Posts |
Quote:
If allowing interpreted code, even smaller: https://www.quora.com/What-programmi...rogram?share=1 bash shell script or win/dos bat or cmd files can be short. Win hi.bat or hi.cmd: (No CR LF) 17 bytes. Code:
echo Hello World! Code:
Hello World! Code:
print('Hello World!')
Last fiddled with by kriesel on 2020-08-18 at 18:12 |
|
|
|
|
|
|
#18 | |
|
Random Account
Aug 2009
32·7·31 Posts |
Quote:
For some reason, this page will only load from here. If I try the link I have, error 404. I bookmarked it again. Same result. I will take a look at your recommendations. |
|
|
|
|
|
|
#19 |
|
"James Heinrich"
May 2004
ex-Northern Ontario
D4F16 Posts |
My probability calculator has been using Mihai's new P-1 probability calculations for a few weeks, but I have just updated it to more clearly show the min/mid/max values that are calculated.
|
|
|
|
|
|
#20 | |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
37×263 Posts |
Quote:
Just to say, I also have found that trying to compile Perl into a Windows exec is not scalable. Not only are the executables huge, but they take a very long time to launch because of all the unpacking of the environment involved. Not a good User Experience. Those who get the scripts from this codebase are going to be technically savvy. Presume they already have the interperters installed, or will do so if they wish to use the scripts. |
|
|
|
|
|
|
#21 |
|
Jul 2003
wear a mask
67A16 Posts |
|
|
|
|
|
|
#22 | |
|
Random Account
Aug 2009
36418 Posts |
Quote:
|
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Poisson Distribution | pepi37 | Miscellaneous Math | 6 | 2018-08-28 02:10 |
| What Bounds to choose, and what are Bounds | 144 | Information & Answers | 5 | 2017-03-15 13:36 |
| Poisson processes prescription, please? | Fusion_power | Information & Answers | 5 | 2007-08-15 14:20 |
| Help me pick a math course. | jasong | Math | 9 | 2005-03-11 21:04 |
| Pick a stone, or two, .... or three | Wacky | Puzzles | 5 | 2003-06-24 16:11 |