frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: The Oct Programming Language for scientific programming

https://github.com/yuechen-li-dev/oct
1•YuechenLi•1h ago
Apologies in advance if my writing is unclear.

First, why make another programming language? This came out of my general frustration with working with MATLAB and Python during grad school as well as at work. I'm a mechanical engineer; I write Python scripts for my own use semi-regularly. My issue with Python is that while writing easy, debugging Python code I wrote is hard once the code gets big. Sharing my Python code to colleagues is very difficult as most of them are less technical on coding than I am, so asking them to setup a full Python env just to run a script is out of the question.

Then, the Two-Language Problem for scientific computing: write the prototype code in Python/MATLAB and rewrite the performance sensitive code in C++/Rust when needed. The problem is that C++ and Rust are not very easy to learn and converting from a dynamically typed language like Python to a strict, statically typed language like Rust is not easy, especially for people who are not software engineers.

The name Oct is a reference to GNU Octave and started as my concept of what Octave should have been, and the name stuck. About 75k lines of Oct code are in the repo across experiments, libraries, and examples. Pretty much all of it is written by Claude/Codex, my role is only to prevent drift/hallucinations.

Features, in no particular order:

- Function first, statically typed, both interpreted and compiled: Oct code compiles to a Go binary via MIR codegen, runs on anything that Go runs at Go speed, and inherits Go's absurd compile speed, which means that a JIT is mostly unnecessary. - The entire Go ecosystem is available for Oct if you write a wrapper around it: Oct's `IO.Xlsx` library is `excelize`, Oct's builtin plot is `gonum/plot`, Oct's benchmark profiling is pprof, Oct's C interop is CGo. - Boring syntax, easy to learn. If you know Rust/Go/C#/Swift, learning Oct would take a few hours at most. Vice versa, if you learn Oct, then you are halfway to knowing how to write Rust already; - Octest, xUnit.NET style testing framework with `[Fact]/[Theory]` and various Asserts. - Foundational SI unit built into the language and enforced by typechecker: you can't add Int<m> and Int<kg> together. Units also propagate. ```oct fn StiffnessForce(K: Matrix<Float<kg/s^2>>, u: Vector<Float<m>>) -> Vector<Float<kgm/s^2>> { return K @ u // Matrix<Float<kg/s^2>> @ Vector<Float<m>> → Vector<Float<kgm/s^2>> } ``` - You can't ignore errors, Oct is exception free and `null`/`nil`-free, all errors must be handled explicitly: `?` for propagation, `!` for unwrap, or fallible `match`. - Arrays and vector/matrix are separate but related concepts, with vectors/matrices explicitly defined as Rank 1 and 2 tensors, and Einstein notation for tensors is built into the language. ```oct let c = a[i, k] * b[k, j] ``` - Octomata, Oct's own built in control system runtime, using explicit finite state machines and utility scoring as primitives for control systems.

```oct package Main

flow DoorControl(openCmd: Bool, closeCmd: Bool, blocked: Bool) -> String { state Closed { when { case openCmd and blocked == false -> goto Opening else -> return "closed" } }

    state Opening {
        when {
            case blocked -> goto Closed
            case closeCmd -> goto Closing
            else -> return "opening"
        }
    }

    state Closing { return "closing" }
} ``` Oct is very much a work in progress, but enough jank/bugs has been fixed that hopefully it wouldn't be embarrassing to show it off now, although rough edges still expected. So, would love some feedback.

Web Search API for Agents 70x Cheaper Than Exa

https://www.searchspace.io/
1•carsonpoole•2m ago•0 comments

OpenAI spending hit $34B last year ahead of planned IPO, $21B losses

https://www.ft.com/content/e15b0d7e-ff6b-4f16-ba7a-4068feddb828
1•1vuio0pswjnm7•2m ago•0 comments

Building Production AI Apps on Claude Code and Cloudflare [video]

https://www.youtube.com/watch?v=rwkAksbNsTg
1•presengage•3m ago•0 comments

How HN: Nova BRAIN – STIG scanning and POA&M automation dashboard

https://dawitone.gumroad.com/l/fgwfzl
1•Butulove•5m ago•0 comments

GoJS – Interactive diagramming for every industry

https://gojs.net/latest/
1•simonsarris•5m ago•0 comments

How to make small models punch way above their weight with DeepClause

https://deepclause.substack.com/p/how-to-make-small-models-punch-way
1•schmuhblaster•6m ago•0 comments

Gravitational-wave detections double with new catalog

https://news.northwestern.edu/stories/2026/03/gravitational-wave-detections-double-with-new-catalog
1•wglb•6m ago•0 comments

Framer 3.0

https://www.framer.com/updates/framer-3
1•SpyCoder77•7m ago•0 comments

OpenAI's financials have leaked, showing $21B in losses against $13B in revenue

https://fortune.com/2026/06/16/openai-financials-leaked-losses-revenue-profit/
4•1vuio0pswjnm7•7m ago•0 comments

Spin separates giant planets from 'failed stars'

https://news.northwestern.edu/stories/2026/03/spin-separates-giant-planets-from-failed-stars
1•wglb•8m ago•0 comments

Show HN: I Built a Free Text Based Audio Editor

https://audioeditor.pro/
1•wbemaker•9m ago•0 comments

How SpaceX's arrival impacts the stock market

https://www.axios.com/2026/06/15/spacex-ipo-stock-retail
1•1vuio0pswjnm7•9m ago•0 comments

PP-OCRv6

https://huggingface.co/collections/PaddlePaddle/pp-ocrv6
2•gomizhuce•12m ago•0 comments

The Guide to Fine-Tuning LLMs

https://arxiv.org/abs/2408.13296
1•robertlagrant•13m ago•1 comments

Show HN: Easy text to social media cards platform

https://cards.tinygods.dev
1•danipolani•14m ago•0 comments

Flue 1.0 Beta

https://flueframework.com/blog/flue-1-0-beta/
2•coloneltcb•14m ago•1 comments

The New Civilizationalists: How Tech Founders Are Fighting to Save the West [video]

https://www.youtube.com/watch?v=EI_QM0oMB48
1•nwhnwh•18m ago•1 comments

Show HN: Kevin – Claude talk less. Save Money

https://github.com/hvardhan878/kevin
1•hvardhan878•19m ago•0 comments

An open letter: On transparent AI cyber protections

https://freefable.org/
2•blahgeek•20m ago•0 comments

Free Network Bandwidth Amazon GameLift Servers Is Here!

https://aws.amazon.com/about-aws/whats-new/2026/06/amazon-gamelift-servers-free-network-bandwidth/
1•gafferongames•21m ago•0 comments

What does software development look like when agents write 100% of the code?

https://blog.bastion.computer/what-does-software-development-look-like-when-agents-write-100-of-t...
2•almostlit•27m ago•0 comments

See HN comments that link to specific sites

2•sillysaurusx•28m ago•0 comments

Glucosamine linked to faster dementia progression

https://www.medicalnewstoday.com/articles/pain-supplement-glucosamine-linked-to-faster-dementia-p...
1•Gaishan•30m ago•0 comments

Amazon S3 annotations: attach rich, queryable context directly to your objects

https://aws.amazon.com/blogs/aws/amazon-s3-annotations-attach-rich-queryable-context-directly-to-...
2•dabinat•31m ago•0 comments

Sparda – Turn any Express/FastAPI app into an MCP server in 3 minutes

https://github.com/zyx77550/sparda
1•residual-labs•34m ago•0 comments

Firefox is easier than ever to customize

https://blog.mozilla.org/en/firefox/firefox-settings/
1•soheilpro•35m ago•0 comments

DOJ Seeks to Halt Air Pollution Lawsuit Against xAI Data Center

https://www.nytimes.com/2026/06/16/climate/xai-musk-mississippi-grok-turbine-lawsuit-naacp.html
1•cdrnsf•40m ago•0 comments

TimeTimeTime – Clock Equation Game

https://timetimeti.me/
1•duneisagoodbook•41m ago•1 comments

HN comments with links to HN

https://news.ycombinator.com/from?site=news.ycombinator.com&kind=comment
2•sillysaurusx•42m ago•3 comments

Assume You Will Be Hacked

https://www.theatlantic.com/technology/2026/06/ai-hacking-cybersecurity-banks/687562/
5•paulpauper•43m ago•0 comments