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

Advertising has existed for centuries, I'm sure it can survive as an industry without requiring invasive tracking.

comment 1y ago · link · parent

This happens often in comment threads, one comment uses an uncommon word and the entire thread goes along with it.

comment 1y ago · link · parent

AFAIK Microsoft's API is still a previous iteration not compliant with the standard annex K.

comment 1y ago · link · parent

By "static analysis" you mean unsound, best-effort analyzers which try to study code as-is, rarely allow extra annotations, and tolerate false negatives and even positives by design.

While these are a huge improvement over no extra tooling, they don't compare to analyzers like Frama-C plugins, which demand further annotations/proofs if necessary to show code is free of UB, and you can provide further to show your code is not just safe, but correct. Assuming one doesn't ship rejected code, the latter is pretty much its own language with much stronger guarantees, much like SPARK is to Ada.

I like sanitizers and other compiler-specific guarantees, they at least try to fill the gaps by giving proper semantics to UB. But the ones available for C are still insufficient, and some are very resource-heavy compared to just running safe code. I'm excited about Fil-C showing a path forward here.

comment 1y ago · link · parent

I consider code written in Frama-C as a verifiable C dialect, like SPARK is to Ada, rather than C proper. I find it funny how standard C is an undefined-behaviour minefield with few redeeming qualities, but it gets some of the best formal verification tools around.

comment 1y ago · link · parent

How can anyone be this interested in maintaining an annex k implementation when it's widely regarded as a design failure, specially the global constraint handler. There's a reason why most C toolchains don't support it.

https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1967.htm

comment 1y ago · link · parent

About .kkrieger's trimming, I had only heard that they forgot to press up on the main menu so it doesn't work, not about the damage thing.

comment 1y ago · link · parent

And yours redundant, I made that clear already.

> nitpick

> to find faults in details that are not important

comment 1y ago · link · parent

And part of the Corp's profits fund the Foundation, not the other way around. We get a discussion about this every few months in the HN comments, in case anyone wants to look it up.

comment 1y ago · link · parent

The author probably doesn't care.

To be clear I don't think the author's point on updates is such a good idea and that's an example of why, but I understand they require a level of trust on the developer that many, many companies haven't earned.

comment 1y ago · link · parent

> kids playing in a sandbox with non-profit money

Nitpick: Firefox is developed by Mozilla Corp., not the non-profit.

comment 1y ago · link · parent

Did you mix up unsigned and signed by mistake? Because in C and C++, the wrapping one is unsigned and the here-be-dragons-on-overflow one is signed.

comment 1y ago · link · parent

The article kinda covers that already:

> If I need an update, I will know it: I’ll encounter a bug or a lack of functionality. Then I’ll go and update.

comment 1y ago · link · parent

It's not just aesthetic, I keep seeing games with color banding because they don't bother to dither before quantizing.

comment 1y ago · link · parent

I largely agree, that's why I've still got all of it stored away, but I guess I'd like to keep track of what is it that I'm not using, what can I delete and what can I deduplicate.

comment 1y ago · link · parent

Brevity maybe, but ease of understanding no. Copyleft licenses interact with copyright law in ways that permissive licences just don't need to. The closest you can get is probably MPL-2.0.

The GPL is particularly bad here as it pretends to define what is or isn't a derivative work, which is outside the scope of a licence but within the scope of a court. The EUPL was created partly because EU directives bound the viral clause in ways the FSF won't admit to, although that one isn't simple either (I'm not a fan of its compatibility clause).

comment 1y ago · link · parent

I've been telling myself I'll organise my now 4 layers nested stuff folders for 15 years.

A bit off-topic, but can anyone recommend tools to organise this much random stuff?

comment 1y ago · link · parent

Supporting as in maintenance mode, at least VB.NET. Thankfully F# is more community driven, but the CLR ecosystem is definitely getting C#-centric in the use of idioms and features from newer C# versions, which increasingly affects F# interop while they catch up.

comment 1y ago · link · parent

They couldn't get it right because Visual Studio for Mac was actually a rebranded MonoDevelop, an entirely different IDE than Visual Studio.

comment 1y ago · link · parent

Teams is not older than MAUI because MAUI was mostly a rebrand of Xamarin Forms.

comment 1y ago · link · parent

In 2025 that would be iOS rather than macOS, several artists I know love Procreate.

comment 1y ago · link · parent

Try reading Turing's thesis before making that assertion, because the imitation game wasn't meant to measure a tipping point of any kind.

It's just a thought experiment to show that machines achieving human capabilities isn't proof that machines "think", then he argues against multiple interpretations of what machines "thinking" does even mean, to conclude that whether machines think or not is not worth discussing and their capabilities are what matters.

That is, the test has nothing to do with whether machines can reach human capabilities in the first place. Turing took for granted they eventually would.

comment 1y ago · link · parent

I don't know much about tapes but it seems to apply, since the post mentions it:

> I'm hoping I don't have to bake it, since that takes a day

comment 1y ago · link · parent

Okay but that's not a wiki. Wiki implies pages can be collaboratively edited and linked. Otherwise it's not a wiki, it's just a website. The only collaboration here is to bait people into becoming maintainers and fix the hallucinated content.

More than one maintainer has shown frustration at that site making up wrong documentation already.

comment 1y ago · link · parent

First off, the escape hatches in TypeScript are way too accessible compared to OCaml: `JSON.parse(...) as MyInterface` is everywhere and completely broken.

And second, you're dismissing the fact that TypeScript is unsound, even worse it is so by design. Easy examples: uninitialized variables holding undefined when their type says they can't [1]; array covariance [2]; and function parameter bivariance, which is part of the TypeScript playground's own example on soundness issues [3] but at least this one can be configured away.

C# and Java made the same mistake of array covariance, but they have the decency of checking for it at runtime.

[1]: https://www.typescriptlang.org/play/?#code/DYUwLgBAHgXBB2BXA... [2]: https://www.typescriptlang.org/play/?#code/MYewdgzgLgBAllApg... [3]: https://www.typescriptlang.org/play/?strictFunctionTypes=fal...

As for your example, I agree that TypeScript unions and singleton types are powerful, but I can't see what are you speficially missing here that pattern matching and maybe an additional variant type doesn't get you in OCaml. You get exhaustiveness checking and can narrow the value down to the payload of the variant.

comment 1y ago · link · parent

Many learning materials will push you that way, but the vast majority of FOSS packages don't use it.

There's nothing inherently wrong with using Jane Street's stdlibs if you miss the goodies they provide, but be aware the API suffers breaking changes from time to time and they support less targets than regular OCaml. I personally stopped using them, and use a few libraries from dbunzli and c-cube instead to fill the gaps.

comment 1y ago · link · parent

But the Reason example you shared is almost valid TypeScript already!

https://www.typescriptlang.org/play/?#code/DYUwLgBAHgXBAUBDO...

I've seen JS using lambdas instead of classic functions like that in the wild. And that Reason can be made more JS-idiomatic without changes to the syntax:

    let x = (a: int, b: int): int => a + b;
1
181920
42