Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

I am the wandering glitch -- catch me if you can.


devel / comp.lang.c / Re: how many lines you coded?

SubjectAuthor
* how many lines you coded?fir
+* Re: how many lines you coded?Bart
|`- Re: how many lines you coded?fir
+* Re: how many lines you coded?Bonita Montero
|+* Re: how many lines you coded?fir
||`* Re: how many lines you coded?Bonita Montero
|| `* Re: how many lines you coded?fir
||  `* Re: how many lines you coded?fir
||   `* Re: how many lines you coded?Richard Harnden
||    `* Re: how many lines you coded?fir
||     +* Re: how many lines you coded?fir
||     |`* Re: how many lines you coded?Richard Harnden
||     | `- Re: how many lines you coded?fir
||     `* Re: how many lines you coded?fir
||      +- Re: how many lines you coded?fir
||      `- Re: how many lines you coded?fir
|`* Re: how many lines you coded?Vir Campestris
| +- Re: how many lines you coded?fir
| `* Re: how many lines you coded?David Brown
|  +* Re: how many lines you coded?fir
|  |`* Re: how many lines you coded?fir
|  | `* Re: how many lines you coded?fir
|  |  `* Re: how many lines you coded?fir
|  |   `- Re: how many lines you coded?fir
|  `* Re: how many lines you coded?Bart
|   +* Re: how many lines you coded?David Brown
|   |`* Re: how many lines you coded?Scott Lurndal
|   | `* Re: how many lines you coded?Bart
|   |  `* Re: how many lines you coded?fir
|   |   `- Re: how many lines you coded?fir
|   `* Re: how many lines you coded?fir
|    +- Re: how many lines you coded?fir
|    `* Re: how many lines you coded?Bart
|     `* Re: how many lines you coded?fir
|      +* Re: how many lines you coded?fir
|      |`* Re: how many lines you coded?fir
|      | `* Re: how many lines you coded?fir
|      |  `- Re: how many lines you coded?fir
|      `* Re: how many lines you coded?Bart
|       `* Re: how many lines you coded?fir
|        `- Re: how many lines you coded?fir
+* Re: how many lines you coded?Chris M. Thomasson
|`* Re: how many lines you coded?Chris M. Thomasson
| `- Re: how many lines you coded?fir
+* Re: how many lines you coded?John McCue
|`- Re: how many lines you coded?fir
+* Re: how many lines you coded?Ed Prochak
|`* Re: how many lines you coded?fir
| `- Re: how many lines you coded?Ed Prochak
+* Re: how many lines you coded?Lynn McGuire
|`* Re: how many lines you coded?Ed Prochak
| `* Re: how many lines you coded?Scott Lurndal
|  `- Re: how many lines you coded?Lynn McGuire
+* Re: how many lines you coded?aph
|`* Re: how many lines you coded?fir
| +* Re: how many lines you coded?fir
| |`* Re: how many lines you coded?fir
| | `- Re: how many lines you coded?fir
| `* Re: how many lines you coded?Malcolm McLean
|  +* Re: how many lines you coded?fir
|  |`* Re: how many lines you coded?fir
|  | `- Re: how many lines you coded?fir
|  `* Re: how many lines you coded?aph
|   +* Re: how many lines you coded?Malcolm McLean
|   |+* Re: how many lines you coded?Scott Lurndal
|   ||+* Re: how many lines you coded?Keith Thompson
|   |||`- Re: how many lines you coded?Kenny McCormack
|   ||+* Was Dijkstra a "lefty" ? (Was: how many lines you coded?)Kenny McCormack
|   |||`- Re: Was Dijkstra a "lefty" ? (Was: how many lines you coded?)Malcolm McLean
|   ||`* Re: how many lines you coded?Tim Rentsch
|   || +- Again, OT is OT! (Was: how many lines you coded?)Kenny McCormack
|   || `- Re: how many lines you coded?fir
|   |`- [OT, Sorry] Re: how many lines you coded?aph
|   `- Re: how many lines you coded?Kaz Kylheku
`* Re: how many lines you coded?jak
 `- Re: how many lines you coded?fir

Pages:1234
Re: how many lines you coded?

<u9me8v$ogk3$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=26621&group=comp.lang.c#26621

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: how many lines you coded?
Date: Mon, 24 Jul 2023 20:01:02 +0200
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <u9me8v$ogk3$1@dont-email.me>
References: <dbb29689-380e-4d7c-8088-91d68e418033n@googlegroups.com>
<u9jro5$an58$1@dont-email.me> <u9k061$b57v$1@dont-email.me>
<u9l7m1$it9v$1@dont-email.me> <u9ljbb$kdi4$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 24 Jul 2023 18:01:03 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="7541a2a73a982b27c88363d8ee9774b0";
logging-data="803459"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19phxlX6+/T3/sHpWxZrovBqWPRjb5SURU="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:Q2THY5AUijmAZ/UOFecvYsHD8bM=
Content-Language: en-GB
In-Reply-To: <u9ljbb$kdi4$1@dont-email.me>
 by: David Brown - Mon, 24 Jul 2023 18:01 UTC

On 24/07/2023 12:21, Bart wrote:
> On 24/07/2023 08:02, David Brown wrote:
> > On 23/07/2023 21:48, Vir Campestris wrote:
> >> On 23/07/2023 19:32, Bonita Montero wrote:
> >>> For sure in assembly, because that's easier to learn than C. 😉
> >>
> >> Yes, but which assembler?
> >>
> >> I've used perhaps a dozen. Perhaps because it depends on things like
> >> whether a '286 counts as different to an 8086.
> >>
> >
> > I have also used at least a dozen assembly languages - and that is /not/
> > counting variations such as 8086/80286.  (I haven't actually written any
> > x86 assembly.)
>
> If you haven't used x86, then the variations don't matter?
>

I meant not counting similar assemblies in the devices I /have/ used.
For example, the PowerPC assembly on the devices I have used is not
identical, the two m68k devices I have used had a fair number of
differences, and so on.

> I can list not quite a dozen varieties, if I include ones where I've
> only written a few lines, but I count the x86 versions separately:
>
>  +  pdp10
>     digico m16v
>     pdp11       (used once to get some driver working)
>     6800        (the only big-endian machine I've used!)
>  *+ z80
>  *+ 8088/6
>  *  80188/6
>  *  8035 or 8051
>  *+ 80386
>  *+ x64
>     arm32

A fine selection.

Re: how many lines you coded?

<QhzvM.22509$ftCb.15241@fx34.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=26623&group=comp.lang.c#26623

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!newsfeed.endofthelinebbs.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx34.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: how many lines you coded?
Newsgroups: comp.lang.c
References: <dbb29689-380e-4d7c-8088-91d68e418033n@googlegroups.com> <u9jro5$an58$1@dont-email.me> <u9k061$b57v$1@dont-email.me> <u9l7m1$it9v$1@dont-email.me> <u9ljbb$kdi4$1@dont-email.me> <u9me8v$ogk3$1@dont-email.me>
Lines: 51
Message-ID: <QhzvM.22509$ftCb.15241@fx34.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Mon, 24 Jul 2023 18:20:32 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Mon, 24 Jul 2023 18:20:32 GMT
X-Received-Bytes: 2629
 by: Scott Lurndal - Mon, 24 Jul 2023 18:20 UTC

David Brown <david.brown@hesbynett.no> writes:
>On 24/07/2023 12:21, Bart wrote:
>> On 24/07/2023 08:02, David Brown wrote:
>> > On 23/07/2023 21:48, Vir Campestris wrote:
>> >> On 23/07/2023 19:32, Bonita Montero wrote:
>> >>> For sure in assembly, because that's easier to learn than C. 😉
>> >>
>> >> Yes, but which assembler?
>> >>
>> >> I've used perhaps a dozen. Perhaps because it depends on things like
>> >> whether a '286 counts as different to an 8086.
>> >>
>> >
>> > I have also used at least a dozen assembly languages - and that is /not/
>> > counting variations such as 8086/80286.  (I haven't actually written any
>> > x86 assembly.)
>>
>> If you haven't used x86, then the variations don't matter?
>>
>
>I meant not counting similar assemblies in the devices I /have/ used.
>For example, the PowerPC assembly on the devices I have used is not
>identical, the two m68k devices I have used had a fair number of
>differences, and so on.
>
>> I can list not quite a dozen varieties, if I include ones where I've
>> only written a few lines, but I count the x86 versions separately:
>>
>>  +  pdp10
>>     digico m16v
>>     pdp11       (used once to get some driver working)
>>     6800        (the only big-endian machine I've used!)
>>  *+ z80
>>  *+ 8088/6
>>  *  80188/6
>>  *  8035 or 8051
>>  *+ 80386
>>  *+ x64
>>     arm32
>
>A fine selection.
>

Although I would qualify the "number of lines of code written" with
the condition that it be code that ran in production, rather than
hobby projects. I've played with a number of assemblers over time,
but as for code in production only the VAX (Macro32), Burroughs
(SPRASM), x86, x86-64, M88100 and ARM64 would count as production
code.

I get the impression that much of Barts code is personal projects.

Re: how many lines you coded?

<u9mkjl$p8ra$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=26628&group=comp.lang.c#26628

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (Bart)
Newsgroups: comp.lang.c
Subject: Re: how many lines you coded?
Date: Mon, 24 Jul 2023 20:49:11 +0100
Organization: A noiseless patient Spider
Lines: 71
Message-ID: <u9mkjl$p8ra$1@dont-email.me>
References: <dbb29689-380e-4d7c-8088-91d68e418033n@googlegroups.com>
<u9jro5$an58$1@dont-email.me> <u9k061$b57v$1@dont-email.me>
<u9l7m1$it9v$1@dont-email.me> <u9ljbb$kdi4$1@dont-email.me>
<u9me8v$ogk3$1@dont-email.me> <QhzvM.22509$ftCb.15241@fx34.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 24 Jul 2023 19:49:10 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="bc713edb1ff551516d7c9b4e592eb73a";
logging-data="828266"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18m+b9futo5RL9HSHrAQkYzv+tcZQIxnag="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:fYVq0QHU0DVPhzxs7f5cIG9Vn1A=
In-Reply-To: <QhzvM.22509$ftCb.15241@fx34.iad>
 by: Bart - Mon, 24 Jul 2023 19:49 UTC

On 24/07/2023 19:20, Scott Lurndal wrote:
> David Brown <david.brown@hesbynett.no> writes:
>> On 24/07/2023 12:21, Bart wrote:
>>> On 24/07/2023 08:02, David Brown wrote:
>>> > On 23/07/2023 21:48, Vir Campestris wrote:
>>> >> On 23/07/2023 19:32, Bonita Montero wrote:
>>> >>> For sure in assembly, because that's easier to learn than C. 😉
>>> >>
>>> >> Yes, but which assembler?
>>> >>
>>> >> I've used perhaps a dozen. Perhaps because it depends on
things like
>>> >> whether a '286 counts as different to an 8086.
>>> >>
>>> >
>>> > I have also used at least a dozen assembly languages - and that
is /not/
>>> > counting variations such as 8086/80286. (I haven't actually
written any
>>> > x86 assembly.)
>>>
>>> If you haven't used x86, then the variations don't matter?
>>>
>>
>> I meant not counting similar assemblies in the devices I /have/ used.
>> For example, the PowerPC assembly on the devices I have used is not
>> identical, the two m68k devices I have used had a fair number of
>> differences, and so on.
>>
>>> I can list not quite a dozen varieties, if I include ones where I've
>>> only written a few lines, but I count the x86 versions separately:
>>>
>>> + pdp10
>>> digico m16v
>>> pdp11 (used once to get some driver working)
>>> 6800 (the only big-endian machine I've used!)
>>> *+ z80
>>> *+ 8088/6
>>> * 80188/6
>>> * 8035 or 8051
>>> *+ 80386
>>> *+ x64
>>> arm32
>>
>> A fine selection.
>>
>
> Although I would qualify the "number of lines of code written" with
> the condition that it be code that ran in production, rather than
> hobby projects. I've played with a number of assemblers over time,
> but as for code in production only the VAX (Macro32), Burroughs
> (SPRASM), x86, x86-64, M88100 and ARM64 would count as production
> code.
>
> I get the impression that much of Barts code is personal projects.

The first software I did for the IBM PC was either written in assembly
(it would have used my assembler), or was written in my HLL implemented
with that assembler, which would still have used considerable amounts of
inline assembly.

I can't remember exactly nearly 4 decades on (it was also during a
process of moving development over from Z80 systems).

I do remember we sold around $1m of that product, in mid-1980s terms,
for an app that took me 2 months to write.

Overall, we probably sold $10m of software written entirely using my
'hobby' languages, over a period of around 15 years, much to OEMs who
provided their own added-value additions.

Re: how many lines you coded?

<29a3c9a4-e691-48ab-899a-ed1f1cf4e82en@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=26629&group=comp.lang.c#26629

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a37:b604:0:b0:767:40cc:944d with SMTP id g4-20020a37b604000000b0076740cc944dmr1490qkf.9.1690229624581;
Mon, 24 Jul 2023 13:13:44 -0700 (PDT)
X-Received: by 2002:a05:6808:16a7:b0:3a1:a15b:ef9f with SMTP id
bb39-20020a05680816a700b003a1a15bef9fmr473744oib.0.1690229624375; Mon, 24 Jul
2023 13:13:44 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Mon, 24 Jul 2023 13:13:43 -0700 (PDT)
In-Reply-To: <u9mkjl$p8ra$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.182; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.182
References: <dbb29689-380e-4d7c-8088-91d68e418033n@googlegroups.com>
<u9jro5$an58$1@dont-email.me> <u9k061$b57v$1@dont-email.me>
<u9l7m1$it9v$1@dont-email.me> <u9ljbb$kdi4$1@dont-email.me>
<u9me8v$ogk3$1@dont-email.me> <QhzvM.22509$ftCb.15241@fx34.iad> <u9mkjl$p8ra$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <29a3c9a4-e691-48ab-899a-ed1f1cf4e82en@googlegroups.com>
Subject: Re: how many lines you coded?
From: profesor...@gmail.com (fir)
Injection-Date: Mon, 24 Jul 2023 20:13:44 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 4732
 by: fir - Mon, 24 Jul 2023 20:13 UTC

poniedziałek, 24 lipca 2023 o 21:49:24 UTC+2 Bart napisał(a):
> On 24/07/2023 19:20, Scott Lurndal wrote:
> > David Brown <david...@hesbynett.no> writes:
> >> On 24/07/2023 12:21, Bart wrote:
> >>> On 24/07/2023 08:02, David Brown wrote:
> >>> > On 23/07/2023 21:48, Vir Campestris wrote:
> >>> >> On 23/07/2023 19:32, Bonita Montero wrote:
> >>> >>> For sure in assembly, because that's easier to learn than C. 😉
> >>> >>
> >>> >> Yes, but which assembler?
> >>> >>
> >>> >> I've used perhaps a dozen. Perhaps because it depends on
> things like
> >>> >> whether a '286 counts as different to an 8086.
> >>> >>
> >>> >
> >>> > I have also used at least a dozen assembly languages - and that
> is /not/
> >>> > counting variations such as 8086/80286. (I haven't actually
> written any
> >>> > x86 assembly.)
> >>>
> >>> If you haven't used x86, then the variations don't matter?
> >>>
> >>
> >> I meant not counting similar assemblies in the devices I /have/ used.
> >> For example, the PowerPC assembly on the devices I have used is not
> >> identical, the two m68k devices I have used had a fair number of
> >> differences, and so on.
> >>
> >>> I can list not quite a dozen varieties, if I include ones where I've
> >>> only written a few lines, but I count the x86 versions separately:
> >>>
> >>> + pdp10
> >>> digico m16v
> >>> pdp11 (used once to get some driver working)
> >>> 6800 (the only big-endian machine I've used!)
> >>> *+ z80
> >>> *+ 8088/6
> >>> * 80188/6
> >>> * 8035 or 8051
> >>> *+ 80386
> >>> *+ x64
> >>> arm32
> >>
> >> A fine selection.
> >>
> >
> > Although I would qualify the "number of lines of code written" with
> > the condition that it be code that ran in production, rather than
> > hobby projects. I've played with a number of assemblers over time,
> > but as for code in production only the VAX (Macro32), Burroughs
> > (SPRASM), x86, x86-64, M88100 and ARM64 would count as production
> > code.
> >
> > I get the impression that much of Barts code is personal projects.
> The first software I did for the IBM PC was either written in assembly
> (it would have used my assembler), or was written in my HLL implemented
> with that assembler, which would still have used considerable amounts of
> inline assembly.
>
> I can't remember exactly nearly 4 decades on (it was also during a
> process of moving development over from Z80 systems).
>
> I do remember we sold around $1m of that product, in mid-1980s terms,
> for an app that took me 2 months to write.
>
> Overall, we probably sold $10m of software written entirely using my
> 'hobby' languages, over a period of around 15 years, much to OEMs who
> provided their own added-value additions.

back then i think it was easier to be a programmer aspaclelly asm/c type of programmer like i am too.. from that respect i would like to have 25 years in 1980s and write code ...now the world is totally diferent the thing i mentioned to bonita plays the role - populity/ market populism, the lot of so called peasants come into domain and flod the world with peasant shit

Re: how many lines you coded?

<f1c988d7-2af3-42e8-a295-bff226e37230n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=26630&group=comp.lang.c#26630

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:ad4:5a44:0:b0:63d:f3:a7f0 with SMTP id ej4-20020ad45a44000000b0063d00f3a7f0mr1860qvb.9.1690230164516;
Mon, 24 Jul 2023 13:22:44 -0700 (PDT)
X-Received: by 2002:a05:6808:191a:b0:3a3:a704:6e40 with SMTP id
bf26-20020a056808191a00b003a3a7046e40mr21245821oib.3.1690230164238; Mon, 24
Jul 2023 13:22:44 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Mon, 24 Jul 2023 13:22:43 -0700 (PDT)
In-Reply-To: <29a3c9a4-e691-48ab-899a-ed1f1cf4e82en@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.182; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.182
References: <dbb29689-380e-4d7c-8088-91d68e418033n@googlegroups.com>
<u9jro5$an58$1@dont-email.me> <u9k061$b57v$1@dont-email.me>
<u9l7m1$it9v$1@dont-email.me> <u9ljbb$kdi4$1@dont-email.me>
<u9me8v$ogk3$1@dont-email.me> <QhzvM.22509$ftCb.15241@fx34.iad>
<u9mkjl$p8ra$1@dont-email.me> <29a3c9a4-e691-48ab-899a-ed1f1cf4e82en@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f1c988d7-2af3-42e8-a295-bff226e37230n@googlegroups.com>
Subject: Re: how many lines you coded?
From: profesor...@gmail.com (fir)
Injection-Date: Mon, 24 Jul 2023 20:22:44 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 5846
 by: fir - Mon, 24 Jul 2023 20:22 UTC

poniedziałek, 24 lipca 2023 o 22:13:52 UTC+2 fir napisał(a):
> poniedziałek, 24 lipca 2023 o 21:49:24 UTC+2 Bart napisał(a):
> > On 24/07/2023 19:20, Scott Lurndal wrote:
> > > David Brown <david...@hesbynett.no> writes:
> > >> On 24/07/2023 12:21, Bart wrote:
> > >>> On 24/07/2023 08:02, David Brown wrote:
> > >>> > On 23/07/2023 21:48, Vir Campestris wrote:
> > >>> >> On 23/07/2023 19:32, Bonita Montero wrote:
> > >>> >>> For sure in assembly, because that's easier to learn than C. 😉
> > >>> >>
> > >>> >> Yes, but which assembler?
> > >>> >>
> > >>> >> I've used perhaps a dozen. Perhaps because it depends on
> > things like
> > >>> >> whether a '286 counts as different to an 8086.
> > >>> >>
> > >>> >
> > >>> > I have also used at least a dozen assembly languages - and that
> > is /not/
> > >>> > counting variations such as 8086/80286. (I haven't actually
> > written any
> > >>> > x86 assembly.)
> > >>>
> > >>> If you haven't used x86, then the variations don't matter?
> > >>>
> > >>
> > >> I meant not counting similar assemblies in the devices I /have/ used..
> > >> For example, the PowerPC assembly on the devices I have used is not
> > >> identical, the two m68k devices I have used had a fair number of
> > >> differences, and so on.
> > >>
> > >>> I can list not quite a dozen varieties, if I include ones where I've
> > >>> only written a few lines, but I count the x86 versions separately:
> > >>>
> > >>> + pdp10
> > >>> digico m16v
> > >>> pdp11 (used once to get some driver working)
> > >>> 6800 (the only big-endian machine I've used!)
> > >>> *+ z80
> > >>> *+ 8088/6
> > >>> * 80188/6
> > >>> * 8035 or 8051
> > >>> *+ 80386
> > >>> *+ x64
> > >>> arm32
> > >>
> > >> A fine selection.
> > >>
> > >
> > > Although I would qualify the "number of lines of code written" with
> > > the condition that it be code that ran in production, rather than
> > > hobby projects. I've played with a number of assemblers over time,
> > > but as for code in production only the VAX (Macro32), Burroughs
> > > (SPRASM), x86, x86-64, M88100 and ARM64 would count as production
> > > code.
> > >
> > > I get the impression that much of Barts code is personal projects.
> > The first software I did for the IBM PC was either written in assembly
> > (it would have used my assembler), or was written in my HLL implemented
> > with that assembler, which would still have used considerable amounts of
> > inline assembly.
> >
> > I can't remember exactly nearly 4 decades on (it was also during a
> > process of moving development over from Z80 systems).
> >
> > I do remember we sold around $1m of that product, in mid-1980s terms,
> > for an app that took me 2 months to write.
> >
> > Overall, we probably sold $10m of software written entirely using my
> > 'hobby' languages, over a period of around 15 years, much to OEMs who
> > provided their own added-value additions.
> back then i think it was easier to be a programmer aspaclelly asm/c type of programmer like i am too.. from that respect i would like to have 25 years in 1980s and write code ...now the world is totally diferent the thing i mentioned to bonita plays the role - populity/ market populism, the lot of so called peasants come into domain and flod the world with peasant shit

i myself write 'hobbustically' (i also hobbystically do 'science' (of c language and programming theory, and i find myslelf better scientist then programmer) but this hobbystically is not necessary bad unlike what peasants/ponys (commoners or commonists) think

work in company has terrible and obvious disadvantages.. sometimes you cooperate with terrible stupid people (sometimes not but its random)..the companies dont understand that to work good you need fully manage you resting becouse you know the best..overally also ideas what to code and how may be mighty stupid ...so terrible amount of energy is wasted on side things not core coding

thets sad reality probably many are more or less aware ;c
(generally this world is in terrible state anyway)

Re: how many lines you coded?

<1b620d34-c717-40b2-a9bb-e6b1693592f8n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=26637&group=comp.lang.c#26637

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:ad4:4ba3:0:b0:63c:fa98:69e8 with SMTP id i3-20020ad44ba3000000b0063cfa9869e8mr5764qvw.8.1690277673904;
Tue, 25 Jul 2023 02:34:33 -0700 (PDT)
X-Received: by 2002:a05:6808:1818:b0:3a1:f2a4:3d7 with SMTP id
bh24-20020a056808181800b003a1f2a403d7mr22858409oib.1.1690277673492; Tue, 25
Jul 2023 02:34:33 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 25 Jul 2023 02:34:33 -0700 (PDT)
In-Reply-To: <9da72e18-db26-4d6e-9059-1d9424b2d8aan@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.114; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.114
References: <dbb29689-380e-4d7c-8088-91d68e418033n@googlegroups.com>
<u9jro5$an58$1@dont-email.me> <defddd75-8dae-4ec6-b5fe-0e81a9c8f3fdn@googlegroups.com>
<u9jues$avqo$1@dont-email.me> <42232ebf-a9bb-4921-8903-04dd327a7613n@googlegroups.com>
<0cd3648c-3119-4db6-abab-ae381fa18babn@googlegroups.com> <u9lrpj$line$1@dont-email.me>
<1473a1e7-0751-408f-b920-eec9178f9271n@googlegroups.com> <9da72e18-db26-4d6e-9059-1d9424b2d8aan@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1b620d34-c717-40b2-a9bb-e6b1693592f8n@googlegroups.com>
Subject: Re: how many lines you coded?
From: profesor...@gmail.com (fir)
Injection-Date: Tue, 25 Jul 2023 09:34:33 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 4656
 by: fir - Tue, 25 Jul 2023 09:34 UTC

poniedziałek, 24 lipca 2023 o 16:29:21 UTC+2 fir napisał(a):
> poniedziałek, 24 lipca 2023 o 14:51:34 UTC+2 fir napisał(a):
> > poniedziałek, 24 lipca 2023 o 14:45:54 UTC+2 Richard Harnden napisał(a):
> > > On 24/07/2023 13:19, fir wrote:
> > > > poniedziałek, 24 lipca 2023 o 14:10:54 UTC+2 fir napisał(a):
> > > >> i wrote my own assembler (org-asm) you my check it
> > > >>
> > > >> https://fastupload.io/CYnB7m6CLilssjs/file
> > > >>
> > > >> it compiles 3 examples...the attached dll is to run second example and thsi ddl is for opening window which my exampel ina ssembly calls to draw mandelbrot set
> > > >>
> > > >> hovever the resulted exe is simple and has no exception section which may be reason windows defender or other programs can false identify it as malvare it is strictly what you code in asm only
> > > >
> > > > you may se the nice output log from it
> > > >
> > > >
> > > > +----------------------------------------------------------------------------+
> > > > | |
> > > > | Organic Assembler (org-asm) by fir, december of 2020 (;ast update V.22) |
> > > ^
> > > |
> > > You can't even avoid typos in your own readmes --------------+
> > >
> > > Jeez.
> > i dont care that much - note thet logic structure of this log is high,
> > and that cominicates what is not done i will delete if i do what is not done (hovever presently i not work on this assembler hovever i like it,
> > it went well)
> > > > | |
> > > > | note: this is early version with far from elaborate |
> > > > | error messages and not strictly all of the mnemonics implemented, |
> > > > | hovever it does the work and i find it nice and usefull |
> > > > | |
> > > > | right now it is able to assemble win32/x86 exe files (no output as dll |
> > > > | yet) with any possible dll imports, so youre basicaly able to assemble |
> > > > | any win32 app with it |
> > > Also, the shift key is only an inch away. Please learn to spend that
> > > extra fraction of a second.
> i could rather improve the log for example denote the adresses
>
> if end of this code is
> 203 (l. 353) push 20
> 204 (l. 353) push 20
> 205 (l. 354) push title
> 206 (l. 354) call (green.fire.dll->SetupWindow3)
> 207 (l. 355) add esp 20
> 208 (l. 357) mov eax 0
> 209 (l. 358) ret
> and end of binary is
> 401350 00 00 68 80 02 00 00 68 14 00 00 00 68 14 00 00
> 401360 00 68 55 30 40 00 ff 15 80 23 40 00 83 c4 14 b8
> 401370 00 00 00 00 c3
> should mark it some way
> 401350 00 00/68\80 02 00 00/68\14 00 00 00/68\14 00 00
> 401360 00/68\55 30 40 00/ff 15\80 23 40 00/83 c4\14/b8\
> 401370 00 00 00 00/c3
>
> or maybe something more readable...im not sure if the code is compatible to flush this without bigger changes

this log is important coz imo assembly is not just writting in assembly but "totall transparency" clearly seen what is goin on to the bone

Re: how many lines you coded?

<c91a4bb3-0610-410e-884d-0288440aab49n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=26639&group=comp.lang.c#26639

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a37:2c07:0:b0:762:19b6:2900 with SMTP id s7-20020a372c07000000b0076219b62900mr12453qkh.5.1690300261276; Tue, 25 Jul 2023 08:51:01 -0700 (PDT)
X-Received: by 2002:a9d:7488:0:b0:6b9:f343:acfd with SMTP id t8-20020a9d7488000000b006b9f343acfdmr12875130otk.5.1690300261051; Tue, 25 Jul 2023 08:51:01 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!69.80.99.18.MISMATCH!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 25 Jul 2023 08:51:00 -0700 (PDT)
In-Reply-To: <u9ljbb$kdi4$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.84; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.84
References: <dbb29689-380e-4d7c-8088-91d68e418033n@googlegroups.com> <u9jro5$an58$1@dont-email.me> <u9k061$b57v$1@dont-email.me> <u9l7m1$it9v$1@dont-email.me> <u9ljbb$kdi4$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c91a4bb3-0610-410e-884d-0288440aab49n@googlegroups.com>
Subject: Re: how many lines you coded?
From: profesor...@gmail.com (fir)
Injection-Date: Tue, 25 Jul 2023 15:51:01 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 59
 by: fir - Tue, 25 Jul 2023 15:51 UTC

poniedziałek, 24 lipca 2023 o 12:21:45 UTC+2 Bart napisał(a):
> On 24/07/2023 08:02, David Brown wrote:
> > On 23/07/2023 21:48, Vir Campestris wrote:
> >> On 23/07/2023 19:32, Bonita Montero wrote:
> >>> For sure in assembly, because that's easier to learn than C. 😉
> >>
> >> Yes, but which assembler?
> >>
> >> I've used perhaps a dozen. Perhaps because it depends on things like
> >> whether a '286 counts as different to an 8086.
> >>
> >
> > I have also used at least a dozen assembly languages - and that is /not/
> > counting variations such as 8086/80286. (I haven't actually written any
> > x86 assembly.)
> If you haven't used x86, then the variations don't matter?
>
> I can list not quite a dozen varieties, if I include ones where I've
> only written a few lines, but I count the x86 versions separately:
>
> + pdp10
> digico m16v
> pdp11 (used once to get some driver working)
> 6800 (the only big-endian machine I've used!)
> *+ z80
> *+ 8088/6
> * 80188/6
> * 8035 or 8051
> *+ 80386
> *+ x64
> arm32
>
> * means I either wrote a standalone assembler, or an inline one for a
> HLL, or both. That doesn't rule out using someone else's assembler at
> some point.
>
> + means I've used it as a compiler target
>
> (80188/6 is an enhanced version of 8088/6 with integrated peripherals
> that have dedicated instructions.)
>
> 80386 has a different set of address modes from 8086, and non-segmented
> memory in non-real mode.
>
> x64 has extra GP registers, SIMD etc. My syntax for it differs from
> standard.
>
> (I don't include the ones I've coded only on paper, to see how they
> might work as compiler targets.)

btw you once talked about compilations speed..could you give that numbers? as i dont remember which one thread it was..

i can do basic measuring of assembly speed

Re: how many lines you coded?

<d44149cf-2ee4-4a5c-9899-74258177e28en@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=26640&group=comp.lang.c#26640

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:620a:4727:b0:767:fe53:3691 with SMTP id bs39-20020a05620a472700b00767fe533691mr12847qkb.3.1690301804205;
Tue, 25 Jul 2023 09:16:44 -0700 (PDT)
X-Received: by 2002:a05:6808:188e:b0:3a3:f0a5:847b with SMTP id
bi14-20020a056808188e00b003a3f0a5847bmr26405096oib.9.1690301803798; Tue, 25
Jul 2023 09:16:43 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.mixmin.net!newsreader4.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 25 Jul 2023 09:16:43 -0700 (PDT)
In-Reply-To: <c91a4bb3-0610-410e-884d-0288440aab49n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.219; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.219
References: <dbb29689-380e-4d7c-8088-91d68e418033n@googlegroups.com>
<u9jro5$an58$1@dont-email.me> <u9k061$b57v$1@dont-email.me>
<u9l7m1$it9v$1@dont-email.me> <u9ljbb$kdi4$1@dont-email.me> <c91a4bb3-0610-410e-884d-0288440aab49n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d44149cf-2ee4-4a5c-9899-74258177e28en@googlegroups.com>
Subject: Re: how many lines you coded?
From: profesor...@gmail.com (fir)
Injection-Date: Tue, 25 Jul 2023 16:16:44 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 4593
 by: fir - Tue, 25 Jul 2023 16:16 UTC

wtorek, 25 lipca 2023 o 17:51:10 UTC+2 fir napisał(a):
> poniedziałek, 24 lipca 2023 o 12:21:45 UTC+2 Bart napisał(a):
> > On 24/07/2023 08:02, David Brown wrote:
> > > On 23/07/2023 21:48, Vir Campestris wrote:
> > >> On 23/07/2023 19:32, Bonita Montero wrote:
> > >>> For sure in assembly, because that's easier to learn than C. 😉
> > >>
> > >> Yes, but which assembler?
> > >>
> > >> I've used perhaps a dozen. Perhaps because it depends on things like
> > >> whether a '286 counts as different to an 8086.
> > >>
> > >
> > > I have also used at least a dozen assembly languages - and that is /not/
> > > counting variations such as 8086/80286. (I haven't actually written any
> > > x86 assembly.)
> > If you haven't used x86, then the variations don't matter?
> >
> > I can list not quite a dozen varieties, if I include ones where I've
> > only written a few lines, but I count the x86 versions separately:
> >
> > + pdp10
> > digico m16v
> > pdp11 (used once to get some driver working)
> > 6800 (the only big-endian machine I've used!)
> > *+ z80
> > *+ 8088/6
> > * 80188/6
> > * 8035 or 8051
> > *+ 80386
> > *+ x64
> > arm32
> >
> > * means I either wrote a standalone assembler, or an inline one for a
> > HLL, or both. That doesn't rule out using someone else's assembler at
> > some point.
> >
> > + means I've used it as a compiler target
> >
> > (80188/6 is an enhanced version of 8088/6 with integrated peripherals
> > that have dedicated instructions.)
> >
> > 80386 has a different set of address modes from 8086, and non-segmented
> > memory in non-real mode.
> >
> > x64 has extra GP registers, SIMD etc. My syntax for it differs from
> > standard.
> >
> > (I don't include the ones I've coded only on paper, to see how they
> > might work as compiler targets.)
> btw you once talked about compilations speed..could you give that numbers? as i dont remember which one thread it was..
>
> i can do basic measuring of assembly speed

i tested for some simple piece of 1.2 MB source and het a result of 166 ms this is 7MB/s (the output exe is 283KB).. this would need
hovver more tests as i dont remember is some parts of thsi assembly (lieke adding new jumps of labels not take more time, here i put mostly raw block) this gives 138 ns per byte so its slow but i thinked it could be like that...buts titally unoptimised and imo can be speeded probably few times - imo something in ranges between 90-200 ns per byte is slow but standable something in a range of 20-25 ns per cycle (or less) is fast and in between is probably average

i gues i probably could speed up this 2-3 times maybe but im not sure how of this time is going to tiem of saving output file.. coz i dont exactly understand this..input file is cached in ram so reading this probably dont add too much ..if this 138 ns per byte is speed of the code not IO then it can be improved

Re: how many lines you coded?

<u9p1td$163qt$2@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=26647&group=comp.lang.c#26647

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (Bart)
Newsgroups: comp.lang.c
Subject: Re: how many lines you coded?
Date: Tue, 25 Jul 2023 18:48:30 +0100
Organization: A noiseless patient Spider
Lines: 71
Message-ID: <u9p1td$163qt$2@dont-email.me>
References: <dbb29689-380e-4d7c-8088-91d68e418033n@googlegroups.com>
<u9jro5$an58$1@dont-email.me> <u9k061$b57v$1@dont-email.me>
<u9l7m1$it9v$1@dont-email.me> <u9ljbb$kdi4$1@dont-email.me>
<c91a4bb3-0610-410e-884d-0288440aab49n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 25 Jul 2023 17:48:29 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="3a380b0f6585ada763ab7669f489b7a2";
logging-data="1249117"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18N++gILmaMc7/AJrwvLhoGpanDrW6FsD0="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:16Bz8Daa8s15ZuUnvyRlQaJGthA=
In-Reply-To: <c91a4bb3-0610-410e-884d-0288440aab49n@googlegroups.com>
 by: Bart - Tue, 25 Jul 2023 17:48 UTC

On 25/07/2023 16:51, fir wrote:
> poniedziałek, 24 lipca 2023 o 12:21:45 UTC+2 Bart napisał(a):
>> On 24/07/2023 08:02, David Brown wrote:
>>> On 23/07/2023 21:48, Vir Campestris wrote:
>>>> On 23/07/2023 19:32, Bonita Montero wrote:
>>>>> For sure in assembly, because that's easier to learn than C. 😉
>>>>
>>>> Yes, but which assembler?
>>>>
>>>> I've used perhaps a dozen. Perhaps because it depends on things like
>>>> whether a '286 counts as different to an 8086.
>>>>
>>>
>>> I have also used at least a dozen assembly languages - and that is /not/
>>> counting variations such as 8086/80286. (I haven't actually written any
>>> x86 assembly.)
>> If you haven't used x86, then the variations don't matter?
>>
>> I can list not quite a dozen varieties, if I include ones where I've
>> only written a few lines, but I count the x86 versions separately:
>>
>> + pdp10
>> digico m16v
>> pdp11 (used once to get some driver working)
>> 6800 (the only big-endian machine I've used!)
>> *+ z80
>> *+ 8088/6
>> * 80188/6
>> * 8035 or 8051
>> *+ 80386
>> *+ x64
>> arm32
>>
>> * means I either wrote a standalone assembler, or an inline one for a
>> HLL, or both. That doesn't rule out using someone else's assembler at
>> some point.
>>
>> + means I've used it as a compiler target
>>
>> (80188/6 is an enhanced version of 8088/6 with integrated peripherals
>> that have dedicated instructions.)
>>
>> 80386 has a different set of address modes from 8086, and non-segmented
>> memory in non-real mode.
>>
>> x64 has extra GP registers, SIMD etc. My syntax for it differs from
>> standard.
>>
>> (I don't include the ones I've coded only on paper, to see how they
>> might work as compiler targets.)
>
> btw you once talked about compilations speed..could you give that numbers? as i dont remember which one thread it was..
>
> i can do basic measuring of assembly speed

My current static compiler on AMD Ryzen 3, can compile code at 0.5 to
0.7Mlps (or up to 1Mlps if optimised via C and gcc-O3, but I'd prefer
not to do that).

Another measure is being able to generate 5 to 10MB of executable code
per second.

My bytecode compiler for dynamic code can work at up to double those
speeds (near 2Mlps max).

My x64 assembler I think works at 2 to 3Mlps.

On the same machine, Tiny C can compile C code at up to 1Mlps. (That is
Tiny C compiled, probably, with gcc-O3; Tiny C compiled with itself
would be half that speed.)

Re: how many lines you coded?

<f13e5bcb-d63a-4551-ab26-8e17da19d944n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=26648&group=comp.lang.c#26648

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:6214:7ee:b0:63c:fcbe:b114 with SMTP id bp14-20020a05621407ee00b0063cfcbeb114mr10106qvb.0.1690308824495;
Tue, 25 Jul 2023 11:13:44 -0700 (PDT)
X-Received: by 2002:a05:6830:e19:b0:6b9:9f42:e143 with SMTP id
do25-20020a0568300e1900b006b99f42e143mr174108otb.4.1690308824069; Tue, 25 Jul
2023 11:13:44 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 25 Jul 2023 11:13:43 -0700 (PDT)
In-Reply-To: <u9p1td$163qt$2@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.245; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.245
References: <dbb29689-380e-4d7c-8088-91d68e418033n@googlegroups.com>
<u9jro5$an58$1@dont-email.me> <u9k061$b57v$1@dont-email.me>
<u9l7m1$it9v$1@dont-email.me> <u9ljbb$kdi4$1@dont-email.me>
<c91a4bb3-0610-410e-884d-0288440aab49n@googlegroups.com> <u9p1td$163qt$2@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f13e5bcb-d63a-4551-ab26-8e17da19d944n@googlegroups.com>
Subject: Re: how many lines you coded?
From: profesor...@gmail.com (fir)
Injection-Date: Tue, 25 Jul 2023 18:13:44 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 5331
 by: fir - Tue, 25 Jul 2023 18:13 UTC

wtorek, 25 lipca 2023 o 19:48:44 UTC+2 Bart napisał(a):
> On 25/07/2023 16:51, fir wrote:
> > poniedziałek, 24 lipca 2023 o 12:21:45 UTC+2 Bart napisał(a):
> >> On 24/07/2023 08:02, David Brown wrote:
> >>> On 23/07/2023 21:48, Vir Campestris wrote:
> >>>> On 23/07/2023 19:32, Bonita Montero wrote:
> >>>>> For sure in assembly, because that's easier to learn than C. 😉
> >>>>
> >>>> Yes, but which assembler?
> >>>>
> >>>> I've used perhaps a dozen. Perhaps because it depends on things like
> >>>> whether a '286 counts as different to an 8086.
> >>>>
> >>>
> >>> I have also used at least a dozen assembly languages - and that is /not/
> >>> counting variations such as 8086/80286. (I haven't actually written any
> >>> x86 assembly.)
> >> If you haven't used x86, then the variations don't matter?
> >>
> >> I can list not quite a dozen varieties, if I include ones where I've
> >> only written a few lines, but I count the x86 versions separately:
> >>
> >> + pdp10
> >> digico m16v
> >> pdp11 (used once to get some driver working)
> >> 6800 (the only big-endian machine I've used!)
> >> *+ z80
> >> *+ 8088/6
> >> * 80188/6
> >> * 8035 or 8051
> >> *+ 80386
> >> *+ x64
> >> arm32
> >>
> >> * means I either wrote a standalone assembler, or an inline one for a
> >> HLL, or both. That doesn't rule out using someone else's assembler at
> >> some point.
> >>
> >> + means I've used it as a compiler target
> >>
> >> (80188/6 is an enhanced version of 8088/6 with integrated peripherals
> >> that have dedicated instructions.)
> >>
> >> 80386 has a different set of address modes from 8086, and non-segmented
> >> memory in non-real mode.
> >>
> >> x64 has extra GP registers, SIMD etc. My syntax for it differs from
> >> standard.
> >>
> >> (I don't include the ones I've coded only on paper, to see how they
> >> might work as compiler targets.)
> >
> > btw you once talked about compilations speed..could you give that numbers? as i dont remember which one thread it was..
> >
> > i can do basic measuring of assembly speed
> My current static compiler on AMD Ryzen 3, can compile code at 0.5 to
> 0.7Mlps (or up to 1Mlps if optimised via C and gcc-O3, but I'd prefer
> not to do that).
>
> Another measure is being able to generate 5 to 10MB of executable code
> per second.
>
> My bytecode compiler for dynamic code can work at up to double those
> speeds (near 2Mlps max).
>
> My x64 assembler I think works at 2 to 3Mlps.
>
> On the same machine, Tiny C can compile C code at up to 1Mlps. (That is
> Tiny C compiled, probably, with gcc-O3; Tiny C compiled with itself
> would be half that speed.)

by 1MLps you mean 20 MB/s ? better say in megabytes
what you say and my results are coherent to what i see this things..imo this depends on
memory bandwidth and what you can obtain related to this ..if some computer have 10 GB/s it would be hard to obtain 1/10 or 1/30 of it (300MB/s) but something liek 1/90 could be possibly obtainable probably imo (100 MB/s) if hard optimised

yet i assume we talk about rading file from aran and saving file to ram..as im not sure how saving things to file includes to time here (reading input adds somewhet but not terribly much as when someone compiles second time the file is in ram cahe, but im not sure as to saving)

if thsio saving includes much it coud have semse to code in ramdisks, where you could run the output after compiletion before yet it is saved to disk)...im not sure is if i compile it is saved sorta asuynchronically and timer returns tiem before its finished..yet i doubt if i can run it from shel before it is finished this i doubt more

Re: how many lines you coded?

<52abbe2c-216b-4d50-a377-2ae2f68d5bf7n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=26649&group=comp.lang.c#26649

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:622a:1995:b0:400:82c7:415c with SMTP id u21-20020a05622a199500b0040082c7415cmr11130qtc.10.1690309584568;
Tue, 25 Jul 2023 11:26:24 -0700 (PDT)
X-Received: by 2002:a05:6808:13c2:b0:39e:9757:6263 with SMTP id
d2-20020a05680813c200b0039e97576263mr28357125oiw.0.1690309584331; Tue, 25 Jul
2023 11:26:24 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 25 Jul 2023 11:26:23 -0700 (PDT)
In-Reply-To: <f13e5bcb-d63a-4551-ab26-8e17da19d944n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.245; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.245
References: <dbb29689-380e-4d7c-8088-91d68e418033n@googlegroups.com>
<u9jro5$an58$1@dont-email.me> <u9k061$b57v$1@dont-email.me>
<u9l7m1$it9v$1@dont-email.me> <u9ljbb$kdi4$1@dont-email.me>
<c91a4bb3-0610-410e-884d-0288440aab49n@googlegroups.com> <u9p1td$163qt$2@dont-email.me>
<f13e5bcb-d63a-4551-ab26-8e17da19d944n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <52abbe2c-216b-4d50-a377-2ae2f68d5bf7n@googlegroups.com>
Subject: Re: how many lines you coded?
From: profesor...@gmail.com (fir)
Injection-Date: Tue, 25 Jul 2023 18:26:24 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: fir - Tue, 25 Jul 2023 18:26 UTC

wtorek, 25 lipca 2023 o 20:13:53 UTC+2 fir napisał(a):
> wtorek, 25 lipca 2023 o 19:48:44 UTC+2 Bart napisał(a):
> > On 25/07/2023 16:51, fir wrote:
> > > poniedziałek, 24 lipca 2023 o 12:21:45 UTC+2 Bart napisał(a):
> > >> On 24/07/2023 08:02, David Brown wrote:
> > >>> On 23/07/2023 21:48, Vir Campestris wrote:
> > >>>> On 23/07/2023 19:32, Bonita Montero wrote:
> > >>>>> For sure in assembly, because that's easier to learn than C. 😉
> > >>>>
> > >>>> Yes, but which assembler?
> > >>>>
> > >>>> I've used perhaps a dozen. Perhaps because it depends on things like
> > >>>> whether a '286 counts as different to an 8086.
> > >>>>
> > >>>
> > >>> I have also used at least a dozen assembly languages - and that is /not/
> > >>> counting variations such as 8086/80286. (I haven't actually written any
> > >>> x86 assembly.)
> > >> If you haven't used x86, then the variations don't matter?
> > >>
> > >> I can list not quite a dozen varieties, if I include ones where I've
> > >> only written a few lines, but I count the x86 versions separately:
> > >>
> > >> + pdp10
> > >> digico m16v
> > >> pdp11 (used once to get some driver working)
> > >> 6800 (the only big-endian machine I've used!)
> > >> *+ z80
> > >> *+ 8088/6
> > >> * 80188/6
> > >> * 8035 or 8051
> > >> *+ 80386
> > >> *+ x64
> > >> arm32
> > >>
> > >> * means I either wrote a standalone assembler, or an inline one for a
> > >> HLL, or both. That doesn't rule out using someone else's assembler at
> > >> some point.
> > >>
> > >> + means I've used it as a compiler target
> > >>
> > >> (80188/6 is an enhanced version of 8088/6 with integrated peripherals
> > >> that have dedicated instructions.)
> > >>
> > >> 80386 has a different set of address modes from 8086, and non-segmented
> > >> memory in non-real mode.
> > >>
> > >> x64 has extra GP registers, SIMD etc. My syntax for it differs from
> > >> standard.
> > >>
> > >> (I don't include the ones I've coded only on paper, to see how they
> > >> might work as compiler targets.)
> > >
> > > btw you once talked about compilations speed..could you give that numbers? as i dont remember which one thread it was..
> > >
> > > i can do basic measuring of assembly speed
> > My current static compiler on AMD Ryzen 3, can compile code at 0.5 to
> > 0.7Mlps (or up to 1Mlps if optimised via C and gcc-O3, but I'd prefer
> > not to do that).
> >
> > Another measure is being able to generate 5 to 10MB of executable code
> > per second.
> >
> > My bytecode compiler for dynamic code can work at up to double those
> > speeds (near 2Mlps max).
> >
> > My x64 assembler I think works at 2 to 3Mlps.
> >
> > On the same machine, Tiny C can compile C code at up to 1Mlps. (That is
> > Tiny C compiled, probably, with gcc-O3; Tiny C compiled with itself
> > would be half that speed.)
> by 1MLps you mean 20 MB/s ? better say in megabytes
> what you say and my results are coherent to what i see this things..imo this depends on
> memory bandwidth and what you can obtain related to this ..if some computer have 10 GB/s it would be hard to obtain 1/10 or 1/30 of it (300MB/s) but something liek 1/90 could be possibly obtainable probably imo (100 MB/s) if hard optimised
>
> yet i assume we talk about rading file from aran and saving file to ram..as im not sure how saving things to file includes to time here (reading input adds somewhet but not terribly much as when someone compiles second time the file is in ram cahe, but im not sure as to saving)
>
> if thsio saving includes much it coud have semse to code in ramdisks, where you could run the output after compiletion before yet it is saved to disk)..im not sure is if i compile it is saved sorta asuynchronically and timer returns tiem before its finished..yet i doubt if i can run it from shel before it is finished this i doubt more

i made a test now (commenting fwrites tos ave output exe) and there is no differense.. also 165 ms for 1.2 MB input - i dont know how windows caches files that are to be written- maybe it return asynchronously or what

Re: how many lines you coded?

<1431ae57-1627-4c88-9818-da6fa072cbe8n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=26650&group=comp.lang.c#26650

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:622a:182a:b0:3ff:2517:172 with SMTP id t42-20020a05622a182a00b003ff25170172mr218qtc.0.1690310047839;
Tue, 25 Jul 2023 11:34:07 -0700 (PDT)
X-Received: by 2002:a05:6808:2189:b0:3a4:48e1:3116 with SMTP id
be9-20020a056808218900b003a448e13116mr28014641oib.0.1690310047464; Tue, 25
Jul 2023 11:34:07 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fdn.fr!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 25 Jul 2023 11:34:07 -0700 (PDT)
In-Reply-To: <52abbe2c-216b-4d50-a377-2ae2f68d5bf7n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.245; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.245
References: <dbb29689-380e-4d7c-8088-91d68e418033n@googlegroups.com>
<u9jro5$an58$1@dont-email.me> <u9k061$b57v$1@dont-email.me>
<u9l7m1$it9v$1@dont-email.me> <u9ljbb$kdi4$1@dont-email.me>
<c91a4bb3-0610-410e-884d-0288440aab49n@googlegroups.com> <u9p1td$163qt$2@dont-email.me>
<f13e5bcb-d63a-4551-ab26-8e17da19d944n@googlegroups.com> <52abbe2c-216b-4d50-a377-2ae2f68d5bf7n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1431ae57-1627-4c88-9818-da6fa072cbe8n@googlegroups.com>
Subject: Re: how many lines you coded?
From: profesor...@gmail.com (fir)
Injection-Date: Tue, 25 Jul 2023 18:34:07 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: fir - Tue, 25 Jul 2023 18:34 UTC

wtorek, 25 lipca 2023 o 20:26:32 UTC+2 fir napisał(a):
> wtorek, 25 lipca 2023 o 20:13:53 UTC+2 fir napisał(a):
> > wtorek, 25 lipca 2023 o 19:48:44 UTC+2 Bart napisał(a):
> > > On 25/07/2023 16:51, fir wrote:
> > > > poniedziałek, 24 lipca 2023 o 12:21:45 UTC+2 Bart napisał(a):
> > > >> On 24/07/2023 08:02, David Brown wrote:
> > > >>> On 23/07/2023 21:48, Vir Campestris wrote:
> > > >>>> On 23/07/2023 19:32, Bonita Montero wrote:
> > > >>>>> For sure in assembly, because that's easier to learn than C. 😉
> > > >>>>
> > > >>>> Yes, but which assembler?
> > > >>>>
> > > >>>> I've used perhaps a dozen. Perhaps because it depends on things like
> > > >>>> whether a '286 counts as different to an 8086.
> > > >>>>
> > > >>>
> > > >>> I have also used at least a dozen assembly languages - and that is /not/
> > > >>> counting variations such as 8086/80286. (I haven't actually written any
> > > >>> x86 assembly.)
> > > >> If you haven't used x86, then the variations don't matter?
> > > >>
> > > >> I can list not quite a dozen varieties, if I include ones where I've
> > > >> only written a few lines, but I count the x86 versions separately:
> > > >>
> > > >> + pdp10
> > > >> digico m16v
> > > >> pdp11 (used once to get some driver working)
> > > >> 6800 (the only big-endian machine I've used!)
> > > >> *+ z80
> > > >> *+ 8088/6
> > > >> * 80188/6
> > > >> * 8035 or 8051
> > > >> *+ 80386
> > > >> *+ x64
> > > >> arm32
> > > >>
> > > >> * means I either wrote a standalone assembler, or an inline one for a
> > > >> HLL, or both. That doesn't rule out using someone else's assembler at
> > > >> some point.
> > > >>
> > > >> + means I've used it as a compiler target
> > > >>
> > > >> (80188/6 is an enhanced version of 8088/6 with integrated peripherals
> > > >> that have dedicated instructions.)
> > > >>
> > > >> 80386 has a different set of address modes from 8086, and non-segmented
> > > >> memory in non-real mode.
> > > >>
> > > >> x64 has extra GP registers, SIMD etc. My syntax for it differs from
> > > >> standard.
> > > >>
> > > >> (I don't include the ones I've coded only on paper, to see how they
> > > >> might work as compiler targets.)
> > > >
> > > > btw you once talked about compilations speed..could you give that numbers? as i dont remember which one thread it was..
> > > >
> > > > i can do basic measuring of assembly speed
> > > My current static compiler on AMD Ryzen 3, can compile code at 0.5 to
> > > 0.7Mlps (or up to 1Mlps if optimised via C and gcc-O3, but I'd prefer
> > > not to do that).
> > >
> > > Another measure is being able to generate 5 to 10MB of executable code
> > > per second.
> > >
> > > My bytecode compiler for dynamic code can work at up to double those
> > > speeds (near 2Mlps max).
> > >
> > > My x64 assembler I think works at 2 to 3Mlps.
> > >
> > > On the same machine, Tiny C can compile C code at up to 1Mlps. (That is
> > > Tiny C compiled, probably, with gcc-O3; Tiny C compiled with itself
> > > would be half that speed.)
> > by 1MLps you mean 20 MB/s ? better say in megabytes
> > what you say and my results are coherent to what i see this things..imo this depends on
> > memory bandwidth and what you can obtain related to this ..if some computer have 10 GB/s it would be hard to obtain 1/10 or 1/30 of it (300MB/s) but something liek 1/90 could be possibly obtainable probably imo (100 MB/s) if hard optimised
> >
> > yet i assume we talk about rading file from aran and saving file to ram...as im not sure how saving things to file includes to time here (reading input adds somewhet but not terribly much as when someone compiles second time the file is in ram cahe, but im not sure as to saving)
> >
> > if thsio saving includes much it coud have semse to code in ramdisks, where you could run the output after compiletion before yet it is saved to disk)..im not sure is if i compile it is saved sorta asuynchronically and timer returns tiem before its finished..yet i doubt if i can run it from shel before it is finished this i doubt more
> i made a test now (commenting fwrites tos ave output exe) and there is no differense.. also 165 ms for 1.2 MB input - i dont know how windows caches files that are to be written- maybe it return asynchronously or what

gcc - O2 (c code in cpp mode) is slow as hell in turn, (but i test on real old weach pc, i got two PC but for coding liek use that old) it compiles the assembler which is 400 KB in 14 seconds which is 30 KB/s compared to 7 MB/s

Re: how many lines you coded?

<2cb53041-e472-4f27-9486-7e77fd88d56an@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=26651&group=comp.lang.c#26651

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a37:9341:0:b0:762:495d:8f89 with SMTP id v62-20020a379341000000b00762495d8f89mr8184qkd.2.1690310802953;
Tue, 25 Jul 2023 11:46:42 -0700 (PDT)
X-Received: by 2002:a9d:6e01:0:b0:6ba:3da9:bf53 with SMTP id
e1-20020a9d6e01000000b006ba3da9bf53mr267293otr.3.1690310802520; Tue, 25 Jul
2023 11:46:42 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 25 Jul 2023 11:46:42 -0700 (PDT)
In-Reply-To: <1431ae57-1627-4c88-9818-da6fa072cbe8n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.245; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.245
References: <dbb29689-380e-4d7c-8088-91d68e418033n@googlegroups.com>
<u9jro5$an58$1@dont-email.me> <u9k061$b57v$1@dont-email.me>
<u9l7m1$it9v$1@dont-email.me> <u9ljbb$kdi4$1@dont-email.me>
<c91a4bb3-0610-410e-884d-0288440aab49n@googlegroups.com> <u9p1td$163qt$2@dont-email.me>
<f13e5bcb-d63a-4551-ab26-8e17da19d944n@googlegroups.com> <52abbe2c-216b-4d50-a377-2ae2f68d5bf7n@googlegroups.com>
<1431ae57-1627-4c88-9818-da6fa072cbe8n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2cb53041-e472-4f27-9486-7e77fd88d56an@googlegroups.com>
Subject: Re: how many lines you coded?
From: profesor...@gmail.com (fir)
Injection-Date: Tue, 25 Jul 2023 18:46:42 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 6937
 by: fir - Tue, 25 Jul 2023 18:46 UTC

wtorek, 25 lipca 2023 o 20:34:15 UTC+2 fir napisał(a):
> wtorek, 25 lipca 2023 o 20:26:32 UTC+2 fir napisał(a):
> > wtorek, 25 lipca 2023 o 20:13:53 UTC+2 fir napisał(a):
> > > wtorek, 25 lipca 2023 o 19:48:44 UTC+2 Bart napisał(a):
> > > > On 25/07/2023 16:51, fir wrote:
> > > > > poniedziałek, 24 lipca 2023 o 12:21:45 UTC+2 Bart napisał(a):
> > > > >> On 24/07/2023 08:02, David Brown wrote:
> > > > >>> On 23/07/2023 21:48, Vir Campestris wrote:
> > > > >>>> On 23/07/2023 19:32, Bonita Montero wrote:
> > > > >>>>> For sure in assembly, because that's easier to learn than C. 😉
> > > > >>>>
> > > > >>>> Yes, but which assembler?
> > > > >>>>
> > > > >>>> I've used perhaps a dozen. Perhaps because it depends on things like
> > > > >>>> whether a '286 counts as different to an 8086.
> > > > >>>>
> > > > >>>
> > > > >>> I have also used at least a dozen assembly languages - and that is /not/
> > > > >>> counting variations such as 8086/80286. (I haven't actually written any
> > > > >>> x86 assembly.)
> > > > >> If you haven't used x86, then the variations don't matter?
> > > > >>
> > > > >> I can list not quite a dozen varieties, if I include ones where I've
> > > > >> only written a few lines, but I count the x86 versions separately:
> > > > >>
> > > > >> + pdp10
> > > > >> digico m16v
> > > > >> pdp11 (used once to get some driver working)
> > > > >> 6800 (the only big-endian machine I've used!)
> > > > >> *+ z80
> > > > >> *+ 8088/6
> > > > >> * 80188/6
> > > > >> * 8035 or 8051
> > > > >> *+ 80386
> > > > >> *+ x64
> > > > >> arm32
> > > > >>
> > > > >> * means I either wrote a standalone assembler, or an inline one for a
> > > > >> HLL, or both. That doesn't rule out using someone else's assembler at
> > > > >> some point.
> > > > >>
> > > > >> + means I've used it as a compiler target
> > > > >>
> > > > >> (80188/6 is an enhanced version of 8088/6 with integrated peripherals
> > > > >> that have dedicated instructions.)
> > > > >>
> > > > >> 80386 has a different set of address modes from 8086, and non-segmented
> > > > >> memory in non-real mode.
> > > > >>
> > > > >> x64 has extra GP registers, SIMD etc. My syntax for it differs from
> > > > >> standard.
> > > > >>
> > > > >> (I don't include the ones I've coded only on paper, to see how they
> > > > >> might work as compiler targets.)
> > > > >
> > > > > btw you once talked about compilations speed..could you give that numbers? as i dont remember which one thread it was..
> > > > >
> > > > > i can do basic measuring of assembly speed
> > > > My current static compiler on AMD Ryzen 3, can compile code at 0.5 to
> > > > 0.7Mlps (or up to 1Mlps if optimised via C and gcc-O3, but I'd prefer
> > > > not to do that).
> > > >
> > > > Another measure is being able to generate 5 to 10MB of executable code
> > > > per second.
> > > >
> > > > My bytecode compiler for dynamic code can work at up to double those
> > > > speeds (near 2Mlps max).
> > > >
> > > > My x64 assembler I think works at 2 to 3Mlps.
> > > >
> > > > On the same machine, Tiny C can compile C code at up to 1Mlps. (That is
> > > > Tiny C compiled, probably, with gcc-O3; Tiny C compiled with itself
> > > > would be half that speed.)
> > > by 1MLps you mean 20 MB/s ? better say in megabytes
> > > what you say and my results are coherent to what i see this things..imo this depends on
> > > memory bandwidth and what you can obtain related to this ..if some computer have 10 GB/s it would be hard to obtain 1/10 or 1/30 of it (300MB/s) but something liek 1/90 could be possibly obtainable probably imo (100 MB/s) if hard optimised
> > >
> > > yet i assume we talk about rading file from aran and saving file to ram..as im not sure how saving things to file includes to time here (reading input adds somewhet but not terribly much as when someone compiles second time the file is in ram cahe, but im not sure as to saving)
> > >
> > > if thsio saving includes much it coud have semse to code in ramdisks, where you could run the output after compiletion before yet it is saved to disk)..im not sure is if i compile it is saved sorta asuynchronically and timer returns tiem before its finished..yet i doubt if i can run it from shel before it is finished this i doubt more
> > i made a test now (commenting fwrites tos ave output exe) and there is no differense.. also 165 ms for 1.2 MB input - i dont know how windows caches files that are to be written- maybe it return asynchronously or what
> gcc - O2 (c code in cpp mode) is slow as hell in turn, (but i test on real old weach pc, i got two PC but for coding liek use that old) it compiles the assembler which is 400 KB in 14 seconds which is 30 KB/s compared to 7 MB/s

well in fact the asembler source also includes clib and windows headers (windows only for timer i guess) so it might be a doze of headers to this

Re: how many lines you coded?

<4b29aa6e-8bd4-4610-9546-e4afaf4d959en@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=26653&group=comp.lang.c#26653

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:620a:8888:b0:76a:d9a6:a8d0 with SMTP id qk8-20020a05620a888800b0076ad9a6a8d0mr11858qkn.1.1690311746005;
Tue, 25 Jul 2023 12:02:26 -0700 (PDT)
X-Received: by 2002:a05:6830:128d:b0:6b8:c631:5c5a with SMTP id
z13-20020a056830128d00b006b8c6315c5amr300483otp.4.1690311745553; Tue, 25 Jul
2023 12:02:25 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 25 Jul 2023 12:02:25 -0700 (PDT)
In-Reply-To: <2cb53041-e472-4f27-9486-7e77fd88d56an@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.245; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.245
References: <dbb29689-380e-4d7c-8088-91d68e418033n@googlegroups.com>
<u9jro5$an58$1@dont-email.me> <u9k061$b57v$1@dont-email.me>
<u9l7m1$it9v$1@dont-email.me> <u9ljbb$kdi4$1@dont-email.me>
<c91a4bb3-0610-410e-884d-0288440aab49n@googlegroups.com> <u9p1td$163qt$2@dont-email.me>
<f13e5bcb-d63a-4551-ab26-8e17da19d944n@googlegroups.com> <52abbe2c-216b-4d50-a377-2ae2f68d5bf7n@googlegroups.com>
<1431ae57-1627-4c88-9818-da6fa072cbe8n@googlegroups.com> <2cb53041-e472-4f27-9486-7e77fd88d56an@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4b29aa6e-8bd4-4610-9546-e4afaf4d959en@googlegroups.com>
Subject: Re: how many lines you coded?
From: profesor...@gmail.com (fir)
Injection-Date: Tue, 25 Jul 2023 19:02:25 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 7360
 by: fir - Tue, 25 Jul 2023 19:02 UTC

wtorek, 25 lipca 2023 o 20:46:51 UTC+2 fir napisał(a):
> wtorek, 25 lipca 2023 o 20:34:15 UTC+2 fir napisał(a):
> > wtorek, 25 lipca 2023 o 20:26:32 UTC+2 fir napisał(a):
> > > wtorek, 25 lipca 2023 o 20:13:53 UTC+2 fir napisał(a):
> > > > wtorek, 25 lipca 2023 o 19:48:44 UTC+2 Bart napisał(a):
> > > > > On 25/07/2023 16:51, fir wrote:
> > > > > > poniedziałek, 24 lipca 2023 o 12:21:45 UTC+2 Bart napisał(a):
> > > > > >> On 24/07/2023 08:02, David Brown wrote:
> > > > > >>> On 23/07/2023 21:48, Vir Campestris wrote:
> > > > > >>>> On 23/07/2023 19:32, Bonita Montero wrote:
> > > > > >>>>> For sure in assembly, because that's easier to learn than C.. 😉
> > > > > >>>>
> > > > > >>>> Yes, but which assembler?
> > > > > >>>>
> > > > > >>>> I've used perhaps a dozen. Perhaps because it depends on things like
> > > > > >>>> whether a '286 counts as different to an 8086.
> > > > > >>>>
> > > > > >>>
> > > > > >>> I have also used at least a dozen assembly languages - and that is /not/
> > > > > >>> counting variations such as 8086/80286. (I haven't actually written any
> > > > > >>> x86 assembly.)
> > > > > >> If you haven't used x86, then the variations don't matter?
> > > > > >>
> > > > > >> I can list not quite a dozen varieties, if I include ones where I've
> > > > > >> only written a few lines, but I count the x86 versions separately:
> > > > > >>
> > > > > >> + pdp10
> > > > > >> digico m16v
> > > > > >> pdp11 (used once to get some driver working)
> > > > > >> 6800 (the only big-endian machine I've used!)
> > > > > >> *+ z80
> > > > > >> *+ 8088/6
> > > > > >> * 80188/6
> > > > > >> * 8035 or 8051
> > > > > >> *+ 80386
> > > > > >> *+ x64
> > > > > >> arm32
> > > > > >>
> > > > > >> * means I either wrote a standalone assembler, or an inline one for a
> > > > > >> HLL, or both. That doesn't rule out using someone else's assembler at
> > > > > >> some point.
> > > > > >>
> > > > > >> + means I've used it as a compiler target
> > > > > >>
> > > > > >> (80188/6 is an enhanced version of 8088/6 with integrated peripherals
> > > > > >> that have dedicated instructions.)
> > > > > >>
> > > > > >> 80386 has a different set of address modes from 8086, and non-segmented
> > > > > >> memory in non-real mode.
> > > > > >>
> > > > > >> x64 has extra GP registers, SIMD etc. My syntax for it differs from
> > > > > >> standard.
> > > > > >>
> > > > > >> (I don't include the ones I've coded only on paper, to see how they
> > > > > >> might work as compiler targets.)
> > > > > >
> > > > > > btw you once talked about compilations speed..could you give that numbers? as i dont remember which one thread it was..
> > > > > >
> > > > > > i can do basic measuring of assembly speed
> > > > > My current static compiler on AMD Ryzen 3, can compile code at 0.5 to
> > > > > 0.7Mlps (or up to 1Mlps if optimised via C and gcc-O3, but I'd prefer
> > > > > not to do that).
> > > > >
> > > > > Another measure is being able to generate 5 to 10MB of executable code
> > > > > per second.
> > > > >
> > > > > My bytecode compiler for dynamic code can work at up to double those
> > > > > speeds (near 2Mlps max).
> > > > >
> > > > > My x64 assembler I think works at 2 to 3Mlps.
> > > > >
> > > > > On the same machine, Tiny C can compile C code at up to 1Mlps. (That is
> > > > > Tiny C compiled, probably, with gcc-O3; Tiny C compiled with itself
> > > > > would be half that speed.)
> > > > by 1MLps you mean 20 MB/s ? better say in megabytes
> > > > what you say and my results are coherent to what i see this things...imo this depends on
> > > > memory bandwidth and what you can obtain related to this ..if some computer have 10 GB/s it would be hard to obtain 1/10 or 1/30 of it (300MB/s) but something liek 1/90 could be possibly obtainable probably imo (100 MB/s) if hard optimised
> > > >
> > > > yet i assume we talk about rading file from aran and saving file to ram..as im not sure how saving things to file includes to time here (reading input adds somewhet but not terribly much as when someone compiles second time the file is in ram cahe, but im not sure as to saving)
> > > >
> > > > if thsio saving includes much it coud have semse to code in ramdisks, where you could run the output after compiletion before yet it is saved to disk)..im not sure is if i compile it is saved sorta asuynchronically and timer returns tiem before its finished..yet i doubt if i can run it from shel before it is finished this i doubt more
> > > i made a test now (commenting fwrites tos ave output exe) and there is no differense.. also 165 ms for 1.2 MB input - i dont know how windows caches files that are to be written- maybe it return asynchronously or what
> > gcc - O2 (c code in cpp mode) is slow as hell in turn, (but i test on real old weach pc, i got two PC but for coding liek use that old) it compiles the assembler which is 400 KB in 14 seconds which is 30 KB/s compared to 7 MB/s
> well in fact the asembler source also includes clib and windows headers (windows only for timer i guess) so it might be a doze of headers to this

gcc -O1 9 seconds
gcc -O0 (if yhis is proper flag i dont know) 2 seconds

so i dont kno how big those headers are to check but if headers are 1.5 MB iy makes 1 MB/s so its not much fat but standable

Re: how many lines you coded?

<u9pb65$176h3$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=26654&group=comp.lang.c#26654

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jmc...@fuzzball.jmcunx.com (John McCue)
Newsgroups: comp.lang.c
Subject: Re: how many lines you coded?
Date: Tue, 25 Jul 2023 20:26:45 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <u9pb65$176h3$1@dont-email.me>
References: <dbb29689-380e-4d7c-8088-91d68e418033n@googlegroups.com>
Reply-To: jmclnx@SPAMisBADgmail.com
Injection-Date: Tue, 25 Jul 2023 20:26:45 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="325c8362ec6c6f462d4f9de96778eb1e";
logging-data="1284643"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+IwQjTxzT76Z4xTtzqz+2X"
User-Agent: tin/2.4.4-20191224 ("Millburn") (OpenBSD/7.3 (amd64))
Cancel-Lock: sha1:jylbSKyOdMCU73XJWauQ+4JEjac=
X-OS-Version: OpenBSD 7.3 amd64
 by: John McCue - Tue, 25 Jul 2023 20:26 UTC

fir <profesor.fir@gmail.com> wrote:
> how many lines you coded in your life? if you give an answer try to be real

A gentle push, please learn to format your lines,
you have been posting longer enough to know this :)
http://www.mugsy.org/asa_faq/getting_along/usenet.shtml

<snip>
> are you able to estimate?

I have no idea, as someone else said, I guess around million ?
Most of these programs are lost "like tears in the rain" :)

My first program was written on punch cards, then on to CTR, then
PCs. I was able to avoid any type of to management "promotions".

Regards,
John

Re: how many lines you coded?

<u9pdus$17g3e$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=26655&group=comp.lang.c#26655

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (Bart)
Newsgroups: comp.lang.c
Subject: Re: how many lines you coded?
Date: Tue, 25 Jul 2023 22:14:05 +0100
Organization: A noiseless patient Spider
Lines: 86
Message-ID: <u9pdus$17g3e$1@dont-email.me>
References: <dbb29689-380e-4d7c-8088-91d68e418033n@googlegroups.com>
<u9jro5$an58$1@dont-email.me> <u9k061$b57v$1@dont-email.me>
<u9l7m1$it9v$1@dont-email.me> <u9ljbb$kdi4$1@dont-email.me>
<c91a4bb3-0610-410e-884d-0288440aab49n@googlegroups.com>
<u9p1td$163qt$2@dont-email.me>
<f13e5bcb-d63a-4551-ab26-8e17da19d944n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 25 Jul 2023 21:14:04 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="3a380b0f6585ada763ab7669f489b7a2";
logging-data="1294446"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19wgnYD+y0/+4GqeHS5qZPwgBCU5HAPPKM="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:KSrZ/4kH8CVMbQ2lTb8VCsVzi0k=
In-Reply-To: <f13e5bcb-d63a-4551-ab26-8e17da19d944n@googlegroups.com>
 by: Bart - Tue, 25 Jul 2023 21:14 UTC

On 25/07/2023 19:13, fir wrote:
> wtorek, 25 lipca 2023 o 19:48:44 UTC+2 Bart napisał(a):
>>> btw you once talked about compilations speed..could you give that
numbers? as i dont remember which one thread it was..
>>>
>>> i can do basic measuring of assembly speed
>> My current static compiler on AMD Ryzen 3, can compile code at 0.5 to
>> 0.7Mlps (or up to 1Mlps if optimised via C and gcc-O3, but I'd prefer
>> not to do that).
>>
>> Another measure is being able to generate 5 to 10MB of executable code
>> per second.
>>
>> My bytecode compiler for dynamic code can work at up to double those
>> speeds (near 2Mlps max).
>>
>> My x64 assembler I think works at 2 to 3Mlps.
>>
>> On the same machine, Tiny C can compile C code at up to 1Mlps. (That is
>> Tiny C compiled, probably, with gcc-O3; Tiny C compiled with itself
>> would be half that speed.)
>
> by 1MLps you mean 20 MB/s ? better say in megabytes

I don't measure source code in megabytes.

1 Mlps is one million lines of source per second. As MB, it depends on
language, code density and coding style. But it correspond to roughly
5-10MB/second.

Also, 1 line of lower-level HLL source code generates roughly 10 bytes
of x64 machine code. 1 Mlps might be 10MB/s of generated binary code.

So actually, the number of input MB and output MB are roughly
equivalent, perhap within a factor of 2 for my HLL, code style, and
compiler.

> what you say and my results are coherent to what i see this
things..imo this depends on
> memory bandwidth and what you can obtain related to this ..if some
computer have 10 GB/s

If you're just loading and reading files, then sure. But compilation is
a lot more complicated than that. On my compilers, loading source files
and writing binaries is 1.5% of overall compile time (using SSD, but
source code is nearly always already cached).

So that is not the limiting factor in compilation.

As I said, the Tiny C compiler manages nearly 1Mlps, so around 10MB of
input and output per second, and that is VERY lean: it manages all with
a single pass. My compiler has 5 or so passes.

I think you suggested once you could manage 10Mlps, well good luck with
that, if doing it with a real language, and not one contrived for the
purpose. (Tiny C has to deal with real, brutal C code, and also lots of
headers that do no contribute to the output binary, but still needs to
be processed.)

> it would be hard to obtain 1/10 or 1/30 of it (300MB/s) but
something liek 1/90 could be possibly obtainable probably imo (100 MB/s)
if hard optimised
>
> yet i assume we talk about rading file from aran and saving file to
ram..as im not sure how saving things to file includes to time here
(reading input adds somewhet but not terribly much as when someone
compiles second time the file is in ram cahe, but im not sure as to saving)
>
> if thsio saving includes much it coud have semse to code in ramdisks,
where you could run the output after compiletion before yet it is saved
to disk)..im not sure is if i compile it is saved sorta asuynchronically
and timer returns tiem before its finished..yet i doubt if i can run it
from shel before it is finished this i doubt more

Are you talking about 300MB/second compile speed? That would be pure
fantasy unless you are running on a super computer with dozens of cores.

But what would be the purpose? My 0.5Mlps compiler can build my biggest
application in 0.1 seconds. Your imaginary one might do it in 0.003
milliseconds, except that Windows process overheads means it will take
at least 0.02 seconds anyway.

Re: how many lines you coded?

<98ed7aa9-4f12-426f-ba4f-98a3999c812bn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=26656&group=comp.lang.c#26656

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:ad4:4e68:0:b0:63c:eebc:db50 with SMTP id ec8-20020ad44e68000000b0063ceebcdb50mr544qvb.4.1690320953946;
Tue, 25 Jul 2023 14:35:53 -0700 (PDT)
X-Received: by 2002:a05:622a:506:b0:403:b221:ea4f with SMTP id
l6-20020a05622a050600b00403b221ea4fmr636qtx.7.1690320953751; Tue, 25 Jul 2023
14:35:53 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.cmpublishers.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 25 Jul 2023 14:35:53 -0700 (PDT)
In-Reply-To: <u9pdus$17g3e$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.227; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.227
References: <dbb29689-380e-4d7c-8088-91d68e418033n@googlegroups.com>
<u9jro5$an58$1@dont-email.me> <u9k061$b57v$1@dont-email.me>
<u9l7m1$it9v$1@dont-email.me> <u9ljbb$kdi4$1@dont-email.me>
<c91a4bb3-0610-410e-884d-0288440aab49n@googlegroups.com> <u9p1td$163qt$2@dont-email.me>
<f13e5bcb-d63a-4551-ab26-8e17da19d944n@googlegroups.com> <u9pdus$17g3e$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <98ed7aa9-4f12-426f-ba4f-98a3999c812bn@googlegroups.com>
Subject: Re: how many lines you coded?
From: profesor...@gmail.com (fir)
Injection-Date: Tue, 25 Jul 2023 21:35:53 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 6571
 by: fir - Tue, 25 Jul 2023 21:35 UTC

wtorek, 25 lipca 2023 o 23:14:19 UTC+2 Bart napisał(a):
> On 25/07/2023 19:13, fir wrote:
> > wtorek, 25 lipca 2023 o 19:48:44 UTC+2 Bart napisał(a):
> >>> btw you once talked about compilations speed..could you give that
> numbers? as i dont remember which one thread it was..
> >>>
> >>> i can do basic measuring of assembly speed
> >> My current static compiler on AMD Ryzen 3, can compile code at 0.5 to
> >> 0.7Mlps (or up to 1Mlps if optimised via C and gcc-O3, but I'd prefer
> >> not to do that).
> >>
> >> Another measure is being able to generate 5 to 10MB of executable code
> >> per second.
> >>
> >> My bytecode compiler for dynamic code can work at up to double those
> >> speeds (near 2Mlps max).
> >>
> >> My x64 assembler I think works at 2 to 3Mlps.
> >>
> >> On the same machine, Tiny C can compile C code at up to 1Mlps. (That is
> >> Tiny C compiled, probably, with gcc-O3; Tiny C compiled with itself
> >> would be half that speed.)
> >
> > by 1MLps you mean 20 MB/s ? better say in megabytes
> I don't measure source code in megabytes.
>
> 1 Mlps is one million lines of source per second. As MB, it depends on
> language, code density and coding style. But it correspond to roughly
> 5-10MB/second.
>
> Also, 1 line of lower-level HLL source code generates roughly 10 bytes
> of x64 machine code. 1 Mlps might be 10MB/s of generated binary code.
>
> So actually, the number of input MB and output MB are roughly
> equivalent, perhap within a factor of 2 for my HLL, code style, and
> compiler.
> > what you say and my results are coherent to what i see this
> things..imo this depends on
> > memory bandwidth and what you can obtain related to this ..if some
> computer have 10 GB/s
> If you're just loading and reading files, then sure. But compilation is
> a lot more complicated than that. On my compilers, loading source files
> and writing binaries is 1.5% of overall compile time (using SSD, but
> source code is nearly always already cached).
>
> So that is not the limiting factor in compilation.
>
> As I said, the Tiny C compiler manages nearly 1Mlps, so around 10MB of
> input and output per second, and that is VERY lean: it manages all with
> a single pass. My compiler has 5 or so passes.
>
> I think you suggested once you could manage 10Mlps, well good luck with
> that, if doing it with a real language, and not one contrived for the
> purpose. (Tiny C has to deal with real, brutal C code, and also lots of
> headers that do no contribute to the output binary, but still needs to
> be processed.)

i vaguelly remember that but as i remember i not said that i could manege that
(not saying at this point) and not even im sure it is for syre to be managed but
was guessing and estimating possible top speeds on hardvare if its titally opyimised
i could say 200MB/s as a goal ..hard to estimate exactly but it would be sorta that
rank possibly

you better count in MB/s this is becouse if you optimise code its often in just
thrtuoughput of tam pre seconds ...also im not sure if this sepcial sense of talkin on
output speed, in facyt there is probably sense on talking sum input and output, but maybe more on input

> > it would be hard to obtain 1/10 or 1/30 of it (300MB/s) but
> something liek 1/90 could be possibly obtainable probably imo (100 MB/s)
> if hard optimised
> >
> > yet i assume we talk about rading file from aran and saving file to
> ram..as im not sure how saving things to file includes to time here
> (reading input adds somewhet but not terribly much as when someone
> compiles second time the file is in ram cahe, but im not sure as to saving)
> >
> > if thsio saving includes much it coud have semse to code in ramdisks,
> where you could run the output after compiletion before yet it is saved
> to disk)..im not sure is if i compile it is saved sorta asuynchronically
> and timer returns tiem before its finished..yet i doubt if i can run it
> from shel before it is finished this i doubt more
> Are you talking about 300MB/second compile speed? That would be pure
> fantasy unless you are running on a super computer with dozens of cores.
>
the main factor is probably memory bandwidth and ifs/branchhing speed..
ite depends on machine bandwidth and those branching speed,
note i talk on good optimisation and strightforward opmpilation..not
necessary thinking on many cores but typical 2 or 4 could be handy,
but i think with more cores you have chance maybe to beat it when in less
cores liek 1 core be below of that

> But what would be the purpose? My 0.5Mlps compiler can build my biggest
> application in 0.1 seconds. Your imaginary one might do it in 0.003
> milliseconds, except that Windows process overheads means it will take
> at least 0.02 seconds anyway.

Re: how many lines you coded?

<d29e8007-387d-4016-b251-e787b41ff020n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=26657&group=comp.lang.c#26657

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:622a:104:b0:3f1:fc85:9d74 with SMTP id u4-20020a05622a010400b003f1fc859d74mr795qtw.6.1690321931326;
Tue, 25 Jul 2023 14:52:11 -0700 (PDT)
X-Received: by 2002:a9d:7301:0:b0:6b8:6cec:b73e with SMTP id
e1-20020a9d7301000000b006b86cecb73emr481777otk.5.1690321930940; Tue, 25 Jul
2023 14:52:10 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 25 Jul 2023 14:52:10 -0700 (PDT)
In-Reply-To: <u9pb65$176h3$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.227; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.227
References: <dbb29689-380e-4d7c-8088-91d68e418033n@googlegroups.com> <u9pb65$176h3$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d29e8007-387d-4016-b251-e787b41ff020n@googlegroups.com>
Subject: Re: how many lines you coded?
From: profesor...@gmail.com (fir)
Injection-Date: Tue, 25 Jul 2023 21:52:11 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: fir - Tue, 25 Jul 2023 21:52 UTC

wtorek, 25 lipca 2023 o 22:27:00 UTC+2 John McCue napisał(a):
> fir <profes...@gmail.com> wrote:
> > how many lines you coded in your life? if you give an answer try to be real
> A gentle push, please learn to format your lines,
> you have been posting longer enough to know this :)
> http://www.mugsy.org/asa_faq/getting_along/usenet.shtml
>
> <snip>
> > are you able to estimate?
>
> I have no idea, as someone else said, I guess around million ?
> Most of these programs are lost "like tears in the rain" :)
>
> My first program was written on punch cards, then on to CTR, then
> PCs. I was able to avoid any type of to management "promotions".
>

ok, milion is maybe not terribly big amount (o0btainable) if i think but it is rathed for smeone who coded
most of life...

Re: how many lines you coded?

<2513d2c5-61ef-4b85-b56c-98edcb1e3fe5n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=26659&group=comp.lang.c#26659

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:620a:8888:b0:76a:d9a6:a8d0 with SMTP id qk8-20020a05620a888800b0076ad9a6a8d0mr13535qkn.1.1690324296320;
Tue, 25 Jul 2023 15:31:36 -0700 (PDT)
X-Received: by 2002:a05:6830:10e:b0:6b8:6f61:5f61 with SMTP id
i14-20020a056830010e00b006b86f615f61mr623312otp.6.1690324295996; Tue, 25 Jul
2023 15:31:35 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 25 Jul 2023 15:31:35 -0700 (PDT)
In-Reply-To: <98ed7aa9-4f12-426f-ba4f-98a3999c812bn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.174; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.174
References: <dbb29689-380e-4d7c-8088-91d68e418033n@googlegroups.com>
<u9jro5$an58$1@dont-email.me> <u9k061$b57v$1@dont-email.me>
<u9l7m1$it9v$1@dont-email.me> <u9ljbb$kdi4$1@dont-email.me>
<c91a4bb3-0610-410e-884d-0288440aab49n@googlegroups.com> <u9p1td$163qt$2@dont-email.me>
<f13e5bcb-d63a-4551-ab26-8e17da19d944n@googlegroups.com> <u9pdus$17g3e$1@dont-email.me>
<98ed7aa9-4f12-426f-ba4f-98a3999c812bn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2513d2c5-61ef-4b85-b56c-98edcb1e3fe5n@googlegroups.com>
Subject: Re: how many lines you coded?
From: profesor...@gmail.com (fir)
Injection-Date: Tue, 25 Jul 2023 22:31:36 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 14615
 by: fir - Tue, 25 Jul 2023 22:31 UTC

wtorek, 25 lipca 2023 o 23:36:03 UTC+2 fir napisał(a):
> wtorek, 25 lipca 2023 o 23:14:19 UTC+2 Bart napisał(a):
> > On 25/07/2023 19:13, fir wrote:
> > > wtorek, 25 lipca 2023 o 19:48:44 UTC+2 Bart napisał(a):
> > >>> btw you once talked about compilations speed..could you give that
> > numbers? as i dont remember which one thread it was..
> > >>>
> > >>> i can do basic measuring of assembly speed
> > >> My current static compiler on AMD Ryzen 3, can compile code at 0.5 to
> > >> 0.7Mlps (or up to 1Mlps if optimised via C and gcc-O3, but I'd prefer
> > >> not to do that).
> > >>
> > >> Another measure is being able to generate 5 to 10MB of executable code
> > >> per second.
> > >>
> > >> My bytecode compiler for dynamic code can work at up to double those
> > >> speeds (near 2Mlps max).
> > >>
> > >> My x64 assembler I think works at 2 to 3Mlps.
> > >>
> > >> On the same machine, Tiny C can compile C code at up to 1Mlps. (That is
> > >> Tiny C compiled, probably, with gcc-O3; Tiny C compiled with itself
> > >> would be half that speed.)
> > >
> > > by 1MLps you mean 20 MB/s ? better say in megabytes
> > I don't measure source code in megabytes.
> >
> > 1 Mlps is one million lines of source per second. As MB, it depends on
> > language, code density and coding style. But it correspond to roughly
> > 5-10MB/second.
> >
> > Also, 1 line of lower-level HLL source code generates roughly 10 bytes
> > of x64 machine code. 1 Mlps might be 10MB/s of generated binary code.
> >
> > So actually, the number of input MB and output MB are roughly
> > equivalent, perhap within a factor of 2 for my HLL, code style, and
> > compiler.
> > > what you say and my results are coherent to what i see this
> > things..imo this depends on
> > > memory bandwidth and what you can obtain related to this ..if some
> > computer have 10 GB/s
> > If you're just loading and reading files, then sure. But compilation is
> > a lot more complicated than that. On my compilers, loading source files
> > and writing binaries is 1.5% of overall compile time (using SSD, but
> > source code is nearly always already cached).
> >
> > So that is not the limiting factor in compilation.
> >
> > As I said, the Tiny C compiler manages nearly 1Mlps, so around 10MB of
> > input and output per second, and that is VERY lean: it manages all with
> > a single pass. My compiler has 5 or so passes.
> >
> > I think you suggested once you could manage 10Mlps, well good luck with
> > that, if doing it with a real language, and not one contrived for the
> > purpose. (Tiny C has to deal with real, brutal C code, and also lots of
> > headers that do no contribute to the output binary, but still needs to
> > be processed.)
> i vaguelly remember that but as i remember i not said that i could manege that
> (not saying at this point) and not even im sure it is for syre to be managed but
> was guessing and estimating possible top speeds on hardvare if its titally opyimised
> i could say 200MB/s as a goal ..hard to estimate exactly but it would be sorta that
> rank possibly
>
> you better count in MB/s this is becouse if you optimise code its often in just
> thrtuoughput of tam pre seconds ...also im not sure if this sepcial sense of talkin on
> output speed, in facyt there is probably sense on talking sum input and output, but maybe more on input
> > > it would be hard to obtain 1/10 or 1/30 of it (300MB/s) but
> > something liek 1/90 could be possibly obtainable probably imo (100 MB/s)
> > if hard optimised
> > >
> > > yet i assume we talk about rading file from aran and saving file to
> > ram..as im not sure how saving things to file includes to time here
> > (reading input adds somewhet but not terribly much as when someone
> > compiles second time the file is in ram cahe, but im not sure as to saving)
> > >
> > > if thsio saving includes much it coud have semse to code in ramdisks,
> > where you could run the output after compiletion before yet it is saved
> > to disk)..im not sure is if i compile it is saved sorta asuynchronically
> > and timer returns tiem before its finished..yet i doubt if i can run it
> > from shel before it is finished this i doubt more
> > Are you talking about 300MB/second compile speed? That would be pure
> > fantasy unless you are running on a super computer with dozens of cores..
> >
> the main factor is probably memory bandwidth and ifs/branchhing speed..
> ite depends on machine bandwidth and those branching speed,
> note i talk on good optimisation and strightforward opmpilation..not
> necessary thinking on many cores but typical 2 or 4 could be handy,
> but i think with more cores you have chance maybe to beat it when in less
> cores liek 1 core be below of that
> > But what would be the purpose? My 0.5Mlps compiler can build my biggest
> > application in 0.1 seconds. Your imaginary one might do it in 0.003
> > milliseconds, except that Windows process overheads means it will take
> > at least 0.02 seconds anyway.

300 MB/s maybe can be itself to high but maybe something ina a rank 100-300MB/s depending on machine

with the assembler im somewhat satisfied/pleasd by the syntax i chosen,
it is not bad imo
though i wonder what could be imptoved

its alows writing more lines in line with , and mixing data with code and put the data near place of suage with >>

jmp start

//////////////////////////////////////
// >> test: 1b 2b 3b 4b 5b 7b

//////////////////////////
count_mandelbrot_areafragment_coeficients:
//double man.LY = man.LX * frame_size_y/frame_size_x

// man.start.x = man.OX - man.LX/2
// man.start.y = man.OY - man.LY/2
// man.dx = man.LX/frame_size_x
// man.dy = man.Ly/frame_size_y

mov eax -2
cvt si2ss x2 eax

mov ss x1 (man.lx), >> man.lx: 4.0
div ss x1 x2
add ss x1 (man.ox), >> man.ox: -0.6
mov ss (man.start.x) x1, >> man.start.x: -0.0

mov ss x1 (man.ly), >> man.ly: 3.0
div ss x1 x2
add ss x1 (man.oy), >> man.oy: 0.0
mov ss (man.start.y) x1, >> man.start.y: -0.0

mov eax ("green.fire.dll"->frame_size_x)
mov ebx (eax)
cvt si2ss x2 ebx
mov ss x1 (man.lx)
div ss x1 x2
mov ss (man.dx) x1, >> man.dx: -0.0

mov eax ("green.fire.dll"->frame_size_y)
mov ebx (eax)
cvt si2ss x2 ebx
mov ss x1 (man.ly)
div ss x1 x2
mov ss (man.dy) x1, >> man.dy: -0.0

ret

////////////////////////////////////////////////////////
// double re = cRe;
// double im = cIm;
//
// for(int n=1; n<man.maxiter; n++)
// {
//
// if( re * re + im * im > 4.0 ) return n;
//
// double re_n = re * re - im * im + cRe;
// double im_n = 2 * re * im + cIm;
//
// re = re_n;
// im = im_n;
//
// }
/////////////////////////////////////////////////////

calc_mandelbtot_for_esi_edi:

>> c.re: 0.0 c.im: 0.0 four: 4.0

cvt si2ss x0 esi,
mov ss x1 (man.dx),
mul ss x0 x1,
add ss x0 (man.start.x),
mov ss (c.re) x0

cvt si2ss x0 edi,
mov ss x1 (man.dy),
mul ss x0 x1,
add ss x0 (man.start.y),
mov ss (c.im) x0

//////////////////////
mov ecx 0
mov ss x3 (c.re)
mov ss x4 (c.im)
mov ss x0 x3
mov ss x1 x4
mov ss x2 (four)
mov ss x5 x0 //re
iterations:
mov ss x6 x1 //im
mul ss x5 x5 //re * re
mul ss x6 x6 //im * im
mov ss x7 x5, add ss x7 x6, // re*re + im*im
comi ss x7 x2, jae out
sub ss x5 x6, add ss x5 x3 // re_n = re * re - im * im + cRe;
mul ss x1 x0, add ss x1 x1, add ss x1 x4 // im_n = 2 * re * im + cIm;
mov ss x0 x5
inc ecx, cmp ecx 256, jl iterations
mov ecx 0xff0000, ret
out:
push eax
mov eax ecx
shl eax 8
add eax ecx
shl eax 8
add eax ecx
mov ecx eax
pop eax,
ret

// mov ecx 0xffffff, ret

print_eax:
>> note_eax: "\x0d\x0a eax = %d \x00"

push eax
push note_eax
call (msvcrt.dll->printf)
pop eax
pop eax
ret

ProcessKeyDown:

>> last_key_pressed: 0
>> PAGE_UP: 32


Click here to read the complete article
Re: how many lines you coded?

<u9q4c2$1d40h$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=26666&group=comp.lang.c#26666

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c
Subject: Re: how many lines you coded?
Date: Tue, 25 Jul 2023 20:36:33 -0700
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <u9q4c2$1d40h$1@dont-email.me>
References: <dbb29689-380e-4d7c-8088-91d68e418033n@googlegroups.com>
<u9jvre$b0q1$4@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 26 Jul 2023 03:36:34 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="cfa001f2bc4be3fc5b0fe049edb97194";
logging-data="1478673"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+6/ypsKwcRkexLG1g23VRGHcy3lFFBUsA="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:yzq8JD1OjxauU1Mjvz0xJKGvqH0=
In-Reply-To: <u9jvre$b0q1$4@dont-email.me>
Content-Language: en-US
 by: Chris M. Thomasson - Wed, 26 Jul 2023 03:36 UTC

On 7/23/2023 12:42 PM, Chris M. Thomasson wrote:
> On 7/23/2023 10:29 AM, fir wrote:
>> how many lines you coded in your life? if you give an answer try to be
>> real
>
> God damn. Millions? Maybe more? Good question.
>
>
>> (and not count data and duplicates)
>> i myself estimated 200-300k hovever after thinking i think it may be
>> closer to 200k (my newer projects take about 130k or something more
>> but i also got some older i coand count now.. i would say for sure it
>> was no less than 170k but how many above this thios one i can
>> count/memorize now)
>>
>> are you able to estimate?
>

Some of that code was pure experimentation. I treated my some of my code
like it was some sort of god damn lab rat. Nasty!

https://youtu.be/SsAFen9b2Qg

How many lines of hyper experimental code have you created before?
Treating your existing working code like a weird science experiment?

Re: how many lines you coded?

<acbc1411-fe0e-4eda-b48a-4d3c52f3a5dan@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=26672&group=comp.lang.c#26672

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:6214:186e:b0:635:e19a:6cc4 with SMTP id eh14-20020a056214186e00b00635e19a6cc4mr9390qvb.2.1690361073132;
Wed, 26 Jul 2023 01:44:33 -0700 (PDT)
X-Received: by 2002:a05:6808:238e:b0:3a3:a704:6e40 with SMTP id
bp14-20020a056808238e00b003a3a7046e40mr3767535oib.3.1690361072728; Wed, 26
Jul 2023 01:44:32 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Wed, 26 Jul 2023 01:44:32 -0700 (PDT)
In-Reply-To: <u9q4c2$1d40h$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.173; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.173
References: <dbb29689-380e-4d7c-8088-91d68e418033n@googlegroups.com>
<u9jvre$b0q1$4@dont-email.me> <u9q4c2$1d40h$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <acbc1411-fe0e-4eda-b48a-4d3c52f3a5dan@googlegroups.com>
Subject: Re: how many lines you coded?
From: profesor...@gmail.com (fir)
Injection-Date: Wed, 26 Jul 2023 08:44:33 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: fir - Wed, 26 Jul 2023 08:44 UTC

środa, 26 lipca 2023 o 05:36:57 UTC+2 Chris M. Thomasson napisał(a):
> On 7/23/2023 12:42 PM, Chris M. Thomasson wrote:
> > On 7/23/2023 10:29 AM, fir wrote:
> >> how many lines you coded in your life? if you give an answer try to be
> >> real
> >
> > God damn. Millions? Maybe more? Good question.
> >
> >
> >> (and not count data and duplicates)
> >> i myself estimated 200-300k hovever after thinking i think it may be
> >> closer to 200k (my newer projects take about 130k or something more
> >> but i also got some older i coand count now.. i would say for sure it
> >> was no less than 170k but how many above this thios one i can
> >> count/memorize now)
> >>
> >> are you able to estimate?
> >
> Some of that code was pure experimentation. I treated my some of my code
> like it was some sort of god damn lab rat. Nasty!
>
> https://youtu.be/SsAFen9b2Qg
>
> How many lines of hyper experimental code have you created before?
> Treating your existing working code like a weird science experiment?

not so much as i dont write so much experimental code it just to be dleted,
its ratcher simple unfinished projects, but not finished becouse lack of time
(sad becouse many of them would be good but im avare i got no 2 years on each)

i uploaded somewhat newer version of assembler

https://fastupload.io/zU29wbmaRh2o3et/file

thouch not much changed i added this marking opcodes in log and
terat things like 0 1 2 200 as ints in data section (before they were treated as chars but
ints probebly better)

Re: how many lines you coded?

<a1a4c1c5-c7d9-4963-b5e0-d52fddd85c07n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=26686&group=comp.lang.c#26686

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:622a:1a25:b0:403:b55e:d4b2 with SMTP id f37-20020a05622a1a2500b00403b55ed4b2mr6409qtb.9.1690383840673;
Wed, 26 Jul 2023 08:04:00 -0700 (PDT)
X-Received: by 2002:a05:6808:209c:b0:3a2:ac4:88dd with SMTP id
s28-20020a056808209c00b003a20ac488ddmr5367253oiw.4.1690383840414; Wed, 26 Jul
2023 08:04:00 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Wed, 26 Jul 2023 08:04:00 -0700 (PDT)
In-Reply-To: <dbb29689-380e-4d7c-8088-91d68e418033n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2600:1700:5f82:5000:a5aa:367e:fa1b:8227;
posting-account=3ty6FAkAAACYEfch20jQ1ZACFatw-Vdx
NNTP-Posting-Host: 2600:1700:5f82:5000:a5aa:367e:fa1b:8227
References: <dbb29689-380e-4d7c-8088-91d68e418033n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a1a4c1c5-c7d9-4963-b5e0-d52fddd85c07n@googlegroups.com>
Subject: Re: how many lines you coded?
From: edproc...@gmail.com (Ed Prochak)
Injection-Date: Wed, 26 Jul 2023 15:04:00 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2394
 by: Ed Prochak - Wed, 26 Jul 2023 15:04 UTC

On Sunday, July 23, 2023 at 1:29:49 PM UTC-4, fir wrote:
> how many lines you coded in your life? if you give an answer try to be real
> (and not count data and duplicates)
> i myself estimated 200-300k hovever after thinking i think it may be closer to 200k (my newer projects take about 130k or something more but i also got some older i coand count now.. i would say for sure it was no less than 170k but how many above this thios one i can count/memorize now)
>
> are you able to estimate?

Context: software development for a little over 40 years
Initial estimate:
One of 3 original developers at a startup company.
At working prototype stage we counted 6 million lines
of C & C# code. I estimate I produced about 1 million of that.
That took 4 years of work with a team growing to 12.
I also developed code there for build and install scripts,
custom controller languages and more.

So I also have noted that the number of lines of design
and other documentation I produced exceeds the code
by a factor of 5 or so.

Other places I produced much less code, but I think
I can claim a couple million lines over 40 years.

Ed

Re: how many lines you coded?

<767160e3-47b8-4965-8bf1-0ee024662f9an@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=26726&group=comp.lang.c#26726

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:622a:18a6:b0:403:e7ee:e750 with SMTP id v38-20020a05622a18a600b00403e7eee750mr15429qtc.4.1690445776065;
Thu, 27 Jul 2023 01:16:16 -0700 (PDT)
X-Received: by 2002:a4a:41d5:0:b0:563:47e5:d5a4 with SMTP id
x204-20020a4a41d5000000b0056347e5d5a4mr2771318ooa.0.1690445775656; Thu, 27
Jul 2023 01:16:15 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Thu, 27 Jul 2023 01:16:15 -0700 (PDT)
In-Reply-To: <a1a4c1c5-c7d9-4963-b5e0-d52fddd85c07n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.54; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.54
References: <dbb29689-380e-4d7c-8088-91d68e418033n@googlegroups.com> <a1a4c1c5-c7d9-4963-b5e0-d52fddd85c07n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <767160e3-47b8-4965-8bf1-0ee024662f9an@googlegroups.com>
Subject: Re: how many lines you coded?
From: profesor...@gmail.com (fir)
Injection-Date: Thu, 27 Jul 2023 08:16:16 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3000
 by: fir - Thu, 27 Jul 2023 08:16 UTC

środa, 26 lipca 2023 o 17:04:09 UTC+2 Ed Prochak napisał(a):
> On Sunday, July 23, 2023 at 1:29:49 PM UTC-4, fir wrote:
> > how many lines you coded in your life? if you give an answer try to be real
> > (and not count data and duplicates)
> > i myself estimated 200-300k hovever after thinking i think it may be closer to 200k (my newer projects take about 130k or something more but i also got some older i coand count now.. i would say for sure it was no less than 170k but how many above this thios one i can count/memorize now)
> >
> > are you able to estimate?
> Context: software development for a little over 40 years
> Initial estimate:
> One of 3 original developers at a startup company.
> At working prototype stage we counted 6 million lines
> of C & C# code. I estimate I produced about 1 million of that.
> That took 4 years of work with a team growing to 12.
> I also developed code there for build and install scripts,
> custom controller languages and more.
>
> So I also have noted that the number of lines of design
> and other documentation I produced exceeds the code
> by a factor of 5 or so.
>
> Other places I produced much less code, but I think
> I can claim a couple million lines over 40 years.
>

saying couple milion i think is inprecise as imo it would be reallu nlike to
write more than 2 milions

saying realistically one writes 50k a year x40 years = 2 milions

*i would be able writing 50k a year (very intensive month is 10k but need to rest)
but i not code year by year... also not sure if not beoin 45+ people not code slower

Re: how many lines you coded?

<ua1ntl$2d0os$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=26786&group=comp.lang.c#26786

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: lynnmcgu...@gmail.com (Lynn McGuire)
Newsgroups: comp.lang.c
Subject: Re: how many lines you coded?
Date: Fri, 28 Jul 2023 19:53:09 -0500
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <ua1ntl$2d0os$1@dont-email.me>
References: <dbb29689-380e-4d7c-8088-91d68e418033n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 29 Jul 2023 00:53:09 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="58023ed66c93f1717de097b4b10ad854";
logging-data="2523932"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19TG1nUwY8mrhyx8mWa9agQS2O6jkwpMWQ="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.13.1
Cancel-Lock: sha1:Rfd5vbrMz1Z/h1urUw+AL8FYPk8=
Content-Language: en-US
In-Reply-To: <dbb29689-380e-4d7c-8088-91d68e418033n@googlegroups.com>
 by: Lynn McGuire - Sat, 29 Jul 2023 00:53 UTC

On 7/23/2023 12:29 PM, fir wrote:
> how many lines you coded in your life? if you give an answer try to be real
> (and not count data and duplicates)
> i myself estimated 200-300k hovever after thinking i think it may be closer to 200k (my newer projects take about 130k or something more but i also got some older i coand count now.. i would say for sure it was no less than 170k but how many above this thios one i can count/memorize now)
>
> are you able to estimate?

That is a very hard number to quantify. And in just C code or all codes
? At least a half million LOC since 1975 in Fortran 66, Fortran 77, IBM
370 Assembler, Basic, Pascal, C, C++, HTML, Perl.

I am the chief shepherd for 730,000 lines of Fortran 77 code and 600,000
lines of C and mostly C++ code for a Windows desktop engineering
software product sold commercially.

Lynn

Re: how many lines you coded?

<edc6b91c-d6d6-4fee-b600-63c070e4a7d9n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=26852&group=comp.lang.c#26852

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:620a:141:b0:765:a55c:b638 with SMTP id e1-20020a05620a014100b00765a55cb638mr25212qkn.2.1690778327848;
Sun, 30 Jul 2023 21:38:47 -0700 (PDT)
X-Received: by 2002:a05:6870:7716:b0:1bb:3d39:9c03 with SMTP id
dw22-20020a056870771600b001bb3d399c03mr10680013oab.9.1690778327658; Sun, 30
Jul 2023 21:38:47 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Sun, 30 Jul 2023 21:38:47 -0700 (PDT)
In-Reply-To: <767160e3-47b8-4965-8bf1-0ee024662f9an@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2600:1700:5f82:5000:545a:2982:9d74:ecff;
posting-account=3ty6FAkAAACYEfch20jQ1ZACFatw-Vdx
NNTP-Posting-Host: 2600:1700:5f82:5000:545a:2982:9d74:ecff
References: <dbb29689-380e-4d7c-8088-91d68e418033n@googlegroups.com>
<a1a4c1c5-c7d9-4963-b5e0-d52fddd85c07n@googlegroups.com> <767160e3-47b8-4965-8bf1-0ee024662f9an@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <edc6b91c-d6d6-4fee-b600-63c070e4a7d9n@googlegroups.com>
Subject: Re: how many lines you coded?
From: edproc...@gmail.com (Ed Prochak)
Injection-Date: Mon, 31 Jul 2023 04:38:47 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3157
 by: Ed Prochak - Mon, 31 Jul 2023 04:38 UTC

On Thursday, July 27, 2023 at 4:16:24 AM UTC-4, fir wrote:
> środa, 26 lipca 2023 o 17:04:09 UTC+2 Ed Prochak napisał(a):
> > On Sunday, July 23, 2023 at 1:29:49 PM UTC-4, fir wrote:
> > > how many lines you coded in your life? if you give an answer try to be real
> > > (and not count data and duplicates)
[]
> > >
> > > are you able to estimate?
> >
> > Context: software development for a little over 40 years
> > Initial estimate:
> > One of 3 original developers at a startup company.
> > At working prototype stage we counted 6 million lines
> > of C & C# code. I estimate I produced about 1 million of that.
> > That took 4 years of work with a team growing to 12.
> > I also developed code there for build and install scripts,
> > custom controller languages and more.
> >
> > So I also have noted that the number of lines of design
> > and other documentation I produced exceeds the code
> > by a factor of 5 or so.
> >
> > Other places I produced much less code, but I think
> > I can claim a couple million lines over 40 years.
> >
> saying couple milion i think is inprecise as imo it would be reallu nlike to
> write more than 2 milions

Just a matter of grammar, and I prefer to be conservative.
>
> saying realistically one writes 50k a year x40 years = 2 milions

yes that could be right. Some years more some years less.
Years with less code are likely occupied with design or other
documentation required.
>
> *i would be able writing 50k a year (very intensive month is 10k but need to rest)
> but i not code year by year... also not sure if not beoin 45+ people not code slower

And how well is your code documented? Both design and operation?
Ed


devel / comp.lang.c / Re: how many lines you coded?

Pages:1234
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor