Search found 530 matches

by Lost Zergling
Apr 15, 2024 11:41
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 267
Views: 23927

Re: Freebasic 1.20.0 Development

Just Feedback (sorry for not being able to give more). While developing lzle, at one point I faced a 15%-25% performance drop. The problem was the following: resistance to memory fragmentation over time. This may seem paradoxical, but the less memory was exposed to the risk of fragmentation, the wor...
by Lost Zergling
Apr 05, 2024 13:37
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 267
Views: 23927

Re: Freebasic 1.20.0 Development

@marcov !including("tp") is excellent, as usual :lol:
by Lost Zergling
Apr 04, 2024 9:01
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 267
Views: 23927

Re: Freebasic 1.20.0 Development

I have a dilemma: on the one hand completely leaving aside backwards compatibility is really something very problematic, on the other hand moving forward is necessary. On the one hand the argument for standardization with ARM architecture, on the other it seems clear that regressions are inevitable ...
by Lost Zergling
Mar 29, 2024 19:25
Forum: Beginners
Topic: array initialization
Replies: 8
Views: 320

Re: array initialization

About : '''Error: Var-len strings cannot be initialized in ''''dim shared fruitname(0 to 2) as string => {"apple", "orange", "banana"}' Using another approach ;-) https://www.freebasic.net/forum/viewtopic.php?t=26551 (lzle doc/demo) https://www.freebasic.net/forum/viewt...
by Lost Zergling
Mar 25, 2024 10:48
Forum: Beginners
Topic: Dictionary Part two
Replies: 5
Views: 330

Re: Dictionary Part two

Hello.
Maybe you could consider using the tool lzle (viewtopic.php?t=26551) ? 8)
by Lost Zergling
Mar 19, 2024 9:32
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 267
Views: 23927

Re: Freebasic 1.20.0 Development

Simply because of not having said it often enough, but nevertheless, thank you, really thank you, Jeff and fxm for your involvement in the continuity of the FB project.
by Lost Zergling
Mar 06, 2024 10:54
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 267
Views: 23927

Re: Freebasic 1.20.0 Development

@Jeff There is indeed a complexity to the idea. The problem that the developer will be confronted with, in particular, is the reliability of the length of the strings being shorter than defined: this requires filtering the blanks on the right before each assignment, or assuming the fact that the inf...
by Lost Zergling
Mar 04, 2024 11:20
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 267
Views: 23927

Re: Freebasic 1.20.0 Development

- On assignment STRING*N pads the string with spaces and does not automatically add a null terminating character. - SWAP will pad values with spaces where one of the arguments is of the STRING*N data type - STRING*N arguments are copied to a temporary string when passed to ZSTRING ptr parameters bec...
by Lost Zergling
Mar 01, 2024 9:25
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 267
Views: 23927

Re: Freebasic 1.20.0 Development

Hello everyone, it's been a while! I wondered about the problem of pointers to fixed length strings. The basic type string is very efficient, this is what my tests with lzle (tagmode2) showed. I had studied two other approaches: zstring* (tagmode1) and a kind of micro descriptor (tagmode0) containin...
by Lost Zergling
Feb 23, 2023 8:35
Forum: General
Topic: zlib and co help appreciated
Replies: 4
Views: 556

Re: zlib and co help appreciated

Hello dodicat. I do not use gcc, but your code fits what I was looking for. Perhaps I ll try extern c and try to compile zlib sources using fb but that is not mandatory. Before that, I have some work on my lzle lib to allow reserved ascii codes, and fix some bugs with hashashtag and tracking, with a...
by Lost Zergling
Feb 21, 2023 18:27
Forum: General
Topic: zlib and co help appreciated
Replies: 4
Views: 556

Re: zlib and co help appreciated

I Got it 64 bits ok : Thank you a lot ! (I do still a problem with my search path but your exemple works nicely)
by Lost Zergling
Feb 21, 2023 16:59
Forum: General
Topic: zlib and co help appreciated
Replies: 4
Views: 556

zlib and co help appreciated

Hello. I tried different exemples of compression : zlib, quicklz, bz2 lzo and so
Sounds like a general beginner issue on my config accessing related libraries :
F:\FB64\FreeBASIC-1.09.0-winlibs-gcc-9.3.0\bin\win64\ld.exe: cannot find -llzo2
Dezipped stand alone. Using Fbide.
Thanks.
by Lost Zergling
Feb 19, 2023 8:28
Forum: General
Topic: Currently a 'With..End With' block can support a temporary instance of a Type !
Replies: 22
Views: 1499

Re: Currently a 'With..End With' block can support a temporary instance of a Type !

To better assimilate the "how", it is necessary to understand the "why" a little and therefore to enter a little into the internal functioning.
I fully subscribe to this spirit.
by Lost Zergling
Jan 31, 2023 20:21
Forum: Sources, Examples, Tips and Tricks
Topic: Auto-Sized Zstring Object
Replies: 11
Views: 1931

Re: Auto-Sized Zstring Object

Maybe one could imagine static string passed byref, as an additionnal operator parameter ? I did not try doing it.
My point is not trying to oppose object vs classic ptr. Both cons and advantages.
by Lost Zergling
Sep 19, 2022 18:55
Forum: General
Topic: KD-Tree Implementation
Replies: 14
Views: 1903

Re: KD-Tree Implementation

@Andrew. You're right. I should have thought the algo before posting. Indeed just drafts, perhaps some ideas, but they're not structured. Sorry do not have time to really play with it or think seriously about it. Perhaps am I seeking useless complexity. I should have been a thick less optimistic bef...