Re: [Haskell-cafe] I Need a Better Functional Language!

2012-04-12 Thread Conal Elliott
Agreed. The original note confuses programs (syntax) with functions (semantics). -- Conal On Thu, Apr 5, 2012 at 8:52 AM, Dan Doel dan.d...@gmail.com wrote: On Thu, Apr 5, 2012 at 10:14 AM, Grigory Sarnitskiy sargrig...@ya.ru wrote: First, what are 'functions' we are interested at? It can't

Re: [Haskell-cafe] I Need a Better Functional Language!

2012-04-10 Thread Ertugrul Söylemez
Tillmann Rendel ren...@informatik.uni-marburg.de wrote: I am curious what are interesting use-cases for that? Symbolic analysis? self-compilers? Optimization. For example, imagine the following definition of function composition: map f . map g = map (f . g) f . g = \x - f (g x)

Re: [Haskell-cafe] I Need a Better Functional Language!

2012-04-10 Thread Grigory Sarnitskiy
 10.04.2012, 02:00, Ryan Ingram ryani.s...@gmail.com: A concurring opinion here, and an example. iff :: Bol - a - a - a iff True x _ = x iff False _ x = x f, g :: Bool - Bool f x = x g x = iff x True False Are these two functions equal?  I would say yes, they are.  Yet once you can

Re: [Haskell-cafe] I Need a Better Functional Language!

2012-04-09 Thread Alexander Solla
On Thu, Apr 5, 2012 at 7:14 AM, Grigory Sarnitskiy sargrig...@ya.ru wrote: Hello! I've just realized that Haskell is no good for working with functions! First, what are 'functions' we are interested at? It can't be the usual set-theoretic definition, since it is not constructive. The

Re: [Haskell-cafe] I Need a Better Functional Language!

2012-04-09 Thread Ryan Ingram
A concurring opinion here, and an example. iff :: Bol - a - a - a iff True x _ = x iff False _ x = x f, g :: Bool - Bool f x = x g x = iff x True False Are these two functions equal? I would say yes, they are. Yet once you can pattern match on functions, you can easily tell these functions

Re: [Haskell-cafe] I Need a Better Functional Language!

2012-04-06 Thread Matthew Farkas-Dyck
On 05/04/2012, Grigory Sarnitskiy sargrig...@ya.ru wrote: One could expect from a language that bears 'functional' as its characteristic to be able to do everything imaginable with functions. However, the only thing Haskell can do with functions is to apply them to arguments and to feed them

[Haskell-cafe] I Need a Better Functional Language!

2012-04-05 Thread Grigory Sarnitskiy
Hello! I've just realized that Haskell is no good for working with functions! First, what are 'functions' we are interested at? It can't be the usual set-theoretic definition, since it is not constructive. The constructive definition should imply functions that can be constructed, computed.

Re: [Haskell-cafe] I Need a Better Functional Language!

2012-04-05 Thread Vo Minh Thu
Le 5 avril 2012 16:14, Grigory Sarnitskiy sargrig...@ya.ru a écrit : Hello! I've just realized that Haskell is no good for working with functions! First, what are 'functions' we are interested at? It can't be the usual set-theoretic definition, since it is not constructive. The constructive

Re: [Haskell-cafe] I Need a Better Functional Language!

2012-04-05 Thread Andrew Butterfield
On 5 Apr 2012, at 15:14, Grigory Sarnitskiy wrote: Hello! I've just realized that Haskell is no good for working with functions! Obviously, that's not all of the imaginable possibilities. One also can rewrite programs. And write programs that rewrite programs. And write programs

Re: [Haskell-cafe] I Need a Better Functional Language!

2012-04-05 Thread Andrew Butterfield
Addendum: Intel's Forte was the framework, reFLect was the language : http://www.cs.ox.ac.uk/tom.melham/res/reflect.html Quoting that page: reFLect is a functional programming language designed and implemented by a team at Intel Corporation's Strategic CAD Labs under the direction of Jim

Re: [Haskell-cafe] I Need a Better Functional Language!

2012-04-05 Thread Dan Doel
On Thu, Apr 5, 2012 at 10:14 AM, Grigory Sarnitskiy sargrig...@ya.ru wrote: First, what are 'functions' we are interested at? It can't be the usual set-theoretic definition, since it is not constructive. The constructive definition should imply functions that can be constructed, computed.

Re: [Haskell-cafe] I Need a Better Functional Language!

2012-04-05 Thread Paul R
Grigory So now I wonder, what are the languages that are functional in Grigory the sense above? With a reasonable syntax and semantics, thus Grigory no assembler. I guess Lisp might be of this kind, but I'm not Grigory sure. In addition, I'm not a fan of parentheses. What else? Grigory Pure?

Re: [Haskell-cafe] I Need a Better Functional Language!

2012-04-05 Thread Tillmann Rendel
Paul R wrote: I am curious what are interesting use-cases for that? Symbolic analysis? self-compilers? Optimization. For example, imagine the following definition of function composition: map f . map g = map (f . g) f . g = \x - f (g x) In Haskell, we cannot write this, because we

Re: [Haskell-cafe] I Need a Better Functional Language!

2012-04-05 Thread KC
On Thu, Apr 5, 2012 at 11:59 AM, Tillmann Rendel ren...@informatik.uni-marburg.de wrote: Paul R wrote: I am curious what are interesting use-cases for that? Symbolic analysis? self-compilers? Optimization. For example, imagine the following definition of function composition: map f .

Re: [Haskell-cafe] I Need a Better Functional Language!

2012-04-05 Thread Gábor Lehel
On Thu, Apr 5, 2012 at 8:59 PM, Tillmann Rendel ren...@informatik.uni-marburg.de wrote: Paul R wrote: I am curious what are interesting use-cases for that? Symbolic analysis? self-compilers? Optimization. For example, imagine the following definition of function composition:  map f . map