Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

You can't go home again, unless you set $HOME.


devel / comp.lang.c / Re: exremally stupid error

SubjectAuthor
* exremally stupid errorfir
+* Re: exremally stupid errorKaz Kylheku
|+- Re: exremally stupid errorfir
|`* Re: exremally stupid errorJan van den Broek
| +- Re: exremally stupid errorfir
| `- Re: exremally stupid errorKaz Kylheku
+* Re: exremally stupid errorfir
|`* Re: exremally stupid errorBen
| `* Re: exremally stupid errorfir
|  `* Re: exremally stupid errorDavid Brown
|   `* Re: exremally stupid errorfir
|    `* Re: exremally stupid errorDavid Brown
|     `* Re: exremally stupid errorfir
|      +* Re: exremally stupid errorfir
|      |`* Re: exremally stupid errorfir
|      | `* Re: exremally stupid errorfir
|      |  `* Re: exremally stupid errorfir
|      |   `* Re: exremally stupid errorfir
|      |    `* Re: exremally stupid errorfir
|      |     `- Re: exremally stupid errorfir
|      `* Re: exremally stupid errorBen
|       `- Re: exremally stupid errorfir
`* Re: exremally stupid errorRosario19
 `* Re: exremally stupid errorfir
  `- Re: exremally stupid errorfir

1
exremally stupid error

<06dc9d11-9df3-485d-a279-3a949b712924n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:ac8:5a15:0:b0:2f3:d052:216a with SMTP id n21-20020ac85a15000000b002f3d052216amr7109492qta.597.1652490756152;
Fri, 13 May 2022 18:12:36 -0700 (PDT)
X-Received: by 2002:a37:9d82:0:b0:69f:9cc9:135d with SMTP id
g124-20020a379d82000000b0069f9cc9135dmr5757223qke.371.1652490755958; Fri, 13
May 2022 18:12:35 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.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: Fri, 13 May 2022 18:12:35 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.252; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.252
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <06dc9d11-9df3-485d-a279-3a949b712924n@googlegroups.com>
Subject: exremally stupid error
From: profesor...@gmail.com (fir)
Injection-Date: Sat, 14 May 2022 01:12:36 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 3452
 by: fir - Sat, 14 May 2022 01:12 UTC

i write my compiler and i got some rutine

RunFrame
{

DrawLine3d 20.0 30.0 40.0 100.0 0.0 400.0 0xaaaa77
DrawLine3d 22.0 30.0 43.0 130.0 0.0 400.0 0xaaaa77
DrawLine3d 29.0 30.0 42.0 130.0 0.0 400.0 0xaaaa77

}

I got 3 routines that draw lines there and it worx

the problem is ehen i putt those routines in separate call like

foo
{ DrawLine3d 20.0 30.0 40.0 100.0 0.0 400.0 0xaaaa77
DrawLine3d 22.0 30.0 43.0 130.0 0.0 400.0 0xaaaa77
DrawLine3d 29.0 30.0 42.0 130.0 0.0 400.0 0xaaaa77
}

and call this foo from DrawFrame then it crashes though
ime the assembly is the same (rxcep this call and ret)

In fact it DOnt crashes immediatelly if those lines fiit in the centre of
screen it dont crasjes it only crashes when i move camere and those lines
began to become partially outside the window (though this function clips etc and the oryginal version worx ok)

what the hell it could be - i post the executable files and even compiler so you could run and see

https://filebin.net/kap86bfd533x7491

teh assembly generated seems to be ok

DeawLines:
//l.128 DrawLine3d 20.0 30.0 40.0 100.0 1.0 400.0 0xaaaa77
mov eax 11184759
push eax
mov eax 1137180672
push eax
mov eax 1065353216
push eax
mov eax 1120403456
push eax
mov eax 1109393408
push eax
mov eax 1106247680
push eax
mov eax 1101004800
push eax
call ("green_fire.dll"->DrawLine3d)
pop eax
pop eax
pop eax
pop eax
pop eax
pop eax
pop eax
//l.129 DrawLine3d 22.0 30.0 43.0 130.0 2.0 400.0 0xaaaa77
mov eax 11184759
push eax
mov eax 1137180672
push eax
mov eax 1073741824
push eax
mov eax 1124204544
push eax
mov eax 1110179840
push eax
mov eax 1106247680
push eax
mov eax 1102053376
push eax
call ("green_fire.dll"->DrawLine3d)
pop eax
pop eax
pop eax
pop eax
pop eax
pop eax
pop eax
//l.130 DrawLine3d 29.0 30.0 42.0 130.0 3.0 400.0 0xaaaa77
mov eax 11184759
push eax
mov eax 1137180672
push eax
mov eax 1077936128
push eax
mov eax 1124204544
push eax
mov eax 1109917696
push eax
mov eax 1106247680
push eax
mov eax 1105723392
push eax
call ("green_fire.dll"->DrawLine3d)
pop eax
pop eax
pop eax
pop eax
pop eax
pop eax
pop eax
//l.133 }

ret

Re: exremally stupid error

<20220513181501.968@kylheku.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: 480-992-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c
Subject: Re: exremally stupid error
Date: Sat, 14 May 2022 01:19:14 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <20220513181501.968@kylheku.com>
References: <06dc9d11-9df3-485d-a279-3a949b712924n@googlegroups.com>
Injection-Date: Sat, 14 May 2022 01:19:14 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="5ba35638ddf3993063bc01b7d12b3086";
logging-data="11900"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ngLH3khX/qIlM3g8krteEoagvp0ZwfUE="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:cQJ9JHaVs3eka4WZvq3+VxHhF+8=
 by: Kaz Kylheku - Sat, 14 May 2022 01:19 UTC

On 2022-05-14, fir <profesor.fir@gmail.com> wrote:
> what the hell it could be

What the hell, indeed.

Is it a bird? ... a plane?

No! It's a dumb pollack writing incoherent nonsense about things having
no relation to C.

In a few minutes, we will have your local weather, followed by the
bridges-and-tunnels traffic report. But first, off-topic, abrasive
banter Bonita Montero, followed by complete drivel from Skybuck ...

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal

Re: exremally stupid error

<d71b58f5-8e32-4cfc-b52e-a14a4d315ee5n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:ac8:5dcc:0:b0:2f3:d8d2:7cf with SMTP id e12-20020ac85dcc000000b002f3d8d207cfmr7153625qtx.464.1652491571514;
Fri, 13 May 2022 18:26:11 -0700 (PDT)
X-Received: by 2002:a05:620a:458b:b0:6a0:3399:c9dd with SMTP id
bp11-20020a05620a458b00b006a03399c9ddmr5565713qkb.630.1652491571367; Fri, 13
May 2022 18:26:11 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.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: Fri, 13 May 2022 18:26:11 -0700 (PDT)
In-Reply-To: <20220513181501.968@kylheku.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.52; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.52
References: <06dc9d11-9df3-485d-a279-3a949b712924n@googlegroups.com> <20220513181501.968@kylheku.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d71b58f5-8e32-4cfc-b52e-a14a4d315ee5n@googlegroups.com>
Subject: Re: exremally stupid error
From: profesor...@gmail.com (fir)
Injection-Date: Sat, 14 May 2022 01:26:11 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1808
 by: fir - Sat, 14 May 2022 01:26 UTC

sobota, 14 maja 2022 o 03:19:28 UTC+2 Kaz Kylheku napisał(a):
> On 2022-05-14, fir <profes...@gmail.com> wrote:
> > what the hell it could be
> What the hell, indeed.
>
> Is it a bird? ... a plane?
>
> No! It's a dumb pollack writing incoherent nonsense about things having
> no relation to C.
>
> In a few minutes, we will have your local weather, followed by the
> bridges-and-tunnels traffic report. But first, off-topic, abrasive
> banter Bonita Montero, followed by complete drivel from Skybuck ...
>
>
maybe in your brainwashed world...in fact this is normal c programming

Re: exremally stupid error

<t5nn7q$4ph$2@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!aioe.org!jq7O/jqDQn699xZWUllLRw.user.46.165.242.75.POSTED!not-for-mail
From: balgl...@dds.nl (Jan van den Broek)
Newsgroups: comp.lang.c
Subject: Re: exremally stupid error
Date: Sat, 14 May 2022 07:54:34 -0000 (UTC)
Organization: Sirius Cybernetics Corp.
Message-ID: <t5nn7q$4ph$2@gioia.aioe.org>
References: <06dc9d11-9df3-485d-a279-3a949b712924n@googlegroups.com>
<20220513181501.968@kylheku.com>
Injection-Info: gioia.aioe.org; logging-data="4913"; posting-host="jq7O/jqDQn699xZWUllLRw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: slrn/1.0.3 (Linux)
X-URL: http://balglaas.sdf.org
X-Order: Two pints of lager and a packet of crisps, please.
X-Answer: 42
Reply-By: Thu, 01 Jan 1970 01:00:00
X-Notice: Filtered by postfilter v. 0.9.2
X-No-Ahbou: yes
X-Message-Flag: Your mailbox is corrupt. Upgrade your mail software.
X-rays: Do not expose this message to X-rays.
X-Question: never, never known not even by many to exist
 by: Jan van den Broek - Sat, 14 May 2022 07:54 UTC

2022-05-14, Kaz Kylheku <480-992-1380@kylheku.com> schrieb:
> On 2022-05-14, fir <profesor.fir@gmail.com> wrote:
>> what the hell it could be
>
> What the hell, indeed.
>
> Is it a bird? ... a plane?
>
> No! It's a dumb pollack writing incoherent nonsense about things having
> no relation to C.
>
> In a few minutes, we will have your local weather, followed by the
> bridges-and-tunnels traffic report. But first, off-topic, abrasive
> banter Bonita Montero, followed by complete drivel from Skybuck ...

And that is the reason that newsreaders have killfiles.

--
Jan v/d Broek
balglaas@dds.nl

Re: exremally stupid error

<3f646935-1d4c-412c-8493-be03783e0815n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:620a:414d:b0:6a0:2035:f097 with SMTP id k13-20020a05620a414d00b006a02035f097mr6279330qko.458.1652521910682;
Sat, 14 May 2022 02:51:50 -0700 (PDT)
X-Received: by 2002:a05:622a:11c5:b0:2f3:dc98:30c7 with SMTP id
n5-20020a05622a11c500b002f3dc9830c7mr8095298qtk.135.1652521910490; Sat, 14
May 2022 02:51:50 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.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: Sat, 14 May 2022 02:51:50 -0700 (PDT)
In-Reply-To: <t5nn7q$4ph$2@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.233; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.233
References: <06dc9d11-9df3-485d-a279-3a949b712924n@googlegroups.com>
<20220513181501.968@kylheku.com> <t5nn7q$4ph$2@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3f646935-1d4c-412c-8493-be03783e0815n@googlegroups.com>
Subject: Re: exremally stupid error
From: profesor...@gmail.com (fir)
Injection-Date: Sat, 14 May 2022 09:51:50 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2084
 by: fir - Sat, 14 May 2022 09:51 UTC

sobota, 14 maja 2022 o 09:54:47 UTC+2 Jan van den Broek napisał(a):
> 2022-05-14, Kaz Kylheku <480-99...@kylheku.com> schrieb:
> > On 2022-05-14, fir <profes...@gmail.com> wrote:
> >> what the hell it could be
> >
> > What the hell, indeed.
> >
> > Is it a bird? ... a plane?
> >
> > No! It's a dumb pollack writing incoherent nonsense about things having
> > no relation to C.
> >
> > In a few minutes, we will have your local weather, followed by the
> > bridges-and-tunnels traffic report. But first, off-topic, abrasive
> > banter Bonita Montero, followed by complete drivel from Skybuck ...
> And that is the reason that newsreaders have killfiles.
>
> --
> Jan v/d Broek
> balg...@dds.nl

well i should add you weak shittalkers..never say something valueable on point, first
to talk shit

Re: exremally stupid error

<7de1d8c8-aa16-46ca-8692-2d102d5f7e4bn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:6214:2aa2:b0:45a:ff4f:a656 with SMTP id js2-20020a0562142aa200b0045aff4fa656mr8376522qvb.90.1652539122741;
Sat, 14 May 2022 07:38:42 -0700 (PDT)
X-Received: by 2002:a05:620a:2544:b0:680:a53b:ec1a with SMTP id
s4-20020a05620a254400b00680a53bec1amr7058263qko.544.1652539122481; Sat, 14
May 2022 07:38:42 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.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: Sat, 14 May 2022 07:38:42 -0700 (PDT)
In-Reply-To: <06dc9d11-9df3-485d-a279-3a949b712924n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.246; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.246
References: <06dc9d11-9df3-485d-a279-3a949b712924n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7de1d8c8-aa16-46ca-8692-2d102d5f7e4bn@googlegroups.com>
Subject: Re: exremally stupid error
From: profesor...@gmail.com (fir)
Injection-Date: Sat, 14 May 2022 14:38:42 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: fir - Sat, 14 May 2022 14:38 UTC

sobota, 14 maja 2022 o 03:12:42 UTC+2 fir napisał(a):
> i write my compiler and i got some rutine
>
> RunFrame
> {
>
> DrawLine3d 20.0 30.0 40.0 100.0 0.0 400.0 0xaaaa77
> DrawLine3d 22.0 30.0 43.0 130.0 0.0 400.0 0xaaaa77
> DrawLine3d 29.0 30.0 42.0 130.0 0.0 400.0 0xaaaa77
>
> }
>
> I got 3 routines that draw lines there and it worx
>
> the problem is ehen i putt those routines in separate call like
>
> foo
> {
> DrawLine3d 20.0 30.0 40.0 100.0 0.0 400.0 0xaaaa77
> DrawLine3d 22.0 30.0 43.0 130.0 0.0 400.0 0xaaaa77
> DrawLine3d 29.0 30.0 42.0 130.0 0.0 400.0 0xaaaa77
> }
>
> and call this foo from DrawFrame then it crashes though
> ime the assembly is the same (rxcep this call and ret)
>
> In fact it DOnt crashes immediatelly if those lines fiit in the centre of
> screen it dont crasjes it only crashes when i move camere and those lines
> began to become partially outside the window (though this function clips etc and the oryginal version worx ok)
>
>
> what the hell it could be - i post the executable files and even compiler so you could run and see
>
>
> https://filebin.net/kap86bfd533x7491
>
>
> teh assembly generated seems to be ok
>
>
> DeawLines:
> //l.128 DrawLine3d 20.0 30.0 40.0 100.0 1.0 400.0 0xaaaa77
> mov eax 11184759
> push eax
> mov eax 1137180672
> push eax
> mov eax 1065353216
> push eax
> mov eax 1120403456
> push eax
> mov eax 1109393408
> push eax
> mov eax 1106247680
> push eax
> mov eax 1101004800
> push eax
> call ("green_fire.dll"->DrawLine3d)
> pop eax
> pop eax
> pop eax
> pop eax
> pop eax
> pop eax
> pop eax
> //l.129 DrawLine3d 22.0 30.0 43.0 130.0 2.0 400.0 0xaaaa77
> mov eax 11184759
> push eax
> mov eax 1137180672
> push eax
> mov eax 1073741824
> push eax
> mov eax 1124204544
> push eax
> mov eax 1110179840
> push eax
> mov eax 1106247680
> push eax
> mov eax 1102053376
> push eax
> call ("green_fire.dll"->DrawLine3d)
> pop eax
> pop eax
> pop eax
> pop eax
> pop eax
> pop eax
> pop eax
> //l.130 DrawLine3d 29.0 30.0 42.0 130.0 3.0 400.0 0xaaaa77
> mov eax 11184759
> push eax
> mov eax 1137180672
> push eax
> mov eax 1077936128
> push eax
> mov eax 1124204544
> push eax
> mov eax 1109917696
> push eax
> mov eax 1106247680
> push eax
> mov eax 1105723392
> push eax
> call ("green_fire.dll"->DrawLine3d)
> pop eax
> pop eax
> pop eax
> pop eax
> pop eax
> pop eax
> pop eax
> //l.133 }
>
> ret

alright it was caused by -Ofast flag used to compile the library (it turns on -O3 and i got problems with this O3 already back then)

Re: exremally stupid error

<20220514084847.227@kylheku.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: 480-992-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c
Subject: Re: exremally stupid error
Date: Sat, 14 May 2022 15:50:54 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <20220514084847.227@kylheku.com>
References: <06dc9d11-9df3-485d-a279-3a949b712924n@googlegroups.com>
<20220513181501.968@kylheku.com> <t5nn7q$4ph$2@gioia.aioe.org>
Injection-Date: Sat, 14 May 2022 15:50:54 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="5ba35638ddf3993063bc01b7d12b3086";
logging-data="29344"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Xs+Z2trBqCviHOuS1BGARKv/Q4XKC9H8="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:IsZkHf49dPZhRy7CCONzmX/fqxw=
 by: Kaz Kylheku - Sat, 14 May 2022 15:50 UTC

On 2022-05-14, Jan van den Broek <balglaas@dds.nl> wrote:
> 2022-05-14, Kaz Kylheku <480-992-1380@kylheku.com> schrieb:
>> On 2022-05-14, fir <profesor.fir@gmail.com> wrote:
>>> what the hell it could be
>>
>> What the hell, indeed.
>>
>> Is it a bird? ... a plane?
>>
>> No! It's a dumb pollack writing incoherent nonsense about things having
>> no relation to C.
>>
>> In a few minutes, we will have your local weather, followed by the
>> bridges-and-tunnels traffic report. But first, off-topic, abrasive
>> banter Bonita Montero, followed by complete drivel from Skybuck ...
>
> And that is the reason that newsreaders have killfiles.

Yes; but what newsreaders need is stronger killfiles that can't be
temporarily circumvented with a couple of keystrokes in situations when
they report "3 new articles" and they are all killed.

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal

Re: exremally stupid error

<877d6ot73f.fsf@bsb.me.uk>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ben.use...@bsb.me.uk (Ben)
Newsgroups: comp.lang.c
Subject: Re: exremally stupid error
Date: Sat, 14 May 2022 17:24:52 +0100
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <877d6ot73f.fsf@bsb.me.uk>
References: <06dc9d11-9df3-485d-a279-3a949b712924n@googlegroups.com>
<7de1d8c8-aa16-46ca-8692-2d102d5f7e4bn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="e15a6e7790c7684a121ff07a3ede6665";
logging-data="9856"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/KmT69wmaecHrCuuiSYmraKsNGHvbCixE="
Cancel-Lock: sha1:r/z456RWdXFs/Cj1iKHwJ0Pnc+c=
sha1:SPL/weAG76Q2aSo0SqteRwWFY50=
X-BSB-Auth: 1.d25578a1b04a7b1fded9.20220514172452BST.877d6ot73f.fsf@bsb.me.uk
 by: Ben - Sat, 14 May 2022 16:24 UTC

fir <profesor.fir@gmail.com> writes:

> alright it was caused by -Ofast flag used to compile the library (it
> turns on -O3 and i got problems with this O3 already back then)

It's more accurate (usually) to say that a bug is revealed by an
optimisation setting. It's possible that -Ofast introduced a bug, but
that's a rather rate occurrence.

--
Ben.

Re: exremally stupid error

<bf1b5aaf-542d-40c0-8bac-d169d2d6536en@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:ad4:596c:0:b0:45d:b08f:830f with SMTP id eq12-20020ad4596c000000b0045db08f830fmr9027238qvb.86.1652545874288;
Sat, 14 May 2022 09:31:14 -0700 (PDT)
X-Received: by 2002:a37:62d1:0:b0:69f:85e0:9b7a with SMTP id
w200-20020a3762d1000000b0069f85e09b7amr7187936qkb.100.1652545874132; Sat, 14
May 2022 09:31:14 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.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: Sat, 14 May 2022 09:31:13 -0700 (PDT)
In-Reply-To: <877d6ot73f.fsf@bsb.me.uk>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.15; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.15
References: <06dc9d11-9df3-485d-a279-3a949b712924n@googlegroups.com>
<7de1d8c8-aa16-46ca-8692-2d102d5f7e4bn@googlegroups.com> <877d6ot73f.fsf@bsb.me.uk>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <bf1b5aaf-542d-40c0-8bac-d169d2d6536en@googlegroups.com>
Subject: Re: exremally stupid error
From: profesor...@gmail.com (fir)
Injection-Date: Sat, 14 May 2022 16:31:14 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2026
 by: fir - Sat, 14 May 2022 16:31 UTC

sobota, 14 maja 2022 o 18:25:06 UTC+2 Ben napisał(a):
> fir <profes...@gmail.com> writes:
>
> > alright it was caused by -Ofast flag used to compile the library (it
> > turns on -O3 and i got problems with this O3 already back then)
> It's more accurate (usually) to say that a bug is revealed by an
> optimisation setting. It's possible that -Ofast introduced a bug, but
> that's a rather rate occurrence.
>
i dont think so note they have such flags as -funsafe-math-optimizations -mfpmath=both
and so on, they just turn things to ride on the edge i guess, i suspect that maybe they
needed 16 bytes aligned stack frame or something, but i dont care to debug on binary level
as im weak/not much used to it (still if someone wants to check binaries are provided)

Re: exremally stupid error

<t5qj46$e23$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: exremally stupid error
Date: Sun, 15 May 2022 12:02:45 +0200
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <t5qj46$e23$1@dont-email.me>
References: <06dc9d11-9df3-485d-a279-3a949b712924n@googlegroups.com>
<7de1d8c8-aa16-46ca-8692-2d102d5f7e4bn@googlegroups.com>
<877d6ot73f.fsf@bsb.me.uk>
<bf1b5aaf-542d-40c0-8bac-d169d2d6536en@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 15 May 2022 10:02:46 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="c237dced0445534dfb4d9eea483e4719";
logging-data="14403"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/sh3lNso4ogd4Jj7zRZ+pfT+Q+CP7BDX4="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
Cancel-Lock: sha1:ASiKciZVCeGsqXfjlFwVUvpDwUo=
In-Reply-To: <bf1b5aaf-542d-40c0-8bac-d169d2d6536en@googlegroups.com>
Content-Language: en-GB
 by: David Brown - Sun, 15 May 2022 10:02 UTC

On 14/05/2022 18:31, fir wrote:
> sobota, 14 maja 2022 o 18:25:06 UTC+2 Ben napisał(a):
>> fir <profes...@gmail.com> writes:
>>
>>> alright it was caused by -Ofast flag used to compile the library (it
>>> turns on -O3 and i got problems with this O3 already back then)
>> It's more accurate (usually) to say that a bug is revealed by an
>> optimisation setting. It's possible that -Ofast introduced a bug, but
>> that's a rather rate occurrence.
>>
> i dont think so note they have such flags as -funsafe-math-optimizations -mfpmath=both
> and so on, they just turn things to ride on the edge i guess, i suspect that maybe they
> needed 16 bytes aligned stack frame or something, but i dont care to debug on binary level
> as im weak/not much used to it (still if someone wants to check binaries are provided)

The "-funsafe-math-optimizations" flag does not give you a risk of the
compiler generating bad code. It means that the generated code might
not give the same results as specified by the IEEE standards - perhaps
rearrangements will lead to different rounding, or the compiler might
make some assumptions that reduce the amount of checking of arguments it
does.

<https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#index-funsafe-math-optimizations>

Compilers are never perfect, and have bugs, but as Ben says these are a
rather rare occurrence. They are perhaps more likely when using the
rarer optimisation levels, simply because such flags have less overall
testing in the field, but when you have code that "breaks" when
optimisation is enabled, it is almost always a bug in your own code, or
at least a misunderstanding.

Re: exremally stupid error

<123bf470-f6ab-4851-a13d-7ec5c826ca47n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:620a:4542:b0:6a0:651b:be0b with SMTP id u2-20020a05620a454200b006a0651bbe0bmr9459863qkp.633.1652623944711;
Sun, 15 May 2022 07:12:24 -0700 (PDT)
X-Received: by 2002:a05:622a:148:b0:2f3:e454:760 with SMTP id
v8-20020a05622a014800b002f3e4540760mr12059344qtw.543.1652623944451; Sun, 15
May 2022 07:12:24 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.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: Sun, 15 May 2022 07:12:24 -0700 (PDT)
In-Reply-To: <t5qj46$e23$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.8; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.8
References: <06dc9d11-9df3-485d-a279-3a949b712924n@googlegroups.com>
<7de1d8c8-aa16-46ca-8692-2d102d5f7e4bn@googlegroups.com> <877d6ot73f.fsf@bsb.me.uk>
<bf1b5aaf-542d-40c0-8bac-d169d2d6536en@googlegroups.com> <t5qj46$e23$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <123bf470-f6ab-4851-a13d-7ec5c826ca47n@googlegroups.com>
Subject: Re: exremally stupid error
From: profesor...@gmail.com (fir)
Injection-Date: Sun, 15 May 2022 14:12:24 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 4292
 by: fir - Sun, 15 May 2022 14:12 UTC

niedziela, 15 maja 2022 o 12:03:00 UTC+2 David Brown napisał(a):
> On 14/05/2022 18:31, fir wrote:
> > sobota, 14 maja 2022 o 18:25:06 UTC+2 Ben napisał(a):
> >> fir <profes...@gmail.com> writes:
> >>
> >>> alright it was caused by -Ofast flag used to compile the library (it
> >>> turns on -O3 and i got problems with this O3 already back then)
> >> It's more accurate (usually) to say that a bug is revealed by an
> >> optimisation setting. It's possible that -Ofast introduced a bug, but
> >> that's a rather rate occurrence.
> >>
> > i dont think so note they have such flags as -funsafe-math-optimizations -mfpmath=both
> > and so on, they just turn things to ride on the edge i guess, i suspect that maybe they
> > needed 16 bytes aligned stack frame or something, but i dont care to debug on binary level
> > as im weak/not much used to it (still if someone wants to check binaries are provided)
> The "-funsafe-math-optimizations" flag does not give you a risk of the
> compiler generating bad code. It means that the generated code might
> not give the same results as specified by the IEEE standards - perhaps
> rearrangements will lead to different rounding, or the compiler might
> make some assumptions that reduce the amount of checking of arguments it
> does.
>
> <https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#index-funsafe-math-optimizations>
>
>
>
> Compilers are never perfect, and have bugs, but as Ben says these are a
> rather rare occurrence. They are perhaps more likely when using the
> rarer optimisation levels, simply because such flags have less overall
> testing in the field, but when you have code that "breaks" when
> optimisation is enabled, it is almost always a bug in your own code, or
> at least a misunderstanding.

you should better check than talking generalities which are often false - and
i say this becouse its better to know than talk false generalities becouse its misleading
and harmfull ..sadly many people do that

i remember i got -O3 issues already few years ago (as i almost zero code last years
in coding time it was not so long) that time it was as i remember stack frame aligment
issue on sse commands .. i dont remember the details hovever, .. i just concluded
to not use O3 but in meantime i added -OFast and i was unaware it turns O3

that is PROBABLY the issue, if someone got time may debug it..im personally better move on with code and cant sink in details now (already feel a bit tired though it would be good to have own compiler,
it quite nice, its small liek 500KB on disk and i can redistribute it with sources making them editable like scripts.. its cool... sadly after 3 weeks of coding i feel tired but if i will break the work i will not have soem things and it would be nice to have yet something )

Re: exremally stupid error

<t5rl96$8la$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: exremally stupid error
Date: Sun, 15 May 2022 21:45:40 +0200
Organization: A noiseless patient Spider
Lines: 67
Message-ID: <t5rl96$8la$1@dont-email.me>
References: <06dc9d11-9df3-485d-a279-3a949b712924n@googlegroups.com>
<7de1d8c8-aa16-46ca-8692-2d102d5f7e4bn@googlegroups.com>
<877d6ot73f.fsf@bsb.me.uk>
<bf1b5aaf-542d-40c0-8bac-d169d2d6536en@googlegroups.com>
<t5qj46$e23$1@dont-email.me>
<123bf470-f6ab-4851-a13d-7ec5c826ca47n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 15 May 2022 19:45:42 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="2c279e8a5a47614c41ff9402d333e491";
logging-data="8874"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18MgI/WKYS56kBSOtj/1rT9L+Ah76KoroU="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Cancel-Lock: sha1:slvrmnoE+3UY+dsAtcH2tXqDgZE=
In-Reply-To: <123bf470-f6ab-4851-a13d-7ec5c826ca47n@googlegroups.com>
Content-Language: en-GB
 by: David Brown - Sun, 15 May 2022 19:45 UTC

On 15/05/2022 16:12, fir wrote:
> niedziela, 15 maja 2022 o 12:03:00 UTC+2 David Brown napisał(a):
>> On 14/05/2022 18:31, fir wrote:
>>> sobota, 14 maja 2022 o 18:25:06 UTC+2 Ben napisał(a):
>>>> fir <profes...@gmail.com> writes:
>>>>
>>>>> alright it was caused by -Ofast flag used to compile the library (it
>>>>> turns on -O3 and i got problems with this O3 already back then)
>>>> It's more accurate (usually) to say that a bug is revealed by an
>>>> optimisation setting. It's possible that -Ofast introduced a bug, but
>>>> that's a rather rate occurrence.
>>>>
>>> i dont think so note they have such flags as -funsafe-math-optimizations -mfpmath=both
>>> and so on, they just turn things to ride on the edge i guess, i suspect that maybe they
>>> needed 16 bytes aligned stack frame or something, but i dont care to debug on binary level
>>> as im weak/not much used to it (still if someone wants to check binaries are provided)
>> The "-funsafe-math-optimizations" flag does not give you a risk of the
>> compiler generating bad code. It means that the generated code might
>> not give the same results as specified by the IEEE standards - perhaps
>> rearrangements will lead to different rounding, or the compiler might
>> make some assumptions that reduce the amount of checking of arguments it
>> does.
>>
>> <https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#index-funsafe-math-optimizations>
>>
>>
>>
>> Compilers are never perfect, and have bugs, but as Ben says these are a
>> rather rare occurrence. They are perhaps more likely when using the
>> rarer optimisation levels, simply because such flags have less overall
>> testing in the field, but when you have code that "breaks" when
>> optimisation is enabled, it is almost always a bug in your own code, or
>> at least a misunderstanding.
>
> you should better check than talking generalities which are often false - and
> i say this becouse its better to know than talk false generalities becouse its misleading
> and harmfull ..sadly many people do that
>
> i remember i got -O3 issues already few years ago (as i almost zero code last years
> in coding time it was not so long) that time it was as i remember stack frame aligment
> issue on sse commands .. i dont remember the details hovever, .. i just concluded
> to not use O3 but in meantime i added -OFast and i was unaware it turns O3
>
> that is PROBABLY the issue, if someone got time may debug it..im personally better move on with code and cant sink in details now (already feel a bit tired though it would be good to have own compiler,
> it quite nice, its small liek 500KB on disk and i can redistribute it with sources making them editable like scripts.. its cool... sadly after 3 weeks of coding i feel tired but if i will break the work i will not have soem things and it would be nice to have yet something )
>

If you think the problem is with stack alignments, then it is not a
matter of optimisation flags. x86-64 processors require certain stack
alignments for some of the SIMD instructions (which are more likely to
be used in higher optimisations - thus you will see the problem more
often at higher optimisations, despite it not being an optimisation
issue). Windows DLLs and callbacks often do not have the stack aligned
enough, so if you are using gcc on Windows you might hit such problems.

The answer is to tell gcc that it has to assume you are interacting with
Windows DLLs with poor stack alignment, and it must add extra
instructions to compensate. That is, I believe, the "-mstackrealign" flag.

<https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html>

As I say, it is not an issue with the compiler, it is a misunderstanding
by the user.

(I haven't tested this myself - I have no real interest in programming
on Windows and it is not an issue on Linux.)

Re: exremally stupid error

<318e96e5-cd4c-4413-bc02-f48fb7f8f697n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:6214:400e:b0:45a:ece1:1789 with SMTP id kd14-20020a056214400e00b0045aece11789mr12591404qvb.131.1652649356744;
Sun, 15 May 2022 14:15:56 -0700 (PDT)
X-Received: by 2002:a05:622a:11:b0:2f3:ba6b:7139 with SMTP id
x17-20020a05622a001100b002f3ba6b7139mr13366030qtw.411.1652649356493; Sun, 15
May 2022 14:15:56 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.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: Sun, 15 May 2022 14:15:56 -0700 (PDT)
In-Reply-To: <t5rl96$8la$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.20; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.20
References: <06dc9d11-9df3-485d-a279-3a949b712924n@googlegroups.com>
<7de1d8c8-aa16-46ca-8692-2d102d5f7e4bn@googlegroups.com> <877d6ot73f.fsf@bsb.me.uk>
<bf1b5aaf-542d-40c0-8bac-d169d2d6536en@googlegroups.com> <t5qj46$e23$1@dont-email.me>
<123bf470-f6ab-4851-a13d-7ec5c826ca47n@googlegroups.com> <t5rl96$8la$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <318e96e5-cd4c-4413-bc02-f48fb7f8f697n@googlegroups.com>
Subject: Re: exremally stupid error
From: profesor...@gmail.com (fir)
Injection-Date: Sun, 15 May 2022 21:15:56 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 6185
 by: fir - Sun, 15 May 2022 21:15 UTC

niedziela, 15 maja 2022 o 21:45:56 UTC+2 David Brown napisał(a):
> On 15/05/2022 16:12, fir wrote:
> > niedziela, 15 maja 2022 o 12:03:00 UTC+2 David Brown napisał(a):
> >> On 14/05/2022 18:31, fir wrote:
> >>> sobota, 14 maja 2022 o 18:25:06 UTC+2 Ben napisał(a):
> >>>> fir <profes...@gmail.com> writes:
> >>>>
> >>>>> alright it was caused by -Ofast flag used to compile the library (it
> >>>>> turns on -O3 and i got problems with this O3 already back then)
> >>>> It's more accurate (usually) to say that a bug is revealed by an
> >>>> optimisation setting. It's possible that -Ofast introduced a bug, but
> >>>> that's a rather rate occurrence.
> >>>>
> >>> i dont think so note they have such flags as -funsafe-math-optimizations -mfpmath=both
> >>> and so on, they just turn things to ride on the edge i guess, i suspect that maybe they
> >>> needed 16 bytes aligned stack frame or something, but i dont care to debug on binary level
> >>> as im weak/not much used to it (still if someone wants to check binaries are provided)
> >> The "-funsafe-math-optimizations" flag does not give you a risk of the
> >> compiler generating bad code. It means that the generated code might
> >> not give the same results as specified by the IEEE standards - perhaps
> >> rearrangements will lead to different rounding, or the compiler might
> >> make some assumptions that reduce the amount of checking of arguments it
> >> does.
> >>
> >> <https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#index-funsafe-math-optimizations>
> >>
> >>
> >>
> >> Compilers are never perfect, and have bugs, but as Ben says these are a
> >> rather rare occurrence. They are perhaps more likely when using the
> >> rarer optimisation levels, simply because such flags have less overall
> >> testing in the field, but when you have code that "breaks" when
> >> optimisation is enabled, it is almost always a bug in your own code, or
> >> at least a misunderstanding.
> >
> > you should better check than talking generalities which are often false - and
> > i say this becouse its better to know than talk false generalities becouse its misleading
> > and harmfull ..sadly many people do that
> >
> > i remember i got -O3 issues already few years ago (as i almost zero code last years
> > in coding time it was not so long) that time it was as i remember stack frame aligment
> > issue on sse commands .. i dont remember the details hovever, .. i just concluded
> > to not use O3 but in meantime i added -OFast and i was unaware it turns O3
> >
> > that is PROBABLY the issue, if someone got time may debug it..im personally better move on with code and cant sink in details now (already feel a bit tired though it would be good to have own compiler,
> > it quite nice, its small liek 500KB on disk and i can redistribute it with sources making them editable like scripts.. its cool... sadly after 3 weeks of coding i feel tired but if i will break the work i will not have soem things and it would be nice to have yet something )
> >
> If you think the problem is with stack alignments, then it is not a
> matter of optimisation flags. x86-64 processors require certain stack
> alignments for some of the SIMD instructions (which are more likely to
> be used in higher optimisations - thus you will see the problem more
> often at higher optimisations, despite it not being an optimisation
> issue). Windows DLLs and callbacks often do not have the stack aligned
> enough, so if you are using gcc on Windows you might hit such problems.
>
> The answer is to tell gcc that it has to assume you are interacting with
> Windows DLLs with poor stack alignment, and it must add extra
> instructions to compensate. That is, I believe, the "-mstackrealign" flag..
>
> <https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html>
>
> As I say, it is not an issue with the compiler, it is a misunderstanding
> by the user.
>
> (I haven't tested this myself - I have no real interest in programming
> on Windows and it is not an issue on Linux.)

when i discovered it dont work with O3 i dont wnat to much spoend time on it now,
one need to prioritize work and there are more important things

im not sure but its posible that my demo work on linux by wine emulation

https://filebin.net/hqtyniltng9gu2et

im not sure as i never seen that wine on my eyes ..i mean im not sure if compilation works as iy uses bats but maybe the output exe worx

Re: exremally stupid error

<3f8ad047-b900-466f-9c81-3b14b58229a6n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:ac8:5b96:0:b0:2f8:af64:a0bd with SMTP id a22-20020ac85b96000000b002f8af64a0bdmr2336340qta.463.1652650236975;
Sun, 15 May 2022 14:30:36 -0700 (PDT)
X-Received: by 2002:ac8:7d13:0:b0:2f3:b53c:a691 with SMTP id
g19-20020ac87d13000000b002f3b53ca691mr13386386qtb.525.1652650236790; Sun, 15
May 2022 14:30:36 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.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: Sun, 15 May 2022 14:30:36 -0700 (PDT)
In-Reply-To: <318e96e5-cd4c-4413-bc02-f48fb7f8f697n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.68; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.68
References: <06dc9d11-9df3-485d-a279-3a949b712924n@googlegroups.com>
<7de1d8c8-aa16-46ca-8692-2d102d5f7e4bn@googlegroups.com> <877d6ot73f.fsf@bsb.me.uk>
<bf1b5aaf-542d-40c0-8bac-d169d2d6536en@googlegroups.com> <t5qj46$e23$1@dont-email.me>
<123bf470-f6ab-4851-a13d-7ec5c826ca47n@googlegroups.com> <t5rl96$8la$1@dont-email.me>
<318e96e5-cd4c-4413-bc02-f48fb7f8f697n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3f8ad047-b900-466f-9c81-3b14b58229a6n@googlegroups.com>
Subject: Re: exremally stupid error
From: profesor...@gmail.com (fir)
Injection-Date: Sun, 15 May 2022 21:30:36 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 6408
 by: fir - Sun, 15 May 2022 21:30 UTC

niedziela, 15 maja 2022 o 23:16:03 UTC+2 fir napisał(a):
> niedziela, 15 maja 2022 o 21:45:56 UTC+2 David Brown napisał(a):

> > (I haven't tested this myself - I have no real interest in programming
> > on Windows and it is not an issue on Linux.)
> when i discovered it dont work with O3 i dont wnat to much spoend time on it now,
> one need to prioritize work and there are more important things
>
> im not sure but its posible that my demo work on linux by wine emulation
>
> https://filebin.net/hqtyniltng9gu2et
>
> im not sure as i never seen that wine on my eyes ..i mean im not sure if compilation works as iy uses bats but maybe the output exe worx

it compiles now weird subset of what i call gneralized c, nut i already made a terrible mes in the source of this compiler
writing compiler is in fact not so easy, or i got things not enough retinked to dwell in swamp again

this is becouse programing is standable when one can divide things on small factorized steps and compiler makes ttouble with dat..its probably possible to divide on this easy clear steps but if some halfly conceptualizes things and half go way on shortcuts it become swamp

what i can now compile is like that:

import "green_fire.dll" (cdecl) DrawAACube DrawAAWireCube RandColor SetupLights_3moving SetPointLight DrawDot3d DrawLine3d SetupWindow2 Set3dDrawingMode DrawSomeText2 rand2 ToggleFullscreen ClearFrameData DrawCircle RegisterRunFrame RegisterMouseMove RegisterKeyDown RegisterOnResize SetSleepValue SetScaleOnResize SetupWindow3 (var) frame_size_x frame_size_y frame_bitmap frame_number
import "msvcrt.dll" (cdecl) printf

void SetupLight
SetPointLight 0 1 -1100.0 0.0 0.0 7000.0 50000.0 0.30 1.9 1.3 1.3 0.01 0.01 0.01 0.18 1.1 1.1 1.1 0.01 0.01 0.01
SetPointLight 1 3 1100.0 500.0 500.0 7000.0 50000.0 0.30 1..3 1.9 1.3 0.01 0.01 0.01 0.18 1.1 1.1 1.1 0.01 0.01 0.01
SetPointLight 2 3 0.0 -1500.0 -500.0 7000.0 50000.0 0.30 1.3 1.3 1.9 0.01 0.01 0.01 0.18 1.1 1.1 1.1 0.01 0.01 0.01 ;

void SetupCloud
{
int[1000] cloud_x,
int[1000] cloud_y,
int[1000] cloud_z,
int[1000] cloud_r,
int[1000] cloud_color

0$ i$999$4:
cloud_x[i] = (rand2 200 500),
cloud_y[i] = (rand2 200 500)
cloud_z[i] = (rand2 0 1300)
cloud_r[i] = (rand2 10 20)
cloud_color[i] = (RandColor 0 255 0 255 0 255) ;
}

void SetupCloud2
{
int[1000] cloud2_x,
int[1000] cloud2_y
int[1000] cloud2_z,
int[1000] cloud2_r
int[1000] cloud2_color

0$ i$999$4:
cloud2_x[i] = (rand2 -1200 -500)
cloud2_y[i] = (rand2 -1200 -1500)
cloud2_z[i] = (rand2 0 -1300)
cloud2_r[i] = (rand2 10 20)
cloud2_color[i] = (RandColor 0 255 0 255 0 255) ;
}

void DrawCloud:
0$ i$999$4: DrawDot3d float(cloud_x[i]) float(cloud_y[i]) float(cloud_z[i]) float(cloud_r[i]) cloud_color[i] ;;

void DrawCloud2:
0$ i$999$4: DrawAAWireCube float(cloud_x[i]) float(cloud_y[i]) float(cloud_z[i]) float(cloud_r[i]) cloud_color[i] ;;

void DrawCloud22:
0$ i$999$4: DrawAACube float(cloud2_x[i]) float(cloud2_y[i]) float(cloud2_z[i]) float(cloud2_r[i]) cloud2_color[i] ;;

void DeawLines:
0$ j$995$4: k = j+4, DrawLine3d float(cloud_x[j]) float(cloud_y[j]) float(cloud_z[j]) float(cloud_x[k]) float(cloud_y[k]) float(cloud_z[k]) 0xaaaa77 ;;

// int initialised = 0
void Initialise { initialised?=0: SetupLight, SetupCloud, SetupCloud2, initialised = 1; }

void RunFrame int advance
{
Initialise, ClearFrameData 0x666666
// SetupLights_3moving
// int f = frame_number

DrawLine3d 100.0 100.0 0.0 100.0 -100.0 0.0 0xffffff
DrawLine3d 100.0 -100.0 0.0 -100.0 -100.0 0.0 0xffffff
DrawLine3d -100.0 -100.0 0.0 -100.0 100.0 0.0 0xffffff
DrawLine3d -100.0 100.0 0.0 100.0 100.0 0.0 0xffffff

DrawDot3d 0.0 0.0 100.0 20.0 0x557788
DrawDot3d 0.0 0.0 150.0 30.0 0x557722
DrawDot3d 0.0 0.0 -100.0 10.0 0xaa7788

DrawCloud, // DrawCloud2,
DrawCloud22
DeawLines

}

void ProcessMouseMove mouse_x mouse_y { }
void ProcessKeyDown key {
}
void OnResize { RunFrame }

void main
{
RegisterMouseMove &ProcessMouseMove
RegisterKeyDown &ProcessKeyDown
RegisterOnResize &OnResize
RegisterRunFrame &RunFrame
SetSleepValue 5, SetScaleOnResize 0, Set3dDrawingMode 1
SetupWindow3 " Example Green Fire App compiled by Furia \x00" 20 20 700 500 700 500
}

Re: exremally stupid error

<87fslas6fn.fsf@bsb.me.uk>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ben.use...@bsb.me.uk (Ben)
Newsgroups: comp.lang.c
Subject: Re: exremally stupid error
Date: Mon, 16 May 2022 00:49:00 +0100
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <87fslas6fn.fsf@bsb.me.uk>
References: <06dc9d11-9df3-485d-a279-3a949b712924n@googlegroups.com>
<7de1d8c8-aa16-46ca-8692-2d102d5f7e4bn@googlegroups.com>
<877d6ot73f.fsf@bsb.me.uk>
<bf1b5aaf-542d-40c0-8bac-d169d2d6536en@googlegroups.com>
<t5qj46$e23$1@dont-email.me>
<123bf470-f6ab-4851-a13d-7ec5c826ca47n@googlegroups.com>
<t5rl96$8la$1@dont-email.me>
<318e96e5-cd4c-4413-bc02-f48fb7f8f697n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="b0fc61641ca02cb866397cabd0f2f2d4";
logging-data="4349"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/e2Yp4mi2xdzhXVW0X23LdzkBA7TAx4qw="
Cancel-Lock: sha1:rBZA5BuZexYOs6mJLj7YStUlxz8=
sha1:vJ94Xrr00xghIWdarVjdDKm80e0=
X-BSB-Auth: 1.7ff6c4ed4515ec13ba0e.20220516004900BST.87fslas6fn.fsf@bsb.me.uk
 by: Ben - Sun, 15 May 2022 23:49 UTC

fir <profesor.fir@gmail.com> writes:

> when i discovered it dont work with O3 i dont wnat to much spoend
> time on it now, one need to prioritize work and there are more
> important things

That may be a wasted opportunity. I've found that when things go wrong
with high-levels of optimisation, 9 times out of 10 it's a opportunity to
find a bug that's currently not showing up in testing yet.

--
Ben.

Re: exremally stupid error

<61a371f8-4f1e-4424-97a5-e590fb388c24n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:620a:298c:b0:6a0:94d2:2e39 with SMTP id r12-20020a05620a298c00b006a094d22e39mr10827923qkp.278.1652659035981;
Sun, 15 May 2022 16:57:15 -0700 (PDT)
X-Received: by 2002:a05:6214:5189:b0:45a:c0fb:205d with SMTP id
kl9-20020a056214518900b0045ac0fb205dmr13123975qvb.46.1652659035792; Sun, 15
May 2022 16:57:15 -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: Sun, 15 May 2022 16:57:15 -0700 (PDT)
In-Reply-To: <3f8ad047-b900-466f-9c81-3b14b58229a6n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.194; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.194
References: <06dc9d11-9df3-485d-a279-3a949b712924n@googlegroups.com>
<7de1d8c8-aa16-46ca-8692-2d102d5f7e4bn@googlegroups.com> <877d6ot73f.fsf@bsb.me.uk>
<bf1b5aaf-542d-40c0-8bac-d169d2d6536en@googlegroups.com> <t5qj46$e23$1@dont-email.me>
<123bf470-f6ab-4851-a13d-7ec5c826ca47n@googlegroups.com> <t5rl96$8la$1@dont-email.me>
<318e96e5-cd4c-4413-bc02-f48fb7f8f697n@googlegroups.com> <3f8ad047-b900-466f-9c81-3b14b58229a6n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <61a371f8-4f1e-4424-97a5-e590fb388c24n@googlegroups.com>
Subject: Re: exremally stupid error
From: profesor...@gmail.com (fir)
Injection-Date: Sun, 15 May 2022 23:57:15 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: fir - Sun, 15 May 2022 23:57 UTC

niedziela, 15 maja 2022 o 23:30:44 UTC+2 fir napisał(a):
> niedziela, 15 maja 2022 o 23:16:03 UTC+2 fir napisał(a):
> > niedziela, 15 maja 2022 o 21:45:56 UTC+2 David Brown napisał(a):
>
> > > (I haven't tested this myself - I have no real interest in programming
> > > on Windows and it is not an issue on Linux.)
> > when i discovered it dont work with O3 i dont wnat to much spoend time on it now,
> > one need to prioritize work and there are more important things
> >
> > im not sure but its posible that my demo work on linux by wine emulation
> >
> > https://filebin.net/hqtyniltng9gu2et
> >
> > im not sure as i never seen that wine on my eyes ..i mean im not sure if compilation works as iy uses bats but maybe the output exe worx
> it compiles now weird subset of what i call gneralized c, nut i already made a terrible mes in the source of this compiler
> writing compiler is in fact not so easy, or i got things not enough retinked to dwell in swamp again
>
> this is becouse programing is standable when one can divide things on small factorized steps and compiler makes ttouble with dat..its probably possible to divide on this easy clear steps but if some halfly conceptualizes things and half go way on shortcuts it become swamp
>
> what i can now compile is like that:
>
>
>
> import "green_fire.dll" (cdecl) DrawAACube DrawAAWireCube RandColor SetupLights_3moving SetPointLight DrawDot3d DrawLine3d SetupWindow2 Set3dDrawingMode DrawSomeText2 rand2 ToggleFullscreen ClearFrameData DrawCircle RegisterRunFrame RegisterMouseMove RegisterKeyDown RegisterOnResize SetSleepValue SetScaleOnResize SetupWindow3 (var) frame_size_x frame_size_y frame_bitmap frame_number
> import "msvcrt.dll" (cdecl) printf
>
>
> void SetupLight
> SetPointLight 0 1 -1100.0 0.0 0.0 7000.0 50000.0 0.30 1.9 1.3 1.3 0.01 0.01 0.01 0.18 1.1 1.1 1.1 0.01 0.01 0.01
> SetPointLight 1 3 1100.0 500.0 500.0 7000.0 50000.0 0.30 1.3 1.9 1.3 0.01 0.01 0.01 0.18 1.1 1.1 1.1 0.01 0.01 0.01
> SetPointLight 2 3 0.0 -1500.0 -500.0 7000.0 50000.0 0.30 1.3 1.3 1.9 0.01 0.01 0.01 0.18 1.1 1.1 1.1 0.01 0.01 0.01 ;
>
>
> void SetupCloud
> {
> int[1000] cloud_x,
> int[1000] cloud_y,
> int[1000] cloud_z,
> int[1000] cloud_r,
> int[1000] cloud_color
>
> 0$ i$999$4:
> cloud_x[i] = (rand2 200 500),
> cloud_y[i] = (rand2 200 500)
> cloud_z[i] = (rand2 0 1300)
> cloud_r[i] = (rand2 10 20)
> cloud_color[i] = (RandColor 0 255 0 255 0 255) ;
> }
>
>
>
>
> void SetupCloud2
> {
> int[1000] cloud2_x,
> int[1000] cloud2_y
> int[1000] cloud2_z,
> int[1000] cloud2_r
> int[1000] cloud2_color
>
> 0$ i$999$4:
> cloud2_x[i] = (rand2 -1200 -500)
> cloud2_y[i] = (rand2 -1200 -1500)
> cloud2_z[i] = (rand2 0 -1300)
> cloud2_r[i] = (rand2 10 20)
> cloud2_color[i] = (RandColor 0 255 0 255 0 255) ;
> }
>
>
> void DrawCloud:
> 0$ i$999$4: DrawDot3d float(cloud_x[i]) float(cloud_y[i]) float(cloud_z[i]) float(cloud_r[i]) cloud_color[i] ;;
>
> void DrawCloud2:
> 0$ i$999$4: DrawAAWireCube float(cloud_x[i]) float(cloud_y[i]) float(cloud_z[i]) float(cloud_r[i]) cloud_color[i] ;;
>
> void DrawCloud22:
> 0$ i$999$4: DrawAACube float(cloud2_x[i]) float(cloud2_y[i]) float(cloud2_z[i]) float(cloud2_r[i]) cloud2_color[i] ;;
>
>
> void DeawLines:
> 0$ j$995$4: k = j+4, DrawLine3d float(cloud_x[j]) float(cloud_y[j]) float(cloud_z[j]) float(cloud_x[k]) float(cloud_y[k]) float(cloud_z[k]) 0xaaaa77 ;;
>
>
> // int initialised = 0
> void Initialise { initialised?=0: SetupLight, SetupCloud, SetupCloud2, initialised = 1; }
>
>
> void RunFrame int advance
> {
> Initialise, ClearFrameData 0x666666
> // SetupLights_3moving
> // int f = frame_number
>
>
> DrawLine3d 100.0 100.0 0.0 100.0 -100.0 0.0 0xffffff
> DrawLine3d 100.0 -100.0 0.0 -100.0 -100.0 0.0 0xffffff
> DrawLine3d -100.0 -100.0 0.0 -100.0 100.0 0.0 0xffffff
> DrawLine3d -100.0 100.0 0.0 100.0 100.0 0.0 0xffffff
>
> DrawDot3d 0.0 0.0 100.0 20.0 0x557788
> DrawDot3d 0.0 0.0 150.0 30.0 0x557722
> DrawDot3d 0.0 0.0 -100.0 10.0 0xaa7788
>
> DrawCloud, // DrawCloud2,
> DrawCloud22
> DeawLines
>
>
> }
>
>
> void ProcessMouseMove mouse_x mouse_y { }
> void ProcessKeyDown key {
> }
> void OnResize { RunFrame }
>
>
> void main
> {
> RegisterMouseMove &ProcessMouseMove
> RegisterKeyDown &ProcessKeyDown
> RegisterOnResize &OnResize
> RegisterRunFrame &RunFrame
> SetSleepValue 5, SetScaleOnResize 0, Set3dDrawingMode 1
> SetupWindow3 " Example Green Fire App compiled by Furia \x00" 20 20 700 500 700 500
> }

this loop form 0$ i$999$4 is a stub coz i got : (which i guess more fits) used (to break on log line after foo: and things like that) ..i changed to break on ":"+whitespace so now loop is

10:100{ something} //loop on 10 to 100 inclusively (on i)
:100 { something } //loop on 0 to 100 (on i)
k:10:200:10 {} //from 10 to 200 step 10 by k

noit saying this is good as loop is importan thing and such minimal form is not so visible but for now i go for syntactical simplicity

Re: exremally stupid error

<af69783c-f9fe-42a5-8e90-5c5e8ec3f609n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:6214:262d:b0:45a:9e7d:d16 with SMTP id gv13-20020a056214262d00b0045a9e7d0d16mr13365145qvb.4.1652659559800;
Sun, 15 May 2022 17:05:59 -0700 (PDT)
X-Received: by 2002:ac8:5704:0:b0:2f7:3b31:7c7d with SMTP id
4-20020ac85704000000b002f73b317c7dmr6185211qtw.681.1652659559620; Sun, 15 May
2022 17:05:59 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.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: Sun, 15 May 2022 17:05:59 -0700 (PDT)
In-Reply-To: <87fslas6fn.fsf@bsb.me.uk>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.194; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.194
References: <06dc9d11-9df3-485d-a279-3a949b712924n@googlegroups.com>
<7de1d8c8-aa16-46ca-8692-2d102d5f7e4bn@googlegroups.com> <877d6ot73f.fsf@bsb.me.uk>
<bf1b5aaf-542d-40c0-8bac-d169d2d6536en@googlegroups.com> <t5qj46$e23$1@dont-email.me>
<123bf470-f6ab-4851-a13d-7ec5c826ca47n@googlegroups.com> <t5rl96$8la$1@dont-email.me>
<318e96e5-cd4c-4413-bc02-f48fb7f8f697n@googlegroups.com> <87fslas6fn.fsf@bsb.me.uk>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <af69783c-f9fe-42a5-8e90-5c5e8ec3f609n@googlegroups.com>
Subject: Re: exremally stupid error
From: profesor...@gmail.com (fir)
Injection-Date: Mon, 16 May 2022 00:05:59 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2589
 by: fir - Mon, 16 May 2022 00:05 UTC

poniedziałek, 16 maja 2022 o 01:49:13 UTC+2 Ben napisał(a):
> fir <profes...@gmail.com> writes:
>
> > when i discovered it dont work with O3 i dont wnat to much spoend
> > time on it now, one need to prioritize work and there are more
> > important things
> That may be a wasted opportunity. I've found that when things go wrong
> with high-levels of optimisation, 9 times out of 10 it's a opportunity to
> find a bug that's currently not showing up in testing yet.
>
maybe but i trade total simplicity and mess for moving forward ..need some results..
good that anybody writes on this gropu though... sad bartc is inactive as i said i sometemes
would say he writes to much about the same things but bow he writes to less and at least this user was able to talk on point (and im geting more and more tired and soon will wanish... writing thic compiler is kinda fun and pain together..esp im not the younger.. im old and nearly zero work done (sometimes last times i was writing i did 2% of what i need to do when being 45 (sleep ^ yawn))

Re: exremally stupid error

<f7585e07-fa94-45bc-a746-08143950fb9fn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:6214:5008:b0:45b:82:6ef with SMTP id jo8-20020a056214500800b0045b008206efmr13463236qvb.87.1652660299105;
Sun, 15 May 2022 17:18:19 -0700 (PDT)
X-Received: by 2002:ac8:5915:0:b0:2f3:db7f:7ad8 with SMTP id
21-20020ac85915000000b002f3db7f7ad8mr13212297qty.77.1652660298913; Sun, 15
May 2022 17:18:18 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!peer03.ams4!peer.am4.highwinds-media.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: Sun, 15 May 2022 17:18:18 -0700 (PDT)
In-Reply-To: <61a371f8-4f1e-4424-97a5-e590fb388c24n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.194; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.194
References: <06dc9d11-9df3-485d-a279-3a949b712924n@googlegroups.com>
<7de1d8c8-aa16-46ca-8692-2d102d5f7e4bn@googlegroups.com> <877d6ot73f.fsf@bsb.me.uk>
<bf1b5aaf-542d-40c0-8bac-d169d2d6536en@googlegroups.com> <t5qj46$e23$1@dont-email.me>
<123bf470-f6ab-4851-a13d-7ec5c826ca47n@googlegroups.com> <t5rl96$8la$1@dont-email.me>
<318e96e5-cd4c-4413-bc02-f48fb7f8f697n@googlegroups.com> <3f8ad047-b900-466f-9c81-3b14b58229a6n@googlegroups.com>
<61a371f8-4f1e-4424-97a5-e590fb388c24n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f7585e07-fa94-45bc-a746-08143950fb9fn@googlegroups.com>
Subject: Re: exremally stupid error
From: profesor...@gmail.com (fir)
Injection-Date: Mon, 16 May 2022 00:18:19 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 7762
 by: fir - Mon, 16 May 2022 00:18 UTC

poniedziałek, 16 maja 2022 o 01:57:22 UTC+2 fir napisał(a):
> niedziela, 15 maja 2022 o 23:30:44 UTC+2 fir napisał(a):
> > niedziela, 15 maja 2022 o 23:16:03 UTC+2 fir napisał(a):
> > > niedziela, 15 maja 2022 o 21:45:56 UTC+2 David Brown napisał(a):
> >
> > > > (I haven't tested this myself - I have no real interest in programming
> > > > on Windows and it is not an issue on Linux.)
> > > when i discovered it dont work with O3 i dont wnat to much spoend time on it now,
> > > one need to prioritize work and there are more important things
> > >
> > > im not sure but its posible that my demo work on linux by wine emulation
> > >
> > > https://filebin.net/hqtyniltng9gu2et
> > >
> > > im not sure as i never seen that wine on my eyes ..i mean im not sure if compilation works as iy uses bats but maybe the output exe worx
> > it compiles now weird subset of what i call gneralized c, nut i already made a terrible mes in the source of this compiler
> > writing compiler is in fact not so easy, or i got things not enough retinked to dwell in swamp again
> >
> > this is becouse programing is standable when one can divide things on small factorized steps and compiler makes ttouble with dat..its probably possible to divide on this easy clear steps but if some halfly conceptualizes things and half go way on shortcuts it become swamp
> >
> > what i can now compile is like that:
> >
> >
> >
> > import "green_fire.dll" (cdecl) DrawAACube DrawAAWireCube RandColor SetupLights_3moving SetPointLight DrawDot3d DrawLine3d SetupWindow2 Set3dDrawingMode DrawSomeText2 rand2 ToggleFullscreen ClearFrameData DrawCircle RegisterRunFrame RegisterMouseMove RegisterKeyDown RegisterOnResize SetSleepValue SetScaleOnResize SetupWindow3 (var) frame_size_x frame_size_y frame_bitmap frame_number
> > import "msvcrt.dll" (cdecl) printf
> >
> >
> > void SetupLight
> > SetPointLight 0 1 -1100.0 0.0 0.0 7000.0 50000.0 0.30 1.9 1.3 1.3 0.01 0.01 0.01 0.18 1.1 1.1 1.1 0.01 0.01 0.01
> > SetPointLight 1 3 1100.0 500.0 500.0 7000.0 50000.0 0.30 1.3 1.9 1.3 0.01 0.01 0.01 0.18 1.1 1.1 1.1 0.01 0.01 0.01
> > SetPointLight 2 3 0.0 -1500.0 -500.0 7000.0 50000.0 0.30 1.3 1.3 1.9 0.01 0.01 0.01 0.18 1.1 1.1 1.1 0.01 0.01 0.01 ;
> >
> >
> > void SetupCloud
> > {
> > int[1000] cloud_x,
> > int[1000] cloud_y,
> > int[1000] cloud_z,
> > int[1000] cloud_r,
> > int[1000] cloud_color
> >
> > 0$ i$999$4:
> > cloud_x[i] = (rand2 200 500),
> > cloud_y[i] = (rand2 200 500)
> > cloud_z[i] = (rand2 0 1300)
> > cloud_r[i] = (rand2 10 20)
> > cloud_color[i] = (RandColor 0 255 0 255 0 255) ;
> > }
> >
> >
> >
> >
> > void SetupCloud2
> > {
> > int[1000] cloud2_x,
> > int[1000] cloud2_y
> > int[1000] cloud2_z,
> > int[1000] cloud2_r
> > int[1000] cloud2_color
> >
> > 0$ i$999$4:
> > cloud2_x[i] = (rand2 -1200 -500)
> > cloud2_y[i] = (rand2 -1200 -1500)
> > cloud2_z[i] = (rand2 0 -1300)
> > cloud2_r[i] = (rand2 10 20)
> > cloud2_color[i] = (RandColor 0 255 0 255 0 255) ;
> > }
> >
> >
> > void DrawCloud:
> > 0$ i$999$4: DrawDot3d float(cloud_x[i]) float(cloud_y[i]) float(cloud_z[i]) float(cloud_r[i]) cloud_color[i] ;;
> >
> > void DrawCloud2:
> > 0$ i$999$4: DrawAAWireCube float(cloud_x[i]) float(cloud_y[i]) float(cloud_z[i]) float(cloud_r[i]) cloud_color[i] ;;
> >
> > void DrawCloud22:
> > 0$ i$999$4: DrawAACube float(cloud2_x[i]) float(cloud2_y[i]) float(cloud2_z[i]) float(cloud2_r[i]) cloud2_color[i] ;;
> >
> >
> > void DeawLines:
> > 0$ j$995$4: k = j+4, DrawLine3d float(cloud_x[j]) float(cloud_y[j]) float(cloud_z[j]) float(cloud_x[k]) float(cloud_y[k]) float(cloud_z[k]) 0xaaaa77 ;;
> >
> >
> > // int initialised = 0
> > void Initialise { initialised?=0: SetupLight, SetupCloud, SetupCloud2, initialised = 1; }
> >
> >
> > void RunFrame int advance
> > {
> > Initialise, ClearFrameData 0x666666
> > // SetupLights_3moving
> > // int f = frame_number
> >
> >
> > DrawLine3d 100.0 100.0 0.0 100.0 -100.0 0.0 0xffffff
> > DrawLine3d 100.0 -100.0 0.0 -100.0 -100.0 0.0 0xffffff
> > DrawLine3d -100.0 -100.0 0.0 -100.0 100.0 0.0 0xffffff
> > DrawLine3d -100.0 100.0 0.0 100.0 100.0 0.0 0xffffff
> >
> > DrawDot3d 0.0 0.0 100.0 20.0 0x557788
> > DrawDot3d 0.0 0.0 150.0 30.0 0x557722
> > DrawDot3d 0.0 0.0 -100.0 10.0 0xaa7788
> >
> > DrawCloud, // DrawCloud2,
> > DrawCloud22
> > DeawLines
> >
> >
> > }
> >
> >
> > void ProcessMouseMove mouse_x mouse_y { }
> > void ProcessKeyDown key {
> > }
> > void OnResize { RunFrame }
> >
> >
> > void main
> > {
> > RegisterMouseMove &ProcessMouseMove
> > RegisterKeyDown &ProcessKeyDown
> > RegisterOnResize &OnResize
> > RegisterRunFrame &RunFrame
> > SetSleepValue 5, SetScaleOnResize 0, Set3dDrawingMode 1
> > SetupWindow3 " Example Green Fire App compiled by Furia \x00" 20 20 700 500 700 500
> > }
> this loop form 0$ i$999$4 is a stub coz i got : (which i guess more fits) used (to break on log line after foo: and things like that) ..i changed to break on ":"+whitespace so now loop is
>
> 10:100{ something} //loop on 10 to 100 inclusively (on i)
> :100 { something } //loop on 0 to 100 (on i)
> k:10:200:10 {} //from 10 to 200 step 10 by k
>
> noit saying this is good as loop is importan thing and such minimal form is not so visible but for now i go for syntactical simplicity

somewjat later i will probably do an option to put this for loop not only at the begining of
log line, i mean to be able to use

tab[10:18] = 0;

same as
10:18: tab[i] = 0;

Re: exremally stupid error

<8d60f1fc-1df8-4f2d-b407-56e156ce72dfn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:6214:2b09:b0:45b:59b:5df6 with SMTP id jx9-20020a0562142b0900b0045b059b5df6mr19111451qvb.22.1652783871135;
Tue, 17 May 2022 03:37:51 -0700 (PDT)
X-Received: by 2002:a05:6214:e86:b0:461:ca87:44aa with SMTP id
hf6-20020a0562140e8600b00461ca8744aamr9410766qvb.112.1652783870978; Tue, 17
May 2022 03:37:50 -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, 17 May 2022 03:37:50 -0700 (PDT)
In-Reply-To: <f7585e07-fa94-45bc-a746-08143950fb9fn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.64; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.64
References: <06dc9d11-9df3-485d-a279-3a949b712924n@googlegroups.com>
<7de1d8c8-aa16-46ca-8692-2d102d5f7e4bn@googlegroups.com> <877d6ot73f.fsf@bsb.me.uk>
<bf1b5aaf-542d-40c0-8bac-d169d2d6536en@googlegroups.com> <t5qj46$e23$1@dont-email.me>
<123bf470-f6ab-4851-a13d-7ec5c826ca47n@googlegroups.com> <t5rl96$8la$1@dont-email.me>
<318e96e5-cd4c-4413-bc02-f48fb7f8f697n@googlegroups.com> <3f8ad047-b900-466f-9c81-3b14b58229a6n@googlegroups.com>
<61a371f8-4f1e-4424-97a5-e590fb388c24n@googlegroups.com> <f7585e07-fa94-45bc-a746-08143950fb9fn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <8d60f1fc-1df8-4f2d-b407-56e156ce72dfn@googlegroups.com>
Subject: Re: exremally stupid error
From: profesor...@gmail.com (fir)
Injection-Date: Tue, 17 May 2022 10:37:51 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: fir - Tue, 17 May 2022 10:37 UTC

poniedziałek, 16 maja 2022 o 02:18:26 UTC+2 fir napisał(a):
> poniedziałek, 16 maja 2022 o 01:57:22 UTC+2 fir napisał(a):
> > niedziela, 15 maja 2022 o 23:30:44 UTC+2 fir napisał(a):
> > > niedziela, 15 maja 2022 o 23:16:03 UTC+2 fir napisał(a):
> > > > niedziela, 15 maja 2022 o 21:45:56 UTC+2 David Brown napisał(a):
> > >
> > > > > (I haven't tested this myself - I have no real interest in programming
> > > > > on Windows and it is not an issue on Linux.)
> > > > when i discovered it dont work with O3 i dont wnat to much spoend time on it now,
> > > > one need to prioritize work and there are more important things
> > > >
> > > > im not sure but its posible that my demo work on linux by wine emulation
> > > >
> > > > https://filebin.net/hqtyniltng9gu2et
> > > >
> > > > im not sure as i never seen that wine on my eyes ..i mean im not sure if compilation works as iy uses bats but maybe the output exe worx
> > > it compiles now weird subset of what i call gneralized c, nut i already made a terrible mes in the source of this compiler
> > > writing compiler is in fact not so easy, or i got things not enough retinked to dwell in swamp again
> > >
> > > this is becouse programing is standable when one can divide things on small factorized steps and compiler makes ttouble with dat..its probably possible to divide on this easy clear steps but if some halfly conceptualizes things and half go way on shortcuts it become swamp
> > >
> > > what i can now compile is like that:
> > >
> > >
> > >
> > > import "green_fire.dll" (cdecl) DrawAACube DrawAAWireCube RandColor SetupLights_3moving SetPointLight DrawDot3d DrawLine3d SetupWindow2 Set3dDrawingMode DrawSomeText2 rand2 ToggleFullscreen ClearFrameData DrawCircle RegisterRunFrame RegisterMouseMove RegisterKeyDown RegisterOnResize SetSleepValue SetScaleOnResize SetupWindow3 (var) frame_size_x frame_size_y frame_bitmap frame_number
> > > import "msvcrt.dll" (cdecl) printf
> > >
> > >
> > > void SetupLight
> > > SetPointLight 0 1 -1100.0 0.0 0.0 7000.0 50000.0 0.30 1.9 1.3 1.3 0.01 0.01 0.01 0.18 1.1 1.1 1.1 0.01 0.01 0.01
> > > SetPointLight 1 3 1100.0 500.0 500.0 7000.0 50000.0 0.30 1.3 1.9 1.3 0.01 0.01 0.01 0.18 1.1 1.1 1.1 0.01 0.01 0.01
> > > SetPointLight 2 3 0.0 -1500.0 -500.0 7000.0 50000.0 0.30 1.3 1.3 1.9 0.01 0.01 0.01 0.18 1.1 1.1 1.1 0.01 0.01 0.01 ;
> > >
> > >
> > > void SetupCloud
> > > {
> > > int[1000] cloud_x,
> > > int[1000] cloud_y,
> > > int[1000] cloud_z,
> > > int[1000] cloud_r,
> > > int[1000] cloud_color
> > >
> > > 0$ i$999$4:
> > > cloud_x[i] = (rand2 200 500),
> > > cloud_y[i] = (rand2 200 500)
> > > cloud_z[i] = (rand2 0 1300)
> > > cloud_r[i] = (rand2 10 20)
> > > cloud_color[i] = (RandColor 0 255 0 255 0 255) ;
> > > }
> > >
> > >
> > >
> > >
> > > void SetupCloud2
> > > {
> > > int[1000] cloud2_x,
> > > int[1000] cloud2_y
> > > int[1000] cloud2_z,
> > > int[1000] cloud2_r
> > > int[1000] cloud2_color
> > >
> > > 0$ i$999$4:
> > > cloud2_x[i] = (rand2 -1200 -500)
> > > cloud2_y[i] = (rand2 -1200 -1500)
> > > cloud2_z[i] = (rand2 0 -1300)
> > > cloud2_r[i] = (rand2 10 20)
> > > cloud2_color[i] = (RandColor 0 255 0 255 0 255) ;
> > > }
> > >
> > >
> > > void DrawCloud:
> > > 0$ i$999$4: DrawDot3d float(cloud_x[i]) float(cloud_y[i]) float(cloud_z[i]) float(cloud_r[i]) cloud_color[i] ;;
> > >
> > > void DrawCloud2:
> > > 0$ i$999$4: DrawAAWireCube float(cloud_x[i]) float(cloud_y[i]) float(cloud_z[i]) float(cloud_r[i]) cloud_color[i] ;;
> > >
> > > void DrawCloud22:
> > > 0$ i$999$4: DrawAACube float(cloud2_x[i]) float(cloud2_y[i]) float(cloud2_z[i]) float(cloud2_r[i]) cloud2_color[i] ;;
> > >
> > >
> > > void DeawLines:
> > > 0$ j$995$4: k = j+4, DrawLine3d float(cloud_x[j]) float(cloud_y[j]) float(cloud_z[j]) float(cloud_x[k]) float(cloud_y[k]) float(cloud_z[k]) 0xaaaa77 ;;
> > >
> > >
> > > // int initialised = 0
> > > void Initialise { initialised?=0: SetupLight, SetupCloud, SetupCloud2, initialised = 1; }
> > >
> > >
> > > void RunFrame int advance
> > > {
> > > Initialise, ClearFrameData 0x666666
> > > // SetupLights_3moving
> > > // int f = frame_number
> > >
> > >
> > > DrawLine3d 100.0 100.0 0.0 100.0 -100.0 0.0 0xffffff
> > > DrawLine3d 100.0 -100.0 0.0 -100.0 -100.0 0.0 0xffffff
> > > DrawLine3d -100.0 -100.0 0.0 -100.0 100.0 0.0 0xffffff
> > > DrawLine3d -100.0 100.0 0.0 100.0 100.0 0.0 0xffffff
> > >
> > > DrawDot3d 0.0 0.0 100.0 20.0 0x557788
> > > DrawDot3d 0.0 0.0 150.0 30.0 0x557722
> > > DrawDot3d 0.0 0.0 -100.0 10.0 0xaa7788
> > >
> > > DrawCloud, // DrawCloud2,
> > > DrawCloud22
> > > DeawLines
> > >
> > >
> > > }
> > >
> > >
> > > void ProcessMouseMove mouse_x mouse_y { }
> > > void ProcessKeyDown key {
> > > }
> > > void OnResize { RunFrame }
> > >
> > >
> > > void main
> > > {
> > > RegisterMouseMove &ProcessMouseMove
> > > RegisterKeyDown &ProcessKeyDown
> > > RegisterOnResize &OnResize
> > > RegisterRunFrame &RunFrame
> > > SetSleepValue 5, SetScaleOnResize 0, Set3dDrawingMode 1
> > > SetupWindow3 " Example Green Fire App compiled by Furia \x00" 20 20 700 500 700 500
> > > }
> > this loop form 0$ i$999$4 is a stub coz i got : (which i guess more fits) used (to break on log line after foo: and things like that) ..i changed to break on ":"+whitespace so now loop is
> >
> > 10:100{ something} //loop on 10 to 100 inclusively (on i)
> > :100 { something } //loop on 0 to 100 (on i)
> > k:10:200:10 {} //from 10 to 200 step 10 by k
> >
> > noit saying this is good as loop is importan thing and such minimal form is not so visible but for now i go for syntactical simplicity
> somewjat later i will probably do an option to put this for loop not only at the begining of
> log line, i mean to be able to use
>
> tab[10:18] = 0;
>
> same as
> 10:18: tab[i] = 0;

i probably should implement in native support for chunks, the question is how to name it

simple static arrays i wil made like

int10000 tab1
float2048 tab2

so dynamic maybe

ints tab
floats tab

so chunk will be chars

wonder if then i could name dynamic chunk of 'chars' like charss? (in present naming chars is chunk and charss is chunks)

probably i will make thich charss or maybe will add alternative name for chars as text (and texts) or something like this

im a bit tired though

Re: exremally stupid error

<6659038a-978a-4b3a-ac96-de2da3d162d8n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:622a:44b:b0:2f3:f495:386b with SMTP id o11-20020a05622a044b00b002f3f495386bmr19202199qtx.349.1652785812720;
Tue, 17 May 2022 04:10:12 -0700 (PDT)
X-Received: by 2002:a05:622a:50f:b0:2f3:f0d9:e316 with SMTP id
l15-20020a05622a050f00b002f3f0d9e316mr19065815qtx.113.1652785812551; Tue, 17
May 2022 04:10:12 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.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, 17 May 2022 04:10:12 -0700 (PDT)
In-Reply-To: <8d60f1fc-1df8-4f2d-b407-56e156ce72dfn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.64; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.64
References: <06dc9d11-9df3-485d-a279-3a949b712924n@googlegroups.com>
<7de1d8c8-aa16-46ca-8692-2d102d5f7e4bn@googlegroups.com> <877d6ot73f.fsf@bsb.me.uk>
<bf1b5aaf-542d-40c0-8bac-d169d2d6536en@googlegroups.com> <t5qj46$e23$1@dont-email.me>
<123bf470-f6ab-4851-a13d-7ec5c826ca47n@googlegroups.com> <t5rl96$8la$1@dont-email.me>
<318e96e5-cd4c-4413-bc02-f48fb7f8f697n@googlegroups.com> <3f8ad047-b900-466f-9c81-3b14b58229a6n@googlegroups.com>
<61a371f8-4f1e-4424-97a5-e590fb388c24n@googlegroups.com> <f7585e07-fa94-45bc-a746-08143950fb9fn@googlegroups.com>
<8d60f1fc-1df8-4f2d-b407-56e156ce72dfn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6659038a-978a-4b3a-ac96-de2da3d162d8n@googlegroups.com>
Subject: Re: exremally stupid error
From: profesor...@gmail.com (fir)
Injection-Date: Tue, 17 May 2022 11:10:12 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3583
 by: fir - Tue, 17 May 2022 11:10 UTC

wtorek, 17 maja 2022 o 12:37:58 UTC+2 fir napisał(a):
> i probably should implement in native support for chunks, the question is how to name it
>
> simple static arrays i wil made like
>
> int10000 tab1
> float2048 tab2
>
> so dynamic maybe
>
> ints tab
> floats tab
>
> so chunk will be chars
>
> wonder if then i could name dynamic chunk of 'chars' like charss? (in present naming chars is chunk and charss is chunks)
>
> probably i will make thich charss or maybe will add alternative name for chars as text (and texts) or something like this
>
> im a bit tired though

floats[30] could be added as floats with size set to 30 initially;

what i need to generate

floats x
?

when i generate int[100] z
i only need to emit
FlushOutAsm("\n .bss %.*s: %d ", ChunkLength(a4) , a4.beg, value );

wait a minute i should mull it by 4, seems i got bug in my code, though it still worked?
seems so
to make dynamic ints z (or ints[333]) whet i need
need to emit "?? z: 0p" (?? is a shortcut for .data which better looks in asembler source imo)

and emit

push 333
push z
call("msvcrt.dll"->realloc")
pop edx
pop edx

in some init_runtime routine which i need to cal before program starts
doesnt seem to hard (i dont even need to put import msvcrt.dll in my asm
as my asm scans the asm code and collect it itself)

then i need to give reckognizing routines for z.size = 199 , z.size*=2 and things like that (emiting realoc calls) and z.add(88) which resizes one and adds at the end (such realloc based array makes this kind natural list and this add method is very usable, like in code when collecting somethin, used itself in compiler)

a bit sad i feel like emeritus again

Re: exremally stupid error

<1ef36a9d-6526-413a-b54b-dfe0deae1440n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:620a:2683:b0:69c:8c9c:5f80 with SMTP id c3-20020a05620a268300b0069c8c9c5f80mr15923656qkp.367.1652791538113;
Tue, 17 May 2022 05:45:38 -0700 (PDT)
X-Received: by 2002:a37:a716:0:b0:69f:7e9b:9762 with SMTP id
q22-20020a37a716000000b0069f7e9b9762mr16588237qke.33.1652791537976; Tue, 17
May 2022 05:45:37 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.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, 17 May 2022 05:45:37 -0700 (PDT)
In-Reply-To: <6659038a-978a-4b3a-ac96-de2da3d162d8n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.30; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.30
References: <06dc9d11-9df3-485d-a279-3a949b712924n@googlegroups.com>
<7de1d8c8-aa16-46ca-8692-2d102d5f7e4bn@googlegroups.com> <877d6ot73f.fsf@bsb.me.uk>
<bf1b5aaf-542d-40c0-8bac-d169d2d6536en@googlegroups.com> <t5qj46$e23$1@dont-email.me>
<123bf470-f6ab-4851-a13d-7ec5c826ca47n@googlegroups.com> <t5rl96$8la$1@dont-email.me>
<318e96e5-cd4c-4413-bc02-f48fb7f8f697n@googlegroups.com> <3f8ad047-b900-466f-9c81-3b14b58229a6n@googlegroups.com>
<61a371f8-4f1e-4424-97a5-e590fb388c24n@googlegroups.com> <f7585e07-fa94-45bc-a746-08143950fb9fn@googlegroups.com>
<8d60f1fc-1df8-4f2d-b407-56e156ce72dfn@googlegroups.com> <6659038a-978a-4b3a-ac96-de2da3d162d8n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1ef36a9d-6526-413a-b54b-dfe0deae1440n@googlegroups.com>
Subject: Re: exremally stupid error
From: profesor...@gmail.com (fir)
Injection-Date: Tue, 17 May 2022 12:45:38 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 4271
 by: fir - Tue, 17 May 2022 12:45 UTC

wtorek, 17 maja 2022 o 13:10:21 UTC+2 fir napisał(a):
> wtorek, 17 maja 2022 o 12:37:58 UTC+2 fir napisał(a):
> > i probably should implement in native support for chunks, the question is how to name it
> >
> > simple static arrays i wil made like
> >
> > int10000 tab1
> > float2048 tab2
> >
> > so dynamic maybe
> >
> > ints tab
> > floats tab
> >
> > so chunk will be chars
> >
> > wonder if then i could name dynamic chunk of 'chars' like charss? (in present naming chars is chunk and charss is chunks)
> >
> > probably i will make thich charss or maybe will add alternative name for chars as text (and texts) or something like this
> >
> > im a bit tired though
> floats[30] could be added as floats with size set to 30 initially;
>
> what i need to generate
>
> floats x
> ?
>
> when i generate int[100] z
> i only need to emit
> FlushOutAsm("\n .bss %.*s: %d ", ChunkLength(a4) , a4.beg, value );
>
> wait a minute i should mull it by 4, seems i got bug in my code, though it still worked?
> seems so
> to make dynamic ints z (or ints[333]) whet i need
> need to emit "?? z: 0p" (?? is a shortcut for .data which better looks in asembler source imo)
>
> and emit
>
>
> push 333
> push z
> call("msvcrt.dll"->realloc")
> pop edx
> pop edx
>
> in some init_runtime routine which i need to cal before program starts
> doesnt seem to hard (i dont even need to put import msvcrt.dll in my asm
> as my asm scans the asm code and collect it itself)
>
> then i need to give reckognizing routines for z.size = 199 , z.size*=2 and things like that (emiting realoc calls) and z.add(88) which resizes one and adds at the end (such realloc based array makes this kind natural list and this add method is very usable, like in code when collecting somethin, used itself in compiler)
>
> a bit sad i feel like emeritus again

i must say i very get liked this _Add() pattern (based on realooc seed) in C,
this simplifies typing a lot

like
///////////////////////////
ints spheres

for(int i=0; i<100; i++)
spheres.add(i);

//////////
instedad of

//////////////////////
const int spheres_max = 100;
int spheres[spheres_max ];

for(int i=0; i<100; i++)
spheres[i] = i;
//////////
the add form incomparably better

Re: exremally stupid error

<7ede354b-cc7f-45e7-a0b5-98dd8988aee9n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:6214:5194:b0:461:d8e1:41bf with SMTP id kl20-20020a056214519400b00461d8e141bfmr7035747qvb.4.1652827944358;
Tue, 17 May 2022 15:52:24 -0700 (PDT)
X-Received: by 2002:a05:6214:2426:b0:45a:32f9:362b with SMTP id
gy6-20020a056214242600b0045a32f9362bmr22215021qvb.127.1652827944197; Tue, 17
May 2022 15:52: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, 17 May 2022 15:52:23 -0700 (PDT)
In-Reply-To: <1ef36a9d-6526-413a-b54b-dfe0deae1440n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.62; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.62
References: <06dc9d11-9df3-485d-a279-3a949b712924n@googlegroups.com>
<7de1d8c8-aa16-46ca-8692-2d102d5f7e4bn@googlegroups.com> <877d6ot73f.fsf@bsb.me.uk>
<bf1b5aaf-542d-40c0-8bac-d169d2d6536en@googlegroups.com> <t5qj46$e23$1@dont-email.me>
<123bf470-f6ab-4851-a13d-7ec5c826ca47n@googlegroups.com> <t5rl96$8la$1@dont-email.me>
<318e96e5-cd4c-4413-bc02-f48fb7f8f697n@googlegroups.com> <3f8ad047-b900-466f-9c81-3b14b58229a6n@googlegroups.com>
<61a371f8-4f1e-4424-97a5-e590fb388c24n@googlegroups.com> <f7585e07-fa94-45bc-a746-08143950fb9fn@googlegroups.com>
<8d60f1fc-1df8-4f2d-b407-56e156ce72dfn@googlegroups.com> <6659038a-978a-4b3a-ac96-de2da3d162d8n@googlegroups.com>
<1ef36a9d-6526-413a-b54b-dfe0deae1440n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7ede354b-cc7f-45e7-a0b5-98dd8988aee9n@googlegroups.com>
Subject: Re: exremally stupid error
From: profesor...@gmail.com (fir)
Injection-Date: Tue, 17 May 2022 22:52:24 +0000
Content-Type: text/plain; charset="UTF-8"
 by: fir - Tue, 17 May 2022 22:52 UTC

ok i implemented basics of it and it seem to work

may show pieces of implementation as its maybe interesting
- showing its wuite easy

//catch definition

if(atoms_len == 2) // ints tab
if( CCS(a0, "ints") )
if( CCL(a1) )
{
int initial_value = 0;
FlushOutAsm("\n .data %.*s: %dp ", ChunkLength(a1) , a1.beg, 0 );
FlushOutAsm("\n .data %.*s_size: %di ", ChunkLength(a1) , a1.beg, initial_value );

RegisterDynamicSeed(a1, initial_value);
return 'arr';
}

//catch size assign

if(atoms_len == 5) // x.size=22
if( CCL(a0) )
if( CCS(a1, ".") )
if( CCS(a2, "size") )
if( CCS(a3, "=") )
if( CCI(a4) )
{
int dynamic = CheckIfThisIsDynamicSeed(a0);
if(dynamic)
{
int size = (int) ConvertChunk2Int(a4);
EmitResize(a0, size);
return 'arr';

}
else
{
ERROR_EXIT("cant resize tis, its not dynamic seed");
}

}

//catch add

if(atoms_len == 6) // x.add(22)
if( CCL(a0) )
if( CCS(a1, ".") )
if( CCS(a2, "add") )
if( CCS(a3, "(") )
if( CCI(a4) )
if( CCS(a5, ")") )
{
int dynamic = CheckIfThisIsDynamicSeed(a0);
if(dynamic)
{
int value = (int) ConvertChunk2Int(a4);

EmitAdd2DynamicArray(a0, value);
return 'arr';

}
else
{
ERROR_EXIT("cant add to tis, its not dynamic seed");
}

}

//function used

//register and find seeds

struct DynamicSeedList { chunk name; int value;};
static DynamicSeedList* dynamic_seed_list = NULL;
static int dynamic_seed_list_size = 0;

void dynamic_seed_list_AddOne(chunk name, int value)
{
dynamic_seed_list_size++;
dynamic_seed_list = (DynamicSeedList*) realloc(dynamic_seed_list, dynamic_seed_list_size * sizeof(DynamicSeedList) );
dynamic_seed_list[dynamic_seed_list_size-1] = {name, value};
return ;
}

int CheckIfThisIsDynamicSeed(chunk name)
{
for(int i=0; i< dynamic_seed_list_size; i++)
{
if(ChunksAreEqual(dynamic_seed_list[i].name, name))
return 1;
}
return 0;

}

void RegisterDynamicSeed(chunk name, int initial_value)
{ dynamic_seed_list_AddOne( name, initial_value);

}

//real asembler emiters

void EmitResize(chunk name, int size)
{ FlushOutAsm("\n push %d", size );
FlushOutAsmChunkPE("\n push (", name, ") ");
FlushOutAsm("\n call (\"msvcrt.dll\"->realloc)");
FlushOutAsmChunkPE("\n mov (", name, ") eax ");
FlushOutAsm("\n pop edx");
FlushOutAsm("\n pop edx");
FlushOutAsmChunkPE("\n mov (", name, ") eax ");
FlushOutAsm("\n mov eax %d", size);
FlushOutAsmChunkPE("\n mov (", name, "_size) eax ");
} void EmitAdd2DynamicArray(chunk name, int value)
{ //inc size by one
FlushOutAsmChunkPE("\n mov eax (", name, "_size) ");

FlushOutAsm("\n push eax"); //use to assign

FlushOutAsm("\n add eax 4 ");
FlushOutAsmChunkPE("\n mov (", name, "_size) eax ");
//reallock
FlushOutAsm("\n push eax");
FlushOutAsmChunkPE("\n push (", name, ") ");
FlushOutAsm("\n call (\"msvcrt.dll\"->realloc)");
FlushOutAsmChunkPE("\n mov (", name, ") eax ");
FlushOutAsm("\n pop edx");
FlushOutAsm("\n pop edx");
//add value
FlushOutAsm("\n pop ebx ");
FlushOutAsmChunkPE("\n mov eax (", name, ") ");
FlushOutAsm("\n add eax ebx");
FlushOutAsm("\n mov (eax) %d ", value);

}

//emit runtime startup
void EmitDynamicSeedArraysStartups()
{

FlushOutAsm("\n setup_dynamic_arrays:");

for(int i=0; i< dynamic_seed_list_size; i++)
{
chunk name = dynamic_seed_list[i].name;
int value = dynamic_seed_list[i].value;

EmitResize(name, value);

}
FlushOutAsm("\n ret");

}

the compiled code test

void TestNewArray
{
ints array

1:5
array.add(77);

0:7
printf "\x0a %d \x00" array[i*4];

array.size = 29
printf "\x0a %d \x00" array_size

}
//console output

77
77
77
77
77
3211367
262191
10158328
29

Re: exremally stupid error

<9o498h1pdne2mqlcgjl46kbp5ksjqriqii@4ax.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Ros...@invalid.invalid (Rosario19)
Newsgroups: comp.lang.c
Subject: Re: exremally stupid error
Date: Wed, 18 May 2022 08:48:02 +0200
Organization: A noiseless patient Spider
Lines: 108
Message-ID: <9o498h1pdne2mqlcgjl46kbp5ksjqriqii@4ax.com>
References: <06dc9d11-9df3-485d-a279-3a949b712924n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="e82f6a1fea7e5ffd01125ca34baf7e0b";
logging-data="9010"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+rMmFbkwmZd7isK9opSsgmi0VjT0yB0fI="
Cancel-Lock: sha1:M6pigLHoRVejz74qLGJScgJ5P34=
X-Newsreader: Forte Free Agent 1.93/32.576 English (American)
 by: Rosario19 - Wed, 18 May 2022 06:48 UTC

On Fri, 13 May 2022 18:12:35 -0700 (PDT), fir wrote:

if the parameter 0 1 2 3 4 5 6 are in the function defined as double
example
DrawLine3d(double, double, double ecc, int)
the assembly code is not ok because one double is 2 ints here

>i write my compiler and i got some rutine
>
>RunFrame
>{
>
> DrawLine3d 20.0 30.0 40.0 100.0 0.0 400.0 0xaaaa77
> DrawLine3d 22.0 30.0 43.0 130.0 0.0 400.0 0xaaaa77
> DrawLine3d 29.0 30.0 42.0 130.0 0.0 400.0 0xaaaa77
>
>}
>
>I got 3 routines that draw lines there and it worx
>
>the problem is ehen i putt those routines in separate call like
>
>foo
>{
> DrawLine3d 20.0 30.0 40.0 100.0 0.0 400.0 0xaaaa77
> DrawLine3d 22.0 30.0 43.0 130.0 0.0 400.0 0xaaaa77
> DrawLine3d 29.0 30.0 42.0 130.0 0.0 400.0 0xaaaa77
>}
>
>and call this foo from DrawFrame then it crashes though
>ime the assembly is the same (rxcep this call and ret)
> DeawLines:
>//l.128 DrawLine3d 20.0 30.0 40.0 100.0 1.0 400.0 0xaaaa77
> mov eax 11184759
> push eax
> mov eax 1137180672
> push eax
> mov eax 1065353216
> push eax
> mov eax 1120403456
> push eax
> mov eax 1109393408
> push eax
> mov eax 1106247680
> push eax
> mov eax 1101004800
> push eax
> call ("green_fire.dll"->DrawLine3d)
> pop eax
> pop eax
> pop eax
> pop eax
> pop eax
> pop eax
> pop eax
>//l.129 DrawLine3d 22.0 30.0 43.0 130.0 2.0 400.0 0xaaaa77
> mov eax 11184759
> push eax
> mov eax 1137180672
> push eax
> mov eax 1073741824
> push eax
> mov eax 1124204544
> push eax
> mov eax 1110179840
> push eax
> mov eax 1106247680
> push eax
> mov eax 1102053376
> push eax
> call ("green_fire.dll"->DrawLine3d)
> pop eax
> pop eax
> pop eax
> pop eax
> pop eax
> pop eax
> pop eax
>//l.130 DrawLine3d 29.0 30.0 42.0 130.0 3.0 400.0 0xaaaa77
> mov eax 11184759
> push eax
> mov eax 1137180672
> push eax
> mov eax 1077936128
> push eax
> mov eax 1124204544
> push eax
> mov eax 1109917696
> push eax
> mov eax 1106247680
> push eax
> mov eax 1105723392
> push eax
> call ("green_fire.dll"->DrawLine3d)
> pop eax
> pop eax
> pop eax
> pop eax
> pop eax
> pop eax
> pop eax
>//l.133 }
>
> ret
>
>
>

Re: exremally stupid error

<54c79bc0-8cec-49a0-90ee-6121e249ebe4n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:620a:31a2:b0:6a0:1d82:8907 with SMTP id bi34-20020a05620a31a200b006a01d828907mr18901226qkb.408.1652856575109;
Tue, 17 May 2022 23:49:35 -0700 (PDT)
X-Received: by 2002:a05:620a:2544:b0:680:a53b:ec1a with SMTP id
s4-20020a05620a254400b00680a53bec1amr19061342qko.544.1652856574924; Tue, 17
May 2022 23:49:34 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.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, 17 May 2022 23:49:34 -0700 (PDT)
In-Reply-To: <9o498h1pdne2mqlcgjl46kbp5ksjqriqii@4ax.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.224; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.224
References: <06dc9d11-9df3-485d-a279-3a949b712924n@googlegroups.com> <9o498h1pdne2mqlcgjl46kbp5ksjqriqii@4ax.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <54c79bc0-8cec-49a0-90ee-6121e249ebe4n@googlegroups.com>
Subject: Re: exremally stupid error
From: profesor...@gmail.com (fir)
Injection-Date: Wed, 18 May 2022 06:49:35 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2271
 by: fir - Wed, 18 May 2022 06:49 UTC

środa, 18 maja 2022 o 08:43:36 UTC+2 Rosario19 napisał(a):
> On Fri, 13 May 2022 18:12:35 -0700 (PDT), fir wrote:
>
> if the parameter 0 1 2 3 4 5 6 are in the function defined as double
> example
> DrawLine3d(double, double, double ecc, int)
> the assembly code is not ok because one double is 2 ints here
> >i write my compiler and i got some rutine
> >
they are float

i made demo showing that one can add balls in space when pressing space

hovever i made a bit of mess with some thingand as to compiler only crazy elements
of syntax work (something like shattered glass),
hovever the demo itself looking good imo tnx to my rasterizer - and if someone would
place balls the ball is placed in the point the camera has a point of rotation-around so
to place another bal not only rotate but move the camera (with left or right button or
holding left shift and moviung mouse - and when mouse cursor is detatched use mouse wheel down to attach again)

https://filebin.net/8cc5ik74wr89q0qu

Re: exremally stupid error

<8549e68c-cc75-49fe-b326-681fda512cb4n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:6214:226f:b0:461:e91b:4fdd with SMTP id gs15-20020a056214226f00b00461e91b4fddmr9909729qvb.68.1653095083909;
Fri, 20 May 2022 18:04:43 -0700 (PDT)
X-Received: by 2002:a05:6214:5005:b0:461:c843:98e7 with SMTP id
jo5-20020a056214500500b00461c84398e7mr10174912qvb.16.1653095083707; Fri, 20
May 2022 18:04:43 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.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: Fri, 20 May 2022 18:04:43 -0700 (PDT)
In-Reply-To: <54c79bc0-8cec-49a0-90ee-6121e249ebe4n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.230; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.230
References: <06dc9d11-9df3-485d-a279-3a949b712924n@googlegroups.com>
<9o498h1pdne2mqlcgjl46kbp5ksjqriqii@4ax.com> <54c79bc0-8cec-49a0-90ee-6121e249ebe4n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <8549e68c-cc75-49fe-b326-681fda512cb4n@googlegroups.com>
Subject: Re: exremally stupid error
From: profesor...@gmail.com (fir)
Injection-Date: Sat, 21 May 2022 01:04:43 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 6992
 by: fir - Sat, 21 May 2022 01:04 UTC

środa, 18 maja 2022 o 08:49:42 UTC+2 fir napisał(a):
> środa, 18 maja 2022 o 08:43:36 UTC+2 Rosario19 napisał(a):
> > On Fri, 13 May 2022 18:12:35 -0700 (PDT), fir wrote:
> >
> > if the parameter 0 1 2 3 4 5 6 are in the function defined as double
> > example
> > DrawLine3d(double, double, double ecc, int)
> > the assembly code is not ok because one double is 2 ints here
> > >i write my compiler and i got some rutine
> > >
> they are float
>
> i made demo showing that one can add balls in space when pressing space
>
> hovever i made a bit of mess with some thingand as to compiler only crazy elements
> of syntax work (something like shattered glass),
> hovever the demo itself looking good imo tnx to my rasterizer - and if someone would
> place balls the ball is placed in the point the camera has a point of rotation-around so
> to place another bal not only rotate but move the camera (with left or right button or
> holding left shift and moviung mouse - and when mouse cursor is detatched use mouse wheel down to attach again)
>
> https://filebin.net/8cc5ik74wr89q0qu

cleanded the syntax a bit, like

void SetupLight
SetPointLight 0 1 -1100.0 0.0 0.0 7000.0 50000.0 0.30 1.9 1.3 1.3 0.01 0.01 0.01 0.18 1.1 1.1 1.1 0.01 0.01 0.01
SetPointLight 1 3 1100.0 500.0 500.0 7000.0 50000.0 0.30 1.3 1.9 1.3 0.01 0.01 0.01 0.18 1.1 1.1 1.1 0.01 0.01 0.01
SetPointLight 2 3 0.0 -1500.0 -500.0 7000.0 50000.0 0.30 1.3 1.3 1.9 0.01 0.01 0.01 0.18 1.1 1.1 1.1 0.01 0.01 0.01 ;
void SetupCloud
{
ints cloud_x, ints cloud_y, ints cloud_z, ints cloud_r, ints cloud_color
1:200: cloud_x.add(rand2 200 1900),
cloud_y.add(rand2 200 1500)
cloud_z.add(rand2 0 1300)
cloud_r.add(rand2 10 30)
cloud_color.add(RandColor 0 255 0 255 0 255) ;
}
void SetupCloud2
{
ints cloud2_x, ints cloud2_y, ints cloud2_z, ints cloud2_r, ints cloud2_color
1:500: cloud2_x.add(rand2 -1200 1500)
cloud2_y.add(rand2 -1200 -1500)
cloud2_z.add(rand2 0 -1300)
cloud2_r.add(rand2 10 20)
cloud2_color.add(RandColor 0 255 0 255 0 255) ;
}
void Initialise {initialised?=0: SetupLight, SetupCloud, SetupCloud2, initialised = 1; }

void DrawCloud1: 0:199: DrawDot3d float(cloud_x[i*4]) float(cloud_y[i*4]) float(cloud_z[i*4]) float(cloud_r[i*4]) cloud_color[i*4] ;;
void DrawCloud11: 0:199: DrawAAWireCube float(cloud_x[i*4]) float(cloud_y[i*4]) float(cloud_z[i*4]) float(cloud_r[i*4]) 0xaaaa77 ;;
void DrawCloud12: 0:199: DrawAAWireCube float(cloud_x[i*4]) float(cloud_y[i*4]) float(cloud_z[i*4]) float(cloud_r[i*4]*2) 0xaaaa77 ;;
void DrawCloud2: 0:499: DrawAACube float(cloud2_x[i*4]) float(cloud2_y[i*4]) float(cloud2_z[i*4]) float(cloud2_r[i*4]) cloud2_color[i*4] ;;
void DeawLines: 0:198: DrawLine3d float(cloud_x[i*4]) float(cloud_y[i*4]) float(cloud_z[i*4]) float(cloud_x[i*4+4]) float(cloud_y[i*4+4]) float(cloud_z[i*4+4]) 0xaaaa77 ;;
void RunFrame int advance
{
Initialise, ClearFrameData 0x666666
DrawLine3d 100.0 100.0 0.0 100.0 -100.0 0.0 0xffffff
DrawLine3d 100.0 -100.0 0.0 -100.0 -100.0 0.0 0xffffff
DrawLine3d -100.0 -100.0 0.0 -100.0 100.0 0.0 0xffffff
DrawLine3d -100.0 100.0 0.0 100.0 100.0 0.0 0xffffff
DrawDot3d 0.0 0.0 100.0 20.0 0x557788
DrawDot3d 0.0 0.0 150.0 30.0 0x557722
DrawDot3d 0.0 0.0 -100.0 10.0 0xaa7788
DrawCloud1,
DrawCloud2,
DrawCloud11,
DrawCloud12
DrawDotsBag
// DrawSomeText2F 0xa99999 0x666666 10 20 "hello, this is example program compiled by fir's furia compiler \x00"
DrawSomeText2F 0xcccccc 0x666666 10 20 "hello, this is example program compiled by fir's furia compiler \x00"
// DeawLines
// DrawTextByBalls "hello\x00" 0 0 0x999999
// DrawCubesCubeGeo
}
void ProcessMouseMove mouse_x mouse_y { }
void ProcessKeyDown key {
key?=' ' {FireDotFromCamera 0.0 0.0 10000 20 0x11aacc }
key?='A' {FireDotFromCamera 1.0 0.0 10000 20 0xffffff }
key?='D' {DeleteDotFromBag cameraPos[0] cameraPos[4] cameraPos[8] 10.0 }
key?='X' {}
key?='Z' {}
}
void OnResize { RunFrame }
void main
{
RegisterMouseMove &ProcessMouseMove
RegisterKeyDown &ProcessKeyDown
RegisterOnResize &OnResize
RegisterRunFrame &RunFrame
SetSleepValue 5, SetScaleOnResize 0, Set3dDrawingMode 1
SetupWindow3 " Example Green Fire App compiled by Furia \x00" 20 20 700 500 700 500
}

https://filebin.net/qtu4djk1eizl222q

thouhj i wouldnt say i internally wrote itwell, its a mess, also very uneffective in compiling, but i dont know compiler theory
some may run a demo hovever i builtin a test for memory bandwidth of a machuna thet runs it (press f2 then pres f1 to see the measurments

on my old machine for example for-loop memory bandwidth is about 6-7 GB/s where msvcrt memset is 12 GB.. my freind colegue on more new and more xpensive machine has 13 GB on loop and 54 GB on memset.. this big difference seems weird to me as i once was writing memsets in assembly/vector sse and afair dont noticed speedups then like see wouldnf couse more mem bandwith only improved arithmetic part.. do things has changed or what?

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor