Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Flapjax REPL
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Arjun Guha  
View profile  
 More options Nov 2, 1:12 pm
From: Arjun Guha <arjun.g...@gmail.com>
Date: Mon, 2 Nov 2009 10:12:26 -0800 (PST)
Local: Mon, Nov 2 2009 1:12 pm
Subject: Flapjax REPL
Last week at OOPSLA, we live-coded a timer in Flapjax, using a custom
REPL.  I've added this REPL to the demos on the Flapjax website:

http://www.flapjax-lang.org/demos/timer.html

See the popup in the bottom-right corner for the timer's code.  Other
than the built-in timer UI and the showTime function, it is a generic
REPL.  You can use it to play around with arbitrary expressions.  So,
I've posted a version without the timer UI:

http://www.flapjax-lang.org/repl.html

This REPL is more interesting than it looks: you have access to
Flapjax's DOM constructors.  Try entering these three lines:

elt = INPUT({ type: "button", value: "Click Me!" })
clicksE = $E(elt, "click")
clicksE.snapshotE(timerB(1000))

Two things to note:

1. You can break the REPL.  It is not bulletproof.  I've made an
attempt to isolate the REPL's code from the user's code.  But, it's
still a hack that uses eval.

2. It doesn't work on IE at the moment.  (Suggestions/patches
welcome.)  I've tested it on Firefox and Safari.

Arjun


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fred Janon  
View profile  
 More options Nov 3, 1:29 am
From: Fred Janon <fja...@gmail.com>
Date: Tue, 3 Nov 2009 14:29:35 +0800
Local: Tues, Nov 3 2009 1:29 am
Subject: Re: [Flapjax: 568] Flapjax REPL

Does the timer demo work in Windows FF3.0.15? It doesn't do anything, just
shows an empty progress bar, a button and the solution in the lower corner.
Nothing happens when click is pressed. I cannot enter any text in the
solution window where the code is either.

The repl demo shows a blank page the body is empty.

Fred


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Xingzhi Pan  
View profile  
 More options Nov 3, 2:08 am
From: Xingzhi Pan <pan.xing...@gmail.com>
Date: Tue, 3 Nov 2009 15:08:32 +0800
Local: Tues, Nov 3 2009 2:08 am
Subject: Re: [Flapjax: 569] Re: Flapjax REPL
At first it doesn't work on my Linux Firefox 3.5 either, but after I
opened Firebug's console (and clicked here and there) I was able to
input...weird.

Pan, Xingzhi


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arjun Guha  
View profile  
 More options Nov 3, 8:38 am
From: Arjun Guha <arjun.g...@gmail.com>
Date: Tue, 3 Nov 2009 08:38:56 -0500
Local: Tues, Nov 3 2009 8:38 am
Subject: Re: [Flapjax: 570] Re: Flapjax REPL

> At first it doesn't work on my Linux Firefox 3.5 either, but after I
> opened Firebug's console (and clicked here and there) I was able to
> input...weird.

This is weird.  I'm careful to test with a version of Firefox that  
does not have Firebug installed.  I am working on a Mac, but that's  
unlikely to be the issue.

(I just made a small change for Firefox: the empty prompt had zero  
height--that is no longer the case.)

Arjun


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arjun Guha  
View profile  
 More options Nov 3, 8:50 am
From: Arjun Guha <arjun.g...@gmail.com>
Date: Tue, 3 Nov 2009 08:50:17 -0500
Local: Tues, Nov 3 2009 8:50 am
Subject: Re: [Flapjax: 569] Re: Flapjax REPL

> Does the timer demo work in Windows FF3.0.15? It doesn't do  
> anything, just shows an empty progress bar, a button and the  
> solution in the lower corner. Nothing happens when click is pressed.  
> I cannot enter any text in the solution window where the code is  
> either.

> The repl demo shows a blank page the body is empty.

I fixed this (tested on FF3.0.12 on a Mac).

I made some changes to Flapjax's DOM manipulation code that used  
Element.children, which is only supported by IE8/Safari4/FF3.5.  I've  
reverted to using Element.childNodes, which works on older browsers.

In the future, I'll use older browsers while testing.

Arjun


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fred Janon  
View profile  
 More options Nov 3, 9:12 am
From: Fred Janon <fja...@gmail.com>
Date: Tue, 3 Nov 2009 22:12:18 +0800
Local: Tues, Nov 3 2009 9:12 am
Subject: Re: [Flapjax: 572] Re: Flapjax REPL

REPL works now on Windows FF 3.0.14. timer still doesn't do anything.

Fred


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arjun Guha  
View profile  
 More options Nov 3, 9:36 am
From: Arjun Guha <arjun.g...@gmail.com>
Date: Tue, 3 Nov 2009 06:36:40 -0800 (PST)
Local: Tues, Nov 3 2009 9:36 am
Subject: Re: Flapjax REPL

> REPL works now on Windows FF 3.0.14. timer still doesn't do anything.

> Fred

Could you be more specific?  Here's what it's supposed to look like,
after you've typed in the solution:

http://www.cs.brown.edu/~arjun/tmp/timer.png

(The mouse image is a little jittery--don't know why).

Arjun


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fred Janon  
View profile  
 More options Nov 3, 11:21 am
From: Fred Janon <fja...@gmail.com>
Date: Wed, 4 Nov 2009 00:21:07 +0800
Local: Tues, Nov 3 2009 11:21 am
Subject: Re: [Flapjax: 574] Re: Flapjax REPL

Here is a screen shot on Windows FF 3.0.14. There is no area to input
anything. The box with the solution is there though (not on the screen shot.
I had no idea what it was supposed to do until I saw your screenshot.

Fred

  flapjax.jpg
20K Download

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arjun Guha  
View profile  
 More options Nov 5, 4:30 pm
From: Arjun Guha <arjun.g...@gmail.com>
Date: Thu, 5 Nov 2009 16:30:01 -0500
Local: Thurs, Nov 5 2009 4:30 pm
Subject: Re: [Flapjax: 575] Re: Flapjax REPL
I just installed Firefox 3.0.15 on Windows XP.  It's my first  
installation, so no addons.

Both the timer and standalone REPL work fine.  I doubt it's an issue  
with a minor point release.  (I can't seem to get Firefox 3.0.14 from mozilla.org
. I'm not getting it from 3rd-party sources since I don't run a virus  
checker.)

I think the next step in debugging this is to give me the output from  
your error console.  Specifically:

1. Tools -> Error Console -> Clear
2. http://www.flapjax-lang.org/demos/timer.html
3. Tools -> Error Console , and then screenshot (apparently you can't  
copy).

A Firebug log will do too.

Arjun

I can't figure out how to get FF 3.0.14
On Nov 3, 2009, at 11:21 , Fred Janon wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fred Janon  
View profile  
 More options Nov 6, 7:18 am
From: Fred Janon <fja...@gmail.com>
Date: Fri, 6 Nov 2009 20:18:24 +0800
Local: Fri, Nov 6 2009 7:18 am
Subject: Re: [Flapjax: 580] Re: Flapjax REPL

REPL is working now. Cool. The script must have been cached by FF, sorry.

Fred


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google