Re: [fpc-pascal] A complex trouble(at least for me)
Arí Ricardo Ody wrote: Suppose the following structure: 01 a-1. 03 b-1 pic xxx. 03 b-2 pic 999. 03 b-3. 05 c-1 pic aaa. 05 c-2. 07 d-1 pic zzz. 07 d-2 pic xxx. 05 c-3 pic 99. 03 b-4 pic zzz. 03 b-5. 05 e-1 pic zzz. All line not containing the word pic I would call a group item and the other lines will be elementary items. I would like to wrote a routine(or program) that save each group item and the elementary items contained in a StringList. Admit that the pattern of the structure is random. The example above is only an example. In this example: StringList1 will contain 'a-1' '03 b-1 pic xxx.' '03 b-2 pic 999.' '03 b-4 pic zzz.' StringList2 will contain 'b-3' '05 c-1 pic aaa.' '05 c-3 pic 99.' StringList3 will contain 'c-2' '07 d-1 pic zzz.' '07 d-2 pic xxx.' StringList4 will contain 'b-5' '05 e-1 pic zzz.' At the end of the program I will(for example) write the StringList's to disk. But I can't write anyone before the program end. I had thinked hard about it. I can't create StringList with a variable name. I must previously declare each one in my pascal source. How can I solve the trouble proposed? "I can't create StringList with a variable name." I don't know how much pascal experience you have. and I am not 100% sure what this line means, but taking a guess: You need a way to store "stringlist2" in stringlist1 => So that if you later read the list, you can read the nested lists too? You do not need a variable for each Stringlist you create. Procedure AddNestedStringlist(OuterStringlist: TStringList; Text: String); var InnerStringList: TStringlist; begin InnerStringList := TStringlist.Create; OuterStringlist.AddObject(Text, InnerStringlist); end; Thats it. Note that there is no InnerStringlist.Free. The stringlist you created is not bound to the variable "InnerStringlist". It is just a stringlist in memory, and any variable (of the correct type) can refer to it. To read the variable back (you need a type cast): NextedStringList := TStringList(OuterStringList.Objects[n]); Before you Free OuterStringlist, you have to check for any InnerStringlist and destroy it, or you will leak memory. Note that when I'm appending strings in a StringList, it's possible that I must create a new StringList(or various), put data in it(or them) and return to put data in the first StringList. If the solution is obvious I beg your pardon. I can't find it. * * ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] A complex trouble(at least for me)
Show me an example of what you are talking about please. I think I don't understand your post. [ ] At 20:51 7/5/2009, you wrote: Arí Ricardo Ody wrote: [snipped] I can't create StringList with a variable name. I must previously declare each one in my pascal source. How can I solve the trouble proposed? I don't understand this part of your message. Does this mean you think you cannot dynamically create TStringList instances in your code? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] A complex trouble(at least for me)
It's out matter but, I'm working with legacy modernization. The company I work deals with legacy modernization. Mainly in mainframes [ ] At 19:40 7/5/2009, you wrote: On Thu, 2009-05-07 at 18:12 -0300, Arà Ricardo Ody wrote: > Suppose the following structure: > > 01 a-1. >03 b-1 pic xxx. >03 b-2 pic 999. >03 b-3. > 05 c-1 pic aaa. > 05 c-2. > 07 d-1 pic zzz. > 07 d-2 pic xxx. > 05 c-3 pic 99. >03 b-4 pic zzz. >03 b-5. > 05 e-1 pic zzz. > > All line not containing the word pic I would call a group item and the > other lines will be elementary items. This is loosely COBOL source code. > > I would like to wrote a routine(or program) that save each group item > and the elementary items contained in a StringList. Admit that the > pattern of the structure is random. The example above is only an > example. > > In this example: > StringList1 will contain 'a-1' '03 b-1 pic xxx.' '03 b-2 pic 999.' '03 > b-4 pic zzz.' > StringList2 will contain 'b-3' '05 c-1 pic aaa.' '05 c-3 pic 99.' > StringList3 will contain 'c-2' '07 d-1 pic zzz.' '07 d-2 pic xxx.' > StringList4 will contain 'b-5' '05 e-1 pic zzz.' Do you want to put the COBOL source into a TStringList? > Are you trying to write a COBOL compiler? If not, what are you trying to do? -- Regards, Dave [RLU #314465] === david.w.n...@ntlworld.com (David W Noon) === ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] A complex trouble(at least for me)
I think I don'understand 'cause I need a TStringList with a known different nam for each group item(as proposed in the original e-mail) [ ] At 20:51 7/5/2009, you wrote: Arí Ricardo Ody wrote: [snipped] I can't create StringList with a variable name. I must previously declare each one in my pascal source. How can I solve the trouble proposed? I don't understand this part of your message. Does this mean you think you cannot dynamically create TStringList instances in your code? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] A complex trouble(at least for me)
Have you considered using XML to represent and structure your data? If you must do it with TStringList, you could declare a dynamic array of TStringList and instantiate the array elements at will at runtime. Also, each string entry in the TStringList can hold a pointer to any object that you declare in your application. These objects are added by calling the TStringList.AddObject method. Refer to the FPC RTL docs for more information. //*** On Friday 08 May 2009 15:09:36 Arí Ricardo Ody wrote: > I think I don'understand 'cause I need a > TStringList with a known different nam for each > group item(as proposed in the original e-mail) > > [ ] > > At 20:51 7/5/2009, you wrote: > >Arí Ricardo Ody wrote: > >>[snipped] > >>I can't create StringList with a variable name. > >>I must previously declare each one in my > >>pascal source. How can I solve the trouble proposed? > > > >I don't understand this part of your message. > >Does this mean you think you cannot dynamically > >create TStringList instances in your code? > > > >___ > >fpc-pascal maillist - fpc-pascal@lists.freepascal.org > >http://lists.freepascal.org/mailman/listinfo/fpc-pascal > > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] A complex trouble(at least for me)
On Fri, 2009-05-08 at 09:41 -0300, Arí Ricardo Ody wrote: > It's out matter but, I'm working with legacy > modernization. The company I work deals with > legacy modernization. Mainly in mainframes So, are you trying to convert COBOL code to some more modern language? If not, I still don't understand what you are trying to do. Moreover, very few modern languages implement COBOL semantics, especially as regards decimal arithmetic. You will likely need to generate assembler code for your target platform, and that is even more of a "legacy" approach to software than coding in COBOL. [Note: double precision floating point does *not* implement decimal semantics, in spite of it seeming an easy substitute.] The "modern" language that is most likely to provide you with decimal capability is Java; it also runs even slower than COBOL. Assuming you are trying to automate conversion of COBOL source to some newer language, then you will largely need to write a parser for the COBOL grammar. This is far from trivial. You will then need to write an emitter for your chosen "modern" language, so that you rebuild the COBOL semantics as exactly as possible. >From your original message, you seem to be still working on the parser. I would suggest you use a more compiler theoretical approach than just generating a string list. If you encode the parsed COBOL source into some internal meta-language, this will make your emitter much easier to write. Better yet, if your encoding includes some semantic analysis of the COBOL source, you can optimize the generated code so that it both runs better and is easier maintained in your "modern" language. Just my 2¢ worth. -- Regards, Dave [RLU #314465] === david.w.n...@ntlworld.com (David W Noon) === ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] A complex trouble(at least for me)
The conversation is becaming off topic. I wouldn't like to discuss this matter here. We have a great expertise in language conversor development here. We can discuss it in private. Be my guest. I'm needing a solution to the problem I propose. Cheers Ricardo Sao Paulo - Brasiç At 11:33 8/5/2009, you wrote: On Fri, 2009-05-08 at 09:41 -0300, Arà Ricardo Ody wrote: > It's out matter but, I'm working with legacy > modernization. The company I work deals with > legacy modernization. Mainly in mainframes So, are you trying to convert COBOL code to some more modern language? If not, I still don't understand what you are trying to do. Moreover, very few modern languages implement COBOL semantics, especially as regards decimal arithmetic. You will likely need to generate assembler code for your target platform, and that is even more of a "legacy" approach to software than coding in COBOL. [Note: double precision floating point does *not* implement decimal semantics, in spite of it seeming an easy substitute.] The "modern" language that is most likely to provide you with decimal capability is Java; it also runs even slower than COBOL. Assuming you are trying to automate conversion of COBOL source to some newer language, then you will largely need to write a parser for the COBOL grammar. This is far from trivial. You will then need to write an emitter for your chosen "modern" language, so that you rebuild the COBOL semantics as exactly as possible. >From your original message, you seem to be still working on the parser. I would suggest you use a more compiler theoretical approach than just generating a string list. If you encode the parsed COBOL source into some internal meta-language, this will make your emitter much easier to write. Better yet, if your encoding includes some semantic analysis of the COBOL source, you can optimize the generated code so that it both runs better and is easier maintained in your "modern" language. Just my 2¢ worth. -- Regards, Dave [RLU #314465] === david.w.n...@ntlworld.com (David W Noon) === ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] A question or two regarding the FPC
Hi guys, Over the last few years, I have written hundreds of thousands of lines of object pascal code that compiles successfully using the FPC and Delphi. To date, I have not encountered any problems with the code generated by the FP Linux compiler. I don't have much experience with FPC within the MS Windows environment as my current interest lies in developing console Linux apps. Like most developers, I strive to write code that is as bug free as possible and at the end of each day, I'm left with a feeling of great satisfaction and achievment. IMO and experience, the code generated by the FPC is as resilient as the operating system it runs on. My question is directed to the FPC team and in particular, to those involved in the development of the compiler and more specific, the Linux compiler. (I would expect that Florian would have a say here). In your opinion, how would you rate the suitability of the FPC generated code for use in an environment where there is near zero tolorance to failure? Consider the question assuming that the ideal condition where that the source code is as close to being perfect as possible, (and I'm not suggesting that this perfect code would be written by me. I'm not that good). Where am I going with this question you might ask? Well, what is the difference with say, the code generated by an ADA95 compiler and that generated by the FPC. Perhaps someone out there might know. What determines the robustness of the generated code? Could the FPC be rated by some authority as being able to generate code of some world defined standard? I know that if I were to manufacture a device or appliance that was controlled by FPC code and the device, say a home alarm system, functioned as designed and as specified, then the fact that the device is controlled by code generated by the FPC would be irrelevant. However, if the device were designed to control the laser beam that reshapes a human cornea (eye), then the compiler and operating system is of relevance. (The possibility of someone using MS Windows CE and Micro .NET comes to mind). In conclusion, perhaps somebody has already had similar thoughs with regards to the above question(s) and has some answers. Would be cool to have the FPC team's sincere thoughs on the above. Keep up the good work guys and thanks for a superb compiler (and RTL - of course). Regards, Nino ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] A question or two regarding the FPC
On 08 May 2009, at 19:02, fpcl...@silvermono.co.za wrote: In your opinion, how would you rate the suitability of the FPC generated code for use in an environment where there is near zero tolorance to failure? Unsuitable. There are no systematic unit tests for most parts of the compiler, nor many integration tests. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] A question or two regarding the FPC
Hi Nino: I am using FPC since 2000-2001. I use it for data aquisition and temperature control. Console programs compiled with FPC 1.x work for days, even weeks. In the "Laboratorio de Física del Sólido, Tucumán - Argentina" (Solid state physics laboratory) we have used programs compiled with FPC to grow YBACuO superconductor crystals. This process take weeks. This heat treatment is the only "mission critical application" that I know well, and FPC works reliably, even for weeks, on linux machines. Gustavo ps:excuse my english 2009/5/8 : > Hi guys, > > Over the last few years, I have written hundreds of thousands of lines of > object pascal code that compiles successfully using the FPC and Delphi. To > date, I have not encountered any problems with the code generated by the > FP Linux compiler. I don't have much experience with FPC within the MS Windows > environment as my current interest lies in developing console Linux apps. > > Like most developers, I strive to write code that is as bug free as possible > and at the end of each day, I'm left with a feeling of great satisfaction and > achievment. > > IMO and experience, the code generated by the FPC is as resilient as the > operating system it runs on. > > My question is directed to the FPC team and in particular, to those involved > in the development of the compiler and more specific, the Linux compiler. (I > would expect that Florian would have a say here). > > In your opinion, how would you rate the suitability of the FPC generated code > for use in an environment where there is near zero tolorance to failure? > Consider the question assuming that the ideal condition where that the source > code is as close to being perfect as possible, (and I'm not suggesting that > this perfect code would be written by me. I'm not that good). > > Where am I going with this question you might ask? Well, what is the > difference with say, the code generated by an ADA95 compiler and that > generated by the FPC. Perhaps someone out there might know. What determines > the robustness of the generated code? Could the FPC be rated by some > authority as being able to generate code of some world defined standard? > > I know that if I were to manufacture a device or appliance that was controlled > by FPC code and the device, say a home alarm system, functioned as designed > and as specified, then the fact that the device is controlled by code > generated by the FPC would be irrelevant. However, if the device were designed > to control the laser beam that reshapes a human cornea (eye), then the > compiler and operating system is of relevance. (The possibility of someone > using MS Windows CE and Micro .NET comes to mind). > > In conclusion, perhaps somebody has already had similar thoughs with regards > to the above question(s) and has some answers. Would be cool to have the FPC > team's sincere thoughs on the above. > > Keep up the good work guys and thanks for a superb compiler (and RTL - of > course). > > Regards, > Nino > > ___ > fpc-pascal maillist - fpc-pas...@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] A question or two regarding the FPC
Wow!, is good to know I'm not the only Argentinian using FPC. Leonardo M. Ramé http://leonardorame.blogspot.com --- On Fri, 5/8/09, Gustavo Enrique Jimenez wrote: > From: Gustavo Enrique Jimenez > Subject: Re: [fpc-pascal] A question or two regarding the FPC > To: "FPC-Pascal users discussions" > Date: Friday, May 8, 2009, 2:35 PM > Hi Nino: > > I am using FPC since 2000-2001. I use it for data > aquisition and > temperature control. Console programs compiled with FPC 1.x > work for > days, even weeks. In the "Laboratorio de Física del > Sólido, Tucumán - > Argentina" (Solid state physics laboratory) we have used > programs > compiled with FPC to grow YBACuO superconductor crystals. > This process > take weeks. > This heat treatment is the only "mission critical > application" that I > know well, and FPC works reliably, even for weeks, on linux > machines. > > Gustavo > > ps:excuse my english > > > 2009/5/8 : > > Hi guys, > > > > Over the last few years, I have written hundreds of > thousands of lines of > > object pascal code that compiles successfully using > the FPC and Delphi. To > > date, I have not encountered any problems with the > code generated by the > > FP Linux compiler. I don't have much experience with > FPC within the MS Windows > > environment as my current interest lies in developing > console Linux apps. > > > > Like most developers, I strive to write code that is > as bug free as possible > > and at the end of each day, I'm left with a feeling of > great satisfaction and > > achievment. > > > > IMO and experience, the code generated by the FPC is > as resilient as the > > operating system it runs on. > > > > My question is directed to the FPC team and in > particular, to those involved > > in the development of the compiler and more specific, > the Linux compiler. (I > > would expect that Florian would have a say here). > > > > In your opinion, how would you rate the suitability of > the FPC generated code > > for use in an environment where there is near zero > tolorance to failure? > > Consider the question assuming that the ideal > condition where that the source > > code is as close to being perfect as possible, (and > I'm not suggesting that > > this perfect code would be written by me. I'm not that > good). > > > > Where am I going with this question you might ask? > Well, what is the > > difference with say, the code generated by an ADA95 > compiler and that > > generated by the FPC. Perhaps someone out there might > know. What determines > > the robustness of the generated code? Could the FPC be > rated by some > > authority as being able to generate code of some world > defined standard? > > > > I know that if I were to manufacture a device or > appliance that was controlled > > by FPC code and the device, say a home alarm system, > functioned as designed > > and as specified, then the fact that the device is > controlled by code > > generated by the FPC would be irrelevant. However, if > the device were designed > > to control the laser beam that reshapes a human cornea > (eye), then the > > compiler and operating system is of relevance. (The > possibility of someone > > using MS Windows CE and Micro .NET comes to mind). > > > > In conclusion, perhaps somebody has already had > similar thoughs with regards > > to the above question(s) and has some answers. Would > be cool to have the FPC > > team's sincere thoughs on the above. > > > > Keep up the good work guys and thanks for a superb > compiler (and RTL - of > > course). > > > > Regards, > > Nino > > > > ___ > > fpc-pascal maillist - fpc-pas...@lists.freepascal.org > > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > > > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] A complex trouble(at least for me)
I didn't fully understand the original problems. You have already posted an example input, please add also an example output for the same input for the routine you are trying to build. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] A complex trouble(at least for me)
Hi Felipe! If you was talking with me, please explain better. [ ] Ricardo At 14:49 8/5/2009, you wrote: I didn't fully understand the original problems. You have already posted an example input, please add also an example output for the same input for the routine you are trying to build. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] A complex trouble(at least for me)
Ah, now I see that you already gave an example output ... sorry -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] A complex trouble(at least for me)
On Thu, 07 May 2009 18:12:50 -0300 Arí Ricardo Ody wrote: > Suppose the following structure: > > 01 a-1. > 03 b-1 pic xxx. > 03 b-2 pic 999. > 03 b-3. >05 c-1 pic aaa. >05 c-2. > 07 d-1 pic zzz. > 07 d-2 pic xxx. >05 c-3 pic 99. > 03 b-4 pic zzz. > 03 b-5. >05 e-1 pic zzz. > > All line not containing the word pic I would call a group item and > the other lines will be elementary items. > > I would like to wrote a routine(or program) that save each group item > and the elementary items contained in a StringList. Admit that the > pattern of the structure is random. The example above is only an > example. > > In this example: > StringList1 will contain 'a-1' '03 b-1 pic xxx.' '03 b-2 pic 999.' > '03 b-4 pic zzz.' > StringList2 will contain 'b-3' '05 c-1 pic aaa.' '05 c-3 pic 99.' > StringList3 will contain 'c-2' '07 d-1 pic zzz.' '07 d-2 pic xxx.' > StringList4 will contain 'b-5' '05 e-1 pic zzz.' > > At the end of the program I will(for example) write the StringList's > to disk. But I can't write anyone before the program end. > > I had thinked hard about it. I can't create StringList with a > variable name. I must previously declare each one in my pascal > source. How can I solve the trouble proposed? > > Note that when I'm appending strings in a StringList, it's possible > that I must create a new StringList(or various), put data in it(or > them) and return to put data in the first StringList. Sounds like a stack of TStringlist (or descendant). See unit contnrs. > If the solution is obvious I beg your pardon. I can't find it. Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] A question or two regarding the FPC
On Fri, 8 May 2009 14:35:52 -0300 Gustavo Enrique Jimenez wrote: > Hi Nino: > > I am using FPC since 2000-2001. I use it for data aquisition and > temperature control. Console programs compiled with FPC 1.x work for > days, even weeks. In the "Laboratorio de Física del Sólido, Tucumán - > Argentina" (Solid state physics laboratory) we have used programs > compiled with FPC to grow YBACuO superconductor crystals. This process > take weeks. > This heat treatment is the only "mission critical application" that I > know well, and FPC works reliably, even for weeks, on linux machines. Some of my fpc programs run for months on linux clusters and some multi threaded daemons on OS X til reboot. So far: No long time crashes or mem leaks. But I second Jonas mail: Before you run an fpc program in a zero-tolerance environment, you have to test a lot of things, because a lot of code was not written with zero-tolerance in mind. Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] A complex trouble(at least for me)
No problema! At 15:01 8/5/2009, you wrote: Ah, now I see that you already gave an example output ... sorry -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] A question or two regarding the FPC
Mattias Gaertner : > But I second Jonas mail: Before you run an fpc program in a > zero-tolerance environment, you have to test a lot of things, because a > lot of code was not written with zero-tolerance in mind. Testing simply isn't enough. As we all should know, testing only proofs the existance of bugs, not their absence. So, no, I wouldn't recommend FPC for mission or safety-critical applications. After all, you need a lot more than just a compiler to have some confidence about the running application. Depending on your personal definition of "zero-tolerance", you even may need _proof_ of correctness at object code level. At that point, the compiler doesn't matter anymore. And, well... even Ada compilers have bugs, although the general confidence about the code generator might be a bit higher if they successfully passed the ACATS. ;) Vinzent. -- Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss für nur 17,95 Euro/mtl.!* http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] A question or two regarding the FPC
Mattias Gaertner wrote: On Fri, 8 May 2009 14:35:52 -0300 Gustavo Enrique Jimenez wrote: Hi Nino: I am using FPC since 2000-2001. I use it for data aquisition and temperature control. Console programs compiled with FPC 1.x work for days, even weeks. In the "Laboratorio de Física del Sólido, Tucumán - Argentina" (Solid state physics laboratory) we have used programs compiled with FPC to grow YBACuO superconductor crystals. This process take weeks. This heat treatment is the only "mission critical application" that I know well, and FPC works reliably, even for weeks, on linux machines. Some of my fpc programs run for months on linux clusters and some multi threaded daemons on OS X til reboot. So far: No long time crashes or mem leaks. But I second Jonas mail: Before you run an fpc program in a zero-tolerance environment, you have to test a lot of things, because a lot of code was not written with zero-tolerance in mind. Mattias I could add my experience: I have made a system for controling the internet connection for a network of nearly 100 computers.The system checks passwords, set up permissions, takes care of the full log of internet traffic, regularly extracting informations from the log files (which is a huge amount of data). The system is a daimon program, compiled with FreePascal, running on an Ubuntu Linux OS. The computer with this system has now been running for more that a year without interruption, without reboot, and without any sign of any problem. But then, in case of zero-tolerance, if you trust the compiler, what about the OS? and, worst, what about your program? I wouldn't trust the reliability of anything before the full system has been tested under working conditions. Hans Mårtensson ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] A question or two regarding the FPC
Von: "Hans Mårtensson" : > But then, in case of zero-tolerance, if you trust the compiler, what > about the OS? and, worst, what about your program? And what about the CPU? ;) > I wouldn't trust the reliability of anything before the full system has > been tested under working conditions. What about stress conditions? Programs usually tend to fail under conditions you didn't think of. (One reason being that the conditions you /did/ think of have been put to the test. Usually.). But working conditions seldom fall into that category. Actually, you should answer one simple question for yourself: If your life really depended on the system, would you still trust it? Vinzent. -- Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss für nur 17,95 Euro/mtl.!* http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal