Search found 2682 matches

by marcov
Apr 15, 2019 12:22
Forum: General
Topic: Speed issue with string concatenation and a solution
Replies: 14
Views: 418

Re: Speed issue with string concatenation and a solution

Stringbuilders typically do the first default, and the second if you set a capacity. Or they avoid both to simply not wrap a single block allocation, but a linked list of say <n>MB blocks that you can then write to a socket one by one. That is basically what an array does. In fact, there is rarely ...
by marcov
Apr 15, 2019 8:32
Forum: DOS
Topic: FreeDOS flashdrive experiment
Replies: 1
Views: 121

Re: FreeDOS flashdrive experiment

Afaik most UEFI systems come with "secure boot" enabled that doesn't allow them to boot unsigned files. This to kill such external bootdisks as virus source. (Note: I don't say I agree with that, but that is the justification). In most systems you can turn this off in the UEFI firmware, an...
by marcov
Apr 15, 2019 8:27
Forum: General
Topic: Endian
Replies: 14
Views: 488

Re: Endian

From the CPU's point of view either is equally efficient. The only reason I can think of that might favor little endian is that when reading a byte stream you can build a number while reading the bytes, stopping any time you want. It indeed requires very little CPU support, many older RISC types (l...
by marcov
Apr 12, 2019 20:55
Forum: General
Topic: Speed issue with string concatenation and a solution
Replies: 14
Views: 418

Re: Speed issue with string concatenation and a solution

The problem boils down to either - marcov's StringBuilder class (several reallocations, risk to fail a HeapRealloc for large sizes) - or finding a way to know beforehand which size you need, at least approximately (requires coder to think ) Stringbuilders typically do the first default, and the sec...
by marcov
Apr 12, 2019 13:12
Forum: General
Topic: Speed issue with string concatenation and a solution
Replies: 14
Views: 418

Re: Speed issue with string concatenation and a solution

This is very normal and even so common it could be considered a cross language problem. It is simply string being allocated pretty close to its (current) size, which with the next concatenation is already to small, so a reallocation and copy follows. Typical cases is generating webpages where line a...
by marcov
Apr 08, 2019 14:43
Forum: General
Topic: UEFI FreeBasic programming
Replies: 12
Views: 472

Re: UEFI FreeBasic programming

FBC does not generated binary code. AS and LD do. And AS and LD are target (Linux,Windows,OS X etc) specific.

So you need to find (cross) binutils for the "UEFI" target, and adapt the runtime library for it.
by marcov
Apr 08, 2019 7:41
Forum: General
Topic: Endian
Replies: 14
Views: 488

Re: Endian

albert wrote:Since the majority of computers on the planet , use AMD or Intel processors..


The vast majority is using network. So network order should be default :=)
by marcov
Apr 07, 2019 14:42
Forum: General
Topic: Endian
Replies: 14
Views: 488

Re: Endian

dodicat wrote:"Only one endian", reminds me of a song from the sixties, but I cannot place it, I'll be trying to remember what it was all day now.
Thank you!


Maybe also a Swift's Gulliver's Travels reference? The term come from it. (and Red Dwarf did the same later with red and blue hats)
by marcov
Apr 04, 2019 17:35
Forum: DOS
Topic: Why do you still program for DOS?
Replies: 11
Views: 528

Re: Why do you still program for DOS?

vi vi vi ... the number of the ... j/k. IIRC, "Using a free/libre vi clone isn't a sin but rather a penance." Also, "Emacs is hard on the hand, but vi is hard on the brain!" (GNU Emacs used to support vi emulation, too. VILE is actually a heavily-modified MicroEmacs.) Emacs is a...
by marcov
Apr 03, 2019 9:11
Forum: DOS
Topic: Why do you still program for DOS?
Replies: 11
Views: 528

Re: Why do you still program for DOS?

(vi(m)/ctags) I assume you mean that regex isn't as good as a full language parser. You're right, of course, and double-checking shows Pascal support as very weak (funcs/procs only, although support is much much better for some other languages). I also want to popup only relevant identifiers on a . ...
by marcov
Apr 02, 2019 14:57
Forum: DOS
Topic: FreeDOS and UEFI
Replies: 20
Views: 1008

Re: FreeDOS and UEFI

Note that bios INT emulation alone won't cut it. Too many programs use port60-something ($66/$67?) for lowlevel kbd, and many programs do Direct Screen Writes (DSW). And then there is COM and LPT via ports for those who need it. IOW you'd need to get such peripherals (kbd,mouse,com,lpt) in the suita...
by marcov
Apr 02, 2019 11:41
Forum: DOS
Topic: FreeDOS and UEFI
Replies: 20
Views: 1008

Re: FreeDOS and UEFI

DOS is a low level OS I rather say minimalistic than lowlevel. And working through a firmware (BIOS), rather than managing the chips themselves is also not exactly lowlevel. The other OS in the same category (abstraction is done more by firmware than OS) are the older versions of Classic MacOS (say...
by marcov
Apr 02, 2019 8:17
Forum: DOS
Topic: FreeDOS and UEFI
Replies: 20
Views: 1008

Re: FreeDOS and UEFI

I think the core problem is that modern hardware is not that simple anymore.
by marcov
Mar 31, 2019 19:37
Forum: DOS
Topic: Why do you still program for DOS?
Replies: 11
Views: 528

Re: Why do you still program for DOS?

I also worked with the FPC go32v2 textmode IDE for a while (1998-2003/4), which contrary to older stuff was fully lfn aware etc LFNs were never intended for raw MS-DOS 7, only under the GUI (Win9x) itself. MS-Dos7 was only a rescue system for win9x. So for real apps, it was never meant to run witho...

Go to advanced search