Search found 229 matches

by RockTheSchock
Jul 21, 2015 19:29
Forum: Beginners
Topic: Shared 3.9GB array too big in FB64bits with 8GB RAM
Replies: 13
Views: 1704

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

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

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

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

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

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

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

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

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

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...
by RockTheSchock
Jun 16, 2015 6:38
Forum: General
Topic: Problem of access to a member of a class
Replies: 3
Views: 670

Re: Problem of access to a member of a class

Well I wrote some tests and played a bit with byref return. It seems without byref there are some allocations of p1 instances when used syntax with braces. . Remove Byref to see what I mean. type Classe_1 extends object Private: _P_1 As integer=100 public: declare Property P_1(V as integer) declare ...
by RockTheSchock
Jun 12, 2015 0:05
Forum: Tips and Tricks
Topic: Dummy Block design. Re-implementing ASM blocks ..
Replies: 5
Views: 966

Re: Dummy Block design. Re-implementing ASM blocks ..

I am wondering what exactly you want to accomplish in the long run. Do you want to write less code(chars) - use C / C++ Do you want to change FreeBasic language - modify the compiler / preprocessor Do you want to embed lua blocks just like asm blocks - just execute an external lua file. It's one lin...
by RockTheSchock
Jun 11, 2015 14:54
Forum: Libraries
Topic: PdfLib on linux
Replies: 10
Views: 2184

Re: PdfLib on linux

Well, if you dont want external dependencies just use the static version of the library. Even for GTK you can build a static version and use it for windows.
by RockTheSchock
Jun 09, 2015 15:48
Forum: Community Discussion
Topic: Dim/Data block syntax
Replies: 4
Views: 761

Re: Dim block syntax

Let me know if I missed something here. Well, you shouldn't use many global vars at all. It's cleaner to encapsulate them in a Type and define one global var/object or maybe a local var/object which you can initialise with a constrcutor and pass as parameter to your mainprocessingfunction. Such cod...
by RockTheSchock
May 28, 2015 8:47
Forum: Tips and Tricks
Topic: LUA
Replies: 1
Views: 906

Read lua table

Reading a lua table recursivly:
viewtopic.php?f=7&t=22223&hilit=+Lua#p195498

Go to advanced search