li cheng | 2 Nov 2012 02:12
Picon

How do I re-subscribe this mailing list to annother e-mail address?

Hello!
How do I re-subscribe this mailing list to annother e-mail address?
Also - How do I set member options via email?
Thanks!

--
С уважением
Михаил

_______________________________________________
Yhc mailing list
Yhc <at> haskell.org
http://www.haskell.org/mailman/listinfo/yhc
Andrew Oakley | 9 May 2012 22:30

YHC fork

In the interests of some program transformations that I want to try out
I've decided it would be nice to get a YHC based compiler working again.

I managed to get YHC working (although it's a bit of a hack, I haven't
found a nice way to build the libraries), I can probably pull some
patches together if they are wanted.

I've noticed that much of the code is messy and have started to rewrite
significant parts.  On the other hand I think much of the compiler
architecture and ideas in YHC (such as the specific language chosen for
YHC Core) are worth keeping.  I'd like to see some nice libraries for
manipulating Core (I believe that was the intended direction anyway).

Are there any parts of the compiler design that caused problems? Are
there parts that were particularly good?

I believe that I should be safe to release any derived works under
GPLv3 (with some attribution), although it isn't entirely clear. Does
anybody disagree?

Thanks, I'll post an update here when I've got some code to share.

[Aside: I think messy code is expected, especially in old code like the
bits from nhc, or code that has features added over time - please don't
be offended!]

--

-- 
Andrew Oakley
Szymon Jachim | 31 Mar 2011 00:29
Picon
Gravatar

is YHC dead?

Hello,

  Is YHC compiler project still alive?
Where do I get real most up-to-date sources?
(or maybe)
And what should I use to build it? I think wiki at haskell.org is very outdated.
Thanks.

Regards,
Szymon

_______________________________________________
Yhc mailing list
Yhc <at> haskell.org
http://www.haskell.org/mailman/listinfo/yhc
Neil Mitchell | 6 Dec 2010 07:49
Picon
Gravatar

Re: Help me for haskel problem please

Hi,

For homework help I suggest you read
http://haskell.org/haskellwiki/Homework_help and follow the links
listed there.

Thanks, Neil

2010/12/5 Suresh <vai.csse <at> gmail.com>:
> Dear Sir,
>
>       My be this question will be funny for you but I am new in Haskel and
> got only few lection and now I have to solve the question as test. Please
> let me know about suitable api for this question. We have wrong code and
> there is some test. Have to find out needed or suitable api and using these
> we have to pass all the test. But still I am so poor on Haskel. Please give
> me your good idea and material for this question. IF possible please give
> some example to solve this problem.
>
> module Grammar where
>
> import Data.Set (Set)
> import qualified Data.Set as Set
> import Prelude hiding (Int)
>
> import Test.HUnit
>
> data Term = Int Integer
>           | Atom String
>           | Var String
>           | Pair (Term, Term)
>           | Tuple [Term]
>
> data Expr = Term Term
>           | Fun [Term] [Expr]
>           | Apply Expr [Expr]
>           | Assign Term Expr
>
> boundVariables :: Expr -> Set String
> boundVariables _ = Set.empty
> fromList:: Map X Y -> [(X, Y)]
>
> freeVariables :: Expr -> Set String
> freeVariables _ = Set.empty
>
> tests =
>     let bv = boundVariables
>         fv = freeVariables
>         -- e0 := 'fun () -> ok end'
>         e0 = Fun [] [Term (Atom "ok")]
>         -- e1 := 'foo'
>         e1 = Term (Atom "foo")
>         -- e2 := 'fun (X, Y) -> F(X) end'
>         e2 = Fun [Var "X", Var "Y"]
>                  [Apply (Term (Var "F")) [Term (Var "X")]]
>         -- e3 := 'fun (true) -> F = fun (X) -> Mul(X, X) end, Add(F(X), 10)
> end'
>         e3 = Fun [Atom "true"] [
>                  Assign (Var "F")
>                         (Fun [Var "X"] [
>                              Apply (Term (Var "Mul")) [
>                                  Term (Var "X"),
>                                  Term (Var "X")
>                              ]
>                          ]),
>                  Apply (Term (Var "Add")) [
>                      Apply (Term (Var "F")) [
>                          Term (Var "X")
>                      ],
>                      Term (Int 10)
>                  ]
>              ]
>         -- e4 := 'fun () -> F(X), F = G end'
>         e4 = Fun [] [
>                  Apply (Term (Var "F")) [
>                      Term (Var "X")
>                  ],
>                  Assign (Var "F") (Term (Var "G"))
>              ]
>         -- e5 := 'fun () -> F = G, F(X) end'
>         e5 = Fun [] [
>                  Assign (Var "F") (Term (Var "G")),
>                  Apply (Term (Var "F")) [
>                      Term (Var "X")
>                  ]
>              ] in
>     runTestTT (test [
>           bv e1 ~=? Set.empty
>         , fv e1 ~=? Set.empty
>         , bv e2 ~=? Set.fromList ["X", "Y"]
>         , fv e2 ~=? Set.fromList ["F"]
>         , bv e3 ~=? Set.fromList ["X", "F"]
>         , fv e3 ~=? Set.fromList ["Mul", "Add", "X"]
>         , bv e4 ~=? Set.fromList ["F"]
>         , fv e4 ~=? Set.fromList ["F", "G", "X"]
>         , bv e5 ~=? Set.fromList ["F"]
>         , fv e5 ~=? Set.fromList ["G", "X"]
>     ])
>
>
>
>
> Best regards
> Suresh
Neil Mitchell | 21 Apr 2010 21:56
Picon
Gravatar

Re: Haskell: YHC: compiler errors

Hi Gwern,

I'd say abandoned prototype at this stage. I no longer work on Yhc, no
longer have a working copy, and don't have permission to push patches.
I wouldn't bother going to any effort cleaning it up, unless you want
to maintain/improve it in the long run.

That said, when I last used it, it certainly did parse case
expressions/lambdas! It was basically Haskell 98 plus a couple of
extensions, but not that much of the base library. I've no idea if you
broke something in your cleanup, or if something else got broken
before you got to it.

Thanks, Neil

On Mon, Mar 8, 2010 at 10:09 PM, Gwern Branwen <gwern0 <at> gmail.com> wrote:
> re: bin/yhc/src/compiler98/
>
> I was trying to remove the haskell98 dep, but after I had apparently
> gotten rid of most, I began running into all sorts of odd syntax
> errors - missing \ in lambdas, = in case expressions, list syntax in
> type sigs - that I've begun to wonder if that is a real compiler or an
> abandoned prototype or something.
>
> --
> gwern
>
Philipp Forsthuber | 8 Mar 2010 14:13
Picon
Picon

Building yhc SConstruct file missing

Hi  <at> All,

a colleague of mine and I are writing our Master Thesis. Our goal is to
write a Haskell To Javascript Compiler.

Now we have found that yhc already at least has some sort of JavaScript
backend, and we wanted to take a closer look at all this. So we
installed darcs, checked out the repository and tried to build it. But
when we want to execute Scons to build the code the process fails
because the SConstruct file is missing. Does anybody know how to get
around this? Or are we just failing because we have to have anything
else installed to build the sources?

Any help would be greatly appreciated!

cheers
Philipp

P.S.: If anybody happens to know anotcher Haskell to Javascript backend,
an email would also be really helpful. Thanks again!
Ian Graves | 29 Jan 2010 08:10

YHC snapshot

Hello all,

I was recently looking for a snapshot of YHC, and I wasn't able to
find anything on haskell.org.  It appears that the darcs repositories
have been taken down.  I understand the project has become dormant,
but I am interested to see how some parts of it were put together,
namely the Javascript back end.  It might be right in front of my face
and I'm missing it, but could somebody point me to a snapshot
somewhere if one still exists?

Thanks!

Ian
Sergey Martynov | 24 Sep 2009 12:25
Picon

Can't build Yhc on Mac

Hi,

i'm trying to build yhc from darcs on my mac (x86 10.5.8) but get following error:

$ scons build
scons: Reading SConscript files ...
Building version 0.7.0-20080514104547-custom.
Checking for architecture... (cached) x86
Checking for operating system... (cached) darwin
Checking for Subversion binary... (cached) "svn"
Checking for Subversion version... (cached) Found version 1.4.4.
Checking for GHC binary... (cached) "ghc"
Checking for GHC version 6.4.1 or later... (cached) Found version 6.10.3.
Checking for C header file gmp.h... (cached) yes
Checking for mpz_t integ; mpz_init (integ) in C library gmp... (cached) yes
Checking for libgmp version... (cached) 4.2.4

scons: warning: The env.TargetSignatures() method is deprecated;
    convert your build to use the env.Decider() method instead.
File "/Users/serega/Projects/side/yhc/SConstruct", line 87, in <module>
Bootstrapping...
Done.

scons: warning: The env.Copy() method is deprecated; use the env.Clone() method instead.
File "/Users/serega/Projects/side/yhc/depends/ctypes/libffi/SConscript", line 6, in <module>
scons: done reading SConscript files.
scons: Building targets ...
Getting dependencies for src/compiler/AssocTree.hs.
An error ocurred running `ghc -M -optdep-f -optdepsrc/compiler/.AssocTree.hs.dep -i./src/compiler:./src/libraries/general:./src/libraries/core:depends/cpphs:depends/filepath:depends/uniplate:./src/interactive src/compiler/AssocTree.hs`:
>
>on the commandline:
>    Warning: -optdep-f is deprecated: Use -dep-makefile instead
>
Dependencies will not be calculated.
"ghc" -i./src/compiler -i./src/libraries/general -i./src/libraries/core -idepends/cpphs -idepends/filepath -idepends/uniplate -i./src/interactive -package mtl -package containers -package pretty -package packedstring -c src/compiler/AssocTree.hs -o src/compiler/AssocTree.o

src/compiler/AssocTree.hs:17:0:
    Failed to load interface for `Tree234':
      Use -v to see a list of the files searched for.
scons: *** [src/compiler/AssocTree.o] Error 1
scons: building terminated because of errors.

How can i fix this error?

On wiki http://www.haskell.org/haskellwiki/Yhc/Building i found link to buildbot status but it's dead.
Does buildbot still used for build automation? If yes then i can setup slave on my machine.

--
Best regards,
Sergey Martynov

_______________________________________________
Yhc mailing list
Yhc <at> haskell.org
http://www.haskell.org/mailman/listinfo/yhc
Seo Sanghyeon | 23 Sep 2009 13:59
Picon

Can't build

Hello,

I can't build Yhc. I followed instructions here:
http://www.haskell.org/haskellwiki/Yhc/Building

darcs get finished fine. When I simply typed "scons" into a console
window, I get:

tinuviel <at> debian:~/haskell/yhc$ scons
scons: Reading SConscript files ...
IOError: [Errno 2] No such file or directory: '_darcs/inventory':
  File "/home/tinuviel/haskell/yhc/Sconstruct", line 22:
    setup_version(env, Configure, ARGUMENTS)
  File "/home/tinuviel/haskell/yhc/build/configure.py", line 49:
    env["ENV"]["VERSION"] = getVersion(vtype)
  File "/home/tinuviel/haskell/yhc/build/version.py", line 8:
    lines = filter(lambda x: x.find("**") != -1,
open("_darcs/inventory", "r").readlines())

And there is no _darcs/inventory file indeed. Any idea?

--

-- 
Seo Sanghyeon
Jared Updike | 22 Feb 2009 01:53
Picon
Gravatar

Trouble building yhc on Mac OS X Leopard / x86

I did

scons

It crashed about some .h x86/ffi/darwin. So I did

scons fullclean
scons depends

and it got much further (I presume...) but now it says

libgmp must be install and gmp.h made accessible before you can compile Yhc

which is odd since I installed them with MacPorts, in /opt/local/lib
and /opt/local/include; they are there, and Sconstruct has those paths
in the lines:

env.Append(CPPPATH=["/usr/local/include", "/opt/local/include",
"/Library/Frameworks/GMP.Framework/Headers"])
        env.Append(LIBPATH=["/usr/local/lib", "/opt/local/lib",
"/Library/Frameworks/GMP.Framework"])

so I was puzzled where to go next...

Just wanting to play with Yhc on my Mac...

Any help wouyld be appreciated. Thanks,

  Jared.
Neil Mitchell | 12 Jan 2009 18:49
Picon
Gravatar

Re: Yhc on Zaurus

Hi Ulrich,

Unfortunately I no longer have any time to work on Yhc, and don't have
any easy answers to your problems. Someone at the yhc <at>  mailing list
may have the answers, but the number of Yhc developers is pretty small
(possibly 0), so you may not have much success.

Thanks

Neil

On Sat, Jan 10, 2009 at 12:43 PM, Ulrich Vollert <ulrich <at> vollert.net> wrote:
> Hi Neil,
>
> I tried to build Yhc on my Sharp Zaurus C-3200
> (http://www.pulster.de/engl/sharp_zaurus_c-1000_3200.htm).
>
> The Zaurus is run by Debian Linux 2.6.24 and there are all the tools needed
> for Yhc: gcc 4.3.2, scons (v1.0.0.r3266), Python 2.5.2, darcs 2.1.0 and
> (even !) ghc 6.8.2.
>
> Okay, ghc is a bit heavy for this small machine but it works ;-)
>
> Unfortunately I cant build Yhc. After "scons configure" I get:
>
> <<Unknow armv5tel - Your architectecture is unsupported.>>
>
> Any chance to build Yhc?
>
> Regards,
> Ulrich
>
>
>
>
>

Gmane