Search found 2709 matches

by marcov
Mar 09, 2019 20:26
Forum: DOS
Topic: Difficulties in DOS on real hardware
Replies: 29
Views: 2780

Re: Difficulties in DOS on real hardware

How are you guys developing the FreeBasic DOS version? Are you using real hardware to develop it, or emulators? I'm mostly developing on Win 7 64-bit. Sometimes I will test some code in DosBox, win98 VM, WinXP VM, but honestly that's rare. I haven't tested fbc-dos on real hardware in more than 10 y...
by marcov
Mar 06, 2019 11:31
Forum: Beginners
Topic: Unicode and files
Replies: 10
Views: 1112

Re: Unicode and files

On Linux this might work, but this might be hard on windows. On Windows, the system is UTF16, the fact that more and more apps support UTF-8 as a document encoding there confuses many people, and most things (including the commandline) work with the default encoding (usually windows-125x). There are...
by marcov
Feb 27, 2019 9:34
Forum: DOS
Topic: FreeDOS and UEFI
Replies: 20
Views: 3090

Re: FreeDOS and UEFI

But secure boot is definitely still pushed by default and on by default on any computer I've ever seen. According to several articles from a year or so ago (and i haven't seen anything contradicting this), if a manufacturer wants to put a windows sticker on their computer (and they all do since the...
by marcov
Feb 26, 2019 20:34
Forum: DOS
Topic: FreeDOS and UEFI
Replies: 20
Views: 3090

Re: FreeDOS and UEFI

We can all wish that EFI's secure boot doesn't matter outside of corporate computers, but we'd be mistaken. If using EFI at all, Windows 10 *requires* secure boot be enabled. (it could be with cdroms. It seems improbable, and most bioses seem to lack the legacy bios option, leading me to believe is...
by marcov
Feb 26, 2019 18:49
Forum: DOS
Topic: FreeDOS and UEFI
Replies: 20
Views: 3090

Re: FreeDOS and UEFI

True. Legacy boot support has to be enabled in the EFI settings screen. My understanding is that enabling Legacy Boot will turn off UEFI completely, and will make any already installed OS unbootable until you return to EFI mode. Legacy boot support will disappear in 2020. Linux installers work fine...
by marcov
Feb 26, 2019 7:48
Forum: DOS
Topic: FreeDOS and UEFI
Replies: 20
Views: 3090

Re: FreeDOS 21st century?

Afaik most PC UEFI's still have a "legacy bios".

That should be easily testable with a freedos live cd, or even an older Linux or windows CD.

Since also these 32-bit OSes had 16-bit first stage loaders.
by marcov
Feb 22, 2019 14:36
Forum: Beginners
Topic: Does FBC compile some small code in command line?
Replies: 8
Views: 717

Re: Does FBC compile some small code in command line?

Yeah, that gets me thinking out of the box.

Or pipes ? Or maybe DBUS. Drag and drop to the compiler binary perhaps? Does DDE still exist ?

Seriously, for quick and dirty stuff a shebang usage of FB sounds best.
by marcov
Feb 20, 2019 10:36
Forum: General
Topic: Checking if a computer is ON on the network
Replies: 11
Views: 573

Re: Checking if a computer is ON on the network

Not sure how to do this in FB, but it works: Print Launch$("cmd.exe /C ping -n 1 MyOtherNotebook") If the "other" notebook is present, it takes milliseconds, otherwise about 3 seconds. There is a thread here , but it doesn't seem to apply to Windows. (if you know that it is loca...
by marcov
Feb 14, 2019 20:36
Forum: General
Topic: recreational function approximations
Replies: 9
Views: 480

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: 17
Views: 2544

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

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

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

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

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

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...

Go to advanced search