0Pricing
Mojo Academy · Lección

Publicar el proyecto acelerado

Empaquete, verifique e informe de la mejora de velocidad.

Publicar el proyecto acelerado es una lección gratuita de Mojo Academy en CoddyKit. Esta es la lección 4 de 4. Puedes leer la lección completa abajo gratuitamente — luego la practicas en el navegador con un editor de código integrado y un tutor de IA 24/7. Forma parte de la ruta de aprendizaje de Mojo Academy, y tu progreso se sincroniza en la web y la app de CoddyKit. El curso de Mojo Academy incluye 4 lecciones en total.

Partes de esta lección aún no han sido traducidas y se muestran en inglés.

Time to Ship

The kernel is fast and correct. Now package it, prove the win, and hand off a project others can actually use. 🚀

Organize Into Modules

Split the code into clear files. One module for the kernel, one for I/O, keeps the project readable as it grows.

from kernel import sum_squares
from io_utils import load_data

Define a Public API

Decide what users call and what stays internal. A small, clear API means people use your code without reading every line.

Build a Package

Bundle the modules into a single shareable file. A .mojopkg lets others import your accelerated code with one line.

mojo package myproj -o myproj.mojopkg

Keep Python Where It Fits

The app can stay mostly Python and call your Mojo kernel through interop. You accelerate the hot path without rewriting everything.

Run the Final Benchmark

Time the shipped pipeline end to end. This final benchmark is what you compare to the original Python baseline.

Compute the Speedup

Divide the old time by the new time to get the speedup. A clean ratio tells the whole story in a single honest number.

speedup = baseline_time / mojo_time

Verify Once More

Run the full app on real input and check the output against the reference. Final correctness matters as much as the speed gain.

Report Honestly

State the input size, hardware, and method with the result. An honest report lets others trust and reproduce your numbers.

Document the Project

Write a short note on how to install, run, and benchmark it. Good docs turn a fast experiment into something people can adopt.

Reflect on the Journey

You profiled, ported the hot path, vectorized, parallelized, tuned, and shipped. That full workflow is how real Mojo acceleration happens.

Quick Check

Pick the right way to report your capstone result.

Recap

You packaged the kernel, ran a final benchmark, verified correctness, and reported an honest speedup. Your accelerated project is ready to ship. 🎯

Preguntas frecuentes

¿La lección «Publicar el proyecto acelerado» es gratis?

Sí — el texto completo de «Publicar el proyecto acelerado» es gratis para leer aquí en la web. Para practicarla de forma interactiva (editor de código integrado y tutor de IA 24/7) y desbloquear el resto del curso de Mojo Academy, actualiza a CoddyKit PRO. El curso de Mojo Academy incluye 4 lecciones en total.

¿Qué aprenderé en «Publicar el proyecto acelerado»?

Empaquete, verifique e informe de la mejora de velocidad. Practicas Mojo Academy con código real que ejecutas directamente en el navegador, y un tutor de IA 24/7 responde tus preguntas mientras trabajas en la lección.

¿Necesito experiencia previa para empezar Mojo Academy?

No se requiere experiencia previa. Mojo Academy en CoddyKit está estructurado para principiantes hasta estudiantes avanzados, así que puedes empezar aquí o desde el inicio y avanzar a tu ritmo. Esta es la lección 4 de 4.

¿Cuánto tiempo toma la lección «Publicar el proyecto acelerado»?

La mayoría de las lecciones de CoddyKit toman alrededor de 5–10 minutos. Cada una es compacta e interactiva, así que avanzas constantemente y retomas exactamente por donde dejaste en la web y la app.

¿Puedo escribir y ejecutar código en esta lección de Mojo Academy?

Sí. Cada lección de Mojo Academy incluye un editor de código integrado, así que escribes y ejecutas código real directamente en tu navegador y obtienes retroalimentación instantánea de IA — sin configuración local necesaria.

Todas las lecciones de este curso

  1. Perfilar la línea base de Python
  2. Reescribir la ruta crítica en Mojo
  3. Paralelizar y ajustar el núcleo
  4. Publicar el proyecto acelerado
← Volver a Mojo Academy