Better HN
topnewbestaskshowjobs
Log inSign up

debugnik

2,570 karma · joined May 8, 2019 (7y ago) · 1,261 submissions

Submissions

comment 1y ago · link · parent

Really? In my experience, Le Chat eventually devolves into spanglish when trying to speak Spanish, so I would have expected worse from Mistral for minority languages.

comment 1y ago · link · parent

Your head of government appointed a member of that commission, though. For better or worse, it's similar to that same head of government being appointed by the people you actually voted for in a parliamentary system (but two steps removed).

comment 1y ago · link · parent

No, the company the creators worked for. And six years later they hired Armstrong again and silently lifted the ban.

comment 1y ago · link · parent

Here's the most basic error handling to implement, which I learned from studying FParsec:

1. Keep a collection of errors in the stream. It represents errors at the current position.

2. Clear all errors when input is consumed.

3. When a token-like parser fails without consuming input, push an "expected '<literal>'" error.

4. When a labeled parser fails without consuming input, restore the error set as it was before running it, and push an "expected <label>" error instead.

This will naturally accumulate errors from choice and repetition combinators, as long as you don't have needless backtracking before the choice points.

So this already gives you reasonable errors like "foo:17:4: expected one of expression, assignment or 'end'". And it's easy to extend to nested errors, backtracking information or recoverable nodes.

comment 1y ago · link · parent

> Performance problems like the GTA loading bug are hard to quantify.

Loading times over 6 minutes for 1/3 of the playerbase (according to a poll linked in the original post about that bug) are not hard to quantify, that's disastrous. Many people would simply quit and play something else at that point.

comment 1y ago · link · parent

What variability? Lua can be easily sandboxed to not take any inputs: Running it would express the same manifest. And most Lua configurations would still read declaratively unless they needed extra the complexity.

I just think it's a shame that the manifest file for Lua projects would be in a language other than Lua itself. I'm more sympathetic to other trade-offs, though, such as being able to edit the file mechanically.

comment 1y ago · link · parent

I'm excited to check it out, but why does this use a .toml file when Lua was already designed for configuration files? Why isn't it just a Lua script?

comment 1y ago · link · parent

You didn't link to [0].

comment 1y ago · link · parent

> IMO any change to copyright law should not be applied retroactively.

Careful, if we were to shorten copyright, not doing so retroactively would give an economic advantage to franchises already published over those that would get published later. As if the current big studios needed any further advantages over newcomers.

comment 1y ago · link · parent

> If you havent played game at all most likely Steam will just accept return in much wider return window

I believe late refund requests are forwarded to the publisher for them to judge.

comment 1y ago · link · parent

To be fair, Mozilla's org naming has proven itself confusing. Half my HN karma must be pointing out the difference between the Foundation and the Corporation when people talk about "donating to Firefox".

comment 1y ago · link · parent

The build system is exactly the same as C#, MSBuild with its .NET SDK, and syntax and community are entirely subjective; F# has the least weirdo community I've personally seen for an FP language. Weak arguments to say the least.

I'll give you the chicken-and-egg hiring problem and it being second-class to the .NET team, though; I'd add poor IDE support by modern standards, only Rider feels right. I love F# but I've moved on for these reasons.

comment 1y ago · link · parent

> with gradual typing

Isn't gradual typing widely understood to mean "gradual between static and dynamic", which F# certainly isn't?

comment 1y ago · link · parent

> F# is where the language designers can push the boundaries

It really isn't, not anymore. F# now evolves conservatively, just trying to remove warts and keep up with C# interop.

And even then some C# features were considered too complex/powerful to implement (e.g. variance, scoped refs) or implemented in weaker, incompatible ways when C#'s design is considered messy (e.g. F#'s non-nullable constraints disallow value-types, which breaks for some generic methods written in C#, sadly even part of the System libs).

comment 1y ago · link · parent

Yes mixing is just like with VB.NET.

When mixing, you often write business logic as self-contained F# libraries with a C#-friendly API; and use C# to integrate them with whatever imperative, reflection-heavy and DI-heavy frameworks .NET is promoting the current year, since those are filled with interop edge cases for F# anyway.

You really want to avoid a language sandwich though (e.g. C#/F#/C#), because you'll keep wishing to remove the middle layer. Sadly, the addition of source generators make this mistake even more appealing.

comment 1y ago · link · parent

You're confusing covariance itself with having covariant mutable collections. The former is a great feature, the latter a design mistake that makes the type system unsound.

comment 1y ago · link · parent

We're most of the way there with the switch to web apps and their native wrappers, even Microsoft isn't using their own UI toolkits anymore.

The only segments left targeting Windows as a platform are games, replacements/extensions to the OS tools, and a bunch of legacy .NET LOB apps. And since the Steam Deck and clones, Wine/Proton are (very) slowly becoming the actual target for games rather than Windows.

comment 1y ago · link · parent

OCaml's opam does have a review process, although I'm not sure how exhaustive. It's got a proper maintenance team checking for package compatibility, updating manifests and removing problematic versions.

I don't think this would be viable if the OCaml community grew larger though.

comment 1y ago · link · parent

> There isn’t a monolithic “CRDT” in the way you’re describing.

I can't blame people for thinking otherwise, pretty much every self-called "CRDT library" I've come across implements exactly one such data structure, maybe parameterized.

It's like writing a "semiring library" and it's simply (min, +).

comment 1y ago · link · parent

Not just an online gag, that's related to an excerpt of an alleged December 1997 issue of "Association of Air Force Missileers" on the GLCM Guidance System. Likely submitted in jest.

https://web.archive.org/web/20050514035446/http://www.afmiss...

comment 1y ago · link · parent

Yeah City is the only strong one, I just think it would take a lot of work to turn these generic themes into actual franchises capable of holding a large game studio afloat. Hence why TT mostly sticks to third-party licenses.

Undercover might have been good, I haven't played, but I'm sure originally releasing on Wii U did it a disservice. Do you think there's some design formula or lesson in it for future original Lego games?

comment 1y ago · link · parent

> They all tried with new unknown franchises.

Does Lego still have any strong original franchises, though? It seems most of their set themes are third-party licenses now, and their original themes can't hold a candle to e.g. Bionicle back when I was a kid.

Then again their most popular games were all Lego Star Wars.

comment 1y ago · link · parent

> they should also argue functions should only take one argument, and use tuple destructuring to break it apart within the function

You say that as an hypothetical, but that's exactly how code is written in Standard ML; and the rest of the ML language family supports it to some degree, although they lean more on currying, like Haskell.

comment 1y ago · link · parent

Microsoft's implementation has been cross platform for almost a decade now. You're way too late to the Mono FUD party.

comment 1y ago · link · parent

> Newer .net features like spans and ref structs are missing with no clear path to implementation

Huh? They're already implemented! It took years and they've still got some rough edges, yes, but they've been implemented for a few years now.

Agreed with the rest, though. As much as I love working with F#, I've jumped ship.

comment 1y ago · link · parent

Mono did implement WinForms, and they separately worked on a Silverlight implementation.
1
282930
43