Search found 473 matches

by Paulo Moura
Fri Mar 03, 2017 1:32 am
Forum: Announcements
Topic: Logtalk 3.10.1 Stable
Replies: 0
Views: 383

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: 497

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: 1799

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: 1799

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: 1465

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: 1465

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: 1465

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: 1465

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: 743

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: 1573

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: 1573

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: 563

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...
by Paulo Moura
Thu Jan 19, 2017 3:12 pm
Forum: Wish list
Topic: A new, lighter syntax for Logtalk?
Replies: 4
Views: 7849

Re: A new, lighter syntax for Logtalk?

Possibly. It will depend on the supported backend Prolog compilers at that time.
by Paulo Moura
Mon Jan 16, 2017 10:33 am
Forum: Announcements
Topic: Logtalk 3.9.1 Stable
Replies: 0
Views: 575

Logtalk 3.9.1 Stable

Hi, Logtalk 3.9.1 is now available for downloading at: http://logtalk.org/ This release is sponsored by Kyndi, Inc. and includes reflection API and compiler lint checker improvements, a code metrics developer tool contributed by Ebrahim Azarisooreh, Docker support contributed by Sergio Castro, Java ...
by Paulo Moura
Mon Nov 28, 2016 12:07 am
Forum: Announcements
Topic: Logtalk 3.9.0 Stable
Replies: 0
Views: 2546

Logtalk 3.9.0 Stable

Hi, Logtalk 3.9.0 is now available for downloading at: http://logtalk.org/ This release is sponsored by Kyndi, Inc. It includes several additions, improvements, and fixes to the compiler, runtime, library, documentation, developer tools, tests, examples, and coding support. Highlights: * Compiler an...