~sebsite

https://sebsite.pw/

~sebsite/public-inbox

Last active 3 months ago
View more

Recent activity

[PATCH hare-specification] Only allow lowering rconst if value fits into type a day ago

From Sebastian to ~sircmpwn/hare-dev

For example, '界' can no longer be lowered to a u8, but 'a' still can.

Signed-off-by: Sebastian <sebastian@sebsite.pw>
---
 language/expressions.tex | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/language/expressions.tex b/language/expressions.tex
index 4e4f457..67f447e 100644
--- a/language/expressions.tex
+++ b/language/expressions.tex
@@ -2352,11 +2352,9 @@ succeed if the maximum value of the iconst is within the limits of the other
type. If the promotion succeeds, the \terminal{iconst} shall be lowered to the
other type, which shall be the result of the promotion.
[message trimmed]

[PATCH harec] check: only lower rconst if value fits into type a day ago

From Sebastian to ~sircmpwn/hare-dev

For example, '界' can no longer be cast to a u8, but 'a' still can.

Signed-off-by: Sebastian <sebastian@sebsite.pw>
---
 src/check.c | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/src/check.c b/src/check.c
index ae4a8a5..0689ae1 100644
--- a/src/check.c
+++ b/src/check.c
@@ -1294,6 +1294,37 @@ check_expr_cast(struct context *ctx,
				gen_typename(secondary));
			return;
[message trimmed]

[PATCH hare] cmd/harec: remove unused imports a day ago

From Sebastian to ~sircmpwn/hare-dev

Signed-off-by: Sebastian <sebastian@sebsite.pw>
---
 cmd/harec/main.ha | 2 --
 1 file changed, 2 deletions(-)

diff --git a/cmd/harec/main.ha b/cmd/harec/main.ha
index 6d9211f1..9c6a33c0 100644
--- a/cmd/harec/main.ha
+++ b/cmd/harec/main.ha
@@ -11,10 +11,8 @@ use hare::lex;
use hare::parse;
use hare::types;
use hare::unit;
use hare::unparse;
[message trimmed]

[PATCH hare] hare::unit: don't export SCOPE_BUCKETS a day ago

From Sebastian to ~sircmpwn/hare-dev

Signed-off-by: Sebastian <sebastian@sebsite.pw>
---
 hare/unit/scope.ha | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hare/unit/scope.ha b/hare/unit/scope.ha
index e4ea28a1..c741745d 100644
--- a/hare/unit/scope.ha
+++ b/hare/unit/scope.ha
@@ -30,7 +30,7 @@ export type object = struct {
	// TODO: store value for constants
};

export def SCOPE_BUCKETS: size = 4096;
[message trimmed]

[PATCH hare v2 2/2] net: replace net::shutdown with net::close a day ago

From Sebastian to ~sircmpwn/hare-dev

Signed-off-by: Sebastian <sebastian@sebsite.pw>
---
 net/+freebsd.ha      | 24 +++++++++++++++---------
 net/+linux.ha        | 24 +++++++++++++++---------
 net/tcp/listener.ha  |  5 -----
 net/unix/listener.ha |  4 ----
 scripts/gen-stdlib   |  6 +++---
 stdlib.mk            | 12 ++++++------
 6 files changed, 39 insertions(+), 36 deletions(-)

diff --git a/net/+freebsd.ha b/net/+freebsd.ha
index 90b76fa5..9652b145 100644
--- a/net/+freebsd.ha
+++ b/net/+freebsd.ha
[message trimmed]

[PATCH hare v2 1/2] net: add socket type a day ago

From Sebastian to ~sircmpwn/hare-dev

Implements: https://todo.sr.ht/~sircmpwn/hare/537
Signed-off-by: Sebastian <sebastian@sebsite.pw>
---
 net/+freebsd.ha      | 15 +++++++++------
 net/+linux.ha        | 15 +++++++++------
 net/dial/dial.ha     |  5 ++---
 net/dial/ip.ha       | 11 ++++-------
 net/dial/registry.ha |  4 +---
 net/dns/query.ha     |  6 +++---
 net/tcp/+freebsd.ha  |  6 +++---
 net/tcp/+linux.ha    |  6 +++---
 net/tcp/listener.ha  |  7 +++++--
 net/udp/+freebsd.ha  | 10 +++++-----
 net/udp/+linux.ha    | 10 +++++-----
[message trimmed]

[PATCH hare] cmd/hare: use shlex to quote environ a day ago

From Sebastian to ~sircmpwn/hare-dev

Signed-off-by: Sebastian <sebastian@sebsite.pw>
---
 cmd/hare/plan.ha | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/cmd/hare/plan.ha b/cmd/hare/plan.ha
index 71d21706..39adc50c 100644
--- a/cmd/hare/plan.ha
+++ b/cmd/hare/plan.ha
@@ -10,6 +10,7 @@ use io;
use os::exec;
use os;
use path;
use shlex;
[message trimmed]

[PATCH hare v2 9/9] encoding::json: expand tests a day ago

From Sebastian to ~sircmpwn/hare-dev

Signed-off-by: Sebastian <sebastian@sebsite.pw>
---
 encoding/json/+test/load.ha | 193 ++++++++++++++++++++++++++++--------
 1 file changed, 153 insertions(+), 40 deletions(-)

diff --git a/encoding/json/+test/load.ha b/encoding/json/+test/load.ha
index f4eb7284..4a5f163b 100644
--- a/encoding/json/+test/load.ha
+++ b/encoding/json/+test/load.ha
@@ -1,51 +1,164 @@
use bufio;
use io;
use strings;
use fmt;
[message trimmed]

[PATCH hare v2 8/9] encoding::json: store location in invalid a day ago

From Sebastian to ~sircmpwn/hare-dev

Tests aren't included; those are added in the "expand tests" commit.

Signed-off-by: Sebastian <sebastian@sebsite.pw>
---
 encoding/json/lex.ha   | 62 ++++++++++++++++++++++++++++++------------
 encoding/json/load.ha  | 16 +++++++----
 encoding/json/types.ha | 21 ++++++++------
 3 files changed, 68 insertions(+), 31 deletions(-)

diff --git a/encoding/json/lex.ha b/encoding/json/lex.ha
index ee4ed1e4..56a7146b 100644
--- a/encoding/json/lex.ha
+++ b/encoding/json/lex.ha
@@ -15,6 +15,10 @@ export type lexer = struct {
[message trimmed]

[PATCH hare v2 7/9] encoding::json: add reset function a day ago

From Sebastian to ~sircmpwn/hare-dev

Signed-off-by: Sebastian <sebastian@sebsite.pw>
---
 encoding/json/value.ha | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/encoding/json/value.ha b/encoding/json/value.ha
index f01604a9..2094a041 100644
--- a/encoding/json/value.ha
+++ b/encoding/json/value.ha
@@ -62,6 +62,17 @@ export fn del(obj: *object, keys: const str...) void = {
	};
};

// Clears all values from a JSON object, leaving it empty.
[message trimmed]