Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

The universe does not have laws -- it has habits, and habits can be broken.


devel / comp.lang.c / Baby X resource compiler nearly ready

SubjectAuthor
* Baby X resource compiler nearly readyMalcolm McLean
+* Re: Baby X resource compiler nearly readyfir
|+* Re: Baby X resource compiler nearly readyfir
||`- Re: Baby X resource compiler nearly readyMalcolm McLean
|`* Re: Baby X resource compiler nearly readyMalcolm McLean
| +* Re: Baby X resource compiler nearly readyfir
| |`* Re: Baby X resource compiler nearly readyMalcolm McLean
| | `* Re: Baby X resource compiler nearly readyfir
| |  `- Re: Baby X resource compiler nearly readyfir
| +- Re: Baby X resource compiler nearly readyfir
| `* Re: Baby X resource compiler nearly readyBen Bacarisse
|  `- Re: Baby X resource compiler nearly readyMalcolm McLean
+* Re: Baby X resource compiler nearly readyBen Bacarisse
|`* Re: Baby X resource compiler nearly readyMalcolm McLean
| `* Re: Baby X resource compiler nearly readyBen Bacarisse
|  +* Re: Baby X resource compiler nearly readyMalcolm McLean
|  |`* Re: Baby X resource compiler nearly readyBen Bacarisse
|  | `* Re: Baby X resource compiler nearly readyMalcolm McLean
|  |  `* Re: Baby X resource compiler nearly readyKenny McCormack
|  |   `* Re: Baby X resource compiler nearly readyMalcolm McLean
|  |    +* Re: Baby X resource compiler nearly readySpiros Bousbouras
|  |    |+* Re: Baby X resource compiler nearly readyMalcolm McLean
|  |    ||+* Re: Baby X resource compiler nearly readyKenny McCormack
|  |    |||`* Re: Baby X resource compiler nearly readyMalcolm McLean
|  |    ||| +* Re: Baby X resource compiler nearly readyKenny McCormack
|  |    ||| |+- Re: Baby X resource compiler nearly readyBart
|  |    ||| |`- Re: Baby X resource compiler nearly readyKaz Kylheku
|  |    ||| +* Re: Baby X resource compiler nearly readyDavid Brown
|  |    ||| |`* Re: Baby X resource compiler nearly readyKeith Thompson
|  |    ||| | +- Re: Baby X resource compiler nearly readyKeith Thompson
|  |    ||| | `- Re: Baby X resource compiler nearly readyMalcolm McLean
|  |    ||| `* Re: Baby X resource compiler nearly readyRichard Damon
|  |    |||  `- Re: Baby X resource compiler nearly readyTim Rentsch
|  |    ||`* Re: Baby X resource compiler nearly readyBen Bacarisse
|  |    || `* Re: Baby X resource compiler nearly readyDavid Brown
|  |    ||  +- Re: Baby X resource compiler nearly readyScott Lurndal
|  |    ||  `* Re: Baby X resource compiler nearly readyMalcolm McLean
|  |    ||   `- Re: Baby X resource compiler nearly readyScott Lurndal
|  |    |`- Re: Baby X resource compiler nearly readyTim Rentsch
|  |    +- Re: Baby X resource compiler nearly readyBen Bacarisse
|  |    `* Re: Baby X resource compiler nearly readyKeith Thompson
|  |     `* Re: Baby X resource compiler nearly readyMalcolm McLean
|  |      `* Re: Baby X resource compiler nearly readyjak
|  |       `* Re: Baby X resource compiler nearly readyMalcolm McLean
|  |        `* Re: Baby X resource compiler nearly readyjak
|  |         `* Re: Baby X resource compiler nearly readyMalcolm McLean
|  |          `- Re: Baby X resource compiler nearly readyMalcolm McLean
|  `* Re: Baby X resource compiler nearly readyBart
|   `- Re: Baby X resource compiler nearly readyBen Bacarisse
+* Re: Baby X resource compiler nearly readyScott Lurndal
|`* Re: Baby X resource compiler nearly readyKenny McCormack
| `* Re: Baby X resource compiler nearly readyScott Lurndal
|  `- Blah, blah, blah (Was: Baby X resource compiler nearly ready)Kenny McCormack
`- Re: Baby X resource compiler nearly readyBen Bacarisse

Pages:123
Baby X resource compiler nearly ready

<1c2d0b65-3e37-4534-966f-d039a655773cn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:ad4:4e30:0:b0:63c:fa85:e290 with SMTP id dm16-20020ad44e30000000b0063cfa85e290mr13646qvb.8.1691229555009;
Sat, 05 Aug 2023 02:59:15 -0700 (PDT)
X-Received: by 2002:a05:6870:3a0d:b0:1bb:4d41:e928 with SMTP id
du13-20020a0568703a0d00b001bb4d41e928mr4577156oab.7.1691229554598; Sat, 05
Aug 2023 02:59:14 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Sat, 5 Aug 2023 02:59:14 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23a8:400a:5601:8141:bac9:b67e:1d99;
posting-account=Dz2zqgkAAADlK5MFu78bw3ab-BRFV4Qn
NNTP-Posting-Host: 2a00:23a8:400a:5601:8141:bac9:b67e:1d99
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1c2d0b65-3e37-4534-966f-d039a655773cn@googlegroups.com>
Subject: Baby X resource compiler nearly ready
From: malcolm....@gmail.com (Malcolm McLean)
Injection-Date: Sat, 05 Aug 2023 09:59:15 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1625
 by: Malcolm McLean - Sat, 5 Aug 2023 09:59 UTC

I've been working on the Baby X resource compiler for some time now. I've added in support for audio, unicode, and dataframes, plus a few minor enhancements such as the ability to add comments and write out a header as well as a C source file.

I'm thinking of declaring a version shortly. Then I'll probably rest from my labours. Anything else anyone would want to see?

I don't have a Linux machine. If someone would be kind enough to valgrind it to check for memory leaks or worse bugs, that would be a help.

The code is at
https://github.com/MalcolmMcLean/babyxrc

Re: Baby X resource compiler nearly ready

<25907af1-2556-4f7d-bb6e-1a9cc5baaa3an@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:622a:1a0d:b0:403:a91d:bfec with SMTP id f13-20020a05622a1a0d00b00403a91dbfecmr15373qtb.0.1691230839825;
Sat, 05 Aug 2023 03:20:39 -0700 (PDT)
X-Received: by 2002:a05:6870:22c8:b0:1b0:9643:6f69 with SMTP id
k8-20020a05687022c800b001b096436f69mr4628889oaf.4.1691230839589; Sat, 05 Aug
2023 03:20:39 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Sat, 5 Aug 2023 03:20:39 -0700 (PDT)
In-Reply-To: <1c2d0b65-3e37-4534-966f-d039a655773cn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.102; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.102
References: <1c2d0b65-3e37-4534-966f-d039a655773cn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <25907af1-2556-4f7d-bb6e-1a9cc5baaa3an@googlegroups.com>
Subject: Re: Baby X resource compiler nearly ready
From: profesor...@gmail.com (fir)
Injection-Date: Sat, 05 Aug 2023 10:20:39 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2178
 by: fir - Sat, 5 Aug 2023 10:20 UTC

sobota, 5 sierpnia 2023 o 11:59:22 UTC+2 Malcolm McLean napisał(a):
> I've been working on the Baby X resource compiler for some time now. I've added in support for audio, unicode, and dataframes, plus a few minor enhancements such as the ability to add comments and write out a header as well as a C source file.
>
> I'm thinking of declaring a version shortly. Then I'll probably rest from my labours. Anything else anyone would want to see?
>
> I don't have a Linux machine. If someone would be kind enough to valgrind it to check for memory leaks or worse bugs, that would be a help.
>
> The code is at
> https://github.com/MalcolmMcLean/babyxrc

give some examples of how it work or something...
usenet is for discussint the matter things (at least in core)..

also imo people shoudl genrally asume that usenet is not
for opening links so people shouldnt post links to much imo
but if they post about something paste it as a text content

Re: Baby X resource compiler nearly ready

<b0218787-ad75-459e-b411-90f707845fd8n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:622a:4a0f:b0:40a:9069:895b with SMTP id fv15-20020a05622a4a0f00b0040a9069895bmr12879qtb.2.1691231321571; Sat, 05 Aug 2023 03:28:41 -0700 (PDT)
X-Received: by 2002:a05:6808:2202:b0:3a1:c163:6022 with SMTP id bd2-20020a056808220200b003a1c1636022mr3876819oib.4.1691231321351; Sat, 05 Aug 2023 03:28:41 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!69.80.99.15.MISMATCH!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Sat, 5 Aug 2023 03:28:40 -0700 (PDT)
In-Reply-To: <25907af1-2556-4f7d-bb6e-1a9cc5baaa3an@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.102; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.102
References: <1c2d0b65-3e37-4534-966f-d039a655773cn@googlegroups.com> <25907af1-2556-4f7d-bb6e-1a9cc5baaa3an@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b0218787-ad75-459e-b411-90f707845fd8n@googlegroups.com>
Subject: Re: Baby X resource compiler nearly ready
From: profesor...@gmail.com (fir)
Injection-Date: Sat, 05 Aug 2023 10:28:41 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 33
 by: fir - Sat, 5 Aug 2023 10:28 UTC

sobota, 5 sierpnia 2023 o 12:20:47 UTC+2 fir napisał(a):
> sobota, 5 sierpnia 2023 o 11:59:22 UTC+2 Malcolm McLean napisał(a):
> > I've been working on the Baby X resource compiler for some time now. I've added in support for audio, unicode, and dataframes, plus a few minor enhancements such as the ability to add comments and write out a header as well as a C source file.
> >
> > I'm thinking of declaring a version shortly. Then I'll probably rest from my labours. Anything else anyone would want to see?
> >
> > I don't have a Linux machine. If someone would be kind enough to valgrind it to check for memory leaks or worse bugs, that would be a help.
> >
> > The code is at
> > https://github.com/MalcolmMcLean/babyxrc
> give some examples of how it work or something...
> usenet is for discussint the matter things (at least in core)..
>
> also imo people shoudl genrally asume that usenet is not
> for opening links so people shouldnt post links to much imo
> but if they post about something paste it as a text content

overally even opening the link and reading it for 3 minutes i got no idea what it is and what it does

its liek reading text in such kind of english that need to
know many things (assumptions) that are not provided..

it remembers me old times as when learning some things in
programing at start many things looks like that (many text
based on unknown information)... long time i hadnt such kind of
experiences... and overally i preffer the style that introduces things
not this one that dont introduces

Re: Baby X resource compiler nearly ready

<caff273a-d7c2-42f4-8c89-d2ae984d0f38n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:6214:1847:b0:635:e19a:6cc4 with SMTP id d7-20020a056214184700b00635e19a6cc4mr12817qvy.2.1691232062199;
Sat, 05 Aug 2023 03:41:02 -0700 (PDT)
X-Received: by 2002:a05:6808:1690:b0:3a7:49f1:1d86 with SMTP id
bb16-20020a056808169000b003a749f11d86mr6760488oib.11.1691232061969; Sat, 05
Aug 2023 03:41:01 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.cmpublishers.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Sat, 5 Aug 2023 03:41:01 -0700 (PDT)
In-Reply-To: <25907af1-2556-4f7d-bb6e-1a9cc5baaa3an@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23a8:400a:5601:8141:bac9:b67e:1d99;
posting-account=Dz2zqgkAAADlK5MFu78bw3ab-BRFV4Qn
NNTP-Posting-Host: 2a00:23a8:400a:5601:8141:bac9:b67e:1d99
References: <1c2d0b65-3e37-4534-966f-d039a655773cn@googlegroups.com> <25907af1-2556-4f7d-bb6e-1a9cc5baaa3an@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <caff273a-d7c2-42f4-8c89-d2ae984d0f38n@googlegroups.com>
Subject: Re: Baby X resource compiler nearly ready
From: malcolm....@gmail.com (Malcolm McLean)
Injection-Date: Sat, 05 Aug 2023 10:41:02 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3659
 by: Malcolm McLean - Sat, 5 Aug 2023 10:41 UTC

On Saturday, 5 August 2023 at 11:20:47 UTC+1, fir wrote:
> sobota, 5 sierpnia 2023 o 11:59:22 UTC+2 Malcolm McLean napisał(a):
> > I've been working on the Baby X resource compiler for some time now. I've added in support for audio, unicode, and dataframes, plus a few minor enhancements such as the ability to add comments and write out a header as well as a C source file.
> >
> > I'm thinking of declaring a version shortly. Then I'll probably rest from my labours. Anything else anyone would want to see?
> >
> > I don't have a Linux machine. If someone would be kind enough to valgrind it to check for memory leaks or worse bugs, that would be a help.
> >
> > The code is at
> > https://github.com/MalcolmMcLean/babyxrc
> give some examples of how it work or something...
> usenet is for discussint the matter things (at least in core)..
>
> also imo people shoudl genrally asume that usenet is not
> for opening links so people shouldnt post links to much imo
> but if they post about something paste it as a text content
>
It's a resource compiler. So it has a similar function to the resource compilers
included in Visual Studio or XCode. However instead of packaging the resources
into an opaque binary blob which can only be read by that platform, it
produces portable ANSI C output files which can be read anywhere.

So you write a little script file. If you want to include an image, it reads it and
spits out a 32 bit rgba buffer. If you want an audio clip, it spits out a list
of pcm values as shorts. If you want a string, it escapes it for you and spits out
a C string.

However its strength is that it also allows for a bit of processing of data.. So
images can be resized, or audio can be re-sampled to match the rate you want
in your program. Text can be taken in in one fomart and output in another, so
you can read ina UTF-8 file and have a UTF-16 string output. There's also a
brand new and experimental dataframe tag which loads a CSV file and produces
an array of C structs.

Here's a script file

<BabyXRC>
<string name = "hellobabyx">Hello &quot;Baby X&quot;</string>
</BabyXRC>

Invoke the program like this

babyxrc hellobabyx.xml

Here's the output

char *hellobabyx = "Hello \"Baby X\"";

Re: Baby X resource compiler nearly ready

<429847e5-7d53-48c6-b8c6-b315d1538e36n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:620a:4086:b0:765:a58c:313a with SMTP id f6-20020a05620a408600b00765a58c313amr13854qko.10.1691232156052;
Sat, 05 Aug 2023 03:42:36 -0700 (PDT)
X-Received: by 2002:a05:6808:1598:b0:3a7:4878:2336 with SMTP id
t24-20020a056808159800b003a748782336mr7233801oiw.9.1691232155762; Sat, 05 Aug
2023 03:42:35 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!1.us.feeder.erje.net!feeder.erje.net!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Sat, 5 Aug 2023 03:42:35 -0700 (PDT)
In-Reply-To: <b0218787-ad75-459e-b411-90f707845fd8n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23a8:400a:5601:8141:bac9:b67e:1d99;
posting-account=Dz2zqgkAAADlK5MFu78bw3ab-BRFV4Qn
NNTP-Posting-Host: 2a00:23a8:400a:5601:8141:bac9:b67e:1d99
References: <1c2d0b65-3e37-4534-966f-d039a655773cn@googlegroups.com>
<25907af1-2556-4f7d-bb6e-1a9cc5baaa3an@googlegroups.com> <b0218787-ad75-459e-b411-90f707845fd8n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <429847e5-7d53-48c6-b8c6-b315d1538e36n@googlegroups.com>
Subject: Re: Baby X resource compiler nearly ready
From: malcolm....@gmail.com (Malcolm McLean)
Injection-Date: Sat, 05 Aug 2023 10:42:36 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 35
 by: Malcolm McLean - Sat, 5 Aug 2023 10:42 UTC

On Saturday, 5 August 2023 at 11:28:49 UTC+1, fir wrote:
> sobota, 5 sierpnia 2023 o 12:20:47 UTC+2 fir napisał(a):
> > sobota, 5 sierpnia 2023 o 11:59:22 UTC+2 Malcolm McLean napisał(a):
> > > I've been working on the Baby X resource compiler for some time now. I've added in support for audio, unicode, and dataframes, plus a few minor enhancements such as the ability to add comments and write out a header as well as a C source file.
> > >
> > > I'm thinking of declaring a version shortly. Then I'll probably rest from my labours. Anything else anyone would want to see?
> > >
> > > I don't have a Linux machine. If someone would be kind enough to valgrind it to check for memory leaks or worse bugs, that would be a help.
> > >
> > > The code is at
> > > https://github.com/MalcolmMcLean/babyxrc
> > give some examples of how it work or something...
> > usenet is for discussint the matter things (at least in core)..
> >
> > also imo people shoudl genrally asume that usenet is not
> > for opening links so people shouldnt post links to much imo
> > but if they post about something paste it as a text content
> overally even opening the link and reading it for 3 minutes i got no idea what it is and what it does
>
> its liek reading text in such kind of english that need to
> know many things (assumptions) that are not provided..
>
> it remembers me old times as when learning some things in
> programing at start many things looks like that (many text
> based on unknown information)... long time i hadnt such kind of
> experiences... and overally i preffer the style that introduces things
> not this one that dont introduces
>
That's valuable information. The documentation might need improving.

Re: Baby X resource compiler nearly ready

<f8fceadf-dc0b-4ebb-ba2f-d266bc82107an@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:622a:5cb:b0:403:ed9e:f109 with SMTP id d11-20020a05622a05cb00b00403ed9ef109mr10068qtb.4.1691232398338;
Sat, 05 Aug 2023 03:46:38 -0700 (PDT)
X-Received: by 2002:a05:6870:c2ea:b0:1bf:817a:633d with SMTP id
x42-20020a056870c2ea00b001bf817a633dmr4682069oag.0.1691232398010; Sat, 05 Aug
2023 03:46:38 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Sat, 5 Aug 2023 03:46:37 -0700 (PDT)
In-Reply-To: <caff273a-d7c2-42f4-8c89-d2ae984d0f38n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.102; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.102
References: <1c2d0b65-3e37-4534-966f-d039a655773cn@googlegroups.com>
<25907af1-2556-4f7d-bb6e-1a9cc5baaa3an@googlegroups.com> <caff273a-d7c2-42f4-8c89-d2ae984d0f38n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f8fceadf-dc0b-4ebb-ba2f-d266bc82107an@googlegroups.com>
Subject: Re: Baby X resource compiler nearly ready
From: profesor...@gmail.com (fir)
Injection-Date: Sat, 05 Aug 2023 10:46:38 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 67
 by: fir - Sat, 5 Aug 2023 10:46 UTC

sobota, 5 sierpnia 2023 o 12:41:11 UTC+2 Malcolm McLean napisał(a):
> On Saturday, 5 August 2023 at 11:20:47 UTC+1, fir wrote:
> > sobota, 5 sierpnia 2023 o 11:59:22 UTC+2 Malcolm McLean napisał(a):
> > > I've been working on the Baby X resource compiler for some time now. I've added in support for audio, unicode, and dataframes, plus a few minor enhancements such as the ability to add comments and write out a header as well as a C source file.
> > >
> > > I'm thinking of declaring a version shortly. Then I'll probably rest from my labours. Anything else anyone would want to see?
> > >
> > > I don't have a Linux machine. If someone would be kind enough to valgrind it to check for memory leaks or worse bugs, that would be a help.
> > >
> > > The code is at
> > > https://github.com/MalcolmMcLean/babyxrc
> > give some examples of how it work or something...
> > usenet is for discussint the matter things (at least in core)..
> >
> > also imo people shoudl genrally asume that usenet is not
> > for opening links so people shouldnt post links to much imo
> > but if they post about something paste it as a text content
> >
> It's a resource compiler. So it has a similar function to the resource compilers
> included in Visual Studio or XCode. However instead of packaging the resources
> into an opaque binary blob which can only be read by that platform, it
> produces portable ANSI C output files which can be read anywhere.
>
> So you write a little script file. If you want to include an image, it reads it and
> spits out a 32 bit rgba buffer. If you want an audio clip, it spits out a list
> of pcm values as shorts. If you want a string, it escapes it for you and spits out
> a C string.
>
> However its strength is that it also allows for a bit of processing of data. So
> images can be resized, or audio can be re-sampled to match the rate you want
> in your program. Text can be taken in in one fomart and output in another, so
> you can read ina UTF-8 file and have a UTF-16 string output. There's also a
> brand new and experimental dataframe tag which loads a CSV file and produces
> an array of C structs.
>
> Here's a script file
>
> <BabyXRC>
> <string name = "hellobabyx">Hello &quot;Baby X&quot;</string>
> </BabyXRC>
>
> Invoke the program like this
>
> babyxrc hellobabyx.xml
>
> Here's the output
>
> char *hellobabyx = "Hello \"Baby X\"";

and what it do with images? or things like fonts?? make char* array with initialiser or what?

Re: Baby X resource compiler nearly ready

<188dadc3-5271-4eb7-9134-43b62c771267n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:620a:1b8a:b0:769:89bf:c7b7 with SMTP id dv10-20020a05620a1b8a00b0076989bfc7b7mr11528qkb.9.1691232585519;
Sat, 05 Aug 2023 03:49:45 -0700 (PDT)
X-Received: by 2002:a05:6830:4802:b0:6b9:546e:f220 with SMTP id
dg2-20020a056830480200b006b9546ef220mr4461453otb.6.1691232585310; Sat, 05 Aug
2023 03:49:45 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Sat, 5 Aug 2023 03:49:44 -0700 (PDT)
In-Reply-To: <caff273a-d7c2-42f4-8c89-d2ae984d0f38n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.102; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.102
References: <1c2d0b65-3e37-4534-966f-d039a655773cn@googlegroups.com>
<25907af1-2556-4f7d-bb6e-1a9cc5baaa3an@googlegroups.com> <caff273a-d7c2-42f4-8c89-d2ae984d0f38n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <188dadc3-5271-4eb7-9134-43b62c771267n@googlegroups.com>
Subject: Re: Baby X resource compiler nearly ready
From: profesor...@gmail.com (fir)
Injection-Date: Sat, 05 Aug 2023 10:49:45 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 4320
 by: fir - Sat, 5 Aug 2023 10:49 UTC

sobota, 5 sierpnia 2023 o 12:41:11 UTC+2 Malcolm McLean napisał(a):
> On Saturday, 5 August 2023 at 11:20:47 UTC+1, fir wrote:
> > sobota, 5 sierpnia 2023 o 11:59:22 UTC+2 Malcolm McLean napisał(a):
> > > I've been working on the Baby X resource compiler for some time now. I've added in support for audio, unicode, and dataframes, plus a few minor enhancements such as the ability to add comments and write out a header as well as a C source file.
> > >
> > > I'm thinking of declaring a version shortly. Then I'll probably rest from my labours. Anything else anyone would want to see?
> > >
> > > I don't have a Linux machine. If someone would be kind enough to valgrind it to check for memory leaks or worse bugs, that would be a help.
> > >
> > > The code is at
> > > https://github.com/MalcolmMcLean/babyxrc
> > give some examples of how it work or something...
> > usenet is for discussint the matter things (at least in core)..
> >
> > also imo people shoudl genrally asume that usenet is not
> > for opening links so people shouldnt post links to much imo
> > but if they post about something paste it as a text content
> >
> It's a resource compiler. So it has a similar function to the resource compilers
> included in Visual Studio or XCode. However instead of packaging the resources
> into an opaque binary blob which can only be read by that platform, it
> produces portable ANSI C output files which can be read anywhere.
>
> So you write a little script file. If you want to include an image, it reads it and
> spits out a 32 bit rgba buffer. If you want an audio clip, it spits out a list
> of pcm values as shorts. If you want a string, it escapes it for you and spits out
> a C string.
>
> However its strength is that it also allows for a bit of processing of data. So
> images can be resized, or audio can be re-sampled to match the rate you want
> in your program. Text can be taken in in one fomart and output in another, so
> you can read ina UTF-8 file and have a UTF-16 string output. There's also a
> brand new and experimental dataframe tag which loads a CSV file and produces
> an array of C structs.
>
> Here's a script file
>
> <BabyXRC>
> <string name = "hellobabyx">Hello &quot;Baby X&quot;</string>
> </BabyXRC>
>
> Invoke the program like this
>
> babyxrc hellobabyx.xml
>
> Here's the output
>
> char *hellobabyx = "Hello \"Baby X\"";

xml is terrible format imo, i would do nothing with xml..
why not json instead? not saying i like all that kind of files in
a world for some reason i managed to not use them all
but maybe its becouse i dont do related things

programing world today is full of trash and better not produce it more
but berret remove the trash from world..and removing trash is imo stainy with core narrow simplicity

Re: Baby X resource compiler nearly ready

<62f3508e-424d-4d08-bcc3-60268f524f8bn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a37:b905:0:b0:75b:3962:8db3 with SMTP id j5-20020a37b905000000b0075b39628db3mr12067qkf.3.1691233037102;
Sat, 05 Aug 2023 03:57:17 -0700 (PDT)
X-Received: by 2002:a05:6870:b7ae:b0:1bb:73c2:9ad0 with SMTP id
ed46-20020a056870b7ae00b001bb73c29ad0mr4496335oab.3.1691233036739; Sat, 05
Aug 2023 03:57:16 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Sat, 5 Aug 2023 03:57:16 -0700 (PDT)
In-Reply-To: <f8fceadf-dc0b-4ebb-ba2f-d266bc82107an@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23a8:400a:5601:8141:bac9:b67e:1d99;
posting-account=Dz2zqgkAAADlK5MFu78bw3ab-BRFV4Qn
NNTP-Posting-Host: 2a00:23a8:400a:5601:8141:bac9:b67e:1d99
References: <1c2d0b65-3e37-4534-966f-d039a655773cn@googlegroups.com>
<25907af1-2556-4f7d-bb6e-1a9cc5baaa3an@googlegroups.com> <caff273a-d7c2-42f4-8c89-d2ae984d0f38n@googlegroups.com>
<f8fceadf-dc0b-4ebb-ba2f-d266bc82107an@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <62f3508e-424d-4d08-bcc3-60268f524f8bn@googlegroups.com>
Subject: Re: Baby X resource compiler nearly ready
From: malcolm....@gmail.com (Malcolm McLean)
Injection-Date: Sat, 05 Aug 2023 10:57:17 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 82
 by: Malcolm McLean - Sat, 5 Aug 2023 10:57 UTC

On Saturday, 5 August 2023 at 11:46:46 UTC+1, fir wrote:
> sobota, 5 sierpnia 2023 o 12:41:11 UTC+2 Malcolm McLean napisał(a):
> > On Saturday, 5 August 2023 at 11:20:47 UTC+1, fir wrote:
> > > sobota, 5 sierpnia 2023 o 11:59:22 UTC+2 Malcolm McLean napisał(a):
> > > > I've been working on the Baby X resource compiler for some time now.. I've added in support for audio, unicode, and dataframes, plus a few minor enhancements such as the ability to add comments and write out a header as well as a C source file.
> > > >
> > > > I'm thinking of declaring a version shortly. Then I'll probably rest from my labours. Anything else anyone would want to see?
> > > >
> > > > I don't have a Linux machine. If someone would be kind enough to valgrind it to check for memory leaks or worse bugs, that would be a help.
> > > >
> > > > The code is at
> > > > https://github.com/MalcolmMcLean/babyxrc
> > > give some examples of how it work or something...
> > > usenet is for discussint the matter things (at least in core)..
> > >
> > > also imo people shoudl genrally asume that usenet is not
> > > for opening links so people shouldnt post links to much imo
> > > but if they post about something paste it as a text content
> > >
> > It's a resource compiler. So it has a similar function to the resource compilers
> > included in Visual Studio or XCode. However instead of packaging the resources
> > into an opaque binary blob which can only be read by that platform, it
> > produces portable ANSI C output files which can be read anywhere.
> >
> > So you write a little script file. If you want to include an image, it reads it and
> > spits out a 32 bit rgba buffer. If you want an audio clip, it spits out a list
> > of pcm values as shorts. If you want a string, it escapes it for you and spits out
> > a C string.
> >
> > However its strength is that it also allows for a bit of processing of data. So
> > images can be resized, or audio can be re-sampled to match the rate you want
> > in your program. Text can be taken in in one fomart and output in another, so
> > you can read ina UTF-8 file and have a UTF-16 string output. There's also a
> > brand new and experimental dataframe tag which loads a CSV file and produces
> > an array of C structs.
> >
> > Here's a script file
> >
> > <BabyXRC>
> > <string name = "hellobabyx">Hello &quot;Baby X&quot;</string>
> > </BabyXRC>
> >
> > Invoke the program like this
> >
> > babyxrc hellobabyx.xml
> >
> > Here's the output
> >
> > char *hellobabyx = "Hello \"Baby X\"";
> and what it do with images? or things like fonts?? make char* array with initialiser or what?
>
<BabyXRC>
<image src = "testimage.jpeg"></image>
<image name = "resizedimage" src = "image2.png" width = "256" height = "256"></image>
</BabyXRC>

This one is converting two images to C source.
The first is a jpeg. It loads it, the saves the data as a C array representing 32 bit rgba values.
The second is a png. However we want to give it a different name andd we want to resize it
to 256 x 256.

Re: Baby X resource compiler nearly ready

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

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ben.use...@bsb.me.uk (Ben Bacarisse)
Newsgroups: comp.lang.c
Subject: Re: Baby X resource compiler nearly ready
Date: Sat, 05 Aug 2023 12:17:26 +0100
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <87jzu9u4ah.fsf@bsb.me.uk>
References: <1c2d0b65-3e37-4534-966f-d039a655773cn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="1194329fa9ed54d8de1d3edd8e234907";
logging-data="1819079"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19CtEP/cYF9QIFdX9a5b+j43A73pKM4JNU="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:C3EqvA15FKfOT9dPJgXf/B0z+kY=
sha1:8KyIrHPr1eyy3/4sVLo86p/aggw=
X-BSB-Auth: 1.87868fad0d83e4ce2ff6.20230805121726BST.87jzu9u4ah.fsf@bsb.me.uk
 by: Ben Bacarisse - Sat, 5 Aug 2023 11:17 UTC

Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:

> I've been working on the Baby X resource compiler for some time now.
....
> I don't have a Linux machine. If someone would be kind enough to
> valgrind it to check for memory leaks or worse bugs, that would be a
> help.

The README has no build instructions. I'm happy to guess, but other
users might not be.

--
Ben.

Re: Baby X resource compiler nearly ready

<e0e3623f-a74f-4111-9059-af24639b961fn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:620a:245:b0:762:48ca:e53c with SMTP id q5-20020a05620a024500b0076248cae53cmr11914qkn.10.1691234400499;
Sat, 05 Aug 2023 04:20:00 -0700 (PDT)
X-Received: by 2002:a05:6870:7716:b0:1bb:576c:7397 with SMTP id
dw22-20020a056870771600b001bb576c7397mr4625770oab.11.1691234400239; Sat, 05
Aug 2023 04:20:00 -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: Sat, 5 Aug 2023 04:19:59 -0700 (PDT)
In-Reply-To: <87jzu9u4ah.fsf@bsb.me.uk>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23a8:400a:5601:8141:bac9:b67e:1d99;
posting-account=Dz2zqgkAAADlK5MFu78bw3ab-BRFV4Qn
NNTP-Posting-Host: 2a00:23a8:400a:5601:8141:bac9:b67e:1d99
References: <1c2d0b65-3e37-4534-966f-d039a655773cn@googlegroups.com> <87jzu9u4ah.fsf@bsb.me.uk>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e0e3623f-a74f-4111-9059-af24639b961fn@googlegroups.com>
Subject: Re: Baby X resource compiler nearly ready
From: malcolm....@gmail.com (Malcolm McLean)
Injection-Date: Sat, 05 Aug 2023 11:20:00 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Malcolm McLean - Sat, 5 Aug 2023 11:19 UTC

On Saturday, 5 August 2023 at 12:17:46 UTC+1, Ben Bacarisse wrote:
> Malcolm McLean <malcolm.ar...@gmail.com> writes:
>
> > I've been working on the Baby X resource compiler for some time now.
> ...
> > I don't have a Linux machine. If someone would be kind enough to
> > valgrind it to check for memory leaks or worse bugs, that would be a
> > help.
> The README has no build instructions. I'm happy to guess, but other
> users might not be.
>
Thanks.
Yes, one problem is that when you are both the developer and doumenter,
you're so close to the project that it's eay to miss the obvious.

Re: Baby X resource compiler nearly ready

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

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ben.use...@bsb.me.uk (Ben Bacarisse)
Newsgroups: comp.lang.c
Subject: Re: Baby X resource compiler nearly ready
Date: Sat, 05 Aug 2023 12:29:00 +0100
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <87edkhu3r7.fsf@bsb.me.uk>
References: <1c2d0b65-3e37-4534-966f-d039a655773cn@googlegroups.com>
<25907af1-2556-4f7d-bb6e-1a9cc5baaa3an@googlegroups.com>
<caff273a-d7c2-42f4-8c89-d2ae984d0f38n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="1194329fa9ed54d8de1d3edd8e234907";
logging-data="1819079"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/S9mtkahitrS66oAhdn5VPcbCx/P4VEmM="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:7kRUlzzHbt4NeyK6/PSnLlF/Cpk=
sha1:0iys3CHH5z21icCha0Km7deysOo=
X-BSB-Auth: 1.dd9d700608451195fdad.20230805122900BST.87edkhu3r7.fsf@bsb.me.uk
 by: Ben Bacarisse - Sat, 5 Aug 2023 11:29 UTC

Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:

> Here's a script file
>
> <BabyXRC>
> <string name = "hellobabyx">Hello &quot;Baby X&quot;</string>
> </BabyXRC>

I'm struggling to find the cases where XML is either clearer or easier
than the resulting C, but then you know your users better than I do.

> Invoke the program like this
>
> babyxrc hellobabyx.xml
>
> Here's the output
>
> char *hellobabyx = "Hello \"Baby X\"";

Why not either

const char *hellobabyx = "Hello \"Baby X\"";
char hellobabyx[] = "Hello \"Baby X\"";

? You choice looks, at first lance, like the worst of the three.

--
Ben.

Re: Baby X resource compiler nearly ready

<19f2cede-912c-449d-8e8c-b3c5767635bbn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:ac8:7f86:0:b0:400:9629:cfad with SMTP id z6-20020ac87f86000000b004009629cfadmr15795qtj.13.1691235538544;
Sat, 05 Aug 2023 04:38:58 -0700 (PDT)
X-Received: by 2002:a05:6808:3089:b0:3a7:7811:241c with SMTP id
bl9-20020a056808308900b003a77811241cmr7502009oib.4.1691235538249; Sat, 05 Aug
2023 04:38:58 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Sat, 5 Aug 2023 04:38:57 -0700 (PDT)
In-Reply-To: <87edkhu3r7.fsf@bsb.me.uk>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23a8:400a:5601:8141:bac9:b67e:1d99;
posting-account=Dz2zqgkAAADlK5MFu78bw3ab-BRFV4Qn
NNTP-Posting-Host: 2a00:23a8:400a:5601:8141:bac9:b67e:1d99
References: <1c2d0b65-3e37-4534-966f-d039a655773cn@googlegroups.com>
<25907af1-2556-4f7d-bb6e-1a9cc5baaa3an@googlegroups.com> <caff273a-d7c2-42f4-8c89-d2ae984d0f38n@googlegroups.com>
<87edkhu3r7.fsf@bsb.me.uk>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <19f2cede-912c-449d-8e8c-b3c5767635bbn@googlegroups.com>
Subject: Re: Baby X resource compiler nearly ready
From: malcolm....@gmail.com (Malcolm McLean)
Injection-Date: Sat, 05 Aug 2023 11:38:58 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2335
 by: Malcolm McLean - Sat, 5 Aug 2023 11:38 UTC

On Saturday, 5 August 2023 at 12:29:15 UTC+1, Ben Bacarisse wrote:
> Malcolm McLean <malcolm.ar...@gmail.com> writes:
>
> > Here's a script file
> >
> > <BabyXRC>
> > <string name = "hellobabyx">Hello &quot;Baby X&quot;</string>
> > </BabyXRC>
> I'm struggling to find the cases where XML is either clearer or easier
> than the resulting C, but then you know your users better than I do.
>
Try
<string name = "mynovel" src = "novel.txt"></string>

And you will see the advantage.over trying to enter a C string by hand.
>
> > Invoke the program like this
> >
> > babyxrc hellobabyx.xml
> >
> > Here's the output
> >
> > char *hellobabyx = "Hello \"Baby X\"";
> Why not either
>
> const char *hellobabyx = "Hello \"Baby X\"";
> char hellobabyx[] = "Hello \"Baby X\"";
>
> ? You choice looks, at first lance, like the worst of the three.
>
Fair point. I want to keep the output as simple as possible and I don't
make image buffers const. But maybe strings should be different.

Re: Baby X resource compiler nearly ready

<3d637b0e-f3e5-407c-bf52-ce541e72f4cen@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a37:b807:0:b0:767:e807:e4fe with SMTP id i7-20020a37b807000000b00767e807e4femr11692qkf.4.1691238530653;
Sat, 05 Aug 2023 05:28:50 -0700 (PDT)
X-Received: by 2002:a05:6830:20d6:b0:6b9:982d:2397 with SMTP id
z22-20020a05683020d600b006b9982d2397mr4678732otq.5.1691238530277; Sat, 05 Aug
2023 05:28:50 -0700 (PDT)
Path: i2pn2.org!i2pn.org!news.1d4.us!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Sat, 5 Aug 2023 05:28:49 -0700 (PDT)
In-Reply-To: <62f3508e-424d-4d08-bcc3-60268f524f8bn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.157; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.157
References: <1c2d0b65-3e37-4534-966f-d039a655773cn@googlegroups.com>
<25907af1-2556-4f7d-bb6e-1a9cc5baaa3an@googlegroups.com> <caff273a-d7c2-42f4-8c89-d2ae984d0f38n@googlegroups.com>
<f8fceadf-dc0b-4ebb-ba2f-d266bc82107an@googlegroups.com> <62f3508e-424d-4d08-bcc3-60268f524f8bn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3d637b0e-f3e5-407c-bf52-ce541e72f4cen@googlegroups.com>
Subject: Re: Baby X resource compiler nearly ready
From: profesor...@gmail.com (fir)
Injection-Date: Sat, 05 Aug 2023 12:28:50 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 5872
 by: fir - Sat, 5 Aug 2023 12:28 UTC

sobota, 5 sierpnia 2023 o 12:57:25 UTC+2 Malcolm McLean napisał(a):
> On Saturday, 5 August 2023 at 11:46:46 UTC+1, fir wrote:
> > sobota, 5 sierpnia 2023 o 12:41:11 UTC+2 Malcolm McLean napisał(a):
> > > On Saturday, 5 August 2023 at 11:20:47 UTC+1, fir wrote:
> > > > sobota, 5 sierpnia 2023 o 11:59:22 UTC+2 Malcolm McLean napisał(a):
> > > > > I've been working on the Baby X resource compiler for some time now. I've added in support for audio, unicode, and dataframes, plus a few minor enhancements such as the ability to add comments and write out a header as well as a C source file.
> > > > >
> > > > > I'm thinking of declaring a version shortly. Then I'll probably rest from my labours. Anything else anyone would want to see?
> > > > >
> > > > > I don't have a Linux machine. If someone would be kind enough to valgrind it to check for memory leaks or worse bugs, that would be a help.
> > > > >
> > > > > The code is at
> > > > > https://github.com/MalcolmMcLean/babyxrc
> > > > give some examples of how it work or something...
> > > > usenet is for discussint the matter things (at least in core)..
> > > >
> > > > also imo people shoudl genrally asume that usenet is not
> > > > for opening links so people shouldnt post links to much imo
> > > > but if they post about something paste it as a text content
> > > >
> > > It's a resource compiler. So it has a similar function to the resource compilers
> > > included in Visual Studio or XCode. However instead of packaging the resources
> > > into an opaque binary blob which can only be read by that platform, it
> > > produces portable ANSI C output files which can be read anywhere.
> > >
> > > So you write a little script file. If you want to include an image, it reads it and
> > > spits out a 32 bit rgba buffer. If you want an audio clip, it spits out a list
> > > of pcm values as shorts. If you want a string, it escapes it for you and spits out
> > > a C string.
> > >
> > > However its strength is that it also allows for a bit of processing of data. So
> > > images can be resized, or audio can be re-sampled to match the rate you want
> > > in your program. Text can be taken in in one fomart and output in another, so
> > > you can read ina UTF-8 file and have a UTF-16 string output. There's also a
> > > brand new and experimental dataframe tag which loads a CSV file and produces
> > > an array of C structs.
> > >
> > > Here's a script file
> > >
> > > <BabyXRC>
> > > <string name = "hellobabyx">Hello &quot;Baby X&quot;</string>
> > > </BabyXRC>
> > >
> > > Invoke the program like this
> > >
> > > babyxrc hellobabyx.xml
> > >
> > > Here's the output
> > >
> > > char *hellobabyx = "Hello \"Baby X\"";
> > and what it do with images? or things like fonts?? make char* array with initialiser or what?
> >
> <BabyXRC>
> <image src = "testimage.jpeg"></image>
> <image name = "resizedimage" src = "image2.png" width = "256" height = "256"></image>
> </BabyXRC>
>
> This one is converting two images to C source.
> The first is a jpeg. It loads it, the saves the data as a C array representing 32 bit rgba values.
> The second is a png. However we want to give it a different name andd we want to resize it
> to 256 x 256.

overally there is a question how usage of this resources as a /data section in exe is good... in green fire for example i used bitmap fonts nad put it into it then after all i found this bad and began to use a code which uses ttf fonts but 'stamped' in internal bitmap..no chance to beat the work of fontmakers imo those the people who made unparalelable work imo

overaly systems and their filesystems are weird this times imo they lack of order and restriction..overally it alweys makes me weird why those sytems ale o liberal and chaotic though not to say for some reasons this is better than my own style of doing things becouse if i would be dong thing it all would be more simple and probably restricted which im not sure is good - becouse my thinking tend to be rectangular, i think i would never invent such style as c has which more resembles me style of a plant, or something liek that

Re: Baby X resource compiler nearly ready

<37132d40-22b8-442b-a2b6-9ddf9cd434c5n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:ae9:dec5:0:b0:767:a7c1:e784 with SMTP id s188-20020ae9dec5000000b00767a7c1e784mr12456qkf.2.1691240481959;
Sat, 05 Aug 2023 06:01:21 -0700 (PDT)
X-Received: by 2002:a9d:6a51:0:b0:6bc:b563:64f8 with SMTP id
h17-20020a9d6a51000000b006bcb56364f8mr4587630otn.7.1691240481532; Sat, 05 Aug
2023 06:01:21 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Sat, 5 Aug 2023 06:01:21 -0700 (PDT)
In-Reply-To: <3d637b0e-f3e5-407c-bf52-ce541e72f4cen@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.157; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.157
References: <1c2d0b65-3e37-4534-966f-d039a655773cn@googlegroups.com>
<25907af1-2556-4f7d-bb6e-1a9cc5baaa3an@googlegroups.com> <caff273a-d7c2-42f4-8c89-d2ae984d0f38n@googlegroups.com>
<f8fceadf-dc0b-4ebb-ba2f-d266bc82107an@googlegroups.com> <62f3508e-424d-4d08-bcc3-60268f524f8bn@googlegroups.com>
<3d637b0e-f3e5-407c-bf52-ce541e72f4cen@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <37132d40-22b8-442b-a2b6-9ddf9cd434c5n@googlegroups.com>
Subject: Re: Baby X resource compiler nearly ready
From: profesor...@gmail.com (fir)
Injection-Date: Sat, 05 Aug 2023 13:01:21 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 6701
 by: fir - Sat, 5 Aug 2023 13:01 UTC

sobota, 5 sierpnia 2023 o 14:28:58 UTC+2 fir napisał(a):
> sobota, 5 sierpnia 2023 o 12:57:25 UTC+2 Malcolm McLean napisał(a):
> > On Saturday, 5 August 2023 at 11:46:46 UTC+1, fir wrote:
> > > sobota, 5 sierpnia 2023 o 12:41:11 UTC+2 Malcolm McLean napisał(a):
> > > > On Saturday, 5 August 2023 at 11:20:47 UTC+1, fir wrote:
> > > > > sobota, 5 sierpnia 2023 o 11:59:22 UTC+2 Malcolm McLean napisał(a):
> > > > > > I've been working on the Baby X resource compiler for some time now. I've added in support for audio, unicode, and dataframes, plus a few minor enhancements such as the ability to add comments and write out a header as well as a C source file.
> > > > > >
> > > > > > I'm thinking of declaring a version shortly. Then I'll probably rest from my labours. Anything else anyone would want to see?
> > > > > >
> > > > > > I don't have a Linux machine. If someone would be kind enough to valgrind it to check for memory leaks or worse bugs, that would be a help..
> > > > > >
> > > > > > The code is at
> > > > > > https://github.com/MalcolmMcLean/babyxrc
> > > > > give some examples of how it work or something...
> > > > > usenet is for discussint the matter things (at least in core)..
> > > > >
> > > > > also imo people shoudl genrally asume that usenet is not
> > > > > for opening links so people shouldnt post links to much imo
> > > > > but if they post about something paste it as a text content
> > > > >
> > > > It's a resource compiler. So it has a similar function to the resource compilers
> > > > included in Visual Studio or XCode. However instead of packaging the resources
> > > > into an opaque binary blob which can only be read by that platform, it
> > > > produces portable ANSI C output files which can be read anywhere.
> > > >
> > > > So you write a little script file. If you want to include an image, it reads it and
> > > > spits out a 32 bit rgba buffer. If you want an audio clip, it spits out a list
> > > > of pcm values as shorts. If you want a string, it escapes it for you and spits out
> > > > a C string.
> > > >
> > > > However its strength is that it also allows for a bit of processing of data. So
> > > > images can be resized, or audio can be re-sampled to match the rate you want
> > > > in your program. Text can be taken in in one fomart and output in another, so
> > > > you can read ina UTF-8 file and have a UTF-16 string output. There's also a
> > > > brand new and experimental dataframe tag which loads a CSV file and produces
> > > > an array of C structs.
> > > >
> > > > Here's a script file
> > > >
> > > > <BabyXRC>
> > > > <string name = "hellobabyx">Hello &quot;Baby X&quot;</string>
> > > > </BabyXRC>
> > > >
> > > > Invoke the program like this
> > > >
> > > > babyxrc hellobabyx.xml
> > > >
> > > > Here's the output
> > > >
> > > > char *hellobabyx = "Hello \"Baby X\"";
> > > and what it do with images? or things like fonts?? make char* array with initialiser or what?
> > >
> > <BabyXRC>
> > <image src = "testimage.jpeg"></image>
> > <image name = "resizedimage" src = "image2.png" width = "256" height = "256"></image>
> > </BabyXRC>
> >
> > This one is converting two images to C source.
> > The first is a jpeg. It loads it, the saves the data as a C array representing 32 bit rgba values.
> > The second is a png. However we want to give it a different name andd we want to resize it
> > to 256 x 256.
> overally there is a question how usage of this resources as a /data section in exe is good... in green fire for example i used bitmap fonts nad put it into it then after all i found this bad and began to use a code which uses ttf fonts but 'stamped' in internal bitmap..no chance to beat the work of fontmakers imo those the people who made unparalelable work imo
>
> overaly systems and their filesystems are weird this times imo they lack of order and restriction..overally it alweys makes me weird why those sytems ale o liberal and chaotic though not to say for some reasons this is better than my own style of doing things becouse if i would be dong thing it all would be more simple and probably restricted which im not sure is good - becouse my thinking tend to be rectangular, i think i would never invent such style as c has which more resembles me style of a plant, or something liek that

imo filesystem probably should be build using concept of being 'modular'....i think probably each file should be treated as a module..
and the modules should probably 'carry' the scheme of references..
for exampel some should be 'open' some only tied to other module and 'closed'.. there is yet a problem of versioning..i think for example non compatible versions should be named like "A" "B" "C" when numbers only have secondary meaning and denote internal changes

besides this i think there could be a concept of 'packs' and 'locations'

Re: Baby X resource compiler nearly ready

<P9tzM.486505$GMN3.64036@fx16.iad>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.szaf.org!3.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.usenet.farm!feed.usenet.farm!peer01.ams4!peer.am4.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx16.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: Baby X resource compiler nearly ready
Newsgroups: comp.lang.c
References: <1c2d0b65-3e37-4534-966f-d039a655773cn@googlegroups.com>
Lines: 9
Message-ID: <P9tzM.486505$GMN3.64036@fx16.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Sat, 05 Aug 2023 14:38:39 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Sat, 05 Aug 2023 14:38:39 GMT
X-Received-Bytes: 1033
 by: Scott Lurndal - Sat, 5 Aug 2023 14:38 UTC

Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:

>I don't have a Linux machine. If someone would be kind enough to valgrind it to check for memory leaks or worse bugs, that would be a help.
>

If you have a windows machine, you have a linux machine, simply download
the free WSL.

https://learn.microsoft.com/en-us/windows/wsl/install

Re: Baby X resource compiler nearly ready

<ualptn$3647e$1@news.xmission.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gaze...@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.lang.c
Subject: Re: Baby X resource compiler nearly ready
Date: Sat, 5 Aug 2023 15:29:59 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <ualptn$3647e$1@news.xmission.com>
References: <1c2d0b65-3e37-4534-966f-d039a655773cn@googlegroups.com> <P9tzM.486505$GMN3.64036@fx16.iad>
Injection-Date: Sat, 5 Aug 2023 15:29:59 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="3346670"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
 by: Kenny McCormack - Sat, 5 Aug 2023 15:29 UTC

In article <P9tzM.486505$GMN3.64036@fx16.iad>,
Scott Lurndal <slp53@pacbell.net> wrote:
>Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
>
>>I don't have a Linux machine. If someone would be kind enough to
>>valgrind it to check for memory leaks or worse bugs, that would be a
>>help.
>>
>
>If you have a windows machine, you have a linux machine, simply
>download the free WSL.

From everything I've heard, WSL/WSL2 is whack.

Much better to install Virtual Box and go that route.

--
https://en.wikipedia.org/wiki/Mansplaining

It describes comp.lang.c to a T!

Re: Baby X resource compiler nearly ready

<CWvzM.295629$U3w1.196231@fx09.iad>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx09.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: Baby X resource compiler nearly ready
Newsgroups: comp.lang.c
References: <1c2d0b65-3e37-4534-966f-d039a655773cn@googlegroups.com> <P9tzM.486505$GMN3.64036@fx16.iad> <ualptn$3647e$1@news.xmission.com>
Lines: 19
Message-ID: <CWvzM.295629$U3w1.196231@fx09.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Sat, 05 Aug 2023 17:47:14 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Sat, 05 Aug 2023 17:47:14 GMT
X-Received-Bytes: 1413
 by: Scott Lurndal - Sat, 5 Aug 2023 17:47 UTC

gazelle@shell.xmission.com (Kenny McCormack) writes:
>In article <P9tzM.486505$GMN3.64036@fx16.iad>,
>Scott Lurndal <slp53@pacbell.net> wrote:
>>Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
>>
>>>I don't have a Linux machine. If someone would be kind enough to
>>>valgrind it to check for memory leaks or worse bugs, that would be a
>>>help.
>>>
>>
>>If you have a windows machine, you have a linux machine, simply
>>download the free WSL.
>
>From everything I've heard, WSL/WSL2 is whack.

Well, if you're relying on the same "everything you've heard"
about Dijkstra, then perhaps you should evaluate WSL
yourself first. :-)

Blah, blah, blah (Was: Baby X resource compiler nearly ready)

<uam5a3$369t0$1@news.xmission.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gaze...@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.lang.c
Subject: Blah, blah, blah (Was: Baby X resource compiler nearly ready)
Date: Sat, 5 Aug 2023 18:44:19 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <uam5a3$369t0$1@news.xmission.com>
References: <1c2d0b65-3e37-4534-966f-d039a655773cn@googlegroups.com> <P9tzM.486505$GMN3.64036@fx16.iad> <ualptn$3647e$1@news.xmission.com> <CWvzM.295629$U3w1.196231@fx09.iad>
Injection-Date: Sat, 5 Aug 2023 18:44:19 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="3352480"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
 by: Kenny McCormack - Sat, 5 Aug 2023 18:44 UTC

In article <CWvzM.295629$U3w1.196231@fx09.iad>,
Scott Lurndal <slp53@pacbell.net> wrote:
....
>Well, if you're relying on the same "everything you've heard"
>about Dijkstra, ....

I think you have confused me with Malcolm.

(FWW, if Dijkstra was/is a "lefty", that would be all to the good)

--
I voted for Trump because I thought he'd make pussy grabbing legal.
I honestly don't see any other way America could be made great again.

Re: Baby X resource compiler nearly ready

<878rapthbn.fsf@bsb.me.uk>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ben.use...@bsb.me.uk (Ben Bacarisse)
Newsgroups: comp.lang.c
Subject: Re: Baby X resource compiler nearly ready
Date: Sat, 05 Aug 2023 20:33:32 +0100
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <878rapthbn.fsf@bsb.me.uk>
References: <1c2d0b65-3e37-4534-966f-d039a655773cn@googlegroups.com>
<87jzu9u4ah.fsf@bsb.me.uk>
<e0e3623f-a74f-4111-9059-af24639b961fn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="1194329fa9ed54d8de1d3edd8e234907";
logging-data="1960443"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19x+DKrZkzDR+2XNgki6z/qoSMbXtMqqXQ="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:5Ld5kT3hbWD6mbMt4FKyDyOMUi4=
sha1:4gdT6oN9fMWQIsC8wcUZ+H0Kk6k=
X-BSB-Auth: 1.e6fa8d902b46c7c8ada3.20230805203332BST.878rapthbn.fsf@bsb.me.uk
 by: Ben Bacarisse - Sat, 5 Aug 2023 19:33 UTC

Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:

> On Saturday, 5 August 2023 at 12:17:46 UTC+1, Ben Bacarisse wrote:
>> Malcolm McLean <malcolm.ar...@gmail.com> writes:
>>
>> > I've been working on the Baby X resource compiler for some time now.
>> ...
>> > I don't have a Linux machine. If someone would be kind enough to
>> > valgrind it to check for memory leaks or worse bugs, that would be a
>> > help.
>> The README has no build instructions. I'm happy to guess, but other
>> users might not be.
>>
> Thanks.
> Yes, one problem is that when you are both the developer and doumenter,
> you're so close to the project that it's eay to miss the obvious.

I get compile errors, but maybe this is not the right place to debug a
build system...

--
Ben.

Re: Baby X resource compiler nearly ready

<644ac909-d6b9-42b9-88c0-1442b6fd227an@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:ad4:5a05:0:b0:634:81f6:569b with SMTP id ei5-20020ad45a05000000b0063481f6569bmr16585qvb.10.1691264378518;
Sat, 05 Aug 2023 12:39:38 -0700 (PDT)
X-Received: by 2002:a9d:6442:0:b0:6ba:3da9:bf53 with SMTP id
m2-20020a9d6442000000b006ba3da9bf53mr5318202otl.3.1691264378355; Sat, 05 Aug
2023 12:39:38 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Sat, 5 Aug 2023 12:39:37 -0700 (PDT)
In-Reply-To: <878rapthbn.fsf@bsb.me.uk>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23a8:400a:5601:8141:bac9:b67e:1d99;
posting-account=Dz2zqgkAAADlK5MFu78bw3ab-BRFV4Qn
NNTP-Posting-Host: 2a00:23a8:400a:5601:8141:bac9:b67e:1d99
References: <1c2d0b65-3e37-4534-966f-d039a655773cn@googlegroups.com>
<87jzu9u4ah.fsf@bsb.me.uk> <e0e3623f-a74f-4111-9059-af24639b961fn@googlegroups.com>
<878rapthbn.fsf@bsb.me.uk>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <644ac909-d6b9-42b9-88c0-1442b6fd227an@googlegroups.com>
Subject: Re: Baby X resource compiler nearly ready
From: malcolm....@gmail.com (Malcolm McLean)
Injection-Date: Sat, 05 Aug 2023 19:39:38 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2275
 by: Malcolm McLean - Sat, 5 Aug 2023 19:39 UTC

On Saturday, 5 August 2023 at 20:33:48 UTC+1, Ben Bacarisse wrote:
> Malcolm McLean <malcolm.ar...@gmail.com> writes:
>
> > On Saturday, 5 August 2023 at 12:17:46 UTC+1, Ben Bacarisse wrote:
> >> Malcolm McLean <malcolm.ar...@gmail.com> writes:
> >>
> >> > I've been working on the Baby X resource compiler for some time now.
> >> ...
> >> > I don't have a Linux machine. If someone would be kind enough to
> >> > valgrind it to check for memory leaks or worse bugs, that would be a
> >> > help.
> >> The README has no build instructions. I'm happy to guess, but other
> >> users might not be.
> >>
> > Thanks.
> > Yes, one problem is that when you are both the developer and doumenter,
> > you're so close to the project that it's eay to miss the obvious.
> I get compile errors, but maybe this is not the right place to debug a
> build system...
>
Oh dear.
Can you raise an issue on the github page?
It compiles for me on Mac and Windows without problems.

Re: Baby X resource compiler nearly ready

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

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ben.use...@bsb.me.uk (Ben Bacarisse)
Newsgroups: comp.lang.c
Subject: Re: Baby X resource compiler nearly ready
Date: Sat, 05 Aug 2023 22:48:31 +0100
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <87wmy9rwi8.fsf@bsb.me.uk>
References: <1c2d0b65-3e37-4534-966f-d039a655773cn@googlegroups.com>
<87jzu9u4ah.fsf@bsb.me.uk>
<e0e3623f-a74f-4111-9059-af24639b961fn@googlegroups.com>
<878rapthbn.fsf@bsb.me.uk>
<644ac909-d6b9-42b9-88c0-1442b6fd227an@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="1194329fa9ed54d8de1d3edd8e234907";
logging-data="1992839"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+VrqsLyFKysjeHkmCVV5DjdZydw7rLkjk="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:+2GrKrRd2EqNfDxGgAPwl06O7Hg=
sha1:8dBHg8BOcayYJNIU86V6WZ7CGAw=
X-BSB-Auth: 1.7597ff90575ab83258db.20230805224831BST.87wmy9rwi8.fsf@bsb.me.uk
 by: Ben Bacarisse - Sat, 5 Aug 2023 21:48 UTC

Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:

> On Saturday, 5 August 2023 at 20:33:48 UTC+1, Ben Bacarisse wrote:
>> Malcolm McLean <malcolm.ar...@gmail.com> writes:
>>
>> > On Saturday, 5 August 2023 at 12:17:46 UTC+1, Ben Bacarisse wrote:
>> >> Malcolm McLean <malcolm.ar...@gmail.com> writes:
>> >>
>> >> > I've been working on the Baby X resource compiler for some time now.
>> >> ...
>> >> > I don't have a Linux machine. If someone would be kind enough to
>> >> > valgrind it to check for memory leaks or worse bugs, that would be a
>> >> > help.
>> >> The README has no build instructions. I'm happy to guess, but other
>> >> users might not be.
>> >>
>> > Thanks.
>> > Yes, one problem is that when you are both the developer and doumenter,
>> > you're so close to the project that it's eay to miss the obvious.
>> I get compile errors, but maybe this is not the right place to debug a
>> build system...
>>
> Oh dear.
> Can you raise an issue on the github page?

Can you find a Linux user of BabyX who might want to try it? Since I'm
not a potential user, there's not much incentive to start what might be
a long debugging session.

> It compiles for me on Mac and Windows without problems.

--
Ben.

Re: Baby X resource compiler nearly ready

<a4b1ffc5-2ec6-463e-8c69-bb41c6f4f38cn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a37:58c7:0:b0:76c:9b10:7fa9 with SMTP id m190-20020a3758c7000000b0076c9b107fa9mr20529qkb.9.1691317316876;
Sun, 06 Aug 2023 03:21:56 -0700 (PDT)
X-Received: by 2002:a05:6808:1790:b0:3a6:e566:ab4e with SMTP id
bg16-20020a056808179000b003a6e566ab4emr9893358oib.10.1691317316685; Sun, 06
Aug 2023 03:21:56 -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, 6 Aug 2023 03:21:56 -0700 (PDT)
In-Reply-To: <87wmy9rwi8.fsf@bsb.me.uk>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23a8:400a:5601:b480:2fcc:38b4:7d80;
posting-account=Dz2zqgkAAADlK5MFu78bw3ab-BRFV4Qn
NNTP-Posting-Host: 2a00:23a8:400a:5601:b480:2fcc:38b4:7d80
References: <1c2d0b65-3e37-4534-966f-d039a655773cn@googlegroups.com>
<87jzu9u4ah.fsf@bsb.me.uk> <e0e3623f-a74f-4111-9059-af24639b961fn@googlegroups.com>
<878rapthbn.fsf@bsb.me.uk> <644ac909-d6b9-42b9-88c0-1442b6fd227an@googlegroups.com>
<87wmy9rwi8.fsf@bsb.me.uk>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a4b1ffc5-2ec6-463e-8c69-bb41c6f4f38cn@googlegroups.com>
Subject: Re: Baby X resource compiler nearly ready
From: malcolm....@gmail.com (Malcolm McLean)
Injection-Date: Sun, 06 Aug 2023 10:21:56 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Malcolm McLean - Sun, 6 Aug 2023 10:21 UTC

On Saturday, 5 August 2023 at 22:48:46 UTC+1, Ben Bacarisse wrote:
> Malcolm McLean <malcolm.ar...@gmail.com> writes:
>
> > On Saturday, 5 August 2023 at 20:33:48 UTC+1, Ben Bacarisse wrote:
> >> Malcolm McLean <malcolm.ar...@gmail.com> writes:
> >>
> >> > On Saturday, 5 August 2023 at 12:17:46 UTC+1, Ben Bacarisse wrote:
> >> >> Malcolm McLean <malcolm.ar...@gmail.com> writes:
> >> >>
> >> >> > I've been working on the Baby X resource compiler for some time now.
> >> >> ...
> >> >> > I don't have a Linux machine. If someone would be kind enough to
> >> >> > valgrind it to check for memory leaks or worse bugs, that would be a
> >> >> > help.
> >> >> The README has no build instructions. I'm happy to guess, but other
> >> >> users might not be.
> >> >>
> >> > Thanks.
> >> > Yes, one problem is that when you are both the developer and doumenter,
> >> > you're so close to the project that it's eay to miss the obvious.
> >> I get compile errors, but maybe this is not the right place to debug a
> >> build system...
> >>
> > Oh dear.
> > Can you raise an issue on the github page?
> Can you find a Linux user of BabyX who might want to try it? Since I'm
> not a potential user, there's not much incentive to start what might be
> a long debugging session.
> > It compiles for me on Mac and Windows without problems.
>
I've found the bug. Whilst you're right that here isn't the right place to
do a build debug session, Bart would love this. A third party module is
using the stdint.h type unit64_t and this is clashing with a symbol defined
elsewhere.
So the entire Baby X resource compiler program becomes usable on Linux.

Re: Baby X resource compiler nearly ready

<uanuhp$3770n$1@news.xmission.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!1.us.feeder.erje.net!feeder.erje.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gaze...@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.lang.c
Subject: Re: Baby X resource compiler nearly ready
Date: Sun, 6 Aug 2023 11:01:13 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <uanuhp$3770n$1@news.xmission.com>
References: <1c2d0b65-3e37-4534-966f-d039a655773cn@googlegroups.com> <644ac909-d6b9-42b9-88c0-1442b6fd227an@googlegroups.com> <87wmy9rwi8.fsf@bsb.me.uk> <a4b1ffc5-2ec6-463e-8c69-bb41c6f4f38cn@googlegroups.com>
Injection-Date: Sun, 6 Aug 2023 11:01:13 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="3382295"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
 by: Kenny McCormack - Sun, 6 Aug 2023 11:01 UTC

In article <a4b1ffc5-2ec6-463e-8c69-bb41c6f4f38cn@googlegroups.com>,
Malcolm McLean <malcolm.arthur.mclean@gmail.com> wrote:
....
>I've found the bug. Whilst you're right that here isn't the right place to
>do a build debug session, Bart would love this. A third party module is
>using the stdint.h type unit64_t and this is clashing with a symbol defined
>elsewhere.

unit64_t?

Sounds like something out of a sci-fi novel...

>So the entire Baby X resource compiler program becomes usable on Linux.

Usable? (or unusable)

--
I voted for Trump because I thought he'd make pussy grabbing legal.
I honestly don't see any other way America could be made great again.

Re: Baby X resource compiler nearly ready

<da68fd88-8d75-4601-bd7d-71d4109bf416n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:622a:4a0f:b0:40a:9069:895b with SMTP id fv15-20020a05622a4a0f00b0040a9069895bmr32725qtb.2.1691321808254;
Sun, 06 Aug 2023 04:36:48 -0700 (PDT)
X-Received: by 2002:a05:6808:1788:b0:3a7:62ef:f133 with SMTP id
bg8-20020a056808178800b003a762eff133mr10514676oib.10.1691321807958; Sun, 06
Aug 2023 04:36:47 -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, 6 Aug 2023 04:36:47 -0700 (PDT)
In-Reply-To: <uanuhp$3770n$1@news.xmission.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23a8:400a:5601:b480:2fcc:38b4:7d80;
posting-account=Dz2zqgkAAADlK5MFu78bw3ab-BRFV4Qn
NNTP-Posting-Host: 2a00:23a8:400a:5601:b480:2fcc:38b4:7d80
References: <1c2d0b65-3e37-4534-966f-d039a655773cn@googlegroups.com>
<644ac909-d6b9-42b9-88c0-1442b6fd227an@googlegroups.com> <87wmy9rwi8.fsf@bsb.me.uk>
<a4b1ffc5-2ec6-463e-8c69-bb41c6f4f38cn@googlegroups.com> <uanuhp$3770n$1@news.xmission.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <da68fd88-8d75-4601-bd7d-71d4109bf416n@googlegroups.com>
Subject: Re: Baby X resource compiler nearly ready
From: malcolm....@gmail.com (Malcolm McLean)
Injection-Date: Sun, 06 Aug 2023 11:36:48 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Malcolm McLean - Sun, 6 Aug 2023 11:36 UTC

On Sunday, 6 August 2023 at 12:01:28 UTC+1, Kenny McCormack wrote:
> In article <a4b1ffc5-2ec6-463e...@googlegroups.com>,
> Malcolm McLean <malcolm.ar...@gmail.com> wrote:
> ...
> >I've found the bug. Whilst you're right that here isn't the right place to
> >do a build debug session, Bart would love this. A third party module is
> >using the stdint.h type unit64_t and this is clashing with a symbol defined
> >elsewhere.
> unit64_t?
>
> Sounds like something out of a sci-fi novel...
> >So the entire Baby X resource compiler program becomes usable on Linux.
> Usable? (or unusable)
>
Unusable. It's usable now. There wasn't much wrong with it. But just enough
so that it wont compile. And that will put large numbers of potential users off.
I didn't have a clue until Ben kindly told me. I've got an Apple Mac and a Windows
machine, but not currently a Linux machine.
The a basic problem was that I am using a MP3 decoder written by someone else.
They wrote a file called clib.h which has various efficiency and portability hacks.
It includes this

#if !NEED_MINILIBC
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#endif
#include <math.h>

#ifndef __int8_t_defined
#define __int8_t_defined
typedef unsigned char uint8_t;
typedef signed char int8_t;
typedef unsigned short uint16_t;
typedef signed short int16_t;
typedef unsigned int uint32_t;
typedef signed int int32_t;
#ifdef _MSC_VER
typedef unsigned __int64 uint64_t;
typedef signed __int64 int64_t;
#else
typedef unsigned long long uint64_t;
typedef signed long long int64_t;
#endif
#endif

Linux include <stdint.h> from the system headers. Windows and Mac doesn't.
So this breaks when compiled on Linux. By trying to be portable, they managed
to produce something which wasn't portable.

It really confirms my view that it's best to write in a conservative subset of C90
and the subsequent standards. otherwise you just get endless trouble. But writing
my own MP3 decoder would be a huge job (I've written one before, but it was for
work so of course I can't put it on the web).

Re: Baby X resource compiler nearly ready

<LntMHk8YCfUSQ6SmB@bongo-ra.co>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: spi...@gmail.com (Spiros Bousbouras)
Newsgroups: comp.lang.c
Subject: Re: Baby X resource compiler nearly ready
Date: Sun, 6 Aug 2023 12:52:51 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 51
Message-ID: <LntMHk8YCfUSQ6SmB@bongo-ra.co>
References: <1c2d0b65-3e37-4534-966f-d039a655773cn@googlegroups.com> <644ac909-d6b9-42b9-88c0-1442b6fd227an@googlegroups.com> <87wmy9rwi8.fsf@bsb.me.uk>
<a4b1ffc5-2ec6-463e-8c69-bb41c6f4f38cn@googlegroups.com> <uanuhp$3770n$1@news.xmission.com> <da68fd88-8d75-4601-bd7d-71d4109bf416n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 6 Aug 2023 12:52:51 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="668a7d136865e4b00b5aac8a90d95534";
logging-data="2393584"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18G3dIfmjFJG6qSdCQd8CWP"
Cancel-Lock: sha1:Fc/+l2Hfi9B9hNnT/u4QWmM46F0=
In-Reply-To: <da68fd88-8d75-4601-bd7d-71d4109bf416n@googlegroups.com>
X-Server-Commands: nowebcancel
X-Organisation: Weyland-Yutani
 by: Spiros Bousbouras - Sun, 6 Aug 2023 12:52 UTC

On Sun, 6 Aug 2023 04:36:47 -0700 (PDT)
Malcolm McLean <malcolm.arthur.mclean@gmail.com> wrote:
> The a basic problem was that I am using a MP3 decoder written by someone else.
> They wrote a file called clib.h which has various efficiency and portability hacks.
> It includes this
>
> #if !NEED_MINILIBC
> #include <stdio.h>
> #include <stdlib.h>
> #include <string.h>
> #endif
> #include <math.h>
>
> #ifndef __int8_t_defined
> #define __int8_t_defined
> typedef unsigned char uint8_t;
> typedef signed char int8_t;
> typedef unsigned short uint16_t;
> typedef signed short int16_t;
> typedef unsigned int uint32_t;
> typedef signed int int32_t;
> #ifdef _MSC_VER
> typedef unsigned __int64 uint64_t;
> typedef signed __int64 int64_t;
> #else
> typedef unsigned long long uint64_t;
> typedef signed long long int64_t;
> #endif
> #endif
>
> Linux include <stdint.h> from the system headers. Windows and Mac doesn't.
> So this breaks when compiled on Linux. By trying to be portable, they
> managed to produce something which wasn't portable.
>
> It really confirms my view that it's best to write in a conservative subset
> of C90 and the subsequent standards. otherwise you just get endless
> trouble.

My view is that it's best not to use code which has so many issues unless you
fix them first. First , the code above has undefined behaviour because it
uses reserved identifiers. Second , using __ in the beginning of
identifiers with the hope of avoiding clashes is a bad design decision
because so many C libraries make the same bad decision so it does not reduce
the chances of having clashes. It is best to start identifiers in libraries
which are for public usage with a prefix which isn't reserved by the standard
and has a reasonable chance of being unique. So for example an MP3 decoder
written by John Smith could start all public identifiers with JSMD_ (John
Smith MP3 decoder).

--
vlaho.ninja/prog

Pages:123
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor