Thread: [Kotlin] Random Permutation

Page 5 of 6 FirstFirst ... 3456 LastLast
Results 41 to 50 of 52
  1. #41  
    Registered Member

    Join Date
    Feb 2010
    Posts
    3,187
    Thanks given
    1,124
    Thanks received
    834
    Discord
    View profile
    Rep Power
    1514
    Quote Originally Posted by Tyluur View Post
    The alternative in most cases is Java... :/
    Oh no, not Java
    Reply With Quote  
     

  2. #42  
    touched like seafood
    Tyluur's Avatar
    Join Date
    Jun 2010
    Age
    23
    Posts
    4,836
    Thanks given
    1,676
    Thanks received
    1,563
    Discord
    View profile
    Rep Power
    1386
    Quote Originally Posted by Fire Cape View Post
    Oh no, not Java
    Way too much boilerplate code. Feels redundant.
    [Only registered and activated users can see links. ] | [Only registered and activated users can see links. ] | [Only registered and activated users can see links. ] (official dog of rune-server)
    Quote Originally Posted by blakeman8192 View Post
    Keep trying. Quitting is the only true failure.
    Reply With Quote  
     

  3. #43  
    Community Veteran


    Join Date
    Dec 2008
    Posts
    4,264
    Thanks given
    405
    Thanks received
    432
    Discord
    View profile
    Rep Power
    1684
    Quote Originally Posted by Bartvh View Post
    I think the null-safety in Kotlin is probably one of its strengths. The fact that it is redundant doesn't matter. Every language has concepts that are redundant, but just make it easier for the developers.
    This is the first time I heard about the for-operations/ranges issue. I tried some simple cases and couldn't find any evidence of this.

    That's not true. Also, inline classes are experimental and will improve in 1.5.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  4. #44  
    Registered Member
    Velocity's Avatar
    Join Date
    Jan 2009
    Age
    25
    Posts
    2,029
    Thanks given
    1,013
    Thanks received
    2,373
    Rep Power
    4112
    Quote Originally Posted by Scu11 View Post
    how is it redundant to turn a problem that was traditionally found at runtime into a compile time problem..?
    you tell me, because it's now both a runtime AND a compile time problem, while on top the COMPILE-TIME part is applied in the runtime in the form of runtime throws (as if Java didn't do that already upon accessing a null??)
    xxxxxxx
    Reply With Quote  
     

  5. Thankful user:


  6. #45  
    Community Veteran


    Join Date
    Dec 2008
    Posts
    4,264
    Thanks given
    405
    Thanks received
    432
    Discord
    View profile
    Rep Power
    1684
    Quote Originally Posted by Velocity View Post
    you tell me, because it's now both a runtime AND a compile time problem, while on top the COMPILE-TIME part is applied in the runtime in the form of runtime throws (as if Java didn't do that already upon accessing a null??)
    Pretty sure the runtime overhead they add for NPE is translating stack traces back to Kotlin source code. Which is fine by default, but give me a switch for that. I can figured out where my kotlin code went wrong based off a Java stack trace without the added runtime overhead.

    And if the compile time checking is as reliable as Scu implies, why the need for the runtime overhead at all?
    Reply With Quote  
     

  7. #46  
    Renown Programmer

    Bartvh's Avatar
    Join Date
    May 2017
    Posts
    371
    Thanks given
    86
    Thanks received
    203
    Discord
    View profile
    Rep Power
    480
    Quote Originally Posted by Gluon View Post
    [Only registered and activated users can see links. ]
    Why are you posting this? This issue was fixed almost 3 years ago.
    [Only registered and activated users can see links. ] Open Source Emulation Framework
    Reply With Quote  
     

  8. #47  
    Community Veteran


    Join Date
    Dec 2008
    Posts
    4,264
    Thanks given
    405
    Thanks received
    432
    Discord
    View profile
    Rep Power
    1684
    Quote Originally Posted by Bartvh View Post
    Why are you posting this? This issue was fixed almost 3 years ago.
    Because if you look the parent issue is still open with multiple sub tickets regarding basic for loop optimization.
    Reply With Quote  
     

  9. Thankful user:


  10. #48  
    Renown Programmer

    Bartvh's Avatar
    Join Date
    May 2017
    Posts
    371
    Thanks given
    86
    Thanks received
    203
    Discord
    View profile
    Rep Power
    480
    Quote Originally Posted by Gluon View Post
    Pretty sure the runtime overhead they add for NPE is translating stack traces back to Kotlin source code. Which is fine by default, but give me a switch for that. I can figured out where my kotlin code went wrong based off a Java stack trace without the added runtime overhead.

    And if the compile time checking is as reliable as Scu implies, why the need for the runtime overhead at all?
    What? Nothing gets translated.

    Quote Originally Posted by Gluon View Post
    Because if you look the parent issue is still open with multiple sub tickets regarding basic for loop optimization.
    Those are some very specific cases. Also, does Java even optimize those cases? Most likely not...
    [Only registered and activated users can see links. ] Open Source Emulation Framework
    Reply With Quote  
     

  11. #49  
    Community Veteran


    Join Date
    Dec 2008
    Posts
    4,264
    Thanks given
    405
    Thanks received
    432
    Discord
    View profile
    Rep Power
    1684
    Quote Originally Posted by Velocity View Post
    you tell me, because it's now both a runtime AND a compile time problem, while on top the COMPILE-TIME part is applied in the runtime in the form of runtime throws (as if Java didn't do that already upon accessing a null??)
    Actually, you can turn them off "-Xno-param-assertions" and "-Xno-call-assertions"

    Edit also "-Xno-receiver-assertions"

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  12. Thankful user:


  13. #50  




    Scu11's Avatar
    Join Date
    Aug 2007
    Age
    27
    Posts
    16,200
    Thanks given
    7,190
    Thanks received
    12,174
    Discord
    View profile
    Rep Power
    5000
    Quote Originally Posted by Velocity View Post
    you tell me, because it's now both a runtime AND a compile time problem
    exactly. previously it would have ALWAYS been something you only found at runtime in the Java world, now it's something you can mostly find at compile-time and occassionally find at runtime in kotlin... surely as programmers we generally want to find these problems sooner rather than later, so moving whatever we can to compile-time problems is a good thing?

    [Only registered and activated users can see links. ]



    Reply With Quote  
     

  14. Thankful user:


Page 5 of 6 FirstFirst ... 3456 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Some Random Events
    By Eleclion in forum Tutorials
    Replies: 4
    Last Post: 05-15-2007, 11:38 PM
  2. Guardian Random Events
    By Eleclion in forum Tutorials
    Replies: 3
    Last Post: 05-12-2007, 08:21 PM
  3. Some Random S**t
    By Darklordants Evil Bro in forum Showcase
    Replies: 2
    Last Post: 04-13-2007, 09:42 PM
  4. A few Random Renders...
    By oblak10 in forum General
    Replies: 2
    Last Post: 04-02-2007, 04:31 AM
  5. my latest sigs :D and random GFX
    By Oblak Lol in forum Showcase
    Replies: 10
    Last Post: 03-31-2007, 10:41 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •