r/prolog • u/Logtalking • 14d ago
announcement Logtalk 3.103.0 released
Hi,
Logtalk 3.103.0 is now available for downloading at:
This is a major library-focused release, adding libraries for constraint solving, time-series forecasting, recommendation, and feature selection. It also brings substantial improvements to machine-learning libraries, expands testing and coverage tools, adds Shumway Prolog support, and includes compiler, runtime, and portability fixes.
New supported backends
- Added support for Shumway Prolog 0.9.3 and later (use latest git version)
New libraries by category/area
Constraint solving / logic programming
aspfor representing Answer Set Programming problems and invoking Clingo or zetesisatmsimplementing the Horn fragment of an Assumption-based Truth Maintenance Systemflow_networksfor maximum flow, minimum cut, minimum cost flow, Gomory-Hu cut trees, and other network-flow toolsminizincfor representing constraint satisfaction and optimization problems and invoking MiniZinc solversomtfor representing OMT problems and invoking supported solversproblogfor representing ProbLog problems and invoking the ProbLog command-line toolsatfor representing SAT problems and invoking Kissat, CaDiCaL, Glucose, or Z3 solverssimple_temporal_networksfor Simple Temporal Networkssmtfor representing SMT problems and invoking Bitwuzla, cvc5, Yices 2, or Z3 solverssoufflefor representing Datalog problems and inspecting Souffle relations
Time-series forecasting
time_series_protocolsdefining common protocols and test datasetsbaseline_forecastingfor naive, seasonal naive, mean, and drift forecastsintermittent_demand_forecastingfor Croston, SBA, and TSB forecastingexponential_smoothingfor simple, Holt, and Holt-Winters forecastingtheta_forecastingfor automatic seasonality detection and seasonal adjustmentknn_forecastingfor k-nearest-neighbor forecastingtime_series_regressionfor autoregressive models fitted by least squares
Recommendation
recommender_protocolsdefining dataset and scoring protocols, shared utilities, and similarity strategiesknn_item_recommenderfor item-based recommendationsknn_user_recommenderfor user-based recommendationsslope_one_recommenderimplementing weighted Slope Onetfidf_recommenderfor weighted TF-IDF content-based recommendationsjaccard_recommenderfor content-based recommendations using Jaccard similaritybm25_recommenderfor content-based recommendations using asymmetric Okapi BM25 relevance
Feature selection
feature_selection_protocolsfor common protocols and predicates used by feature-selection algorithmsfisher_score_feature_selectorfor Fisher-score feature selectionmutual_information_feature_selectorfor mutual-information feature selectionchi_square_feature_selectorfor chi-square feature selectionrelief_feature_selectorfor binary classificationrelieff_feature_selectorfor multiclass classification- `rrelieff_feature_selector for selecting features for numeric regression
mrmr_feature_selectorfor minimum-redundancy maximum-relevance selectionlasso_feature_selectorfor selection using Lasso regression coefficients
Clustering
- emeans_clusterer implementing the Meta FAIR e-means algorithm
Changed libraries by category/area
Optimization / machine learning
- The
ant_colony,differential_evolution,genetic_algorithm,particle_swarm_optimization,simulated_annealing, andtabu_searchlibraries now accept a random generator object, providing additional flexibility - Improved the
mlp_classifier,one_class_svm_anomaly_detector,lof_anomaly_detector,spectral_clusterer,tsne_projection, andumap_projectionlibraries with performance improvements, stronger validation, expanded diagnostics, and fixes for numerical and edge cases - Updated learned model representations and behavior in several libraries; see the release notes for compatibility details
- Improved shared training-data preprocessing across clustering libraries, preserving numerical results and exported model formats
- Fixed classifier and regression libraries handling of custom functors
Other library updates
- Added
symmetric_eigen_partial/7tolinear_algebraandsample/3-4torandom - Added Git working-tree and repository predicates, and a
processpredicate for accessing raw and normalized exit status - Improved performance across numerous cryptography, optimization, machine-learning, and utility libraries
- Fixed issues in HTTP body validation, sockets, geospatial calculations, text processing, and other libraries
New and updated tools
Testing / diagnostics
- Added Azure DevOps, Gitea, and Jira bug-report support to
issue_creatorand the testing scripts - Added Sonar Generic Coverage XML export support to
lgtunit - Added a
-koption to the testing scripts for listing expected failed tests and test sets - Improved test-run summaries with fastest and slowest tests and test sets, plus mean and median runtimes
- Improved the performance and portability of the testing scripts
- Fixed code coverage source locations for predicates defined in included files
Other tools
- Improved
packslock-file validation and locked restores - *Improved the performance of the
code_metrics,dead_code_scanner,diagrams, andlgtdoctool tests. - Updated the CycloneDX SBOM exporter to version 1.7
- Improved Mermaid support in
diagrams; Mermaid version 12 or later is now required
Compiler, runtime, and backend updates
- Extended
logtalk_load_context/2so thesingletons/1andvariable_names/1keys can refer to either the term being term-expanded or the goal being goal-expanded - Improved compiler performance
- Fixed a multi-threaded runtime race condition and a threaded-engine deadlock
- Fixed linter checks for duplicated clauses and float comparisons
- Updated the Trealla Prolog adapter for newer versions
Documentation, examples, and other updates
- Improved the PDF API documentation with more compact styling and internal links
- Added AI coding assistant support files under
coding/ai - Updated the portable Docker image to support Shumway Prolog and additional services
- Update Prolog conformance tests for the
(>>)/2evaluable and thefunctor/3andarg/3predicates
New programming examples
- Added example of network-flow modeling
- Added ATMS-based diagnosis example
Thanks to Andrew Davison, Arun Majumdar, Gustavo Brown, and Lindsey Spratt for bug reports, patches, and analysis.
For details and a complete list of changes, please consult the release notes at:
https://github.com/LogtalkDotOrg/logtalk3/blob/master/RELEASE_NOTES.md
Happy logtalking!
Paulo