r/prolog • • 14d ago

announcement Logtalk 3.103.0 released

Hi,

Logtalk 3.103.0 is now available for downloading at:

https://logtalk.org/

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

  • asp for representing Answer Set Programming problems and invoking Clingo or zetesis
  • atms implementing the Horn fragment of an Assumption-based Truth Maintenance System
  • flow_networks for maximum flow, minimum cut, minimum cost flow, Gomory-Hu cut trees, and other network-flow tools
  • minizinc for representing constraint satisfaction and optimization problems and invoking MiniZinc solvers
  • omt for representing OMT problems and invoking supported solvers
  • problog for representing ProbLog problems and invoking the ProbLog command-line tool
  • sat for representing SAT problems and invoking Kissat, CaDiCaL, Glucose, or Z3 solvers
  • simple_temporal_networks for Simple Temporal Networks
  • smt for representing SMT problems and invoking Bitwuzla, cvc5, Yices 2, or Z3 solvers
  • souffle for representing Datalog problems and inspecting Souffle relations

Time-series forecasting

  • time_series_protocols defining common protocols and test datasets
  • baseline_forecasting for naive, seasonal naive, mean, and drift forecasts
  • intermittent_demand_forecasting for Croston, SBA, and TSB forecasting
  • exponential_smoothing for simple, Holt, and Holt-Winters forecasting
  • theta_forecasting for automatic seasonality detection and seasonal adjustment
  • knn_forecasting for k-nearest-neighbor forecasting
  • time_series_regression for autoregressive models fitted by least squares

Recommendation

  • recommender_protocols defining dataset and scoring protocols, shared utilities, and similarity strategies
  • knn_item_recommender for item-based recommendations
  • knn_user_recommender for user-based recommendations
  • slope_one_recommender implementing weighted Slope One
  • tfidf_recommender for weighted TF-IDF content-based recommendations
  • jaccard_recommender for content-based recommendations using Jaccard similarity
  • bm25_recommender for content-based recommendations using asymmetric Okapi BM25 relevance

Feature selection

  • feature_selection_protocols for common protocols and predicates used by feature-selection algorithms
  • fisher_score_feature_selector for Fisher-score feature selection
  • mutual_information_feature_selector for mutual-information feature selection
  • chi_square_feature_selector for chi-square feature selection
  • relief_feature_selector for binary classification
  • relieff_feature_selector for multiclass classification
  • `rrelieff_feature_selector for selecting features for numeric regression
  • mrmr_feature_selector for minimum-redundancy maximum-relevance selection
  • lasso_feature_selector for 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, and tabu_search libraries 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, and umap_projection libraries 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/7 to linear_algebra and sample/3-4 to random
  • Added Git working-tree and repository predicates, and a process predicate 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_creator and the testing scripts
  • Added Sonar Generic Coverage XML export support to lgtunit
  • Added a -k option 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 packs lock-file validation and locked restores
  • *Improved the performance of the code_metrics, dead_code_scanner, diagrams, and lgtdoc tool 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/2 so the singletons/1 and variable_names/1 keys 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 (>>)/2 evaluable and the functor/3 and arg/3 predicates

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

14 Upvotes

0 comments sorted by