HNHacker News
TopNewBestAskShowJobs

Defletter

780 karma · joined May 14, 2021

submissionscomments
Defletter··on Bun's experimental Rust rewrite hits 99.8% test compatibility on Linux x64 glibc
Exactly
Defletter··on We've raised $17M to build what comes after Git
Uhh, to be fair, if the goal was only to recreate git from 2005, it probably wouldn't cost $17M. I'd hazard a guess that they're recreating modern git and the emergent stuff like issues, PRs, projects, etc. I've also heard that the core devs for git are essentially paid a salary to maintain git.
Defletter··on Lisette a little language inspired by Rust that compiles to Go
It's comments like this that remind me of the conciseness-at-all-costs dogma: that people genuinely treat indentation as some kind of eldritch horror; that they would genuinely prefer "impl X" becoming "impl Y for X" (thus making it difficult to parse at a glance because the target keeps shifting places) over it. It's bewildering.
Defletter··on Lisette a little language inspired by Rust that compiles to Go
These don't seem like insurmountable challenges though. Unnamed impl blocks could work entirely within requirements. There could also be a lint to warn about any fields that are below trait definitions.

    struct Example {
        number: i32,
    }

    impl Example {
        fn boo() {
            println!("boo! Example::boo() was called!");
        }
    }

    trait Thingy {
        fn do_thingy(&self);
    }

    impl Thingy for Example {
        fn do_thingy(&self) {
            println!("doing a thing! also, number is {}!", self.number);
        }
    }
This could be expressed as:

    struct Example {
        number: i32,

        impl {
            fn boo() {
                println!("boo! Example::boo() was called!");
            }
        }

        impl Thingy {
            fn do_thingy(&self) {
                println!("doing a thing! also, number is {}!", self.number);
            }
        }
    }

    trait Thingy {
        fn do_thingy(&self);
    }
Keeping related things together is just infinitely more readable, in my opinion. In fact, the confusing nature of "impl <struct>" becoming "impl <trait> for <struct>" is obviated by internal impl blocks. Keeping them separate just seems so artificial, if not downright dogmatic.
Defletter··on Lisette a little language inspired by Rust that compiles to Go
Something that I don't understand about Rust, or these rustylangs, is the insistence of separating structs and methods. Don't get me wrong, I like named-impl blocks, but why are they the only option? Why can't I put an unnamed-impl block inside the struct? Or better yet just define methods on the struct? What's the point of this and why do these rustylangs never seem to change this?
Defletter··on Artemis II crew take “spectacular” image of Earth
It's one of those stark reminders that there's no such thing as up or down in space, and something that disabuses me of the notion that I can truly comprehend "the enemy gate is down".
Defletter··on C++26 is done: ISO C++ standards meeting Trip Report
Contracts are a good idea, but I find the implementation of them to be clunky. I'd much rather contracts be part of the type system than as function signatures. Using the example in your earlier link, instead of defining day's 1..31 range within the Date-struct invariant, you'd instead declare a "day" type that's an int whose value cannot exceed 31 or be less than 1. This would be checked and enforced anytime a variable of the type is [re]assigned, set as a field, or passed-in as a parameter.
Defletter··on C++26 is done: ISO C++ standards meeting Trip Report
"People" doesn't include me then. I had no idea that D had this feature for quite some time, despite using it fairly often in Zig, because when considering what the equivalent would be to search for, my brain somehow didn't make the leap to the keyword that represents literally nothing. Or as your Google search result says, "representing a state of absolute vacancy or lack." A less inappropriate use of "= void;" would be to zero-out something. I honestly find D's continual misuse of keywords like this to be really off putting and a contributing factor as to why I've stopped using it.
Defletter··on C++26 is done: ISO C++ standards meeting Trip Report
But then why did you add your contract system to D? You implemented your contract system in the "early 90's", and D was released in 2001, so that's near a decade of "nobody wanted it". So then why add them as a core language feature of a new programming language if no one wanted it? Why is it still a core language feature? And why object to C++ finally adding contracts. I just don't get what you're even arguing here.
Defletter··on C++26 is done: ISO C++ standards meeting Trip Report
It should copy Zig's '= undefined;' instead of D's '= void;' The latter is very confusing: why have a keyword that means nothing, but also anything? This is a pretty common flaw within D, see also: static.
Defletter··on PC Gamer recommends RSS readers in a 37mb article that just keeps downloading
Yup, I keep mine enabled at all times. Anytime I've tried selectively disabling them, I get burnt with increasingly intrusive ads. I might be convinced to enable some kind of "ethical ads" filter that only permits ads are known to be unobtrusive and not track, but then you need to trust that whoever maintains that list wont succumb to incentives.
Defletter··on We rewrote our Rust WASM parser in TypeScript and it got faster
Would you be willing to give an example of this?
Defletter··on Bill C-22, the Lawful Access Act: Dangerous backdoor surveillance risks remain
> it takes centuries to completely override them.

To completely override them? Sure, but that's an odd criterion since one of the US's biggest issues is the unequal protection of rights. I have never seen a society so rhetorically obsessed with individual rights and freedoms, and yet so submissive to authoritarianism that failure to "just comply" is enough to justify summary execution in the streets (eg: Alex Pretti and Renée Good).

Again, this post is about Canada attempting to pass a bill to facilitate mass surveillance, which "freediddy" (yikes name btw) responded to by expounding upon the loftiness of American constitutional rights, as if America is not one of the most extreme mass surveillance states. It's as if Canada's attempt to pass the bill is more offensive than the mass surveillance itself, ie, it's just virtue theatre.

Defletter··on Bill C-22, the Lawful Access Act: Dangerous backdoor surveillance risks remain
Except that's not really true, is it? It may be the flavour-text of US tradition that the government is protecting your rights rather than bestowing them, but the outcome is the same. Nor is the US government particularly fastidious about protecting them: one need only ask the average person of colour whether they feel equally protected under the law.

It is your Declaration of Independence that recognises inalienable rights endowed by one's creator, not the Constitution, and is thus legally unenforceable. We know this because none of the rights enshrined in the Constitution are actually inalienable. For example: the First Amendment says that Congress can make no law prohibiting the right to peacefully assemble... but then how does federal incarceration work? The US has one of the largest mass-surveillance apparatuses in the world despite the Fourth Amendment. The President has also attempted to end birthright citizenship via decree, something which your Supreme Court is currently entertaining instead of immediately overturning as patently unconstitutional.

There's a common refrain that rights do not exist without remedies. Whether rights are given by one's deity or by one's government is immaterial: if you cannot remedy a violation of a right, that right does not exist. While I can certainly agree that certain systems do not entrench rights as much as they should (here in the UK, all our rights persist at the whims of a simple majority), words on a page matter less than access to remedies.

Defletter··on Canada's bill C-22 mandates mass metadata surveillance
Have to wonder whether Jordan Peterson will incite as much of a panic about this as he did with C-16.
Defletter··on Digg is gone again
Sure, just be aware of what you're up against: if religion teaches us anything it's that even concerted, systematic efforts over millennia to conquer human nature (eg: libido) still fail. But if you want to give it a go, by all means: one can only imagine Sisyphus happy.
Defletter··on Digg is gone again
Oh that's just human nature: there's a reason why trashy tabloids continue to exist despite how public sentiment seems to universally agree that they're awful spreaders of rumour and insecurity. More people are Skankhunt42 than we'd like to admit.
Defletter··on The government uses targeted advertising to track your location
One problem is that such information can be useful for non surveillance purposes, for example: how they knew certain roads were congested before GPS was the mobile networks. I personally do not see anything nefarious about this, nor would I necessarily wish to see this kind of information as uncollectable. Such things are different from tracking specific individuals, yes, but it's not that different. It then becomes a matter of what, how much, and for what purposes the information can be collected, which can be somewhat moot since the government in all likelihood will give themselves an opt out anyway.

None of this is to say that we shouldn't try, or that it's futile, but rather that it's a daunting task: the only way to really defeat this is to not only regulate private entities but also the government itself. And the only way to do that is to make such surveillance political suicide. And the only way to do that is to get the people to care about privacy. Here in the UK, the public has more or less come to accept CCTV cameras being everywhere, with the government now introducing AI face-scanning cameras, which has not been met with much public resistance. And so I do have to echo what @everdrive said: "We've done this to ourselves". Whether it's about convenience or apathy or whatever, we've had the means to object to this and we haven't.

Defletter··on The government uses targeted advertising to track your location
Fun fact, generalisations can still exist even if they don't 100% apply to literally everybody.
Defletter··on Git's Magic Files
Huh, TIL
Defletter··on Git's Magic Files
I have this two liner as part of my post-os-install setup script:

    curl -fsSL https://www.toptal.com/developers/gitignore/api/linux > ~/.gitignore
    git config --global core.excludesFile ~/.gitignore
Defletter··on How far back in time can you understand English?
This is something I struggle with on a semi-regular basis since I'm fairly interested in our constitutional history, so documents like the Bill of Rights 1688/9[1], the Petition of Right 1627[2], etc, are not old or illegible enough to have been given modern translations (like the Magna Carta 1297[3]). As such, they can be difficult reads, particularly with their endless run-on sentences. Punctuation seems to have not been invented yet either.

- [1] https://www.legislation.gov.uk/aep/WillandMarSess2/1/2/enact...

- [2] https://www.legislation.gov.uk/aep/Cha1/3/1/enacted

- [3] https://www.legislation.gov.uk/aep/Edw1cc1929/25/9

Defletter··on Minecraft Java is switching from OpenGL to Vulkan
There is no "must use GC" mode, as far as I'm aware, but the footguns you describe only exist if the programmers opt-out of the GC. It's somewhat similar to using JNI/FFM in Java: it's possible to escape the safety of the VM. Though it's much easier to do so in D.
Defletter··on Minecraft Java is switching from OpenGL to Vulkan
I do wonder then how difficult it would be to mod games written in D
Defletter··on Ministry of Justice orders deletion of the UK's largest court reporting database
Would you mind elaborating on this new replacement system?
Defletter··on No Coding Before 10am
> Does it need an article for saying it?

Not for nothing but The Art of War includes really insightful quotes like "If you do not feed your soldiers, they will die."

Defletter··on Polis: Open-source platform for large-scale civic deliberation
It's pretty frustrating when something advertises itself as open source and yet there's no link to its source to be found. There's even a footer that says "Polis is powered by support from people like you. Contribute here." But it's just a financial donation link.
Defletter··on D Programming Language
Why is WASM a miserable platform?
Defletter··on Shut Up: Comment Blocker
Heh, this reminds me of that study that showed people would rather give themselves painful electric shocks than be alone.

https://www.science.org/content/article/people-would-rather-...

Defletter··on New York’s budget bill would require “blocking technology” on all 3D printers
Are you an anarchist by any chance? Because the logical conclusion to this argument is why anyone can "force" anyone else to do anything.
← PreviousPage 3 of 14Next →