4,687 karma · joined Dec 4, 2021 (4y ago) · 1,693 submissions
comment 3y ago · link · parent
I agree. They are if we spawn OS threads everytime we need a thread. The equivalent in async would be spawning the entire overhead of the event loop every time we need concurrency.
Obviously, we don't do that.
WorkerPools don't need respawning. Greenlets don't need respawning. Virtual Threads handled by the runtime don't need respawning.
comment 3y ago · link · parent
No, it really doesn't. I mention both concurrency and parallelism, and their main difference.
> Threads are the opposite: They are interfaces for parallel programming
No, they are not. Threads can do both. When waiting for an i/o bound operation, a thread can simply sleep. Added bonus: A thread basd implementation supports io bound concurrency and cpu bound parallelism using the exact same principle, and letting the kernel/runtime take care of the details.
> are you telling me you never write a mutex or implement locking logic?
Pretty sure I never said that. As for what I prefer to debug: Most Mutex-based synchronicity tasks that come up in practice are easy. And if "complex deadlock" does occur, it's usually pretty clear what resource was locked. Debugging that is just a question of going over all callers that access that resource.
And as mentioned before, all that code is synchronous. So each one of them is easy to reason about.
So yea, all in all, I prefer debugging problems arising from deadlocks over wading through callback-hell. By a huge margin.
Oh, and all that is before we even talk about using CSP as an approach to synchronizing threads, which makes it both harder to mess up, and again easier to reason about.
comment 3y ago · link · parent
It didn't start because it is so awesome, it started because JS can't do parallel any other way. That's the long and short of it. People wanted to use JS in the backend for some reason. The backend requires concurrency. JS cannot do concurrency. Enter the event loop. Then enter some syntactic sugar for the event loop. And since JS is popular, async became popular.
Code written using threads is, at least to me, much more readable and easier to reason about. Each section in itself is just synchronous code. The runtime/kernel take care of concurrency. The overhead is negligible in a day when we have greenlet implementations. It works for both i/o bound concurrency and cpu bound parallel computing. It doesn't require entire libraries rewritten to support it. There is no callback hell. It scales both horizontically and vertically. Modern languages support it out of the box (Hello `go` keyword).
I realise that this is going to get a lot of downvotes. I don't really care. To me, async is just "cooperative multitasking" with a quick paintjob. We left behind that paradigm in Operating Systems decades ago, and with good reason.
comment 3y ago · link · parent
Then please, link me the relevant statements. Liz Truss's (who btw. isn't Britains PM any more) remarks were made in late August 2022 [1]. The russian nuclear sabre-rattling started in February 2022 [2].
So who exactly has threatened russia with nuclear weapons to elicit these responses? Helping a souvereign nation defend itself against an invasion and protecting their land and people, is not a threat. Offering a souvereign nation to join a military pact is also not a threat.
[1]: https://www.wsws.org/en/articles/2022/08/26/jfvn-a26.html
[2]: https://en.wikipedia.org/wiki/Nuclear_threats_during_the_Rus...
comment 3y ago · link · parent
No it isn't, and I say that as a user and Integrator of ML tech.
Climate Change: Literally our planetary habitat becoming uninhabitable for our species.
Russia: A country with one of the largest nuclear arsenals literally threatening a large portion of the world with nuclear annihilation.
Excuse me when the prospect of changes in the economic landscape for white collar jobs doesn't look particularly frightening compared to such problems. Especially since we live in a day and age where 2 entire generations have lived most of their lives in almost constant economic upheavals anyway.
As for all the AI-doomerism that's flying around the net: As long as no one can even give me a precise, quantifieable definition of "general intelligence", aka. one that doesn't include pointing at ourselves, and a method to measure how far AI is from that, I will work under the assumptions confirmed by what is measureable and observable: that what we have are still stochastic inference engines.
comment 3y ago · link · parent
There are plenty of folks who don't fall into this trap.
Example: Me. I am fully aware that LLM generated code can be wrong or worse, contain disastrous errors. But being aware of that, and looking for the things I know from experience it commonly gets wrong, allows me to use it as an incredibly powerful tool in my workflow.
comment 3y ago · link · parent
It will take longer than some "evangelists" anticipate, but other than a lot of tech hypecycles (like web3), this one is different for 3 reasons:
a) It's firmly in the public mindspace, including mass media
b) It has already proven it's usefulness and applicability to real world problems
c) Politics are taking it very seriously
There are people who don't use it, for various reasons, but it is increasingly hard to never have heard of it.A large part of that drive is due to the simple accessibility: Making ChatGPT as a convenient and simple webapp that appeals to non-techies was a brilliant move, and Microsoft driving integration into it's product suite will further adoption as well.
comment 3y ago · link · parent
I see awk as a DSL to be honest. Yes, it can be used as a general purpose language, but that quickly becomes, as you say, awkward :D
Like many DSLs, it is simple, fast and lightweight as long as it is used for it's intended purpose. Once you start using it for something else, these advantages evaporate pretty quickly, because then you have to essentially work around the DSL design to get it to do what you want.
comment 3y ago · link · parent
That means:
- The static checker / linter
- My LSP server
- Documentation Generators
- Testing frameworks
All of them can use type hints to work better, or to put this in to words that interest me: make my life easier. Laziness is a programmers virtue. I am lazy. I don't want to guess or lookup what type a param has. I want my LSP to yell it at me loudly when calling something. Taking the 1.5 extra seconds to write that type hint, is a minute saved later when using the code.Oh, and to everyone using LLM in their editing environment: They understand type hints as well, and can make good use of them.
And for when I am feeling especially lazy: I have a keybind that sends the current code block to the LLM asking it to add type hints and a docstring ;-)
comment 3y ago · link · parent
No, that is not my claim. That is part of the explanation for it.
My claim is this: An LLM is incapable of knowing when it produces false information, as it simply doesn't have a concept of "truthfulness". It deals in probabilities, not alignment with objective reality.
And it doesn't matter how big you make them...this fact cannot change, as it is rooted in the basic MO of language models.
So, now that we have covered what my claim actually is...
> That is not what we've observed though. Quite the opposite - we're seeing that the bigger LLM is and the more domain-specific material it digested, the more truthful it becomes.
...I can ask what this observation has to do with it, and the answer is: Nothing at all. LMs with more params may produce untruthful statements less often, but what does this change about their ability to recignize when they do produce them? And the answer is: Nothing. They still can't.
comment 3y ago · link · parent
My job includes giving realistic estimates on how long things take to accomplish. When asked to do something that I know cannot be done due to resource and time constraints, I's my duty to tell my employer as much, so he can make a strategic decision.
And in my experience, employers value that input.
comment 3y ago · link · parent
Doubly useful, because if they actually want it enough to have it done anyway, they will free up the time required for it by themselves. The important thing here is to memorize another phrase: "Certainly. Could you send me a quick email about that reprioritization?"
Which is just a very graceful and stylish way of saying: "Can I have that in writing?"
comment 3y ago · link · parent
And as I have demonstrated above, humans, and for that matter other species on this planet featuring capable brains like Corvidae or Cetaceans, do in fact have a concept of truth: They are capable of recognizing false or misleading information as being incongruous with objective reality: A raven that sees me putting food into my left hand, will not jump to a patch of ground where I pretend to put food with my right hand.
This is despite the fact that my actions of "hiding the food" with the empty hand are stochastically indistinguishable from an action of actually hiding food from with my left hand.
comment 3y ago · link · parent
For the record, all members of the Genus Ursus belong to the Order Carnivora, which literally translates to "Meat Eaters". And that includes Ursus spelaeus, aka. the Cave Bear.
And while it most likely, like many modern bears, was an Omnivore, that "Omni" very much included small, hairless monkey-esque creatures with no natural defenses other than ridiculously small teeth and pathetic excuses for claws, if they happened to stumble into their cave.
> The concept of truth is notoriously hard for humans to grapple with.
I am not talking about the philosophical questions of what truth is as a concept, nor am I talking about the many capabilities of humans to purposefully reshape others perceptions of truth for their own ends.
I am talking about truth as the observable state of the objective reality, aka. the Universe we exist in and interact with. A meter is longer than a centimeter, and boiling water is warmer than frozen water at the same pressure, whether any given philosophy or fabrication agrees with that or not, is irrelevant.
comment 3y ago · link · parent
It's a balance question.
Because on the other side of that coin, are requirements that are nebulous enough to be interpreted as a technical document describing everything between a calendar app to a rocket engine, a cooking recipe, or the prayer mantra of a futurologist cult.
Sure, engineers can "work" with that, which means they have to implement AND design the product as they go. Which usually ends in a mess for all parties involved.
So yes, engineers are within their rights to demand actually useful specs, that clearly outline what the goal of the work is. That doesn't mean they want every step of the way described in minute detail. As I said, writing good specs is a balancing act.
Of course employers are also welcome to instead take a broken spec and try to outsource it to somewhere. Only, they should be aware beforehand that the cost of hiring freelancers to fix the outcome of such experiments, often exceeds the rate of inhouse guys by quite a significant margin.
comment 3y ago · link · parent
The result were 2 very well written paragraphs, including the defeat of the Trade unions navy, a ceasfire agreement and a peace agreement ending the water wars.
I rephrased the entire thing as a question, asking the LM to tell me about the conclusion of the war. Again I got a pseudo-historical statement.
comment 3y ago · link · parent
The problem is what you mean when you say "consistency".
The LM checks if sequences are stochastically consistent with other sequences in the training data. Within that realm, the sentence: "In the Water Wars of 1999, the Antarctic Coalitions aramada of Hovercraft valiantly faught in the battle of Golehim under Rear Admiral Korakow, against the Trade Unions Fleets." is consistent. Because, while it is total bollocks, it looks stochasticaly like something that could be in a historical text.
So, in it's context, the LM does exactly what you ask for. It produces output that is consistent with the training data.
Truthfulness is a completely different form of consistency: Does the semantic meaning of the data support the statement I just made? of course it doesn't, there isn't an Antarctic Coalition, there were no Water Wars in 1999, and no one ever built an Armada of Hovercraft for any war against a "Trade Union Fleet".
But to know that, one has to understand what the data means semantically. And our current AIs ... well, don't.
comment 3y ago · link · parent
Wrong statements about Python are simply less probable than wrong statements about Rust, since there is more Python than Rust in the training data.
That changes exactly nothing about the fact that the system isn't able to detect when it makes a blunder in Python.
comment 3y ago · link · parent
Empirical evidence? Yes I do.
The brain commands an entity that has to exist and function in the context of objective reality. Being unable to verify it's internal state against that, would have been negatively selected some time ago, because stating: "I'm sure that rumbling cave bear with those big sharp teeth is a peaceful herbivore" won't change the objective reality that the caveman is about to become dinner.
How that works in detail is, to the best of my knowledge, still the subject of research in the realm of neurobiology.
comment 3y ago · link · parent
If you don't have a way to simply tell me what your current config is, then you have no earthly right to run it.
comment 3y ago · link · parent
It's simply when the predicted probable sequence isn't grounded in reality.
When I ask an LLM to summarize the great water wars of 1999, and how the Trade Union was ultimately defeated by the Antarctic Coalitions hovercraft-fleet under Vice Admiral Zagalow, it isn't "extrapolating" from knowledge of history, it is simply inventing a load of bollocks. But that bollocks will be dressed in fine language and probably mixed in with plausible-sounding references that have a somewhat-logical-sounding relation to the training data.
The problem is, the LM doesn't and cannot know when it produces bollocks.
All it can care about is if the sequences produced are probable according to it's model.
comment 3y ago · link · parent
Then we need a new system, because LMs, no matter if they are large or not, cannot do that, for a very simple reason:
A LM doesn't understand "truthfulness". It has no concept of a sequence being true or not, only of a sequence being probable.
And that probability cannot work as a standin for truthfulness, because the LM doesn't produce improbable sequences to begin with...it's output will always be the most (within heat settings) probable sequence. The LM simply has no way of knowing whether the sequence it just predicted is grounded in reality or not.
comment 3y ago · link · parent
And it's also not the topic of the discussion tbh. This is about the impact of the Mercator projection, and unless I get to see a peer reviewed study convincing me otherwise, my point stands.
comment 3y ago · link · parent
Pretty sure all of the former colonies are independent nations by now, and have been for more than a generation.
> Then the map projections that are convenient for them, are imposed upon the rest of humanity.
Excuse me? Who is imposing what on whom now, and how?
Last time I checked, everyone is free to use whatever map projection they want, centered on whatever point of the globe they want. Or they can use an actual globe.
> has the side-benefit for them of presenting said countries as larger than they are, and thus being one more way to subconsciously hammer onto everybody their superiority at that level too...
Yeah, pretty sure I don't perceive Antarctica as some kind of superior super-nation. Or greenland, although I gotta say, it's a really cool place, especially during summer.
comment 3y ago · link · parent
And now I would like to see some data, peer reviewed study, or similarly supported source for this statement.
Because I don't see many people claiming that greenland or antarctica are super important powerhouses in the world.
comment 3y ago · link · parent
So what?
Do these countries become more powerful, richer, or have more resources than others because they are represented bigger on a common map projection? If so, then let's just hope that our new overlords from the Antarctican Coalition are benign emperors :D