SShortSingh.
Back to feed

Spindle: New Type-Safe Web Framework for OCaml 5 Launches on Hacker News

0
·1 views

Spindle is a web framework for OCaml 5 designed to be multicore-by-design and built natively on eio. Its core approach uses an expressive, type-driven API from which codecs, request validation, OpenAPI specs, and Zod and Melange frontend schemas are derived, keeping server and client contracts aligned. The framework includes an RFC-strict HTTP server, composable dependencies, WebSockets, SSE, and primitives for building MCP servers. It also offers production features such as distributed tracing, OpenTelemetry-compatible metrics, and logging. The developers report benchmark results of roughly twice NestJS and five times FastAPI's speed on a single core, though they state speed was not the primary goal.

Read the full story at Hacker News

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingHacker News ·

Apple Keyboard Reportedly Blocks Swipe Typing for Certain Offensive Phrases

Reports indicate that Apple's iPhone keyboard contains a list of phrases that cannot be entered using swipe typing. The restriction was highlighted in a Guardian article published in November 2026, which described the so-called grey list. The article notes that users attempting to swipe certain terms may find the iPhone unhelpful in spelling them out. The source material provided is limited to a link and basic discussion metrics from Hacker News, so the full scope and exact contents of the list are not confirmed here.

0
ProgrammingDEV Community ·

osFoundry adds Claude Code and Codex as @mention agents in team chat channels

osFoundry's Message feature now lets users add a coding agent such as Claude Code or Codex to a channel, where it appears as a member with its own handle like @claude. When someone mentions it, the agent starts on the user's own machine and works in a disposable git worktree of the channel's repository, reading recent channel messages for context. It then posts its answer back to the channel and can push changes with a pull request link. Users can choose whether the agent starts fresh for each mention or stays open to remember earlier conversation, and it runs only on the desktop app because it executes locally.

0
ProgrammingDEV Community ·

Commitment Lab: a practice room for untangling stakeholder promises across teams

The developer built Commitment Lab for the Flip the Switch hackathon as a personal practice space for handling conflicting expectations between teams. Learners work through a fictional Friday launch dispute involving Sales, engineering, and a customer, using a shared Switch chat room with AI agents. The exercise aims to clarify which statements are agreed commitments, which are only proposals, and which remain open. The recorded demo was run by a single operator playing both learner and mentor, so it shows role-play with two agents rather than verified independent mentor participation or a validated training outcome. Switch connects the agents to a Mattermost channel, with the coach agent reviewing the conversation afterward to produce a debrief and commitment record.

0
ProgrammingDEV Community ·

Sharding: How Splitting a Database Across Machines Works and Its Trade-offs

A single database server eventually hits limits on disk, CPU, and write capacity, and read replicas cannot relieve write load. Sharding splits data across many machines, each owning a slice, and is considered the last and most costly scaling option. The choice of shard key is critical: it must spread load evenly while also appearing in common queries, or the system suffers from scatter-gather queries or concentrated hot spots. The approach introduces costs including cross-shard queries, a routing layer to locate data, rebalancing when data moves, and distributed transactions. Engineers are generally advised to exhaust other optimizations before sharding.

Spindle: New Type-Safe Web Framework for OCaml 5 Launches on Hacker News · ShortSingh