~greenfork

~greenfork/public-inbox

Last active 3 years ago

~greenfork/kisa-announce

Last active 3 years ago

~greenfork/kisa-devel

Last active 3 years ago
View more

Recent activity

Re: [RFC PATCH hare-specification] Relicense specification with the GNU FDL 8 months ago

From Dmitry to ~sircmpwn/hare-dev

I give my consent to relicense the work under the GNU FDL.

[PATCH hare v2] unix::resolvconf: refactor into more general interface 1 year, 2 months ago

From Dmitry Matveyev to ~sircmpwn/hare-dev

Main changes:
* Add iterator interface
* Add type config for a whole line and a lot of other types for
  individual more granular options.
* Add proper error handling
* Add tests

References: https://todo.sr.ht/~sircmpwn/hare/442
Signed-off-by: Dmitry Matveyev <public@greenfork.me>
---
 net/dns/error.ha              |   5 +-
 net/dns/query.ha              |   2 +-
 unix/resolvconf/README        |   6 +-
 unix/resolvconf/load.ha       |  64 ------
[message trimmed]

Re: [PATCH hare] unix::resolvconf: refactor into more general interface 1 year, 2 months ago

From Dmitry Matveyev to ~sircmpwn/hare-dev

Thank you for reviewing! I have a couple minor questions.

"Sebastian" <sebastian@sebsite.pw> writes:

>
>> +// Returns the next config line as a [[config]] type.
>> +export fn next(it: *iterator) (config | void | error) = for (true) {
>
> for (true) should be within a compound expression, with everything else
> indented inward one. It looks like everything should still fit within 80
> columns even if indented one extra.

Do you mean something like this:

Re: [PATCH hare] test: disable color if NO_COLOR or not a tty 1 year, 4 months ago

From Dmitry Matveyev to ~sircmpwn/hare-dev

"Sebastian" <sebastian@sebsite.pw> writes:

> Also, since a v2 will be needed anyway: at the end of the commit message
> you can put "Implements: https://todo.sr.ht/~sircmpwn/hare/846" so the
> ticket will be closed when this is merged :)

I didn't know about that, thanks!

[PATCH hare v2] test: disable color if NO_COLOR or not a tty 1 year, 4 months ago

From Dmitry Matveyev to ~sircmpwn/hare-dev

Implements: https://todo.sr.ht/~sircmpwn/hare/846
Signed-off-by: Dmitry Matveyev <public@greenfork.me>
---
 test/+test.ha | 46 +++++++++++++++++++++++++++++++++++-----------
 1 file changed, 35 insertions(+), 11 deletions(-)

diff --git a/test/+test.ha b/test/+test.ha
index a41c2894..a900e308 100644
--- a/test/+test.ha
+++ b/test/+test.ha
@@ -13,6 +13,7 @@ use rt;
use strings;
use time;
use unix::signal;
[message trimmed]

[PATCH hare] test: disable color if NO_COLOR or not a tty 1 year, 4 months ago

From Dmitry Matveyev to ~sircmpwn/hare-dev

Signed-off-by: Dmitry Matveyev <public@greenfork.me>
---
 test/+test.ha | 46 +++++++++++++++++++++++++++++++++++-----------
 1 file changed, 35 insertions(+), 11 deletions(-)

diff --git a/test/+test.ha b/test/+test.ha
index a41c2894..ce7b69f5 100644
--- a/test/+test.ha
+++ b/test/+test.ha
@@ -13,6 +13,7 @@ use rt;
use strings;
use time;
use unix::signal;
use unix::tty;
[message trimmed]

[PATCH hare] unix::resolvconf: refactor into more general interface 1 year, 4 months ago

From Dmitry Matveyev to ~sircmpwn/hare-dev

Main changes:
* Add iterator interface
* Add type config for a whole line and a lot of other types for
  individual more granular options.
* Add proper error handling
* Add tests

References: https://todo.sr.ht/~sircmpwn/hare/442
Signed-off-by: Dmitry Matveyev <public@greenfork.me>
---
I resurrected an old patch of mine.

 net/dns/error.ha              |   5 +-
 net/dns/query.ha              |   2 +-
[message trimmed]

Re: Spec clarifications 1 year, 7 months ago

From Dmitry Matveyev to ~mpu/qbe

6. How do I read this notation:
       s_0x1.fffffe091ff3dp+127
   It looks like unbiased exponent, fraction, bias?..
   https://en.wikipedia.org/wiki/IEEE_754-1985

Re: Spec clarifications 1 year, 7 months ago

From Dmitry Matveyev to ~mpu/qbe

4. Should this in test/mem3.ssa:
       type :tags.2 = { { :type.3 1 } }
   be interpreted same as:
       type :tags.2 = { :type.3 1 }

5. In test/abi5.ssa:
       type :un9 = { { b } { s } }
   I see that in the test output it is same as
       union { char c; float f; }
   I suppose it is not in the latest spec currently?

Spec clarifications 1 year, 7 months ago

From Dmitry Matveyev to ~mpu/qbe

Hi,

I'm writing a parser for qbe, I have several questions about the spec:

1. There's no "load" instruction present but it is present in
   test/tls.ssa file. How to interpret this instruction?

2. I haven't found the definition of VAL, is it true that
   VAL := DYNCONST | %IDENT

3. Is it true that the return address for an instruction must be %IDENT?

Any hints would be appreciated.