caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Seeking (Meta)Ocaml / compiler writing help
@ 2010-06-17 18:26 Simon P
  2010-06-18  1:55 ` [Caml-list] " Erik de Castro Lopo
  2010-06-18  6:31 ` David MENTRE
  0 siblings, 2 replies; 3+ messages in thread
From: Simon P @ 2010-06-17 18:26 UTC (permalink / raw)
  To: caml-list; +Cc: metaocaml-users

Hi,

We are an early stage (still exploring) startup looking for some help with a small proof-of-concept compiler project using Ocaml or Haskell.

We want to build a small domain specific language and convert it to
a C-like language. In the process of this source-to-source translation, we want to try partial evaluation followed by relatively simple optimizations (dead code elimination, common subexpression elimination, constant folding, inlining). We are also considering some other domain specific transformations that may involve converting (hopefully automatically) code to continuation passing style.

We are especially interested in exploring stage compilation using MetaOcaml for this project.

Contact us at psimonp_AT_yahoo_DOT_com if interested in helping out.
 
Thanks,
 
Simon




      


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] Seeking (Meta)Ocaml / compiler writing help
  2010-06-17 18:26 Seeking (Meta)Ocaml / compiler writing help Simon P
@ 2010-06-18  1:55 ` Erik de Castro Lopo
  2010-06-18  6:31 ` David MENTRE
  1 sibling, 0 replies; 3+ messages in thread
From: Erik de Castro Lopo @ 2010-06-18  1:55 UTC (permalink / raw)
  To: caml-list

Simon P wrote:

> We want to build a small domain specific language and convert it to
> a C-like language.

Why convert to a C-like language? The LLVM compiler backend seems
to be the way to go these days.

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] Seeking (Meta)Ocaml / compiler writing help
  2010-06-17 18:26 Seeking (Meta)Ocaml / compiler writing help Simon P
  2010-06-18  1:55 ` [Caml-list] " Erik de Castro Lopo
@ 2010-06-18  6:31 ` David MENTRE
  1 sibling, 0 replies; 3+ messages in thread
From: David MENTRE @ 2010-06-18  6:31 UTC (permalink / raw)
  To: Simon P; +Cc: caml-list, metaocaml-users

Hello,

2010/6/17 Simon P <psimonp@yahoo.com>:
> We want to build a small domain specific language and convert it to
> a C-like language. In the process of this source-to-source translation, we want to try partial evaluation followed by relatively simple optimizations (dead code elimination, common subexpression elimination, constant folding, inlining).

It might be interested for you to look at Min-Caml compiler:
 http://min-caml.sourceforge.net/index-e.html

Paper describing the compiler: http://min-caml.sourceforge.net/paper.pdf

MinCaml is a complete ML-like compiler compiling to Sparc in about
2,000 lines of code. As far as I remember, it does common
subexpression elimination, constant folding and inlining.

Sincerely yours,
david


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-06-18  6:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-17 18:26 Seeking (Meta)Ocaml / compiler writing help Simon P
2010-06-18  1:55 ` [Caml-list] " Erik de Castro Lopo
2010-06-18  6:31 ` David MENTRE

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).