~smlavine

~smlavine/err-announce

Last active 19 days ago

~smlavine/bf-announce

Last active a month ago

~smlavine/bf-devel

Last active a month ago

~smlavine/globalregularexpressionprint-devel

Last active 2 months ago

~smlavine/globalregularexpressionprint-announce

Last active 2 months ago

~smlavine/smlss-announce

Last active 4 months ago

~smlavine/smlss-devel

Last active 4 months ago

~smlavine/smlss

Last active 4 months ago

~smlavine/hareimports-dev

Last active 6 months ago

~smlavine/public-inbox

Last active 8 months ago
View more

Recent activity

Re: How to work exclamation point (!) operator in Hare a day ago

From Sebastian LaVine to ~sircmpwn/hare-users

On Wed Dec 7, 2022 at 3:27 AM EST, Unicorn wrote:
> ...
> Usually in Hare you have to handle all possible errors that can result 
> from calling a function, otherwise the compiler refuses to compile the 
> program. In this case, fmt::println() could fail if it's not possible to 
> write to the output stream, for example if you redirect stdout to 
> /dev/full. So if you don't handle this error case, you can't compile this 
> code.
>
> But since this is very unlikely to ever happen in practice, or maybe you 
> don't care if it happens, you could use the exclamation point to tell the 
> hare compiler to ignore this possible error while compiling.
> ...

Re: [git.sr.ht] Display "git config sendemail.to" on clone 3 days ago

From Sebastian LaVine to ~sircmpwn/sr.ht-discuss

I like this idea. A potential problem is how the correct list for
patches can be determined, since a git repository can be in a project
with several lists. Maybe a heuristic of assuming that a list that ends
in -dev or -devel is the patch list?

On Mon Dec 5, 2022 at 9:38 AM EST, Olivier C wrote:
> Hi, I find the email based workflow quite powerful, however to be
> honest I always find the first contribution to a project to be a bit
> painful.
>
> I think most of this pain would be alleviated if there was some message
> printed to the console on `git clone https://git.sr.ht/...`, like:
>     Cloning into 'tmp'...
>     remote: Enumerating objects: 9, done.

Re: getopts long options 15 days ago

From Sebastian LaVine to ~sircmpwn/hare-users

I understand, thanks.

Re: getopts long options 15 days ago

From Sebastian LaVine to ~sircmpwn/hare-users

On Wed Nov 23, 2022 at 5:02 AM EST, Drew DeVault wrote:
> The getopt module is compatible with POSIX.

Why is POSIX compatibility relevent in this case, and what does
compatibility mean exactly in this context? It is good for C programs to
write to POSIX standards to ensure interoperability between platforms.
But Hare programs only need to worry about writing to the standard
library, which (presumably) is going to be the same on every platform it
is present. The way that the getopt module is used is already very
different from how getopt(3p) is used. There may be an argument for
keeping the getopt module minimal, but I don't think that "POSIX
compatibility" is one of them.

err 2.0.0 released 19 days ago

From Sebastian LaVine to ~smlavine/err-announce

Hello,

Version 2.0.0 of the err library has been released.

err is a small error-printing library. It can be used by projects
written in any major version of C or C++.

This is a major release that includes improvements to the documentation
and breaking changes to the API.

A tar.gz of this version of err can be found here:

	https://git.sr.ht/~smlavine/err/archive/2.0.0.tar.gz

err 1.1.1 released 19 days ago

From Sebastian LaVine to ~smlavine/err-announce

Hello,

Version 1.1.1 of the err library has been released.

err is a small error-printing library. It can be used by projects
written in any major version of C or C++.

This is a small release that adds version numbers to the source files.
I felt it was important to make this change a release on its own because
this is the final release of the 1.x line before breaking changes are
made in a 2.x release. The previous version of the 1.x line, 1.1.0, does
not have any version identifiers present in the file.

A tar.gz of this version of err can be found here:

[PATCH sr.ht-docs] Document git repo being added to sources array 23 days ago

From Sebastian LaVine to ~sircmpwn/sr.ht-dev

The ref that was just pushed is added to the sources array, even if the
repo isn't listed as a source. See [0] for example.

[0]: https://builds.sr.ht/~smlavine/job/884375
---
Was this behavior changed intentionally? I recall this not being the
case at some point.

 builds.sr.ht/index.md | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/builds.sr.ht/index.md b/builds.sr.ht/index.md
index 298266b..b127d39 100644
--- a/builds.sr.ht/index.md
[message trimmed]

[PATCH hare-project-library] Replace ~ytada/hare-json with ~sircmpwn/hare-json a month ago

From Sebastian LaVine to ~vladh/hare-project-library

---
I mean no disrespect toward ~ytada or their work, but I believe it is
more useful for the extended support library to be listed than for an
unofficial implementation.

 README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/README.md b/README.md
index ddfbcfa..9cf67a4 100644
--- a/README.md
+++ b/README.md
@@ -97,7 +97,7 @@ If you're interested specifically in 3D graphics, check out
* [~pierrec/hare-qoi](https://git.sr.ht/~pierrec/hare-qoi): QOI lossless image format
[message trimmed]

[PATCH hare-project-library 3/3] Add quadratic a month ago

From Sebastian LaVine to ~vladh/hare-project-library

---
 README.md | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/README.md b/README.md
index a0385c2..f8b7922 100644
--- a/README.md
+++ b/README.md
@@ -64,6 +64,10 @@ If you're interested specifically in 3D graphics, check out
* [~jfreymuth/hare-ls](https://git.sr.ht/~jfreymuth/hare-ls): hare-ls is a language server for Hare
* [~tomleb/harepls](https://sr.ht/~tomleb/harepls/): A LSP server for the Hare language

## Math

[message trimmed]

[PATCH hare-project-library 2/3] Add bf a month ago

From Sebastian LaVine to ~vladh/hare-project-library

---
 README.md | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/README.md b/README.md
index a1bfc28..a0385c2 100644
--- a/README.md
+++ b/README.md
@@ -18,6 +18,8 @@ If you're interested specifically in 3D graphics, check out

## Compilers and interpreters

* [~smlavine/bf](https://sr.ht/~smlavine/bf): Modular Brainfuck interpreter written in Hare

[message trimmed]