Better HN
topnewbestaskshowjobs
Log inSign up

debugnik

2,567 karma · joined May 8, 2019 (7y ago) · 1,260 submissions

Submissions

comment 1y ago · link · parent

Could you explain how Reason syntax isn't "really willing to modernize in ways that would attract your average programmer"? I'm trying to understand what do you even mean.

comment 1y ago · link · parent

F# uses the CLR term "value types" instead, or sometimes "struct" types as in the C# keyword.

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

I vouched for your dead comment because I get where you're coming from. But OCaml 1.0 was in 1996 in an academic setting. I care about the language I can use now, not the one I didn't use.

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

I've written type-equality witnesses in F#, they can kinda recover type equalities (with cast methods) but not refute them, so you still need to raise exceptions for those cases.

comment 1y ago · link · parent

It's a matter of trends: F# is losing compatibility with the overall CLR ecosystem due to the churn in C# features with poor F# interop, but F# has already mingled its design with the CLR's, too much to live on its own as a native language. Plus its compiler is slow and the tooling is getting increasingly unstable.

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

Shadowing is not mutability. The former isn't affected by control flow nor does it affect closures.

comment 1y ago · link · parent

That's the repo, Jane Street has rebranded their OCaml fork to OxCaml (as in oxidised, Rust-like). From the readme:

> 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

That makes a lot more sense: The earliest 5.x releases weren't stable at all despite the non-prerelease version numbers. I waited for longer than I wanted to before upgrading from the LTS to 5, but right now it should be ok to switch as long as the few regressions, like the GC pacing issue, don't affect you workload.

comment 1y ago · link · parent

Eio didn't exist before multicore OCaml actually, it was designed for it.

comment 1y ago · link · parent

> you can code a segfault starting in ocaml5

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

> However, none of the other passwords associated with my address were familiar.

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

> when people spend so much time building something

I do not think that much human time was spent on this actually.

comment 1y ago · link · parent

Two games I'd strongly recommend in this style are Your Only Move is HUSTLE (YOMI Hustle for sort), moddable multiplayer turn-based stick fights; and One Finger Death Punch, fast-paced brawler with a really simple control scheme.

Many people use the former purely to make animations.

comment 1y ago · link · parent

It already was the default for SteamOS, but not for overall Linux until recently, I believe.

comment 1y ago · link · parent

Is this because they're that famous though or simply because there weren't as many people in the scene back then? We just don't do the initials thing anymore.

comment 1y ago · link · parent

Microsoft already designed a modified ARM ABI [1] compatible with emulated X86-64 just for this transition. But it's a Windows 11 feature. I wonder if the refusal of many of us to switch from Windows 10 is part of the reason why they're still idling on an ARM strategy.

[1]: https://learn.microsoft.com/en-us/windows/arm/arm64ec-abi

comment 1y ago · link · parent

Won the election here means 22.94% of the vote, not long after having polled at 5%. He didn't even have a party.

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

Thanks for clarifying, I had found a past HN comment stating they are the same.

comment 1y ago · link · parent

It or something similar has apparently been upstreamed to clang as -fbounds-safety. I don't know if they're the same, but the RFC on -fbounds-safety does give some credit to the author of Fil-C, who also took credit for firebloom on this thread as well.

comment 1y ago · link · parent

I was quoting the interview, blame John Oliver.

comment 1y ago · link · parent

Tiny Glade is a great sandbox that must not have been easy to implement, game or not.

However, it doesn't even use Bevy's renderer, but their own: the devs mostly just care about its ECS. So it definitely isn't the showcase Bevy is looking for.

comment 1y ago · link · parent

Microsoft is selling the ESU in cumulative year-long batches, so they're only offering Year One for free for now. But depending on how many people are left on Windows 10, it wouldn't surprise me if they extend it by Year Two just to stay clear of the Digital Markets Act.

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

Organisations of all kinds did, and now ESU updates are free for consumers in the EU: Microsoft conceded that they had to be according to some EU directive, although it was related to software and not to environmental factors.

comment 1y ago · link · parent

You're assuming that that particular set of universes is possible. Maybe it hasn't happened because getting them to agree is not scientifically possible.

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

> Asahi will probably be so far behind that it wouldn't even matter.

Why would they fall behind? Asahi caught up from scratch the first time, they might catch up again. Maybe not for every new model, but they can simply skip some of them if forced to prioritise.

comment 1y ago · link · parent

Note that VST3 doesn't implement the COM vtable layout, their COM-like FUnknown really is just 3 virtual methods and a bunch of GUIDs. They rely on the platform's C++ ABI not breaking.

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.

1
192021
42