2,567 karma · joined May 8, 2019 (7y ago) · 1,260 submissions
comment 1y ago · link · parent
These are usually defined with the [<Struct>] attribute over a regular type definition, or using the struct keyword before tuple/anonymous record types. Also, the original 'T option type now has a value-type successor 'T voption.
comment 1y ago · link · parent
Let's not dismiss that their solution to remove the global lock has been both simpler than Python's (better funded?) ongoing work and backwards compatible; and the multicore support came with both a memory model with strong guarantees around data races, and effect handlers which generalize lightweight threads.
I agree that lack of unboxed types is a fatal flaw for several domains (Worse, domains I care about! I usually consider Rust/Go/.NET for those.) But when the comparison with OCaml is favourable to F#, the gap isn't much wider than just unboxed types. F# has an identity crisis between the ML parts and the CLR parts, its C# interop is decaying as the ecosystem evolves, and newer .NET APIs aren't even compatible with F# idioms (here's a .NET 6+ example [1]).
[1]: https://sharplab.io/#v2:DYLgZgzgNAJiDUAfA9gBwKYDsAEBlAnhAC7o...
comment 1y ago · link · parent
Meanwhile, OCaml got rid of its global lock, got a really fast-compiling native toolchain with stable and improving editor tooling, and has a cleaner language design with some really powerful features unavailable to F#, like modules/functors, GADTs, effects or preprocessors. It somehow got immutable arrays before F#!
F# still has an edge on some domains due to having unboxed types, SIMD, better Windows support and the CLR's overall performance. But the first two are already in the OxCaml fork and will hopefully get upstreamed in the following years, and the third is improving already, now that the opam package manager supports Windows.
comment 1y ago · link · parent
> This is also the home of the Flambda 2 optimiser
Their plan is to use OxCaml as their experimental fork and work with upstream to port features from it. Labelled tuples and immutable arrays for example landed in OCaml 5.4 but were originally from OxCaml.
comment 1y ago · link · parent
comment 1y ago · link · parent
It shouldn't, the OCaml 5 memory model bounds the reach of data races in both space and time. [1] Thread-unsafe code won't be correct when misused, but it will stay memory safe unless you reach for an additional escape hatch (or you find an implementation bug of course).
[1]: https://ocaml.org/manual/5.4/memorymodel.html
I'm much more concerned about the amount of poorly vetted escape hatches in wide use in OCaml, mainly for bindings.
comment 1y ago · link · parent
Could at least some of those cracked passwords be hash collisions for really weak choices of hash? I once looked up an email of mine on a database leak, and found an actual outdated password except for random typos that I suspect hashed the same.
comment 1y ago · link · parent
Many people use the former purely to make animations.
comment 1y ago · link · parent
[1]: https://learn.microsoft.com/en-us/windows/arm/arm64ec-abi
comment 1y ago · link · parent
This person went really quickly from unknown to anyone not into politics, to incredibly popular within a targeted media bubble and still unknown to anyone unfamiliar with that bubble.
comment 1y ago · link · parent
As for limits, I think it's only a limit of PCs per account, but I think you've got that limit already for licenses anyway.
And of course it won't last forever, sooner or later we'll be on square one again. I've personally already migrated my devices to Linux, except for a partition to play games that require anti-cheats, and I'm explaining to my family what their options are.
comment 1y ago · link · parent
This reminds me of Stephen Hawking telling John Oliver that the latter dating Charlize Theron is beyond the bounds of scientific possibility in any of the infinite parallel universes.
comment 1y ago · link · parent
You're right that QueryInterface can return a different object, but that doesn't make it significantly more complicated, assuming you're not managing the ref-counts manually.