Readit News logoReadit News
dialamac commented on Learning Ruby: Things I Like, Things I Miss from Python   medium.com/workpath-thewa... · Posted by u/OKRHero
inopinatus · 5 years ago
> I have no desire to engage

And yet,

> go full on neckbeard

Here you are,

> you seem to have balled up tightly in your own self worth

In full-on pompous balloon ad hominem mode,

> https://ruby-doc.org/docs/ruby-doc-bundle/Manual/man-1.4/fun...

With a reference page that is 22 years out of date,

> you can finish this argument with whatever hand you prefer

And a bitter, resentful, dick joke.

Well, I don't have a beard, and I ain't the dick here.

> How does one call a lambda after all

Why not fire up the interpreter and go

    f[x]
yourself.

Which is the title of this song.

POSTSCRIPT:

Oh look, a comment deleter / throws around shit / but too late for this meter / Yo' can check it all out / at https://inopinatus.org/i/all_the_sweeter.png

dialamac · 5 years ago
You win.
dialamac commented on Learning Ruby: Things I Like, Things I Miss from Python   medium.com/workpath-thewa... · Posted by u/OKRHero
inopinatus · 5 years ago
> "Functions in Ruby are methods"

RECORD SCRATCH. THE ROOM FALLS SILENT.

NARRATOR: A common assumption, but no. Equating object methods to functions is a furphy. The argument along the lines of:

"Ruby's object methods are Ruby's functions, but you can't pass them around, ergo they're not functions"

is using the term "function" in two different ways, but assuming they're the same; this is not an argument based on substance, but upon mislabelling. The conclusion is bogus because the premise is bogus.

It may arise from a category error, assuming that the thing depends intrinsically upon the literal representation of the thing, or (worse) the common name of the thing, but this is a) wrong anyway, and b) loses coherence entirely in a language in which function literals can be conjured and lexically rebound at runtime.

In actuality, Ruby's lambdas are functions, and first-class, by the only definition with substance: they are closures capable of higher-order expression, taking functions as parameters when invoked, and returning functions as results.

Which is why saying "it don't have them" on a forum named after a fixed-point combinator is to invite: a) ridicule, and b) lambda calculus expressions in rap battle form.

CROWD: Yeah!

MUSIC STARTS / GLITTERBALL CLOSEUP

dialamac · 5 years ago
I’m glad you think highly of your poetic abilities, but I have no desire to engage in that pointless argument.

Edit: and yes.. uh comment deleted as charged, since you had edited after I replied.

dialamac commented on Learning Ruby: Things I Like, Things I Miss from Python   medium.com/workpath-thewa... · Posted by u/OKRHero
inopinatus · 5 years ago
Yo bro dialamac / Caught in a falsehood / Tryin' to dial it back / Feels misunderstood / Sez lambda came late / But changelog don't lie / Since v0.8 / Ruby so fly.

Or, in prose form: I don't see anyone disagreeing that Ruby & Python are dissimilar both in principle and in practice, but "Ruby doesn't even have first-class functions" was most unreservedly an epic howler, and once played, folks were inevitably gonna have some fun passing that football around, and despite most of the changelog from 1995 being in Japanese there are nevertheless references to lambdas that early on, although the more concise "stabby" syntax didn't rear up until ca.2008.

dialamac · 5 years ago
[See screenshot]
dialamac commented on Learning Ruby: Things I Like, Things I Miss from Python   medium.com/workpath-thewa... · Posted by u/OKRHero
inopinatus · 5 years ago
new crew dialamac gotta be dissin / says Ruby first class functions are missin / tries it on in da y combinator / but

    y = -> f {
        -> g { g[g] } [
        -> g { f[-> v { g[g][v] }] }
      ]
    }
/ see ya later.

dialamac · 5 years ago
I’m amused that a number in this thread saw these observations as a “diss”... that’s more on you then me. I didn’t pass any value judgement on these differences, merely that they exist and demonstrate some fundamental differences in the history of these languages. While Ruby lambdas are essentially first class anonymous functions they were added late in the language and they are distinct from methods that predate them. You can’t just drop them in seamlessly where a method is used. The point stands that while both Ruby and python have accreted more stuff as time wears on, their initial design principles were starkly dissimilar.
dialamac commented on Done Answering Questions Stack Overflow   games.greggman.com/game/d... · Posted by u/polm23
CrazyStat · 5 years ago
I've often thought over the years that there was something to slashdot's moderation by randomly selected accounts, as it prevents a few power users from dominating.

Slashdot comments are pretty garbage these days though so maybe not.

dialamac · 5 years ago
I don’t think that is an indictment of the moderation system. You can’t replace a dead community with excellent moderation. Slashdot’s dead because it failed to produce worthwhile content and not be an even uglier pile of ass. The mod system can’t do anything about that.
dialamac commented on 'New car smell' is the scent of carcinogens   sciencealert.com/a-20-min... · Posted by u/samizdis
varelse · 5 years ago
So I have an allergy to Aloe. And it got blind tested one night when I slept on a friend's floor and woke up with a rash 100% unaware he used his Aloe plant right where I slept.

I also have whatever the hell the MSG allergy is, though obviously it isn't to pure MSG because they can't reproduce it with pure MSG (from which they conclude it doesn't exist), but if someone wants to throw money at figuring out its root cause from some sort of breakdown product or adulterant that travels with commercially produced MSG, I'm happy to be the guinea pig. The last time it hit, at a Chinese restaurant in SF, the left side of my body was nearly paralyzed. It is bizarre whatever it actually is. And the number of you-know-whats I give about randos taking it seriously or not is precisely zero.

A former co-worker would projectile vomit if exposed to avocado. I saw that get evaluated blind as well.

dialamac · 5 years ago
> The last time it hit, at a Chinese restaurant in SF,

Not to not take it seriously, but isn’t there a lot more stuff in American Chinese food other than MSG? Like of the 1000s of chemical substances that would be in a plate of Chinese food, why of all places would that be where you would isolate an MSG allergy?

> or adulterant that travels with commercially produced MSG

Then that wouldn’t be an MSG allergy. Oats are gluten free but celiacs have difficulty with them, not because of the oats but because of contamination.. we wouldn’t say they have an oat allergy though.

dialamac commented on Learning Ruby: Things I Like, Things I Miss from Python   medium.com/workpath-thewa... · Posted by u/OKRHero
dialamac · 5 years ago
> the language designs are so similar that I could just as well imagine a world where Python is the web development lingua franca, and Ruby has all the machine learning libraries.

Well aside from the startling implication that Ruby is a web development “lingua Franca.”...the latter statement is reasonable, as it turns out language design isn’t actually that important here. But the former is pretty far off the mark. I mean, Ruby doesn’t even have first class functions and is very strongly smalltalkish in its OO purism, it has mutable strings a-la Perl. The async story is obviously quite different. Python has a much more complicated interpreter, which has contributed to it being more difficult to get even simple optimizations that are done in Ruby. They’re really only similar in the most superficial sense... in the same way that all current dynamic interpreted languages will do certain things similarly.

dialamac commented on 78rpm Records Digitized   archive.org/details/georg... · Posted by u/Tomte
gruez · 5 years ago
> The trouble with digitizing analog mediums (especially vinyl) is how much your equipment can alter the sound. Given a different tonearm, cartridge, amp, etc, the same record can sound very different.

Would a scan done with a laser turntable[1] be better? The wikipedia article mentions that it produces a much better capture than regular tonearms, although they are much more susceptible to dust.

[1] https://en.wikipedia.org/wiki/Laser_turntable

dialamac · 5 years ago
Old 78 records were produced with equipment from recording to cutting and pressing that is long since obsolete. Even if you overcome the challenges of dealing with laser equipment (dust, tracking).. what extra information are you really getting?. that it is useful signal more than even a dB or two above the noise I think is very wishful thinking.
dialamac commented on 78rpm Records Digitized   archive.org/details/georg... · Posted by u/Tomte
css · 5 years ago
The trouble with digitizing analog mediums (especially vinyl) is how much your equipment can alter the sound. Given a different tonearm, cartridge, amp, etc, the same record can sound very different.

I’ve had some luck digitizing some of my collection with a DP-450 [0] and Ortofon Blue [1], but had higher end stuff end up sounding less interesting to my ears.

This is the trouble with audio in general: people not only prefer different sound profiles but also perceive sound differently, which makes it difficult to get rips (at least in my limited experience).

There is a lot of sibilance in the recordings I sampled from the OP link, whoever did the digitization would have benefitted from cleaner records, probably an anti-static brush, a fresh cartridge, and possibly some post-processing since they’re already digital. It’s better than nothing, of course, but it could be a lot better.

[0] https://www.denon.com/en-us/product/turntables/dp-450usb

[1] https://www.ortofon.com/ortofon-2m-blue-p-333

dialamac · 5 years ago
> This is the trouble with audio in general: people not only prefer different sound profiles but also perceive sound differently, which makes it difficult to get rips (at least in my limited experience).

The problem with worrying about this is that even the same person perceives sound differently situationally and is simply not repeatable. In most cases when someone hears a difference it is often just a change in their perception from one moment to the next.. and that’s even when something measurable has changed! The bass sounds better because of that new amp.. well no.. you just happened to focus on it more the second time around. Longer term people’s physiology changes as well.

Only repeat, blinded A-B testing can clearly elicit an objective difference that is most likely not due to these perceptual inconsistencies.

What does this mean.. record it with decent equipment that captures as much useful raw information as possible (and yes 96khz is ridiculous as we’re not bats). People can EQ and mix to their preferences any given day.

It’s not clear there was something wrong with the cartridge. These are old 78 records.. they weren’t mastered with much to begin with and the useful fidelity in them is limited. If you want you can post-process them with whatever fancy shit, but I wouldn’t immediately assume the recordings weren’t the best given what they were working with for source material.

dialamac commented on Comp.lang.c Google Group has been banned   groups.google.com/g/comp.... · Posted by u/veltas
sitkack · 5 years ago
This is hilarious because Google is probably the largest user of C++ and has the most people on the C++ standards committees .
dialamac · 5 years ago
This is about C, not C++. Though I haven’t been there in years, I chuckle to think what would have happened if you made this mistake on that news group.

u/dialamac

KarmaCake day277May 15, 2020View Original