Preferences

akkad33
Joined 683 karma

  1. Last year I moved to fedora because tired of adware and forced updates on Windows
  2. 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
  3. > 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.

  4. 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.
  5. Do you know what tools they use?
  6. Yes this is the article I was referring to. Gleam does not need interfaces or traits because functions can do it
  7. Cats are not so solitary. They can actually live in communities but they are not pack animals
  8. 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
  9. > 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

  10. 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.
  11. But isn't there a reason why so many start with LLVM ? It's highly optimised. I think mojo is not LLVM but mlir
  12. You'd be hard pressed to find a job posting in ML/ data analytics where python is not in the requirements
  13. Yes. Many startups using Java in europe
  14. If it walks like a duck, quacks like a duck,... you know what they say
  15. 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
  16. > 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

  17. When someone says demonstrably, I expect they would follow up with said demonstration
  18. 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
  19. 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
  20. Still smells like corruption
  21. > 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

  22. 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
  23. I mentioned "mutable" in my comment
  24. Spring is very capable and has lots of things built-in
  25. > 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`

  26. Is this really true? What do you mean by value types? The types that implement copy or any struct types? Because I think struct types only get moved
  27. Is it expensive in Rust? Normally only data in stack gets copied. Heap data is untouched
  28. No. Other languages don't prevent concurrency related bugs like the one in the article. Rust has reference aliasing rules and lifetimes and send and sync traits. These things do not exist in Java and others, so will not prevent such bugs
  29. But if you're not good technically does it matter if you're good? I notice two type of people who I see as successful in my company

    1. People who are extremely good technically. They don't have great people skills. They are almost hard to get chummy with. They only respect you if you're as good as them technically or if you belong to the following group 2. People with great personalities, charisma. They are not technically excellent. They are not the people you go to if you want to develop a streaming database. But they have vision, they have a broad view of things and know what to improve, where to work etc. They are not software engineers, more like team leads.

    Then there are people who are neither great technically nor have charsima that make people gravitate towards them. People who are just fumbling in mediocrity, wondering if they are in the right place and feeling stuck (like me )

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