473,378 Members | 1,106 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Haskell functions for Javascript

Hi all

I hope this is the right place to post this (I already read the FAQ).

A couple of days ago, I ported some functions from Haskell[1] to
Javascript.
I added the possibility to curry[2] these (and other) functions.

I wrote a blog post[3] and prepared a demo[4].
Note that this is merely didactic and I was just playing a bit...

I appreciate any opinion.

Cheers!

[1] http://en.wikipedia.org/wiki/Haskell...mming_language)
[2] http://en.wikipedia.org/wiki/Currying
[3] http://flesler.blogspot.com/2008/11/...avascript.html
[4] http://demos.flesler.com/HS/

--
Ariel Flesler
http://flesler.blogspot.com
Nov 19 '08 #1
4 1519
On Nov 19, 5:10*pm, Ariel Flesler <afles...@gmail.comwrote:
Hi all

I hope this is the right place to post this (I already read the FAQ).
It is.
>
A couple of days ago, I ported some functions from Haskell[1] to
Javascript.
I added the possibility to curry[2] these (and other) functions.

I wrote a blog post[3] and prepared a demo[4].
Note that this is merely didactic and I was just playing a bit...

I appreciate any opinion.
The demo is unusable. You removed my browser's scroll bars. Thank
heavens the back button still works!
Nov 19 '08 #2
The demo is unusable. *You removed my browser's scroll bars. *Thank
heavens the back button still works!
Ok, sorry. There you have them.

--
Ariel Flesler
http://flesler.blogspot.com
Nov 19 '08 #3
On Nov 19, 5:29*pm, Ariel Flesler <afles...@gmail.comwrote:
The demo is unusable. *You removed my browser's scroll bars. *Thank
heavens the back button still works!

Ok, sorry. There you have them.
Well thank you very much! Now, the floating blocks on the right are
overlapping the rightmost part of the content, so I can't read it. I
suppose I could make the window bigger, but I don't want it bigger.
Nov 20 '08 #4
Ariel Flesler wrote:
>
A couple of days ago, I ported some functions from Haskell[1] to
Javascript.
I added the possibility to curry[2] these (and other) functions.
I just skimmed the implementation (in particular, I didn't check for
nonstandard constructs), but at first glance it looks like a nice
little implementation of the currying-lambda operator and various HOFs.

--
Michael Wojcik
Micro Focus
Rhetoric & Writing, Michigan State University
Nov 21 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Isaac Jones | last post by:
Hello Python Community. I bring greetings from the Haskell community (http://www.haskell.org) ;) There has been a lot of discussion of late about creating a grand-unified build & distribution...
49
by: bearophileHUGS | last post by:
Adding Optional Static Typing to Python looks like a quite complex thing, but useful too: http://www.artima.com/weblogs/viewpost.jsp?thread=85551 I have just a couple of notes: Boo...
1
by: George Ziniewicz | last post by:
.. I have an html file with javascript functions in the <head> section that work fine when called from events or instanced as objects. When I move the functions to an external js file they don't...
9
by: relaxedrob | last post by:
Howdy All! I am still getting my head around a few base concepts. Any comments or criticisms on the below definitions would be most welcome! A function is an object. JavaScript objects have...
17
by: cwdjrxyz | last post by:
Javascript has a very small math function list. However there is no reason that this list can not be extended greatly. Speed is not an issue, unless you nest complicated calculations several levels...
10
by: Xah Lee | last post by:
A Haskell A Day: Manifesto This is my learning notes on Haskell. I call it a-Haskell-a-day. I've been programing since 1992, and am a top expert at the Mathematica↗ language. I've long wanted...
86
by: Matthias Kaeppler | last post by:
Hi, sorry for my ignorance, but after reading the Python tutorial on python.org, I'm sort of, well surprised about the lack of OOP capabilities in python. Honestly, I don't even see the point at...
10
by: Tony Rice | last post by:
If I've loaded a set of functions in a webdocument like this: <script language="JavaScript" type="text/javascript" src="/js/foo.js"</script> Shouldn't I be able to call a function from...
4
by: Daniel | last post by:
Hi, I was reading Douglas Crockford's article on prototypal inheritance at http://javascript.crockford.com/prototypal.html. I think it also relates to a post back in Dec 2005. The mechanism...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.