Search found 2641 matches

by marcov
Feb 14, 2019 20:36
Forum: General
Topic: recreational function approximations
Replies: 9
Views: 241

Re: recreational function approximations

Code: Select all

function rolldice () as double
return 4   ' I rolled a dice, and this was the outcome. Really random,  no cheating!
end function


I tried to make an AI using Tensorflow, but decided it was useless since it couldn't even predict the roll of simple dice.
by marcov
Feb 14, 2019 18:09
Forum: DOS
Topic: FreeDOS 21st century?
Replies: 9
Views: 223

Re: FreeDOS 21st century?

Now, what does this have to do with freeBASIC, what could you do with freeBASIC, if it were running in a 1GB RAM environment? What sort of programs could you come up with using task switching/multitasking? The same applications as people have being making with real 21th century systems for decades ...
by marcov
Feb 08, 2019 10:39
Forum: Beginners
Topic: Matrix to string
Replies: 15
Views: 207

Re: Matrix to string

If the string type separates size from length, simply set the size very high before starting. Adding then doesn't force constant reallocations. Otherwise you need to do what Marpon says, do manual appending in a block of memory. If such a procedure is generalized to a class it is often called a stri...
by marcov
Feb 07, 2019 18:39
Forum: General
Topic: Max Upload Size
Replies: 7
Views: 209

Re: Max Upload Size

sourceforge.net still offers SVN repositories btw!
by marcov
Feb 05, 2019 11:12
Forum: Hardware Interfaces / Communication
Topic: How can I listen and serve information over a TCP port? [Windows]
Replies: 4
Views: 237

Re: How can I listen and serve information over a TCP port? [Windows]

Afaik winsock is not that hard. Simply searching for some C winsock sample and converting it should suffice if you have a winsock2 header. Installing as service is afaik not necessary for ports over 1024. However the reliability of the existing binary might not be the binary itself, just security so...
by marcov
Jan 30, 2019 15:18
Forum: General
Topic: [Freebasic 32 vs 64]
Replies: 32
Views: 640

Re: [Freebasic 32 vs 64]

here's the binary-tree benchmark, time differences between FB versions are small, my times were FBwin32 gas, 67.26 seconds FBwin32 gcc, 61.59 seconds FBwin64 gcc, 52.00 seconds Note that binary tree might be a case where data cache effects affect win64 performance (for high numbers of nodes) This b...
by marcov
Jan 29, 2019 9:54
Forum: General
Topic: [Freebasic 32 vs 64]
Replies: 32
Views: 640

Re: [Freebasic 32 vs 64]

Some additions, note that I'm talking from a compiler standpoint, with at least partial assembler runtime helpers, and for x86/x86_64 only, not necessarily 64-bit universal. (since I have a Raspberry pi 3, I have ARM64 too, and there is a G5 lurking around somewhere) There is no general rule for the...
by marcov
Jan 28, 2019 20:49
Forum: General
Topic: [Freebasic 32 vs 64]
Replies: 32
Views: 640

Re: [Freebasic 32 vs 64]

Windows Make sure you recompiled everything with -dTEST_WIN32_SEH and appropriate -Cf parameters. By default win32 has a slower exception system than win64, but that is historic and will hopefully be fixed soon. I did not know this setting, I use classic optimizations. you mean with this setting. 3...
by marcov
Jan 28, 2019 20:06
Forum: General
Topic: [Freebasic 32 vs 64]
Replies: 32
Views: 640

Re: [Freebasic 32 vs 64]

Coolman wrote:Windows


Make sure you recompiled everything with -dTEST_WIN32_SEH and appropriate -Cf parameters.

By default win32 has a slower exception system than win64, but that is historic and will hopefully be fixed soon.
by marcov
Jan 28, 2019 19:53
Forum: General
Topic: [Freebasic 32 vs 64]
Replies: 32
Views: 640

Re: [Freebasic 32 vs 64]

Coolman wrote:that said. i can assure you that 64 bit programs generated by lazarus freepascal are much faster than 32 bit ones.


On Windows or on Linux ?
by marcov
Jan 28, 2019 19:36
Forum: General
Topic: [Freebasic 32 vs 64]
Replies: 32
Views: 640

Re: [Freebasic 32 vs 64]

I know all that . by default freebasic 32 generates asm code while the 64-bit version generates only C code . The 32-bit generates assembler from Basic. The 64-bit generates assembler from C. Since C is faster that Basic that explains why 64-bits programs are so much faster than 32-bit. In general ...
by marcov
Jan 28, 2019 19:33
Forum: Beginners
Topic: Unicode and files
Replies: 6
Views: 212

Re: Unicode and files

Afaik linux has no encoding support at the kernel level, and stores all filenames as byte sequences.

IOW a word with German or French accents stored as ISO 8859-x is not the same as one stored as utf8.
by marcov
Jan 28, 2019 13:33
Forum: Community Discussion
Topic: How many people actually use FreeBasic?
Replies: 85
Views: 11153

Re: How many people actually use FreeBasic?

Hmm, didn't know Nim(rod) sources were originally in Free Pascal :-)

Still, I don't like wholly garbage collected languages (though I don't mind a few automated types to keep business code simple)
by marcov
Jan 28, 2019 12:43
Forum: Community Discussion
Topic: How many people actually use FreeBasic?
Replies: 85
Views: 11153

Re: How many people actually use FreeBasic?

for each is mostly just syntactic sugar around iterators (often interfaces, or hard ducktyping), with some exceptions for e.g. plain arrays.
by marcov
Jan 25, 2019 10:53
Forum: Libraries
Topic: No german umlauts with libcurl
Replies: 25
Views: 758

Re: No german umlauts with libcurl

(Note that since this April's Windows 10 update, Windows 10 has an option to set the character set to utf8. I haven't tested yet, but long term this could significantly increase Windows compatibility to *nix) Microsoft finally coming to their senses. IMHO the superiority of UTF8 as an API encoding ...

Go to advanced search