Jabadahut50
Jabadahut50
MModular
Created by Hasan Yousef on 9/21/2024 in #questions
Compile to Shared Library
If you mean shared Objects then yeah I asked this question before to which the answer is Yes but it's not actually properly supported and will likley be broken in the future... if instead you mean just a library to use in other projects then yes AND it's supported and documented under these two links https://docs.modular.com/mojo/cli/package https://docs.modular.com/mojo/manual/packages
6 replies
MModular
Created by Hasan Yousef on 9/17/2024 in #questions
Example of parallel computing
miss post my apologies.. not sure how that happened
8 replies
MModular
Created by Jabadahut50 on 9/12/2024 in #questions
Shared Object Support?
the thing i've always wondered is everytime I read about the actor model everyone says "It eliminates race conditions" but if you're doing a multicore work stealing architecture wouldn't you potentially run into message appending as a race condition?
29 replies
MModular
Created by Jabadahut50 on 9/12/2024 in #questions
Shared Object Support?
a fair point... it'll require extra work but I think a work stealing scheduler is probably the better option
29 replies
MModular
Created by Jabadahut50 on 9/12/2024 in #questions
Shared Object Support?
I planned on having a dedicated thread for scheduling.
29 replies
MModular
Created by Jabadahut50 on 9/12/2024 in #questions
Shared Object Support?
yeah Owen mentioned the idea of Shared IPC's which is a possibility but I worry how much ram it might eat doing all the runners as individual processes
29 replies
MModular
Created by Jabadahut50 on 9/12/2024 in #questions
Shared Object Support?
so update... there IS a way to do shared objects... it's just an undocumented feature (aka they may make breaking changes to it so they don't want anyone relying on it incase it breaks later as Mojo is taking the rust approach to backwards compatibility)
29 replies
MModular
Created by Jabadahut50 on 9/12/2024 in #questions
Shared Object Support?
oooh now i'm even more impatiantley waiting XD
29 replies
MModular
Created by Jabadahut50 on 9/12/2024 in #questions
Shared Object Support?
That could work... guess I'll be waiting for that then. Appreciate it.
29 replies
MModular
Created by Jabadahut50 on 9/12/2024 in #questions
Shared Object Support?
@Owen Hilyard follow up question... is there per chance a way to compile mojo to MLIR bytecode? The bytecode format is fairly well documented and I know MOJO gets compiled down to MLIR before machine language anyway... and while i'd prefer compiled machine code, creating a bytecode interpreter could be another way of getting the functionality I want without too much performance sacrifice?
29 replies
MModular
Created by Jabadahut50 on 9/12/2024 in #questions
Shared Object Support?
Shared memory IPC could work but that'd be a LOT of individual processes. I feel like it'd eat a lot of RAM. May just have to wait for some updates or something if I can't figure out a different way to do it.
29 replies
MModular
Created by Jabadahut50 on 9/12/2024 in #questions
Shared Object Support?
Ah damn. My project in mind was to reimplement Erlang's BEAM engine in MOJO but in native compiled MOJO rather than on a VM. The shared objects idea was to make hot swap-ability of code viable. Back to the drawing board to figure out something else then XD. Thanks @Owen Hilyard
29 replies
MModular
Created by Khaled M' on 4/1/2024 in #questions
Does anyone think Mojo could be great for Game Development?
Never worked with Metal but it wouldn't super surprise me being easier to use than Vulkan. It's a much more modern API. I personally would like to see web gpu take off more.
84 replies
MModular
Created by Khaled M' on 4/1/2024 in #questions
Does anyone think Mojo could be great for Game Development?
well vulkan is an extremley low level and incredibly deep/powerful API so it's to be expected to some extent
84 replies
MModular
Created by Khaled M' on 4/1/2024 in #questions
Does anyone think Mojo could be great for Game Development?
there is that python wrapper for vulkan library... could always abstract that (where it isn't going to horribly affect performance by doing so) Mojo bieng a superset of python which itself is super interoperable with C is such a nice feature honestly
84 replies
MModular
Created by Khaled M' on 4/1/2024 in #questions
Does anyone think Mojo could be great for Game Development?
infact speak of the devil XD https://discordapp.com/channels/1087530497313357884/1282705421425049622/1282705421425049622 That bieng said these are SDL bindings as well for now as opposed to pure ground up mojo but it's a step in that direction
84 replies
MModular
Created by Khaled M' on 4/1/2024 in #questions
Does anyone think Mojo could be great for Game Development?
DX12 and Vulkan are powerful but they do be kinda crap to work with. I will say, if the GPGPU stuff for max turns out how I expect it to... we might see a python first API for working with graphics pop up written entirley in mojo
84 replies
MModular
Created by cirqol on 9/8/2024 in #questions
Just learn Mojo?
as a superset (or at least a WIP one) of python. Mojo isn't so much standalone from Python as it is an extension of it much akin to typescript/javascript. So yeah you'll need to learn python first... trust me... i've also always been of the opinion that python was not my cup of tea but i'm learning to stomach and even enjoy it in order to further learn mojo. Knowing python well makes it much easier to convert python packages to pure mojo and you'll better know where to look for performance bottle necks and how to rewrite them for mojo. On the plus side... you get from python to mojo levels pretty quickly... as python is super easy to learn especially if you already have programming experience in other languages.
4 replies
MModular
Created by Khaled M' on 4/1/2024 in #questions
Does anyone think Mojo could be great for Game Development?
Mojo is one of the newest languages on the block, isn't fully at a 1.0 status, and yet already has a decent following. Give it time and im sure it will pick up even more popularity. A high quality game engine could help boost its popularity which would then boost the engines popularity and so on. I dunno if you can dethrone Unreal as the go to for AAA games but id argue godot shows there's always room in the Indie industry.
84 replies
MModular
Created by samufi on 8/2/2024 in #questions
How can I write asynchronous code?
Async will run when it get's all the things it is waiting on and get's an opening on a singular thread. So awaiting a function means that it will wait to continue until the function it is awaiting has completed and returned, then it will take the return and finish its own work.
11 replies