Search found 739 matches

by NicTheQuick
Fri May 21, 2021 9:35 am
Forum: Bugs - C backend
Topic: [Done] Compiler error when assigning a pointer to a float
Replies: 3
Views: 405

Re: Compiler error when assigning a pointer to a float

I am happy with that error message. It can avoid errors.
by NicTheQuick
Wed May 19, 2021 9:24 am
Forum: Tricks 'n' Tips
Topic: StringField alternatives with list or array
Replies: 8
Views: 798

Re: StringField alternatives with list or array

@idle: You can further improve the Array version if you change the Redim to double (or 1.5) the size of the array everytime it gets too small instead of increase its size only by 1 per loop. See also here: https://cs.stackexchange.com/questions/ ... -amortized
by NicTheQuick
Mon May 17, 2021 11:25 am
Forum: Linux
Topic: Official Linux distribution for PureBasic
Replies: 49
Views: 9106

Re: Official Linux distribution for PureBasic

Fred wrote: Mon May 17, 2021 8:43 am It's only developped on Windows for now. The Alpha version will be Windows only.
:cry:
by NicTheQuick
Fri May 14, 2021 4:55 pm
Forum: Feature Requests and Wishlists
Topic: Create the type REAL like the type INTEGER
Replies: 9
Views: 590

Re: Create the type REAL like the type INTEGER

Well, these are simple calculations. If you are using vector arithmetic there is quite a difference. But you will only see that difference if Purebasic uses the C-Compiler backend which is able to vectorize such calculations automatically.
by NicTheQuick
Fri May 14, 2021 1:26 pm
Forum: Feature Requests and Wishlists
Topic: Create the type REAL like the type INTEGER
Replies: 9
Views: 590

Re: Create the type REAL like the type INTEGER

Floats and Doubles are totally different things that Integers. They both use dedicated registers which have nothing to do with the word size of your CPU or the pointer size of the compiled application. It just depends on what you wanna do with it. So in my opinion there is no need for something like...
by NicTheQuick
Fri May 07, 2021 4:20 pm
Forum: Coding Questions
Topic: Strange speed up with unused variables
Replies: 22
Views: 1023

Re: Strange speed up with unused variables

Btw: Why do I have such low values? Is the code that much faster on Linux or what could be the reason? I don't think that my CPU is much faster than any of yours.
by NicTheQuick
Fri May 07, 2021 12:19 pm
Forum: Coding Questions
Topic: Strange speed up with unused variables
Replies: 22
Views: 1023

Re: Strange speed up with unused variables

I've got these results after running five times in a row: ; with the two lines 452 436 420 419 422 avg=429,8 ms ; without the two lines 433 437 438 433 430 avg=434,2 ms I don't think that's a major difference. However the reason could be how the variables on the stack are aligned. Depending on how t...
by NicTheQuick
Tue May 04, 2021 10:21 am
Forum: Tricks 'n' Tips
Topic: SQUINT 2, Sparse Quad Union Indexed Nibble Trie
Replies: 14
Views: 2151

Re: SQUINT 2, Sparse Quad Union Indexed Nibble Trie

Since I have my new processor the "Squint Enum Ratio" is "+infinity faster" :lol:
I don't know when I will need that code but it sure is a very welcome addition to Maps. This should be more integrated into Purebasic's standard libraries. That would be nice.
by NicTheQuick
Mon May 03, 2021 1:41 pm
Forum: Coding Questions
Topic: StringField Bugs PB573
Replies: 18
Views: 1064

Re: StringField Bugs PB573

Why do you post it again? You got all the explanation already here: viewtopic.php?f=13&t=77182
by NicTheQuick
Sun May 02, 2021 12:18 pm
Forum: Coding Questions
Topic: StringField ignore the last field
Replies: 8
Views: 574

Re: StringField ignore the last field

That is the usual behaviour in all programming languages I know. Empty fields are allowed.
by NicTheQuick
Fri Apr 23, 2021 1:45 pm
Forum: Announcement
Topic: Blog post !
Replies: 283
Views: 26932

Re: Blog post !

skywalk wrote: Fri Apr 23, 2021 1:38 pmFred's code was Allman sooooo, 2=2, tie!
But look to the polling and see Allman wins there too. :P
Well, maybe the poll is that weird with its 7 digit percentage numbers because he uses Allman :P
by NicTheQuick
Fri Apr 23, 2021 1:29 pm
Forum: Announcement
Topic: Blog post !
Replies: 283
Views: 26932

Re: Blog post !

skywalk wrote: Fri Apr 23, 2021 1:16 pmI also like the C format you showed. Allman style is by far the easiest to read.
Nice. I didn't know about the names of these styles. I prefer K&R. It's more compact and also easy to read.
by NicTheQuick
Fri Apr 23, 2021 1:03 pm
Forum: Announcement
Topic: Blog post !
Replies: 283
Views: 26932

Re: Blog post !

If you have a bigger project with lots of includes, is the Purebasic compiler going to crunch that into a single C code file? Or will the include structure persists? Because only that way you will have fast compiling times when you change just one file.
by NicTheQuick
Mon Apr 19, 2021 2:48 pm
Forum: Announcement
Topic: Forums update
Replies: 121
Views: 8732

Re: Forums update

This is the programmers forum. I think the CodeBox is too small. +1 or with an expand button next to Select. No news about PureBasic Logo instead of phpBB :shock: Thanks for ProSilver Dark Edition However the avatars do not appear correctly ProSilver Dark vs ProSilver Special https://i.ibb.co/hZ5kK...