mad alex 1997
MModular
•Created by mad alex 1997 on 10/14/2024 in #community-showcase
Numojo V0.3 Update to Mojo 24.5, and a couple new features.
Patch update V0.3.1 to fix some issues with matmul and clean up internal slicing interfaces.
4 replies
MModular
•Created by mad alex 1997 on 10/14/2024 in #community-showcase
Numojo V0.3 Update to Mojo 24.5, and a couple new features.
Sure.
4 replies
MModular
•Created by mad alex 1997 on 8/28/2024 in #community-showcase
NuMojo V0.2 Release: Simplified Type Handling, New Features, and Enhanced Compatibility
That has been what I have been doing, apparently there are some issues with slices from mojopkgs on Mac computers.
5 replies
MModular
•Created by Aloysius on 7/6/2024 in #community-showcase
Monte Carlo 3x Speedup
I think
looks better than
and it lets you set variable types without initializing
23 replies
MModular
•Created by mad alex 1997 on 7/3/2024 in #community-showcase
NuMojo’s got NDArrays! 🥳
For more information and some examples check out Our Benchmarks and Examples Repo.
This update is just the beginning, PRs, and feature requests are welcome. If you would like to join our little team we also have a discord server which can be found on our GitHub (the bot doesn't like the links).
5 replies
MModular
•Created by tkeitt on 6/16/2024 in #questions
Parameterized function definitions in traits
The main limitations of trait that I have run into are you can't parameterize at the trait level
trait ball[color:Color]:
, nor can you require fields to exist in conformant structs.7 replies
MModular
•Created by tkeitt on 6/16/2024 in #questions
Parameterized function definitions in traits
Yes. Here is an example https://github.com/Mojo-Numerics-and-Algorithms-group/NuMojo/blob/main/numojo/traits/backend.mojo.
7 replies
MModular
•Created by Anindya on 6/14/2024 in #questions
How to declare a function type in a trait?
Technically if you are willing to do something verbose and your functions don't need parameters (I'll put in a bug report for it tomorrow) only arguments.
10 replies
MModular
•Created by Anindya on 6/14/2024 in #questions
How to declare a function type in a trait?
Not without doing something weird, strong typing is a double edged sword.
10 replies
MModular
•Created by mad alex 1997 on 6/1/2024 in #community-showcase
NuMojo Moved into a GitHub Organization Updated to Include access to different backends
Nevermind, I found it.
7 replies
MModular
•Created by Anindya on 6/14/2024 in #questions
How to declare a function type in a trait?
You have to set the type to match the function signature. And Fn functions must explicitly return there type.
But this makes for an inflexible
_hello
function as now it must return None.10 replies
MModular
•Created by mad alex 1997 on 6/1/2024 in #community-showcase
NuMojo Moved into a GitHub Organization Updated to Include access to different backends
Is tkeitt also your github username?
7 replies
MModular
•Created by mad alex 1997 on 6/1/2024 in #community-showcase
NuMojo Moved into a GitHub Organization Updated to Include access to different backends
If you want to take charge of mojosci (or a Scipy-like library regardless of the name) but put it under the Mojo Numerics and Analysis group (there are 3 active developers including myself at the moment) we could add that repository to the group and feed back and forth between the libraries as one or the other makes improvements.
I was actually thinking about splitting into several libraries anyway now that we are planning to make and maintain our own array type, as I think SciPy has too large of a scope by itself let alone when combined with numpy.
7 replies
MModular
•Created by Sagi on 5/25/2024 in #questions
math.atan funtion not working on compile time
Well I have been thinking about getting a Phd in Applied and Computational Mathematics, maybe I'll get around to it eventually.
22 replies
MModular
•Created by Sagi on 5/25/2024 in #questions
math.atan funtion not working on compile time
acos
, asin
have limited domains on real numbers, and atan
approaches pi/2
beyond a certain distance from 0. tan
is arguably the monster of the standard trig functions becuase sin
and cos
can just be scaled into and then back out of its proper domain. But I guess I see your point, probably bigger than a side project. I can deal with slightly slower but proven algos in exchange for avoiding the headache.22 replies
MModular
•Created by Sagi on 5/25/2024 in #questions
math.atan funtion not working on compile time
I'll try a bunch of stuff, in the end it comes down to accuracy vs number of operations, and Taylor series do have a bunch of operations but I can already think of ways to condense them.
22 replies
MModular
•Created by Sagi on 5/25/2024 in #questions
math.atan funtion not working on compile time
Also those n values are guesses I haven't done the math for actually matching precision.
22 replies
MModular
•Created by Sagi on 5/25/2024 in #questions
math.atan funtion not working on compile time
It's more of an "I feel like I might be able write something faster", they are respectably fast (on the order of 10 nsec) for the individual with a decent SIMD scaling, but I would guess that they are using a type independent approximation that is viable for 64bit float at least if not higher. Rather than having type-dependent approximations such as Taylor expansions of n = 6, 10 and 14 for 16, 32, and 64 bit floats respectively.
In other words as a numerics library author, and someone who is focused on making it fast, there might be tradeoffs that I am willing to make (essentially having exactly the level of precision allowed by a type) that modular isn't.
When they open the math library I will probably contribute, and see if we can get more of the math in Mojo.
22 replies