Page 2 of 2
Re: FindString to support whole words
Posted: Thu May 15, 2025 3:18 pm
by miso
but it is noooot for desktop apps.
Funny, it was something very simple thing, but someone in the office did not want to install some prerequisit program to his machine. It had to be included in the executable. (The script eased his daily work.)
Re: FindString to support whole words
Posted: Thu May 15, 2025 3:31 pm
by Quin
NicTheQuick wrote: Thu May 15, 2025 3:06 pm
Well, you can not compare a language that gets compiled into an executable with a script language that needs a VM. Also regular expressions are one of the included libraries of Python. So if you use it or not, it has always the same size. And I don't know anybody who compiles Python into an executable. Maybe some Windows guys do weird things like that. On Linux I never saw that. It compiles itself into bytecode but that's all.
No it doesn't, at least if you do some neat optimizations and remove unneeded libraries with Nuitka.
You asked who's compiling python to binaries? Well:
https://github.com/pyinstaller/pyinstaller
https://github.com/py2exe/py2exe
https://github.com/Nuitka/Nuitka
https://github.com/marcelotduarte/cx_Freeze
https://github.com/ronaldoussoren/py2app
https://github.com/beeware/briefcase
and probably more...
Re: FindString to support whole words
Posted: Thu May 15, 2025 5:01 pm
by NicTheQuick
I know that these things exist but I never saw an actual app using it. And I am working with Python since 15 years or so.
Regarding Nuitka: I am talking about the standard Python installation you get with `apt install python3` on Ubuntu for example. The RegEx library is there. Of course you can modify everything to death. But why? These are corner cases.
And now enough OffTopic. Let's got back to FindString.
Re: FindString to support whole words
Posted: Thu May 15, 2025 6:54 pm
by Quin
As for a big company using Python for apps, Dropbox is a huge one. Reverse engineering that and unscrambling their opcodes was a fun way to learn about the CPython internals as a 15-year-old.
Now, back to the real topic at hand
