~cznic

Recent activity

Re: Looking for feedback on migrating to CMake (and CTest) 21 days ago

From Jan Mercl to ~mpu/qbe

On Sun, Dec 29, 2024 at 10:52 AM Drew DeVault <sir@cmpwn.com> wrote:

> Absolutely not. For the love of god please do not apply this patch, mpu.

+1 vote.

font/fixed tests failing on linux/arm 2 months ago

From Jan Mercl to ~sbinet/star-tex

Hi Sebastien,

At 723afeea, https://git.sr.ht/~sbinet/star-tex/tree/main/item/font/fixed/int12_20.go#L33
and https://git.sr.ht/~sbinet/star-tex/tree/main/item/font/fixed/int16_16.go#L31
there are conversions from float64 to a type based on uint32, ie. an
unsigned type. Those conversions are not guaranteed to work when the
number is out of range for the target type, but it is CPU-specific. On
linux/arm it seems the CPU conversion instruction converts negative
float64 values to uint32(0) and the test fails, see
https://gitlab.com/cznic/builder/-/raw/master/logs/modernc.org/knuth/pi32.

Please see the fix just pushed in
https://gitlab.com/cznic/knuth/-/commit/ae0b147fc8ba5da8093ad4b136b0f3a51409ff61
that resolved the issue. I suggest incorporating it upstream in

Unused assignemnt to variable 4 months ago

From Jan Mercl to ~sbinet/star-tex

Hi Sebastien.

staticcheck noticed this:
https://git.sr.ht/~sbinet/star-tex/tree/main/item/cmd/dvi-cnv/png.go#L68

I'm not able to figure out if the value of the computation should be
used somehow or if it is perhaps some leftover from a debug session or
something else.

Best,

-j

[ANN] libqbe 1 year, 2 months ago

From Jan Mercl to ~mpu/qbe

libqbe is a Go package wrapping the [transpiled to Go] QBE command.

https://pkg.go.dev/modernc.org/libqbe

-j

Re: make check issues 1 year, 5 months ago

From Jan Mercl to ~mpu/qbe

Thanks for replying!

On Fri, Aug 18, 2023 at 3:24 PM Quentin Carbonneaux <quentin@c9x.me> wrote:
>
> On Sun, Aug 13, 2023, at 13:52, Jan Mercl wrote:
> > -       if ! $cc -g -o $exe $src
> > +       if ! $cc -g -o $exe $src -lpthread
>
> Could you check what the variable 'cc' is set to
> at this point? I believe it should include -lpthread
> already.

On my system it seems to be not set.

make check issues 1 year, 5 months ago

From Jan Mercl to ~mpu/qbe

I was not able to run $ make check, see the terminal session below:

jnml@3900x:~/src/c9x.me/qbe$ git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
jnml@3900x:~/src/c9x.me/qbe$ git log -1
commit e493a7f23352f51acc0a1e12284ab19d7894488a (HEAD -> master,
origin/master, origin/HEAD)
Author: Alexey Yerin <yyp@disroot.org>
Date:   Sun May 28 12:01:32 2023 +0300

    Bump NString
[message trimmed]

Re: [ANN] star-tex v0.1.0 3 years ago

From Jan Mercl to ~sbinet/star-tex

@d24877c3

jnml@3900x:~/src/modernc.org/web2go$ go test -v
=== RUN   TestScanner
    all_test.go:111: toks: 123190
--- PASS: TestScanner (0.09s)
=== RUN   TestParser
--- PASS: TestParser (0.12s)
PASS
ok  modernc.org/web2go 0.219s
jnml@3900x:~/src/modernc.org/web2go$

Re: [ANN] star-tex v0.1.0 3 years ago

From Jan Mercl to ~sbinet/star-tex

On Wed, Feb 24, 2021 at 11:48 PM Sebastien Binet <s@sbinet.org> wrote:

> originally, during the transition to UNIX, the TeX toolchain migrated to
> Web2c, that does what I planned for Go, but with C as a target.
> (then people such as LuaTeX or XeTeX and others, tried to get rid of the
> WEB step as it's a bit cumbersome to edit).
>
> The sources of Web2c are there:
> - https://github.com/TeX-Live/texlive-source/tree/trunk/texk/web2c/web2c
> - https://github.com/TeX-Live/texlive-source/blob/trunk/texk/web2c/tangle.web
> - https://github.com/TeX-Live/texlive-source/blob/trunk/texk/web2c/tangle.ch
> - https://github.com/TeX-Live/texlive-source/blob/trunk/texk/web2c/tangle-sh.in
>
>

Re: [ANN] star-tex v0.1.0 3 years ago

From Jan Mercl to ~sbinet/star-tex

On Wed, Feb 24, 2021 at 10:22 PM Sebastien Binet <s@sbinet.org> wrote:

> In parallel, we should probably develop a complete web2go program that
>
> - takes the official "tex.web" file,
> - parses it,
> - retains all documentation informations,
> - preserves strings, constant literals,
> - dumps the (Pascal) AST as Go code.
>
> Prior art related to this: [1].
>
> that should be fun.