rd4com
rd4com
MModular
Created by Jack Clayton on 5/11/2024 in #community-showcase
Lightbug HTTP: Mojo web framework
🥳 here is the commit: https://github.com/saviorand/lightbug_http/pull/54 (send receive upgrade)
57 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 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)
57 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)
57 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
50 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)
57 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)
#current implementation
fn __moveinit__(inout self, owned existing:Self):
self = Self()
self.data = self.data.alloc(1)
move_pointee(src=existing.data, dst=self.data)
self.next_ptr = existing.next_ptr
self.prev_ptr = existing.prev_ptr
#need to free existing.data
#current implementation
fn __moveinit__(inout self, owned existing:Self):
self = Self()
self.data = self.data.alloc(1)
move_pointee(src=existing.data, dst=self.data)
self.next_ptr = existing.next_ptr
self.prev_ptr = existing.prev_ptr
#need to free existing.data
4 replies
MModular
Created by rd4com on 8/2/2024 in #community-showcase
🔥🎨🎛 mojo_neovim_theme_app
No description
3 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
3 replies
MModular
Created by rd4com on 6/19/2024 in #community-showcase
🦺 mojo_dev_helper
Nice, glad you both like it !
5 replies
MModular
Created by MRiabov on 6/11/2024 in #questions
Google TPUs with Mojo language?
@MRiabov , That is a super good question and it probably has a positive answer, see https://www.modular.com/blog/max-is-here-what-does-that-mean-for-mojo Wait for an answer of an official modular person, pretty sure they'll help you archieve your goal in a very performant manner. (ping to @Jack Clayton ) Mojo was created to solve theses deployment challenges, Max is probably state of the art when it comes to ease of use and performance.
8 replies
MModular
Created by Jack Clayton on 5/11/2024 in #community-showcase
Feedback on new #community channel
good idea!! it is great that people can give feedback, suggestion, ask questions and participate, thanks
10 replies
MModular
Created by Mr J on 10/1/2023 in #questions
GUI libraries
@orangepi nice! i really look forward to having fun with your gui ! how is it going ?
35 replies
MModular
Created by Mr J on 10/1/2023 in #questions
GUI libraries
Hello, it is possible to import_package from python; for example, this package will run, i tested this integration: https://github.com/pyimgui/pyimgui/blob/master/doc/examples/integrations_glfw3.py
35 replies
MModular
Created by James Usevitch on 12/5/2023 in #questions
Documentation for @staticmethod decorator
In the new doc there are mention of it there: https://docs.modular.com/mojo/manual/lifecycle/life.html , but i don't see it mentioned in the struct page
6 replies
MModular
Created by James Usevitch on 12/5/2023 in #questions
Documentation for @staticmethod decorator
It is quite nice to act as a namespace, in addition, traits can require staticmethod: https://docs.modular.com/mojo/manual/traits.html#traits-can-require-static-methods
6 replies
MModular
Created by James Usevitch on 12/5/2023 in #questions
Documentation for @staticmethod decorator
Hello, here is a nice explanation: https://docs.modular.com/mojo/programming-manual.html#types-that-cannot-be-instantiated (depreciated programming manual)
6 replies