~yerinalexey

Somewhere in Russia

https://fosstodon.org/@yyp

Hi! I like Rust, Golang, shell scripts and GNU+Linux

~yerinalexey/public-inbox

Last active 24 days ago
View more

Recent activity

[PATCH antimony-todo] Clean up Makefile 6 hours ago

From Alexey Yerin to ~garritfra/antimony

- Use $(SB) variable to set the compiler instead of $(CC) which sets C
  compiler
- Use all: rule convention
- Set *.sb files as dependencies so it will rebuild only when something
  changes
- Set all and clean as phony targets
---
 Makefile | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/Makefile b/Makefile
index 2a8938d..6ac933d 100644
--- a/Makefile
+++ b/Makefile
[message trimmed]

[PATCH antimony] lexer: handle ' or " within the string properly 20 hours ago

From Alexey Yerin to ~garritfra/antimony

The lexer was thinking that ' or " will close the string without taking
into account how it started which caused constructions like "It's ..."
to break.

This is how it was understood:

"Hello, it's me"
|_________||_____?
 string 1   string 2 with EOL

Now it's correct:

"Hello, it's me"
|______________|
[message trimmed]

[PATCH dispatch.sr.ht] Set BUILD_* environment variables a day ago

From Alexey Yerin to ~sircmpwn/sr.ht-dev

---
 dispatchsrht/tasks/github/common.py                 | 1 +
 dispatchsrht/tasks/github/github_commit_to_build.py | 1 +
 dispatchsrht/tasks/github/github_pr_to_build.py     | 1 +
 dispatchsrht/tasks/gitlab/common.py                 | 1 +
 dispatchsrht/tasks/gitlab/gitlab_commit_to_build.py | 1 +
 dispatchsrht/tasks/gitlab/gitlab_mr_to_build.py     | 1 +
 6 files changed, 6 insertions(+)

diff --git a/dispatchsrht/tasks/github/common.py b/dispatchsrht/tasks/github/common.py
index 3a32069..cfe356b 100644
--- a/dispatchsrht/tasks/github/common.py
+++ b/dispatchsrht/tasks/github/common.py
@@ -175,6 +175,7 @@ def submit_github_build(tag, hook, repo, commit, base=None,
[message trimmed]

[PATCH antimony] Detect target from output filename a day ago

From Alexey Yerin to ~garritfra/antimony

When omitting -t option, sb will try to detect the target from output
filename, if it can't be detected, it will print a friendly message
asking to set it.

For backwards compatibility reasons, default target for run is always
JS.
---
 src/generator/mod.rs | 15 +++++++++++++++
 src/main.rs          | 20 ++++++++++++++++----
 2 files changed, 31 insertions(+), 4 deletions(-)

diff --git a/src/generator/mod.rs b/src/generator/mod.rs
index 4cb22c4..dbcb7b5 100644
--- a/src/generator/mod.rs
[message trimmed]

[PATCH antimony v2] c: use correct type in array generation 2 days ago

From Alexey Yerin to ~garritfra/antimony

Earlier, to generate the array, we're calling generate_type on the type
that came to this function which *IS* an array. That creates an infinite
loop and thus causing a stack overflow.

The fix is simple, use type that the array holds (e.g. Int) and not the
type of array itself (which is Array<Int> in this case).
---
 src/generator/c.rs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/generator/c.rs b/src/generator/c.rs
index 178de85..7d7618d 100644
--- a/src/generator/c.rs
+++ b/src/generator/c.rs
[message trimmed]

[PATCH antimony] c: fix stack overflow in array generation 2 days ago

From Alexey Yerin to ~garritfra/antimony

To generate the array, we're calling generate_type on top-level type
that came to this function which *IS* an array. That creates an infinite
loop and thus causing a stack overflow.

The fix is simple, use type that the array holds (e.g. Int) and not the
type of array itself (which is Array<Int> in this case).
---
 src/generator/c.rs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/generator/c.rs b/src/generator/c.rs
index 178de85..7d7618d 100644
--- a/src/generator/c.rs
+++ b/src/generator/c.rs
[message trimmed]

[PATCH antimony] ci: fix manifest 2 days ago

From Alexey Yerin to ~garritfra/antimony

- Use nodejs package instead of node
- cd into antimony before running cargo build
---
 .builds/ci.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.builds/ci.yml b/.builds/ci.yml
index 68c953b..95d0800 100644
--- a/.builds/ci.yml
+++ b/.builds/ci.yml
@@ -1,11 +1,12 @@
image: archlinux
packages:
  - rust
[message trimmed]

[PATCH antimony] contrib: fix install path in PKGBUILD 2 days ago

From Alexey Yerin to ~garritfra/antimony

Looks like a leftover from s/sabre/antimony. Binary is now named sb and
PKGBUILD tries to use target/release/antimony which obviously doesn't
exist.
---
 contrib/PKGBUILD | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/contrib/PKGBUILD b/contrib/PKGBUILD
index c3d20e5..60f8658 100644
--- a/contrib/PKGBUILD
+++ b/contrib/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Garrit Franke <garrit@slashdev.space>
# Contributor: Alexey Yerin <yyp@disroot.org>
[message trimmed]

Re: [PATCH scm.sr.ht] Allow lowercase readme names 6 days ago

From Alexey Yerin to ~sircmpwn/sr.ht-dev

Drew said "no" to this last time.

[PATCH sourcehut.org] Mention srht.site on the home page 8 days ago

From Alexey Yerin to ~sircmpwn/sr.ht-dev

---
 content/_index.html | 1 +
 1 file changed, 1 insertion(+)

diff --git a/content/_index.html b/content/_index.html
index 166975c..47060c4 100644
--- a/content/_index.html
+++ b/content/_index.html
@@ -144,6 +144,7 @@ title: sourcehut - the hacker's forge
      <ul>
        <li>Integrations with third-party services via dispatch.sr.ht</li>
        <li>Ad-hoc source code hosting via paste.sr.ht</li>
        <li>Static web hosting via srht.site</li>
      </ul>
[message trimmed]