Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
How to use Flapjax without the compiler?
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
  5 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
 
Fred Janon  
View profile  
 More options Oct 30, 7:02 am
From: Fred Janon <fja...@gmail.com>
Date: Fri, 30 Oct 2009 04:02:56 -0700 (PDT)
Local: Fri, Oct 30 2009 7:02 am
Subject: How to use Flapjax without the compiler?
Hi,

The examples use the compiler, I guess. The paper refers to using the
library without the compiler. so what do I need to use to an HTML page
to use the library only and not anything that deals with the compiler?
I am guessing just include the js library in the HTML head? Do I still
need to use "text/flapjax" around my code or just "text/javascript"
tags? Would the HTML pages then work without any Web connection? Or
does the library still calls home?

Thanks

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.
Artyom Shalkhakov  
View profile  
 More options Oct 30, 7:28 am
From: Artyom Shalkhakov <artyom.shalkha...@gmail.com>
Date: Fri, 30 Oct 2009 17:28:31 +0600
Local: Fri, Oct 30 2009 7:28 am
Subject: Re: [Flapjax: 557] How to use Flapjax without the compiler?
Hello Fred,

2009/10/30 Fred Janon <fja...@gmail.com>:

> The examples use the compiler, I guess.

Every example uses the flapjax.js, right. But it's possible and
absolutely okay to use it without the compiler.

> The paper refers to using the
> library without the compiler. so what do I need to use to an HTML page
> to use the library only and not anything that deals with the compiler?
> I am guessing just include the js library in the HTML head? Do I still
> need to use "text/flapjax" around my code or just "text/javascript"
> tags?

You should do something like the following:

<!DOCTYPE html>
<html>
<head>
<title>test page</title>
<script type="text/javascript" src="flapjax.js"></script>
<script type="text/javascript">
function loader() {
// your code goes here

}

</script>
<head>
<body onload="loader()">
<p>hello, world</p>
</body>
</html>

Go to www.flapjax-lang.org/docs/ and see if that makes any sense.

The language in which function contracts are written (e.g.,
EventStream 'a -> Behavior 'a) can seem tricky and unnecessary at
first, but you'll realize its usefulness eventually.

You can also browse the list archives, there are a few demos around.

> Would the HTML pages then work without any Web connection? Or
> does the library still calls home?

Flapjax is geared towards fat clients (i.e., applications that perform
most of their work client-side). But anyway, an answer to your
question very much depends on a specific application.

Cheers,
Artyom Shalkhakov.


    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 Oct 30, 8:12 am
From: Fred Janon <fja...@gmail.com>
Date: Fri, 30 Oct 2009 20:12:55 +0800
Local: Fri, Oct 30 2009 8:12 am
Subject: Re: [Flapjax: 558] Re: How to use Flapjax without the compiler?

Thanks Artyom for the quick answer. I will check the docs and browse around
the archives as you suggested. Thanks for your help.
Very exciting stuff.

Fred

On Fri, Oct 30, 2009 at 19:28, Artyom Shalkhakov <


    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 Oct 31, 9:37 am
From: Xingzhi Pan <pan.xing...@gmail.com>
Date: Sat, 31 Oct 2009 21:37:12 +0800
Local: Sat, Oct 31 2009 9:37 am
Subject: Re: [Flapjax: 559] Re: How to use Flapjax without the compiler?
I always wanted to make this clear when I first read the tutorial. If
my understanding is right, when using Flapjax as a different language,
one can:
1. use {! ... !}
2. use <script type="text/flapjax"> ... </script>
3. use JavaScript functions on events and behaviors without
modification (automatic lifting)

(We can thus see what the compiler actually does, at least partly.)

On the other hand, when Flapjax works as a library of JavaScript, one
just writes JavaScript and must explicitly call functions like liftB
to invoke the magic...

Pan, Xingzhi
http://www.panxingzhi.net


    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 Oct 31, 12:10 pm
From: Arjun Guha <arjun.g...@gmail.com>
Date: Sat, 31 Oct 2009 12:10:58 -0400
Local: Sat, Oct 31 2009 12:10 pm
Subject: Re: [Flapjax: 563] Re: How to use Flapjax without the compiler?

> On the other hand, when Flapjax works as a library of JavaScript, one
> just writes JavaScript and must explicitly call functions like liftB
> to invoke the magic...

This is correct.

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.
End of messages
« Back to Discussions « Newer topic     Older topic »

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