rd4com
MModular
•Created by Jack Clayton on 5/11/2024 in #community-showcase
Lightbug HTTP: Mojo web framework
204 replies
MModular
•Created by Jack Clayton on 5/11/2024 in #community-showcase
Lightbug HTTP: Mojo web framework
I think it is possible to add an HTTP header that specify that the cache should expire after a certain amount of time 👍
204 replies
MModular
•Created by Jack Clayton on 5/11/2024 in #community-showcase
Lightbug HTTP: Mojo web framework
There is github desktop and sublime merge for easy gui git works if needed
204 replies
MModular
•Created by Jack Clayton on 5/11/2024 in #community-showcase
Lightbug HTTP: Mojo web framework
Hello, simple checkbox with emoji's if needed:
(ping to @carlcaulkett)
204 replies
MModular
•Created by rd4com on 10/18/2024 in #community-showcase
:hatching_chick: mojo-new-web-framework
Hello Carl! they are differents (for differents uses) and will exist on separate repos 👍
For example ui-html is easy and can be just "buttons a loop" but is for a single user app,
the other (this one) is more for classes ("components") to compose larger things but is for multiple separate users,
each users have a live connection (with websockets) and their own states (instances of structs).
It is a little bit like a web framework with the states on the server.
I'd like to keep ui-html self contained with zero dependencies so people can do anything with it,
for the other one, not sure yet but i thought about it too (🥳 lightbug backend) 👍
One of the big idea for what i'd like it to be, is to move from PythonObject to Object eventually !
10 replies
MModular
•Created by Tyler Hillery on 12/4/2024 in #questions
1 Billion nested loop iterations Mojo Implementation - seeking feedback
There is also the Advent of Code in mojo if you'd like to continue 👍
#advent-of-code-2024
67 replies
MModular
•Created by Manuel Saelices on 11/28/2024 in #questions
Passing method references to high-order functions
Hello @Manuel Saelices, here is an example with parameters:
8 replies
MModular
•Created by christian_drake on 12/4/2024 in #questions
Help I have skill issues
Hello, here is an additional way:
Note: Documentation: random for more functions
(
rand
and randn
for different distributions (normal/uniform), for example)22 replies
MModular
•Created by rd4com on 10/18/2024 in #community-showcase
:hatching_chick: mojo-new-web-framework
Yes that's an amazing great idea !
10 replies
MModular
•Created by rd4com on 10/18/2024 in #community-showcase
:hatching_chick: mojo-new-web-framework
![No description](https://cdn.answeroverflow.com/1299053125490966558/Screenshot_from_2024-10-24_18-37-22.png)
10 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.10 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
204 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)204 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)
204 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