Marc B. Reynolds

jack of no trades

2025-07-03

@regehr @geofflangdale @rygorous @harold @camelcdr @steve "Matters Computational" is free and covers some territory. jjj.de/fxt/fxtbook.pdf

2025-07-02

@fanf Yeah. If you didn't notice there's a github repo for it.

2025-07-01

I find this interesting. Our 14 yo picked-up and played through Clair Obscur early on. Now his "taste" in music the past couple of years has been the standard pre/early teen fare of "current pop". However the "Clair Obscur" soundtrack has been added and stayed in his playlist.

2025-06-29

@SoufianeKHIAT TIL and LOL! What?

2025-06-23

@dysfun @regehr Yeah. The calculator page (1) will express in terms of PEXT (& PDEP)

1) programming.sirrida.de/calcper

EDIT: What I intended to say if the "best" it finds is SAG...it's say so and show it implemented using a pair of PEXT and a shift.

2025-06-23

@dysfun @regehr sheep and goats. Don't know what BGRP is. It's also sometime called generalized bit unzip.

2025-06-23

Choose a reasonable generic length and any longer expansions can choose a larger POT or custom one close to the actual length needed.

1) github.com/pfultz2/Cloak/wiki/

2) scs.stanford.edu/~dm/blog/va-o

2025-06-23

I mentioned the C macro crime of Fultz's rescan (1) and Mazières' map (2) yesterday.

I guess I'm a bit slow on the uptake but it occurred to me that if the "tree" of expansions is two per level then that gives 2^p for a given level.

Now we can addition chain a desired exponent (by nesting POT levels) to hit any desired number of expansions.

Then for each "map, through, etc." like operation create a base version that takes a given expansion and voilà!

2025-06-23

@harold FWIW: I've been (luke warm) wanting to work my way thorough this person's work on non-packrat parsing. But I'm attempt to keep my brain away from all things that might tempt me to write a PL or DSL. Well and parser combinators exist.

romanredz.se/pubs.htm

EDIT: he has a java implementation based on his work here: romanredz.se/Mouse/index.htm

2025-06-22

@DirtyPunk @demofox For a simple language I'd probably run with a parser combinator. I haven't used it but one by @orangeduck looks quite nice:

github.com/orangeduck/mpc

2025-06-22

Ran across a one-person C compiler that looks (from a quick skim) pretty impressive.

github.com/john-h-k/jcc

2025-06-22

@lritter pssst! (looks arounds) "Hey buddy...you looking to score some C macro crimes?"

FWIW: There's David Mazières' modernized X macro which behaves like a Map (1). He gives an example of augmenting an enum. And I have a hacked version that can thread common data across a map (2):

F,(A,B),0,1,... → F(A,B,0) F(A,B,1) ...

1) scs.stanford.edu/~dm/blog/va-o

2) SFH_MAP_PEEL in github.com/Marc-B-Reynolds/Sta

and SFH_SMAP_PEEL is a lighter weight example version limited to 8 or less length list.

2025-06-21

@steve @neilhenning Not near Playa by some weird chance? See a dude I've known since I was a kid just left today and I had a couple of food ideas he couldn't take advantage of.

2025-06-21

@mkretz @somebody LOL! My bad. My example is minus small number...but anyway the intended point is that it's easy to get -0 without any underflow.

2025-06-21

@mkretz @somebody Floating point is a finite set and not reals is one answer. But I'll stick with my original reasoning...here's an example:

compute: a² - b²

let a = b (both normal numbers, say M_PI)

then the result is -0 if computed with FMA.

2025-06-21

@mkretz Having sqrt(-1) = NaN would be not nice to use. You'd have to write sqrt(x+0) all the time.

Marc B. Reynolds boosted:
2025-06-20

Very happy to receive a SIGGRAPH 2025 Best Paper Award (Honorable Mention) for our RSP algorithm, which dices surfaces into near-perfect rectangles.

Such meshes are useful for everything from retopology, to microfluidic simulation, to textile design, to architectural geometry.

A preview of three pages and a teaser image from the SIGGRAPH 2025 paper "Rectangular Surface Parameterization" by Etienne Corman & Keenan Crane, as well as a trophy with the SIGGRAPH logo embossed on it and the text "Best Paper Award (Honorable Mention)."
Marc B. Reynolds boosted:
2025-06-20

I'll post more about RSP in the coming weeks, but for now you can check out the paper here: members.loria.fr/ECorman/Paper

This is work with my long-time collaborator Etienne Corman: members.loria.fr/ECorman/

The full list of award winners is here: blog.siggraph.org/2025/06/sigg

Enjoy!

2025-06-15

@fanf Right. But they aren't "mandated" to be correctly rounded...unless I've always read this wrong.

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst