sb
MModular
•Created by Noam Y on 12/10/2024 in #questions
When can we expect gpu kernels in mojo?
Hi @Noam Y, no exact release date has been specified. We think an announcement (that is on the calendar) within the next couple weeks is for GPU, but can't say for sure.
4 replies
MModular
•Created by Tyler Hillery on 12/4/2024 in #questions
1 Billion nested loop iterations Mojo Implementation - seeking feedback
And a bench that relies on compilers recognizing different levels of the 99.99+% of work it's doing can be thrown away feels disingenuous in that light
67 replies
MModular
•Created by Tyler Hillery on 12/4/2024 in #questions
1 Billion nested loop iterations Mojo Implementation - seeking feedback
My worry is that people are, since I've seen this particular bench making the rounds in a bunch of places without much critical discourse
67 replies
MModular
•Created by Tyler Hillery on 12/4/2024 in #questions
1 Billion nested loop iterations Mojo Implementation - seeking feedback
The reason I brought it up was that it's like judging the critical thinking skills of a person based on a single answer they give to a question on Jeopardy--it's a scenario that has some very specific "step" tricks that don't necessarily generalize well and aren't really representative of the overall in-practice effectiveness of the compilers/interpreters tested. That algo from above is just an extreme example to show that.
67 replies
MModular
•Created by Tyler Hillery on 12/4/2024 in #questions
1 Billion nested loop iterations Mojo Implementation - seeking feedback
Compilers can, and do, do algorithmic transformations fwiw. A lot of the "magic" of compilers is just matching on idioms/patterns and doing templated replacement
67 replies
MModular
•Created by Tyler Hillery on 12/4/2024 in #questions
1 Billion nested loop iterations Mojo Implementation - seeking feedback
I should close some tabs, it might have been swapping while it was running 😬 /s
67 replies
MModular
•Created by Tyler Hillery on 12/4/2024 in #questions
1 Billion nested loop iterations Mojo Implementation - seeking feedback
it's a modulo so we're just integrating across a sawtooth fn :)
67 replies
MModular
•Created by Tyler Hillery on 12/4/2024 in #questions
1 Billion nested loop iterations Mojo Implementation - seeking feedback
(yes this is operationally equivalent, it is also why we haven't tried opening a PR because it sorta mocks the benchmark itself)
67 replies
MModular
•Created by Tyler Hillery on 12/4/2024 in #questions
1 Billion nested loop iterations Mojo Implementation - seeking feedback
(also this is on m1, so may be slow for them)
67 replies
MModular
•Created by Tyler Hillery on 12/4/2024 in #questions
1 Billion nested loop iterations Mojo Implementation - seeking feedback
67 replies
MModular
•Created by Tyler Hillery on 12/4/2024 in #questions
1 Billion nested loop iterations Mojo Implementation - seeking feedback
@Owen Hilyard has one, some updates:
67 replies
MModular
•Created by Khebabchi | خبابشي on 11/24/2024 in #questions
does mojo have access modifiers
mood, on both
87 replies
MModular
•Created by Khebabchi | خبابشي on 11/24/2024 in #questions
does mojo have access modifiers
I get bonked with "YAGNI" with frequency at work from having that impulse too
87 replies
MModular
•Created by Khebabchi | خبابشي on 11/24/2024 in #questions
does mojo have access modifiers
Eh, dev time isn't free, and often silicon (even unused) is "cheaper"
87 replies
MModular
•Created by Khebabchi | خبابشي on 11/24/2024 in #questions
does mojo have access modifiers
the former can enable the latter, IME
87 replies
MModular
•Created by Khebabchi | خبابشي on 11/24/2024 in #questions
does mojo have access modifiers
Proper encapsulation was a hard-fought win that came out of not being able to wrangle discipline out of people writing assembly, C, Fortran, etc
Scripting/interpreted languages were initially seen as "glue" code where your codebases wouldn't really get large enough for it to be necessary, but especially with Mojo I don't think we can assume codebases+deps will stay "tiny" any more than we could rightly assume that about Python
87 replies
MModular
•Created by Khebabchi | خبابشي on 11/24/2024 in #questions
does mojo have access modifiers
I've also seen some horrible sins committed in C along similar tracks
87 replies
MModular
•Created by Khebabchi | خبابشي on 11/24/2024 in #questions
does mojo have access modifiers
I speak of two ends of the spectrum:
Python (prior job, plus aforementioned DTS)
Hand written assembly (current job)
87 replies
MModular
•Created by Khebabchi | خبابشي on 11/24/2024 in #questions
does mojo have access modifiers
@Owen Hilyard I feel like you probably have seen similar in DTS?
87 replies
MModular
•Created by Khebabchi | خبابشي on 11/24/2024 in #questions
does mojo have access modifiers
This might just be a result of different experiences, but access modifiers would have prevented some horrible abuses I've seen in codebases over my current and previous job
87 replies