[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Guile bugs
From: |
Marko Rauhamaa |
Subject: |
Re: Guile bugs |
Date: |
Thu, 20 Jul 2017 21:35:09 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
address@hidden (Taylan Ulrich "Bayırlı/Kammer"):
> Marko Rauhamaa <address@hidden> writes:
>
>> address@hidden (Ludovic Courtès):
>>
>>> I’m very skeptical about this use case (I’d use ‘mmap’ and get a
>>> bytevector.)
>>
>> Please elaborate.
>>
>> 1. Does Guile offer mmap to Scheme code?
>
> It's pretty easy to call C functions from Scheme.
Not good enough. I would have to precompile libraries for different
target platforms (or require the target environment to have a C
compiler). Besides, the need is quite generic and shouldn't require an
extension.
>> 2. What would prevent Guile's GC from scanning the mmapped area for
>> pointers?
>
> I don't know the details but AFAIK this is no problem with Boehm GC.
I don't understand. It can be quite time-consuming to scan gigabytes of
RAM for pointers.
>> 3. How do I efficiently encode information in a bytevector in Scheme
>> code?
>
> What sort of data?
>
> I have a library called bytestructures that imitates the C type system
> within Scheme, to be used on bytevectors that contain data structures
> generated by C code, though the library is built upon a generic core
> with which other structures can be declared as well. Not sure if this
> helps you:
>
> https://github.com/TaylanUB/scheme-bytestructures/
That's precisely it. It would be nice to have it as part of standard
Guile.
I wonder, though, if doing that is fast enough in Scheme code.
Marko
- Re: How to make GNU Guile more successful, (continued)
Guile bugs, Ludovic Courtès, 2017/07/20
- Re: Guile bugs, Marko Rauhamaa, 2017/07/20
- Re: Guile bugs, Taylan Ulrich Bayırlı/Kammer, 2017/07/20
- Re: Guile bugs,
Marko Rauhamaa <=
- Re: Guile bugs, Ludovic Courtès, 2017/07/20
- Re: Guile bugs, Marko Rauhamaa, 2017/07/20
- Re: Guile bugs, Mark H Weaver, 2017/07/21
- Re: Guile bugs, Marko Rauhamaa, 2017/07/21
- Re: Guile bugs, Chris Vine, 2017/07/21
- Re: Guile bugs, Marko Rauhamaa, 2017/07/21
- Re: Guile bugs, Mark H Weaver, 2017/07/21
- Re: Guile bugs, Marko Rauhamaa, 2017/07/21
- Re: Guile bugs, David Kastrup, 2017/07/21
Re: Guile bugs, Taylan Ulrich Bayırlı/Kammer, 2017/07/21