Readit News logoReadit News
nextcaller commented on Playground Wisdom: Threads Beat Async/Await   lucumr.pocoo.org/2024/11/... · Posted by u/samwillis
neonsunset · a year ago
No. It is best to verify assumptions first before presenting them as facts. It is irritating to see this everywhere as the quality of discussion keeps going down.

In order to get the result of a promise in JS you have to await it (or chain it with 'then', much like .NET's 'ContinueWith' although it is usually discouraged). Consumption of tasks in .NET follows a similar pattern.

Async implementations in .NET and Python have also vastly different performance implications (on top of pre-existing unacceptable performance of Python in general).

The analyzer gives you a warning for unawaited tasks where not awaiting task indicates a likely user error.

Which is why if you want to fire and forget a task, you write it like '_ = http.PostAsync(url, content);` - it also indicates the intention clearly.

nextcaller · a year ago
Oh sorry for irritating you, I will return to my pod.
nextcaller commented on Playground Wisdom: Threads Beat Async/Await   lucumr.pocoo.org/2024/11/... · Posted by u/samwillis
neonsunset · a year ago
Why is it not a problem in JavaScript but is one in C#?
nextcaller · a year ago
In c#/python you are forced to await the whole chain, the compiler forces you. While in javascript it allows me without a warning. That's why it seems as if things work differently in javascript, if it allows me to (not) use await freely. (I don't remember if c# was just a warning or an error).
nextcaller commented on Playground Wisdom: Threads Beat Async/Await   lucumr.pocoo.org/2024/11/... · Posted by u/samwillis
nextcaller · a year ago
I'm still not sure if function coloring is also a problem in javascript. The problem became very clear in other languages like python or c#. But in javascript i've been writing code only awaiting a function when I need to and haven't ran into issues. I might write some simple experiment to check myself.
nextcaller commented on Software-defined (Internet) radio with Liquidsoap (2023)   blog.yossarian.net/2023/0... · Posted by u/walterbell
nextcaller · a year ago
I never quite got to fix my issues with firefox stopping playing my radio stream after changing songs. It just happens occasionally though I haven't tried recently to see if the problem is still there. At some point I thought liquidsoap cured this but it didn't. Also when I was into that, I got the feeling most of the internet didn't care about radio streams anymore since video streaming is the standard.
nextcaller commented on Claude AI to process secret government data through new Palantir deal   arstechnica.com/ai/2024/1... · Posted by u/lawls
owlninja · a year ago
Can anyone using Palantir explain what it does? I've never heard or seen anything concrete - I had one redditor tell me his company looked into it and they just put data into a database and make "connections".
nextcaller · a year ago
I think they monitor the world through satellites and AI. Intelligence software for NATO I guess.
nextcaller commented on Show HN: Tinder, but to decide what to eat   whatdinner.com/... · Posted by u/kiru_io
nextcaller · a year ago
Think of a pun and pay for a Shark Tank ad, they'll love the idea
nextcaller commented on Hollywood is dead, according to Justine Bateman. Here's what comes next   fastcompany.com/91220089/... · Posted by u/mikhael
nextcaller · a year ago
I just want the Black Mirror machine to work faster.
nextcaller commented on Tell HN: We (Causal) got acquired – thank you HN    · Posted by u/refrigerator
nextcaller · a year ago
You announce these big news so causally. Grats for collaborating with "Last Universal Common Ancestor".
nextcaller commented on Claude for Desktop   claude.ai/download... · Posted by u/meetpateltech
nextcaller · a year ago

u/nextcaller

KarmaCake day22February 15, 2024View Original