Search found 219 matches

by RockTheSchock
Aug 25, 2015 14:33
Forum: General
Topic: Ide with drag and drop support for all os
Replies: 4
Views: 800

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

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

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

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

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

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

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

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

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
by RockTheSchock
Jul 14, 2015 19:56
Forum: General
Topic: About sharing data between running executables
Replies: 24
Views: 1999

Re: About sharing data between running executables

As alternative you could use a file or several files in a directory. To speed things up you can use a ramdisk. http://www.ltr-data.se/opencode.html/#ImDisk on linux systems you can create a directory for your application under /dev/shm/ or you can use the POSIX shared memory API http://man7.org/linu...
by RockTheSchock
Jul 13, 2015 16:39
Forum: General
Topic: Reverse a number
Replies: 18
Views: 1392

Re: Reverse a number

However given a num and using its string conversion, strnum, left aside any speed considerations, I see some advantages : ⋅ you can compute length(num) = len(strnum), which won't work directly since len(num) will return in fact len(numtype) ⋅ you won't loose the terminal zeros w...
by RockTheSchock
Jul 09, 2015 18:56
Forum: DOS
Topic: Known Issues with DOSBox?
Replies: 12
Views: 2945

Re: Known Issues with DOSBox?

I compiled alllegro4 and cgui under dosbox and tested the cgui example with no problems. With other fb examples I had some weired problems. After setting DosBox Option from "cputype=auto" to "cputype=pentium_slow" there are no problems running several examples: flame.bas, tui.bas...
by RockTheSchock
Jul 08, 2015 8:12
Forum: Beginners
Topic: Is there a maximum number of dimensions to an array?
Replies: 14
Views: 1976

Re: Is there a maximum number of dimensions to an array?

EDIT: I would suggest to use x,y coordinates as relative coordinates. So your galaxy cordinates are relative to the universe center. Planet coords are relative to the galaxy center and so on. Type TileType title As String x As Integer y As Integer parent As TileType Ptr End Type Type AtomType As Int...
by RockTheSchock
Jun 29, 2015 15:37
Forum: Projects
Topic: Data Reduction Challenge
Replies: 29
Views: 3666

Re: Data Reduction Challenge

If you want to zoom in with higher res just use "window screen" command!

Code: Select all

'screenres 640,480,32
ScreenRes 1280,1024,32       
Window Screen (70,70)-(445,370)
by RockTheSchock
Jun 24, 2015 15:35
Forum: General
Topic: Assign UDT member Sub to a Sub & start it as Thread
Replies: 17
Views: 1110

Re: Weird behaviour inside Thread created after 'MemberSub C

Well the only problem i see is you need to wrap your screen output statements with screenlock / screenunlock. Beside that you should never access non static member vars from a static function. This._anything is just nonsense. Please look again at my example code. http://www.freebasic.net/forum/viewt...

Go to advanced search