HackerTrans
TopNewTrendsCommentsPastAskShowJobs

yakubin

no profile record

comments

yakubin
·3 yıl önce·discuss
He supports Hamas and Hezbollah: <https://twitter.com/CraigMurrayOrg/status/171333500612114051...>.
yakubin
·3 yıl önce·discuss
Instagram photos of faces already don’t look right. They are horribly smoothed out and glowing. And people seem to like it.
yakubin
·3 yıl önce·discuss
I prefer to have those 104 cases all in one place (as is the case, when it is a switch statement) rather than each in a separate file, that I need to jump around between now (as is the case with polymorphism). This situation is a bit analogous to organising things column-wise vs row-wise. And in practice I find that I need to jump around a lot less with code that uses switches than with code that uses polymorphism. Tangentially, the latter is also more prone to turning into spaghetti, as the whole is obscured by indirection levels between the parts, but you don't see the spaghetti until you try to step through the code, when debugging an issue or just trying to familiarise yourself with a new codebase.
yakubin
·3 yıl önce·discuss
Which also prevents good privilege separation/sandboxing. See PAM vs BSD Auth, where the former cannot be secured with anything like pledge/unveil or Capsicum, but the latter can.
yakubin
·3 yıl önce·discuss
IMO The author proved here that Rust could have a much better syntax, when they showed the CrabML example.
yakubin
·4 yıl önce·discuss
The original thread: <https://twitter.com/echetus/status/1579776106034757633>

Just wow. I’ve been hearing about Wikipedia having a surplus of money for a while, it didn’t bother me. But after seeing what sort of nonsense they’re funding I’m cancelling my donations.
yakubin
·4 yıl önce·discuss
Particularly since Elisabeth I came long after that date. It’s definitely not 1414.
yakubin
·4 yıl önce·discuss
So just like with tracing GCs. You do have a pause, which you may avoid with parallelism, or smear out incrementally. If you do it in parallel, your reference counting needs to be atomic, which adds further overhead. You still need to perform all the reference counting operations for each element of the list, not just free them, because part of the list may be shared. E.g. in SML:

  fun replace_head_with_1 (_::xs) = 1::xs;
  val a = [2, 3, 4];
  val b = replace_head_with_1 a;
Now a and b share the tail.

And a linked list is only a simple demonstration of a chain of pointers. It occurs spontaneously outside of containers, when you just write e.g. classes which have objects of other classes as their fields. In Haskell that would be records, or just an algebraic data type. Or just closures.
yakubin
·4 yıl önce·discuss
What happens in your language when a linked list is freed? Doesn't running its destructor (or its equivalent) take a linear amount of time relative to the length of the list?
yakubin
·5 yıl önce·discuss
Changing the threshold without signaling the change in the type system is also a breaking change. It's just that your compiler won't warn you about it when you inevitably forget to update your code. Instead your code is going to break at runtime.