~une

~une/public-inbox

Last active 8 months ago

~une/hare-cairo

Last active 11 months ago
View more

Recent activity

[PATCH hare] unix::resolvconf: ignore %device-name 18 days ago

From Carlos Une to ~sircmpwn/hare-dev

Signed-off-by: Carlos Une <une@fastmail.fm>
---
 unix/resolvconf/load.ha | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/unix/resolvconf/load.ha b/unix/resolvconf/load.ha
index ddf97216..9400e4f8 100644
--- a/unix/resolvconf/load.ha
+++ b/unix/resolvconf/load.ha
@@ -51,7 +51,7 @@ export fn load() []ip::addr = {
			continue;
		};

		const tok = match (bufio::read_tok(&scanner, ' ')!) {
[message trimmed]

[PATCH thp] bufio::scan* => bufio::read* 23 days ago

From Carlos Une to ~tomterl/public-inbox

---
 cmd/thp/main.ha       | 2 +-
 cmd/thpd/main.ha      | 6 +++---
 mods/uptime+uptime.ha | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/cmd/thp/main.ha b/cmd/thp/main.ha
index 767d49c..cb08db0 100644
--- a/cmd/thp/main.ha
+++ b/cmd/thp/main.ha
@@ -122,7 +122,7 @@ export fn main() void = {
		};
		fmt::fprintln(sock, spec)!;
		// handle server response
[message trimmed]

[PATCH thp] Build thp with Hare dev+804e55f7 a month ago

From Carlos Une to ~tomterl/public-inbox

---
 git/ref.ha    | 2 +-
 git/repo.ha   | 2 +-
 git/status.ha | 4 ++--
 git/tree.ha   | 2 +-
 mods/mods.ha  | 2 +-
 5 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/git/ref.ha b/git/ref.ha
index bf8fe9e..ebf905b 100644
--- a/git/ref.ha
+++ b/git/ref.ha
@@ -6,7 +6,7 @@
use types::c;
[message trimmed]

[PATCH thp] Build thp with Hare dev+9fec2b33 a month ago

From Carlos Une to ~tomterl/public-inbox

---
 mods/+uptime.ha | 6 +++---
 term/shell.ha   | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/mods/+uptime.ha b/mods/+uptime.ha
index 3763024..8d3e3b8 100644
--- a/mods/+uptime.ha
+++ b/mods/+uptime.ha
@@ -14,7 +14,7 @@ use os;
use strconv;
use strings;
use strings::template;
use strio;
[message trimmed]

[PATCH thp] New module: +sun.ha 3 months ago

From Carlos Une to ~tomterl/public-inbox

---
 README.org     |   8 +--
 man/thp.1.scd  |   3 +
 man/thpd.5.scd |  31 +++++++++++
 mods/+sun.ha   | 148 +++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 186 insertions(+), 4 deletions(-)
 create mode 100644 mods/+sun.ha

diff --git a/README.org b/README.org
index 6c8e372..69a7dfc 100644
--- a/README.org
+++ b/README.org
@@ -32,16 +32,16 @@ one patche applied (as of now):
To build thp with all modules included, you need libgit2 and your platforms libgit2-dev equivalent installed, then issued
[message trimmed]

[PATCH thp] Build thp using recent Hare May/2023 4 months ago

From Carlos Une to ~tomterl/public-inbox

---
 git/buffer.ha    |  5 +++--
 git/error.ha     |  9 +++++----
 git/git.ha       |  5 +++--
 git/ref.ha       |  5 +++--
 git/repo.ha      | 19 ++++++++++---------
 git/status.ha    |  3 ++-
 mods/+clock.ha   |  5 ++---
 mods/+moon.ha    |  9 ++++-----
 mods/+path.ha    | 24 ++++++++++++------------
 mods/+project.ha | 31 +++++++++++++++++--------------
 mods/+timer.ha   |  1 -
 11 files changed, 61 insertions(+), 55 deletions(-)
[message trimmed]

[PATCH hare] math::complex::tan: test huge arguments 4 months ago

From Carlos Une to ~sircmpwn/hare-dev

Signed-off-by: Carlos Une <une@fastmail.fm>
---
Depends on https://lists.sr.ht/~sircmpwn/hare-dev/patches/39597
Constants computed in golang
`package main
import "fmt"

func main() {
    var hugeIn = []complex128{
        -1 << 120,
        1 << 240,
        1 << 300,
        -1 << 480,
        1234567891234567 << 180,
[message trimmed]

[PATCH thp] +moon: build using recent Hare 5 months ago

From Carlos Une to ~tomterl/public-inbox

---
 mods/+moon.ha | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/mods/+moon.ha b/mods/+moon.ha
index 6a86fe7..3a01132 100644
--- a/mods/+moon.ha
+++ b/mods/+moon.ha
@@ -22,7 +22,7 @@ type hemisphere = enum {Southern, Northern};
fn moon_phase(dt: datetime::datetime, hemisphere: hemisphere) str = {
	// Use a known New Moon datetime as reference (January 21, 2023, 20:53 UTC)
	const ref_new_moon = datetime::new(time::chrono::UTC, 0, 2023, 1, 21, 20, 53, 0, 0)!;
	const secs = datetime::unitdiff(dt, ref_new_moon, datetime::unit::SECOND): f64;
	const secs = (chrono::diff(&ref_new_moon, &dt)! / time::SECOND): f64;
[message trimmed]

Re: math with floats, numerical precision 5 months ago

From une to ~sircmpwn/hare-users

Hi, that patch fixes underlying problem https://todo.sr.ht/~sircmpwn/hare/750


On Thu, Apr 13, 2023, at 13:25, John Gabriele wrote:
>> On Thu, Apr 13, 2023, at 04:56, John Gabriele wrote:
>>> Hi,
>>>
>>> Wrote a simple program to numerically integrate e^(-x^2) from -10 to 10. Did so
>>> in Hare as well as Python3 to compare output. Was surprised to see that the
>>> Python3 output looks ... almost too perfect, and also different from the Hare
>>> output. Here's the code: {snip}
>
> On Thu, Apr 13, 2023, at 10:36 AM, une wrote:
>> Hi, there's patch to harec

Re: math with floats, numerical precision 5 months ago

From une to ~sircmpwn/hare-users

Hi, there's patch to harec
https://lists.sr.ht/~sircmpwn/hare-dev/patches/39597


On Thu, Apr 13, 2023, at 04:56, John Gabriele wrote:
> Hi,
>
> Wrote a simple program to numerically integrate e^(-x^2) from -10 to 10. Did so
> in Hare as well as Python3 to compare output. Was surprised to see that the
> Python3 output looks ... almost too perfect, and also different from the Hare
> output. Here's the code:
>
> ~~~hare
> // Integrate e^(-x^2) from -10 to 10. Should be approx = sqrt pi.