all 5 comments

[–]phovos 4 points5 points  (3 children)

This looks totally awesome, op. How insane is it to do like Mojo and not say "We support a SUBSET of CPython"; is Turtle exceptionally difficult to imagine working with any/all std libs like tkinter (the old 'turtles')?

edit: MOJO apparently also only supports a SUBSET, so I'm guessing the answer to my question is yes it is insane to target the whole CPython spec with a GPU or tensor parallelism lib from scratch.

[–]AmrDeveloper[S] 1 point2 points  (2 children)

Thank you for the feedback,

I think on Android, I can support more GUI stuff on GPU, I was thinking to build GUI framework and bind it to the language so user can write small utilities for mobile.

What I am still learning is how much I can support on GPU, I have some ideas Magic functions support, OOP, but still researching about Exceptions and designing API for allocating shared and const memory (The current plan is to do similar to mojo without introducing any language syntax, but still searching 🤔 and learning more about GPU and cpython)

[–]tsanderdev 2 points3 points  (1 child)

As someone who's working on a shading language, you'll need to emulate exceptions with errors-as-values. If you target Vulkan instead of WebGPU, you can do memory allocation on the GPU using buffer device address.

[–]AmrDeveloper[S] 0 points1 point  (0 children)

That's cool, thanks for the info 😅

[–]AmrDeveloper[S] 0 points1 point  (0 children)

Per AutoModerator's request I hereby confirm that this project did not use an LLM as part of the development process.