babashka

ericdallo 2025-08-14T13:30:10.608329Z

Does http-kit server works with bb?

ericdallo 2025-08-14T13:30:32.704159Z

if not, what's a good bb compatible alternative to build http servers with streaming support (SSE)

ericdallo 2025-08-14T13:31:32.823959Z

unasked context: I'm building a LLM mock server, to mock openai, anthropic and other LLMs responses to be able to integration test them in #eca

borkdude 2025-08-14T13:35:36.808439Z

yes it works with bb

borkdude 2025-08-14T13:35:41.259559Z

it's included in bb

🔥 1
ericdallo 2025-08-14T13:38:18.618259Z

oh that's awesome, I thought I needed the dep, testing it

grav 2025-08-14T17:48:11.721909Z

unasked pointer, here's my silly mock server that I use for http://betafunk.dk/tjat: https://github.com/grav/tjat/blob/main/randomllm/randomllm.py

ericdallo 2025-08-14T17:53:56.138489Z

cool, I just did like https://clojurians.slack.com/archives/C093426FPUG/p1755191757654789

ericdallo 2025-08-14T17:54:00.223019Z

pretty easy with bb

grav 2025-08-14T17:55:53.652909Z

nice!

ericdallo 2025-08-14T19:27:10.073719Z

Any guess why bb with matcher-combinators the expected/actual print color is always 1-line wrong? 😅

😅 1
ericdallo 2025-08-14T19:30:27.855629Z

it's weird because I can't repro with simple maps:

(is (match?
       {:asidkoaiskaisodkasiodksoiadka 1
        :asidjoasjdaiosjdaisojdi 2
        :asjdiaojsdiaojaisjdo {:d 3}}
       {:asidkoaiskaisodkasiodksoiadka 1 :asidjoasjdaiosjdaisojdi 2
        :asjdiaojsdiaojaisjdo {:e 1}}))
the color is not just printed

ericdallo 2025-08-14T19:30:47.653049Z

will take a closer look later, just in case anyone has any clue

borkdude 2025-08-14T20:07:20.538659Z

perhaps running the unit tests of matcher combinators will reveal something

👍 1