Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rd4com/mojo-learning
๐ Learn some mojo !
https://github.com/rd4com/mojo-learning
Last synced: 27 days ago
JSON representation
๐ Learn some mojo !
- Host: GitHub
- URL: https://github.com/rd4com/mojo-learning
- Owner: rd4com
- License: mit
- Created: 2023-09-13T15:24:37.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-03T19:15:07.000Z (7 months ago)
- Last Synced: 2024-05-04T20:14:57.257Z (7 months ago)
- Homepage:
- Size: 168 KB
- Stars: 109
- Watchers: 8
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-mojo - mojo-learning - Repos of tutorials. (๐ Resources / Tutorials)
- awesome-max-mojo - rd4com/mojo-learning - learning?style=social"/> : ๐ Learn some mojo ! (Summary)
- awesome-max-mojo - rd4com/mojo-learning - learning?style=social"/> : ๐ Learn some mojo ! (Summary)
README
# ๐ Learning mojo language
### โ ๏ธ not affiliated with Modular or Mojo
ย### [๐ Why](/why.md)
### [๐ฆ Introduction](/introduction.md)
### [๐ซต corrections and contributions](contribute.md)
ย# [๐ข Let's ```mojo build -D your="own" -D version=1 app.๐ฅ``` with ``` ๐ก๏ธConstrained```](./tutorials/use-parameters-to-create-or-integrate-workflow.md)
Integrate apps with existing build scripts, for example# [`SIMD` is a type, with `methods` and `operators` !](./tutorials/simd-is-a-type-with-methods-and-operators.md)
`SIMD` vectors are first-class citizens.
# [๐ Python land and mojo land, PythonObject](tutorials/python-world-mojo-world.md)
note: need revision for better accessibility# [๐ฃ๏ธ ๐ multi-core (parallelize) with simd](tutorials/multi-core-parallelize-with-simd%20.md)
simd and parallelize.# [๐ช calling mojo functions from python ](tutorials/calling-mojo-functions-in-python.md)
using pointers an ctype# [๐ using python in mojo: a to z](tutorials/using-python-in-mojo.md)
first steps and dancing# [๐๏ธ๐๏ธ๐ Moving owned values](tutorials/moving-owned-values.md)
```__moveinit__``` ```__del__``` and many more !
# [๐ Traits: accept any types that comply to requirements](tutorials/traits.md)
accept types based on some requirements# [SIMD: ๐ขโ๏ธ2๏ธโฃ๐ฐโช2๏ธโฃ,4๏ธโฃ,6๏ธโฃ,8๏ธโฃโซ](tutorials/simd.md)
perform an operation on multiple numbers# [๐ Variant, a type that can hold values of different types](./tutorials/variant.md)
The current type it holds can change and be checked# [๐๐ type-checking a PythonObject](./tutorials/type-check-class-of-pythonobject.md)
For example, to iterate python arrays that might contains objects of various classes# [๐งฌ Parameters, Alias, Struct parameter deduction, more](tutorials/parameters-alias-struct-parameter-deduction.md)
Parameterize! (compile time meta-programming)# [๐ช๐ฎ Autotuned parametrized tests](tutorials/autotuned-parametrized-tests.md)
Testing for multiple ```SIMD``` sizes# [๐ฅ With blocks: with my_struct(1) as v](tutorials/with-blocks-for-struct-parametric-minimal-raise.md)
with blocks from struct (parametric/minimal/raise)# [๐ (SPEED) Parametric struct through CPU registers](tutorials/parametric-struct-trough-cpu-registers.md)
the @register_passable decorator# [๐๏ธ getattr: dynamic and static struct members](tutorials/getattr-dynamic-and-static-struct-members.md)
the_instance.method_not_defined() handled# [๐คน making lists of structs with magic operators](tutorials/lists-of-structs-magic-operators-pre-lifetimes.md)
unsafe references abilities until lifetimes# ๐ซ [struct as a namespace (@staticmethod)](tutorials/struct-as-namespace.md)
example: wrap python functions# [๐ณ๏ธ make test builds using a custom flag](tutorials/make-test-builds-using-a-custom-flag.md)
mojo build program.mojo -D...# [๐ฏ๏ธ reader.read\[Int32,"swap"\](3) in 45 lines](tutorials/reader-in-few-lines-with-endian-ness.md)
v0.4.0: powerfull magic# [๐ฎ Autotune: optimization made easy](tutorials/autotune-optimize-by-search-and-benchmark.md)
Easy to use# [๐ฅ making compile time functions](tutorials/compile-time-functions.md)
Pointer[Int] of squared numbers# [๐งน ASAP: will call ```__del__``` when last used](tutorials/memory-asap-and-destructor-behaviours.md)
when do del get called on instance# [๐๏ธ moveinit ๐ฟ๐ฟ copyinit ๐ฟ๏ธ non-destructing move](tutorials/moveinit-copyinit-takeinit.md)
implement in struct: copy of instance, move, taking move# ๐ค [callbacks trough parameters](tutorials/callbacks-trough-parameters.md)
toy markdown generator as an example# [๐ 256Hz: simd cosine and plot it](tutorials/vectorise-simd-cosine.md)
one cycle by vectorizing simd instructions, plot with python# [๐ฆ env, argv and param_env (for alias)](tutorials/env-argv-param_env-for-parameters.md)
arguments: command-line, env, alias# [โจ๏ธ introduction to types](tutorials/introduction-to-types.md)
syntax and concepts: not complicated# [Try & Except: โ->โ ๏ธ->โ๏ธ->๐ฉน->๐ ](tutorials/try-and-except-errors-handling.md)
raise custom errors and recover (with example)# [๐ซ find out changes and improvements when there is a new update](tutorials/what-have-change-when-there-is-a-new-update.md)
changelogs for new comers