Search found 225 matches

by RockTheSchock
Oct 28, 2015 15:49
Forum: Tips and Tricks
Topic: Change .bas extension to allow deeper windows search
Replies: 4
Views: 992

Re: Change .bas extension to allow deeper windows search

This is the plot. On Windows (I'm on XP so it would at least be true for this version) one can perform a search for a file by its text content. But it relies on the file extension. ... I had about 450 files to search for only 3 results. So I would hardly have found the files by luck, and it was wor...
by RockTheSchock
Oct 27, 2015 7:51
Forum: General
Topic: Random Numbers
Replies: 40
Views: 3087

Re: Random Numbers

Why dont you use the algorithm 5 as parameter?
RANDOMIZE TIMER,5

Call this once and rnd should generate very random numbers.
by RockTheSchock
Oct 12, 2015 21:37
Forum: Game Dev
Topic: Bigdata and game simulation
Replies: 7
Views: 1637

Re: Bigdata and game simulation

Well, I made an example of how to split your project over multiple files. bigdatademo.bas (main) sitizen.bas / sitizen.bi bigdata.bas / bigdata.bi messaging.bas / messaging.bi coordinate.bas / coordinate.bi geolocalisation.bi http://s000.tinyupload.com/index.php?file_id=61344134289277558265 You can ...
by RockTheSchock
Sep 08, 2015 21:30
Forum: General
Topic: How initialize a data memory area as quickly as possible?
Replies: 37
Views: 3061

Re: How initialize a data memory area as quickly as possible

Remember the question! "How initialize a data memory area as quickly as possible?" Well. i have asked for a bigger picture once because there are other solutions than only optimizing speed of data writes. A much more effective way could be to minimize the size of memory to clear. Or anothe...
by RockTheSchock
Sep 07, 2015 7:47
Forum: General
Topic: How initialize a data memory area as quickly as possible?
Replies: 37
Views: 3061

Re: How initialize a data memory area as quickly as possible

Why do you need such a big byte array? What do you want to do? Are you making a chess engine? Maybe you could use another algorithm that uses less memory.
by RockTheSchock
Aug 25, 2015 14:33
Forum: General
Topic: Ide with drag and drop support for all os
Replies: 4
Views: 842

Re: Ide with drag and drop support for all os

some basic gui libraries:
cGUI written in C(djgpp/allegro) or sGUI(FreeBasic / buitin gfxlib)
by RockTheSchock
Jul 27, 2015 6:42
Forum: General
Topic: Making compact number representation
Replies: 13
Views: 1180

Re: Making compact number representation

You have so the keys to understand what I'm doing. What do you want to accomplish in the end? Just be able to get the whole table of inverses of U --->R1. Thats a very specific problem you want to solve. But it doesnt help me to understand the big picture. You have a file with millions or billions ...
by RockTheSchock
Jul 26, 2015 19:08
Forum: General
Topic: Making compact number representation
Replies: 13
Views: 1180

Re: Making compact number representation

I think the most compact format is if you store the numbers binary without any type of compression. You have randomly generated relativ evenly distributed numbers, so any lossless compression isn't very effective. Well if you bloat them by choosing human readable format to then compact them again it...
by RockTheSchock
Jul 22, 2015 9:36
Forum: Beginners
Topic: Shared 3.9GB array too big in FB64bits with 8GB RAM
Replies: 13
Views: 1684

Re: Shared 3.9GB array too big in FB64bits with 8GB RAM

It's less about the capabilities of FB but more about which type of memory is used to store the array. With ReDim an array is always dynamic. With only Dim it depends! With qb or fblite dialekt there is also '$Dynamic or Option Dynamic to force Dim to use dynamic memory segment. Static memory should...
by RockTheSchock
Jul 22, 2015 6:19
Forum: General
Topic: How Can I remove empty string In dynamic Array
Replies: 22
Views: 1299

Re: How Can I remove empty string In dynamic Array

May I ask: why are you trying to optimize an ArrayList of strings while eventually a double linked list could be much better for this thing?
by RockTheSchock
Jul 21, 2015 19:29
Forum: Beginners
Topic: Shared 3.9GB array too big in FB64bits with 8GB RAM
Replies: 13
Views: 1684

Re: Shared 3.9GB array too big in FB64bits with 8GB RAM

Code: Select all

reDim Shared P(1 To 10, 1 To 20, 1 To 20, 0 To 63, 0 To 63, 0 To 63) As UInteger<32>
by RockTheSchock
Jul 17, 2015 9:01
Forum: General
Topic: About sharing data between running executables
Replies: 24
Views: 2167

Re: About sharing data between running executables

What the best depends on what you want to accomplish. Criterias: - low latency / very high number of changes / a lot of messages passed around - big chunk of shared data mostly handled read only - cross platform ... the easiest to code means: you are very unflexible. You may run later into problems....
by RockTheSchock
Jul 17, 2015 6:57
Forum: General
Topic: About sharing data between running executables
Replies: 24
Views: 2167

Re: About sharing data between running executables

The most flexible surley is communication over TCP sockets. Your processes can run on the same computer or on different computers with even different OS. If you are using TCP sockets with localhost there are some performance tweaks for setting up the connection: On Windows 8 TCP loopback fast path (...
by RockTheSchock
Jul 14, 2015 22:49
Forum: General
Topic: UDT with Constructors and Cast - Ambigious Call
Replies: 11
Views: 858

Re: UDT with Constructors and Cast - Ambigious Call

Maybe like this:

Code: Select all

Operator + (ByRef x As murks, byref y as murks) ByRef As murks
  Static z As murks
  z.s = x.s + y.s
  Return z
End Operator

Go to advanced search