[M3devel] FW: Hudson question
Randy Coleburn
rcoleburn at scires.com
Sat Jul 25 02:43:13 CEST 2009
Jay:
I know you are pro Python and some scripts are in python and some scripts are in .sh and there is cygwin etc etc, but let me list why I think we need CMD on Windows:
1. CMD comes with Windows out-of-the-box. No extra config/install is required.
2. I want to be able to launch a CMD window and use the cm3 command line tools to build Modula-3 packages. I also want to be able to run Modula-3 programs without need of any other tools except what comes with Windows by default. Now the latter isn't exactly possible if you are dependent on the .NET framework, but most systems have .NET anyway because Microsoft has pushed it out through online updates.
3. I continue to experience problems with cygwin, python, etc. because the setup in each is slightly different and there are dependencies that are not obvious. If you succeed in installing cm3 using cygwin, it isn't always possible to build/run packages from CMD. I haven't been able to get the python scripts to work for me, despite installing python.
4. CM3IDE launches the native shell to run the cm3 command line tools. On Windows, this shell is CMD. We need to preserve this functionality.
5. I have provided various CMD scripts in the repository and I've been keeping these up-to-date. I don't mind continuing to do this.
6. For this next release, I can build either a CMD script for the install, or build an installer program (EXE). I am volunteering here.
7. Whatever automated test environment we provide on Windows must work in the native shell in order to prove that stuff is working in that shell. If you use cygwin or some other shell, that doesn't mean it will work in CMD.
Regards,
Randy Coleburn
>>> Jay K <jay.krell at cornell.edu> 7/24/2009 7:18 PM >>>
[truncated again, one more try then I give up..]
>
> ----------------------------------------
>> From: jay.krell at cornell.edu
>> To: wagner at elegosoft.com; m3devel at elegosoft.com
>> Subject: RE: [M3devel] Hudson question
>> Date: Fri, 24 Jul 2009 23:12:30 +0000
>>
>>
>> It doesn't likely make a difference.
>>
>>
>> Before you needed Cygwin or Interix.
>> Now you need Cygwin or Interix, and probably Java.
>> Java will probably be a sticking point on various platforms,
>> but the gains are also very nice where it is available.
>> I see there has been work done on an assembly-free Java VM
>> since Sun open sourced their VM, so that promises increased portability.
>> (One wonders some about the Critical Mass VM).
>>
>>
>> Writing more .cmd isn't going to help anything imho.
>> It's just more hard to maintain code that someone
>> will have to maintain in parallel to Olaf's .sh.
>> Which is why I favor Python -- portable, no duplicated effort.
>>
>>
>> "Hard to main" as it, sure, it is easy to get started, but
>> what happens when you decide you need an array, or a hash table?
>> Or any of a number of basic programming constructs?
>> Ok, I guess you have while loops, using goto.
>> Local variables. At least that are strings. Everything is a string.
>> cmd has one or two surprisingly powerfuli features, such as for /f
>> and set /a. If you can't do your work with them, you can't do it.
>> sh is a bit more portable than Python, but not by much and
>> imho at too large a cost in maintainability/generality.
>> It still seems to me like a string based language that can't do much,
>> but I admit I'm not practised in it. (I am very practised in .cmd.)
>>
>>
>> You know, the fact that expression evaluation is in some mix of the "[" command
>> and maybe in sh itself. That people write if xxx true else yyy instead
>> of if not xxx yyy.
>> The fact that Solaris is different.
>> The fact that quoting is needed in various places.
>> Quoting always bothers me. It is hard to predict how many levels
>> of unquoting will be done.
>> I suspect cmd, sh, and Tcl are all in the same overly string based boat.
>> For example in Tcl, { } appear to have the same meaning as in C and C++, good,
>> but in fact they are escape characters, very wierd and bad.
>>
>>
>> Cygwin and Interix both probably work fine.
>> Someone just has to set them up and run them.
>>
>>
>> Consider Cygwin and Interix almost the same.
>> Interix is much faster, if you are calling fork a lot.
>> Cygwin is slightly more compatible with Linux/Posix.
>>
>>
>> Interix has a few ways in which is resembles Linux/Posix more though,
>> such as not using extensions on executables, using ".so", supporting
>> runpath.
>>
>>
>> I think with Cygwin 1.7, both it and Interix go to extreme
>> of supporting backward slash and colon in paths.
>> Interix actually ors in 0xFF00 to such characters but
>> it is transparent to Interix code. Or maybe that's what
>> Cygwin does. I don't remember. It is completely non
>> transparent and discoverable if you look at the results from Win32.
>>
>>
>> Interix probably a larger download, because the
>> part that is mostly "built in" is basically nothing,
>> just some infrastructure and very few utilities.
>> I don't think there is even sh or ksh.
>> Everything else is one large download.
>>
>>
>> On XP nothing is "builtin", there is just one large download.
>> "builtin" is on Server 2003 R2, Vista, Server 2008, etc.
>>
>>
>> (Oh, and Cygwin 1.5 works on Win9x, Interix only down to windows 2000.
>> But Cygwin 1.7 drops Win9x support, but maybe still works on NT4?)
>>
>>
>> - Jay
>>
>>
>> ----------------------------------------
[deliberate snip]
CONFIDENTIALITY NOTICE: This email and any attachments are intended solely for the use of the named recipient(s). This e-mail may contain confidential and/or proprietary information of Scientific Research Corporation. If you are not a named recipient, you are prohibited from making any use of the information in the email and attachments. If you believe you have received this email in error, please notify the sender immediately and permanently delete the email, any attachments, and all copies thereof from any drives or storage media and destroy any printouts of the email or attachments.
EXPORT COMPLIANCE NOTICE: This email and any attachments may contain technical data subject to U.S export restrictions under the International Traffic in Arms Regulations (ITAR) or the Export Administration Regulations (EAR). Export or transfer of this technical data and/or related information to any foreign person(s) or entity(ies), either within the U.S. or outside of the U.S., may require export authorization by the appropriate U.S. Government agency prior to export or transfer. In addition, technical data may not be exported or transferred to certain countries or specified designated nationals identified by U.S. embargo controls without prior export authorization. By accepting this email and any attachments, all recipients confirm that they understand and will comply with all applicable ITAR, EAR and embargo compliance requirements.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20090724/c10d865c/attachment-0002.html>
More information about the M3devel
mailing list