szmer
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Maven (famous)@lemmy.world to Programmer Humor@lemmy.ml · 2 years ago

STOP WRITING C

lemmy.world

message-square
141
fedilink
757

STOP WRITING C

lemmy.world

Maven (famous)@lemmy.world to Programmer Humor@lemmy.ml · 2 years ago
message-square
141
fedilink
  • NotMelon@lemmy.world
    link
    fedilink
    arrow-up
    49
    ·
    2 years ago

    Let’s rewrite Linux kernel in Python

    • CaptainProton@lemmy.world
      link
      fedilink
      English
      arrow-up
      20
      ·
      2 years ago

      Nobody’s built a supercomputer powerful enough to run a python version of even Linux Lite Edition.

      • WhiskyTangoFoxtrot@lemmy.world
        link
        fedilink
        arrow-up
        27
        ·
        2 years ago

        Redstone it is, then.

      • Blisterexe@lemmy.zip
        link
        fedilink
        arrow-up
        7
        ·
        2 years ago

        I mean, someone made a barebones Linux work in scratch

        • CaptainProton@lemmy.world
          link
          fedilink
          English
          arrow-up
          5
          ·
          2 years ago

          Like… Kernel written in scratch?

          • CrayonMaster@midwest.social
            link
            fedilink
            English
            arrow-up
            12
            ·
            edit-2
            2 years ago

            Holy fuck yeah

          • Blisterexe@lemmy.zip
            link
            fedilink
            arrow-up
            3
            ·
            2 years ago

            Yeah, it uses Ed as it’s text editor

    • Jordan_U@lemmy.ml
      link
      fedilink
      arrow-up
      19
      ·
      edit-2
      2 years ago

      Fun fact!

      The Asahi Linux drivers for the Apple M1 GPU were originally written in Python: https://asahilinux.org/2022/11/tales-of-the-m1-gpu/

      GPU drivers in Python?!

      Since getting all these structures right is critical for the GPU to work and the firmware to not crash, I needed a way of quickly experimenting with them while I reverse engineered things. Thankfully, the Asahi Linux project already has a tool for this: The m1n1 Python framework! Since I was already writing a GPU tracer for the m1n1 hypervisor and filling out structure definitions in Python, I decided to just flip it on its head and start writing a Python GPU kernel driver, using the same structure definitions. Python is great for this, since it is very easy to iterate with! Even better, it can already talk the basic RTKit protocols and parse crash logs, and I improved the tools for that so I could see exactly what the firmware was doing when it crashes. This is all done by running scripts on a development machine which connects to the M1 machine via USB, so you can easily reboot it every time you want to test something and the test cycle is very fast!

    • sag@lemm.ee
      link
      fedilink
      arrow-up
      14
      ·
      2 years ago

      No in JavaScript

      • kevincox@lemmy.ml
        link
        fedilink
        arrow-up
        3
        ·
        2 years ago

        The prophets have foretold it: https://www.destroyallsoftware.com/talks/the-birth-and-death-of-javascript

    • gigachad@feddit.de
      link
      fedilink
      arrow-up
      6
      arrow-down
      1
      ·
      2 years ago

      Yes and let us build the environment with conda, it’s going to be a fun time!

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 39 users / day
  • 363 users / week
  • 1.86K users / month
  • 7.39K users / 6 months
  • 42 local subscribers
  • 38.9K subscribers
  • 2.02K Posts
  • 38.7K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.6
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org