Search found 42 matches

by StringEpsilon
Jul 27, 2019 11:22
Forum: Projects
Topic: JSON library (0.20.2)
Replies: 36
Views: 13283

Re: JSON library (0.20.2)

@dbickin: Sorry for the late response. You can get a faster reply if you open a github issue: https://github.com/StringEpsilon/fbJson/issues I can't find any errors with your JSON, using the latest version from master of fbJSON. Can you explain in more detail what goes wrong, what version you use an...
by StringEpsilon
Jan 14, 2019 0:20
Forum: Tips and Tricks
Topic: CountInString()
Replies: 16
Views: 1604

Re: CountInString()

strstr() is available on windows (crt.bi), but strcasestr isn't. Don't know if windows has a substitute. I'm sorry, I really should have mentioned that in my above post. Edit: Toying with that benchmark, I noticed that when I drop case-insensitivity support, I gain a smidge performance. Didnt expect...
by StringEpsilon
Jan 13, 2019 18:11
Forum: Tips and Tricks
Topic: CountInString()
Replies: 16
Views: 1604

Re: CountInString()

The below is faster in the average case. It gets closer to D.J. Peters performance with more percent of the source string being a hit. countInstr("1234567890a", "a") will be consierably faster countInstr("aaaaaaaaaaa", "a") will be as fast or slightly slower. ...
by StringEpsilon
Jan 13, 2019 15:45
Forum: Projects
Topic: fbNetwork - OOP networking
Replies: 3
Views: 647

Re: fbNetwork - OOP networking

Seems like ntop is only available in Vista and later.

https://msdn.microsoft.com/de-de/librar ... 43(v=vs.85).aspx

I'm not sure I want to work around that restriction, as XP is out of support since April of 2014. But I'll add a note in the readme.
by StringEpsilon
Jan 12, 2019 21:01
Forum: Projects
Topic: fbNetwork - OOP networking
Replies: 3
Views: 647

fbNetwork - OOP networking

Hi, It's still very early , but the basic client works now. And I really need people to test it and give me some feedback on how it feels to use it. It supports: * TCP and UDP * Windows and Linux * IPv4 and IPv6 fbNetwork on GitHub - MPL 2.0 as usual. Motivation (from the readme) Since you can't get...
by StringEpsilon
Jul 26, 2018 19:06
Forum: Tips and Tricks
Topic: FB MemCopy() statement (without CRT includes)
Replies: 44
Views: 3787

Re: FB MemCopy() statement (without CRT includes)

I plugged this into fbJSON and it's quite a lot slower. My benchmark has 5700002 calls to memcpy / memcopy and 26426818 bytes are copied total (an average of 4.5 bytes per call). With crt/memcpy: 1.22 seconds With your function: 1.35 seconds Not sure what the benefit of using your variant is. The FB...
by StringEpsilon
Jul 06, 2018 19:19
Forum: Projects
Topic: DWSTRING.bi - Dynamic null terminated unicode string data type
Replies: 20
Views: 2936

Re: DWSTRING.bi - Dynamic null terminated unicode string data type

Looks like the opposite of what I tried to do with ustring. Nice job! A few notes though: 1) 260 byte growsize is a bit excessive. I'd set the default to 32 or 64 byte. I think normal freebasic strings use 32. 2) You depend on windows.bi, I think because you rely on MultiByteToWideChar() for convers...
by StringEpsilon
Apr 29, 2018 17:45
Forum: Projects
Topic: LZLE List Engine with user friendly powerfull syntax - BETA 0.994 -
Replies: 87
Views: 22866

Re: LZLE List Engine with user friendly powerfull syntax - Alpha1 Frozen (Latest FIX 27/04)

leaks wich are due/proportional to instanciation/de-instanciation cycles and leaks due/proportional to list's internal cycles when working with properties. The first ones are "uggly" because program is becoming a bit dependant on system safety features while the second ones means it is no...
by StringEpsilon
Apr 28, 2018 18:46
Forum: Projects
Topic: JSON library (0.20.2)
Replies: 36
Views: 13283

Re: JSON library (0.19)

I remembered reading about a testsuite for JSON parsers and decided to test fbJson against that. Fixed a few issues: https://github.com/StringEpsilon/fbJson/releases/tag/0.19 I might redeclare this as 1.0 later, if nothing comes up. I still need to sift through the "i_" tests of the suite ...
by StringEpsilon
Apr 28, 2018 11:10
Forum: Projects
Topic: LZLE List Engine with user friendly powerfull syntax - BETA 0.994 -
Replies: 87
Views: 22866

Re: LZLE List Engine with user friendly powerfull syntax - Alpha1 Frozen (Latest FIX 27/04)

Hello String Epsilon. I am not very used to the logs of the grid of values. About memory leaks, do you know if it is a fixed leak, proportionnal with the size of the lists or both ? It seems like it leaks the size of ListContainer each time List.AllowPancake() hits the else-path. Core issue seems t...
by StringEpsilon
Apr 27, 2018 20:08
Forum: Projects
Topic: LZLE List Engine with user friendly powerfull syntax - BETA 0.994 -
Replies: 87
Views: 22866

Re: LZLE List Engine with user friendly powerfull syntax - Alpha1 Frozen (Latest FIX 27/04)

Example #1 leaks memory. Just the leaks valgrind attributed to LZListsEngine.bi: ==15494== 104 bytes in 1 blocks are definitely lost in loss record 237 of 246 ==15494== at 0x4C2EEF5: calloc (vg_replace_malloc.c:711) ==15494== by 0x4024AA: LIST::ALLOWPANCAKE__get__() (LZListsEngine.bas:168) ==15494==...
by StringEpsilon
Apr 27, 2018 13:51
Forum: Projects
Topic: JSON library (0.20.2)
Replies: 36
Views: 13283

Re: JSON library (0.17)

It's a matter of compliance, not opinion. Values like dates and times must be serialized as strings, not numbers. I just reread the paragraph and realized I missed some cases. Oh well. BTW, if you're curious: The representation of numbers is similar to that used in most programming languages. A numb...
by StringEpsilon
Apr 27, 2018 12:13
Forum: Projects
Topic: JSON library (0.20.2)
Replies: 36
Views: 13283

Re: JSON library (0.18)

Put up a new version: An shortened change log can be found on github . Notable changes happened in AddItem() and the number validation. AddItem() was completely broken 0.17. I fixed that and I also changed how it accepts values due to related changes in the value() property and the number validation...
by StringEpsilon
Apr 24, 2018 15:49
Forum: Projects
Topic: JSON library (0.20.2)
Replies: 36
Views: 13283

Re: JSON library (0.17)

You're the best :) I finally wrote a couple more tests for this and found a couple other flaws, such as "\\\\\\" being deescaped to "\\\\\" instead of "\\\". Starting or ending a key with "\\" would have also caused an error. I really hope escaping now works c...
by StringEpsilon
Apr 24, 2018 10:58
Forum: Projects
Topic: JSON library (0.20.2)
Replies: 36
Views: 13283

Re: JSON library (0.17)

Two things: You need to trim the input. I really should do that in the class... I'll fix that. And you found a bug with my deescaping function. If you define fbJSON_Debug, you get this errormessage: fbJSON Error: Could not de-escape 'c:\\chess\\fruit' encountered at position 3 on line 7. The culprit...

Go to advanced search