HackerTrans
TopNewTrendsCommentsPastAskShowJobs

zdimension

no profile record

comments

zdimension
·vor 24 Tagen·discuss
Oh, so that's why JetBrains data thing is called DataLore. TIL
zdimension
·vor 2 Monaten·discuss
Eli5:

Haskell type classes are not classes (like Java or PHP classes); they are comparable to Rust traits -- which are different from PHP traits which are comparable to Java/C# interfaces (with default impls; if you just want contracts you have... PHP interfaces).

A fundamental difference is that you can instantiate/implement a type class (or Rust trait) for any* type, compared to interfaces where each class declares the interfaces it implements. You can therefore create generic (forall) instances, higher kinded type classes, etc.
zdimension
·vor 2 Monaten·discuss
Works on all my servers. This is terrifying.
zdimension
·vor 4 Monaten·discuss
Microsoft started as a programming language company (MS-BASIC) and they never stopped delivering serious quality software there. VB (classic), for all its flaws, was an amazing RAD dev product. .NET, especially since the move to open-source, is a great platform to work with. C# and TS are very well-designed languages.

Though they still haven't managed to produce a UI toolkit that is both reliable, fast, and easy to use.
zdimension
·vor 5 Monaten·discuss
Off-topic, but this ongoing trend of brands getting TLDs is really starting to infuriate me. It's not what TLDs are for! Sony is a Japanese company, so it should use sony.com or sony.jp.
zdimension
·vor 5 Monaten·discuss
Related: https://www.w3.org/Provider/Style/URI
zdimension
·vor 6 Monaten·discuss
Well-written post. Very interesting, especially the interactive widgets.
zdimension
·vor 8 Monaten·discuss
57 is 3 times 19.

The standard divisibility rule for 3, 6 and 9 in base 10 is to sum the digits until you only have one left and check if it's one of those. Here, 5+7=12, 1+2=3, so 57 is divisible by 3.
zdimension
·vor 9 Monaten·discuss
For anyone wondering, NonNull (along with other "constrained" types like NonZero integers) uses internal compiler attributes (https://doc.rust-lang.org/src/core/ptr/non_null.rs.html#72):

  #[rustc_layout_scalar_valid_range_start(1)]
This gives rustc enough information to perform niche optimizations such as collapsing Option<NonNull<T>>.

You can technically use those for your own types, but it requires nightly, obviously.
zdimension
·vor 2 Jahren·discuss
Most would agree that a trans parent is better than a dead parent, though.
zdimension
·vor 3 Jahren·discuss
The result of Microsoft developers in the 90s drunkenly making up an object model on top of C with the goal of it being cross-language and cross-platform (in theory). The idea being that you can define an interface and implement it in any language and consume it in any language. A good idea in theory. In practice, DLL hell often made the experience unpleasant. A big part of Windows's APIs are COM-based. For historical reasons it's also used at the core of a few macOS system components, hence the grandparent comment