Preferences

akkad33
Joined 683 karma

  1. Why do they kill animals for fur? Could they not shave them? (I realise my question sounds dumb)
  2. I don't really understand this comment. Are you saying dogs made way for nuclear families? Why would it be impossible? In India for example pet ownership is very low. Much lower than prevalence of nuclear families
  3. There's no evidence that Toxoplasmosis has that effect on humans
  4. I don't know to what extent cost is stopping people from having kids. Many poor people have kids. And then they struggle to raise them.
  5. Last year I moved to fedora because tired of adware and forced updates on Windows
  6. So what'll happen to all these companies building on top of openai license. I don't hear these warnings in professional circles, only online
  7. > Java type shenanigans are endless if you want some fun but baseline you can cast to arbitrary types at runtime and completely bypass all compile time checks.

    For this reason Java is a bad example of a typed language. It gives static typing a bad rep because of its inflexible yet unreliable type system (only basic type inference, no ADTs, many things like presence of equality not checked at compile time etc ) Something like ocaml or fsharp have much more sound and capable type systems.

  8. Ronnie led a rich life. I feel ashamed that my selfish life feels pale in comparison. It's amazing these people did not worry about the extra expense and inconvenience of taking care of another person, with children of their own to take care of.
  9. Do you know what tools they use?
  10. Yes this is the article I was referring to. Gleam does not need interfaces or traits because functions can do it
  11. Cats are not so solitary. They can actually live in communities but they are not pack animals
  12. Why does it need generics? There's a great blog post about how you can replace a lot of trait behaviour with just functions. Maybe something like that can be done for generics
  13. > Something really scary in France right now is

    I mean he's going to jail. If anything that's better than most countries. In India, a chief minister who instigated racial riots never even had to go to court for it and he even became the current de facto autocrate

  14. This is a very myopic view of the issue and is age-old reaction laypeople have to privacy concerns: my data is worth nothing because there nothing interesting about it.
  15. But isn't there a reason why so many start with LLVM ? It's highly optimised. I think mojo is not LLVM but mlir
  16. You'd be hard pressed to find a job posting in ML/ data analytics where python is not in the requirements
  17. Yes. Many startups using Java in europe
  18. If it walks like a duck, quacks like a duck,... you know what they say
  19. Everyone praises this book but it was way too dry for me to get through. I have the print edition so maybe I'll give it another try
  20. > Rust is one of the languages that AI is worst at writing - currently, at least

    Everyone makes similar statements about AI, Ai is currently bad at this or that. I find it quite good to write Rust. Can you give a concrete example of what AI failed to write for you

  21. When someone says demonstrably, I expect they would follow up with said demonstration
  22. A bit of an exaggeration ? it's just a random rage baiter who baited the wrong person apparently. It won't be a blimp in American history
  23. This post has more engagement than any other post on the front page. It seems hackernews has been overrun by a certain crowd whom this death seems newsworthy
  24. Still smells like corruption
  25. > I'm not a fan of Rust as a language for many reasons, but I will give it credit for making proper usage of the Result

    Rust also has exceptions aka panics

  26. In python, those give a mutable set, which is what I was referring to above. Also not to put too a fine a point, you'll never see python code like that in the wild, but even in code reviews these days, it's common to find Java code written like in my example because the syntax for sets in Java came after Java 8
  27. I mentioned "mutable" in my comment
  28. Spring is very capable and has lots of things built-in
  29. > The language itself is quite beautiful when used properly and with modern features.

    I respect your opinion but I wouldn't call Java beautiful (of course it depends on your definition of beautiful). It takes so much ceremony to do things you would do without any thought in other languages .

    Initiating a mutable set

    Python

    `a = {1,2}`

    What most Java programmers do

    ``` var a = new HashSet<>(); a.add(1); a.add(2); ```

    Shorter one but requires more ceremony, and hence knowledge of more language semantics

    ``` var a = new HashSet<>(new Arraylist<>(List.of(1,2)) ```

    I don't know if the above works but the Idea is to initiate a list and pass it into a HashSet constructor.

    Similarly Java 21 allows you to model union types but doing so requires you to define N+1 classes where N is the number of union cases whereas in other languages it's as simple as `type A = C |D`

This user hasn’t submitted anything.

Keyboard Shortcuts

Story Lists

j
Next story
k
Previous story
Shift+j
Last story
Shift+k
First story
o Enter
Go to story URL
c
Go to comments
u
Go to author

Navigation

Shift+t
Go to top stories
Shift+n
Go to new stories
Shift+b
Go to best stories
Shift+a
Go to Ask HN
Shift+s
Go to Show HN

Miscellaneous

?
Show this modal