• 0 Posts
  • 104 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.











  • It’s amazingly good at moderating user content to flag for moderator review. Existing text analysis completely falls down beyond keyword filtering tbh.

    It’s really good at sentiment analysis. Which is great for things like user reviews. The Amazon ai notes on products are actually brilliant at summarizing the pros and cons of a product. I work for a holiday let company and we experimented with using it to find customers we need to follow up with and the results were amazing.

    It smashes other automated translating services as well.

    I use it a lot as a programmer to very quickly learn new topics. Also as an interactive docs that you can ask follow up questions to. I can pick up a new language as I go much faster than with traditional resources.

    It’s honestly a complete game changer.






  • The reason is the vast majority of places use c# to avoid this stuff. So performance is often not the first priority

    The complexity it adds takes away from the readability and maintainability. Which is often the priority.

    But in a hot path where you need optimization these are a good send as previously you had to use raw pointers and completely side step all the safety of the language.

    I would say 90% of c# developers will never touch these. It’s more for library and framework writers.

    I believe most of these features are driven by what the Microsoft Devs need to write asp.net and EF.