Search found 1059 matches

by Lunasole
Thu Jun 22, 2023 8:55 am
Forum: Announcement
Topic: PureBasic 6.03 LTS is released !
Replies: 184
Views: 37679

Re: PureBasic 6.03 LTS beta 1 is ready to test !

I never will leave this forum until the absolute bugfree PB :mrgreen: Holy bit man, I seen you often, maybe just visit Fred or whatever :) Not my deal anyway, I'm currently out of here and not posting, seen yesterday once. // previously too posted about bugs often, now it's surely much closer to &q...
by Lunasole
Wed Jun 21, 2023 12:45 pm
Forum: Off Topic
Topic: Good Freeware Stuff
Replies: 518
Views: 547159

Re: Good Freeware Stuff

Hi again, just notifying I've set up "licensing" for some PB things posted time ago, seen this topic so let be here instead of posting others (are they "good", IDK^^). // So slow with that, but nothing to do, "suppressed by reality" :mrgreen: https://github.com/Lunasole...
by Lunasole
Tue Apr 25, 2023 11:27 pm
Forum: Coding Questions
Topic: Im getting this response from Google (UNICODE)
Replies: 14
Views: 892

Re: Im getting this response from Google (UNICODE)

And yes, you anyway have a lot to pay for me, and that's not about paying something like punishment^^
+1, I even don't need to count your loops and my responses. And more of it, I'm evolving even of that.
by Lunasole
Tue Apr 25, 2023 11:25 pm
Forum: Coding Questions
Topic: Im getting this response from Google (UNICODE)
Replies: 14
Views: 892

Re: Im getting this response from Google (UNICODE)

"what does it means to dreams with zombies" This is itself an interesting query, of what have you formed it? I'd also answer to it like: just great, nothing will break nor freedom or truth. You may repeat such loops infinitely, that won't change. At some moment I'd break that anyway and j...
by Lunasole
Tue Apr 25, 2023 12:04 am
Forum: Coding Questions
Topic: Im getting this response from Google (UNICODE)
Replies: 14
Views: 892

Re: Im getting this response from Google (UNICODE)

"what does it means to dreams with zombies"

This is itself an interesting query, of what have you formed it?
by Lunasole
Mon Apr 24, 2023 11:53 pm
Forum: Tricks 'n' Tips
Topic: Hex2Dec (hex string to decimal)
Replies: 27
Views: 8908

Re: Hex2Dec (hex string to decimal)

What about my that code of 2016 it maybe looks funny. Should be made better, but I didn't updated it more because was not needed.
by Lunasole
Mon Apr 24, 2023 11:43 pm
Forum: Tricks 'n' Tips
Topic: Hex2Dec (hex string to decimal)
Replies: 27
Views: 8908

Re: Hex2Dec (hex string to decimal)

I liked "optimizations for optimizations" I still do :lol: I guess it's a leftover from staring with a computer with a 3.5 Mhz processor. You are right ASM is more difficult to debug. Even without using ASM, there's still room for optimization but a bit less of course. Here's a bit manipu...
by Lunasole
Sat Apr 22, 2023 6:24 pm
Forum: Applications - Feedback and Discussion
Topic: DialogDesign0R V1.84
Replies: 211
Views: 104983

Re: DialogDesign0R V1.83

Still active. I haven't look at your DD since moment years ago (v.1.49), but have no doubts it is made good.
by Lunasole
Wed Apr 19, 2023 7:01 pm
Forum: Tricks 'n' Tips
Topic: BSwap64/32/16
Replies: 28
Views: 1494

Re: BSwap64/32/16

idle wrote: Tue Apr 18, 2023 9:28 pm
RichAlgeni wrote: Tue Apr 18, 2023 4:58 pm
infratec wrote: Thu Apr 13, 2023 9:27 am The main problem is, that PB does not have unsigned long and quad.
I would so love unsigned integers.
Yes and add type alias as int32 or uint32 it's clear for everyone with no ambiguity.

c backend abuse variable a is treated as unsigned!

[/code]
Too.
by Lunasole
Wed Apr 19, 2023 6:48 pm
Forum: Tricks 'n' Tips
Topic: BSwap64/32/16
Replies: 28
Views: 1494

Re: BSwap64/32/16

RichAlgeni wrote: Tue Apr 18, 2023 4:58 pm
infratec wrote: Thu Apr 13, 2023 9:27 am The main problem is, that PB does not have unsigned long and quad.
I would so love unsigned integers.
Nice.
by Lunasole
Tue Apr 18, 2023 2:57 am
Forum: 3D Programming
Topic: Versioned, Inspired, Enhanced & Extended Conway's 0 player game
Replies: 5
Views: 905

Re: Versioned, Inspired, Enhanced & Extended Conway's 0 player game

Funny :mrgreen: But actually 0-player game will look much different.
by Lunasole
Mon Apr 17, 2023 3:37 pm
Forum: Tricks 'n' Tips
Topic: BSwap64/32/16
Replies: 28
Views: 1494

Re: BSwap64/32/16

You're making it too complicated for yourself. In Purebasic, all comparison, shift and math of byte, word, longs, integers, quads are processed signed. With the introduction of Unicode, the vartype var.a (ascii) was added as an unsigned byte and the vartype var.u (unicode) as an unsigned word. I ho...
by Lunasole
Mon Apr 17, 2023 11:59 am
Forum: Tricks 'n' Tips
Topic: BSwap64/32/16
Replies: 28
Views: 1494

Re: BSwap64/32/16

Do you understand it looking at the assembly? Yes, at least see key ops, even though I don't want to go to ASM now and didn't looked at that <<4 also. Just curious as I said, asked without doing anything myself until really will need that, as soon at there are talks around that. This thread should ...
by Lunasole
Mon Apr 17, 2023 2:54 am
Forum: Tricks 'n' Tips
Topic: BSwap64/32/16
Replies: 28
Views: 1494

Re: BSwap64/32/16

However, I prefer the type unsigned char for C-backend as in my example, because PB internally converts everything back to quad before shifting bits. No any theoretically possible fix for that with 1-byte? Like this I tried with masking: Procedure.b t(v_value.b) ProcedureReturn %00001111&v_valu...
by Lunasole
Sun Apr 16, 2023 9:22 pm
Forum: Tricks 'n' Tips
Topic: BSwap64/32/16
Replies: 28
Views: 1494

Re: BSwap64/32/16

idle wrote: Sun Apr 16, 2023 9:08 pm It fails as input is signed.

Byte swap is a stage in swar parallel bitreverse see here
https://graphics.stanford.edu/~seander/bithacks.html
I though he may explain his code, but well :|