HNHacker News
TopNewBestAskShowJobs

michalmatczuk

36 karma · joined September 28, 2022

submissionscomments
michalmatczuk··on Bionic reading converter for ePub in Rust
Tired of using Python tools I rewrote epub bionic conversion is Rust.

Let me know if have some good ideas for features or integrations.

michalmatczuk··on Go read /etc/hosts with net.lookupStaticHost()
We need to check if given domain name points to localhost.

Previously we used resolver with custom dialer that never dials connection but this resulted in unexpected allocations :/

This patch links net.lookupStaticHost(), clean and simple.

michalmatczuk··on Otter, Fastest Go in-memory cache based on S3-FIFO algorithm
The issue is Go stdlib does not have parallel hash map.

We have https://github.com/puzpuzpuz/xsync#map a different Cache line hashmap impl.

michalmatczuk··on Show HN: Forwarder – FOSS MITM proxy written in Go
Good point. We are getting stated.

Here's draft proposal for 1.3 to add this feature https://github.com/saucelabs/forwarder/issues/584.

The idea is to allow users work in JavaScript with Go http.Request and http.Request. Interop between Go and JS in Goja is very good.

michalmatczuk··on Show HN: Forwarder – FOSS MITM proxy written in Go
Sent a PR to fix that https://github.com/saucelabs/forwarder/pull/617.
michalmatczuk··on Show HN: Forwarder – FOSS MITM proxy written in Go
That's not currently on the roadmap.

Please file an issue, we'll see what we can do.

michalmatczuk··on Show HN: Forwarder – FOSS MITM proxy written in Go
You have a lot of flexibility with PAC files, so I guess that's possible. Some PAC files can be quite complex.

Another option would be using --deny-domains it accepts a list of regular expressions, you can prefix an item with - to exclude it.

https://forwarder-proxy.io/cli/forwarder_run/#deny-domains

michalmatczuk··on Show HN: Forwarder – FOSS MITM proxy written in Go
Thank you, looks like we could apply some hardening here indeed.
michalmatczuk··on Jina AI launches open-source 8k text embedding
FYI it seems that llm install llm-embed-jina is missing yaml dependency

  File "/opt/homebrew/Cellar/llm/0.11_1/libexec/lib/python3.12/site-packages/llm/default_plugins/openai_models.py", line 17, in <module>
    import yaml
ModuleNotFoundError: No module named 'yaml'