[Haskell-cafe] yi-editor for emacer

2013-04-14 Thread Junior White
Hi Cafe, I'm glad to announce my fork of yi-editor. As a emacer, I made yi-editor more emacs like, including the following change: 1. ido-mode like file find and buffer find 2. support more color in vty 3. automatic search tags file in parents's directory 4. change some keymap The fol

[Haskell-cafe] haskell build phase is very slow

2013-02-04 Thread Junior White
Hi Cafe, I came from the C/C++ world, recently I play with a haskell editor named yi-editor, I find haskell build phase is very slow: 1.Compile one .hs file is slow 2. When change a little, it will recompile many many files Compare to c, compile a c source file seems much quick then compile

Re: [Haskell-cafe] linking errors while compile hugs98 in macos

2013-02-01 Thread Junior White
Thanks. I will have a try. On Fri, Feb 1, 2013 at 11:15 PM, Rustom Mody wrote: > On Fri, Feb 1, 2013 at 8:45 AM, Junior White wrote: > >> Sadly! I like hugs because it can embed in my game client as lua. For >> game logic language, I think the following properties a

Re: [Haskell-cafe] linking errors while compile hugs98 in macos

2013-02-01 Thread Junior White
Thanks! With your help, I have compiled hugs on my macbook! I'll try to embed it into my game client engine next week. On Fri, Feb 1, 2013 at 1:19 PM, Brandon Allbery wrote: > On Thu, Jan 31, 2013 at 10:15 PM, Junior White wrote: > >> So that lua best fits the rule very

Re: [Haskell-cafe] linking errors while compile hugs98 in macos

2013-01-31 Thread Junior White
on it, if no one, can I do it myself? On Fri, Feb 1, 2013 at 1:42 AM, Brandon Allbery wrote: > On Thu, Jan 31, 2013 at 1:31 AM, Junior White wrote: > >> Hi Cafe, >> I downloaded the latest hugs98 source package, unzip and build, I get >> the following link errors.

[Haskell-cafe] linking errors while compile hugs98 in macos

2013-01-30 Thread Junior White
Hi Cafe, I downloaded the latest hugs98 source package, unzip and build, I get the following link errors. It seems many symbols are not defined, am I missing same depending libraries? This is my machine info: ➜ hugs98-plus-Sep2006 git:(master) ✗ uname -a Darwin lan-seimatoMacBook-Air.local 1

Re: [Haskell-cafe] list comprehansion performance has hug different

2013-01-30 Thread Junior White
t 5:32 PM, Junior White wrote: > >> >> >> Thanks for your reply! I must learn more to fully understand what's >> going on inside the list comprehension. >> But when I frist learn Haskell, it says sequence doesn't matter, but now >> it is a b

Re: [Haskell-cafe] list comprehansion performance has hug different

2013-01-30 Thread Junior White
gt; sameDiag try qs = any (\(colDist,q) -> abs (try - q) == colDist) > $ zip [1..] qs > > Of course you can make more refined versions of `x`, which perform all > kinds of fair enumeration, but that is not the main point here. It is the > fact that the parameters to `x`

Re: [Haskell-cafe] list comprehansion performance has hug different

2013-01-30 Thread Junior White
On Wed, Jan 30, 2013 at 5:51 PM, Doaitse Swierstra wrote: > From the conclusion that both programs compute the same result it can be > concluded that the fact that you have made use of a list comprehension has > forced you to make a choice which should not matter, i.e. the order in > which to pl

Re: [Haskell-cafe] list comprehansion performance has hug different

2013-01-29 Thread Junior White
So this is a problem in lazy evaluation language, it will not appear in python or erlang, am i right? On Tue, Jan 29, 2013 at 5:54 PM, Junior White wrote: > Thanks again! I understand now. I'll be careful when the next time I use > list comprehension. > > > On Tue, Jan

Re: [Haskell-cafe] list comprehansion performance has hug different

2013-01-29 Thread Junior White
Thanks again! I understand now. I'll be careful when the next time I use list comprehension. On Tue, Jan 29, 2013 at 5:48 PM, Artyom Kazak wrote: > Junior White писал(а) в своём письме Tue, 29 Jan 2013 > 12:40:08 +0300: > > Hi Artyom, >>Thanks! But I don't unde

Re: [Haskell-cafe] list comprehansion performance has hug different

2013-01-29 Thread Junior White
Hi Artyom, Thanks! But I don't understand why in the first case "queens' (k-1)" is being recomputed n times? On Tue, Jan 29, 2013 at 5:31 PM, Artyom Kazak wrote: > Junior White писал(а) в своём письме Tue, 29 Jan 2013 > 12:25:49 +0300: > > > The only dif

[Haskell-cafe] list comprehansion performance has hug different

2013-01-29 Thread Junior White
Hi Cafe, I have two programs for the same problem "Eight queens problem", the link is http://www.haskell.org/haskellwiki/99_questions/90_to_94. My two grograms only has little difference, but the performance, this is my solution: -- solution 1-

Re: [Haskell-cafe] Compliments on the "IO inside" tutorial

2013-01-04 Thread Junior White
As a Haskell Beginner I also appreciate this excellent work! On Fri, Dec 7, 2012 at 10:53 AM, Andriy Drozdyuk wrote: > I just wanted to express my gratitude to whoever wrote the "IO inside" > tutorial: > http://www.haskell.org/haskellwiki/IO_inside > > It is one of the best pieces of writing in

[Haskell-cafe] Fwd: Foreign.Erlang help

2013-01-03 Thread Junior White
Hi Alexandar, Thanks for your help! I give up Foreign.Erlang and try usual tcp server in Haskell instead. -- Forwarded message -- From: Junior White Date: Fri, Jan 4, 2013 at 3:18 PM Subject: Re: [Haskell-cafe] Foreign.Erlang help To: Alexander Alexeev Hi Alexandar, Thanks

[Haskell-cafe] Foreign.Erlang help

2012-12-24 Thread Junior White
Hi all, I have a game server programming in erlang, but now i want to write some game logic in haskell, how to write a haskell node for erlang? ps:I have read the introduce of Foreign.Erlang,I use haskell send a message to a erlang echo server, but the server not receive anything.