I'm happy to release a new version of B4J.
The parser has undergone a major refactoring, resulting in performance improvements and providing the potential for new language features. The first one is optional parameters.
Improvements:
Download link: https://www.b4x.com/b4j.html
The parser has undergone a major refactoring, resulting in performance improvements and providing the potential for new language features. The first one is optional parameters.
B4X:
'From:
Dim b() As Byte = "aaaa".GetBytes("UTF-8")
'''
Dim s As String = BytesToString(b, 0, b.Length, "UTF-8")
'To:
Dim b() As Byte = "aaaa".GetBytes
'''
Dim s As String = BytesToString(b)
'From:
Dim j As HttpJob
j.Initialize("", Me) 'unused JobName and always "Me"
j.Download(url)
'To:
Dim j As HttpJob
j.Initialize
j.Download(url)
Improvements:
- Optional parameters: https://www.b4x.com/android/forum/threads/171906/#content
- jServer 5 based on Jetty 12.1: https://www.b4x.com/android/forum/threads/171536/#content
- OkHttp / OkHttpUtils2 updated to Okhttp 5.4.
- Exception.StackTrace and ThrowException keyword.
- Various libraries updated with default parameters.
- sqlite-jdbc.jar included in the internal libraries. The old sqlite-jdbc-3.7.2.jar is also kept for backward compatibility. It is recommended to reference sqlite-jdbc.jar. This jar will be updated from time to time as sqlite evolves. Current version is 3.53.2.
- Inno Setup template updated with x64compatible setting to support ARM windows. Note that B4X installer was updated as well.
- Errors in referenced b4xlibs are marked with their library and module.
- Doclet tool updated to support default values: https://www.b4x.com/android/forum/t...mpiler-build-libraries-without-eclipse.29918/
- Bug fixes and other minor improvements.
Download link: https://www.b4x.com/b4j.html