Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: Limiting Serie sizes (native!)

From: nitsch-lists:netcologne at: 14-Aug-2003 15:03

Rebolinth wrote:
>Hello All, > >I was wondereing..perhpas wandering too... > >Is "Limiting Series" perhpas a good idea for an option inside rebol ? > >Example: > >a normal i.e. block has NO endling (yes the memory limit?) >a limited block would have a limit of i.e. max 3 entries > >Like -> > >a: copy [] > >or > >a: copy/limit [] 3 > >{which would create a series but with a static maximum size ! >If the size exceeds i.e. with append or insert or whatever then NONE /
>is returned.} > >Is this featurable or more a de-feature for rebol ? >
Pretty much no-feature IMHO. You want to restrict complete memory-usage, not size of a single block. On linux /etc/profile:ulimit -v 396000 #jdk1.4+mozilla #something -v 640000 on a 640mb-machine IMHO ulimit inbuild could make sense, as well as time-restrictions, because scripts can terminate cleaner. throwing a heavy transaction away instead of writing to half the files and then hard-crash. but yu have to address machine-capacities, limits should be different for 128MB or 640MB-machine. Also specially mold could use limits, so molding system stops after some mb. -Volker