HNHacker News
TopNewBestAskShowJobs

cognisent

11 karma · joined February 27, 2025

submissionscomments
cognisent··on Writing by hand is good for your brain
It's possible to download a marked-up PDF as a PDF from a Remarkable -- I can't speak for the others.
cognisent··on RE#: how we built the fastest regex engine in F#
I guess _ is trying to be like, "No, really, anything," while . has some limitations?
cognisent··on RE#: how we built the fastest regex engine in F#
One thing I don't understand is what does _* mean? It seems like the paper refers to .* (which I understand) and _* (which I don't) in sometimes the same context? Normally _* would mean "an underscore zero or more times".
cognisent··on Pebble Round 2
You can get a Pebble Steal next time you see someone wearing one in public...
cognisent··on The shadows lurking in the equations
> In this case, there is absolutely nothing to show on a conventional graph, as there are actual solutions to this equations.

I feel like this must be missing a "no", but also I'm bad at math, so maybe not.

cognisent··on America Is Sliding Toward Illiteracy
This is exactly how it is at my husband's high school: no penalties, no consequences, unlimited turning in of work until the end of the quarter. Didn't finish it all and ended up with a D or lower? Doesn't matter, because you can't be held back anyway.

Let's not even get into how kneecapped teachers are in classroom management. A student reported him for pointing at them and touching them when he was never fewer than 3 feet away pointing away from them. The students know they have the power now, and they're definitely not going to be told what to do.

cognisent··on The language brain matters more for programming than the math brain? (2020)
It was my grades in math that ultimately failed me out of my undergraduate CS program. My university had: Calculus 1, Calculus 2, Linear Algebra, Vector Geometry, Multi-Variable Calculus, Applied Combinatorics, Discrete Math, Differential Equations and maybe more that I don't remember. So many that CS majors could take one more math class and get a minor.

Yeah, I never thought this made sense, but so many people did; and, I always hear people on Slashdot talking about how programming IS math. None of that has been my personal experience, and I'm coming up on 21 years as software engineer. Discrete was the ONLY math course that I really enjoyed and did well in the first time around. For me, this always made sense.

cognisent··on Exploring Polymorphism in C: Lessons from Linux and FFmpeg's Code Design (2019)
TypeScript doesn't require a class to use it, though, because it's structurally typed. All that "implements Foo" in this example does is make sure that you get a type error on the definition of "One" if it doesn't have the members of "Foo".

If "Two" didn't have a "name: string" member, then the error would be on the call to "test".

    interface Foo {
        name: string
    }

    class One implements Foo {
        constructor(public name: string) {}
    }

    class Two {
        constructor(public name: string) {}
    }

    function test(thing: Foo): void {
        //...
    }

    test(new One('joe'));
    test(new Two('jane'));