Live data from Hacker News

Viewing profile — _old_dude_

_old_dude_

HN member
Joined
Sun, Jan 08, 2017, 1:00 AM UTC
HN karma
804
Public activity
306 items

About _old_dude_

No profile information was provided.

Recent public activity

  1. comment
    Comment #49194787

    It's not hate, it's not wanted to be associated with: see https://victorwynne.com/dhh/

  2. comment
    Comment #48596537

    For me, the difference is that if methods are inlined, the compiler is still required to do a copy for structs but not for value classes. I do not know how this is called.

  3. comment
    Comment #48596311

    I think pass by copy is a consequence of being modifiable. The other solution is to stack allocate and pass a pointer but as i said, unlike in C#, i do not think it's possible to d…

  4. comment
    Comment #48596120

    The article has a section about that. For me, a struct in C/C# can be modified and is passed by copy while a value class can not be modified and is passed by value. I do not think …

  5. comment
    Comment #48525326

    The usual GC tradeoff is between memory and CPU performance. If you set the memory max high, the GC will run less often, you get less pause time. So I do not understand why it's a …

  6. comment
    Comment #48427144

    I agree. And the next section is very clear that they want to kill the project. > For example, rather than proposing one single concrete JIT implementation, > it may make more sens…

  7. comment
    Comment #48334660

    You need more than that for the example with setTimeout(). It requires to be able to freeze the stack and then go back later. You need stackful coroutine (like goroutine) for that.…

  8. comment
    Comment #48193867

    If you do not block 3rd party harness, people will discover that a good harness is more important than a good model.

  9. comment
    Comment #48159462

    Yes, and let's not forget Stephen Elop's 'Burning Platform' Memo https://www.wsj.com/articles/BL-TEB-2031

  10. comment
    Comment #47778414

    Parser generators are great in Python (Lark for me) so you can iterate fast and get a runtime spec of your grammar. A hand-written recursive descent parser is something you do late…

  11. comment
    Comment #47689386

    In C#, all instances have a class, so there is already a discriminant, the class itself. In the article, the example with the switch works because it switches on the class of the i…

  12. comment
  13. comment
    Comment #46183120

    In Scala 3, the inline keyword is part of the macro system. When inline is used on a parameter, it instructs the compiler to inline the expression at the call site. If the expressi…

  14. comment
    Comment #45925727

    There is a modern equivalent based on Linux criu. https://github.com/CRaC/

  15. comment
  16. comment
    Comment #45852267

    Yes, the version in Java is clearly less elegant. Java has map+lambda and compareTo ( ) but no tuple assignemnt and no splat. record AppVersion(int major, int minor, int patch) imp…

  17. comment
    Comment #44646412

    For the record (sorry), I believe C# uses the clone operation because records support inheritance. For me, this is where lies the design flaw, trying to support both inheritance an…

  18. comment
    Comment #44347324

    > Libya was bombed primarily by France and then other NATO countries for no good reason https://en.wikipedia.org/wiki/Alleged_Libyan_financing_in_th...

  19. comment
    Comment #44304328

    And AISQL is a thing ... https://quickstarts.snowflake.com/guide/getting-started-with-cortex-aisql/index.html I'm glad i'm retired.

  20. comment
    Comment #44114754

    Java Almanac has a list of all features https://javaalmanac.io/features/ And the main page let you compare API versions https://javaalmanac.io/

  21. comment
    Comment #43977410

    > at least I know that the phone will be supported for at least 4 years It's 4 (mid) to 7 years (flagship) for Samsung. https://www.androidauthority.com/samsung-android-updates-114…

  22. comment
    Comment #43878047

    OOP is great for libraries but leads to overly complex codes for applications. For a long time, Java was like, every classes is a library, i do not think it's a failure of OOP, it'…

  23. comment
    Comment #43874765

    I've just tried to change a field of an instance of a record using reflection, and it's not possible, even with setAccessible(true).

  24. comment
    Comment #43874744

    In Java, constants are declared as static final. static final Complex CONSTANT = new Complex(1, 2); If you want a lazy initialized constant, you want a stable value static final St…

  25. comment
    Comment #43582648

    In JavaScript, a 'let' inside the initializer of a for loop is captured by value, all the others are captured by reference. I think it's fair to call that semantics "implicit".