FindString to support whole words

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
miso
Enthusiast
Enthusiast
Posts: 466
Joined: Sat Oct 21, 2023 4:06 pm
Location: Hungary

Re: FindString to support whole words

Post 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.)
Quin
Addict
Addict
Posts: 1133
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: FindString to support whole words

Post 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...
User avatar
NicTheQuick
Addict
Addict
Posts: 1519
Joined: Sun Jun 22, 2003 7:43 pm
Location: Germany, Saarbrücken
Contact:

Re: FindString to support whole words

Post by NicTheQuick »

Quin wrote: Thu May 15, 2025 3:31 pm
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...
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.
Last edited by NicTheQuick on Thu May 15, 2025 7:22 pm, edited 1 time in total.
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
Quin
Addict
Addict
Posts: 1133
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: FindString to support whole words

Post 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 ;)
Post Reply