Re: [Haskell-cafe] Compilers book in Haskell

2013-04-07 Thread Sergey Bushnyak
Books about compilers is rare artifact, in comparison to some technology 
books. It is uncommon to see topics on compilers for functional languages.


I was surprised, when saw it in Modern Compiler Design, which I've 
mentioned earlier. Compiler design series from Springer maybe reveal 
topics on FL in future as it become more popular. In new books about 1/5 
of it is about FL, but very basic stuff.


Кnowledge mostly lies in research papers, occasional articles like The 
Glasgow Haskell Compiler[1] in AOSA from creators, and source code :)



[1] http://www.aosabook.org/en/ghc.html

--
Best regards,
Sergey Bushnyak


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] meaning of referential transparency

2013-04-06 Thread Sergey Bushnyak

On 04/06/2013 08:43 PM, Henning Thielemann wrote:


Can someone enlighten me about the origin of the term referential 
transparency? I can lookup the definition of referential 
transparency in the functional programming sense in the Haskell Wiki 
and I can lookup the meaning of reference and transparency in a 
dictionary, but I don't know why these words were chosen as name for 
this defined property.


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


I will recommend you book Modern Compiler Design by Dick Grune and others.
Besides discussing different topics, authors use Haskell as example for 
describing ideas behind compilers for functional language. Here is 
citation from book on RT, which not explain who coined this term, but 
describes it generally :


By definition, a function in Haskell defines a fixed relation between 
inputs and out-
put: whenever a function f is applied to the argument value arg it will 
produce the
same output no matter what the overall state of the computation is. 
Haskell, like
any other pure functional language, is said to be “referentially 
transparent” or “side-
effect free.” This property does not hold for imperative languages, 
where assign-
ments to global variables and through pointers may cause two function 
calls f arg to
yield different results, even when the argument value arg is the same in 
both calls.


The good thing about referential transparency is that it simplifies 
program anal-
ysis and transformation since a closed expression always denotes the 
same value
independent of the context, and may be moved around freely. A closed 
expression is
an expression that contains no references to external names other than 
global iden-

tifiers.

--
Best regards,
Sergey Bushnyak


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] User group in Stockholm?

2013-04-01 Thread Sergey Bushnyak
I'll be in Stockholm next month, so I'm curious about haskellers in 
Stockholm.


I saw attempts to organize regular meetings in old mailing threads, but 
can't find *up to date* information to correct my schedule and see 
fellow haskellers.


Sorry, if this offtopic

--
Best regards,
Sergey Bushnyak


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe