• 1 Post
  • 316 Comments
Joined 3 months ago
cake
Cake day: July 29th, 2024

help-circle





  • Actually jit languages can outperform compiled languages by using runtime analysis to perform tiered compilation and profile guided optimisations.

    C# has made some great strides in this regard.

    All the normal optimisations are applied when it is compiled to byte code. Like loop unrolling etc.

    Then once it detects the hot paths during execution it can apply even more based on how it is called. It can also do optimisations that aren’t possible at initial compile time.

    Dynamic PGO it’s called. It’s a really interesting topic.










  • GetOffMyLan@programming.devtoCasual UK@feddit.ukWhat to do??
    link
    fedilink
    English
    arrow-up
    22
    ·
    edit-2
    2 days ago

    Go talk to your doctor mate. If you can talk to your wife. If not any friends/family who you trust and who don’t use it.

    Cocaine isn’t physically addictive so it’s much easier to get off than something like heroin. But don’t get me wrong it’s still difficult.

    You may also be suffering depression or similar. I use drugs to deal with the symptoms of mine when they get too much. It’s worth having a think about. Did you have other issues with happiness or functioning before the coke.

    This is a big first step. Best of luck mate.





  • Use your bed only for sleep. No screens for a few hours before bed. Milk before bed. Reading or audio books are a great way to settle your mind.

    If you aren’t asleep after 30 or so minutes get up and do something chilled for a little bit. Laying there getting pissed you aren’t asleep doesn’t help.

    Stick to a sleep / wake schedule. I’ve found getting up early and consistently much more effective for sorting out my sleep.