[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 18/25] write documentation for (system foreign declarative)
From: |
Amirouche Boubekki |
Subject: |
Re: [PATCH 18/25] write documentation for (system foreign declarative) |
Date: |
Mon, 18 Jul 2016 21:41:04 +0200 |
User-agent: |
Roundcube Webmail/1.1.2 |
On 2016-07-18 17:17, address@hidden wrote:
From: Dmitry Bogatov <address@hidden>
Document '<foreign-type>' record type and 'define-foreign-type'
procedure.
Can you compare this 'foreign-type' library with scheme-bytestructures
[0]. How
can both libraries help each other? Work hand in hand?
[0] https://github.com/TaylanUB/scheme-bytestructures
Tell me if I'm wrong but it looks like you have to define validate,
encode
and decode proc for every single structure with no helpers. It seems to
me
that it's some kind of framework for doing validation of static typed
procedures
which also handles automatic conversion between C land and scheme land.
Honestly this is not the kind of library I would use, I seldom do input
validation
when the client of my program is a developer. Maybe I'm wrong but IMO
dynamic languages
help that.
Also based on my small experience of ffi, there is not much conversion
to do between
scheme and C and what's best is to avoid any copy which is what does
scheme-bytestructures.
WDYT?
Thanks!
--
Amirouche ~ amz3 ~ http://www.hyperdev.fr
- [PATCH 10/25] Refactor type validation in `define-foreign-function', (continued)
- [PATCH 10/25] Refactor type validation in `define-foreign-function', KAction, 2016/07/18
- [PATCH 09/25] system/foreign/declarative: rename `predicate' to `validate', KAction, 2016/07/18
- [PATCH 11/25] system/foreign/declarative: new macro, KAction, 2016/07/18
- [PATCH 13/25] system/foreign/declarative.scm: export string foreign type, KAction, 2016/07/18
- [PATCH 12/25] Improve deriving c symbol name from scheme one, KAction, 2016/07/18
- [PATCH 14/25] foreign/declarative: mirror more primitive types, KAction, 2016/07/18
- [PATCH 15/25] New macro: with-pointer, KAction, 2016/07/18
- [PATCH 16/25] Configure emacs file-local indention, KAction, 2016/07/18
- [PATCH 17/25] system/foreign/declarative: unexport internal macro, KAction, 2016/07/18
- [PATCH 18/25] write documentation for (system foreign declarative), KAction, 2016/07/18
- Re: [PATCH 18/25] write documentation for (system foreign declarative),
Amirouche Boubekki <=
[PATCH 20/25] Document with-pointer macro, KAction, 2016/07/18
[PATCH 19/25] Document define-foreign-bitmask macro, KAction, 2016/07/18
[PATCH 21/25] new module: (ice-9 xattr), KAction, 2016/07/18
[PATCH 22/25] ice-9/xattr: implement `xattr-get' function, KAction, 2016/07/18
[PATCH 24/25] Refactor defining foreign libattr function, KAction, 2016/07/18
[PATCH 25/25] ice9/attr: implement xattr-list procedure, KAction, 2016/07/18
[PATCH 23/25] Do not throw exception on missing xattr, KAction, 2016/07/18