frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Typol – Static typing layer for Polars

https://github.com/pdtpartners/typol
1•mrrpdt•1h ago
Hello! Wanted to share Typol, a thin static typing layer around Polars that lets you enforce columnar schemas. We've been hesitant in the past to go with dataframes for processing reporting data, especially with Pandas, due to the long-term maintainability burden of tooling not understanding the data we're processing, or the library itself. Polars is well typed and encourages constructing shapes up rather than modifying in-place, so adding schema typing to it seemed like a natural extension. If Polars DataFrames are dicts, then Typol's are TypedDicts.

With Typol, it's easy to define your schemas, which should feel familiar if you're moving from dataclass-style code or from Polars' own schemas, and then build well-typed Polars expressions on these that enforce: (1) valid columns are referenced, (2) column values are used in a valid way for their type, and (3) expressions generate target valid columns in resulting schemas with the correct type.

  class Account(tp.Shape):
      name = tp.dimension(str)
      website = tp.dimension(str)
      uid = tp.dimension(int)

  # Works, with the type: Expr[Account, Account, str]
  email_address = accounts.s.name.str.to_lowercase() + "@" + accounts.s.website

  # Caught statically:
  # Unsupported `+` operation: `BoundDimension[Account, int]` + `Literal["@"]`
  email_address = accounts.s.uid + "@" + accounts.s.website
These types are checked statically using ty, which supports spelling the intersection types needed to infer join results, with a little dynamic enforcement filling in where static analysis can't reach. This allows you to make use of tooling both to check and guide your code (dot completion coming in handy). Existing tools, like Pandera, do provide dynamic verification of dataframe shapes. Whilst this can be good, it bites you at runtime which is well after a problem should be caught, and doesn't provide any tooling benefit.

Typol is great for production data processing pipelines, where narrowing your data to well-defined schemas at each processing stage can be appropriate and powerful. It's not well suited to a lot of data science, where columns generally get added and dropped quite freely. It covers most core Polars expression operations (laziness, arithmetic, strings, datetimes, lists, filtering, joins, aggregations), but we'd love to extend it further, and we'd love for you to try it out!

Ask HN: Debugging failure in large interconnected back end systems

1•Ifedayo_s•2m ago•0 comments

Quantum Information as Everything

https://vlatkovedral.substack.com/p/quantum-information-as-everything
1•ljosifov•5m ago•0 comments

Programmable artificial RNA condensates in mammalian cells

https://www.nature.com/articles/s41565-026-02164-7
1•PaulHoule•5m ago•0 comments

I care so much about energy per token

https://ziraph.com/blog/energy-per-token-vanity-sanity-reality
1•ABS•6m ago•0 comments

The Read Model Zoo: Projections Beyond Tables

https://docs.eventsourcingdb.io/blog/2026/06/08/the-read-model-zoo-projections-beyond-tables/
1•goloroden•7m ago•0 comments

Ideogram 4.0 Technical Details: Open model at the forefront of design

https://ideogram.ai/blog/ideogram-4.0/
1•simonpure•7m ago•0 comments

No Model Will Save Us: Pope Leo, the Miserostat, and AI's Woke Coders

https://www.wmbriggs.com/post/61049/
2•B1FF_PSUVM•8m ago•0 comments

Billions spent and hypothetical returns: the AI boom explained with six charts

https://www.theguardian.com/technology/2026/jun/07/billions-spent-hypothetical-returns-the-ai-boo...
4•billybuckwheat•8m ago•0 comments

AI Companion App

1•adminOfbaratrum•9m ago•0 comments

ChatGPT app hits 1B monthly active users in record time

https://www.reuters.com/technology/chatgpt-app-hits-1-billion-monthly-active-users-record-time-da...
1•geox•11m ago•0 comments

Why isn't the U.S. better at soccer?

https://www.natesilver.net/p/why-isnt-the-us-better-at-soccer
6•7777777phil•15m ago•0 comments

Show HN: CodeSage Pro – an AI copilot that reads the problem on the page

https://chromewebstore.google.com/detail/codesage-pro-—-universal/cbkkghdedpjamcicmnfpihehmgjemmhi
1•rsingh867•16m ago•0 comments

When robots take over jobs, who decides what they do?

https://lorenzopieri.com/robotic_commons/
2•lorepieri•17m ago•0 comments

Ask HN: What is happening with the Meta Ads dashboard?

1•ramon156•20m ago•0 comments

Iran says staff blocked from entering US after players given World Cup visas

https://www.bbc.com/news/articles/cy8286nqz87o
2•root-parent•21m ago•0 comments

After empty promises, string theory finds new uses

https://www.science.org/content/article/after-empty-promises-string-theory-finds-new-uses
2•tcp_handshaker•23m ago•0 comments

Pete Hegseth's D-Day speech on immigration condemned as 'grotesque stupidity'

https://www.theguardian.com/world/2026/jun/07/pete-hegseth-d-day-speech-immigration-grotesque-stu...
7•tcp_handshaker•25m ago•1 comments

Sorry Marc, it's just not that big

https://www.ft.com/content/dcc7c956-858c-4fed-9820-f87f73f7bf8d
3•tcp_handshaker•25m ago•1 comments

I thought journaling app users wanted more features. Turns out they wanted trust

https://www.indiehackers.com/post/i-thought-journaling-app-users-wanted-more-features-turns-out-t...
2•rozvibe•28m ago•1 comments

All existing World Cup predictor apps were buggy, so I've built a cool one

https://kibic.co
2•olekskw•28m ago•1 comments

The Illusion of Invulnerability in Cybersecurity

https://zeltser.com/illusion-of-invulnerability
3•walterbell•28m ago•0 comments

Author of Home Office report reveals attempts to compromise him

https://www.theguardian.com/uk-news/2026/jun/07/home-office-china-report-honey-traps-compromise-a...
4•ilamont•29m ago•0 comments

Show HN: AudioTap, record calls, transcribe and diarize locally

https://audiotap.app/
1•AquiGorka•29m ago•1 comments

Bird flu, screwworm monitoring among foreign aid programs killed by DOGE

https://www.agri-pulse.com/articles/22636-bird-flu-screwworm-monitoring-among-foreign-aid-program...
1•JumpCrisscross•30m ago•0 comments

Thi.ng – open-source building blocks for computational design and art

https://thi.ng
1•nmstoker•31m ago•0 comments

Using Jai's Unique and Powerful Compiler for Typesafe Units

https://www.forrestthewoods.com/blog/using-jais-unique-and-powerful-compiler-for-typesafe-units/
1•erenon•33m ago•0 comments

Building Glass for the Web

https://aave.com/design/building-glass-for-the-web
1•bjelkeman-again•35m ago•0 comments

Parallel Lives: A Local-Realistic Interpretation of "Nonlocal" Boxes

https://www.mdpi.com/1099-4300/21/1/87
2•anotherpaulg•37m ago•1 comments

Anatomy of a Restaurant in 2026

https://danoregan.substack.com/p/where-the-money-goes-anatomy-of-a-45a
1•dylancollins•38m ago•1 comments

Show HN: Omni – airgapped macOS multimodal search over local files

https://github.com/hanxiao/omni-macos/
1•artex_xh•40m ago•0 comments