Hacker Newsnew | past | comments | ask | show | jobs | submit | more sysguest's commentslogin

> I don't recall anyone disliking types

> where people would say goofy things like they couldn't use Python because it's untyped. That's insane: Python is strongly typed. It's also dynamically typed, which is a different dimension.

hmm maybe you don't understand type-checking INSIDE IDE, NOT during runtime?


That is what the parent author means. Static vs dynamic typing is along the dimension of when the type is checked, and strong vs weak typing is a matter of how strongly bound names adhere to types. JS, for instance, is super weak here, you can assign a numerical value to something and in the next line re-assign it to a string, an array, or even a function object.


That's also true of Python, though, which is traditionally considered a strongly typed language.

I'm increasingly convinced that "strong/weak" has no useful meaning. Some people regularly use it interchangeably with "static/dynamic", others use it to vaguely refer to how much casting exists in a language, or how easy it is to transmute a value of one type into a value of a different type. There is no academic definition at all.

Mostly it gets used as a kind of cheap attack - it's like the meme "it's over, I've portrayed you as the soyjack and me as the chad". Good languages are strong, bad languages are weak, so if I say your favourite language has weak typing, and my favourite language has strong typing, then it's clear that my favourite language must be superior.

In general, I think it's more helpful to just reference the specific language feature you're talking about. Rather than say that JavaScript is a weakly typed language, instead say that there are a lot of implicit type conversations. Rather than say Erlang is strongly typed, say that there is no variable reassignment or shadowing. That way, you avoid the ambiguity about what you actually mean when you talk about strong or weak typing.


My understanding of weak typing is about allowing automatic type conversion. “3” + 1 === “31”, 1 + “3” === 4. Strong typing doesn’t auto convert.


This is one of the more common definitions, yes, but it's not used very consistently. The comment I replied to used a different definition, and I also commonly see the definition that weak typing is the ability to convert a type from one form to another (à la C).

Like I said, if you're going to talk about automatic type conversion, then calling it "automatic type conversion" is probably the simplest option - strong vs weak typing doesn't really need to come into it. Then you avoid any definitional confusion.


Pretty much. There's probably better examples but using some of what's come up here so far: python is strong+dynamic, javascript is weak+dynamic, typescript is weak+static*, java is strong+static.

* Maybe. Not quite sure about "weak" for this one, but I think it makes sense because you can just lie to typescript and then after compilation it just runs as javascript.


hmm maybe the plaintiff should sue nvidia?


hmm g00se?


translation: goose has constipation


hmm maybe if we wait longer, LLMs will learnt to be like "none-em-dashers", and we "em-dashers" will prevail?


Em-dashes and "it's not X. It's Y" seem to be in most LLMs writing style purposefully so they can have detection tools.

Just so academia can claim some level of detectability


There's also the "paradigm shift" and "a fundamental Z of X". Those really ding my slop'o'meter.


The real answer? (bolded) It’s complicated.


> Heat is not a cost

hmm? maybe it differs from time to time? on summer, it IS cost (nearby need to run AC)


also ecological and medical problems


> perhaps we need a fine grained permission system like Apple provides, but for clis

well deno has the stuff... but deno's not popular (yet)


idk maybe java should adopt something similar to rust's "edition"?


Correct me if I'm wrong, but Rust editions are a source code-level feature. So given you have the source code of newer and older rust code, you can compile them together.

That's materially distinct from Java's model of basically dynamic loading already compiled class files. Though class files do have "editions", and there are extra code to deal with different versions. But still, it should be possible to e.g. send a new value class to an old library's class that has never heard of them, and that should just work.


The important thing is that Rust editions affect semantics and name resolution. In such an analogy, JVM bytecode is the equivalent of Rust code - various semantics are baked in, but stuff like name resolution isn't (at least not completely).


security-wise, usb-c is the worst scenario device I've ever seen -- unless you're Apple, you can't make a security-boundary without infringing patent US11205021B2

for laptops, a bad-actor usb-c cable/charger can do so much more, unless your laptop has AI that can distinguish "is this signal really coming from monitor/keyboard/etc ?" I'd rather have plain-old DC adapters (or usbc to dc)


What are the actual security issues, HID injection?


"USB data blocker" on AliExpress yields you very small adapters that enable you to run USB-PD, but block the data lines.


well the article writes AS IF the whole intention was to:

"get data for drone warfare" ...in 2021 (before the russian invasion...)

but did we even EXPECT drone warfare to influence the war THIS MUCH back then?

well not me -- I actually thought russia would beat the crap out of ukraine within a month (even after the failed spetsnaz attack on zelensky)

the article's assumptions only makes sense IF some people had time machines, or if CIA has some know-everything future prophet

(not to mention: drones need TOP TO BOTTOM view, not bottom-to-top view)

anyway, my verdict: sensational yellow journal article, nothing more/less


Drone warfare has been discussed publicly since more than a decade, what Ukraine proved was just how effective that really is, but it was already known and understood. In any case mapping the world doesn’t only benefit drones, it’s something always valuable to the military. Drone navigation is just one use case


yeah if the article was about "helping the infantry", then I would have 100% agreed.

but... drones? that's just yellow journalism optimized for SEO keyword (and anyone who clicks an article with 'drone')


Well, define "drone warfare"- the CIA and the Pentagon has been operating Predators and friends for a long while.


those predators and friends are really high-altitude drones, and for them these low-altitude (human) level pics don't give them any advantage


Very likely. I'm just saying, people in the CIA seeing where the tech might be going and hedging their bets is not that unlikely.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: