frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Built a tensor + NN framework entirely in Mojo — feedback?

2•ratulb•1h ago
Tenmo A lightweight tensor library and neural network framework written in pure Mojo.

https://github.com/ratulb/tenmo

Tenmo focuses on:

SIMD-optimization explicit memory layout zero-copy views a minimal but practical autograd system Status: Tenmo evolves alongside Mojo itself. APIs may change. Not production-ready yet.

Performance MNIST (4-layer MLP, 105K params, 15 epochs) Platform Device Avg Epoch Total Test Acc Tenmo CPU (Mojo) 11.4s 171s 97.44% PyTorch CPU 14.5s 218s 98.26% PyTorch GPU (Tesla T4) 15.2s 227s 97.87% Notes

Tenmo uses SIMD-vectorized kernels on contiguous buffers. No BLAS was used in the MNIST run — everything executes as pure Mojo code. GPU overhead dominates for models of this size; larger models benefit more from GPU acceleration. Quick Example from testing import assert_true from tenmo import Tensor

fn main() raises: var a = Tensor.d1([1.0, 2.0, 3.0], requires_grad=True)

    var b = a * 2
    var c = a * 3
    var d = b + c

    d.backward()

    assert_true(a.grad().all_close(Tensor.d1([5.0, 5.0, 5.0])))
Feedback highly appreciated!

Comments

DenisDolya•1h ago
Friend, this is great, your Tenmo really could become a competitor for PyTorch. I especially liked what you wrote about pure Mojo, you really dug into the low level, even the tricky stuff. But is that really enough? You’ve reached a peak, but PyTorch already has a lot of momentum. It might be tough for your implementation to catch up, so maybe start by imitating PyTorch common behavior as much as possible, so people can switch easily, then gradually add your own API. Also, MNIST numbers look good for a pure-Mojo CPU run, but bigger models and GPU workloads will really show where it stands. Docs and a short guide for switching would also help a lot. Overall really impressive work, keep it up!

Kotlin Multiplatform

https://kmp.rrtutors.com/
1•rrtutors•5m ago•0 comments

After 25 years, Wikipedia has proved that news doesn't need to look like news

https://www.niemanlab.org/2026/01/after-25-years-wikipedia-has-proved-that-news-doesnt-need-to-lo...
2•giuliomagnifico•14m ago•0 comments

An explanation of cheating in Doom2 Deathmatch (1999)

https://www.doom2.net/doom2/cheating.html
1•Lammy•14m ago•1 comments

US electricity demand surged in 2025 – solar handled 61% of it

https://electrek.co/2026/01/16/us-electricity-demand-surged-in-2025-solar-handled-61-percent/
2•doener•15m ago•0 comments

Show HN: PolyMCP – structured skills from MCP tools for efficient agent usage

1•justvugg•16m ago•0 comments

TLDR: Code Analysis for AI Agents

https://github.com/parcadei/llm-tldr
1•handfuloflight•17m ago•0 comments

Don't Waste Your Back Pressure

https://banay.me/dont-waste-your-backpressure/
1•ghuntley•17m ago•0 comments

GCD of Fibonacci Numbers

https://www.cut-the-knot.org/arithmetic/algebra/FibonacciGCD.shtml
1•vismit2000•17m ago•1 comments

Show HN: I made a TIDAL client that runs in the terminal

https://github.com/results-may-vary-org/ttydal
1•a2nb•21m ago•0 comments

TidesDB v7.2.3 and RocksDB v10.9.1 Benchmark Analysis

https://tidesdb.com/articles/benchmark-analysis-tidesdb-v7-2-3-rocksdb-v10-9-1/
1•alexpadula•22m ago•0 comments

Map To Poster – Create Art of your favourite city

https://github.com/originalankur/maptoposter
4•originalankur•30m ago•2 comments

Hypixel released Hytale Early Access

https://hytale.com/news/2026/1/hytale-is-finally-here
1•ssernikk•32m ago•0 comments

Jaw health campaign – looking for funding

1•gushogg-blake•38m ago•0 comments

Docker Releases Hardened Images for Free – What Does It Do Differently?

https://www.i-programmer.info/news/240-devops/18579-docker-releases-hardened-images-for-free-what...
1•birdculture•38m ago•0 comments

30 Years

https://www.charlespetzold.com/blog/2026/01/30-Years.html
1•_hao•40m ago•0 comments

I Render 10MB Markdown Files in the Browser

https://igorstechnoclub.com/how-i-render-10mb-markdown-files-in-the-browser/
1•Igor_Wiwi•41m ago•0 comments

Removing Gemini AI Watermarks: A Deep Dive into Reverse Alpha Blending

https://allenkuo.medium.com/removing-gemini-ai-watermarks-a-deep-dive-into-reverse-alpha-blending...
1•diginova•41m ago•0 comments

ClickHouse raises $400M Series D

https://clickhouse.com/blog/clickhouse-raises-400-million-series-d-acquires-langfuse-launches-pos...
3•ushakov•46m ago•0 comments

Show HN: I built a tool to assist AI agents to know when a PR is good to go

https://dsifry.github.io/goodtogo/
1•dsifry•48m ago•0 comments

The Costs of Studying China from a Distance

https://www.pekingnology.com/p/diao-daming-the-costs-of-studying
1•taiwandongsuan•51m ago•0 comments

Steps How to Delete Yourself from the Internet

https://vpnspin.com/how-to-delete-yourself-from-the-internet/
1•mariusme•55m ago•0 comments

Is Plane Wi-Fi Safe? 3 Critical Dangers Exposed

https://vpnspin.com/is-wifi-on-planes-truly-safe/
1•mariusme•57m ago•0 comments

Study debunks Trump claim that paracetamol causes autism

https://www.theguardian.com/society/2026/jan/16/study-debunks-trump-claim-paracetamol-causes-auti...
1•chrisjj•58m ago•0 comments

Show HN: ReFlow Studio – An offline tool to dub, translate, and censor videos

https://github.com/ananta-sj/ReFlow-Studio
1•linearAmend•59m ago•0 comments

That's FAR-out, man: a kernel infoleak in Mac OS XNU

https://blog.dfsec.com/ios/2023/11/19/thats-far-out-man/
1•fanf2•1h ago•0 comments

Makefile Concepts

https://blog.dbdo.website/posts/makefile/?
1•dbdo•1h ago•0 comments

In the coming weeks, we plan to start testing ads in ChatGPT free and Go tiers

https://twitter.com/OpenAI/status/2012223373489614951
4•Garbage•1h ago•1 comments

Show HN: Partner – An AI co-founder that remembers you

https://getpartner.ai
1•ianberdin•1h ago•0 comments

Bridges – By Kent Beck

https://tidyfirst.substack.com/p/bridges
1•Garbage•1h ago•0 comments

A Blue Diamond Discovery Could Rewrite the Record Books

https://www.naturaldiamonds.com/science-of-diamonds/blue-diamond-discovery-cullinan-mine/
1•tevrede•1h ago•0 comments