Jump to content

The number 4096 can burn in hell.


Valik
 Share

Recommended Posts

I swear to whatever gods may or may not exist that the next motherfucker who tries to submit a UDF with a hard-coded buffer size is going to get stabbed 4096 times with a rusted butter knife. Here's a hint: If you're writing code with a fixed buffer size instead of dynamically calculating the buffer size, you are a failure as a programmer and a lazy programmer and need to go find a beach to bury yourself in at low tide.

I just used grepWin to search the "Include" directory and it finds 100 instances of "4096". Fucking ridiculous.

Link to comment
Share on other sites

"Om nom nom"

You hear that? It's the universe eating itself because of the circular reference posting that link has introduced.

I'm not very good in English :-( so I don't understand exactly.

But feel free to remove my above post if you don't like it.

I know there is link from Trac to forum but I added link in reverse order from forum to Trac for those people don't reading Track only forum.

Edited by Zedna
Link to comment
Share on other sites

I'm not very good in English :-( so I don't understand exactly.

But feel free to remove my above post if you don't like it.

I know there is link from Trac to forum but I added link in reverse order from forum to Trac for those people don't reading Track only forum.

Recursion

Edited by monoceres

Broken link? PM me and I'll send you the file!

Link to comment
Share on other sites

  • 2 weeks later...

Leaving out "Klein's URLs" and getting closer to the topic subject, is there any hope the AutoIt statement line size limitation could get removed or at least significantly increased?

I ask because there seem to be no way to initialize a medium-size array without hitting this limitation. A good example that did bite me hard is when I tried to use AutoIt to double-check some Unicode tries [for a SQLite extension].

I had a number of :

Local $unicode_fold_indexes[$UNICODE_FOLD_INDEXES_SIZE] = [ _

0, 0, 1, 0, 0, 2, 3, 0, 4, 5, 6, 7, 8, 9, 10, _

11, 12, 13, 14, 0, 0, 0, 0, 0, 0, 0, 15, 16, 17, 18, _

19, 20, 21, 22, 0, 23, 24, 25, 26, 27, 28, 29, 30, 0, 0, _

...

]

and

Local $unicode_fold_data_table[$UNICODE_FOLD_BLOCK_COUNT][$UNICODE_FOLD_BLOCK_SIZE] = [ _

[ 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF ], _

[ 0xFFFF, 0x0061, 0x0062, 0x0063, 0x0064, 0x0065, 0x0066, 0x0067, 0x0068, 0x0069, 0x006A, 0x006B, 0x006C, 0x006D, 0x006E, 0x006F, 0x0070, 0x0071, 0x0072, 0x0073, 0x0074, 0x0075, 0x0076, 0x0077, 0x0078, 0x0079, 0x007A, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF ], _

...

]

all exceeding the silly 4000 characters limit, and by far.

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Link to comment
Share on other sites

I can think of ways to remove that limitation but they aren't really trivial to implement. The trivial ways to implement it all impact performance. The reason a static line size is used is so that constant allocations and deallocations don't occur.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...