[MLton-devel] front end

Jesper Louis Andersen jlouis@mongers.org
Mon, 25 Aug 2003 01:16:57 +0100


Quoting Stephen Weeks (sweeks@sweeks.com):
> 
> Hi Jesper, I saw your post on Advogato regargding MLton
> 
> 	http://www.advogato.org/recentlog.html
> 
> I wanted to let you know that regarding the front end, I am currently
> working on a new front end as my highest priority project.  

Then I will not work on that part. I planned to inform the world in here
before I began anyway to coordinate efforts. If I should do anything it
can not be a too large project anyway as the next university semester
starts soon and hell breaks loose for my part. I intend to get the
profiler up and running for NetBSD as my first priority though. When
that is finished, let us see how much time I can find. Suggestions for
small projects I can handle are welcome.

As for the proper frontend: That is indeed great news. I am getting
tired of having the monolith installed (SML/NJ) and development seems to
have stalled. I presume they got hit by the 2nd effect. 

And for a couple of patches:

This one missed my first patch-set. We should all agree that C could do
without placing semicolons as SML, but unfortunately that is not the
case:

diff -ur mlton-cvs/mlton/runtime/gc.c mlton-split-examples/runtime/gc.c
--- mlton-cvs/mlton/runtime/gc.c	Sun Aug 24 00:37:19 2003
+++ mlton-split-examples/runtime/gc.c	Sun Aug 24 00:58:29 2003
@@ -3946,7 +3946,7 @@
 
 /* returns total amount of memory available */
 static int totalRam () {
-	uint mem
+	uint mem;
 	int len, mib[2];
 	
 	mib[0] = CTL_HW;

This is a little hack that splits out examples into their own directory
definition. It helps me quite a bit when working for the NetBSD pkgsrc.
I do not want you to commit it headlessly, but rather discuss it. I
think I should make i new target install-examples and place it there. I
could do this with patches in the pkgsrc, but it would be nicer if the
structure handled it. Preliminary patch follows so people can get an
idea of what I am trying to do:

diff -ur mlton-cvs/mlton/Makefile mlton-split-examples/Makefile
--- mlton-cvs/mlton/Makefile	Mon Jul 14 21:15:09 2003
+++ mlton-split-examples/Makefile	Mon Aug 25 01:50:03 2003
@@ -220,6 +220,7 @@
 TLIB = $(DESTDIR)$(prefix)/$(ULIB)
 TMAN = $(DESTDIR)$(prefix)$(MAN_PREFIX_EXTRA)/man/man1
 TDOC = $(DESTDIR)$(prefix)/share/doc/mlton
+TEXM = $(DESTDIR)$(prefix)/share/doc/mlton/examples
 ifeq ($(HOST_OS), sunos)
 TDOC = $(DESTDIR)$(prefix)/doc/mlton
 endif
@@ -261,13 +262,16 @@
 	rm -rf $(TDOC)/user-guide
 	$(CP) $(SRC)/doc/user-guide/main $(TDOC)/user-guide
 	$(GZIP) -c $(SRC)/doc/user-guide/main.ps >$(TDOC)/user-guide.ps.gz
-	for f in callcc command-line hello-world same-fringe signals size taut thread1 thread2 thread-switch timeout; do \
- 		$(CP) $(SRC)/regression/$$f.sml $(TDOC)/examples; \
+	for f in callcc command-line hello-world same-fringe signals \
+                       size taut thread1 thread2 thread-switch timeout; do \
+ 		$(CP) $(SRC)/regression/$$f.sml $(TEXM)/ ; \
 	done
 	$(GZIP) -c $(LEX)/$(LEX).ps >$(TDOC)/$(LEX).ps.gz
 	$(GZIP) -c $(YACC)/$(YACC).ps >$(TDOC)/$(YACC).ps.gz
 	find $(TDOC)/ -name CVS -type d | xargs rm -rf
 	find $(TDOC)/ -name .cvsignore -type f | xargs rm -rf
+	find $(TEXM)/ -name CVS -type d | xargs rm -rf
+	find $(TEXM)/ -name .cvsignore -type f | xargs rm -rf
 
 TDOCBASE = $(DESTDIR)$(prefix)/share/doc-base
 
-- 
j. 


-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
_______________________________________________
MLton-devel mailing list
MLton-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlton-devel