<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-15">
<META content="MSHTML 6.00.6000.16788" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px">
<DIV>Jay:</DIV>
<DIV> </DIV>
<DIV>I think your email illustrates part of what I was trying to say in that there are a lot of things that aren't documented very well at this point that differ from the current documentation and practice that we've followed over the years.</DIV>
<DIV> </DIV>
<DIV>I'm not sure I agree with some of the proposals you offer. To be fair though, I think we should single out one proposal at a time for discussion.</DIV>
<DIV> </DIV>
<DIV>As for m3overrides and private vs. public repositories, I think you are going to get a lot of push-back on the idea to always ship everything to the public repository. I for one, don't like this idea.</DIV>
<DIV> </DIV>
<DIV>I do agree that the compiler's idea of certain options, e.g., clean, may not match what everyone expects. Of course, many of us have written scripts, etc. that invoke the compiler with certain options and that do other "stuff" using some of the same terminology (e.g. clean, ship, build, buildship, realclean, zap, etc.). I am arguing that the terminology should be standardized to have a consistent meaning across all of these. Depending on the definitions, some code will need to change make the implementation match the definition.</DIV>
<DIV> </DIV>
<DIV>Regards,</DIV>
<DIV>Randy<BR><BR>>>> Jay <jay.krell@cornell.edu> 1/20/2009 1:03 AM >>><BR><BR>> [was truncated and forward to m3commit instead of m3devel, now more content/drivel..]<BR><BR>ps:<BR><BR><BR>>> I also want "us" to give explicit,<BR>>> documented, definitions of the terms<BR>>> "build", "ship", "clean", "spotless",<BR>>> etc. etc. that are used in various scripts et al and make these consistent. <BR><BR><BR><BR>"Clean" doesn't really work imho..I guess it deletes the output files<BR>that the compiler knows about? Perhaps it is a bug when the<BR>config file doesn't tell it about all the outputs?<BR><BR><BR>"realclean" deletes the entire output directory, no matter what files it thinks it produced.<BR>It does assume they are all in the particular directory that they strongly tend to be in.<BR><BR><BR>It's dumb imho.<BR>Clean should probably be fixed.<BR><BR><BR>The m3-sys/m3cc directory and probably m3gdb also have their own special<BR>in-between state of "configure having been one", that they create a marker<BR>file to indicate. And then there is an environment variable to override that.<BR>Quake is a fairly general purpose language including the ability to read<BR>environment variables, so various directories are free to do whatever they want.<BR><BR><BR>m3cc and m3gdb are two of the longest to build package and configuration is also a slow step, that "rarely" has different output, so going back only to this "partly built" state perhaps is interesting. I rarely do that, at least on purpose.<BR><BR><BR>The Linux kernel and ucLibc (an alternative C runtime) do something similar.<BR>They store their configuration in file starting with a dot, so that on Unix rm -rf * won't delete it, because it skips "hidden" "dot" files.<BR><BR><BR><BR>As well you can define arbitrary things on the cm3 command line, to guide<BR>arbitrary decisions around the tree, such as kernel vs. user threads.<BR><BR><BR>Given<BR>foo\src<BR>build outputs are generally in<BR>foo\target<BR><BR><BR>where "outputs" include "intermediate" files such as object files and "final" outputs such as executables and .dlls.<BR><BR><BR>You know...really I think, it's just that the Modula-3 folks knew/thought they were smarter than everyone else and made up their own terminology.<BR><BR><BR>In many other projects you have "make" and "make install".<BR>"ship" is "make install". I think that is all people need to know: "ship" == "install".<BR><BR><BR>It copies some of the outputs from foo\target to the installroot.<BR>Just as "make install" copies some of the outputs from the "intermediate" tree to the "live" tree. They can both be "dangerous" on a live system, and they can both be pointed at "new" empty location for safety (typical GNU make/automake/autoconf install option is make install DESTDIR=somewhere).<BR><BR><BR>I propose a different model.<BR>Always put the "final" outputs directly in a "live" tree, BUT for the case where you are doing something "risky" and would not immediately "ship" / "install", you would be encouraged to define a new clean output root, or an existing "test" root.<BR><BR><BR>"Actual install" would then be just a recursive copy from one root to another.<BR>Perhaps that is too inefficient? cm3 tries to do an incremental copy for example.<BR>I'm not sure if it is timestamp based or if they compare entire file contents.<BR><BR><BR>The downside to this proposal is that source files also get shipped, and doing that for every compile/link is wasteful. This is optional though and maybe can/should be turned off except when "making a distribution"? I'm not sure how optional it is. I'll try out turning it off locally.<BR><BR><BR>An upside to this proposal is it supercedes the "override" mechanism.<BR>You would never need to "override".<BR>"override" imho is broken because today, in order to keep "override" working, you are expected to encode the source tree structure all over the place. This seems redundant.<BR><BR><BR>Perhaps another idea would be for CM3_INSTALL to be colon/semicolon delimited?<BR>Search multiple package stores?<BR>That offers functionality not in the current model.<BR><BR><BR>A related proposal I have is that even the intermediate files be relocated.<BR>As I said, on a package-by-package basis, they are not in the source tree.<BR>Good. But on a multi-package basis, they are. Not good.<BR><BR><BR>I want the source tree to have no outputs, to stay "clean", unless I edit a file.<BR><BR><BR>Concretely this all looks like:<BR>1) There is already the CM3_INSTALL environment variable. That is where "binaries" should be output, in the same structure that "ship" uses today.<BR><BR><BR>2) There shall be a new environment variable, something like CM3_OBJECT_ROOT.<BR><BR>3) The existing CM3_ROOT that is the root of the source tree shall come into play.<BR><BR><BR>Given building in<BR>CM3_ROOT/foo/bar <BR><BR><BR>output shall go into:<BR> CM3_OBJECT_ROOT/foo/bar/target <BR> or maybe CM3_OBJECT_ROOT/target/foo/bar <BR> or maybe CM3_OBJECT_ROOT/foo/bar <BR><BR><BR>instead of CM3_ROOT/foo/bar/target. <BR><BR><BR>If you are not building under CM3_ROOT, there are a few viable options. <BR> 1) Do things as they are today. <BR> 2) Form up a form of CM3_OBJECT_ROOT/the path you are building that is valid and predictable. For example, in Windows, given a full path with a colon in it, remove the colon and you have a valid relative path you can append to another root. <BR> 3) Give user a way to specify what their "root" or "relative path from root" is. <BR><BR><BR>Because outputs litter the source tree today..unless you engage in changing BUILD_DIR, which maybe is the way in a few ways actually..you can't do multiple concurrent builds of the same target, such as with a different %PATH% to a different cm3.exe.<BR><BR><BR>Now, there is already BUILD_DIR.<BR>Perhaps all this is as simple as a change in the config file, changing BUILD_DIR to something like CM3_ROOT/path_of(foo.m3)/TARGET. I'll try that later.<BR>Maybe it just works. ?<BR>I'm not confident it'll work but maybe.<BR><BR><BR>Am I crazy? Wrong? Too disruptive?<BR>Most likely the last.<BR><BR><BR>- Jay<BR><BR><BR><BR>----------------------------------------<BR>> From: jay.krell@cornell.edu<BR>> To: m3commit@elegosoft.com; rcoleburn@scires.com<BR>> Date: Tue, 20 Jan 2009 05:40:07 +0000<BR>> Subject: [M3commit] FW: [M3devel] move to version 5.7.1?<BR>><BR>><BR>> [was truncated]<BR>><BR>><BR>><BR>><BR>><BR>><BR>><BR>><BR>><BR>><BR>> ----------------------------------------<BR>>> From: jay.krell@cornell.edu<BR>>> To: rcoleburn@scires.com; m3devel@elegosoft.com<BR>>> Subject: RE: [M3devel] move to version 5.7.1?<BR>>> Date: Tue, 20 Jan 2009 02:28:07 +0000<BR>>><BR>>><BR>>> I meant, can we update the version stamp in the compiler.<BR>>> Nothing about releases or what not.<BR>>> But I'll take some of the bait. :)<BR>>><BR>>><BR>>> My archives are already pretty easy to use, but need a short readme.<BR>>><BR>>><BR>>> HP-UX is not yet supported, but will be fairly soon, maybe this week.<BR>>> 64bit first, this week, then 32bit, by end of next week?<BR>>> (HP-UX also runs on IA64 btw, but I couldn't get my hardware to boot<BR>>> my OS, maybe too old OS, maybe need to fiddle with EFI console settings.<BR>>> I will be doing IA64_LINUX before long. IA64_FREEBSD also wouldn't boot<BR>>> for me.)<BR>>><BR>>><BR>>> Where is the line between "free Microsoft tools" and "free Python"?<BR>>><BR>>><BR>>> Python is NOT needed to build cm3, just as bash is not needed.<BR>>><BR>>><BR>>> There are VERY handy scripts for doing so, in both languages.<BR>>> They are just slightly elaborate ways to cd around and run cm3.<BR>>><BR>>><BR>>> I know, I know..they are each line crossing, everything I have to<BR>>> install is a line. If it was just "free Python" and no need for "free Microsoft",<BR>>> that would be similar as just "free Microsoft". And "free Microsoft"<BR>>> is higher quality and more trusted than "free Python", and, clearly,<BR>>> simply more necessary, unless you use Cygwin.<BR>>><BR>>><BR>>> Cmd is an awful language for nearly any purpose.<BR>>> Please don't ask me to support any cmd files.<BR>>><BR>>><BR>>> Maybe I will rewrite the automation in JScript.<BR>>> It is a half decent language and works plenty well for command line automation.<BR>>> It is been "in the OS" for many years, probably at least since Windows 2000, and<BR>>> with any install of Internet Explorer.<BR>>><BR>>><BR>>> But really..you know..all the Python I write...is somewhat of an indictment<BR>>> of either Modula-3 or myself -- I don't "like" Modula-3 enough to write much<BR>>> of anything in it.. That is..these "scripts" perhaps should be written in Modula-3.<BR>>><BR>>><BR>>> Or maybe actually in Quake?<BR>>> Quake is kind of limited though.<BR>>> Maybe with the updates though that Olaf made?<BR>>> I'll think about it.<BR>>><BR>>><BR>>> The system is "easier" to build from a "current" system than from an "older" system.<BR>>> upgrade.sh and upgrade.py work with either.<BR>>> If your system is already current, you can just build in dependency order.<BR>>> If your system is not current, you first build "just the compiler", in dependency<BR>>> order, but skipping and m3core, libm3. Or you possibly hack them slightly.<BR>>> (Btw Tony there are few other instances of LONGINT in m3core than the one, but not many.)<BR>>><BR>>><BR>>> Most of this confusion is probably only for people that build the system.<BR>>> As well, maybe it could be reduced by just having an "output root"<BR>>> like I've said, but I know that'd be disruptive.<BR>>><BR>>><BR>>> The archives I upload are not bad.<BR>>> You just extract them, set $PATH, install Python, get/install a<BR>>> C compiler and linker and runtime (either Cygwin or Microsoft) and go.<BR>>><BR>>><BR>>> I think they are better than the cminstall-based ones.<BR>>><BR>>><BR>>> I am not likely to get around to much additional polish.<BR>>><BR>>><BR>>><BR>>> - Jay<BR>>><BR>>><BR>>><BR>>> ________________________________<BR>>>> Date: Mon, 19 Jan 2009 18:50:40 -0500<BR>>>> From: rcoleburn@scires.com<BR>>>> To: m3devel@elegosoft.com<BR>>>> Subject: Re: [M3devel] move to version 5.7.1?<BR>>>><BR>>>><BR>>>><BR>>>><BR>>>><BR>>>><BR>>>><BR>>>> Jay et al:<BR>>>><BR>>>><BR>>>><BR>>>> I have not updated any of my cm3 code base since I released my last application to my customer in late 3Q2008.<BR>>>><BR>>>><BR>>>><BR>>>> Based on all the activity, I don't think I want to do an update until we've decided to make a new release. This decision should be based primarily on stability of the code base across platforms.<BR>>>><BR>>>><BR>>>><BR>>>> I can backup my cm3 tree, update to latest code, and run tests on Windows XP using my current apps if that would be helpful. Let me know. Also, I may be able to do some tests on HP-UX if that platform is supported. In addition, I also now have access to a Solaris box.<BR>>>><BR>>>><BR>>>><BR>>>> One of the things I want to do for the next release is to provide detailed documentation on how to install cm3 on Windows using just the tools that comes with Windows or that are available free from Microsoft. I've already got a good start on this, but will want to get input on the exact order of package builds and which have to be repeated when.<BR>>>><BR>>>><BR>>>><BR>>>> My idea is that we should have a minimal install archive for Windows (NT386) available from which the "customer" (end-user) can build all of the supported packages in the correct order, including rebuilding the base/core cm3 to prove his system is fully functional. On Windows, the build would be handled via .CMD files and not require python or anything else not supplied with Windows or free from Microsoft.<BR>>>><BR>>>><BR>>>><BR>>>> I also want "us" to give explicit, documented, definitions of the terms "build", "ship", "clean", "spotless", etc. etc. that are used in various scripts et al and make these consistent. We also need to have good documentation on all the pragmas, environment variables, options, and command line switches that CM3 and CM3IDE recognize. I believe a number of these currently exist that are not well-known or properly documented.<BR>>>><BR>>>><BR>>>><BR>>>> IMO, this next release needs to be as professional as possible and provide end users (customers) with the best possible experience in terms of ease of installation and use.<BR>>>><BR>>>><BR>>>><BR>>>> I'll help as much as I can.<BR>>>><BR>>>><BR>>>><BR>>>> Regards,<BR>>>><BR>>>> Randy Coleburn<BR>>>><BR>>>>>>> Jay 1/19/2009 5:39 PM>>><BR>>>><BR>>>> Should we move to move version 5.7.1?<BR>>>><BR>>>> To mark the new year, and NT386GNU defaulting to pthreads (I'm thinking I should go back and make it a command line option, it's very very easy).<BR>>>><BR>>>> Just edit two lines in sysinfo.sh and everything keeps working, right?<BR>>>><BR>>>> - Jay<BR></DIV></BODY></HTML>