Bug#1058646: ITP: qbe -- Small embeddable C compiler backend

2024-04-29 Thread Miguel Landaeta
On Sun, Apr 28, 2024 at 11:51 PM Guilherme Puida Moreira
 wrote:
>
> Hi Miguel,
>
> On Sun, Apr 28, 2024 at 10:54:54PM +0100, Miguel Landaeta wrote:
> > Can you also reach out to upstream and send your man page contribution
> > there, so you can gather feedback and other users can benefit if they
> > decide to merge it?
>
> Will do. Thanks for the ping!

qbe: https://ftp-master.debian.org/new/qbe_1.2-1.html

> By the way, you mentioned that you had a preliminary hare package on
> #1058645. If you need any help, just let me know.

I'll double check what's pending. Luckily these packages should be
very straightforward. I remember one concern from one of the
co-maintainers about maybe introducing a separate package for harec
and I think I also spotted a directory in the binary package that
could be not compliant with the Debian policy and the expected
filesystem layout.

However, those issues should be quick to sort, I hope. I'll check
what's up and post an update on the hare ITP bug (#1058645) soon.


--
Miguel Landaeta, miguel at miguel.cc
secure email with PGP 0x6E608B637D8967E9 available at http://keyserver.pgp.com/
"Faith means not wanting to know what is true." -- Nietzsche



Bug#1058646: ITP: qbe -- Small embeddable C compiler backend

2024-04-28 Thread Guilherme Puida Moreira
Hi Miguel,

On Sun, Apr 28, 2024 at 10:54:54PM +0100, Miguel Landaeta wrote:
> Can you also reach out to upstream and send your man page contribution
> there, so you can gather feedback and other users can benefit if they
> decide to merge it?

Will do. Thanks for the ping!

By the way, you mentioned that you had a preliminary hare package on
#1058645. If you need any help, just let me know.

Thanks,

--puida



Bug#1058646: ITP: qbe -- Small embeddable C compiler backend

2024-04-28 Thread Miguel Landaeta
Hi folks,

I apologize I took me this long to work on qbe upload.

Guilherme, thanks for contributing a man page for qbe. I just included
it in the package.
Can you also reach out to upstream and send your man page contribution
there, so you can gather feedback and other users can benefit if they
decide to merge it?

Amin, I took some bias for action and I just uploaded the latest
changes in debian/latest to the archive. However, my upload just got
rejected because I forgot to include the source changes and did only a
binary upload. I don't have time today to fix that and retry so I'll
do that tomorrow unless you do it first (if you want or if you have
more changes pending that you want to include in the first upload).

I'll paste a link to this package NEW queue entry later so other users
can have visibility on the progress.

Thanks for your contributions!
Cheers,

-- 
Miguel Landaeta, miguel at miguel.cc
secure email with PGP 0x6E608B637D8967E9 available at http://keyserver.pgp.com/
"Faith means not wanting to know what is true." -- Nietzsche



Bug#1058646: ITP: qbe -- Small embeddable C compiler backend

2024-04-10 Thread Miguel Landaeta
On Wed, Apr 10, 2024 at 2:51 PM Guilherme Puida Moreira
 wrote:
>
> Hi Miguel,
>
> [...]
>
> I have written a very simple man page for qbe (see attached patch). I
> have never actually used qbe directly, so I'm not sure what else should
> be documented there. I figured that the cli options were a good starting
> point, though.
>

Hi Guilherme,

Thanks for the patch!

As you mentioned, this package is almost ready to be uploaded so I'll
try to prioritize it and upload it during the weekend.

Cheers,
Miguel.

-- 
Miguel Landaeta, miguel at miguel.cc
secure email with PGP 0x6E608B637D8967E9 available at http://keyserver.pgp.com/
"Faith means not wanting to know what is true." -- Nietzsche



Bug#1058646: ITP: qbe -- Small embeddable C compiler backend

2024-04-10 Thread Guilherme Puida Moreira
Hi Miguel,

On Mon, 26 Feb 2024 22:18:16 + Miguel Landaeta  wrote:
> I think qbe is almost ready for an upload but it's missing a man page
> and probably just need a review from another DD to be sure I didn't
> miss anything important.

I have written a very simple man page for qbe (see attached patch). I
have never actually used qbe directly, so I'm not sure what else should
be documented there. I figured that the cli options were a good starting
point, though.

I'm very interested in getting hare package since I have some personal
software built with it. Let me know if there's anything else I could do
to make this easier :^)

--puida
>From 9685361f006f5c6ce742f1224e4d62b40ba99fb2 Mon Sep 17 00:00:00 2001
From: Guilherme Puida Moreira 
Date: Wed, 10 Apr 2024 10:20:23 -0300
Subject: [PATCH] d/manpages: Create qbe.1 manpage.

---
 debian/manpages |  1 +
 debian/qbe.1| 25 +
 2 files changed, 26 insertions(+)
 create mode 100644 debian/manpages
 create mode 100644 debian/qbe.1

diff --git a/debian/manpages b/debian/manpages
new file mode 100644
index 000..663231d
--- /dev/null
+++ b/debian/manpages
@@ -0,0 +1 @@
+debian/qbe.1
diff --git a/debian/qbe.1 b/debian/qbe.1
new file mode 100644
index 000..e231175
--- /dev/null
+++ b/debian/qbe.1
@@ -0,0 +1,25 @@
+.Dd $Mdocdate: April 10 2024 $
+.Dt QBE 1
+.Os
+.Sh NAME
+.Nm qbe
+.Nd small embeddable C compiler backend
+.Sh SYNOPSIS
+.Nm
+.Op Fl h
+.Op Fl o Ar file
+.Op Fl t Ar target
+.Op Fl d Ar flags
+.Op Ar file.ssa | Fl
+.Sh DESCRIPTION
+The options are as follows:
+.Bl -tag -width Ds
+.It Fl h
+Prints the help message and exits.
+.It Fl o Ar file
+Output to file.
+.It Fl t Ar target
+Generate for a target among: amd64_sysv (default), amd64_apple, arm64, arm64_apple, riscv.
+.It Fl d Ar flags
+Dump debug information.
+.El
-- 
2.43.0



Bug#1058646: ITP: qbe -- Small embeddable C compiler backend

2024-02-26 Thread Miguel Landaeta
On Thu, Feb 22, 2024 at 09:46:00PM +, Amin Bandali wrote:
> On Thu, Feb 22, 2024 at 09:23:20PM +, Miguel Landaeta wrote:
> > On Thu, Feb 22, 2024 at 02:19:21AM +, Amin Bandali wrote:
> > > Hi Miguel,
> > > 
> > > I'm interested in helping with this.  Do you have the current state 
> > > of your work available on Salsa or elsewhere that I could pull in
> > > and work on?  Otherwise I'll just start with a repo under my own
> > > account and we could later transfer it to the 'debian' group or
> > > elsewhere.
> > 
> > Hi Amin, thanks for reaching out.
> > 
> > I'll push my repo tomorrow or during the weekend to salsa and
> > update this thread with the link.

Hi again Amin,

I just pushed my repo to Salsa:

https://salsa.debian.org/debian/qbe

The package builds fine on my machine but I didn't test this
qbe release yet with hare. I'll try to do that tomorrow when I push
my hare repo as well.

I think qbe is almost ready for an upload but it's missing a man page
and probably just need a review from another DD to be sure I didn't
miss anything important.

Cheers,
Miguel.


-- 
Miguel Landaeta, nomadium at debian.org
secure email with PGP 0x6E608B637D8967E9 available at http://miguel.cc/key.
"Faith means not wanting to know what is true." -- Nietzsche



Bug#1058646: ITP: qbe -- Small embeddable C compiler backend

2024-02-22 Thread Amin Bandali
Hi Miguel,

On Thu, Feb 22, 2024 at 09:23:20PM +, Miguel Landaeta wrote:
> On Thu, Feb 22, 2024 at 02:19:21AM +, Amin Bandali wrote:
> > Hi Miguel,
> > 
> > I'm interested in helping with this.  Do you have the current state 
> > of your work available on Salsa or elsewhere that I could pull in
> > and work on?  Otherwise I'll just start with a repo under my own
> > account and we could later transfer it to the 'debian' group or
> > elsewhere.
> 
> Hi Amin, thanks for reaching out.
> 
> I'll push my repo tomorrow or during the weekend to salsa and
> update this thread with the link.
> 
> I started to work on this package a few weeks ago but I decided to
> wait for qbe 1.2 before uploading a package and I just noticed
> it finally happened this week so I was planning to resume my work
> on it.
> 
> I don't have time to work on it this weekend but I'll publish it
> in a few hours to unblock you and other folks interested in
> collaborating.

Sounds great, thanks in advance!

FWIW I was browsing Hare's website again earlier, and saw this bit
on https://harelang.org/installation:

  Step 0: Pre-requisites

[...]
QBE (the latest version on the git master branch, not the latest versioned 
release)

Though I think/hope that that's a remnant from earlier times before
Hare's first versioned release.  Hare's new release policy at
https://git.sr.ht/~sircmpwn/hare/tree/master/item/docs/release.md
is more reassuring:

  The Hare toolchain's chief dependency is qbe. Each Hare version
  is pinned to a specific qbe release, which is documented in the
  release notes corresponding to that Hare version.

So I'm hopeful that at this point and onwards, Hare would depend
on tagged release versions of qbe rather than git trunk commits.

> If you want, I can add you as co-maintainer.
> 
> Cheers,
> Miguel.

Sure, that would be great - many thanks. :-)

Best,
-amin



Bug#1058646: ITP: qbe -- Small embeddable C compiler backend

2024-02-22 Thread Miguel Landaeta
On Thu, Feb 22, 2024 at 02:19:21AM +, Amin Bandali wrote:
> Hi Miguel,
> 
> I'm interested in helping with this.  Do you have the current state 
> of your work available on Salsa or elsewhere that I could pull in
> and work on?  Otherwise I'll just start with a repo under my own
> account and we could later transfer it to the 'debian' group or
> elsewhere.

Hi Amin, thanks for reaching out.

I'll push my repo tomorrow or during the weekend to salsa and
update this thread with the link.

I started to work on this package a few weeks ago but I decided to
wait for qbe 1.2 before uploading a package and I just noticed
it finally happened this week so I was planning to resume my work
on it.

I don't have time to work on it this weekend but I'll publish it
in a few hours to unblock you and other folks interested in
collaborating.

If you want, I can add you as co-maintainer.

Cheers,
Miguel.

-- 
Miguel Landaeta, nomadium at debian.org
secure email with PGP 0x6E608B637D8967E9 available at http://miguel.cc/key.
"Faith means not wanting to know what is true." -- Nietzsche



Bug#1058646: ITP: qbe -- Small embeddable C compiler backend

2024-02-21 Thread Amin Bandali
Hi Miguel,

I'm interested in helping with this.  Do you have the current state 
of your work available on Salsa or elsewhere that I could pull in
and work on?  Otherwise I'll just start with a repo under my own
account and we could later transfer it to the 'debian' group or
elsewhere.

Thanks,
-a



Bug#1058646: ITP: qbe -- Small embeddable C compiler backend

2023-12-13 Thread Miguel Landaeta
Package: wnpp
Severity: wishlist
Owner: Miguel Landaeta 
X-Debbugs-Cc: debian-de...@lists.debian.org

* Package name: qbe
  Version : 1.1
  Upstream Contact: Quentin Carbonneaux 
* URL : https://c9x.me/compile/
* License : MIT
  Programming Lang: C
  Description : Small embeddable C compiler backend

QBE is a compiler backend that aims to provide 70% of the performance
of industrial optimizing compilers in 10% of the code.
QBE fosters language innovation by offering a compact user-friendly
and performant backend. The size limit constrains QBE to focus on the
essential and prevents embarking on a never-ending path of diminishing
returns.

QBE is a build-dependency of Hare.
See https://c9x.me/compile/users.html for other QBE language frontends.