Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2007-10

Re: CompactSysutils part of RTL

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Daniël Mantione
to L: Hi! As some know.. CompactSysutils contains many functions for embedded or CGI…

Op Mon, 15 Oct 2007, schreef L:

Show quoted text 5 lines
Hi! As some know.. CompactSysutils contains many functions for embedded or CGI programmers to use when they don't wish to use full sysutils unit. i.e. anyone looking for smaller footprint executable.
Show quoted text 8 lines
I've partly described it here: http://z505.com/cgi-bin/qkcont/qkcont.cgi?p=CompactUtils-and-CompactSysutils http://z505.com/cgi-bin/powtils/docs/1.6/idx.cgi?file=compactsysutilsnotes (Those are long URL's.. sorry, hope they work in mail client) I'm sure we can work together to get this unit shipped with FPC.. RTL or FCL? or wherever FPC team thinks it would be nice.

I'm not in favour of this. Suppose I don't want to use sysutils.

* For inttostr, floattostr I can use val, and str for strtoint, strtofloat.
* strpas, strpcopy and friends I can find in the strings unit
* ansi* in your unit use plain ASCII, so I can just as well use < and > operators
* uppercase/lowercase I can find in the system unit as well. I can use your ones for extended ASCII, but only if I manually initialize the table and single byte character sets only.
* Comparemem, Comparestr has equivalents in the system unit as well.

Basically, 2/3 of this unit is duplicated functionality. Interresting functions I cannot get somewhere else are string and path manipulation routines like extractfile*, trim*, wraptext.

It would make much more sense to put this functionality in a new unit, then make the sysutils ones wrappers over it.

Daniël Mantione

Reply by email

L

Hi!

As some know.. CompactSysutils contains many functions for embedded or CGI programmers to use when they don't wish to use full sysutils unit. i.e. anyone looking for smaller footprint executable.

I've partly described it here:
http://z505.com/cgi-bin/qkcont/qkcont.cgi?p=CompactUtils-and-CompactSysutils http://z505.com/cgi-bin/powtils/docs/1.6/idx.cgi?file=compactsysutilsnotes

(Those are long URL's.. sorry, hope they work in mail client)

I'm sure we can work together to get this unit shipped with FPC.. RTL or FCL? or wherever FPC team thinks it would be nice.

Embedded programmers and friends contact me and send me patches.. which is awesome. However it would be better if it was part of FPC. We'd have more 'army of programmers' for it. You know the story.

Let me know what we/I need get done to prepare it for inclusion? Also, I'm thinking the unit name CompactSysutils is a bit long.. maybe some way to shorten it to something else. SysTil or something.

If you have seen any other units of mine that we can work together to include in the FCL/RTL, then let me know too. Example:

CompactUtils (cross platform nonvisual KOL port)
substrings (part of powtils)
http.pas (part of powtils)
hostname (part of powtils)
smtp.pas (part of powtils),
synwrap1,
sendmail_unix,
fasthtmlparser,
htmutil,
htmutils,
fileutil,
htmw,
csv units (a few in contrib section)
regexp2 (older TRegexp port),
strwrap1.pas,
StrFilter.pas,
capstring.pas,
capwstring.pas,
caparray,
lufind,
lufdoc,
powtils/psp units
and a million others. (some need to be cleaned up)

Maybe we should start another mail thread if talking about another unit in above list. This mail thread should be to discuss CompactSysutils. I'm sorry I even mention all above units, we might get overwhelmed and get into a big attention deficit disorder problem So focus on compactsysutils in this thread, but keep in the back of your mind that I really want to contribute lots of others once we get one off my chest first ;-)

Reply by email

Marco van de Voort
to Daniël Mantione: Op Mon, 15 Oct 2007, schreef L: I'm not in favour of this. Suppose I don't want to use…
Show quoted text 16 lines
Op Mon, 15 Oct 2007, schreef L: > > I'm sure we can work together to get this unit shipped with FPC.. > RTL or FCL? or wherever FPC team thinks it would be nice. I'm not in favour of this. Suppose I don't want to use sysutils. * For inttostr, floattostr I can use val, and str for strtoint, strtofloat. * strpas, strpcopy and friends I can find in the strings unit * ansi* in your unit use plain ASCII, so I can just as well use < and > operators * uppercase/lowercase I can find in the system unit as well. I can use your ones for extended ASCII, but only if I manually initialize the table and single byte character sets only. * Comparemem, Comparestr has equivalents in the system unit as well.

Neither am I. And this would only be the start of more minimalism. I also don't buy the CGI argument, and real embedded users probably want to cut down more than just sysutils.

Reply by email