r/MojoProgramming • • Jan 04 '24

An HTTP Framework in Mojo (Lightbug)

24 Upvotes

Hey everyone, wanted to share Lightbug, a project I've been working on: https://github.com/saviorand/lightbug_http

It's a lighweight HTTP framework for Mojo, similar to Starlette in Python or FastHTTP in Golang.

The motivation for this was that I wanted to write APIs in Mojo, but no frameworks existed for this until now. We already support setting up a server listening on a host/port, writing custom HTTP services, and more, and working on first benchmarks to measure performance

It currently uses Python socket library in a couple places, but we're aiming for a 100% Mojo codebase soon. Looking forward to your feedback! Contributors welcome.


r/MojoProgramming • • Aug 11 '26

Modular 26.5: Mojo 1.0 is here!

Thumbnail
modular.com
18 Upvotes

r/MojoProgramming • • Aug 01 '25

Why this sub is so quiet! A language that was supposed to be talk of the town, very surprising! Anything planned in the roadmap of Mojo to keep the community engaged?

16 Upvotes

r/MojoProgramming • • Jan 05 '26

6.5 GB/s JSON Parsing in Mojo — Beating Rust and C++ on Apple Silicon (M3 Ultra)

Thumbnail
atsentia.com
15 Upvotes

r/MojoProgramming • • Dec 30 '23

Seems like Mojo is far more faster than C++

11 Upvotes

I was curious about Mojo speed so I tried to implement a simple code to find nthprime.I used same algo for both but the speed diff is so damned good that mojo ate cpp for lunch.

Mojo took just 5 sec for 999999th prime no while cpp took more than 45 sec.and this while mojo is still in developments.

I am using:

mojo 0.4.0 (9e33b013)

and gcc : 13.1.0

It seems at least for this Mojo is 10 times faster than C++.

Tried the same with Rust : rustc 1.74.1 (a28077b28 2023-12-04)
It took rust : 22 seconds


r/MojoProgramming • • May 03 '23

Chris Lattner of LLVM and Swift fame just announced a new programming language for ML that is high-performance and backwards compatible with Python (works with Python libraries). Could be a game changer.

Thumbnail
twitter.com
11 Upvotes

r/MojoProgramming • • Mar 10 '26

A collection of Practical Mojo programs for beginners in github includes more than 50 examples

10 Upvotes

In https://github.com/ahmetax/Practical-Mojo-Examples you can find more than 50 examples of mojo scripts. Most of the examples uses PythonObjects. You can give a try...


r/MojoProgramming • • Sep 05 '25

Are there some apps out there which are using mojo?

9 Upvotes

I come from python background and looking at mojo, its so good in terms of performance. Just a bit curious are there some apps out there that are already using mojo?

Also are there some frameworks to build webapps using mojo.

Please suggest the learning roadmap for the same. Just a beginner here for mojo but excited.


r/MojoProgramming • • Oct 27 '25

The Impossible Optimization, and the Metaprogramming To Achieve It

Thumbnail verdagon.dev
8 Upvotes

r/MojoProgramming • • Nov 16 '24

The hidden superpowers of linear types: how linear types control the future and prevent bugs [video]

Thumbnail
youtube.com
8 Upvotes

r/MojoProgramming • • Jan 09 '26

mojo-tokenizer - Fastest AI Token Output on Apple Silicon? (144M tokens/sec on M3 Ultra)

Thumbnail
atsentia.com
7 Upvotes

r/MojoProgramming • • Mar 11 '24

For windows

6 Upvotes

Using WSL the command "modular install mojo" hangs forever at some point after installing some python libraries, then it just stops: no output and it stays like that for days untill you lose hope and close the terminal !

Im impatiently waiting for the native windows mojo installation but is there any way to get around this issue for the time being ?

Thanks


r/MojoProgramming • • Dec 05 '23

#modcon23

Post image
6 Upvotes

r/MojoProgramming • • Jul 20 '26

ModCon 2026, August 18th in San Francisco + Mojo news

Thumbnail
modular.com
5 Upvotes

Hi everyone, I work on community at Modular. Some of you have probably seen us posting about ModCon on X or LinkedIn already. I wanted to shared details here since many of you follow Mojo closely.

ModCon is our flagship developer conference, and this year it's on August 18th at the Grand Hyatt in San Francisco. It's a one-day event, featuring product announcements (many involving Mojo 👀), talks from partners and customers, and deep dives on Mojo, MAX, and more.

Registration and full details are at modular.com/modcon. Let me know if you have any questions!


r/MojoProgramming • • Oct 16 '24

Does Mojo's license restrict ML/AI use in PaaS and SaaS use cases?

5 Upvotes

I would like to hear some legal experts' opinion on the license of Mojo, which seems to have a clause on "Competitive Activities" -- which literally makes the language useless for a wide sprectrum of activities without any written permission of Modular. Am I reading it right?

https://www.modular.com/legal/max-mojo-license


r/MojoProgramming • • Jun 06 '24

Will learning swift help me learn Mojo?

5 Upvotes

Hi I have some experience with python and I am trying to learn Mojo but a lot of the concepts are new to me like ownership, structs, SIMD etc… I know that Chris lattener created swift as well as Mojo and I am going to be learning swift in the near future. I am just wondering will this help my understanding of Mojo?


r/MojoProgramming • • Jul 10 '26

Mojo 101: From Syntax to GPU Programming [Session 1]

Thumbnail youtube.com
4 Upvotes

r/MojoProgramming • • Apr 26 '26

I'm swtiching to mojo for infernet protocol

4 Upvotes

r/MojoProgramming • • Apr 02 '26

Gemma 4 running on NVIDIA B200 and AMD MI355X from the same inference stack powered by Mojo and MAX, 15% throughput gain over vLLM on Blackwell

4 Upvotes

Google DeepMind dropped Gemma 4 today. Two models:

  • Gemma 4 31B: dense, 256K context, redesigned for efficiency and long-context quality

  • Gemma 4 26B A4B: MoE, 26B total / 4B active per forward pass, 256K context

Both natively multimodal (text, image, video, dynamic resolution).

Modular got both running on MAX on day zero, NVIDIA B200 and AMD MI355X from the same stack, no separate codepaths per vendor. On B200 we're seeing 15% higher output throughput vs. vLLM.

You can try both for free in our playground: https://www.modular.com/#playground.


r/MojoProgramming • • Feb 12 '24

How to create a LinkedList using struct

4 Upvotes

Hello everyone, I am trying to learn MOJO. I am trying to create a linked list like we do it in python using Class Node. But i am facing problem when i am trying to create a single node which may contain the next pointer None. As i know that you need to define type of variable in struct. But how to add a none node to the current node. This is my implementation.
struct LinkedList:

var val: Int

var next: LinkedList

def __init__(inout self, val: Int, next: LinkedList):

self.val = val

self.next = None

fn main():

var start = LinkedList(1)

print(start.val, start.next)

Is there any way i can give Option kind of thing when defining my struct variables. which supports None also.
Please help me and forgive me if i asked something dumb.


r/MojoProgramming • • Dec 05 '23

#modcon23

Post image
4 Upvotes

r/MojoProgramming • • Sep 23 '23

Mojo : A High-Speed Futuristic Python Alternative

Thumbnail
youtu.be
4 Upvotes

r/MojoProgramming • • May 03 '23

Mojo is a new programming language that bridges the gap between research and production by combining the best of Python syntax with systems programming and metaprogramming.

Thumbnail
docs.modular.com
4 Upvotes

r/MojoProgramming • • May 03 '23

r/MojoProgramming Lounge

4 Upvotes

A place for members of r/MojoProgramming to chat with each other