Michele La Monaca | 22 Aug 18:05 2014
Picon

open-input-file and binary mode

Hi,

I think it would be better to change open-input-file default mode to binary.

While Posix systems doesn't care, on non-Posix ones ftell and fseek
might not work properly.

For example, on Windows:

$ cat f.txt
1
2
3
4

(call-with-input-file "f.txt" (lambda (p) (read-string 4 p)
(file-position p))) -> 2

Regards,
Michele
Michele La Monaca | 22 Aug 02:46 2014
Picon

[ANN] New egg: install

Hi all,

eventually I found some time to review one of my early work in Scheme
and give it dignity of egg.

You may learn more about it here:

http://wiki.call-cc.org/eggref/4/install

Btw, I really appreciated the new wiki design.

Regards,
Michele
Michele La Monaca | 20 Aug 16:04 2014
Picon

A couple of issues regarding normalize-pathname

Hi (again),

1) Is this supposed to be the correct output?

(normalize-pathname "/") -> "/."

2) I think it would be a good idea to strip any trailing slash, otherwise:

(string=? (normalize-pathname "/tmp/") (normalize-pathname "/tmp")) -> #f

Regards,
Michele
Michele La Monaca | 20 Aug 15:27 2014
Picon

Inconsistencies with Windows paths

Hi all,

(directory? "C:")           -> #f
(directory? "C:/")          -> #f
(directory? "C://")         -> #t
(pathname-directory "C:")   -> #f
(pathname-directory "C:/")  -> "C:"
(pathname-directory "C://") -> "C:"

Huh?

Regards,
Michele
Richard | 17 Aug 22:36 2014
Picon

Termbox egg

Hello all,

I've created a highish level wrapper around the library "termbox" which 
is a lightweight alternative to ncurses. It's source can be found on 
github: https://github.com/pluizer/chicken-termbox
You do not need termbox for this egg as it is included in the source.

Here is the documentation: https://wiki.call-cc.org/eggref/4/termbox

Hope it is useful for anybody besides me.
Could somebody please bless this to an official egg?
thanks,
Pluizer
Juergen Lorenz | 17 Aug 18:41 2014
Picon

functor-implementation of typed-lists

Hi all,

I've just uploaded the new version of typed-lists, which is now
implemented as a functor.

Regards

Juergen
--

-- 

Dr. Juergen Lorenz
Flensburger Str. 12
10557 Berlin
Attachment (smime.p7s): application/x-pkcs7-signature, 5273 bytes
_______________________________________________
Chicken-users mailing list
Chicken-users <at> nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users
Matt Gushee | 15 Aug 11:44 2014
Picon

How to contribute to Cairo egg?

Hi, list--

I have implemented a trivial enhancement in the Cairo egg to support
an image processing application I am developing. Specifically, I added
the 15 blend mode operators to the macro call that represents the
'cairo_operator_t' enum.

I would like to have this change included in the egg if possible, so
that my program will work for any members of the general public who
care to use it. However, the Cairo egg documentation doesn't say
anything about a public repo or a recommended way to contributed
patches, so I'm not sure how to go about it.

What should I do?

--
Matt Gushee
planpublicity | 14 Aug 21:52 2014
Picon

Second call for papers IFL 2014

Hello,

Please, find below the second call for papers for IFL 2014.
The submission page is now open.

Please forward these to anyone you think may be interested.
Apologies for any duplicates you may receive.

best regards,
Jurriaan Hage
Publicity Chair of IFL

---

CALL FOR PAPERS

26th SYMPOSIUM ON IMPLEMENTATION AND APPLICATION OF FUNCTIONAL LANGUAGES - IFL 2014

NORTHEASTERN UNIVERSITY/BOSTON, USA

OCTOBER 1-3, 2014

http://ifl2014.github.io

We are pleased to announce that the 26th edition of the IFL series
will be held at Northeastern University in Boston, USA. The symposium
will be held from 1st to 3rd of October 2014.

Scope
-----
(Continue reading)

Oleg Kolosov | 14 Aug 20:20 2014
Picon

A question about library search order

Hello.

When writing multi-module application I've found that Chicken searches
for extensions in repository only and import libraries in the supplied
include-path's additionally. Judging from the sources, this behaviour is
intentional. Doesn't it make more sense to always search in user
supplied include paths first, and the repository path last, similar to
how C compilers search <> includes?

Current approach gives problems when I have previous versions of the
modules already installed and try to compile a new with changed exports.
Chicken seem to use the import libraries from the repository which gives
"module unresolved" errors. This forces me to compile and install
modules one-by-one which is quite fragile for larger applications (build
failed for example, the repository is left with some old and some new
modules).

There is setup-mode option but it is not scalable for multiple
executables needing multiple modules.

--

-- 
Regards, Oleg
Juergen Lorenz | 13 Aug 13:37 2014
Picon

bug in functor implementation

Hi all,

I've found a bug in the functor implementation.
Consider the following trivial example

;;; doubling-functor.scm
;;; --------------------

;;; compile-with csc -s doubling-functor.scm -J
;;;              csc -s doubling-functor.import.scm

;;; defining the functor
(functor (doubling-functor
           ;; parameter module with its exports
           (M (add)))
  ;; exports of doubling-functor
  (doubling)
  ;; body of doubling-functor
  (import scheme M)
  (define (doubling x) (add x x)))

;;; num-doubler.scm
;;; ---------------

(import doubling-functor)

;;; parameter module defining add
(module nums (add)
  (import scheme)
  (define (add x y) (+ x y)))
(Continue reading)

Andrew Pennebaker | 12 Aug 22:11 2014
Picon

csc/csi man pages deficient

The Unix manual pages for csc and csi neglect to list the various command line flags that may be used.

As a workaround, users can get descriptions with csc -help / csi -help, though this is the opposite of how man vs -help works for most programs.

Using chicken 4.8.0.5 on Ubuntu 14.04.

--
Cheers,

Andrew Pennebaker
_______________________________________________
Chicken-users mailing list
Chicken-users <at> nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users

Gmane