Page 1 of 4 1234>
Topic Options
#106231 - 2003-10-28 08:35 PM POLL: String Expressions
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
This question deals with the use of string expressions in KiXtart v4.22 RC1.

[ 28. October 2003, 20:47: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#106232 - 2003-10-28 08:55 PM Re: POLL: String Expressions
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
what does "string expression" mean exactly?
_________________________
!

download KiXnet

Top
#106233 - 2003-10-28 09:03 PM Re: POLL: String Expressions
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
"string expression" is copied directly from the KiXtart Manual. Thus, it means whatever the KiXtart Manual refers to.
_________________________
There are two types of vessels, submarines and targets.

Top
#106234 - 2003-10-28 09:38 PM Re: POLL: String Expressions
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well, lookin at manual my answer was "right"
but manual is not telling the truth there.
the limit said there is really non-existent in many string expressions in kixtart.
_________________________
!

download KiXnet

Top
#106235 - 2003-10-29 04:13 PM Re: POLL: String Expressions
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
Jens,

You should explain more or maybe post the questions or maybe you should let everyone see the results. As it is now, it seems that I have to vote in order to understand the issue. Without knowing the issue I don't want to participate because I might bias your results if I found out I couldn't contribute effectively.
_________________________
Jack

Top
#106236 - 2003-10-29 04:21 PM Re: POLL: String Expressions
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I at least know there must be 1 wrong answer according to the spreadness of the answers.
_________________________
!

download KiXnet

Top
#106237 - 2003-10-29 06:26 PM Re: POLL: String Expressions
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Jack:

I just like to know how long a string in Kixtart can be. And I'm curious whether any of the Kixtart coders actually know the correct answer.

The question is: "How many characters can a string expression contain?" with regards to KiXtart v4.22 RC1 (the one I've tested it with) and is taken literally from the KiXtart Manual but reworded to form a question.

The reason you have to vote first is to not generate a me-too result where everybody just votes for whatever the majority has voted for.

And the majority has so far voted incorrectly!
_________________________
There are two types of vessels, submarines and targets.

Top
#106238 - 2003-10-29 06:57 PM Re: POLL: String Expressions
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Jens, do you have the definitive answer? Is the answer from Ruud or from testing?
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#106239 - 2003-10-29 07:19 PM Re: POLL: String Expressions
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
The funny thing is: I don't know the correct anwser either. I have a suspicion but my test script has not yet reached the stage where it could provide the definite anwser.
_________________________
There are two types of vessels, submarines and targets.

Top
#106240 - 2003-10-29 07:25 PM Re: POLL: String Expressions
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
lol.
well, according to your first reply about manual, I know what manual says.
I also know that it isn't correct in all cases.
although, some limitations apply.
_________________________
!

download KiXnet

Top
#106241 - 2003-10-29 09:36 PM Re: POLL: String Expressions
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
LOL2

first test results
code:
 
2
4
8
16
32
64
128
256
512
1024
2048
4096
8192
16384
32768
65536
131072
262144
524288
1048576
2097152
4194304
8388608
16777216
33554432
67108864
134217728
268435456
536870912
1073741824
-2147483648
0

_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#106242 - 2003-10-29 09:44 PM Re: POLL: String Expressions
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
What's that? String length of negative 2 billion characters? [Big Grin]
_________________________
There are two types of vessels, submarines and targets.

Top
#106243 - 2003-10-29 10:35 PM Re: POLL: String Expressions
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4672
Loc: The Netherlands
Voted according the manual.

Getting some doubts now though.
Did some googling and stumbled onto this:

http://www.dotnetforums.net/t76702.html

I know its .NET but the basics seem correct to me.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#106244 - 2003-10-29 10:39 PM Re: POLL: String Expressions
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
I know what the Manual says. I also know that some people have used code, e.g. in the KiXgolf competition, that contradicts the Manual. However, nobody has so far commented on this or even offered a new max string length.
_________________________
There are two types of vessels, submarines and targets.

Top
#106245 - 2003-10-29 10:48 PM Re: POLL: String Expressions
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
auch,

hitting the int limit...

Now using doubles.

and counting...

[ 29. October 2003, 22:51: Message edited by: MightyR1 ]
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#106246 - 2003-10-29 10:59 PM Re: POLL: String Expressions
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
pat, the lenght will raise like shit and what longer it gets, that slower kix will become.
just like with large arrays.

what comes to the limitation, it still holds at least with console output and some other stuff.
_________________________
!

download KiXnet

Top
#106247 - 2003-10-29 11:07 PM Re: POLL: String Expressions
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
code:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
31919
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
31920

31921

31922

My final guess: max_string_expression = 31920 characters
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#106248 - 2003-10-29 11:24 PM Re: POLL: String Expressions
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
lol, you fell for that.
your quess has no base [Wink]
_________________________
!

download KiXnet

Top
#106249 - 2003-10-29 11:43 PM Re: POLL: String Expressions
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4672
Loc: The Netherlands
Tried this:

code:
$string1 = "1"
Do
$string1 = $string1 + 1
$rc = Len($string1)
?$rc
Until $rc = "32000"
?$string1

And stopped getting a value out of $string1 at 30704.

Patrick:
How did you get your 31920?
I guess I did sort of the same you did?

Totally different values. Maybe this is not the way to find out max string length.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#106250 - 2003-10-29 11:46 PM Re: POLL: String Expressions
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
I was playing with much larger strings and ran out of virtual memory. Kixtart never complained at all.
code:
$z="1234567890"
for $x=1 to 1024
$y=$y+$z
next
? len($y)
for $c=1 to 1024
$y=$y+$y
? len($y)
next
? len($y)



[ 29. October 2003, 23:57: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
Page 1 of 4 1234>


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 382 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.219 seconds in which 0.144 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org