Ryulord
Ryulord
MModular
Created by Shubham on 10/29/2024 in #questions
Using Mojo For Back-end Web Development
You probably wanna check out lightbug https://github.com/saviorand/lightbug_http
5 replies
MModular
Created by aurelian on 10/20/2024 in #questions
why does this String init work without len?
it expects your buffer to be null terminated so if you don't provide a length then it can just scan for the first null to figure out the length itself
52 replies
MModular
Created by Martin Dudek on 10/18/2024 in #questions
List of references in Mojo
The Reference type is usable but still kinda a pain. Arc is also an option
8 replies
MModular
Created by Martin Dudek on 10/18/2024 in #questions
List of references in Mojo
I think you might just want a List[List[Int]]
8 replies
MModular
Created by banananas on 9/25/2024 in #questions
Assigning additional traits to Variants
Adding methods to existing types is a planned feature but not here yet so for now you'll have to do the wrapper type approach as previously mentioned or just make a standalone function
6 replies
MModular
Created by banananas on 9/23/2024 in #questions
Is there a Struct type or something similar?
since that basically is all it would be doing
21 replies
MModular
Created by banananas on 9/23/2024 in #questions
Is there a Struct type or something similar?
I don't think you actually want variant to conditionally conform to every trait. I think that would be better served with dynamic polymorphism when we eventually get it
21 replies
MModular
Created by banananas on 9/23/2024 in #questions
Is there a Struct type or something similar?
not too surprising since it's variant so it would need to conditionally conform to everything
21 replies
MModular
Created by banananas on 9/23/2024 in #questions
Is there a Struct type or something similar?
I guess that technically works for a list but doesn't for set since it isn't hashable
21 replies
MModular
Created by banananas on 9/23/2024 in #questions
Is there a Struct type or something similar?
if you mean something like my_list = List(Int, Float64, Point2d) then this isn't possible atm but I would also like to see it
21 replies
MModular
Created by randomasiandude on 9/19/2024 in #questions
Segmentation Fault Core dumped
they're not currently supported and the segfault on attempting to use one is a known bug. There probably should be a warning from the lsp and a mention in the 'sharp edges' page
25 replies
MModular
Created by Peter Homola on 9/17/2024 in #community-showcase
Mojo web apps
you should check out lightbug if you haven't already. You can also use external_call to bind the libc socket functions and just do everything from scratch.
7 replies
MModular
Created by Khaled M' on 4/1/2024 in #questions
Does anyone think Mojo could be great for Game Development?
The problem is that GPUs still have a bunch of fixed function hardware for certain parts of the graphics pipeline that isn't usable with GPGPU tools. I would love to see Mojo support that somehow in the future but right now a shader based rendering approach will have significantly worse performance than a proper graphics API. I just started playing around with some vulkan bindings the other night. Will let everyone know if I come up with a nice to use interface because yeah, it's definitely "C programmer brained" in its design
84 replies
MModular
Created by Tom Gale on 9/9/2024 in #community-showcase
mo3d: 3D library for Mojo
Nice! You may also want to check out these sdl bindings as they're a little bit more up to date than msteele's (I also found theirs very helpful for getting started) https://github.com/Ryul0rd/sdl-bindings
23 replies
MModular
Created by Khaled M' on 4/1/2024 in #questions
Does anyone think Mojo could be great for Game Development?
I don't think there is natively but there must be a way to do it in C so you could use C bindings
84 replies
MModular
Created by Khaled M' on 4/1/2024 in #questions
Does anyone think Mojo could be great for Game Development?
yeah, Mojo also appealed to me as "python but I can just ship a binary like a real language"
84 replies
MModular
Created by Khaled M' on 4/1/2024 in #questions
Does anyone think Mojo could be great for Game Development?
If large studios do start adopting it it probably wouldn't be through unity/unreal. Apparently there have already been 1 or 2 big studios that made in house engines in Rust so I imagine something similar would happen if Mojo became popular in AAA
84 replies
MModular
Created by Khaled M' on 4/1/2024 in #questions
Does anyone think Mojo could be great for Game Development?
just because unreal and unity are the big two engines doesn't mean they need to adopt mojo for it to see success. It could be adopted by Godot (seems very likely even due to their plugin system) which is getting more popular, there could be a new engine written from scratch in Mojo that gets popular, or there could be a new engine written from scratch in Mojo that never gets popular but is still a good engine that is worth using (popular != good)
84 replies
MModular
Created by Tyoma Makeev on 9/8/2024 in #questions
What's the thing with global variables?
6 replies
MModular
Created by cirqol on 9/8/2024 in #questions
Just learn Mojo?
If you're trying to land a job or even just be productive Python is very much still the way to go for now. If you're just trying to learn though building everything from scratch in Mojo is a great way to do that
4 replies