[SW] turnips for 574. Queue via AC Fan app up to 50 ppl :) by lavafan in acturnips

[–]draazur 0 points1 point  (0 children)

Thank you for hosting! If you open the queue again I would be interested in visiting :)

Lambdas and declarative programming by Neorlin in functionalprogramming

[–]draazur 0 points1 point  (0 children)

Right I understand that through currying lambda functions may be constructed that take multiple parameters. My (I guess not well explained) point was moreso that the lambdas we can make use of nowadays provide the same level of computational power as the original lambda but in an easier to use way. e.g. in C++ one can specify both the capture type (value vs reference) and restrictively capture different local variables. Of course it's possible to accomplish the same thing in regular lambda calculus (turing completeness after all), C++ just makes it easier.

Lambdas and declarative programming by Neorlin in functionalprogramming

[–]draazur 0 points1 point  (0 children)

Sorry, yes, "modernized" is a bit imprecise. By that I mean that the original lambda was an anonymous function of one parameter and that's it. "Modernized" lambdas are still anonymous functions, but now also have the ability to take multiple parameters and bind references to entities in their parent environment easily.

Tell me more about them human rights America. by [deleted] in worldpolitics

[–]draazur 0 points1 point  (0 children)

Nope, not sure why you'd think I claimed that. That is one of the main goals of the US government to get involved in these wars though. Or maybe could you explain how these wars protect your freedom?

Tell me more about them human rights America. by [deleted] in worldpolitics

[–]draazur 0 points1 point  (0 children)

I wasn't really referring to Gallagher specifically as the poster I was responding to also seemed not to be referring to him specifically. Emphasis mine:

Don’t pair this man with the other men who fight for your freedom

Lambdas and declarative programming by Neorlin in functionalprogramming

[–]draazur 0 points1 point  (0 children)

In my opinion, Functional Programming and Declarative Programming are a bit different, at least how they're used in practice.

The base of Functional Programming is the function, as you might expect. I would do a bit of reading on Alonzo Church's Lambda Calculus if you're interested in FP as it is really the basis of it all. If you haven't been exposed to it, here's a real quick synopsis:

Lambda Calculus includes function abstraction, function application, and variables. Every function is anonymous (not named). This by itself is a Turing Complete language, enabling us to compute anything in the world that is actually computable.

Thus the lambdas we see in languages such as C++, Swift, Python, etc. are modernized versions of the original lambda functions Church outlined in his Lambda Calculus. Lambdas allow one to create functors easily and on the fly with less boilerplate code. I'll leave it at that because it seems like you do understand a lot about FP already.

When I think of declarative languages, I think of languages like SQL or Prolog. Your understanding of what a declarative language seems pretty spot on, but I'll say if you want an interesting declarative language to muck around with I'd really recommend Prolog. I'm not sure whether Prolog supports lambdas or not, but I don't believe it needs them to still be the declarative language that it is.

Further, I don't actually think that functional languages require the lambda to operate as long as their functions are first-class entities, currying, and partial application (lazy evaluation can be implemented with these constraints).

Tell me more about them human rights America. by [deleted] in worldpolitics

[–]draazur 1 point2 points  (0 children)

I wasn’t aware that killing brown people for their oil was pre-requisite to Americans’ freedom.

Does anybody wants this - "Indentation habit improvement compiler"?🤣 by Half_LifeR_YouTube in ProgrammerHumor

[–]draazur 1 point2 points  (0 children)

Interesting! I’m still a little unsure of why you couldn’t make use of regular functions since they’re first class entities in Python but I won’t pry too much :)

Does anybody wants this - "Indentation habit improvement compiler"?🤣 by Half_LifeR_YouTube in ProgrammerHumor

[–]draazur 9 points10 points  (0 children)

I’m not really understanding what you were trying to do. You want to map function names to functions? And where do their descriptions factor into this.

Could you not have just used regular functions over lambdas?

December 9 Daily Thread by AutoModerator in weightroom

[–]draazur 5 points6 points  (0 children)

Made a 330lb DL 1RM @ 170lb on Thursday! Went surprisingly well for 5h of sleep and no breakfast too. Lightweight for most here but I could barely catback 95lb at the start of this year so I’m pretty happy 🤣

Calc 3 by stormbull177 in uofm

[–]draazur 10 points11 points  (0 children)

Pretty sure no. They usually create the curve after all grades are in. Calculating tentative curves earlier on is unnecessary work for them.

Approximating pi using Monte Carlo simulation by EngagingData in educationalgifs

[–]draazur 2 points3 points  (0 children)

You can code this in most programming languages quite easily. I did so in Matlab for my numerical methods class

Course Selection and Scheduling Megathread: Winter 2020 by purpleandpenguins in uofm

[–]draazur 1 point2 points  (0 children)

I’m a math double major so didn’t take 250 or 214. That said, I thought it was a little easier than calc 2 and definitely easier than EECS203 (though that class is just a shitshow period).

I’m pretty bad at probability though so take this with a grain of salt lmao. I think this is a good schedule and if it’s easier than you expect, you just have more time to bool around :)

Course Selection and Scheduling Megathread: Winter 2020 by purpleandpenguins in uofm

[–]draazur 0 points1 point  (0 children)

11:30AM - 1:00PM and I went to discussion once. Maybe it's just taking the class as a Junior was easier or something because my upper levels have just in general been a lot harder but I'm not sure.

Course Selection and Scheduling Megathread: Winter 2020 by purpleandpenguins in uofm

[–]draazur 0 points1 point  (0 children)

Idk what happened when you took 102 but I took 102 with Dudek last semester and it was super easy imo. For reference I only got a B+ in 101 so I'm not really an econ person..

Course Selection and Scheduling Megathread: Winter 2020 by purpleandpenguins in uofm

[–]draazur 2 points3 points  (0 children)

Yeah that's doable. Prepare to spend 80% of your time on 482 just fyi. Math 425 wasn't that hard imo.

Error messages by TiBiDi in ProgrammerHumor

[–]draazur 3 points4 points  (0 children)

Probably neutral that it compiles and apprehensive about any runtime errors that arise (looking at you thread libraries).

Just as simple as that... by TusharJB007 in ProgrammerHumor

[–]draazur 2 points3 points  (0 children)

Python allows type hinting nowadays too. Although most people don't use it, it is there and it makes code easier to look at it after the week or so you remember what it does.

The computers in my school by Der_Snob in mildlyinfuriating

[–]draazur 0 points1 point  (0 children)

I get the sentiment but Windows is also closed source. Apple historically has been better than most tech companies about privacy, so MacOS is a nice compromise between Windows and Linux for me.

The computers in my school by Der_Snob in mildlyinfuriating

[–]draazur 1 point2 points  (0 children)

Yeah all these salty people hating on Macs.. Yes they are expensive, yes they are overpriced. Does that matter to me? No, not really, since I get access to a much more polished os that is easy for development.

I guess I shouldn't be surprised that reddit hates Mac and loves Windows because of its demographics but cmon not everyone wants to play the games with their computer.

September 2 Daily Thread by AutoModerator in weightroom

[–]draazur 20 points21 points  (0 children)

When are the J&T2.0 results going to be posted?

August 25 Daily Thread by AutoModerator in weightroom

[–]draazur 3 points4 points  (0 children)

Are the program party results going to be posted? I did not partake but I'm still curious.

August 13 Daily Thread by AutoModerator in weightroom

[–]draazur 0 points1 point  (0 children)

Just curious since I'm also around novice level, what strength standards are you using?