Announcement

Collapse
No announcement yet.

Rust 1.32 Released With New Debugger Macro, Jemalloc Disabled By Default

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • cybertraveler
    replied
    Originally posted by moltonel View Post

    Ok, so you don't have much experience in programming. Don't lie to yourself in pretending you have, that's not the only tell-tale quote.

    Nothing wrong with lack of experience, that's something that only time can bring.

    Lambasting other people, including highly skilled and experienced language designers and compiler writers, on a subject that you seemingly just encountered ? That's pretty bad.

    Throwing insults at large groups of people in each of your posts ? That's unacceptable.

    I don't know if you or your company manages to find decent programmers, but you should realize that these posts put you instantly in the "low tech skill - don't hire as programmer" and (more importantly) "horrible personal skill - don't hire for any job description" categories. It's never too late to change. Please be polite, constructive, humble.
    Well put. I also want to repeat something you said:

    "It's never too late to change."

    A lot of people don't realize that they can change. You can. There are many ways to do it. One way is:

    Try to become an observer of your own mind. So rather than get caught up in all the mental chatter, try to watch your thoughts happen sometimes. When you successfully do this, you'll quickly realise that you're not your thoughts. It's kinda like your thinking system is just a computer that you are using. A lot of us get caught up in our thoughts and we start to think that we are those thoughts and we have no choice but to follow our thought patterns wherever they take us... which sometimes is towards aggression or even madness. However, there is something greater within us which operates above those thoughts. I don't know what that greater thing actually is and for the sake of this current topic it doesn't really matter. It's just something that is there.

    After you have some practise at being that greater thing (whatever it is) and you can watch your thoughts happen rather than be stuck-in-thought, you may find that when you're next getting angry, stressed, or about to respond aggressively, you can actually catch yourself entering that state of mind and emotion and stop yourself before you speak or act. In that moment you can then decide how you would actually prefer to act, or a way to act that might be better for yourself and everyone. You might even decide you don't want to say anything, which is also OK.

    I'm not just making that stuff up or regurgitating something I heard from some religious group. This is something that has worked for me. It may work for other people too.

    Edit: Here's a quick mental hack. If you want to briefly experience that greater thing and disconnect from your busy mind chatter momentarily do this: stop what you're doing. Gently take in a deep breath through your nose filling your lungs and then slowly release your breath through your mouth over a period of something like 3 seconds. While doing all that try to just internally watch yourself doing it. IE focus on that action. Notice how it can bring you calm and release you from whatever mental pathway you were racing along prior to doing it.
    Last edited by cybertraveler; 01-21-2019, 05:27 PM.

    Leave a comment:


  • moltonel
    replied
    Originally posted by Weasel View Post
    Is this really a thing? An issue?
    Ok, so you don't have much experience in programming. Don't lie to yourself in pretending you have, that's not the only tell-tale quote.

    Nothing wrong with lack of experience, that's something that only time can bring.

    Even if you make such an obvious mistake, compiler will warn you about it. I don't see the problem and it's obvious as fuck.

    [...]

    Only if you hire the trash el cheapo "programmers" and then have the burden to deal with their low quality brain.

    Seriously there's no other way I can put this for mistaking = and ==

    [...]

    No need to apologize, Rust dummies deserve it.
    Lambasting other people, including highly skilled and experienced language designers and compiler writers, on a subject that you seemingly just encountered ? That's pretty bad.

    Throwing insults at large groups of people in each of your posts ? That's unacceptable.

    I don't know if you or your company manages to find decent programmers, but you should realize that these posts put you instantly in the "low tech skill - don't hire as programmer" and (more importantly) "horrible personal skill - don't hire for any job description" categories. It's never too late to change. Please be polite, constructive, humble.

    Seriously, where are the moderators ?

    Leave a comment:


  • moltonel
    replied
    Originally posted by caligula View Post

    Yes. The biggest advantage is, syntactically you can inline some assignments inside if/while loops or assign multiple values like a = b = c = 42;. There are also cases where you have C/C++ as the target language and supporting this helps with C/C++ code generation. If there used to be any differences in code generation, those days are long gone since gcc 4. I'd argue the advantages don't really outweigh the problems anymore. Fixing these bugs is really expensive these days.
    Also, having every language construct be an expression (something that returns a value) rather than a statement (something that must stand on its own) can simplify the language and enable elegant code flows. What counted as elegant in C's design time might count as dangerous gotcha nowadays, but it's not hard to find code that does "assign and test" on purpose.

    For what it's worth (to stay somewhat on topic), assignment are expressions in Rust too, but to prevent problems, their value is always `()` (the unit tuple).

    Leave a comment:


  • Ansla
    replied
    Originally posted by caligula View Post

    1) I wasn't advocating Swift
    2) Even if it doesn't exist (yet), that doesn't prevent me from explaining why some language improvements are so useful. There wouldn't be any progress if everyone thought like you.
    1) You were advocating languages that behave like swift, as a solution for an issue that had nothing to do with the language, but with very old compiler.
    2) Usualy lack of some feature is not considered an improvement.

    Originally posted by caligula View Post
    Why would I? I never said rust (or even swift) can't be used on any embedded setup. Just that on setups where you can use them you also can use lastest gcc or clang.

    It's just ridiculous to argue that some shiny new language comes to fix some issues that the C language had during the previous millenium, that were fixed by C compilers 10 or even 20 years ago.

    Leave a comment:


  • caligula
    replied
    Originally posted by Ansla View Post

    And how do you plan to run swift on that enbedded environment if you can't even get gcc4 on it?
    Besides, look at these
    https://github.com/avr-rust/
    https://github.com/avr-rust/ruduino

    Leave a comment:


  • caligula
    replied
    Originally posted by Ansla View Post

    And how do you plan to run swift on that enbedded environment if you can't even get gcc4 on it?
    1) I wasn't advocating Swift
    2) Even if it doesn't exist (yet), that doesn't prevent me from explaining why some language improvements are so useful. There wouldn't be any progress if everyone thought like you.

    Leave a comment:


  • Ansla
    replied
    Originally posted by caligula View Post
    Not everyone has the privilege to use latest modern compilers. Take an embedded environment that's stuck with gcc 2 or 3 (was common few years ago). Now the general guideline was to compare in a way that the rvalue is on the left hand side. So e.g. 1 == x. Now if you make a mistake and type 1 = x, it won't compile. I'm not sure about the status of the NDA so can't paste the code style guide here. Many juniors also do this on purpose cause they don't know the difference. I think it's better to use languages where assignment doesn't yield a return value. That's a code smell anyways.
    And how do you plan to run swift on that enbedded environment if you can't even get gcc4 on it?

    Leave a comment:


  • Weasel
    replied
    Originally posted by smitty3268 View Post
    It must be nice always working with geniuses who never have any typos or create any bugs. Wish I was that lucky.
    Honestly, and with no sarcasm intended at all, I'm baffled that the bar for a "genius" has been lowered so much these days. It's sad.

    Leave a comment:


  • smitty3268
    replied
    Originally posted by Weasel View Post
    Only if you hire the trash el cheapo "programmers" and then have the burden to deal with their low quality brain.

    Seriously there's no other way I can put this for mistaking = and ==
    It must be nice always working with geniuses who never have any typos or create any bugs. Wish I was that lucky.

    Leave a comment:


  • Weasel
    replied
    Originally posted by caligula View Post
    Fixing these bugs is really expensive these days.
    Only if you hire the trash el cheapo "programmers" and then have the burden to deal with their low quality brain.

    Seriously there's no other way I can put this for mistaking = and ==

    Leave a comment:

Working...
X