Comments (3)
Will fix. There are also a few things the fasl-read procedure cannot read yet (some number types I think). Will fix those too.
Launchpad Details: #LPC Abdulaziz Ghuloum - 2008-02-22 01:28:58 -0500
from ikarus.
Fixed in rev 1405.
(let ()
(define-record-type my-thing (fields x))
(define t0 (make-my-thing 123))
(let-values ([(bvop bvop-getter) (open-bytevector-output-port)])
(fasl-write t0 bvop)
(let ([bv (bvop-getter)])
(for-each
(lambda (n) (printf "xx" (div n 16) (mod n 16)))
(bytevector->u8-list bv))
(newline)
(let ([obj (fasl-read (open-bytevector-input-port bv))])
(list t0 obj (and (my-thing? obj) (my-thing-x obj)))))))
2340494B30317B01000000574D73080000006D792D7468696E67464773020000006730731000000046246A392F35242F4C5877324A47395A46464904000000464D73010000007849EC010000
(#[my-thing 123] #[my-thing 123] 123)
Launchpad Details: #LPC Abdulaziz Ghuloum - 2008-02-26 03:55:56 -0500
from ikarus.
That output was too ugly. Here's a fix.
(let ()
(import (hexdump))
;;; from https://code.launchpad.net/~aghuloum/ikarus-libraries/r6rs-hexdump
(define-record-type my-thing (fields x))
(define t0 (make-my-thing 123))
(let-values ([(bvop bvop-getter) (open-bytevector-output-port)])
(fasl-write t0 bvop)
(let ([bv (bvop-getter)])
(hexdump bv)
(let ([obj (fasl-read (open-bytevector-input-port bv))])
(list t0 obj (and (my-thing? obj) (my-thing-x obj)))))))
0x00000000 23 40 49 4B 30 31 7B 01 00 00 00 57 4D 73 08 00 | #@ik01{....WMs.. |
0x00000010 00 00 6D 79 2D 74 68 69 6E 67 46 47 73 02 00 00 | ..my-thingFGs... |
0x00000020 00 67 30 73 10 00 00 00 6B 55 44 78 39 30 55 35 | .g0s....kUDx90U5 |
0x00000030 59 57 3E 76 6B 71 3D 58 46 46 49 04 00 00 00 46 | YW>vkq=XFFI....F |
0x00000040 4D 73 01 00 00 00 78 49 EC 01 00 00 | Ms....xI.... |
(#[my-thing 123] #[my-thing 123] 123)
Launchpad Details: #LPC Abdulaziz Ghuloum - 2008-02-27 01:57:03 -0500
from ikarus.
Related Issues (20)
- Please implement `fxreverse-bit-field' HOT 7
- numbers are not read correctly HOT 2
- latest fix for 'begin' causes error HOT 10
- request: a way to set native-transcoder
- tcp-connect fails under cygwin HOT 11
- record protocol function returning void crashes ikarus HOT 1
- in debug mode, incorrect handling of quasiquoted expressions HOT 1
- expansion of SYNTAX holding a list in fender should be a list of syntax objects when at least one element is a pattern variable
- (log +nan.0) loops infinitely and eats memory. HOT 2
- string-titlecase seg-faults on "123" HOT 1
- Request: official 0.0.4 release HOT 2
- (expt +i +inf.0) gives an &assertion HOT 2
- Shared structures are displayed peculiarly HOT 1
- \x7f; is printed unescaped HOT 2
- quasiquote and cycles gives infinite loop HOT 1
- (/ -3/8) => 8/-3, (= 8/-3 (/ -3/8)) => #f HOT 2
- Can't read complex numbers like 1@1/3
- Unary division doesn't handle inexact complex numbers HOT 1
- fxbit-set? has a new definition
- Release 0.0.3 - mmap failure under Cygwin (Windows 7) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ikarus.