This update includes a new library named PyBridge, that allows using Python libraries from inside the B4J app. Python is leading the way in fields such as AI, LLM, image recognition and many others. Using PyBridge is not always trivial and it won't be the right tool for every task, however there are many things that weren't possible before and are now possible. And that is a good thing.
Other improvements:
PyBridge is a big thing. I will write tutorials that explain how it works and how Python libraries can be wrapped to be accessed in a simple manner.
To run a simple program:
Please start a new thread for questions or issues. Use [pybridge] in the thread title if related.
Other improvements:
- Many internal libraries were updated since last release.
- New internal keywords: Initialized and NotInitialized:
B4X:If Map1 <> Null And Map1.IsInitialized Then ... 'boring If Initialized(Map1) Then ... 'less boring
- #CustomBuildAction arguments are expanded with environment variables and other variables (%PROJECT%, %B4X%, %JAVABIN%, %PROJECT_NAME% and %ADDITIONAL%): https://www.b4x.com/android/forum/threads/b4x-comment-links.119897/#content
- LogColors withs in b4xlibs
- Fix for logs encoding issue in Java 19+. Note that the following attribute should be added for the same fix with standalone packages (if the terminal output is important):
B4X:#PackagerProperty: VMArgs = -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8
- B4XCollections: new helper methods: EmptyList, EmptyMap, MergeMaps, MergeLists, CreateList, CopyOnWriteMap and CopyOnWriteList.
- Panel.LoadLayout no longer deletes the previous tag.
PyBridge is a big thing. I will write tutorials that explain how it works and how Python libraries can be wrapped to be accessed in a simple manner.
To run a simple program:
Please start a new thread for questions or issues. Use [pybridge] in the thread title if related.
Attachments
Last edited: