frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Moggi, a statically typed, purely functional language on JVM, .NET and PHP

https://github.com/moggi-lang/moggi/
1•prolic•48m ago

Comments

prolic•48m ago
Moggi 0.1.0-alpha is released today.

Moggi is a statically typed, purely functional programming language with strict evaluation. It has algebraic data types, GADTs, pattern matching, type classes, type inference, Generic Deriving, and an IO monad. It targets the JVM, .NET, and PHP, with typed FFI for existing Java, .NET, and PHP libraries.

The first release also includes a REPL, LSP, VS Code extension, moogle (code search), mogdoc (documentation generation), and a growing standard library.

A small example:

```moggi data Shape = Circle Double | Rect Double Double deriving Show

class Area a where area :: a -> Double

instance Area Shape where area shape = case shape of Circle r -> 3.141592653589793 * r * r Rect w h -> w * h

data Reading = Reading { label :: String, shape :: Shape }

render :: Reading -> String render reading = let thisShape = reading.shape in reading.label <> ": " <> show (area thisShape)

main :: IO () main = do putStrLn (render (Reading { label = "unit circle", shape = Circle 1.0 })) putStrLn (render (Reading { label = "3x4", shape = Rect 3.0 4.0 }))

This is an alpha release: the language and APIs are still evolving, and the standard library is still a work in progress.

I'd particularly like feedback from people interested in functional languages, type systems, compilers, and language/runtime interoperability.

DoorDash's $131.5M Settlement with the City of New York

https://about.doordash.com/en-us/news/dcwp
1•sizzle•2m ago•0 comments

'Rex Jr.' Could Be Most Important T. Rex Ever Discovered

https://cowboystatedaily.com/2026/09/19/rex-junior-found-on-newcastle-ranch-could-be-most-importa...
1•in-silico•2m ago•0 comments

TSA is rolling out a new scanner – it could be a headache for carry-on travelers

https://www.independent.co.uk/travel/news-and-advice/tsa-new-scanner-carry-on-bags-b3055280.html
1•mikhael•5m ago•0 comments

Contrastive Language Models

https://contrastive-lm.notion.site/
2•erichocean•11m ago•0 comments

Trump White House Press Ban Matches 1933 Nazi Law

https://www.flyingpenguin.com/trump-white-house-press-ban-matches-1933-nazi-law/
1•speckx•15m ago•0 comments

Universities Must Reinvent Themselves for the Intelligent Age

https://time.com/article/2026/04/13/universities-must-reinvent-themselves-for-the-intelligent-age/
2•the-mitr•16m ago•0 comments

Nori LLM: Achieving Over 1M tok / s

https://noriagentic.com/nori-llm.html
1•theahura•20m ago•0 comments

An Undercover Google Analyst Infiltrated a Notorious Supply-Chain Hacking Gang

https://www.wired.com/story/an-undercover-google-analyst-infiltrated-a-notorious-supply-chain-hac...
2•chris_overseas•26m ago•0 comments

A 13-Year-Old Has Been Cured of DIPG, the Deadliest Childhood Brain Cancer

https://www.imapac.com/news-updates/world-first-a-13-year-old-has-been-cured-of-dipg-the-deadlies...
4•thunderbong•29m ago•0 comments

ThinkingCap-Qwen3.8-27B: the same answers, 37% less thinking

https://bottlecapai.com/post/thinkingcap-qwen3-8-27b/
2•jackbravo•29m ago•0 comments

China's Approach to AI

https://madeinchinajournal.com/2026/09/23/chinas-approach-to-ai-infrastructural-statecraft-manage...
3•paimapi•30m ago•0 comments

Show HN: Tokenhush – keeps your secrets out of what Claude Code sends

https://github.com/fregie/tokenhush
2•fregie•32m ago•0 comments

16GB iPod Nano 3G Upgrade

https://tuckerosman.com/projects/16gb-ipod-nano
2•Ivoah•33m ago•0 comments

OpenAI's Next Marketing Stunt

https://www.youtube.com/watch?v=NshlVxYnjFo
7•adithyassekhar•35m ago•0 comments

Show HN: How long do I need to work at my salary before I can coast, or retire?

https://github.com/karmanyaahm/budget-tools/tree/main/fire
11•karmanyaahm•38m ago•2 comments

Ask HN: I just talked to an AI-obsessed client, and I need a shower afterwards

3•platevoltage•43m ago•1 comments

Moggi, a statically typed, purely functional language on JVM, .NET and PHP

https://github.com/moggi-lang/moggi/
1•prolic•48m ago•1 comments

Free 3D CAD designing/modeling software

https://supra.silviaai.dev
1•Seeper•55m ago•0 comments

Chinese authorities reportedly in possession of F-35 components in Hong Kong

https://www.cnbc.com/2026/09/24/chinaf-f35-components-hong-kong.html
4•shinryudbz•58m ago•0 comments

Show HN: Built-in APM for vibe-coded apps so your AI can fix them

https://oncroft.net/blog/monitoring-built-in-for-every-croft-app/
1•richchetwynd•1h ago•0 comments

Muse Charm

https://www.meta.com/in/muse-charm/
3•kamaal•1h ago•3 comments

The AI Build-Out Is Becoming the Biggest Economic Bet in U.S. History

https://www.wsj.com/economy/the-ai-build-out-is-becoming-the-biggest-economic-bet-in-u-s-history-...
4•AnodicElegy•1h ago•3 comments

What the Labs Kept Secret: The German Wiki and RubyGems Hacks [video]

https://www.youtube.com/watch?v=giTmBaNGaHw
1•vismit2000•1h ago•0 comments

Sync Alexa Lists to Apple Reminders

https://github.com/ow/Alexa-apple-reminders
1•owenwil•1h ago•1 comments

Cursor launches bots that watch code from pull request to production

https://cursor.com/blog/rollouts-and-security-reviewer
3•fourfire•1h ago•0 comments

Two-dimensional billiards are Turing complete

https://www.crm.cat/a-single-ball-on-a-fixed-table-can-compute-eva-miranda-and-isaac-ramos-prove-...
1•Anon84•1h ago•0 comments

Show HN: I made Jev moderate Discord servers

https://soter.frolleks.site
1•frolleks•1h ago•1 comments

PersistentWindows – persists window positions on some events for Windows

https://github.com/kangyu-california/PersistentWindows
2•xgdgsc•1h ago•1 comments

We Run Kaizen on AI

https://kznconsulting.com/work/how-we-run-kaizen
1•atonse•1h ago•0 comments

Show HN: SocatUI A task manager for Socat tunnels

https://github.com/esurharun/socatui/
1•marcusfrex•1h ago•0 comments