jmky
MModular
•Created by jmky on 10/7/2024 in #questions
Is there a disdain for Rust from the Mojo team?
https://blog.rust-lang.org/2024/10/17/Rust-1.82.0.html
Rust is also a pragmatic language. You can now put the safe keyword in unsafe extern block so that your clients don't need to litter unsafe in their codes.
23 replies
MModular
•Created by jmky on 10/7/2024 in #questions
Is there a disdain for Rust from the Mojo team?
Don't you think so? But they have no qualms for
__moveinit__
, even __takeinit__
.23 replies
MModular
•Created by toasty on 5/12/2024 in #community-showcase
Prism: CLI Library (inspired by Golang's Cobra)
cool, in your description could you also elaborate on what Cobra is doing or more directly, what are you trying to accomplish?may not be easily appreciated by the majority who dont know what cobra is
6 replies
MModular
•Created by matthew on 2/14/2024 in #questions
Is Mojo a general-purpose language? Or an AI language?
Yes @DanteOz thank you for sharing the obvious. I had read the content in the link long ago and still don't really agree with the direction of not having private struct fields in Mojo despite being a low level language.
12 replies
MModular
•Created by matthew on 2/14/2024 in #questions
Is Mojo a general-purpose language? Or an AI language?
But then again, Mojo also aspires to me a low level system programming language.
It does not have private variables or visibility scoping.
I find it difficult to reconcile how would such a low level language be effective without this feature.
I guess at some point compromises have to be made between being compatible to Python and being a low level system programming language.
12 replies
MModular
•Created by JIMC on 12/4/2023 in #questions
Trying to do compile time checking with 'const' type arguments.
Hi @Alex Kirchhoff, this is on Mojo 0.6.0.
11 replies
MModular
•Created by david on 9/29/2023 in #questions
Will Mojo Metaprogramming support Lisp/Julia Style Macros?
i think mojo is supporting template metaprogramming
41 replies
MModular
•Created by JIMC on 10/15/2023 in #questions
`if` Statement doesn't work??? :astonished:
Good day to you sir, thank you for checking in with your colleagues on this - I think it's pretty groundbreaking with how Mojo allows for direct interfacing with MLIR and allows developers to go wild with more compile time programming 🚀
6 replies
MModular
•Created by JIMC on 10/15/2023 in #questions
`if` Statement doesn't work??? :astonished:
Thank you for your reply, that is an excellent explanation! I wonder how can one make use of IntLiteral to cast it into u69 at compile time then uses it at runtime with @nonmaterializable decorator.
6 replies
MModular
•Created by jmky on 10/17/2023 in #questions
How to trigger `cf.assert` MLIR operations?
@modularstaff
3 replies
MModular
•Created by jmky on 10/7/2023 in #questions
Const generics, a runtime or compile time construct?
@Jack Clayton Any answer?
2 replies
MModular
•Created by 뽀삐2 on 9/30/2023 in #questions
how to use async in mojo?
i think you need to do
await task()
5 replies
MModular
•Created by Helehex on 9/11/2023 in #questions
Running twice gives error
i love your impl of array
2 comments
1. maybe you might want to separate out _rc as a type itself, so it can be reused by others
2. might consider making it threadsafe
109 replies
MModular
•Created by ubj on 9/26/2023 in #questions
Timeline for C/C++ Interop, FFI
I think it is truly amazing with how you're aiming what Mojo can be.
1. Runtime interoperability with Python interpreter.
2. Compile time evaluation with
@parameter
, @nonmaterializable
and alias
.
3. First class support for interfacing with lower level IR entities like MLIR. And even lower level support for SIMD.
4. Making it memory-safe without putting too much burden on the engineer, without a garbage collector (or at least on the Mojo side, not on the Python interoperability), without a lifetime annotation hassle (actually, a mess 😆) and hopefully without the engineer to remember calling free
, lol.13 replies
MModular
•Created by ubj on 9/26/2023 in #questions
Timeline for C/C++ Interop, FFI
Hey Chris, real interesting to hear the work on traits. Will it be more similar to Rust's traits or Golang's interface? Both are very similar but I am hoping we can have compile time constants embedded in traits (i.e. Rust's traits), this saves a lot of time at defining a constant associated to a set of behaviours. 😁
13 replies
MModular
•Created by TeamPuzel on 9/12/2023 in #questions
`llvm.add` is interpreted as `llvm.addrspacecast`
oh theres a new update?
102 replies
MModular
•Created by Moosems / Three chickens on 9/20/2023 in #questions
Will Mojo be a multipurpose language?
Yes, it will replace Golang minimally
6 replies
MModular
•Created by TeamPuzel on 9/12/2023 in #questions
`llvm.add` is interpreted as `llvm.addrspacecast`
and if you do alias A: U8 = 4; you will see #lit.value{4} being passed into the constructor
102 replies
MModular
•Created by TeamPuzel on 9/12/2023 in #questions
`llvm.add` is interpreted as `llvm.addrspacecast`
you can check out the issue i raised
102 replies
MModular
•Created by TeamPuzel on 9/12/2023 in #questions
`llvm.add` is interpreted as `llvm.addrspacecast`
no, it is not interpreted as dynamic, it is a bug at the mlir level that the foldr optimization is not working for index type
102 replies