Search found 1341 matches

by caseih
Nov 09, 2019 16:03
Forum: General
Topic: Len of udt
Replies: 7
Views: 219

Re: Len of udt

For example I changed the string for the second write to "A1CDEFGHI" and saw the "1" slowly progressing through "AA1CDEFGHI" to "GHI A1CDEFGHI" as if my data was slowly being shifted. And indeed it was, as you were using PUT with a position index that you int...
by caseih
Nov 09, 2019 4:37
Forum: General
Topic: Len of udt
Replies: 7
Views: 219

Re: Len of udt

Hmm. By my calculations 29*8 + 18*4 + 9 is 313 bytes. Obviously I'm missing some padding that's going on. No clue what's going on, though. You should look at your file in a hex editor. As for your estimate, INTEGER is 8 bytes, and LONG is 4 bytes. This is unlike C where int is usually 32 bits no mat...
by caseih
Nov 03, 2019 20:33
Forum: General
Topic: Performance problems with rnd function while multi-threading
Replies: 24
Views: 936

Re: Performance problems with rnd function while multi-threading

@fxm Perhaps a mention could be made in the FBWiki that RND is not thread-safe: https://www.freebasic.net/wiki/wikka.php?wakka=KeyPgRnd @coderJeff Could RND be made thread-safe? Is this on the to do list? I'm a bit confused. Clearly Rnd()'s implementation is thread safe. It can be called from multi...
by caseih
Oct 30, 2019 18:19
Forum: General
Topic: Is possible to get rid of the entire GCC thing?
Replies: 3
Views: 178

Re: Is possible to get rid of the entire GCC thing?

Except that GCC is standard equipment for Linux. It's always there if you have any development tools installed. By the way, the linking tools are separate from GCC. They come from the binutils package on most distros, which has no dependencies on gcc at all. Of course on 64-bit Linux, gcc is require...
by caseih
Oct 20, 2019 15:19
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 113
Views: 4706

Re: FreeBASIC 1.08 Development

@angros47, perhaps we should start a new topic for this.
by caseih
Oct 20, 2019 14:57
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 113
Views: 4706

Re: FreeBASIC 1.08 Development

I think allocating memory for even an empty ustring is just fine. Might even be desired when interacting with C-based APIs, or win32 API calls. I know FB string does not allocate memory for an empty string and I've always felt this was a bug, since it leads to passing NULL pointers to C APIs expecti...
by caseih
Oct 18, 2019 2:08
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 113
Views: 4706

Re: FreeBASIC 1.08 Development

Are you sure a BASIC dialect needs a C/C++ feature that is unknown to Google? Funny! Are you sure you googled for "asynchronous primitives?" By "intrinsic" I mean a fundamental part of the language. They've been a part of C# for quite a while. https://docs.microsoft.com/en-us/do...
by caseih
Oct 18, 2019 0:11
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 113
Views: 4706

Re: FreeBASIC 1.08 Development

Anyway, OOP is a feature that surely adds a lot to BASIC: after all, not only FreeBasic, but also RapidQ and Visual Basic used a lot of features borrowed from C++. What about other modern features like coroutines, closures or lambda expressions, or intrinsic asynchrous primitives? Well, if it can c...
by caseih
Oct 18, 2019 0:05
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 113
Views: 4706

Re: FreeBASIC 1.08 Development

Many a project has died, or at least got seriously sidetracked (I'm looking at you, Gnome Desktop), trying to cater to mythical new users. My opinion isn't worth much, and I don't actually use FB for anything other than porting some of my old QB and PB programs to Linux for shear nostalgia. But as l...
by caseih
Oct 16, 2019 14:10
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 113
Views: 4706

Re: FreeBASIC 1.08 Development

Real FORs only evaluate the bounds once to calculate a number of iterations I know you weren't referring to floating point numbers with "real" there, but that reminds me, the earliest BASIC I used was BASICA or GWBASIC, and the default variable type was floating point (single if I recall)...
by caseih
Oct 16, 2019 13:56
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 113
Views: 4706

Re: FreeBASIC 1.08 Development

Alternatively, the direct equivalent to the original non-working for loop code that Dinosaur posted would be something like this: dim i as integer ... for i=1 to MyUDT.Limit ... next MyUDT.index = i 'note that i is MyUDT.Limit+1 But if it's important to keep MyUDT.Index updated, it's much clearer to...
by caseih
Oct 08, 2019 23:24
Forum: General
Topic: ASLR
Replies: 63
Views: 1602

Re: ASLR

Anyway, this thread is about ASLR, or not as it turned out and focusing on Encrypternet or positive aspects of gcc isn't gong to change that. Fair enough. I get the feeling there's very little understanding of what ASLR is, so it probably is worth describing what it can and can't do as a security f...
by caseih
Oct 08, 2019 23:09
Forum: General
Topic: ASLR
Replies: 63
Views: 1602

Re: ASLR

You want me to give reasons, you have just given me two. I am not prepared to risk other people's data. Microsoft recommends keeping the life of plaintext passwords down to a minimum. I use a random binary key and I got its plaintext life down to 0.72ms on encryption and 0.0038ms on decryption. Par...
by caseih
Oct 08, 2019 20:06
Forum: General
Topic: ASLR
Replies: 63
Views: 1602

Re: ASLR

Of course, it isn't gcc's fault - gcc is a project using mingw-w64. There seems to be a lot of confusion as to what is the relationship between MingW-W64 and GCC. I don't know much about mingw, but I think you've got it backwards. MingW-W64 is a windows port of the Gnu Compiler Collection and the a...

Go to advanced search