rd4com
MModular
•Created by rd4com on 10/18/2024 in #community-showcase
:hatching_chick: mojo-new-web-framework
Yes that's an amazing great idea !
8 replies
MModular
•Created by rd4com on 10/18/2024 in #community-showcase
:hatching_chick: mojo-new-web-framework
8 replies
MModular
•Created by aurelian on 10/19/2024 in #questions
why is this return a copy?
There is the manual (which is really good ❤️🔥): https://docs.modular.com/mojo/manual/values/lifetimes
39 replies
MModular
•Created by aurelian on 10/19/2024 in #questions
why is this return a copy?
@aurelian , there is a video that explains this:
https://www.youtube.com/watch?v=9ag0fPMmYPQ&ab_channel=Modular
39 replies
MModular
•Created by rd4com on 10/18/2024 in #community-showcase
:hatching_chick: mojo-new-web-framework
The idea is:
"The back-end and the front-end in the same structs!"
It works with
websockets
, a Dict
is on the server for visitors states,
that way, less complixity 👍
Doing it that way removes the need for creating rest API,
events are sent trough websockets, which is the session,
and server send a dom-tree as json then the browser just render it.8 replies
MModular
•Created by jmky on 10/7/2024 in #questions
Is there a disdain for Rust from the Mojo team?
It would not make sense to move lifetimes out of the parameter world,
because things can be parametrized on lifetime, and lifetimes can be parametrized.
As a superset of python, mojo have theses
[]
for generics(parametrization),
that's all there is to it really 👍23 replies
MModular
•Created by jmky on 10/7/2024 in #questions
Is there a disdain for Rust from the Mojo team?
23 replies
MModular
•Created by jmky on 10/7/2024 in #questions
Is there a disdain for Rust from the Mojo team?
It is just about parameters (you'll see as you read).
There is also that thing called progressive exposure to complexity,
i like that there is a progressive way of learning as you build/create,
and it requires consistent choices that makes sense:
(note how lifetimes are parameters, and how lifetimes can also be parametrized on mutability)
23 replies
MModular
•Created by Jack Clayton on 5/11/2024 in #community-showcase
Lightbug HTTP: Mojo web framework
70 replies
MModular
•Created by Jack Clayton on 5/11/2024 in #community-showcase
Lightbug HTTP: Mojo web framework
Working on it 🔥 ! already have the connection upgrade to
Would you mind if i PR a
websocket
and the ability to receive messages of all sizes !
It is quite difficult to implement all the features (fragments) and many things could raise.
Let's focus on an example that can do receive and send.
We might need to get on an audio conference and adapt it to lightbug 👍
Documentation:
https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_servers#the_websocket_handshake
Would you mind if i PR a
websocket.mojo
to lightbug in a work_in_progress folder?
(That way you can scavage the example and integrate to lightbug)70 replies
MModular
•Created by Jack Clayton on 5/11/2024 in #community-showcase
Lightbug HTTP: Mojo web framework
There is a great test suite to test websocket implementations:
https://github.com/crossbario/autobahn-testsuite/
The list of projects and users that used it is impressive 👍
(ping to @a2svior)
70 replies
MModular
•Created by Helehex on 8/5/2024 in #community-showcase
Thermo
+1 for undefined behaviours of globals, chased a bug:
.value() on empty optional
60 replies
MModular
•Created by Jack Clayton on 5/11/2024 in #community-showcase
mojo-ui-html: UI, HTML, CSS
✅ Add imports, small fixes and
MutableLifetime
to various widgets
👍 mojo nightly 2024.8.1517
:mojonightly:4 replies
MModular
•Created by rd4com on 8/2/2024 in #community-showcase
🔥🎨🎛 mojo_neovim_theme_app
✅ Add imports to reflect mojo nightly
mojo 2024.8.1517
3 replies
MModular
•Created by Jack Clayton on 5/11/2024 in #community-showcase
Lightbug HTTP: Mojo web framework
Hello,
SSE(server sent event) can be an easy to use alternative to websockets until it gets implemented with async await:
https://www.pubnub.com/guides/server-sent-events/
It basically upgrade an http get request into a single-way stream.
The server first set the header to "text/event-stream.", then the socket is stored into an array.
Whenever the server need to send data, it just write to the socket 👍
On the browser-side, a simple js callback is set for whenever an event is received.
This is particularly useful for 2D games in the browser, but also for your AI ui's !
The advantage is that it has way less complexity than websockets.
If there are 10 visitors, it is as easy as looping an array and sending data (usually json).
Because the socket stays open, it can be used as an session too.
(ping to @a2svior)
70 replies
MModular
•Created by PavanMV on 7/29/2024 in #questions
Working LinkedList using pointers
It could be a good idea to sort of do it again (re put-together the parts),
and each time before adding the next feature/part, make sure that the tests passes 👍
That way you'll catch and fix the 'bugs' as they come and it is easier to think.
4 replies
MModular
•Created by PavanMV on 7/29/2024 in #questions
Working LinkedList using pointers
Hello @PavanMV , the current
__moveinit__
implementation does not free existing.data
yet
(remember, you move what is in some place, to another place, have to free the previous space)
4 replies
MModular
•Created by Jack Clayton on 5/11/2024 in #community-showcase
mojo-ui-html: UI, HTML, CSS
Hello, i'm super happy to announce that:
🆕 The repo now has a nightly branch!
It serves as the dev branch and is developped using mojo nightly :mojonightly: .
Some changes:
-
Reference
instead of UnsafePointer
🎉
Enjoy!4 replies
MModular
•Created by Jack Clayton on 5/11/2024 in #community-showcase
Mojo Learning
New small tutorial:
SIMD
is a type, with methods
and operators
!
https://github.com/rd4com/mojo-learning/blob/main/tutorials/simd-is-a-type-with-methods-and-operators.md3 replies