Search found 229 matches

by RockTheSchock
Nov 20, 2015 12:51
Forum: Beginners
Topic: Is there any real Basic implementation for GTK+ ?
Replies: 32
Views: 3279

Re: Is there any real Basic implementation for GTK+ ?

I would say Python is the best beginner language because you are forced to indent your code. To write readable source with less errors you need indentation! There is not the Basic language or the best language. As more advanced programmer you have one prefered language and at least 2-3 additional la...
by RockTheSchock
Nov 17, 2015 13:32
Forum: General
Topic: Contering C++ code to FreeBASIC
Replies: 3
Views: 509

Re: Contering C++ code to FreeBASIC

There is also some space to optimize the algorithm / code. I estimate speed improvements by 30% maybe even more. Now you read byte by byte and write byte by byte. But you could read 8 bytes at once and write one byte at a time ( or other way aorund read single bytes and then write 8 bytes in one chu...
by RockTheSchock
Nov 17, 2015 11:15
Forum: General
Topic: Contering C++ code to FreeBASIC
Replies: 3
Views: 509

Re: Contering C++ code to FreeBASIC

I translated the code. It does compile fine, but i am not sure if I did all boundaries right. So be prepared for crashes because of memory violations at runtime. '//************************************************// '//Function: AntiRotateBmp90D // '// Utility: Transform bmp format bit image into pr...
by RockTheSchock
Nov 06, 2015 12:51
Forum: Beginners
Topic: No values when compiling with -lang fblite
Replies: 2
Views: 654

Re: No values when compiling with -lang fblite

Standard Datatype QB is SINGLE while with FBLite it's Integer

You just need insert as first line:
DefSng A-Z
by RockTheSchock
Oct 28, 2015 15:49
Forum: Tips and Tricks
Topic: Change .bas extension to allow deeper windows search
Replies: 4
Views: 1020

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: 3204

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: 1710

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: 3113

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: 3113

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: 855

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: 1234

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: 1234

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: 1727

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: 1316

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?

Go to advanced search