Mojo the BLOAT!!! | A Glimpse of Mojo

Поделиться
HTML-код
  • Опубликовано: 18 янв 2025

Комментарии • 64

  • @melodyogonna
    @melodyogonna 3 месяца назад +14

    Mojo errors are values, try/except is a syntax sugar.
    When you take an owned argument a copy is not made if the value is not used by the caller again.

    • @cheesed_up
      @cheesed_up  3 месяца назад +5

      Didn't know about the try-catch being sugar - thanks.
      I thought I said in the video that if no one uses the variable after it's taken by the function, the copy is not made. Looks like I wasn't clear enough :)

  • @xanderplayz3446
    @xanderplayz3446 3 месяца назад +4

    1:03 Wait, is that a Portal 2 Extras video at the top-right?

    • @cheesed_up
      @cheesed_up  3 месяца назад +2

      I have no idea. But it looks like it could be :)

  • @alfredgreem6872
    @alfredgreem6872 3 месяца назад +11

    Mojo the bloat

  • @thisisryker
    @thisisryker 15 дней назад

    So it’s basically swift with a new compiler ?

  • @_jelle
    @_jelle Месяц назад +1

    Not implementing concurrecy from the start might become problematic, since adding concurrecy to an existing codebase can be a real nightmare

    • @cheesed_up
      @cheesed_up  Месяц назад +1

      I generally agree, but on the other hand, they probably know more about that than I do :)

  • @empathy_monster
    @empathy_monster 3 месяца назад +7

    I'm really looking forward to Mojo as an alternative to Rust for general purpose. Also, I think the compiler team plans on implementing linear types.

  • @technichron
    @technichron Месяц назад

    MLIR is more about lowering a language in refined steps, and doing more optimizations and analysis on the high level representations. With LLVM, it's analysis passes had to try to identify high level language constructs and optimize them /through/ the low level IR, whereas MLIR offers a framework to do these optimizations and analysis on high level constructs directly

  • @4lxprime730
    @4lxprime730 2 месяца назад +1

    The video was amazing, thanks!

  • @familyshare3724
    @familyshare3724 2 месяца назад

    Zig error handling would be great

  • @ollicron7397
    @ollicron7397 2 месяца назад +1

    Thats why Nim is the best language.

    • @cheesed_up
      @cheesed_up  2 месяца назад

      I have to look at Nim at some point!

    • @vncstudio
      @vncstudio 2 месяца назад

      @@cheesed_up Nim is excellent and very fast with excellent C and Python integration. The compiler architecture is being advanced after the recent release of version 2.2.0

    • @GuiseppeZanotta
      @GuiseppeZanotta 2 месяца назад +1

      Its really not though. Thats like saying OpenBSD is the best OS, yeah for like the 8 people using it 7 of which are its maintainers. NIM is utterly worthless and useless in the grand scheme of things. It's all about positioning and driving industry adoption.

  • @Garfield_Minecraft
    @Garfield_Minecraft 2 месяца назад +1

    it feels kinda the same as python. it's just not much different for what I'm doing

  • @richardbennett4365
    @richardbennett4365 3 месяца назад +1

    Perhaps his next language will be the python-like Codon. Maybe it's better than Mojo. 🔥

    • @cheesed_up
      @cheesed_up  3 месяца назад

      Codon looks like an interesting project, thanks for sharing. However, the way I see it is it's just an implementation of Python, whereas Mojo is basically a different language, that happens to share the Python's syntax.
      Codon looks promising too!

    • @xanderplayz3446
      @xanderplayz3446 3 месяца назад

      @@cheesed_upYou should also try out Ocen. It’s very new, and it’s like C, but modern, which shares a lot of Python syntax.

    • @GuiseppeZanotta
      @GuiseppeZanotta 2 месяца назад

      Mojo will never be surpassed! Just look at the team and the market positioning. The language thats the best interface between human and AI will be the language, python needed a compiler and type system to be taken seriously.

  • @oj0024
    @oj0024 3 месяца назад

    I'm prettt sure projects like LLVM CIRCT and IREE used MILR before mojo

    • @raspotin2
      @raspotin2 3 месяца назад +3

      CIRCT is also from the mojo creator who also created MLIR and LLVM, it is a pretty small world at this level.

  • @idiomaxiom
    @idiomaxiom 3 месяца назад

    they didn't *start* with concurrency?!?

  • @sizur
    @sizur 3 месяца назад

    That "will Z" meme? Much more suspicious with that accent.

    • @cheesed_up
      @cheesed_up  3 месяца назад

      I honestly have no idea what you are talking about :')

    • @sizur
      @sizur 3 месяца назад

      @@cheesed_up The putler meme, when you said "we'll see".

    • @cheesed_up
      @cheesed_up  3 месяца назад

      Oh... :D

  • @tubeincompetence
    @tubeincompetence 3 месяца назад +3

    Not sure what to think. Probably a bit interesting. But I don't want to program in Python. :)

  • @cckeysify
    @cckeysify 3 месяца назад +3

    not an other language

  • @gustavojoaquin_arch
    @gustavojoaquin_arch 3 месяца назад

    It's bloated

  • @blaisepascal3905
    @blaisepascal3905 3 месяца назад

    I do not really like the synthax

    • @cheesed_up
      @cheesed_up  3 месяца назад +1

      Have you seen the safe C++ video? :D

    • @blaisepascal3905
      @blaisepascal3905 3 месяца назад

      @@cheesed_up Oh woaw, ok you got me. I apologize! Nice video btw

  • @dude2542
    @dude2542 3 месяца назад +3

    I dislike the syntax, i dislike that it wants to do 300 things at once, and I do not understand what the technology do. Other than that it is a nice idea to have a language that can do everything.

    • @cheesed_up
      @cheesed_up  3 месяца назад +1

      I see your point. I felt the same way before trying it out - I must say that the syntax becomes a lot easier on the eyes after a while :D. But yeah, we'll see how it turns out...

    • @trejohnson7677
      @trejohnson7677 3 месяца назад

      lol i dislike the fact you can’t decide what your priorities are. thankfully you’ll continue to not be relied upon to contribute anything worthwhile, anywhere, likely ever.

    • @melodyogonna
      @melodyogonna 3 месяца назад +3

      It doesn't want to do 300 things at once. it is actually quite minimal as far as these things go

    • @dude2542
      @dude2542 3 месяца назад

      @@melodyogonna bro the premise of the compiler is that it is easy to implement other platforms

    • @melodyogonna
      @melodyogonna 3 месяца назад +1

      @@dude2542 you mean targeting these other architectures? That's more a function of MLIR than Mojo. It is a capability unlocked by the underlying technology.

  • @morglod
    @morglod 2 месяца назад +1

    llvm - architecture mess, thx for vendors its living
    swift - is barely working transpiler to C++
    mojo - ?? hmmm worlds slowest statically typed language?
    1:25 mlir is focused on parallelisation

    • @GuiseppeZanotta
      @GuiseppeZanotta 2 месяца назад

      but then it's like what have you personally done that has brought hundreds of billions of dollars worth of shareholder value to the world? ....... nothing! ......oh ok! keep talking! I personally just shut the fuck up and write code! My opinion is unless you wrote something better you have no room to complain. Nothing is stopping you from creating a better solution.

  • @jean-michelgilbert8136
    @jean-michelgilbert8136 3 месяца назад +9

    Now it needs a Bython because significant whitespaces suck and make writing code super slow because you always have to check for whitespace errors which is a super dumb misfeature of Python. Ugh!

    • @cheesed_up
      @cheesed_up  3 месяца назад +3

      Not sure if I agree with that statement, but I get why one would dislike the whitespace rules :D

    • @hanteroes
      @hanteroes 3 месяца назад +12

      I don't get this criticism. What the hell are you writing your code with? Notepad? Every modern ide will take care of the white spaces automatically

    • @coneryj
      @coneryj 2 месяца назад

      @@hanteroes
      in “the old days”
      IDEa just weren’t as smart if you even used one… so indents could get all screwed up if
      you moved code around.. copy/paste
      spaces vs tabs, etc
      you could accidentally muck up your code with a copy/paste and mot easily recover

    • @hanteroes
      @hanteroes 2 месяца назад +3

      @@coneryj sounds like a skill issue dinosaur. Stop using notepad to edit your code

    • @coneryj
      @coneryj 2 месяца назад

      @@hanteroes f-ing pay attention.. I said "in the old days". I was giving you a god damn lesson in the origin or where space indentation was problematic. Go F yourself

  • @DataPastor
    @DataPastor 3 месяца назад +1

    Its license forbids starting any ML/AI-focused cloud services / SaaS, so I don’t even take a look. It is a huge disappointment from Chris Lattner.

    • @cheesed_up
      @cheesed_up  3 месяца назад

      I didn't know that!

    • @raspotin2
      @raspotin2 3 месяца назад +2

      I think the licence is basically so they don't get copied by bezos the next day. in the discussion they said if you want to make a commercial AI/ML infrastructure, just approach them.

    • @DataPastor
      @DataPastor 3 месяца назад +1

      I know but such a license immediately kills the adoption of a language. Nobody takes the risk.

    • @raspotin2
      @raspotin2 3 месяца назад +2

      @@DataPastor I think it's a fair point but the alternative is probably that they will go bankrupt when AWS & Azure & GCS basically copies them and drive them out the market. Mojo is till now no Go or Swift so they need to make a language and a profitable product to keep the lights on.

    • @melodyogonna
      @melodyogonna 2 месяца назад +2

      If it helps, Chris has said that whether it'll be completely opensource is a matter of "when", not "if". They just have to protect themselves at this early stage.

  • @UnVFunLimited
    @UnVFunLimited 3 месяца назад

    No Bloat for an undelivered language?