Readit News logoReadit News
cognisent commented on RE#: how we built the fastest regex engine in F#   iev.ee/blog/resharp-how-w... · Posted by u/exceptione
shmolyneaux · 12 days ago
That's noted further down the page:

- `_*` = any string

cognisent · 12 days ago
I guess _ is trying to be like, "No, really, anything," while . has some limitations?
cognisent commented on RE#: how we built the fastest regex engine in F#   iev.ee/blog/resharp-how-w... · Posted by u/exceptione
cognisent · 12 days ago
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 commented on Pebble Round 2   repebble.com/blog/pebble-... · Posted by u/jackwilsdon
thedangler · 2 months ago
Bring back Pebble Steal. I lost my original and got the pebble time 2 but its just not the same.
cognisent · 2 months ago
You can get a Pebble Steal next time you see someone wearing one in public...
cognisent commented on The shadows lurking in the equations   gods.art/articles/equatio... · Posted by u/calebm
cognisent · 4 months ago
> 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 commented on America Is Sliding Toward Illiteracy   theatlantic.com/ideas/arc... · Posted by u/JumpCrisscross
JumpCrisscross · 5 months ago
> Why have grades at all? Instead, have a directed graph of skills that you need to advance through

FTA: "Elements of so-called equitable grading, which is supposed to be more resistant to bias than traditional grading, have taken off in American schools. Roughly 40 percent of middle-school teachers work in schools where there are no late penalties for coursework, no zeroes for missing coursework, and unlimited redos of tests."

> It would remove the stigma of "being held back", as there are no levels in a strict sense, just cumulative progress

These students do worse. Absent a challenge, you get the pedagogical equivalent of button mashing. Evaluation is a necessary component of progress. It seems that if the evaluation is stripped of consequence, it ceases to evaluate.

cognisent · 5 months ago
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 commented on The language brain matters more for programming than the math brain? (2020)   massivesci.com/articles/p... · Posted by u/smusamashah
Jtsummers · 10 months ago
How much math is in a typical CS program these days? Calc 1-3 (maybe 3, varied by school), Linear Algebra, Statistics (inconsistent across programs), Discrete were pretty much it when I was in school 25+ years or so ago. That's only 4-6 courses depending on the university, though some where the CS dept was more strongly associated with an engineering college might have added Diff Eq and others. (I got interested in CS education and reviewed a lot of curricula in the US at the time, this is from memory.)

Some schools like MIT might have required more, but on average what I wrote was about it. Has it increased since then? Based on the new hires I've seen the last decade I'd have guessed the math requirements were mostly the same.

cognisent · 10 months ago
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 commented on Exploring Polymorphism in C: Lessons from Linux and FFmpeg's Code Design (2019)   leandromoreira.com/2019/0... · Posted by u/dreampeppers99
williamdclt · a year ago
I don’t agree it’s a structural VS nominal difference. Typescript is structural, but it does have the “implements” keyword.

Which makes a million times more sense to me, because realistically when do you ever have a structure that usefully implements an interface without being aware of it?? The common use-case is to implement an existing interface (in which case might as well enforce adherence to the interface at declaration point), not to plug an implementation into an unrelated functionality that happens to expect the right interface.

cognisent · a year ago
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'));

u/cognisent

KarmaCake day8February 27, 2025View Original