Artificial intelligence is supercharging the threat of election disinformation worldwide, making it easy for anyone with a smartphone and a devious imagination to create fake – but convincing – content aimed at fooling voters....
“The novelty and sophistication of the technology makes it hard to track who is behind AI deepfakes. Experts say governments and companies are not yet capable of stopping the deluge, nor are they moving fast enough to solve the problem.”
And that’s the problem. When AI was first announced gov’ts should have put a few rules in place to safeguard citizens while gov’ts delved deeper. Instead, as always, they ignored the possible issues and let capitalism reign.
.eslintignore can be replaced by an ignorePatterns key in .eslintrc.cjs
Unless you’re ignoring entire directories or using Prettier in your editor, .prettierignore can be replaced with // prettier-ignore comments in files you want to ignore, or specifying globs in the command line (usually in the package.json script fields)
The entirety of .prettierrc can be replaced by a prettier key in package.json
Everything that ends in .ts, .js, and .cjs a script, not a config file, and they could all be moved to a separate folder and pointed at with command line flags
All of the options above are categorically worse than the standard layout
pnpm-lock.yaml and flake.lock aren’t config files and shouldn’t be edited unless you know what you’re doing
I wish it were only the political system, but it is also the social contract that is being broken.
Not everything in a society can and should be regulated by law. For example, we know not to cough or sneeze in someone else’s face, but to put our arm or hand in front of our face. It’s not a law and yet 99% of people know it and do it and call out people who don’t.
The US political system worked well for a while because there were do’s and don’ts that weren’t made into law, but every politician respected them to some degree. The GOP no longer respects anyone or anything, not an unwritten rule or even a written law, but they want to be respected, they want their rights to be respected.
This is not just happening in the US, I see it happening in the UK and Germany for example. Basic respect for each other is being lost more and more, between families, between neighbours, even between politicians. How do you get that back?
We don’t know how to deal with it as a society. We can’t have a law for everything. We depend on people and politicians to keep within the minimum social rules and follow an unwritten code, and we have nothing to punish them if they don’t and they just ignore these rules and spit on them.
A law under consideration by the German parliament would mean that people who have committed anti-Semitic acts can never be granted citizenship, German Interior Minister Nancy Faeser said on Wednesday.
People attending an outlawed protest get rounded up and identified, news at 11.
No, seriously. There have been plenty of pro-Palestine protests in Germany getting permits, there also have been plenty of pro-Palestine protests in Germany which got outlawed. The reason? Different organisers. Different capacities of those organisers to make sure that the protesters won’t commit crimes. Courts overruled some of those police assessments, but not all.
Like, people were up in arms even before all this went down that the Nakba protests in Berlin got outlawed. They completely ignored that in previous years, the same organisers held protests and those turned violent, broke out into “gas the Jews” chants, and whatnot.
As the Basic Law says: Every German has the right to peacefully assemble without weapon. The “German” part is usually ignored, also foreigners enjoy that right in practice. The “peacefully and without weapons” part OTOH is not negotiable.
Part of this is a cultural problem: The organisers don’t seem to understand how protesting works in Germany, what the do’s and don’ts are. And when they cross those lines, things get out of hand, public order is infringed upon, they try to play the victim card.
Do you know how much German police or Germans in general care if you call us Nazis? How much that stings? I’ll tell you: Zero. Because we know you’re full of shit.
Use a combination of allowJs and ts-ignore, do progressive enhancement, and convert your codebase file by file. Adding any everywhere literally turns off type checking altogether codebase wide, including type inference. It also means a huge PR that’s both just noise that needs to be fixed later, and messes with your git history (good luck getting anything useful out of blame or bisect now).
Just getting a green build doesn’t mean things are okay. You’re worse off than before doing that.
I disagree that you’re worse off (the core of my comment was that even a shitty migration encourages better practices)… but I wasn’t super familiar with TS hinting - using ts-ignore would be preferable.
Personally, I mostly work in PHP and we use a similar system. Strict typing is default off so we’ve slowly propagated declare(strict_types=1); to enable compile and runtime checking on a per file basis.
I haven’t managed to break into the JS-adjacent ecosystem, but tooling around Typescript is definitely a major part of the problem:
following a basic tutorial somehow ended up spending multiple seconds just to transpile and run “Hello, World!”.
there are at least 3 different ways of specifying the files and settings you want to use, and some of them will cause others to be ignored entirely, even though it looks like they should be used.
embracing duck typing means many common type errors simply cannot be caught. Also that means dynamic type checks are impossible, even though JS itself supports them (admittedly with oddities, e.g. with string vs String).
there are at least 3 incompatible ways to define and use a “module”, and it’s not clear what’s actually useful or intended to be used, or what the outputs are supposed to be for different environments.
At this point I’m seriously considering writing my own sanelanguage-to-JS transpiler or using some other one (maybe Haxe? but I’m not sure its object model allows full performance tweaking), because I’ve written literally dozens of other languages without this kind of pain.
WASM has its own problems (we shouldn’t be quick to call asm.js obsolete … also, C’s object model is not what people think it is) but that’s another story.
At this point, I’d be happy with some basic code reuse. Have a “generalized fibonacci” module taking 3 inputs, and call it 3 ways: from a web browser on the client side, as a web browser request to server (which is running nodejs), or as a nodejs command-line program. Transpiling one of the callers should not force the others to be transpiled, but if multiple of the callers need to be transpiled at once, it should not typecheck the library internals multiple times. I should also be able to choose whether to produce a “dynamic” library (which can be recompiled later without recompiling the dependencies) or a “static” one (only output a single merged file), and whether to minify.
I’m not sure the TS ecosystem is competent enough to deal with this.
I feel like there’s no typescript drama, just JavaScript drama. Things are pretty happy in the TS community. I’ve been writing js code since it literally first came out. I’m definitely no js hater. In the early days js code bases quickly turned to spaghetti code, but I genuinely think the js community has done miracles turning what was essentially a super simplistic toy language into a seriously good production quality language. I’ve seen first hand how much work has gone into it, and while most of the js community has been great with embracing change for the better, there’s always been the niche of detractors against any change that adds complexity even when it makes coding safer and more productive.
I’ve always had a love hate relationship with JavaScript, but with typescript it’s really been just straight up love. Pretty much all the trouble I have with typescript has been due to external libraries that use types lazily or incorrectly, and even then there are solutions to add safety to your own codebase. Sometimes I run into some trouble with the type system itself, but it’s pretty much always because I’m doing something really complicated that would be hard in any type system. I’ve been working with typescript for years now and my code bases are some of the most solid ones in my company. Typescript is really safe as long as you’re actually using it and not telling the compiler to ignore types through using any or making unsafe assertions.
It makes no difference to me if other people prefer JavaScript. Any important js library will get ts support anyways through definitely typed, and if a library is so sloppy it can’t be typed well then it’s not a good library to use anyways. Having people proudly announce they only want to use JavaScript is also great for hiring. It easily tips me off on who not to hire.
US District Judge Tanya Chutkan said that she plans to put serious limits over how sensitive evidence is handled in the Donald Trump 2020 election interference case, in a dramatic hearing Friday in Washington, DC, that could set the tone for the upcoming trial....
He does what he wants anyway, yet everyone is too afraid of incarcerating him for it.
The motherfucker loves testing boundaries. The only ones he’d have to respect are physical, ie walls he loves so much. His whole life has been walking past rules, norms, and shouldn’ts, taking what he wants, and bragging about it.
Walls, preferably 4 of them surrounding him pending trial based on his lengthy prior record of ignoring court orders.
But Old Man Richie Rich will of course die comfortably in his bed while poories of color continue to get summarily executed for looking suspicious.
The absolute worst case for him is compassionate house arrest in the lap of luxury. Funny how the courts always seem to reserve their allocation of compassion for wealthy felons despite our “equal protections under the law,” isn’t it? His bone spurs ache too much for big boy prison, plus his affluenza is acting up. And even that is highly unlikely in our rigged, corrupted judicial system.
NATO Proposes $100 Billion, Five-Year Fund to Aid Ukraine (www.bloomberg.com)
Election disinformation takes a big leap with AI being used to deceive worldwide (apnews.com)
Artificial intelligence is supercharging the threat of election disinformation worldwide, making it easy for anyone with a smartphone and a devious imagination to create fake – but convincing – content aimed at fooling voters....
Gender.js (lemmy.world)
cross-posted from: lemmy.world/post/10094818...
deleted_by_author
Trump Amplifies Call for "Citizens Arrest" of Judge and Prosecutor in New York Civil Case (www.meidastouch.com)
Anti-Semites cannot be granted German citizenship under new law - minister (www.reuters.com)
A law under consideration by the German parliament would mean that people who have committed anti-Semitic acts can never be granted citizenship, German Interior Minister Nancy Faeser said on Wednesday.
Me, migrating my code from JavaScript to TypeScript: (lemmy.world)
Which side are you? Javascript or Typescript (i.postimg.cc)
Judge Chutkan says Trump’s right to free speech in January 6 case is ‘not absolute’ (www.cnn.com)
US District Judge Tanya Chutkan said that she plans to put serious limits over how sensitive evidence is handled in the Donald Trump 2020 election interference case, in a dramatic hearing Friday in Washington, DC, that could set the tone for the upcoming trial....