Search found 3559 matches

by skywalk
Fri Mar 08, 2024 2:49 am
Forum: Feature Requests and Wishlists
Topic: Map read-only or no-create-on-search states
Replies: 5
Views: 233

Re: Map read-only or no-create-on-search states

Was it because elements are created in both cases below?

mymap("some new key") = "some new value"

If mymap("some new key")
; new null element added
EndIf
by skywalk
Fri Mar 08, 2024 2:42 am
Forum: Coding Questions
Topic: Slow to compile with 6.10 Beta 7 with C vs ASM
Replies: 12
Views: 607

Re: Slow to compile with 6.10 Beta 7 with C vs ASM

I agree. The other option is static libs.
That is the last domino to fall with PB 6.xx. I would jump on user static libs when Fred approves the approach.
by skywalk
Fri Mar 08, 2024 2:04 am
Forum: Coding Questions
Topic: Slow to compile with 6.10 Beta 7 with C vs ASM
Replies: 12
Views: 607

Re: Slow to compile with 6.10 Beta 7 with C vs ASM

I agree the C compilation is slower, but I am well under 60sec for ~70k loc. I don't know if the counter subtracts commented lines? Haha BarryG - With compile times so high, did you consider compiling your libs separately as DLL's? You would have to declare prototypes, but the compile time would be ...
by skywalk
Thu Mar 07, 2024 5:00 am
Forum: Coding Questions
Topic: Can a structure be defined dynamically by csv headers
Replies: 24
Views: 940

Re: Can a structure be defined dynamically by csv headers

Wow, another great example from infratec. 8)
I wondered how to return an array from SQLite in a userfunction.
This could help solve a complicated 2D query.
by skywalk
Tue Mar 05, 2024 4:11 pm
Forum: General Discussion
Topic: Finding a bug when Purifier and line numbering doesn't help?
Replies: 24
Views: 945

Re: Finding a bug when Purifier and line numbering doesn't help?

I don't use the C compiler. If I compile ASM with "/commented", how will that show me where the problem is? I strongly suggest you edit your codebase to compile with the C backend. The process will undoubtedly expose a problem in your code. Yes, convert any ASM specific code to either sta...
by skywalk
Tue Mar 05, 2024 1:12 am
Forum: Coding Questions
Topic: Can a structure be defined dynamically by csv headers
Replies: 24
Views: 940

Re: Can a structure be defined dynamically by csv headers

sqlite3.lib is statically loaded with your app.exe. No dependency, unless you need a feature not in the current lib. Then you would dynamically load sqlite3.dll of your compilation.
Fred said we can even statically load our own VS2022 versions of sqlite3.lib, but I have not succeeded yet.
by skywalk
Mon Mar 04, 2024 11:07 pm
Forum: General Discussion
Topic: Finding a bug when Purifier and line numbering doesn't help?
Replies: 24
Views: 945

Re: Finding a bug when Purifier and line numbering doesn't help?

Usually that is the C compiler failing without prompt.
Compile with /commented and you will get the amalgamated line number to investigate.
Or compile asm with /commented.
by skywalk
Mon Mar 04, 2024 6:10 pm
Forum: Coding Questions
Topic: Can a structure be defined dynamically by csv headers
Replies: 24
Views: 940

Re: Can a structure be defined dynamically by csv headers

You can use in memory database tables created dynamically.
by skywalk
Fri Mar 01, 2024 8:06 pm
Forum: Feature Requests and Wishlists
Topic: SQLite 3.45
Replies: 6
Views: 915

Re: SQLite 3.45

Hi Fred, Can you list the built-in compile settings Purebasic uses for the static sqlite3.lib? Can you add -DSQLITE_ENABLE_MATH_FUNCTIONS to the list? The math functions shown below are a subgroup of scalar functions that are built into the SQLite amalgamation source file but are only active if the ...
by skywalk
Mon Feb 26, 2024 11:39 pm
Forum: General Discussion
Topic: Arduino dev under windows?
Replies: 10
Views: 563

Re: Arduino dev under windows?

Arduino has an api, not a full blown o/s. It is usually married to a raspberryPI computer for control of the Arduino TTL and GPIO pins.
by skywalk
Mon Feb 26, 2024 5:05 pm
Forum: Tricks 'n' Tips
Topic: SQLite C-Interface - Create Own Functions
Replies: 4
Views: 2465

Re: SQLite C-Interface - Create Own Functions

Yes, I was able to offload certain functions within the database, but now I need to collapse stdev() within SQL statements.
As mentioned, I am also interested in curve fitting splines for a pair of array columns, not just a single column.
by skywalk
Mon Feb 26, 2024 12:44 am
Forum: Tricks 'n' Tips
Topic: SQLite C-Interface - Create Own Functions
Replies: 4
Views: 2465

Re: SQLite C-Interface - Create Own Functions

Great stuff mk-soft :!: Is it possible to add multi-row calculations like Stddev() as a user defined function? EDIT: Found pb versions of several sqlite extensions.c. Looks like they work after changing .l to .i. https://www.purebasic.fr/english/viewtopic.php?p=516157#p516157 https://www.purebasic.f...
by skywalk
Fri Feb 23, 2024 7:03 pm
Forum: Coding Questions
Topic: Close button intermittently doesn't close
Replies: 17
Views: 691

Re: Close button intermittently doesn't close

Yes, I have the exit strategy ok, but it is the double event processing that I sometimes observe in my apps?
I would think the BindEvent() should clear the event before returning to the main event loop?
by skywalk
Fri Feb 23, 2024 5:55 pm
Forum: Coding Questions
Topic: Close button intermittently doesn't close
Replies: 17
Views: 691

Re: Close button intermittently doesn't close

Hi Fred,
Do you have a link or help page that explains event priorities?
If I use BindEvent(), PostEvent() along with the standard Event Loop,
which Procedure "sees" an event first?
Does BindEvent return to the Event Loop and clear the event it acted on?
by skywalk
Wed Feb 21, 2024 3:48 am
Forum: Coding Questions
Topic: StrD and Rounding
Replies: 17
Views: 624

Re: StrD and Rounding

Interesting example though I have not seen runaway as high as that with my typical floating point math. I do get burned when doing lazy trigonometry on small shapes on a canvasgadget. :oops: Scaling really saves the day. Simple scaling applied to STARGATE's example: #ML_SF = 10000 Define.i i Define....