Comments (7)
Oh, tha sounds crazy... But that's a good explanation. I understood it.
from picrin.
Hmm that's interesting. As you described in your blog, what matters seems reentrancy.
Could I ask you to send us patch? Here the code and the patch won't be so big. Thank you.
from picrin.
I tried to fix these bugs and have fixed the second bug easily.
However, to fix the first problem requires to overwrite pointers (ref. http://srfi.schemers.org/srfi-45/srfi-45.html : this uses a list as a 'box' instead of the pointer).
In our implementation, a promise is a record. I'm worried that wrapping by a list takes some merits of record types from our promise.
What do you think of this?
from picrin.
Oh, sorry @yhara I asked you to send patch but @stibear has done the task.
from picrin.
@KeenS no problem :-)
In our implementation, a promise is a record. I'm worried that wrapping by a list takes some merits of record types from our promise.
One merit of implementing promise as record is that you can hide implementation details from user. From that point of view, wrapping box with record is better than wrapping record with box.
from picrin.
Hi, guys
Could someone tell me why the second test is expected to be ok? I still don't figure out it. Just pointing the paragraph in the spec is enough.
Thanks.
from picrin.
@nyuichi it's sensitive, but I found this sentence.
The value of the promise must be cached (or “memoized”) so that if it is forced a second time, the previously computed value is returned.
At the first call of force
, the expression is expected to return ng
but in the expression, the second call of force
return ok
(that's the first return from force
). Apparently, the first computed value is the first returned value.
from picrin.
Related Issues (20)
- RFC: Flexible String Representation HOT 4
- Many tests failing on OS X HOT 2
- simple example doesn't work HOT 2
- picrin segfaults HOT 1
- "invalid character at the seeker head" doesn't say anything HOT 1
- `equal?` has a bug HOT 1
- Wrong current-library in repl
- number->string and string->number do not round-trip correctly HOT 2
- string->number should not signal error
- srfi 1 test failing on OS X HOT 7
- `equal?` does not recognize dictionaries HOT 3
- Current picrin segfaults on `call/cc` when compiled with gcc and -O1 (or larger)
- Picrin REPL doesn't allow forward references HOT 1
- Initialization of random number generator
- syntax-rules cannot generate symbol with quote syntax HOT 2
- Missing source files? HOT 1
- build fails on mac os HOT 3
- Is Picrin dead? HOT 2
- Botbot Acquired, link no longer works 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 picrin.