Modular

M

Modular

This server is the home of the MAX and Mojo community. Join us to chat about all things Modular!

Join

questions

community-showcase

MPFR-based correctness testing for Mojo 🔥

This project is a proof of concept (PoC) that demonstrates how we can use the MPFR library as a “gold standard” to test the correctness of mathematical functions implemented in Mojo. MPFR is an efficient C library for multiple-precision floating-point computations with correct rounding. It is used to test numerical routines in projects such as CORE-MATH, LLVM-libc, and RLIBM. By comparing the outputs of our custom Mojo functions with MPFR, we can ensure that our implementations are correctly rounded or at least as accurate as possible within specific memory or latency requirements....

Modo: Mojo documentation generator -- `mojo doc` JSON to Markdown for SSGs

I've released Modo, a documentation generator for Mojo, written in Go. Modo generates Markdown files from mojo doc's JSON output. These files can be used to publish your API docs using a static site generator (SSG) e.g. on GitHub Pages. Currently, the only SSG fully supported is mdBook. This example site shows the Mojo standard library, processed with Modo and mdBook, and published on GitHab Pages....

Larecs: a performance-centred archetype-based ECS

We have built an archetype-based ECS, mostly building on the Arche ECS in Go lang. There are still a couple of features on the road map, but the central functionality is there. In benchmarks, Larecs beats Arche in almost all test cases :-). Have a look here: https://github.com/samufi/larecs I would be super happy if others were interested in joining, and I'd greatly appreciate feedback and ideas how to bring SIMD and other Mojo perks to the world of ECS....

Min Heap for Mojo

While doing this year's Advent of Code I quickly put together functions to make a min heap in mojo because I couldn't find anything in the stdlib. It works the same as the python heapq library without having to go through the hassle of python interop and runs around 6.5x faster. Currently it only supports heappush and heappop but I might add a heapify function or MinHeap struct if anyone's interested. Hope this saves someone some time. https://gist.github.com/mehta302/ffebd938e63ae43bd5e02bac72a0cae1...

Mojo dev container for standard library development

Multi-arch (linux/amd64, linux/arm64/v8) Mojo dev container.
🔥 All prerequisites installed for Mojo standard library development. Parent image: glcr.b-data.ch/mojo/base:nightly ...

MAX/Mojo Data Science dev containers

Multi-arch (linux/amd64, linux/arm64/v8) MAX/Mojo Data Science dev containers: Parent images: MAX/Mojo docker stack * CUDA MAX base...

A Benchmark with Files and Bytes

Crossposting my forum post since the formatting is a bit nicer there: https://forum.modular.com/t/showcase-a-benchmark-with-files-and-bytes-standard-benchmark-warnings-apply/420 tl;dr; pretty vanilla Mojo was beating out pretty vanilla Rust (all normal caveats about benchmarks being worthless apply)....

Current NEOVIM config

Let's use this post to share neovim setups for mojo!
No description

HEPJo v0.1.0 !

I am excited to announce the first release of HEPJo v0.1.0, HEPJo is a high-performance library for numerical computations in particle physics, written in Mojo 🔥 similar to Scikit-HEP in Python. Here's what's currently included: Key Features...

NuMojo v0.4 is here! 🔥

We’re excited to announce the release of NuMojo v0.4 compatible with Mojo 24.6! Here’s what’s new:
🌟 New Features
- Matrix Type: Optimized 2D array with core operations, broadcasting, and linear algebra support.
- Expanded array creation routines following NumPy. ...

ExtraMojo

https://github.com/sstadick/ExtraMojo ExtraMojo has been updated to support latest mojo and Magic, and now has more tests and examples! ExtraMojo is just things I wish were in the stdlib, which mostly means a buffered file reader that can read files by line (or any delim), and a tiney regex implementation....

FireWorm 🔥🐛 - Easy Docs Website for your Mojo Project

Hey everyone! I wanted to make public docs for Lightbug, but instead made a public documentation starter kit, FireWorm: https://github.com/saviorand/fireworm It's based on Basalt docs, with more features, and I've put quite a lot of effort into refining the frontend. ...
No description

Morabaraba: a traditional board game from South Africa written in Mojo

Hello all, I have made a terminal game based on Morabaraba (a variant of 12-mens' morris) in Mojo using a minimax algorithm. It is very rough and I would love if anyone would take a look and tell me how bad it is! I would also love it if people would like to test and perhaps let me know how to improve things or point out glaring issues. Of course if you would just like to have a play and enjoy that is awesome as well. Thanks for taking the time, I appreciate it. I love this community and languag...
No description

Modverse #44: the hidden superpowers of linear types, understanding SIMD, and RAG with MAX 24.5

This month's community highlights are hot off the press! Featuring @Maxim, @Manuel Saelices, @bgreni, @Martin Vuyk, @sora, @Joshua James Venter, @Helehex, @gabrieldemarmiesse, @toasty, @rd4com, @ivellapillil, @lukas, @Helehex, and @Alvydas Vitkauskas! Huge thanks for all your amazing contributions 🥳

Tephra: Read the BlueSky Firehose with Mojo

I made a small set of utils that lets me read from the BlueSky firehose. I'm using Python for websockets for now though. https://github.com/lsh/tephra...

Mojo LibC bingings

Forked repo with the Mojo libc bindings from @crisadamo , adapted to the latest Mojo nightly package, and released on the mojo-community channel: https://github.com/msaelices/mojo-libc Making the libc bindings a Mojo package hopefully could help avoid copying and pasting the code from the original repo all over the place. Note: I'm still trying to contact @crisadamo, as his original repo had no explicit license....

:hatching_chick: mojo-new-web-framework

🐣 mojo-new-web-framework https://github.com/rd4com/mojo-new-web-framework Hello, after thinking about web-framework a lot, and working on it for a while, it seem good enough,...
No description

Mojo added to SpeedTests repo on github

I recently came across jabbalaci's SpeedTests https://github.com/jabbalaci/SpeedTests, and I made a PR to add Mojo, which got accepted today! The project's idea is to stick to the basic implementation pattern of the task without using language-specific tricks, so I just followed the Python implementation. It's a insightful list of benchmark results, and Mojo is holding up pretty well. 😉...
No description
Next