Show newer

More crimes against Hare: @​foreach loop similar to range loops in Java or C++

Show thread

I've managed to make the hare-tls server accept a connection from openssl s_client: paste.sr.ht/~apreiml/8414eab90

It's very experimental code with many shortcuts and hacks. But I think I've got a good understanding now on how to organize the code. The next step is to rewrite large chunks of it.

The ev lib of @drewdevault comes also right on time. I can now work on a proper API design that works well with ev.

#harelang

Beginnings of a #harelang cribsheet:
gemini://sdf.org/blippy/hare.g

Hardly complete, but I find it useful. Experienced Hare users won't find much value in it, but for n00bs like me, it's useful.

Had a full day yesterday. Finished day5 and day6 today.

As always, these aren't clever solutions, but quick ones.

Day 5 was interesting - slicing and dicing static buffers to move the "boxes" is nice, IMO.

My Day6 solution is stupid but straightforward and done in a couple of minutes.

git.sr.ht/~tomterl/aoc22/tree/

git.sr.ht/~tomterl/aoc22/tree/

#adventofcode #harelang

@drewdevault My next goal with Hare is to rewrite my wee-matter Weechat backend as an Hare weechat-to-irc translation node. I will probably blog about this a lot. I think I have a lot to say about either Hare implementation or more generally about technical problem this design will solve.

(A well designed event loop would be lovely :D)

[wee-matter]: https://sr.ht/~stacyharper/wee-matter/

Are you folks going to participate in this year's #AdventOfCode? I am planning to do (as much as I can) in Go, but I am checking Hare now and it looks awesome

I've been solving some AoC 2021 puzzles with #Hare.

Did the dumbest possible queue for a BFS for day 16:

let queue = []
enqueue: append(queue, ...)
dequeue: queue[0]; delete(queue[0])

Dirt simple and probably not very efficient, but it Just Works™.

First parts of RSA support have been submitted to the #harelang stdlib. That's just enough to provide RSA support for hare-ssh, if accepted. I'll also send patches for himitsu-ssh.

Hi everyone!

I contribute code to the #HareLang cryptographic module.

I plan to post about what I'm up to regularly.

Show older

Hare Propaganda 🐰's choices:

Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.