frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Deeplearning from Scratch in 1400 Lines In my own Programming Language

https://github.com/NoSavedDATA/Neve_benchmarks
2•nosaveddata•1h ago

Comments

nosaveddata•1h ago
Hi, HN. I am the creator of Neve and its deep learning framework, Frost.

I built it mainly because of difficulties researches face when they want to implement neural networks. The first is about networks that require parallel optmizations, like the Efficient Zero and PyTorch dataloaders. They are heavily constrained by the Global Interpreter Lock (GIL). Thus, they require programming in C, and to use cumbersome Python interop with C as around. The second reason is for making kernel fusion techniques, like Flash Attention.

It is still experimental, but I am passed halfway to fulfill these goals.

Neve has native parallelism, Go-like channels, and allows you to create networks either completely in high-level with GPU kernels interfacing, or using interop with C++.

To demonstrate its simplicity and expressivity, I put all the Frost into a single page of code, mixed with the training algorthim. The complete deep learning did not surpass 1400 lines of code (image loading, GPU tensors memory pool and tensor print function are C++, but they are also compact).

I trained a ResNet-18 in Cifar-10 and compared to PyTorch. All implementations achieved similar accuracy. Neve partial cuDNN implementation is faster than PyTorch. Neve with naive GPU kernels is still behind, but the kernels lack some optimizations I am busy to make.

If you want to see how the design choices work in pratice, the 1400 lines code is at neve_samples/all_in_one.nv (github does not highlight the syntax, but you can set your editor to Python or install Neve syntax)

-- Limitations

- You need a Linux (or Docker to it) for Neve, and a CUDA 12.3 compatible GPU for Frost.

- The concurrent gc also has some extremely rare crashes that I am still hunting.

--

Links

- Neve docs: https://neve-lang.dev - Neve repository: https://github.com/NoSavedDATA/Neve - Frost repository: https://github.com/NoSavedDATA/frost - Background on why making a new deep learning framework (comparing to Julia and Mojo). https://dev.to/no_saved_data/deep-learning-from-scratch-in-1... - Quick start to the main features: https://dev.to/no_saved_data/neve-towards-a-unified-programm...

--

I will stay around to answer questions about the language

Show HN: I built my own knowledge graph from the code AI writes

https://github.com/aeroscissorz/learnlance/
2•aeroscissorz1•21m ago•1 comments

Show HN: Deeplearning from Scratch in 1400 Lines In my own Programming Language

https://github.com/NoSavedDATA/Neve_benchmarks
2•nosaveddata•1h ago•1 comments

Show HN: Analyst Index – analysts who make money telling you good stock calls

https://www.analystidx.com/
6•haichuan•3h ago•4 comments

Show HN: The Kinect is dead, so I rebuilt it in a browser tab for my kids

https://hoplagames.com/en/
2•Gri22lyBear•4h ago•1 comments

Show HN: AlertiGate – Kubernetes alerts in, evidence-backed root cause out

https://alertigate.com/
2•dafi247•5h ago•0 comments

Show HN: Bodily Oddities

https://vester.si/bodily-oddities/
329•vesterde•2d ago•204 comments

Show HN: See Sounds on Your Webcam

https://soundmap.darebuild.com/
19•jimhi•3d ago•6 comments

Show HN: Everything a web page can learn about you, in plain English

https://sessioncontext.org
11•oddurs•16h ago•3 comments

Show HN: What If Donut.c but with Any ASCII Art

https://asdesai.com/blog/how-fetch-works/
14•areofyl•17h ago•1 comments

Show HN: ResolveHQ – A Helpdesk Built on Cloudflare Workers, D1, R2 and Queues

https://github.com/mirza-rizvi/ResolveHQ
69•mirza_rizvi•1d ago•25 comments

Show HN: Astah Pro MCP – Enabling AI-Powered UML Modeling

https://github.com/takaakit/astah-pro-mcp
4•takaakit•12h ago•0 comments

Show HN: Godot and Rust based multiplexer (terminal panes and more)

https://github.com/godot-pty/gpty
93•1nv1n•1d ago•48 comments

Show HN: The iPhone Duo fold effect on any Windows laptop

https://winduo.baselashraf.com/
3•BaselAshraf81•11h ago•2 comments

Show HN: Determinstic LLM inference for lowest price Gemma 4, with Windows XP

https://www.tokendelivery.ai/
7•carsonpoole•22h ago•1 comments

Show HN: I made an alternative to the archived filebrowser

https://github.com/skidoodle/filebrowser
3•skidoodle•11h ago•1 comments

Show HN: Aqqai – Every answer, checked before you see it

https://demo.aqqai.in
3•Vineetyadav2•12h ago•2 comments

Show HN: PDFidelity – Translate PDFs while preserving the original layout

https://www.pdfidelity.com/
4•andygeek•17h ago•1 comments

Show HN: Hacker News, without AI

https://hcker.news/?ai=exclude
200•postalcoder•2d ago•88 comments

Show HN: Give Claude Code / Cursor a real eng team (tiers, roles, escalation)

https://github.com/khuynh22/agent-dev-team
3•timhuyn•17h ago•0 comments

Show HN: What if the speed of light was 5 km/h?

https://rivendell.dmitrybrant.com/relativity/
620•dmitrybrant•3d ago•282 comments

Show HN: Open-Sourced Chrome Extension to Save, Organize and Switch Bookmarks

https://github.com/ringlochid/leotabs
7•ringlochid•13h ago•0 comments

Show HN: Graphify C# – Compiler-accurate Find Usages for coding agents

https://github.com/zachsaw/graphify-csharp
42•zachsaw•1d ago•21 comments

Show HN: Compute polynomials twice as fast

https://thomasahle.com/fast-polynomials/
136•thomasahle•4d ago•42 comments

Show HN: Most Penalized HN Stories

https://news.social-protocols.org/penalties
17•jwarden•14h ago•3 comments

Show HN: Fleecevest – The Product Counterpart to Ponytail

https://github.com/Websites-On-Computers/fleecevest
4•mattcomputer•14h ago•1 comments

Show HN: Toast, a by default in-terminal IDE

https://github.com/paradise-runner/toast
81•dividedcomet•1d ago•88 comments

Show HN: Hacker News, Without AI

https://www.unslop.news/
193•otherayden•1d ago•80 comments

Show HN: DiskTriage – A simple CLI tool to reclaim space on your Win C drive

https://github.com/ricardoborges/DiskTriage
5•r2ob•15h ago•1 comments

Show HN: A Technical Book for the Age of AI

https://codeberg.org/juurej/p4cu
4•juurej•16h ago•0 comments

Show HN: Lumae Native macOS screen-demo recorder that agents can edit over MCP

https://lumae.app
3•happyyeti•16h ago•2 comments