Search found 2225 matches
- Jul 21, 2012 21:29
- Forum: Community Discussion
- Topic: And now for something completely different
- Replies: 3
- Views: 400
Re: And now for something completely different
Good stuff, im on the verge of building myself a nice steampunk victioriana box to house my Surfer/HTPC , be silent biatch! I recommend going for a good wireless mouse and having some usb leads feeding up from the back of the desk making it easier to plug in sticks/external hdrives, webcams, mics w...
- Jul 21, 2012 20:47
- Forum: Community Discussion
- Topic: And now for something completely different
- Replies: 3
- Views: 400
And now for something completely different
This is completely unrelated to freebasic but a fun distraction just the same. Last year I bought a new desk and after putting it together I immediately took it apart and started drilling holes, sawing out blocks and generally hacking one side of it up. Some people already know of this project of mi...
- Jun 21, 2012 4:37
- Forum: General
- Topic: Project layout
- Replies: 34
- Views: 2902
Re: Project layout
True enough, I suppose I should have said it calls itself based on a list of source parameters.
Anyway, the point is that it compiles each module individually and lets the linker...link...them... :|
Anyway, the point is that it compiles each module individually and lets the linker...link...them... :|
- Jun 17, 2012 1:09
- Forum: General
- Topic: Project layout
- Replies: 34
- Views: 2902
Re: Project layout
I think the defining part is if you use separate compilation units or not? Are multiple .o files generated,or just one, IOW can you compile the program in parts, or only in one go? I'm not sure what you mean by this. The only way you could compile it in "one go" would be to include source...
- Jun 13, 2012 7:53
- Forum: General
- Topic: DATABASE apps
- Replies: 7
- Views: 510
Re: DATABASE apps
fbc has a library which ships with it called "gfxlib2." Check the "fbgfx" section of the wiki out.
- Jun 11, 2012 22:14
- Forum: General
- Topic: Project layout
- Replies: 34
- Views: 2902
Re: Project layout
I break individual parts into individual files. With large classes I will break it into several files all with a related directory structure. Using an IDE like FBEdit it makes it much simpler to develop projects. If a single part becomes more complex I may break it into it's own project and build it...
- Jun 11, 2012 21:49
- Forum: General
- Topic: DATABASE apps
- Replies: 7
- Views: 510
Re: DATABASE apps
Short answer, no. Database engines are quite complex and typically designed to be accessed by multiple processes simultaneously (such as MySQL, MS SQL Server, etc). Smaller single instance libraries like SQLite can be statically linked but it is still an external library. If your project is small an...
- Jun 09, 2012 6:07
- Forum: Tips and Tricks
- Topic: [3] Fast multi-threaded synchronization constructs
- Replies: 3
- Views: 1084
Re: [3] Fast multi-threaded synchronization constructs
Kot wrote:tQueue.7z and ThreadPool sent me to http://windsorportal.com/404.php, no download :(
whoops, server changed the filename cases and didn't like the original CamelCase. Fixed now.
- Jun 06, 2012 21:07
- Forum: Tips and Tricks
- Topic: [3] Fast multi-threaded synchronization constructs
- Replies: 3
- Views: 1084
[3] Fast multi-threaded synchronization constructs
Code Provided: Reader-Writer Locks Tagged FIFO Queue Thread Pooler ----- Reader-Writer Locks A read-write lock mechanism (many reader, one writer) which allows multiple threads to read the same resource but only one thread can actively write. When a reader acquires the lock is enters a critical sect...
- Jun 06, 2012 7:23
- Forum: Community Discussion
- Topic: Freebasic v's C# code execution speed ?
- Replies: 31
- Views: 2839
Re: Freebasic v's C# code execution speed ?
...i can tell that my mutex-lock stuff probably isnt optimal i need to find a lock-free solution, or make some kind of simple queueing I have a freebasic implementation of reader-writer locks. They are very fast non-blocking read locks and a invoke a mutual exclusion on write locks (many reader, on...
- Jun 06, 2012 7:04
- Forum: Community Discussion
- Topic: OO in FB
- Replies: 27
- Views: 2551
Re: OO in FB
See my last post before: Since fbc 0.17, string fields in UDT are pseudo-objects, which are constructed/destroyed by implicit constructor/destructor. Before fbc 0.17 (up to fbc 0.16), var-len string was not allowed inside a Type. I did read your posts, but after sitting behind keyboards for more th...
- Jun 05, 2012 19:03
- Forum: Community Discussion
- Topic: OO in FB
- Replies: 27
- Views: 2551
Re: OO in FB
I may be mistaken but I had thought the .23 gcc backend supported "extends" (and thus the basis of inheritance). I didn't test it since I don't use the gcc backend, however. As to deallocating strings explicitly, I've been using fb for quite a while (when did it first get release?) and thu...
- Jun 05, 2012 18:15
- Forum: General
- Topic: The great OO errorthread
- Replies: 11
- Views: 661
Re: The great OO errorthread
Last sentence of '§ 'description': A type alias can be used to allow forward declarations of User Defined Types, but only used with pointers . So...is there a question or just restating the documentation? I just don't understand your comment is all. If it's a question the answer is simple. As a for...
- Jun 05, 2012 17:58
- Forum: Community Discussion
- Topic: Freebasic v's C# code execution speed ?
- Replies: 31
- Views: 2839
Re: Freebasic v's C# code execution speed ?
In case you really do want to do benchmarks, it is important to note that benchmarks are only applicable to algorithms, not compilers. You create multiple algorithms to complete the same task and benchmark those. Benchmarking how many times the CPU can increment a memory location is not a benchmark ...
- Jun 05, 2012 17:49
- Forum: Community Discussion
- Topic: Freebasic v's C# code execution speed ?
- Replies: 31
- Views: 2839
Re: Freebasic v's C# code execution speed ?
First you need the raw benchmark numbers, then you can dig a little deeper. Actually, first you define your problem and related data associated with your problem. Next you determine your conditions and restrictions (such as hardware systems, operating systems, language choice). Then you break your ...