frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Show HN: Pyproc – Call Python from Go Without CGO or Microservices

https://github.com/YuminosukeSato/pyproc
17•acc_10000•4h ago•4 comments

Show HN: Daffodil – Open-Source Ecommerce Framework to connect to any platform

https://github.com/graycoreio/daffodil
62•damienwebdev•18h ago•7 comments

Show HN: AI-powered web service combining FastAPI, Pydantic-AI, and MCP servers

https://github.com/Aherontas/Pycon_Greece_2025_Presentation_Agents
40•Aherontas•1d ago•15 comments

Show HN: A store that generates products from anything you type in search

https://anycrap.shop/
1137•kafked•2d ago•324 comments

Show HN: Semlib – Semantic Data Processing

https://github.com/anishathalye/semlib
56•anishathalye•19h ago•12 comments

Show HN: Datadef.io – Canvas for data lineage and metadata management

https://datadef.io/
11•theolouvart•1d ago•4 comments

Show HN: Omarchy on CachyOS

https://github.com/mroboff/omarchy-on-cachyos
60•theYipster•1d ago•61 comments

Show HN: MCP Server Installation Instructions Generator

https://hyprmcp.com/mcp-install-instructions-generator/
19•pmig•18h ago•5 comments

Show HN: HN Term – browse HN using the terminal

https://github.com/aotakeda/hn-term
8•arthurtakeda•8h ago•0 comments

Show HN: Dagger.js – A buildless, runtime-only JavaScript micro-framework

https://daggerjs.org
74•TonyPeakman•1d ago•72 comments

Show HN: I reverse engineered macOS to allow custom Lock Screen wallpapers

https://cindori.com/backdrop
73•cindori•1d ago•52 comments

Show HN: InfiniteTalk AI – AI Lip-Sync Video Generator for Long Videos

https://www.infinitetalk.net
2•laiwuchiyuan•5h ago•0 comments

Show HN: Blocks – Dream work apps and AI agents in minutes

https://blocks.diy
11•shelly_•12h ago•3 comments

Show HN: I built an app store for open-source financial plans (on spreadsheets)

https://finfam.app/explore/views
38•mhashemi•16h ago•14 comments

Show HN: Open Line Protocol – a minimal wire for AI agents (MIT)

https://github.com/terryncew/openline-core
2•terrynce•6h ago•1 comments

Show HN: Ruminate – AI reading tool for understanding hard things

https://tryruminate.com/
15•rshanreddy•13h ago•3 comments

Show HN: A tool to make a bootable USB installer out of macOS, or download it

https://macdaddy.io/install-disk-creator/
3•feelix•8h ago•0 comments

Show HN: Small Transfers – charge from 0.000001 USD per request for your SaaS

https://smalltransfers.com/
189•strnisa•5d ago•73 comments

Show HN: Labspace Directory – Biotech resource for lab space

https://www.labspacedirectory.com
2•ejhodges•10h ago•0 comments

Show HN: Pooshit – Sync local code to remote Docker containers

52•marktolson•11h ago•43 comments

Show HN: Vicinae – A native, Raycast-compatible launcher for Linux

https://github.com/vicinaehq/vicinae
178•aurellius•6d ago•34 comments

Show HN: Httpjail – HTTP(s) request filter for processes

https://github.com/coder/httpjail
4•ammario•12h ago•0 comments

Show HN: A Daily Typing Challenge in the TUI

https://github.com/Farzan-Hashmi/tuitype
2•FarzanHashmi•13h ago•2 comments

Show HN: Helios, an open-source distributed AI network using idle community GPUs

https://github.com/fnoracr/helios-distributed-ai
2•fnoracr•13h ago•0 comments

Show HN: Allzonefiles.io – download 307M registered domain names

https://allzonefiles.io
4•iryndin•14h ago•3 comments

Show HN: I made a generative online drum machine with ClojureScript

https://dopeloop.ai/beat-maker/
198•chr15m•4d ago•50 comments

Show HN: Ultraplot – A succint wrapper for matplotlib

https://github.com/Ultraplot/UltraPlot
34•cvanelteren•5d ago•13 comments

Show HN: Building an open-source agentic terminal

https://davehudson.io/blog/2025-09-14
4•tritondev•16h ago•3 comments

Show HN: Term.everything – Run any GUI app in the terminal

https://github.com/mmulet/term.everything
1074•mmulet•6d ago•144 comments

Show HN: CLAVIER-36 – A programming environment for generative music

https://clavier36.com/p/LtZDdcRP3haTWHErgvdM
142•river_dillon•2d ago•25 comments
Open in hackernews

Show HN: Pyproc – Call Python from Go Without CGO or Microservices

https://github.com/YuminosukeSato/pyproc
17•acc_10000•4h ago
Hi HN!I built *pyproc* to let Go services call Python like a local function — *no CGO and no separate microservice*. It runs a pool of Python worker processes and talks over *Unix Domain Sockets* on the same host/pod, so you get low overhead, process isolation, and parallelism beyond the GIL.

*Why this exists*

* Keep your Go service, reuse Python/NumPy/pandas/PyTorch/scikit-learn. * Avoid network hops, service discovery, and ops burden of a separate Python service.

*Quick try (\~5 minutes)*

Go (app):

``` go get github.com/YuminosukeSato/pyproc@latest ```

Python (worker):

``` pip install pyproc-worker ```

Minimal worker (Python):

``` from pyproc_worker import expose, run_worker @expose def predict(req): return {"result": req["value"] * 2} if __name__ == "__main__": run_worker() ```

Call from Go:

``` import ( "context" "fmt" "github.com/YuminosukeSato/pyproc/pkg/pyproc" ) func main() { pool, _ := pyproc.NewPool(pyproc.PoolOptions{ Config: pyproc.PoolConfig{Workers: 4, MaxInFlight: 10}, WorkerConfig: pyproc.WorkerConfig{SocketPath: "/tmp/pyproc.sock", PythonExec: "python3", WorkerScript: "worker.py"}, }, nil) _ = pool.Start(context.Background()) defer pool.Shutdown(context.Background()) var out map[string]any _ = pool.Call(context.Background(), "predict", map[string]any{"value": 42}, &out) fmt.Println(out["result"]) // 84 } ```

*Scope / limits*

* Same-host/pod only (UDS). Linux/macOS supported; Windows named pipes not yet. * Best for request/response payloads ≲ \~100 KB JSON; GPU orchestration and cross-host serving are out of scope.

*Benchmarks (indicative)*

* Local M1, simple JSON: \~*45µs p50* and *\~200k req/s* with 8 workers. Your numbers will vary.

*What’s included*

* Pure Go client (no CGO), Python worker lib, pool, health checks, graceful restarts, and examples.

*Docs & code*

* README, design/ops/security docs, pkg.go.dev: [https://github.com/YuminosukeSato/pyproc](https://github.com/YuminosukeSato/pyproc)

*License*

* Apache-2.0. Current release: v0.2.x.

*Feedback welcome*

* API ergonomics, failure modes under load, and priorities for codecs/transports (e.g., Arrow IPC, gRPC-over-UDS).

---

Source for details: project README and docs. ([github.com][1])

[1]: https://github.com/YuminosukeSato/pyproc "GitHub - YuminosukeSato/pyproc: Call Python from Go without CGO or microservices - Unix domain socket based IPC for ML inference and data processin"

Comments

spicypixel•1h ago
I wish python had proper sandbox configuration. This would be great for user defined scripts but only if I could disable filesystem and network syscalls for the user defined code.
iberator•1h ago
chroot ? :)
darkvertex•1h ago
This uses UDS (Unix Domain Sockets) to communicate, which are file-like and can be mounted from the host filesystem inside a container.

As long as the socket is writable, the rest of the filesystem(s) don't have to be. Same goes for the networking, which can be very isolated and restricted.

It should be possible to do what you want.

koushikn•21m ago
Hashicorp has go-plugin: https://github.com/hashicorp/go-plugin. It does similar with support for net/rpc and grpc. With grpc, you could have the external process in Python. Unix domain sockets and TCP are supported. The framework handles spawning the process and managing it. It is used extensively within hashicorp's products - nomad, packer etc.