Search found 3559 matches

by skywalk
Sun Apr 21, 2024 7:10 pm
Forum: Coding Questions
Topic: Speed up loop
Replies: 13
Views: 579

Re: Speed up loop

Cool, that's what I thought. I just made too many mistakes cutting and pasting. I got compiles from 28ms to 78ms on various png files. But, I declared a single @ char for MyString, which resulted in a mono character output. Ill run your explicit code now. Thanks! EDIT: Infratec's enableexplicit code...
by skywalk
Sun Apr 21, 2024 6:15 pm
Forum: Coding Questions
Topic: Speed up loop
Replies: 13
Views: 579

Re: Speed up loop

Tried to run the topic but ran into some pitfalls.
Where is MyString defined?
No EnableExplicit :(

What is the goal of the textual output?
by skywalk
Sat Apr 20, 2024 2:57 pm
Forum: Bugs - Windows
Topic: [Done] Static array index-less reference
Replies: 10
Views: 783

Re: [Done] Static array index-less reference

There is an argument to insist on consistent syntax. But many prefer "can't" to "cannot" or "can not". "a = a + 1" vs "a + 1" For simplicity, I would force 1 and only 1 way to reference. Shortcuts and undefined behavior should be avoided as complexit...
by skywalk
Fri Apr 19, 2024 3:26 pm
Forum: Coding Questions
Topic: Thread Parameters?
Replies: 25
Views: 1356

Re: Thread Parameters?

Yes, semaphores have been very reliable for me. Just be careful with the shared use of Map() data. This is my NOTE TO SELF: ; Current PB Design means a Map()'s current element pointer is NOT "threaded". ; A read in one thread can change the current element within another thread. ; Unlike a...
by skywalk
Fri Apr 19, 2024 2:53 pm
Forum: Coding Questions
Topic: Check if UseSQLiteDatabase is called
Replies: 10
Views: 287

Re: Check if UseSQLiteDatabase is called

Before I compile various apps, I have to configure them. So why not force the issue with settable constants? Here is example to force the use of USESQLITE CompilerIf Defined(MY_EXE, #PB_Constant) ; Do nothing. CompilerElse #MY_EXE = 0 CompilerEndIf CompilerIf #MY_EXE #SQLITE_USE_DLL = 0 ; 0=use stat...
by skywalk
Thu Apr 18, 2024 2:39 pm
Forum: Bugs - Windows
Topic: [Done] Static array index-less reference
Replies: 10
Views: 783

Re: [Done] Static array index-less reference

Ok, is this the new behavior?
exe$ = UCase(PeekS(@Process\szExeFile, -1, #PB_Ascii)) ;<-- v611b1 syntax error but used to work.
exe$ = UCase(PeekS(@Process\szExeFile[0], -1, #PB_Ascii)) ;<-- v611b1 ok.

Structure Processentry32 field:
szExeFile.c[260]
by skywalk
Wed Apr 17, 2024 7:10 pm
Forum: Announcement
Topic: PureBasic 6.11 LTS Beta 1 is ready for testing !
Replies: 11
Views: 1327

Re: PureBasic 6.11 LTS Beta 1 is ready for testing !

Nice 8)
My redim bug works.
by skywalk
Sat Apr 13, 2024 7:34 pm
Forum: General Discussion
Topic: PureBasic v6.10 is producing a file size 5 times bigger than v6.04
Replies: 21
Views: 1686

Re: PureBasic v6.10 is producing a file size 5 times bigger than v6.04

Read the release notes. It is a necessary improvement compiling with latest C libs. You can reduce the larger files somewhat using VS2022 link.exe.
by skywalk
Sat Apr 13, 2024 2:59 pm
Forum: Coding Questions
Topic: Debug mode execution speed can vary on source whitespace.
Replies: 12
Views: 748

Re: Debug mode execution speed can vary on source whitespace.

Compile exe without debugger and report.
by skywalk
Wed Apr 10, 2024 5:11 pm
Forum: Announcement
Topic: PureBasic 6.10 LTS is out !
Replies: 334
Views: 41909

Re: PureBasic 6.10 LTS is out !

As Psychophanta said, accuracy can be subjective. Search the forum for examples of math errors when mixing integers and floats. The results depend on the order of the algebraic expression and can be very hard to find. For floating point calculations, I prefix "0.0+" to force a floating poi...
by skywalk
Wed Apr 10, 2024 1:46 pm
Forum: Announcement
Topic: PureBasic 6.10 LTS is out !
Replies: 334
Views: 41909

Re: PureBasic 6.10 LTS is out !

Not as simple as that obviously.
But, there are cases where algebraic rules vary from ideal. Or when asm and cbe compiles do not match. Or when a bug forces a change in scope.

These slow development and release of your app.
Size of the app exe is so far down the list it could be last.
by skywalk
Tue Apr 09, 2024 6:04 pm
Forum: Announcement
Topic: PureBasic 6.10 LTS is out !
Replies: 334
Views: 41909

Re: PureBasic 6.10 LTS is out !

My priority for EXE => accurate, fast, something I have not thought about yet, something else, size.
by skywalk
Mon Apr 08, 2024 10:33 pm
Forum: Bugs - C backend
Topic: [Done] 6.10 Another ReDim error on deeper structured arrays
Replies: 16
Views: 926

Re: [6.10] Another ReDim error on deeper structured arrays

Haha, I blame it on an eclipse in my brain. :oops:

The workaround works. But, I have to search for these cases within my code. Not so fun.