Every repository with this icon (
Every repository with this icon (
| Description: | The Moby Scheme Compiler for Smartphones edit |
-
Reported by Matthew Milano; the following program
lang planet dyoo/moby:2:29
(check-expect 3 2)
raises an error that's weird:
and you obviously will fire an error. the first popup works fine but the second will tell you Error was raised around [object Object]
Comments
-
function objects don't have a equality comparator assigned to them.
1 comment Created about 1 month ago by dyoo -
TypeError: ae[af].getValue is not a function
2 comments Created about 1 month ago by dyoo -
using toWrittenString as the hashCode for an eq-based hashtable is completely wrong. This issues was found by Tala Huhe.
We need to assign some kind of arbitrary memory location to every object allocated by Moby: that way, we can compute hashCode trivially. Basically, every constructor must do:
this._hashCode = plt.Kernel._hashAcc++where the Kernel creates a new hashCode number.
Comments
-
From Hari Naraynan:
Hari and Scott found what I think is a weird rendering issue in Moby. Their code, attached, contains some nice and simple js-selects, but, when the user selects something from the select box, extra elements get inserted into the DOM tree. Their draw-html function (called "draw") returns a js-div as the root; the extra are inserted as its siblings. (Found through debugging with Firebug.) Firefox renders them really weirdly; neither Konqueror nor the Androids display anything, and weren't not sure if that's a difference between the Javascript interpretation or if khtml/WebKit just don't render not inside a .
Identified as a bug in jsworld, and hopefully fixed by f2b1fbd
Comments
-
Error: module: name is not defined, not a parameter, and not a primitive name in: module
2 comments Created about 1 month ago by dyooNot sure exactly what the conditions for hitting this are, but two students saw this when using a program with include.
Comments
More info from William Mayner and Joanna Lustig:
I downloaded 2.24 the old way, by changing the #lang line and waiting for it to install.
And, even stranger, I tried running DrScheme on a sublab computer remotely, using putty and xwin, and the same error still comes up -- even though I believe everything works fine if I'm actually on a sunlab machine. I ran get-new-moby in my remote instance of terminal, by the way, and it seemed to work.
Hope this helps with this very bizarre bug. I doubt it's actually anything in Moby that's causing the problem... it's probably my machine somehow behaving strangely. In any case, please only look into this if there's nothing else to deal with, since we can always work in the sunlab without problemsMost likely explanation so far is that the students were in Advanced Student level. The following program, under advanced student level, produces the same error message.
;;;lang planet dyoo/moby
;;;
What's happening is that #lang is introducing a new module via the syntactic (module ...) form, but Advanced Student is already within a module that doesn't have 'module' syntactically bound. I'm closing this issue.
-
circular data structures can't be compared with equal?
1 comment Created about 1 month ago by dyoo -
from Jonathan Sailor:
can we get:
(hash (k v) ...)
as syntactic sugar for:
(let ([h (make-hash)])
(begin (hash-set! k v) ... h))Comments
-
From Jonathan Sailor:
Firstly, check-expect on hashes in Moby seems to be eq?, rather than
equal?. For example, in(define (mh a b c d)
(let ([h (make-hasheq)]) (begin (hash-set! h a b) (hash-set! h c d) h)))(define hash-1 (mh 'a 'b 'c 'd)) (define hash-2 (mh 'a 'b 'c 'd)) (define hash-3 (mh 'c 'd 'a 'b))
(check-expect hash-1 hash-1) ; works (check-expect hash-1 hash-2) ; not eq, but same created identically (check-expect hash-1 hash-3) ; same mapping set, maybe different order
Comments
-
make-vector should take an optional second argument
1 comment Created about 1 month ago by dyoofrom Jonathan Sailor:
A student pointed out that, in ASL, make-vector can be used as:
(check-expect (make-vector 4) (vector 0 0 0 0)) (check-expect (make-vector 4 2) (vector 2 2 2 2))
but the two-argument form of make-vector is a compile-time error in Moby.
If Moby is unhappy with multi-arg (but arbitrarly-many arg) functions, we're more than able to just doc it that way. :-)
Comments
-
The program:
http://7.latest.wescheme.appspot.com/view?publicId=cough-smoke-tummy-woozy-crude
causes a bad crash on Firefox 3, with the following debugging information:
[Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIDOMCanvasRenderingContext2D.drawImage]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame
:: http://localhost:8076/runtime/compressed-runtime.js :: anonymous :: line 1" data: no]Error was raised around offset=2309 line=45 span=200 id="unsaved-editor892"
Comments
Kathi's browser has several extensions loaded on it, including Adblock.
Other people seem to hit this. http://labs-newdomain.stage.mozilla.com/blog/2009/07/06/open-web-tools-directory/ for example
Isolated. It's a very bad interaction with the RequestPolicy plugin for Firefox. http://www.requestpolicy.com/
-
put-pinhole, list?, procedure-arity primitives missing
3 comments Created about 1 month ago by dyoo -
(define (attendance price) (+ (* (/ 15 .10) (- 5.00 price)) 120)) (attendance 4.9)should give us 135, but it's giving us the wrong value. This might be fixed as soon as we incorporate bignums.
Comments
-
incorrect error message on non-symbol argument
1 comment Created about 1 month ago by dyoo -
The expression:
(+ (10) 20)returns the error message:
TypeError: Result of expression '((plt.types.Rational.makeInstance(10, 1))).apply' [undefined] is not a function.
which is not right: this is leaking the abstraction between Scheme and Javascript.
Comments
-
exception on on-tick causes flurry of error messages
1 comment Created about 1 month ago by dyooif a jsworld program with an on-tick errors out, it will continue to error out at the rate of the on-tick. This is unacceptable.
Comments
-
procedure arity not checked when function is applied
1 comment Created about 1 month ago by dyoo -
recursive data structures don't print correctly
2 comments Created about 1 month ago by dyoowe need to keep an id hash table to avoid looping in toWrittenString, toDomNode, toDisplayedString
Comments
-
complex with negative imaginary part not printed correctly
1 comment Created about 1 month ago by dyoo -
complex numbers aren't implemented as a structure of two basic numbers
1 comment Created about 1 month ago by dyoo -
sqrt, integer-sqrt broken on negative numbers
1 comment Created about 1 month ago by dyoo -
Shared values reported incorrectly in check-expect results
1 comment Created 2 months ago by dyooWhen reporting a shared value, Moby inserts whatever the initial, non-shared value was, even though upon inspection the shared value is already there.
(define-struct something (thing)) (define a (make-something #f)) (define b (make-something 7)) (set-something-thing! a b) (check-expect a 5)
reports that (make-something #f) is not equal to 5, but replacing the check-expect with (check-expect (something-thing (something-thing a)) 7) succeeds.
Comments
-
2 comments Created 2 months ago by dyoodelete isn't being properly munged protected.bugx -
I get the following scribble warning from moby 1.1:
setup-plt: WARNING: undefined tag in /dyoo/moby.plt/1/1/manual.scrbl:
setup-plt: ((planet "moby-lang.ss" ("dyoo" "moby.plt" 1 1) "src") recur)
Also, all of the links in the moby documentation on the planet web site are broken. Probably you should use cce/scheme:6:0/planet to fix this.(from samth on http://planet.plt-scheme.org/trac/ticket/215)
Comments
-
the let and letrec tests fail rarely in firefox on Linux with a complaint about being unable to call optimized closures. I don't know what the exact conditions are to trigger the problem yet.
Comments
-
split-whitespace shouldn't be in the core language
1 comment Created 2 months ago by dyoo












Problem corrected and fixed in 9f10b9c