Search found 461 matches

by Paulo Moura
Mon Mar 20, 2017 7:38 pm
Forum: Announcements
Topic: Logtalk 3.10.3 Stable
Replies: 0
Views: 12

Logtalk 3.10.3 Stable

Hi, Logtalk 3.10.3 is now available for downloading at: http://logtalk.org/ This release fixes a regression in the previous stable release in the compilation of multifile predicate clauses that make calls to the ::/1-2 control constructs and also fixes a spurious choice-point when using the "type" l...
by Paulo Moura
Fri Mar 17, 2017 11:23 am
Forum: Announcements
Topic: Logtalk chat room available
Replies: 0
Views: 23

Logtalk chat room available

Hi,

A Logtalk chat room is now available at Gitter:

https://gitter.im/LogtalkDotOrg/logtalk3

You're welcome to join for live discussion on Logtalk.

P.S. Gitter supports both GitHub and Twitter logins.
by Paulo Moura
Mon Mar 13, 2017 1:29 am
Forum: Announcements
Topic: Logtalk 3.10.2 Stable
Replies: 0
Views: 89

Logtalk 3.10.2 Stable

Hi, Logtalk 3.10.2 is now available for downloading at: http://logtalk.org/ This release generalizes support for multifile predicates allowing them to be declared protected or private, fixes some minor issues when printing compiler errors and warnings, adds support for operating-system types and str...
by Paulo Moura
Fri Mar 03, 2017 1:32 am
Forum: Announcements
Topic: Logtalk 3.10.1 Stable
Replies: 0
Views: 30

Logtalk 3.10.1 Stable

Hi, Logtalk 3.10.1 is now available for downloading at: http://logtalk.org/ This is mainly a bug fix release for issues found by users of the previous stable version. For details and a complete list of changes, please consult the release notes at: https://github.com/LogtalkDotOrg/logtalk3/blob/maste...
by Paulo Moura
Mon Feb 27, 2017 7:45 pm
Forum: Announcements
Topic: Logtalk 3.10.0 Stable
Replies: 0
Views: 40

Logtalk 3.10.0 Stable

Hi, Logtalk 3.10.0 is now available for downloading at: http://logtalk.org/ This release is sponsored by Kyndi Inc and includes several noteworthy changes. It completes support for include/1 directives, notably when reporting compiler errors and warnings. It changes debug events to account for predi...
by Paulo Moura
Mon Feb 27, 2017 10:43 am
Forum: Help
Topic: About file path auto expansion in several library(os) predicates
Replies: 4
Views: 136

Re: About file path auto expansion in several library(os) predicates

If you take security seriously, you validate all input data. Otherwise, you're already in trouble independently of what any library might do. As I mentioned before, there are portability reasons to expand all paths. Another example: try to create a directory named '$EDITOR' (with the environment var...
by Paulo Moura
Sun Feb 26, 2017 11:21 pm
Forum: Help
Topic: About file path auto expansion in several library(os) predicates
Replies: 4
Views: 136

Re: About file path auto expansion in several library(os) predicates

Any sensible task that cannot be performed do to the implicit expansion? The expansion eventually happens in any system ... Note that there is no Prolog standard (official or de facto) for operating-systems access. Worse, some Prolog systems don't even provide a uniform API across different operatin...
by Paulo Moura
Sun Feb 26, 2017 2:19 am
Forum: Help
Topic: How to initialize seed for library(random)?
Replies: 9
Views: 151

Re: How to initialize seed for library(random)?

The os::time_stamp/1 predicate returns an opaque term that is comparable but this term is not a number for all supported backend Prolog systems (for the simple reason that no all systems provide the necessary functionality). For a portable solution, I would suggest using instead the os::date_time/7 ...
by Paulo Moura
Sat Feb 25, 2017 12:55 pm
Forum: Help
Topic: How to initialize seed for library(random)?
Replies: 9
Views: 151

Re: How to initialize seed for library(random)?

I'm currently accessing the performance gains of frandom over random. The speedup comes from avoiding use of dynamic binding to retrieve and save the random seed. But several predicates (e.g. sequence/4 are already optimized to avoid that penalty). Depending on the results, I may drop frandom altoge...
by Paulo Moura
Sat Feb 25, 2017 11:57 am
Forum: Help
Topic: How to initialize seed for library(random)?
Replies: 9
Views: 151

Re: How to initialize seed for library(random)?

Committed some improvements to the random library:

https://github.com/LogtalkDotOrg/logtal ... 7df07a0e1b

Feedback welcome. Looking into the feasibility of also adding a randomize/0 predicate (portability is the possible issue here).
by Paulo Moura
Sat Feb 25, 2017 11:00 am
Forum: Help
Topic: How to initialize seed for library(random)?
Replies: 9
Views: 151

Re: How to initialize seed for library(random)?

The current random library is a portable pseudo-random number generator. The idea of the get_seed/1 and set_seed/1, is to allow reproducibility as explained in the library documentation: http://logtalk.org/library/randomp_0.html Considering that we want to keep the library portable, a solution for w...
by Paulo Moura
Tue Feb 21, 2017 11:27 am
Forum: Help
Topic: Undefined predicate in Learn Logtalk in Y Minutes
Replies: 2
Views: 79

Re: Undefined predicate in Learn Logtalk in Y Minutes

Yes, it's a typo in the tutorial. Thanks for reporting. I will submit a fix.
by Paulo Moura
Mon Feb 20, 2017 3:11 pm
Forum: Wish list
Topic: Order of contents in User Manual
Replies: 3
Views: 212

Re: Order of contents in User Manual

There isn't currently any public TODO or roadmap.
by Paulo Moura
Sat Feb 18, 2017 12:40 pm
Forum: Wish list
Topic: Order of contents in User Manual
Replies: 3
Views: 212

Re: Order of contents in User Manual

Welcome. The manuals indeed need a big overhaul. Most of the text was written 18 years ago. Improving them is on the TODO list but not the top priority currently I'm afraid. For new users, I strongly recommend that you start here: https://learnxinyminutes.com/docs/logtalk/ After, I suggest you start...
by Paulo Moura
Wed Feb 15, 2017 5:51 pm
Forum: Announcements
Topic: Logtalk 3.9.2 Stable
Replies: 0
Views: 170

Logtalk 3.9.2 Stable

Hi, Logtalk 3.9.2 is now available for downloading at: http://logtalk.org/ This release is sponsored by Kyndi, Inc. and includes a plain Prolog version of the Unicode standard; compiler, library, tools, and scripts fixes and improvements; a first version of a IntelliJ IDEA plug-in contributed by Ser...