Search found 1568 matches
- May 03, 2018 16:31
- Forum: Sources, Examples, Tips and Tricks
- Topic: String hashing functions
- Replies: 6
- Views: 2231
Re: String hashing functions
Nice, and really fast to boot. Another tool to add to the shack =D
- May 03, 2018 16:22
- Forum: Sources, Examples, Tips and Tricks
- Topic: Dictionary Class
- Replies: 109
- Views: 24387
Re: Dictionary Class
You're welcome =Dsrvaldez wrote:thank you :-)
Feel free to report any issues/questions you may have. I'll try to answer as soon as I can. Have fun!
- May 03, 2018 15:56
- Forum: Sources, Examples, Tips and Tricks
- Topic: Dictionary Class
- Replies: 109
- Views: 24387
Re: Dictionary Class
Sure. I updated the repo with a makefile. To compile the lib, use:srvaldez wrote:would you please include a make file or a batch file to build the library?
Code: Select all
fbc @makelib
- May 03, 2018 12:26
- Forum: Sources, Examples, Tips and Tricks
- Topic: Dictionary Class
- Replies: 109
- Views: 24387
Re: Dictionary Class
have not tried it on macOS yet but as long as there are no Windows or Linux specific code it should work, don't have time at the moment, will try later. That's ok, it doesn't use any OS-dependent code, so you should be able to run it natively. I will add the thread-safe version soon, and be done wi...
- May 03, 2018 11:28
- Forum: Sources, Examples, Tips and Tricks
- Topic: Dictionary Class
- Replies: 109
- Views: 24387
Re: Dictionary Class
By the way, does the code of the library runs on your Mac (I'll assume you're using one, as per some older posts)? Or does it need some other 'salt' for it to run correctly?
- May 03, 2018 11:23
- Forum: Sources, Examples, Tips and Tricks
- Topic: Dictionary Class
- Replies: 109
- Views: 24387
Re: Dictionary Class
thanks a million paul doe :-) You're welcome =D I don't understand your questions, probably because I don't know much about dictionaries except that you can store/retrieve values by keys. As you can see, in the example I posted it is trivial to code a dispatcher for parameterless sub/function calls...
- May 03, 2018 5:05
- Forum: Sources, Examples, Tips and Tricks
- Topic: Dictionary Class
- Replies: 109
- Views: 24387
Re: Dictionary Class
Another example, showing the dictionary implemented to deal with integer keys: #include once "fb-dictionary.bi" using collections type IntegerKey extends IDictionaryKey public: declare constructor( byval as integer ) declare function equals( byval as IDictionaryKey ptr ) as boolean overrid...
- May 03, 2018 1:25
- Forum: Sources, Examples, Tips and Tricks
- Topic: Dictionary Class
- Replies: 109
- Views: 24387
Re: Dictionary Class
Trivial example (for subs/functions without parameters): #include once "fb-dictionary.bi" #include once "fb-dict-reference.bas" sub f1() ? "Function 1 called" end sub sub f2() ? "Function 2 called" end sub sub f3() ? "Function 3 called" end sub sub f...
- May 03, 2018 1:03
- Forum: Sources, Examples, Tips and Tricks
- Topic: Dictionary Class
- Replies: 109
- Views: 24387
Re: Dictionary Class
Yep. That's one of the uses (for implementing a compiler/interpreter, for example). How do you plan to manage the functions signature? Or the signature is always the same?srvaldez wrote:could you use your dictionary class to call function pointers by name?
- May 03, 2018 0:14
- Forum: Sources, Examples, Tips and Tricks
- Topic: Dictionary Class
- Replies: 109
- Views: 24387
Re: Dictionary Class
Ok, I finished revamping it. It's more flexible now, albeit a little more difficult to use, but that's of no consecuence since nobody but me will use it =D There's some examples and a stress test included in the package. If there's any questions about the usage, I'll post some examples here. It migh...
- May 02, 2018 21:11
- Forum: Sources, Examples, Tips and Tricks
- Topic: rolling wheel
- Replies: 3
- Views: 900
Re: rolling wheel
Nice, also contains useful maths. Good work.
- May 01, 2018 6:21
- Forum: Sources, Examples, Tips and Tricks
- Topic: Pointer Stack
- Replies: 4
- Views: 1100
Re: Pointer Stack
That decorator type would work with either of our stacks. Indeed, but they should both derive from another intermediate class (called an interface ) that declares the relevant methods (push() and pop() in this case) as abstract . Like this: type IStack extends Object declare abstract sub push( byva...
- Apr 30, 2018 20:56
- Forum: Projects
- Topic: LZLE List Engine with user friendly powerfull syntax - BETA 0.997a
- Replies: 101
- Views: 44560
Re: LZLE List Engine with user friendly powerfull syntax - Alpha1 Frozen (Latest FIX 30/04)
Well, that's quite enough for me. At least I tried to provide useful advice. Good luck!
- Apr 30, 2018 17:19
- Forum: Projects
- Topic: LZLE List Engine with user friendly powerfull syntax - BETA 0.997a
- Replies: 101
- Views: 44560
Re: LZLE List Engine with user friendly powerfull syntax - Alpha1 Frozen (Latest FIX 30/04)
Example 7 is something on it's own league. I can't publish the report as the debugger crashed before finishing. However, I did monitored it with task manager: When the program begins (before the loop), the amount of memory used is about 600 K. The total memory usage of the program sits in about 177 ...
- Apr 30, 2018 16:43
- Forum: Projects
- Topic: LZLE List Engine with user friendly powerfull syntax - BETA 0.997a
- Replies: 101
- Views: 44560
Re: LZLE List Engine with user friendly powerfull syntax - Alpha1 Frozen (Latest FIX 30/04)
Example 6: Dr. Memory version 1.11.0 build 2 built on Aug 29 2016 02:42:07 Dr. Memory results for pid 5128: "example-6.exe" Application cmdline: "example-6.exe" Recorded 115 suppression(s) from default C:\Programming\DrMemory-Windows-1.11.0-2\bin\suppress-default.txt Running on a...