dan

joined 1 year ago
[–] [email protected] 34 points 1 year ago

Yet more evidence that aggressive adblocking is cyber security.

[–] [email protected] 60 points 1 year ago (3 children)

Surely those broadcasters will pull their streams (it's not like they're not already hurting), FireTV will get a reputation of having restricted access to broadcast TV, some people will live with it and some will buy a smart TV and not worry about Amazon any more..

[–] [email protected] 1 points 1 year ago

The way it works is that there's a symbol table entry for "foo" which has a slot for a hash, scalar, array, glob, etc.

That leads to some super weird behaviour like, for example, if I declare a scalar, hash and array as "x":

$x = "sy";
%x = (foo => "mb");
@x = ("ol", "s!");

You can access them all independently as you're aware:

say "x: ", $x, $x{foo}, @x; # Outputs:  x: symbols!

But what's really going to bake your noodle is I can assign the "x" symbol to something else like this:

*z = *x;

..and then the same thing works with z:

say "z: ", $z, $z{foo}, @z; # Outputs:  z: symbols!

Oneliner if you want to try it:

perl -E '$x = "sy"; %x = (foo => "mb"); @x = ("ol", "s!"); say "x: ", $x, $x{foo}, @x; *z = *x; say "z: ", $z, $z{foo}, @z;'

Congratulations! You now know more about one of Perl's really weird internals than I'd wager most Perl programmers (I have literally never used any of the above for anything actually productive!)

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago) (2 children)

You mean the fact that you can have a hash called %foo, an array called @foo and a scalar called $foo all at the same time? I agree that's a weird choice and there's potential for insanity there, but it's pretty easy to just not do that...

20+ years of Perl experience and while Perl has a load of idiosyncrasies that make it harder to work with than other languages, I don't think that particular one has ever caused a significant problem.

[–] [email protected] 3 points 1 year ago

Nope. But I know a bunch of people that do or have, and have interviewed several (it’s a pretty small sector!)

[–] [email protected] 12 points 1 year ago (6 children)

I write Perl at work. Supporting an actively developed Perl based application.

It’s honestly not that bad as a language, the biggest downside is that the ecosystem of libraries around it are often abandoned or outdated. The language isn’t perfect and it needs a bit of discipline to avoid creating unreadable code, but honestly it’s not as bad as its reputation might have you believe.

It has quite a few tricks and unexpected bits of flexibility that make it quite a bit more expressive than other languages - you can really craft nice compact, elegant code with it if you want to.

These days I use other languages too (Python, Ruby, JS, etc) but none of them quite match Perl for expressiveness.

Oh also it’s great for oneliners. That expressiveness can be abused for brevity in some really interesting ways.

[–] [email protected] 1 points 1 year ago

Which incompatible language upgrades? Are you talking about Perl 6?

That was never really an iteration of Perl, and it was renamed Raku some years back so is no longer named like it’s an iteration of Perl.

Perl continues as Perl 5 and honestly values compatibility extremely highly, probably more than many (most?) other languages. There have been a handful of breaking changes over the years (most notable for me was the hash key ordering thing) but those are usually security related rather than anything else.

[–] [email protected] 2 points 1 year ago

One of the best things about Steam is not having to store install ISOs so I can reinstall games when I upgrade.

[–] [email protected] 32 points 1 year ago

Install Firefox Install Firefox Install Firefox!

[–] [email protected] 4 points 1 year ago

They use data, just not the data from the customers paying them for enterprise licenses.

Honestly fear of leaking customer data is the only thing that’s kept my work from spunking every single byte of data we have at some LLM service a lazy attempt to come up with a product they can sell with minimal effort. They’re gonna love this shit.

[–] [email protected] 4 points 1 year ago

This is super useful for any sort of development work - you basically get unlimited, separate private windows that you can log into stuff separately.

I use it for multi account switching on Reddit, I still do a lot of scam bot fighting over there and being able to easily switch between several users is really helpful.

[–] [email protected] 2 points 1 year ago (1 children)

Shit no! You know what you can’t change if/when they inevitably leak your data? Your fucking hand.

view more: ‹ prev next ›