jmky
jmky
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 프로딩 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 Three chickens in the green bag 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
MModular
Created by TeamPuzel on 9/12/2023 in #questions
`llvm.add` is interpreted as `llvm.addrspacecast`
it is certainly very possible and a requirement to be able to cast an index to ui8. think about blockchain address that are exactly 20 bytes. many languages like rust, allows for dev to create types that are exactly 20 bytes and checks them at compile time
102 replies
MModular
Created by TeamPuzel on 9/12/2023 in #questions
`llvm.add` is interpreted as `llvm.addrspacecast`
yes u must check and also, there is no known way to raise compile time error
102 replies