3

Made this little example to show the difference in codegen quality using Gc smart pointers versus reference counted Rc's can make

Actually pretty crazy:

https://godbolt.org/z/vsTeGcz8M

Comments
  • 2
    If you would've cared about this, you would've been deep into C and would ditch Rust as the 3rdparty sandwich it is.

    Anyway, have you read my source by now?

    And come more frequently to Snek by the way, you have great input.
  • 3
    @retoor that was my first impulse also but then I remembered that Rust is more than just memory safe C++.

    A more appropriate question, imo is:
    If you want to get rid of the syntax bloat of Rust‘s memory management, why not use Swift? ^^
  • 2
    @retoor what’s a 3rdparty sandwich?
    It sounds naughty.
  • 1
    @Lensflare Like always I will not fight Swift and if it does deliver the same results are Rust on certain aspects it should be even promoted harder since I know it's syntax is very good. But have you already checked my Rava interpreter? It's really a sick implementation of Java. It does not use and will not use JIT but still performs extremely well.

    A 3rd party sandwich is a sandwich you invited to your meal because you were incompetent and too insecure to do it yourself. We could also call it the lazy sandwich.

    Talking about insecure, incompetent and lazy, why didn't you sent an e-mail to retoor@molodetz.nl? It's quite important as far a message of a random anonymous person of the internet can be. I would exchange some wisdom tailored for you. Nothing to loose right?
  • 1
    @retoor Sorry, haven't read it yet
  • 2
    @Lensflare I want to try swift at some point but I also just really like Rust
  • 1
    @retoor I can emulate C in Rust with 3 lines of code, it's very simple. The whole point is that it's *also* memory safe :P
  • 2
    @12bitfloat I can emulate to be you without using any line of code but that doesn't make me you.

    But Rust memory safe is already debunked right in the sense that it's not at all and didn't we conclude ourselves as well together that valgrind found memory issues within a Rust executable? IIRC it at least doesn't clean up the vars at the end of execution.

    But dig deep, why not Swift? Because Swift is something I can get into actually and i even tried. I've read about the syntax and it was solid on many points and objectively a great language. BUt the moment I was investigating it, it was just not the right time for learning a new language. YOu need some peace of mind for that i guess. I'm not 20 anymore. But really, i think that Swift deserves more than Rust does. It's weird to like Rust. It's like loving a kick in the tits or balls or both.

    Nah, the Rava project is maybe not interesting for you. It's only impressive to advanced vibe coders to see the art of it.
  • 0
    @retoor I don't really remember, but if valgrind found anything than probably because some singleton was persistently allocated until the end of the program. There's not really anything wrong with that since the OS will clean up the memory at end of process. In fact I optimized my latest isspam version to leak values at the end so that drop impls don't increase run time :P

    And if you like Swift, then do swift. I don't have anything against it. I just really like rust
  • 1
    @retoor I dunno, i'm not a vibe coder, but I am pretty knowledgeable when it comes to very low level and interpreter programming

    Rava seems pretty good! I wonder how you are doing memory management though... I haven't seen any garbage collection or similar in the code
  • 1
    @12bitfloat I dunno, i'm not ONLY a vibe coder, but I am pretty knowledgeable when it comes to very low level and interpreter programming; maybe not on the level as @lorentz and you, but I have all the knowledge needed to make decent stuff better than originals often (You know my regex interpreter beats native C's one in many occasions?). But vibe coder, for me it was like a huge offense, but now i just go with it and assert that there are just different levels on vibe coding and my project will be the portfolio project that wil lshow it's a fact. This project does not just dominate, it over dominates. Extremely. My personal advise is not to skip vibe coding, because you'll need it in the future. But what you even need more, a way to differentiate yourself from others as a programmer.

    `Rava seems pretty good! I wonder how you are doing memory management though... I haven't seen any garbage collection or similar in the code` -> ask AI to find it for ya :P OFC it's there.
  • 2
    @12bitfloat please come to snek, blindfish and ostream are there now too and i'll show you how to figure out the gc stuff of Rava and thus other stuff as well ussing AI in a 5 minute tutorial that does not cost money at all. Sharing in life is a place in heaven. My only motivation.
  • 2
    @retoor sorry I don’t want to give you my email. I‘m not reading emails anyway ^^
    Maybe discord, but lately I‘m getting enough message spam already ^^
  • 1
    @Lensflare that's fine, i already told you in other message while i wanted to have your mail. It's critical. I just want to protect you on certain level. I did what i could. I did what i could. Lensflarii (L)
Add Comment